Annotation of rpl/configure, revision 1.91
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.86 bertrand 3: # Generated by GNU Autoconf 2.68 for rpl 4.1.4.
1.15 bertrand 4: #
1.1 bertrand 5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36 bertrand 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
1.15 bertrand 9: #
10: #
1.1 bertrand 11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.15 bertrand 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
1.1 bertrand 16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 20: emulate sh
21: NULLCMD=:
1.15 bertrand 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
1.15 bertrand 27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.1 bertrand 32: esac
33: fi
34:
35:
1.15 bertrand 36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
1.14 bertrand 73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.1 bertrand 81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
1.57 bertrand 92: as_myself=
1.15 bertrand 93: case $0 in #((
1.1 bertrand 94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
1.15 bertrand 100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
1.1 bertrand 102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
1.15 bertrand 112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
1.1 bertrand 114: fi
115:
1.15 bertrand 116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.15 bertrand 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
1.1 bertrand 133:
134: # CDPATH.
1.15 bertrand 135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 bertrand 136:
137: if test "x$CONFIG_SHELL" = x; then
1.15 bertrand 138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
1.1 bertrand 145: else
1.15 bertrand 146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
1.1 bertrand 152: fi
1.15 bertrand 153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
1.1 bertrand 159:
160: exitcode=0
1.15 bertrand 161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1"
176: if (eval "$as_required") 2>/dev/null; then :
177: as_have_required=yes
1.14 bertrand 178: else
1.15 bertrand 179: as_have_required=no
1.14 bertrand 180: fi
1.15 bertrand 181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14 bertrand 182:
183: else
1.15 bertrand 184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185: as_found=false
1.1 bertrand 186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187: do
188: IFS=$as_save_IFS
189: test -z "$as_dir" && as_dir=.
1.15 bertrand 190: as_found=:
191: case $as_dir in #(
1.1 bertrand 192: /*)
193: for as_base in sh bash ksh sh5; do
1.15 bertrand 194: # Try only shells that exist, to save several forks.
195: as_shell=$as_dir/$as_base
196: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198: CONFIG_SHELL=$as_shell as_have_required=yes
199: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: break 2
201: fi
202: fi
1.1 bertrand 203: done;;
204: esac
1.15 bertrand 205: as_found=false
1.1 bertrand 206: done
1.15 bertrand 207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209: CONFIG_SHELL=$SHELL as_have_required=yes
210: fi; }
1.1 bertrand 211: IFS=$as_save_IFS
212:
213:
1.15 bertrand 214: if test "x$CONFIG_SHELL" != x; then :
215: # We cannot yet assume a decent shell, so we have to provide a
216: # neutralization value for shells without unset; and this also
217: # works around shells that cannot unset nonexistent variables.
1.57 bertrand 218: # Preserve -v and -x to the replacement shell.
1.15 bertrand 219: BASH_ENV=/dev/null
220: ENV=/dev/null
221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222: export CONFIG_SHELL
1.57 bertrand 223: case $- in # ((((
224: *v*x* | *x*v* ) as_opts=-vx ;;
225: *v* ) as_opts=-v ;;
226: *x* ) as_opts=-x ;;
227: * ) as_opts= ;;
228: esac
229: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.15 bertrand 230: fi
231:
232: if test x$as_have_required = xno; then :
233: $as_echo "$0: This script requires a shell more modern than all"
234: $as_echo "$0: the shells that I found on your system."
235: if test x${ZSH_VERSION+set} = xset ; then
236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238: else
239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240: $0: including any error possibly output before this
241: $0: message. Then install a modern shell, or manually run
242: $0: the script under such a shell if you do have one."
243: fi
244: exit 1
245: fi
1.1 bertrand 246: fi
247: fi
1.15 bertrand 248: SHELL=${CONFIG_SHELL-/bin/sh}
249: export SHELL
250: # Unset more variables known to interfere with behavior of common tools.
251: CLICOLOR_FORCE= GREP_OPTIONS=
252: unset CLICOLOR_FORCE GREP_OPTIONS
1.14 bertrand 253:
1.15 bertrand 254: ## --------------------- ##
255: ## M4sh Shell Functions. ##
256: ## --------------------- ##
257: # as_fn_unset VAR
258: # ---------------
259: # Portably unset VAR.
260: as_fn_unset ()
261: {
262: { eval $1=; unset $1;}
263: }
264: as_unset=as_fn_unset
265:
266: # as_fn_set_status STATUS
267: # -----------------------
268: # Set $? to STATUS, without forking.
269: as_fn_set_status ()
270: {
271: return $1
272: } # as_fn_set_status
273:
274: # as_fn_exit STATUS
275: # -----------------
276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277: as_fn_exit ()
278: {
279: set +e
280: as_fn_set_status $1
281: exit $1
282: } # as_fn_exit
283:
284: # as_fn_mkdir_p
285: # -------------
286: # Create "$as_dir" as a directory, including parents if necessary.
287: as_fn_mkdir_p ()
288: {
1.14 bertrand 289:
1.15 bertrand 290: case $as_dir in #(
291: -*) as_dir=./$as_dir;;
292: esac
293: test -d "$as_dir" || eval $as_mkdir_p || {
294: as_dirs=
295: while :; do
296: case $as_dir in #(
297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298: *) as_qdir=$as_dir;;
299: esac
300: as_dirs="'$as_qdir' $as_dirs"
301: as_dir=`$as_dirname -- "$as_dir" ||
302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303: X"$as_dir" : 'X\(//\)[^/]' \| \
304: X"$as_dir" : 'X\(//\)$' \| \
305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306: $as_echo X"$as_dir" |
307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\/\)[^/].*/{
312: s//\1/
313: q
314: }
315: /^X\(\/\/\)$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\).*/{
320: s//\1/
321: q
322: }
323: s/.*/./; q'`
324: test -d "$as_dir" && break
325: done
326: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 bertrand 328:
329:
1.15 bertrand 330: } # as_fn_mkdir_p
331: # as_fn_append VAR VALUE
332: # ----------------------
333: # Append the text in VALUE to the end of the definition contained in VAR. Take
334: # advantage of any shell optimizations that allow amortized linear growth over
335: # repeated appends, instead of the typical quadratic growth present in naive
336: # implementations.
337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338: eval 'as_fn_append ()
339: {
340: eval $1+=\$2
341: }'
1.14 bertrand 342: else
1.15 bertrand 343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
1.1 bertrand 348:
1.15 bertrand 349: # as_fn_arith ARG...
350: # ------------------
351: # Perform arithmetic evaluation on the ARGs, and store the result in the
352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
353: # must be portable across $(()) and expr.
354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355: eval 'as_fn_arith ()
356: {
357: as_val=$(( $* ))
358: }'
1.1 bertrand 359: else
1.15 bertrand 360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
1.14 bertrand 365:
366:
1.36 bertrand 367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
1.15 bertrand 369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 371: # script with STATUS, using 1 if that was 0.
1.15 bertrand 372: as_fn_error ()
373: {
1.36 bertrand 374: as_status=$1; test $as_status -eq 0 && as_status=1
375: if test "$4"; then
376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 378: fi
1.36 bertrand 379: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 380: as_fn_exit $as_status
381: } # as_fn_error
1.14 bertrand 382:
1.15 bertrand 383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
1.1 bertrand 386: else
1.15 bertrand 387: as_expr=false
1.14 bertrand 388: fi
389:
1.15 bertrand 390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
1.1 bertrand 392: else
1.15 bertrand 393: as_basename=false
1.14 bertrand 394: fi
395:
1.15 bertrand 396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
1.1 bertrand 398: else
1.15 bertrand 399: as_dirname=false
1.1 bertrand 400: fi
401:
1.15 bertrand 402: as_me=`$as_basename -- "$0" ||
403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406: $as_echo X/"$0" |
407: sed '/^.*\/\([^/][^/]*\)\/*$/{
408: s//\1/
409: q
410: }
411: /^X\/\(\/\/\)$/{
412: s//\1/
413: q
414: }
415: /^X\/\(\/\).*/{
416: s//\1/
417: q
418: }
419: s/.*/./; q'`
1.1 bertrand 420:
1.15 bertrand 421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 427:
428:
1.15 bertrand 429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.1 bertrand 434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
438: sed '
439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
443: N
444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446: t loop
447: s/-\n.*//
448: ' >$as_me.lineno &&
449: chmod +x "$as_me.lineno" ||
1.15 bertrand 450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 bertrand 451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
456: # Exit status is that of the last command.
457: exit
458: }
459:
1.15 bertrand 460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
1.1 bertrand 464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
1.1 bertrand 468: esac;;
469: *)
470: ECHO_N='-n';;
471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
1.15 bertrand 478: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 479: fi
1.15 bertrand 480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
1.1 bertrand 492: as_ln_s='cp -p'
1.15 bertrand 493: fi
1.1 bertrand 494: else
495: as_ln_s='cp -p'
496: fi
497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
499:
500: if mkdir -p . 2>/dev/null; then
1.15 bertrand 501: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
1.15 bertrand 518: test -d "$1/.";
1.1 bertrand 519: else
1.15 bertrand 520: case $1 in #(
521: -*)set "./$1";;
1.1 bertrand 522: esac;
1.15 bertrand 523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536:
1.15 bertrand 537: test -n "$DJDIR" || exec 7<&0 </dev/null
538: exec 6>&1
1.1 bertrand 539:
540: # Name of the host.
1.36 bertrand 541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 bertrand 542: # so uname gets run too.
543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544:
545: #
546: # Initializations.
547: #
548: ac_default_prefix=/usr/local
549: ac_clean_files=
550: ac_config_libobj_dir=.
551: LIBOBJS=
552: cross_compiling=no
553: subdirs=
554: MFLAGS=
555: MAKEFLAGS=
556:
557: # Identity of this package.
558: PACKAGE_NAME='rpl'
559: PACKAGE_TARNAME='rpl'
1.86 bertrand 560: PACKAGE_VERSION='4.1.4'
561: PACKAGE_STRING='rpl 4.1.4'
1.1 bertrand 562: PACKAGE_BUGREPORT=''
1.15 bertrand 563: PACKAGE_URL=''
1.1 bertrand 564:
1.80 bertrand 565: enable_option_checking=no
1.1 bertrand 566: ac_default_prefix=/usr/local
567: # Factoring default headers for most tests.
568: ac_includes_default="\
569: #include <stdio.h>
570: #ifdef HAVE_SYS_TYPES_H
571: # include <sys/types.h>
572: #endif
573: #ifdef HAVE_SYS_STAT_H
574: # include <sys/stat.h>
575: #endif
576: #ifdef STDC_HEADERS
577: # include <stdlib.h>
578: # include <stddef.h>
579: #else
580: # ifdef HAVE_STDLIB_H
581: # include <stdlib.h>
582: # endif
583: #endif
584: #ifdef HAVE_STRING_H
585: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586: # include <memory.h>
587: # endif
588: # include <string.h>
589: #endif
590: #ifdef HAVE_STRINGS_H
591: # include <strings.h>
592: #endif
593: #ifdef HAVE_INTTYPES_H
594: # include <inttypes.h>
595: #endif
596: #ifdef HAVE_STDINT_H
597: # include <stdint.h>
598: #endif
599: #ifdef HAVE_UNISTD_H
600: # include <unistd.h>
601: #endif"
602:
1.15 bertrand 603: ac_subst_vars='am__EXEEXT_FALSE
604: am__EXEEXT_TRUE
605: LTLIBOBJS
606: LIBOBJS
1.80 bertrand 607: LIBMOTIF
608: INCMOTIF
1.56 bertrand 609: GIAC
610: PARI
611: COCOA
612: NTL
1.55 bertrand 613: MPFR
614: GMP
1.49 bertrand 615: MALLOC
1.30 bertrand 616: EXT_SQL
1.15 bertrand 617: DATE_FR
618: FINAL_ENCODING
1.76 bertrand 619: SIGSEGV
1.80 bertrand 620: BUILD_OPENMOTIF
1.78 bertrand 621: OPENMOTIF
1.82 bertrand 622: LIBXPM
1.15 bertrand 623: OPENSSL
624: SQLITE
625: ICONV
626: FILE
627: GNUPLOT
628: GPP
629: GSL
630: UNITS
631: READLINE
632: NCURSES
1.75 bertrand 633: ELF
1.40 bertrand 634: BSH_PATH
1.34 bertrand 635: IPV6
1.33 bertrand 636: SEMUN
1.36 bertrand 637: IPCS_SYSV
1.17 bertrand 638: SEMAPHORES_NOMMES
639: NESTED_FUNCTIONS
640: EXPORT_DYNAMIC
1.33 bertrand 641: C_STANDARD
1.91 ! bertrand 642: LIB_PREFIX
1.90 bertrand 643: WHOLE_LIB2
644: WHOLE_LIB1
1.15 bertrand 645: OS
1.69 bertrand 646: HOST
1.15 bertrand 647: GNUPLOT_COMPILATION
648: EGREP
649: GREP
650: libPgSQLlib
651: libPgSQLinc
652: POSTGRESQL_SUPPORT
653: libMySQLlib
654: libMySQLinc
655: MYSQL_SUPPORT
656: DATE
657: includeX
658: libX
659: MOTIF_SUPPORT
660: DEBUG
661: EXPERIMENTAL_CODE
662: VIM_SUPPORT
663: POSTSCRIPT_SUPPORT
664: FORCE_GNUPLOT_PATH
665: GNUPLOT_SUPPORT
666: VIM
667: GNUPLOT_P
668: GV
669: GS
670: DVIPS
671: LATEX
672: TEX
673: SED
674: RANLIB
675: LN_S
676: RUNPATH
677: PROFILAGE
1.80 bertrand 678: subdirs
1.91 ! bertrand 679: PSELECT
1.89 bertrand 680: SHARED_MEMORY
1.67 bertrand 681: LIBRPLCAS
682: RPLCAS
1.66 bertrand 683: ABI
1.88 bertrand 684: RPLTOOLS
1.15 bertrand 685: X_EXTRA_LIBS
686: X_LIBS
687: X_PRE_LIBS
688: X_CFLAGS
689: CPP
690: XMKMF
691: ac_ct_FC
692: FCFLAGS
693: FC
694: ac_ct_F77
695: FFLAGS
696: F77
697: am__fastdepCXX_FALSE
698: am__fastdepCXX_TRUE
699: CXXDEPMODE
700: ac_ct_CXX
701: CXXFLAGS
702: CXX
703: am__fastdepCC_FALSE
704: am__fastdepCC_TRUE
705: CCDEPMODE
706: AMDEPBACKSLASH
707: AMDEP_FALSE
708: AMDEP_TRUE
709: am__quote
710: am__include
711: DEPDIR
712: OBJEXT
713: EXEEXT
714: ac_ct_CC
715: CPPFLAGS
716: LDFLAGS
717: CFLAGS
718: CC
719: am__untar
720: am__tar
721: AMTAR
722: am__leading_dot
723: SET_MAKE
724: AWK
725: mkdir_p
726: MKDIR_P
727: INSTALL_STRIP_PROGRAM
728: STRIP
729: install_sh
730: MAKEINFO
731: AUTOHEADER
732: AUTOMAKE
733: AUTOCONF
734: ACLOCAL
735: VERSION
736: PACKAGE
737: CYGPATH_W
738: am__isrc
739: INSTALL_DATA
740: INSTALL_SCRIPT
741: INSTALL_PROGRAM
742: target_os
743: target_vendor
744: target_cpu
745: target
746: host_os
747: host_vendor
748: host_cpu
749: host
750: build_os
751: build_vendor
752: build_cpu
753: build
754: target_alias
755: host_alias
756: build_alias
757: LIBS
758: ECHO_T
759: ECHO_N
760: ECHO_C
761: DEFS
762: mandir
763: localedir
764: libdir
765: psdir
766: pdfdir
767: dvidir
768: htmldir
769: infodir
770: docdir
771: oldincludedir
772: includedir
773: localstatedir
774: sharedstatedir
775: sysconfdir
776: datadir
777: datarootdir
778: libexecdir
779: sbindir
780: bindir
781: program_transform_name
782: prefix
783: exec_prefix
784: PACKAGE_URL
785: PACKAGE_BUGREPORT
786: PACKAGE_STRING
787: PACKAGE_VERSION
788: PACKAGE_TARNAME
789: PACKAGE_NAME
1.14 bertrand 790: PATH_SEPARATOR
1.15 bertrand 791: SHELL'
792: ac_subst_files=''
793: ac_user_opts='
794: enable_option_checking
795: enable_dependency_tracking
796: with_x
1.69 bertrand 797: with_32bits_abi
798: with_64bits_abi
1.91 ! bertrand 799: enable_recursive
1.88 bertrand 800: with_rpltools
801: enable_rplcas
1.15 bertrand 802: enable_optimization
1.87 bertrand 803: enable_sysv_ipcs
1.30 bertrand 804: enable_full_static
1.15 bertrand 805: enable_final_encoding
806: enable_tex
807: enable_vim
808: enable_embedded_gnuplot
809: enable_gnuplot
810: enable_motif
811: enable_experimental
812: enable_debug
813: enable_profile
814: enable_final_run_path
815: with_mysql
816: with_postgresql
1.40 bertrand 817: with_bourne_shell
1.15 bertrand 818: with_openssl_arch
819: '
820: ac_precious_vars='build_alias
1.1 bertrand 821: host_alias
822: target_alias
823: CC
824: CFLAGS
825: LDFLAGS
1.15 bertrand 826: LIBS
1.1 bertrand 827: CPPFLAGS
828: CXX
829: CXXFLAGS
1.15 bertrand 830: CCC
1.1 bertrand 831: F77
832: FFLAGS
833: FC
834: FCFLAGS
835: XMKMF
836: CPP'
1.80 bertrand 837: ac_subdirs_all='tools/$LIBXPM
838: tools/$OPENMOTIF
839: tools/$GNUPLOT
1.69 bertrand 840: tools/$NCURSES
1.1 bertrand 841: tools/$READLINE
842: tools/$GSL
843: tools/$GPP
844: tools/$FILE
845: tools/$ICONV
1.9 bertrand 846: tools/$SQLITE
1.76 bertrand 847: tools/$UNITS
848: tools/$SIGSEGV'
1.1 bertrand 849:
850: # Initialize some variables set by options.
851: ac_init_help=
852: ac_init_version=false
1.15 bertrand 853: ac_unrecognized_opts=
854: ac_unrecognized_sep=
1.1 bertrand 855: # The variables have the same names as the options, with
856: # dashes changed to underlines.
857: cache_file=/dev/null
858: exec_prefix=NONE
859: no_create=
860: no_recursion=
861: prefix=NONE
862: program_prefix=NONE
863: program_suffix=NONE
864: program_transform_name=s,x,x,
865: silent=
866: site=
867: srcdir=
868: verbose=
869: x_includes=NONE
870: x_libraries=NONE
871:
872: # Installation directory options.
873: # These are left unexpanded so users can "make install exec_prefix=/foo"
874: # and all the variables that are supposed to be based on exec_prefix
875: # by default will actually change.
876: # Use braces instead of parens because sh, perl, etc. also accept them.
877: # (The list follows the same order as the GNU Coding Standards.)
878: bindir='${exec_prefix}/bin'
879: sbindir='${exec_prefix}/sbin'
880: libexecdir='${exec_prefix}/libexec'
881: datarootdir='${prefix}/share'
882: datadir='${datarootdir}'
883: sysconfdir='${prefix}/etc'
884: sharedstatedir='${prefix}/com'
885: localstatedir='${prefix}/var'
886: includedir='${prefix}/include'
887: oldincludedir='/usr/include'
888: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889: infodir='${datarootdir}/info'
890: htmldir='${docdir}'
891: dvidir='${docdir}'
892: pdfdir='${docdir}'
893: psdir='${docdir}'
894: libdir='${exec_prefix}/lib'
895: localedir='${datarootdir}/locale'
896: mandir='${datarootdir}/man'
897:
898: ac_prev=
899: ac_dashdash=
900: for ac_option
901: do
902: # If the previous option needs an argument, assign it.
903: if test -n "$ac_prev"; then
904: eval $ac_prev=\$ac_option
905: ac_prev=
906: continue
907: fi
908:
909: case $ac_option in
1.36 bertrand 910: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911: *=) ac_optarg= ;;
912: *) ac_optarg=yes ;;
1.1 bertrand 913: esac
914:
915: # Accept the important Cygnus configure options, so we can diagnose typos.
916:
917: case $ac_dashdash$ac_option in
918: --)
919: ac_dashdash=yes ;;
920:
921: -bindir | --bindir | --bindi | --bind | --bin | --bi)
922: ac_prev=bindir ;;
923: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924: bindir=$ac_optarg ;;
925:
926: -build | --build | --buil | --bui | --bu)
927: ac_prev=build_alias ;;
928: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929: build_alias=$ac_optarg ;;
930:
931: -cache-file | --cache-file | --cache-fil | --cache-fi \
932: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933: ac_prev=cache_file ;;
934: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936: cache_file=$ac_optarg ;;
937:
938: --config-cache | -C)
939: cache_file=config.cache ;;
940:
941: -datadir | --datadir | --datadi | --datad)
942: ac_prev=datadir ;;
943: -datadir=* | --datadir=* | --datadi=* | --datad=*)
944: datadir=$ac_optarg ;;
945:
946: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947: | --dataroo | --dataro | --datar)
948: ac_prev=datarootdir ;;
949: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951: datarootdir=$ac_optarg ;;
952:
953: -disable-* | --disable-*)
1.15 bertrand 954: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 bertrand 955: # Reject names that are not valid shell variable names.
1.15 bertrand 956: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 957: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 958: ac_useropt_orig=$ac_useropt
959: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960: case $ac_user_opts in
961: *"
962: "enable_$ac_useropt"
963: "*) ;;
964: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965: ac_unrecognized_sep=', ';;
966: esac
967: eval enable_$ac_useropt=no ;;
1.1 bertrand 968:
969: -docdir | --docdir | --docdi | --doc | --do)
970: ac_prev=docdir ;;
971: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972: docdir=$ac_optarg ;;
973:
974: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975: ac_prev=dvidir ;;
976: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977: dvidir=$ac_optarg ;;
978:
979: -enable-* | --enable-*)
1.15 bertrand 980: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 bertrand 981: # Reject names that are not valid shell variable names.
1.15 bertrand 982: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 983: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 984: ac_useropt_orig=$ac_useropt
985: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986: case $ac_user_opts in
987: *"
988: "enable_$ac_useropt"
989: "*) ;;
990: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991: ac_unrecognized_sep=', ';;
992: esac
993: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 994:
995: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997: | --exec | --exe | --ex)
998: ac_prev=exec_prefix ;;
999: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001: | --exec=* | --exe=* | --ex=*)
1002: exec_prefix=$ac_optarg ;;
1003:
1004: -gas | --gas | --ga | --g)
1005: # Obsolete; use --with-gas.
1006: with_gas=yes ;;
1007:
1008: -help | --help | --hel | --he | -h)
1009: ac_init_help=long ;;
1010: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011: ac_init_help=recursive ;;
1012: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013: ac_init_help=short ;;
1014:
1015: -host | --host | --hos | --ho)
1016: ac_prev=host_alias ;;
1017: -host=* | --host=* | --hos=* | --ho=*)
1018: host_alias=$ac_optarg ;;
1019:
1020: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021: ac_prev=htmldir ;;
1022: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023: | --ht=*)
1024: htmldir=$ac_optarg ;;
1025:
1026: -includedir | --includedir | --includedi | --included | --include \
1027: | --includ | --inclu | --incl | --inc)
1028: ac_prev=includedir ;;
1029: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030: | --includ=* | --inclu=* | --incl=* | --inc=*)
1031: includedir=$ac_optarg ;;
1032:
1033: -infodir | --infodir | --infodi | --infod | --info | --inf)
1034: ac_prev=infodir ;;
1035: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036: infodir=$ac_optarg ;;
1037:
1038: -libdir | --libdir | --libdi | --libd)
1039: ac_prev=libdir ;;
1040: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041: libdir=$ac_optarg ;;
1042:
1043: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044: | --libexe | --libex | --libe)
1045: ac_prev=libexecdir ;;
1046: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047: | --libexe=* | --libex=* | --libe=*)
1048: libexecdir=$ac_optarg ;;
1049:
1050: -localedir | --localedir | --localedi | --localed | --locale)
1051: ac_prev=localedir ;;
1052: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053: localedir=$ac_optarg ;;
1054:
1055: -localstatedir | --localstatedir | --localstatedi | --localstated \
1056: | --localstate | --localstat | --localsta | --localst | --locals)
1057: ac_prev=localstatedir ;;
1058: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060: localstatedir=$ac_optarg ;;
1061:
1062: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063: ac_prev=mandir ;;
1064: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065: mandir=$ac_optarg ;;
1066:
1067: -nfp | --nfp | --nf)
1068: # Obsolete; use --without-fp.
1069: with_fp=no ;;
1070:
1071: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072: | --no-cr | --no-c | -n)
1073: no_create=yes ;;
1074:
1075: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077: no_recursion=yes ;;
1078:
1079: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081: | --oldin | --oldi | --old | --ol | --o)
1082: ac_prev=oldincludedir ;;
1083: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086: oldincludedir=$ac_optarg ;;
1087:
1088: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089: ac_prev=prefix ;;
1090: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091: prefix=$ac_optarg ;;
1092:
1093: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094: | --program-pre | --program-pr | --program-p)
1095: ac_prev=program_prefix ;;
1096: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098: program_prefix=$ac_optarg ;;
1099:
1100: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101: | --program-suf | --program-su | --program-s)
1102: ac_prev=program_suffix ;;
1103: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105: program_suffix=$ac_optarg ;;
1106:
1107: -program-transform-name | --program-transform-name \
1108: | --program-transform-nam | --program-transform-na \
1109: | --program-transform-n | --program-transform- \
1110: | --program-transform | --program-transfor \
1111: | --program-transfo | --program-transf \
1112: | --program-trans | --program-tran \
1113: | --progr-tra | --program-tr | --program-t)
1114: ac_prev=program_transform_name ;;
1115: -program-transform-name=* | --program-transform-name=* \
1116: | --program-transform-nam=* | --program-transform-na=* \
1117: | --program-transform-n=* | --program-transform-=* \
1118: | --program-transform=* | --program-transfor=* \
1119: | --program-transfo=* | --program-transf=* \
1120: | --program-trans=* | --program-tran=* \
1121: | --progr-tra=* | --program-tr=* | --program-t=*)
1122: program_transform_name=$ac_optarg ;;
1123:
1124: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125: ac_prev=pdfdir ;;
1126: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127: pdfdir=$ac_optarg ;;
1128:
1129: -psdir | --psdir | --psdi | --psd | --ps)
1130: ac_prev=psdir ;;
1131: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132: psdir=$ac_optarg ;;
1133:
1134: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135: | -silent | --silent | --silen | --sile | --sil)
1136: silent=yes ;;
1137:
1138: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139: ac_prev=sbindir ;;
1140: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141: | --sbi=* | --sb=*)
1142: sbindir=$ac_optarg ;;
1143:
1144: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146: | --sharedst | --shareds | --shared | --share | --shar \
1147: | --sha | --sh)
1148: ac_prev=sharedstatedir ;;
1149: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152: | --sha=* | --sh=*)
1153: sharedstatedir=$ac_optarg ;;
1154:
1155: -site | --site | --sit)
1156: ac_prev=site ;;
1157: -site=* | --site=* | --sit=*)
1158: site=$ac_optarg ;;
1159:
1160: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161: ac_prev=srcdir ;;
1162: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163: srcdir=$ac_optarg ;;
1164:
1165: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166: | --syscon | --sysco | --sysc | --sys | --sy)
1167: ac_prev=sysconfdir ;;
1168: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170: sysconfdir=$ac_optarg ;;
1171:
1172: -target | --target | --targe | --targ | --tar | --ta | --t)
1173: ac_prev=target_alias ;;
1174: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175: target_alias=$ac_optarg ;;
1176:
1177: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178: verbose=yes ;;
1179:
1180: -version | --version | --versio | --versi | --vers | -V)
1181: ac_init_version=: ;;
1182:
1183: -with-* | --with-*)
1.15 bertrand 1184: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 bertrand 1185: # Reject names that are not valid shell variable names.
1.15 bertrand 1186: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1187: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1188: ac_useropt_orig=$ac_useropt
1189: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190: case $ac_user_opts in
1191: *"
1192: "with_$ac_useropt"
1193: "*) ;;
1194: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195: ac_unrecognized_sep=', ';;
1196: esac
1197: eval with_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 1198:
1199: -without-* | --without-*)
1.15 bertrand 1200: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 bertrand 1201: # Reject names that are not valid shell variable names.
1.15 bertrand 1202: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1203: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1204: ac_useropt_orig=$ac_useropt
1205: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206: case $ac_user_opts in
1207: *"
1208: "with_$ac_useropt"
1209: "*) ;;
1210: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211: ac_unrecognized_sep=', ';;
1212: esac
1213: eval with_$ac_useropt=no ;;
1.1 bertrand 1214:
1215: --x)
1216: # Obsolete; use --with-x.
1217: with_x=yes ;;
1218:
1219: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220: | --x-incl | --x-inc | --x-in | --x-i)
1221: ac_prev=x_includes ;;
1222: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224: x_includes=$ac_optarg ;;
1225:
1226: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228: ac_prev=x_libraries ;;
1229: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231: x_libraries=$ac_optarg ;;
1232:
1.36 bertrand 1233: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1234: Try \`$0 --help' for more information"
1.1 bertrand 1235: ;;
1236:
1237: *=*)
1238: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239: # Reject names that are not valid shell variable names.
1.15 bertrand 1240: case $ac_envvar in #(
1241: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36 bertrand 1242: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15 bertrand 1243: esac
1.1 bertrand 1244: eval $ac_envvar=\$ac_optarg
1245: export $ac_envvar ;;
1246:
1247: *)
1248: # FIXME: should be removed in autoconf 3.0.
1.15 bertrand 1249: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 bertrand 1250: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15 bertrand 1251: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57 bertrand 1252: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 bertrand 1253: ;;
1254:
1255: esac
1256: done
1257:
1258: if test -n "$ac_prev"; then
1259: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36 bertrand 1260: as_fn_error $? "missing argument to $ac_option"
1.15 bertrand 1261: fi
1262:
1263: if test -n "$ac_unrecognized_opts"; then
1264: case $enable_option_checking in
1265: no) ;;
1.36 bertrand 1266: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15 bertrand 1267: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268: esac
1.1 bertrand 1269: fi
1270:
1.15 bertrand 1271: # Check all directory arguments for consistency.
1.1 bertrand 1272: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273: datadir sysconfdir sharedstatedir localstatedir includedir \
1274: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275: libdir localedir mandir
1276: do
1277: eval ac_val=\$$ac_var
1.15 bertrand 1278: # Remove trailing slashes.
1279: case $ac_val in
1280: */ )
1281: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282: eval $ac_var=\$ac_val;;
1283: esac
1284: # Be sure to have absolute directory names.
1.1 bertrand 1285: case $ac_val in
1286: [\\/$]* | ?:[\\/]* ) continue;;
1287: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288: esac
1.36 bertrand 1289: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 bertrand 1290: done
1291:
1292: # There might be people who depend on the old broken behavior: `$host'
1293: # used to hold the argument of --host etc.
1294: # FIXME: To remove some day.
1295: build=$build_alias
1296: host=$host_alias
1297: target=$target_alias
1298:
1299: # FIXME: To remove some day.
1300: if test "x$host_alias" != x; then
1301: if test "x$build_alias" = x; then
1302: cross_compiling=maybe
1.36 bertrand 1303: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1304: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 bertrand 1305: elif test "x$build_alias" != "x$host_alias"; then
1306: cross_compiling=yes
1307: fi
1308: fi
1309:
1310: ac_tool_prefix=
1311: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312:
1313: test "$silent" = yes && exec 6>/dev/null
1314:
1315:
1316: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317: ac_ls_di=`ls -di .` &&
1318: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36 bertrand 1319: as_fn_error $? "working directory cannot be determined"
1.1 bertrand 1320: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36 bertrand 1321: as_fn_error $? "pwd does not report name of working directory"
1.1 bertrand 1322:
1323:
1324: # Find the source files, if location was not specified.
1325: if test -z "$srcdir"; then
1326: ac_srcdir_defaulted=yes
1327: # Try the directory containing this script, then the parent directory.
1.15 bertrand 1328: ac_confdir=`$as_dirname -- "$as_myself" ||
1329: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330: X"$as_myself" : 'X\(//\)[^/]' \| \
1331: X"$as_myself" : 'X\(//\)$' \| \
1332: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333: $as_echo X"$as_myself" |
1.1 bertrand 1334: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335: s//\1/
1336: q
1337: }
1338: /^X\(\/\/\)[^/].*/{
1339: s//\1/
1340: q
1341: }
1342: /^X\(\/\/\)$/{
1343: s//\1/
1344: q
1345: }
1346: /^X\(\/\).*/{
1347: s//\1/
1348: q
1349: }
1350: s/.*/./; q'`
1351: srcdir=$ac_confdir
1352: if test ! -r "$srcdir/$ac_unique_file"; then
1353: srcdir=..
1354: fi
1355: else
1356: ac_srcdir_defaulted=no
1357: fi
1358: if test ! -r "$srcdir/$ac_unique_file"; then
1359: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36 bertrand 1360: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 bertrand 1361: fi
1362: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363: ac_abs_confdir=`(
1.36 bertrand 1364: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 bertrand 1365: pwd)`
1366: # When building in place, set srcdir=.
1367: if test "$ac_abs_confdir" = "$ac_pwd"; then
1368: srcdir=.
1369: fi
1370: # Remove unnecessary trailing slashes from srcdir.
1371: # Double slashes in file names in object file debugging info
1372: # mess up M-x gdb in Emacs.
1373: case $srcdir in
1374: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375: esac
1376: for ac_var in $ac_precious_vars; do
1377: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378: eval ac_env_${ac_var}_value=\$${ac_var}
1379: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381: done
1382:
1383: #
1384: # Report the --help message.
1385: #
1386: if test "$ac_init_help" = "long"; then
1387: # Omit some internal or obsolete options to make the list less imposing.
1388: # This message is too long to be a string in the A/UX 3.1 sh.
1389: cat <<_ACEOF
1.86 bertrand 1390: \`configure' configures rpl 4.1.4 to adapt to many kinds of systems.
1.1 bertrand 1391:
1392: Usage: $0 [OPTION]... [VAR=VALUE]...
1393:
1394: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395: VAR=VALUE. See below for descriptions of some of the useful variables.
1396:
1397: Defaults for the options are specified in brackets.
1398:
1399: Configuration:
1400: -h, --help display this help and exit
1401: --help=short display options specific to this package
1402: --help=recursive display the short help of all the included packages
1403: -V, --version display version information and exit
1.36 bertrand 1404: -q, --quiet, --silent do not print \`checking ...' messages
1.1 bertrand 1405: --cache-file=FILE cache test results in FILE [disabled]
1406: -C, --config-cache alias for \`--cache-file=config.cache'
1407: -n, --no-create do not create output files
1408: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409:
1410: Installation directories:
1411: --prefix=PREFIX install architecture-independent files in PREFIX
1.15 bertrand 1412: [$ac_default_prefix]
1.1 bertrand 1413: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.15 bertrand 1414: [PREFIX]
1.1 bertrand 1415:
1416: By default, \`make install' will install all the files in
1417: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419: for instance \`--prefix=\$HOME'.
1420:
1421: For better control, use the options below.
1422:
1423: Fine tuning of the installation directories:
1.15 bertrand 1424: --bindir=DIR user executables [EPREFIX/bin]
1425: --sbindir=DIR system admin executables [EPREFIX/sbin]
1426: --libexecdir=DIR program executables [EPREFIX/libexec]
1427: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430: --libdir=DIR object code libraries [EPREFIX/lib]
1431: --includedir=DIR C header files [PREFIX/include]
1432: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435: --infodir=DIR info documentation [DATAROOTDIR/info]
1436: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437: --mandir=DIR man documentation [DATAROOTDIR/man]
1438: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1439: --htmldir=DIR html documentation [DOCDIR]
1440: --dvidir=DIR dvi documentation [DOCDIR]
1441: --pdfdir=DIR pdf documentation [DOCDIR]
1442: --psdir=DIR ps documentation [DOCDIR]
1.1 bertrand 1443: _ACEOF
1444:
1445: cat <<\_ACEOF
1446:
1447: Program names:
1448: --program-prefix=PREFIX prepend PREFIX to installed program names
1449: --program-suffix=SUFFIX append SUFFIX to installed program names
1450: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451:
1452: X features:
1453: --x-includes=DIR X include files are in DIR
1454: --x-libraries=DIR X library files are in DIR
1455:
1456: System types:
1457: --build=BUILD configure for building on BUILD [guessed]
1458: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459: --target=TARGET configure for building compilers for TARGET [HOST]
1460: _ACEOF
1461: fi
1462:
1463: if test -n "$ac_init_help"; then
1464: case $ac_init_help in
1.86 bertrand 1465: short | recursive ) echo "Configuration of rpl 4.1.4:";;
1.1 bertrand 1466: esac
1467: cat <<\_ACEOF
1468:
1469: Optional Features:
1.15 bertrand 1470: --disable-option-checking ignore unrecognized --enable/--with options
1.1 bertrand 1471: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473: --disable-dependency-tracking speeds up one-time build
1474: --enable-dependency-tracking do not reject slow dependency extractors
1.91 ! bertrand 1475: --enable-recursive recursive configuration (default=yes)
1.88 bertrand 1476: --enable-rplcas compile rplcas (default=no)
1.1 bertrand 1477: --enable-optimization set compiler flags [default=environment variables -O3]
1.81 bertrand 1478: --enable-sysv-ipcs use SystemV IPC functions [default=guessed]
1.30 bertrand 1479: --enable-full-static build static RPL/2 engine [default=shared]
1.1 bertrand 1480: --enable-final-encoding force final encoding [default=guessed]
1481: --enable-tex provide the TeX support [default=guessed]
1482: --enable-vim provide the vim support [default=guessed]
1483: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1484: --enable-gnuplot provide the GnuPlot support [default=guessed]
1485: --enable-motif provide the Motif support [default=guessed]
1486: --enable-experimental enable experimental code [default=no]
1487: --enable-debug enable debug code [default=no]
1488: --enable-profile enable profile code [default=no]
1489: --enable-final-run-path=PATH enable another final run path than PREFIX
1490:
1491: Optional Packages:
1492: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494: --with-x use the X Window System
1.64 bertrand 1495: --with-32bits-abi force 32bits ABI (multilib)
1.67 bertrand 1496: --with-64bits-abi force 64bits ABI (multilib)
1.88 bertrand 1497: --with-rpltools specify rpltools path used for cross compilation
1.1 bertrand 1498: --with-mysql=PATH specify directory for installed mysql
1499: --with-postgresql=PATH specify directory for installed postgresql
1.40 bertrand 1500: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1.15 bertrand 1501: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1.1 bertrand 1502:
1503: Some influential environment variables:
1504: CC C compiler command
1505: CFLAGS C compiler flags
1506: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507: nonstandard directory <lib dir>
1508: LIBS libraries to pass to the linker, e.g. -l<library>
1.15 bertrand 1509: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 bertrand 1510: you have headers in a nonstandard directory <include dir>
1511: CXX C++ compiler command
1512: CXXFLAGS C++ compiler flags
1513: F77 Fortran 77 compiler command
1514: FFLAGS Fortran 77 compiler flags
1515: FC Fortran compiler command
1516: FCFLAGS Fortran compiler flags
1517: XMKMF Path to xmkmf, Makefile generator for X Window System
1518: CPP C preprocessor
1519:
1520: Use these variables to override the choices made by `configure' or to help
1521: it to find libraries and programs with nonstandard names/locations.
1522:
1.15 bertrand 1523: Report bugs to the package provider.
1.1 bertrand 1524: _ACEOF
1525: ac_status=$?
1526: fi
1527:
1528: if test "$ac_init_help" = "recursive"; then
1529: # If there are subdirs, report their specific --help.
1530: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15 bertrand 1531: test -d "$ac_dir" ||
1532: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533: continue
1.1 bertrand 1534: ac_builddir=.
1535:
1536: case "$ac_dir" in
1537: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538: *)
1.15 bertrand 1539: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 1540: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 1541: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 1542: case $ac_top_builddir_sub in
1543: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545: esac ;;
1546: esac
1547: ac_abs_top_builddir=$ac_pwd
1548: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549: # for backward compatibility:
1550: ac_top_builddir=$ac_top_build_prefix
1551:
1552: case $srcdir in
1553: .) # We are building in place.
1554: ac_srcdir=.
1555: ac_top_srcdir=$ac_top_builddir_sub
1556: ac_abs_top_srcdir=$ac_pwd ;;
1557: [\\/]* | ?:[\\/]* ) # Absolute name.
1558: ac_srcdir=$srcdir$ac_dir_suffix;
1559: ac_top_srcdir=$srcdir
1560: ac_abs_top_srcdir=$srcdir ;;
1561: *) # Relative name.
1562: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563: ac_top_srcdir=$ac_top_build_prefix$srcdir
1564: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565: esac
1566: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567:
1568: cd "$ac_dir" || { ac_status=$?; continue; }
1569: # Check for guested configure.
1570: if test -f "$ac_srcdir/configure.gnu"; then
1571: echo &&
1572: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573: elif test -f "$ac_srcdir/configure"; then
1574: echo &&
1575: $SHELL "$ac_srcdir/configure" --help=recursive
1576: else
1.15 bertrand 1577: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 bertrand 1578: fi || ac_status=$?
1579: cd "$ac_pwd" || { ac_status=$?; break; }
1580: done
1581: fi
1582:
1583: test -n "$ac_init_help" && exit $ac_status
1584: if $ac_init_version; then
1585: cat <<\_ACEOF
1.86 bertrand 1586: rpl configure 4.1.4
1.57 bertrand 1587: generated by GNU Autoconf 2.68
1.1 bertrand 1588:
1.36 bertrand 1589: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 1590: This configure script is free software; the Free Software Foundation
1591: gives unlimited permission to copy, distribute and modify it.
1592: _ACEOF
1593: exit
1594: fi
1595:
1.15 bertrand 1596: ## ------------------------ ##
1597: ## Autoconf initialization. ##
1598: ## ------------------------ ##
1599:
1600: # ac_fn_c_try_compile LINENO
1601: # --------------------------
1602: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603: ac_fn_c_try_compile ()
1604: {
1605: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606: rm -f conftest.$ac_objext
1607: if { { ac_try="$ac_compile"
1608: case "(($ac_try" in
1609: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610: *) ac_try_echo=$ac_try;;
1611: esac
1612: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613: $as_echo "$ac_try_echo"; } >&5
1614: (eval "$ac_compile") 2>conftest.err
1615: ac_status=$?
1616: if test -s conftest.err; then
1617: grep -v '^ *+' conftest.err >conftest.er1
1618: cat conftest.er1 >&5
1619: mv -f conftest.er1 conftest.err
1620: fi
1621: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622: test $ac_status = 0; } && {
1623: test -z "$ac_c_werror_flag" ||
1624: test ! -s conftest.err
1625: } && test -s conftest.$ac_objext; then :
1626: ac_retval=0
1627: else
1628: $as_echo "$as_me: failed program was:" >&5
1629: sed 's/^/| /' conftest.$ac_ext >&5
1630:
1631: ac_retval=1
1632: fi
1.57 bertrand 1633: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1634: as_fn_set_status $ac_retval
1.1 bertrand 1635:
1.15 bertrand 1636: } # ac_fn_c_try_compile
1.1 bertrand 1637:
1.15 bertrand 1638: # ac_fn_cxx_try_compile LINENO
1639: # ----------------------------
1640: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1641: ac_fn_cxx_try_compile ()
1.1 bertrand 1642: {
1.15 bertrand 1643: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644: rm -f conftest.$ac_objext
1645: if { { ac_try="$ac_compile"
1646: case "(($ac_try" in
1647: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648: *) ac_try_echo=$ac_try;;
1649: esac
1650: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651: $as_echo "$ac_try_echo"; } >&5
1652: (eval "$ac_compile") 2>conftest.err
1653: ac_status=$?
1654: if test -s conftest.err; then
1655: grep -v '^ *+' conftest.err >conftest.er1
1656: cat conftest.er1 >&5
1657: mv -f conftest.er1 conftest.err
1658: fi
1659: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660: test $ac_status = 0; } && {
1661: test -z "$ac_cxx_werror_flag" ||
1662: test ! -s conftest.err
1663: } && test -s conftest.$ac_objext; then :
1664: ac_retval=0
1665: else
1666: $as_echo "$as_me: failed program was:" >&5
1667: sed 's/^/| /' conftest.$ac_ext >&5
1668:
1669: ac_retval=1
1670: fi
1.57 bertrand 1671: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1672: as_fn_set_status $ac_retval
1.1 bertrand 1673:
1.15 bertrand 1674: } # ac_fn_cxx_try_compile
1.1 bertrand 1675:
1.15 bertrand 1676: # ac_fn_f77_try_compile LINENO
1677: # ----------------------------
1678: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1679: ac_fn_f77_try_compile ()
1680: {
1681: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682: rm -f conftest.$ac_objext
1683: if { { ac_try="$ac_compile"
1684: case "(($ac_try" in
1685: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686: *) ac_try_echo=$ac_try;;
1687: esac
1688: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689: $as_echo "$ac_try_echo"; } >&5
1690: (eval "$ac_compile") 2>conftest.err
1691: ac_status=$?
1692: if test -s conftest.err; then
1693: grep -v '^ *+' conftest.err >conftest.er1
1694: cat conftest.er1 >&5
1695: mv -f conftest.er1 conftest.err
1696: fi
1697: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698: test $ac_status = 0; } && {
1699: test -z "$ac_f77_werror_flag" ||
1700: test ! -s conftest.err
1701: } && test -s conftest.$ac_objext; then :
1702: ac_retval=0
1703: else
1704: $as_echo "$as_me: failed program was:" >&5
1705: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1706:
1.15 bertrand 1707: ac_retval=1
1708: fi
1.57 bertrand 1709: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1710: as_fn_set_status $ac_retval
1.1 bertrand 1711:
1.15 bertrand 1712: } # ac_fn_f77_try_compile
1.1 bertrand 1713:
1.15 bertrand 1714: # ac_fn_fc_try_compile LINENO
1715: # ---------------------------
1716: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717: ac_fn_fc_try_compile ()
1718: {
1719: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720: rm -f conftest.$ac_objext
1721: if { { ac_try="$ac_compile"
1722: case "(($ac_try" in
1723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724: *) ac_try_echo=$ac_try;;
1725: esac
1726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727: $as_echo "$ac_try_echo"; } >&5
1728: (eval "$ac_compile") 2>conftest.err
1729: ac_status=$?
1730: if test -s conftest.err; then
1731: grep -v '^ *+' conftest.err >conftest.er1
1732: cat conftest.er1 >&5
1733: mv -f conftest.er1 conftest.err
1734: fi
1735: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736: test $ac_status = 0; } && {
1737: test -z "$ac_fc_werror_flag" ||
1738: test ! -s conftest.err
1739: } && test -s conftest.$ac_objext; then :
1740: ac_retval=0
1741: else
1742: $as_echo "$as_me: failed program was:" >&5
1743: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1744:
1.15 bertrand 1745: ac_retval=1
1746: fi
1.57 bertrand 1747: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1748: as_fn_set_status $ac_retval
1.1 bertrand 1749:
1.15 bertrand 1750: } # ac_fn_fc_try_compile
1.1 bertrand 1751:
1.15 bertrand 1752: # ac_fn_c_try_cpp LINENO
1753: # ----------------------
1754: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755: ac_fn_c_try_cpp ()
1756: {
1757: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758: if { { ac_try="$ac_cpp conftest.$ac_ext"
1759: case "(($ac_try" in
1760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761: *) ac_try_echo=$ac_try;;
1762: esac
1763: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764: $as_echo "$ac_try_echo"; } >&5
1765: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766: ac_status=$?
1767: if test -s conftest.err; then
1768: grep -v '^ *+' conftest.err >conftest.er1
1769: cat conftest.er1 >&5
1770: mv -f conftest.er1 conftest.err
1771: fi
1772: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36 bertrand 1773: test $ac_status = 0; } > conftest.i && {
1.15 bertrand 1774: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775: test ! -s conftest.err
1776: }; then :
1777: ac_retval=0
1778: else
1779: $as_echo "$as_me: failed program was:" >&5
1780: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1781:
1.15 bertrand 1782: ac_retval=1
1783: fi
1.57 bertrand 1784: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1785: as_fn_set_status $ac_retval
1.1 bertrand 1786:
1.15 bertrand 1787: } # ac_fn_c_try_cpp
1.1 bertrand 1788:
1.15 bertrand 1789: # ac_fn_c_try_link LINENO
1790: # -----------------------
1791: # Try to link conftest.$ac_ext, and return whether this succeeded.
1792: ac_fn_c_try_link ()
1793: {
1794: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795: rm -f conftest.$ac_objext conftest$ac_exeext
1796: if { { ac_try="$ac_link"
1797: case "(($ac_try" in
1798: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799: *) ac_try_echo=$ac_try;;
1800: esac
1801: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802: $as_echo "$ac_try_echo"; } >&5
1803: (eval "$ac_link") 2>conftest.err
1804: ac_status=$?
1805: if test -s conftest.err; then
1806: grep -v '^ *+' conftest.err >conftest.er1
1807: cat conftest.er1 >&5
1808: mv -f conftest.er1 conftest.err
1809: fi
1810: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811: test $ac_status = 0; } && {
1812: test -z "$ac_c_werror_flag" ||
1813: test ! -s conftest.err
1814: } && test -s conftest$ac_exeext && {
1815: test "$cross_compiling" = yes ||
1816: $as_test_x conftest$ac_exeext
1817: }; then :
1818: ac_retval=0
1819: else
1820: $as_echo "$as_me: failed program was:" >&5
1821: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1822:
1.15 bertrand 1823: ac_retval=1
1824: fi
1825: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827: # interfere with the next link command; also delete a directory that is
1828: # left behind by Apple's compiler. We do this before executing the actions.
1829: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57 bertrand 1830: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1831: as_fn_set_status $ac_retval
1.1 bertrand 1832:
1.15 bertrand 1833: } # ac_fn_c_try_link
1.1 bertrand 1834:
1.15 bertrand 1835: # ac_fn_c_check_func LINENO FUNC VAR
1836: # ----------------------------------
1837: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838: ac_fn_c_check_func ()
1839: {
1840: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 1843: if eval \${$3+:} false; then :
1.15 bertrand 1844: $as_echo_n "(cached) " >&6
1845: else
1846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847: /* end confdefs.h. */
1848: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850: #define $2 innocuous_$2
1.1 bertrand 1851:
1.15 bertrand 1852: /* System header to define __stub macros and hopefully few prototypes,
1853: which can conflict with char $2 (); below.
1854: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855: <limits.h> exists even on freestanding compilers. */
1.1 bertrand 1856:
1.15 bertrand 1857: #ifdef __STDC__
1858: # include <limits.h>
1859: #else
1860: # include <assert.h>
1861: #endif
1.1 bertrand 1862:
1.15 bertrand 1863: #undef $2
1.1 bertrand 1864:
1.15 bertrand 1865: /* Override any GCC internal prototype to avoid an error.
1866: Use char because int might match the return type of a GCC
1867: builtin and then its argument prototype would still apply. */
1868: #ifdef __cplusplus
1869: extern "C"
1870: #endif
1871: char $2 ();
1872: /* The GNU C library defines this for functions which it implements
1873: to always fail with ENOSYS. Some functions are actually named
1874: something starting with __ and the normal name is an alias. */
1875: #if defined __stub_$2 || defined __stub___$2
1876: choke me
1877: #endif
1.1 bertrand 1878:
1.15 bertrand 1879: int
1880: main ()
1881: {
1882: return $2 ();
1883: ;
1884: return 0;
1885: }
1.1 bertrand 1886: _ACEOF
1.15 bertrand 1887: if ac_fn_c_try_link "$LINENO"; then :
1888: eval "$3=yes"
1889: else
1890: eval "$3=no"
1891: fi
1892: rm -f core conftest.err conftest.$ac_objext \
1893: conftest$ac_exeext conftest.$ac_ext
1894: fi
1895: eval ac_res=\$$3
1896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897: $as_echo "$ac_res" >&6; }
1.57 bertrand 1898: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 1899:
1.15 bertrand 1900: } # ac_fn_c_check_func
1.1 bertrand 1901:
1.83 bertrand 1902: # ac_fn_c_try_run LINENO
1903: # ----------------------
1904: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905: # that executables *can* be run.
1906: ac_fn_c_try_run ()
1907: {
1908: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909: if { { ac_try="$ac_link"
1910: case "(($ac_try" in
1911: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912: *) ac_try_echo=$ac_try;;
1913: esac
1914: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915: $as_echo "$ac_try_echo"; } >&5
1916: (eval "$ac_link") 2>&5
1917: ac_status=$?
1918: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1920: { { case "(($ac_try" in
1921: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922: *) ac_try_echo=$ac_try;;
1923: esac
1924: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925: $as_echo "$ac_try_echo"; } >&5
1926: (eval "$ac_try") 2>&5
1927: ac_status=$?
1928: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929: test $ac_status = 0; }; }; then :
1930: ac_retval=0
1931: else
1932: $as_echo "$as_me: program exited with status $ac_status" >&5
1933: $as_echo "$as_me: failed program was:" >&5
1934: sed 's/^/| /' conftest.$ac_ext >&5
1935:
1936: ac_retval=$ac_status
1937: fi
1938: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940: as_fn_set_status $ac_retval
1941:
1942: } # ac_fn_c_try_run
1943:
1.33 bertrand 1944: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945: # -------------------------------------------
1946: # Tests whether TYPE exists after having included INCLUDES, setting cache
1947: # variable VAR accordingly.
1948: ac_fn_c_check_type ()
1949: {
1950: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 1953: if eval \${$3+:} false; then :
1.33 bertrand 1954: $as_echo_n "(cached) " >&6
1955: else
1956: eval "$3=no"
1957: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958: /* end confdefs.h. */
1959: $4
1960: int
1961: main ()
1962: {
1963: if (sizeof ($2))
1964: return 0;
1965: ;
1966: return 0;
1967: }
1968: _ACEOF
1969: if ac_fn_c_try_compile "$LINENO"; then :
1970: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971: /* end confdefs.h. */
1972: $4
1973: int
1974: main ()
1975: {
1976: if (sizeof (($2)))
1977: return 0;
1978: ;
1979: return 0;
1980: }
1981: _ACEOF
1982: if ac_fn_c_try_compile "$LINENO"; then :
1983:
1984: else
1985: eval "$3=yes"
1986: fi
1987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988: fi
1989: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990: fi
1991: eval ac_res=\$$3
1992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993: $as_echo "$ac_res" >&6; }
1.57 bertrand 1994: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33 bertrand 1995:
1996: } # ac_fn_c_check_type
1997:
1.15 bertrand 1998: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1999: # --------------------------------------------
2000: # Tries to find the compile-time value of EXPR in a program that includes
2001: # INCLUDES, setting VAR accordingly. Returns whether the value could be
2002: # computed
2003: ac_fn_c_compute_int ()
2004: {
2005: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006: if test "$cross_compiling" = yes; then
2007: # Depending upon the size, compute the lo and hi bounds.
2008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009: /* end confdefs.h. */
2010: $4
2011: int
2012: main ()
2013: {
2014: static int test_array [1 - 2 * !(($2) >= 0)];
2015: test_array [0] = 0
1.1 bertrand 2016:
1.15 bertrand 2017: ;
2018: return 0;
2019: }
1.1 bertrand 2020: _ACEOF
1.15 bertrand 2021: if ac_fn_c_try_compile "$LINENO"; then :
2022: ac_lo=0 ac_mid=0
2023: while :; do
2024: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025: /* end confdefs.h. */
2026: $4
2027: int
2028: main ()
2029: {
2030: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2031: test_array [0] = 0
1.1 bertrand 2032:
1.15 bertrand 2033: ;
2034: return 0;
2035: }
2036: _ACEOF
2037: if ac_fn_c_try_compile "$LINENO"; then :
2038: ac_hi=$ac_mid; break
2039: else
2040: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2041: if test $ac_lo -le $ac_mid; then
2042: ac_lo= ac_hi=
2043: break
2044: fi
2045: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2046: fi
2047: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048: done
2049: else
2050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051: /* end confdefs.h. */
2052: $4
2053: int
2054: main ()
2055: {
2056: static int test_array [1 - 2 * !(($2) < 0)];
2057: test_array [0] = 0
1.1 bertrand 2058:
1.15 bertrand 2059: ;
2060: return 0;
2061: }
1.1 bertrand 2062: _ACEOF
1.15 bertrand 2063: if ac_fn_c_try_compile "$LINENO"; then :
2064: ac_hi=-1 ac_mid=-1
2065: while :; do
2066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067: /* end confdefs.h. */
2068: $4
2069: int
2070: main ()
2071: {
2072: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2073: test_array [0] = 0
1.1 bertrand 2074:
1.15 bertrand 2075: ;
2076: return 0;
2077: }
2078: _ACEOF
2079: if ac_fn_c_try_compile "$LINENO"; then :
2080: ac_lo=$ac_mid; break
2081: else
2082: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2083: if test $ac_mid -le $ac_hi; then
2084: ac_lo= ac_hi=
2085: break
2086: fi
2087: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2088: fi
2089: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090: done
1.1 bertrand 2091: else
1.15 bertrand 2092: ac_lo= ac_hi=
2093: fi
2094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 2095: fi
1.15 bertrand 2096: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097: # Binary search between lo and hi bounds.
2098: while test "x$ac_lo" != "x$ac_hi"; do
2099: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101: /* end confdefs.h. */
2102: $4
2103: int
2104: main ()
2105: {
2106: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2107: test_array [0] = 0
1.1 bertrand 2108:
1.15 bertrand 2109: ;
2110: return 0;
2111: }
2112: _ACEOF
2113: if ac_fn_c_try_compile "$LINENO"; then :
2114: ac_hi=$ac_mid
1.1 bertrand 2115: else
1.15 bertrand 2116: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1 bertrand 2117: fi
1.15 bertrand 2118: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119: done
2120: case $ac_lo in #((
2121: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2122: '') ac_retval=1 ;;
2123: esac
2124: else
2125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126: /* end confdefs.h. */
2127: $4
2128: static long int longval () { return $2; }
2129: static unsigned long int ulongval () { return $2; }
2130: #include <stdio.h>
2131: #include <stdlib.h>
2132: int
2133: main ()
2134: {
1.1 bertrand 2135:
1.15 bertrand 2136: FILE *f = fopen ("conftest.val", "w");
2137: if (! f)
2138: return 1;
2139: if (($2) < 0)
2140: {
2141: long int i = longval ();
2142: if (i != ($2))
2143: return 1;
2144: fprintf (f, "%ld", i);
2145: }
2146: else
2147: {
2148: unsigned long int i = ulongval ();
2149: if (i != ($2))
2150: return 1;
2151: fprintf (f, "%lu", i);
2152: }
2153: /* Do not output a trailing newline, as this causes \r\n confusion
2154: on some platforms. */
2155: return ferror (f) || fclose (f) != 0;
2156:
2157: ;
2158: return 0;
2159: }
2160: _ACEOF
2161: if ac_fn_c_try_run "$LINENO"; then :
2162: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2163: else
2164: ac_retval=1
1.14 bertrand 2165: fi
1.15 bertrand 2166: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2167: conftest.$ac_objext conftest.beam conftest.$ac_ext
2168: rm -f conftest.val
1.14 bertrand 2169:
1.15 bertrand 2170: fi
1.57 bertrand 2171: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 2172: as_fn_set_status $ac_retval
1.14 bertrand 2173:
1.15 bertrand 2174: } # ac_fn_c_compute_int
1.1 bertrand 2175:
1.15 bertrand 2176: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2177: # -------------------------------------------------------
2178: # Tests whether HEADER exists and can be compiled using the include files in
2179: # INCLUDES, setting the cache variable VAR accordingly.
2180: ac_fn_c_check_header_compile ()
2181: {
2182: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2185: if eval \${$3+:} false; then :
1.15 bertrand 2186: $as_echo_n "(cached) " >&6
2187: else
2188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189: /* end confdefs.h. */
2190: $4
2191: #include <$2>
2192: _ACEOF
2193: if ac_fn_c_try_compile "$LINENO"; then :
2194: eval "$3=yes"
2195: else
2196: eval "$3=no"
2197: fi
2198: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199: fi
2200: eval ac_res=\$$3
2201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202: $as_echo "$ac_res" >&6; }
1.57 bertrand 2203: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 2204:
1.15 bertrand 2205: } # ac_fn_c_check_header_compile
1.1 bertrand 2206:
1.15 bertrand 2207: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2208: # -------------------------------------------------------
2209: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2210: # the include files in INCLUDES and setting the cache variable VAR
2211: # accordingly.
2212: ac_fn_c_check_header_mongrel ()
2213: {
2214: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57 bertrand 2215: if eval \${$3+:} false; then :
1.15 bertrand 2216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2218: if eval \${$3+:} false; then :
1.15 bertrand 2219: $as_echo_n "(cached) " >&6
2220: fi
2221: eval ac_res=\$$3
2222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223: $as_echo "$ac_res" >&6; }
2224: else
2225: # Is the header compilable?
2226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2227: $as_echo_n "checking $2 usability... " >&6; }
2228: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229: /* end confdefs.h. */
2230: $4
2231: #include <$2>
2232: _ACEOF
2233: if ac_fn_c_try_compile "$LINENO"; then :
2234: ac_header_compiler=yes
2235: else
2236: ac_header_compiler=no
2237: fi
2238: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2240: $as_echo "$ac_header_compiler" >&6; }
1.1 bertrand 2241:
1.15 bertrand 2242: # Is the header present?
2243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2244: $as_echo_n "checking $2 presence... " >&6; }
2245: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246: /* end confdefs.h. */
2247: #include <$2>
2248: _ACEOF
2249: if ac_fn_c_try_cpp "$LINENO"; then :
2250: ac_header_preproc=yes
2251: else
2252: ac_header_preproc=no
2253: fi
1.36 bertrand 2254: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 2255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2256: $as_echo "$ac_header_preproc" >&6; }
1.1 bertrand 2257:
1.15 bertrand 2258: # So? What about this header?
2259: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2260: yes:no: )
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2262: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2263: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2264: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2265: ;;
2266: no:yes:* )
2267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2268: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2270: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2272: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2274: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2277: ;;
2278: esac
2279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2281: if eval \${$3+:} false; then :
1.15 bertrand 2282: $as_echo_n "(cached) " >&6
2283: else
2284: eval "$3=\$ac_header_compiler"
2285: fi
2286: eval ac_res=\$$3
2287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288: $as_echo "$ac_res" >&6; }
2289: fi
1.57 bertrand 2290: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 2291:
1.15 bertrand 2292: } # ac_fn_c_check_header_mongrel
2293: cat >config.log <<_ACEOF
2294: This file contains any messages produced by compilers while
2295: running configure, to aid debugging if configure makes a mistake.
1.1 bertrand 2296:
1.86 bertrand 2297: It was created by rpl $as_me 4.1.4, which was
1.57 bertrand 2298: generated by GNU Autoconf 2.68. Invocation command line was
1.1 bertrand 2299:
1.15 bertrand 2300: $ $0 $@
1.1 bertrand 2301:
1.15 bertrand 2302: _ACEOF
2303: exec 5>>config.log
2304: {
2305: cat <<_ASUNAME
2306: ## --------- ##
2307: ## Platform. ##
2308: ## --------- ##
1.1 bertrand 2309:
1.15 bertrand 2310: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 bertrand 2315:
1.15 bertrand 2316: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1 bertrand 2318:
1.15 bertrand 2319: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2320: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2321: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2323: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2324: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2325: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1 bertrand 2326:
1.15 bertrand 2327: _ASUNAME
1.1 bertrand 2328:
1.15 bertrand 2329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330: for as_dir in $PATH
2331: do
2332: IFS=$as_save_IFS
2333: test -z "$as_dir" && as_dir=.
2334: $as_echo "PATH: $as_dir"
2335: done
2336: IFS=$as_save_IFS
1.1 bertrand 2337:
1.15 bertrand 2338: } >&5
1.1 bertrand 2339:
1.15 bertrand 2340: cat >&5 <<_ACEOF
1.1 bertrand 2341:
2342:
1.15 bertrand 2343: ## ----------- ##
2344: ## Core tests. ##
2345: ## ----------- ##
1.1 bertrand 2346:
1.15 bertrand 2347: _ACEOF
1.1 bertrand 2348:
2349:
1.15 bertrand 2350: # Keep a trace of the command line.
2351: # Strip out --no-create and --no-recursion so they do not pile up.
2352: # Strip out --silent because we don't want to record it for future runs.
2353: # Also quote any args containing shell meta-characters.
2354: # Make two passes to allow for proper duplicate-argument suppression.
2355: ac_configure_args=
2356: ac_configure_args0=
2357: ac_configure_args1=
2358: ac_must_keep_next=false
2359: for ac_pass in 1 2
2360: do
2361: for ac_arg
2362: do
2363: case $ac_arg in
2364: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366: | -silent | --silent | --silen | --sile | --sil)
2367: continue ;;
2368: *\'*)
2369: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370: esac
2371: case $ac_pass in
2372: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373: 2)
2374: as_fn_append ac_configure_args1 " '$ac_arg'"
2375: if test $ac_must_keep_next = true; then
2376: ac_must_keep_next=false # Got value, back to normal.
2377: else
2378: case $ac_arg in
2379: *=* | --config-cache | -C | -disable-* | --disable-* \
2380: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382: | -with-* | --with-* | -without-* | --without-* | --x)
2383: case "$ac_configure_args0 " in
2384: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385: esac
2386: ;;
2387: -* ) ac_must_keep_next=true ;;
2388: esac
2389: fi
2390: as_fn_append ac_configure_args " '$ac_arg'"
2391: ;;
2392: esac
2393: done
2394: done
2395: { ac_configure_args0=; unset ac_configure_args0;}
2396: { ac_configure_args1=; unset ac_configure_args1;}
1.1 bertrand 2397:
1.15 bertrand 2398: # When interrupted or exit'd, cleanup temporary files, and complete
2399: # config.log. We remove comments because anyway the quotes in there
2400: # would cause problems or look ugly.
2401: # WARNING: Use '\'' to represent an apostrophe within the trap.
2402: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403: trap 'exit_status=$?
2404: # Save into config.log some information that might help in debugging.
2405: {
2406: echo
1.1 bertrand 2407:
1.36 bertrand 2408: $as_echo "## ---------------- ##
1.15 bertrand 2409: ## Cache variables. ##
1.36 bertrand 2410: ## ---------------- ##"
1.15 bertrand 2411: echo
2412: # The following way of writing the cache mishandles newlines in values,
2413: (
2414: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415: eval ac_val=\$$ac_var
2416: case $ac_val in #(
2417: *${as_nl}*)
2418: case $ac_var in #(
2419: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421: esac
2422: case $ac_var in #(
2423: _ | IFS | as_nl) ;; #(
2424: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425: *) { eval $ac_var=; unset $ac_var;} ;;
2426: esac ;;
2427: esac
2428: done
2429: (set) 2>&1 |
2430: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431: *${as_nl}ac_space=\ *)
2432: sed -n \
2433: "s/'\''/'\''\\\\'\'''\''/g;
2434: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435: ;; #(
2436: *)
2437: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438: ;;
2439: esac |
2440: sort
2441: )
2442: echo
1.1 bertrand 2443:
1.36 bertrand 2444: $as_echo "## ----------------- ##
1.15 bertrand 2445: ## Output variables. ##
1.36 bertrand 2446: ## ----------------- ##"
1.15 bertrand 2447: echo
2448: for ac_var in $ac_subst_vars
2449: do
2450: eval ac_val=\$$ac_var
2451: case $ac_val in
2452: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453: esac
2454: $as_echo "$ac_var='\''$ac_val'\''"
2455: done | sort
2456: echo
1.1 bertrand 2457:
1.15 bertrand 2458: if test -n "$ac_subst_files"; then
1.36 bertrand 2459: $as_echo "## ------------------- ##
1.15 bertrand 2460: ## File substitutions. ##
1.36 bertrand 2461: ## ------------------- ##"
1.15 bertrand 2462: echo
2463: for ac_var in $ac_subst_files
2464: do
2465: eval ac_val=\$$ac_var
2466: case $ac_val in
2467: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468: esac
2469: $as_echo "$ac_var='\''$ac_val'\''"
2470: done | sort
2471: echo
1.14 bertrand 2472: fi
2473:
1.15 bertrand 2474: if test -s confdefs.h; then
1.36 bertrand 2475: $as_echo "## ----------- ##
1.15 bertrand 2476: ## confdefs.h. ##
1.36 bertrand 2477: ## ----------- ##"
1.15 bertrand 2478: echo
2479: cat confdefs.h
2480: echo
2481: fi
2482: test "$ac_signal" != 0 &&
2483: $as_echo "$as_me: caught signal $ac_signal"
2484: $as_echo "$as_me: exit $exit_status"
2485: } >&5
2486: rm -f core *.core core.conftest.* &&
2487: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488: exit $exit_status
2489: ' 0
2490: for ac_signal in 1 2 13 15; do
2491: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492: done
2493: ac_signal=0
1.14 bertrand 2494:
1.15 bertrand 2495: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2496: rm -f -r conftest* confdefs.h
1.14 bertrand 2497:
1.15 bertrand 2498: $as_echo "/* confdefs.h */" > confdefs.h
1.14 bertrand 2499:
1.15 bertrand 2500: # Predefined preprocessor variables.
1.14 bertrand 2501:
1.15 bertrand 2502: cat >>confdefs.h <<_ACEOF
2503: #define PACKAGE_NAME "$PACKAGE_NAME"
2504: _ACEOF
1.14 bertrand 2505:
1.15 bertrand 2506: cat >>confdefs.h <<_ACEOF
2507: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14 bertrand 2508: _ACEOF
2509:
1.15 bertrand 2510: cat >>confdefs.h <<_ACEOF
2511: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512: _ACEOF
1.14 bertrand 2513:
1.15 bertrand 2514: cat >>confdefs.h <<_ACEOF
2515: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14 bertrand 2516: _ACEOF
2517:
1.15 bertrand 2518: cat >>confdefs.h <<_ACEOF
2519: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520: _ACEOF
1.14 bertrand 2521:
1.15 bertrand 2522: cat >>confdefs.h <<_ACEOF
2523: #define PACKAGE_URL "$PACKAGE_URL"
2524: _ACEOF
1.14 bertrand 2525:
2526:
1.15 bertrand 2527: # Let the site file select an alternate cache file if it wants to.
2528: # Prefer an explicitly selected file to automatically selected ones.
2529: ac_site_file1=NONE
2530: ac_site_file2=NONE
2531: if test -n "$CONFIG_SITE"; then
1.36 bertrand 2532: # We do not want a PATH search for config.site.
2533: case $CONFIG_SITE in #((
2534: -*) ac_site_file1=./$CONFIG_SITE;;
2535: */*) ac_site_file1=$CONFIG_SITE;;
2536: *) ac_site_file1=./$CONFIG_SITE;;
2537: esac
1.15 bertrand 2538: elif test "x$prefix" != xNONE; then
2539: ac_site_file1=$prefix/share/config.site
2540: ac_site_file2=$prefix/etc/config.site
1.14 bertrand 2541: else
1.15 bertrand 2542: ac_site_file1=$ac_default_prefix/share/config.site
2543: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 bertrand 2544: fi
1.15 bertrand 2545: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546: do
2547: test "x$ac_site_file" = xNONE && continue
2548: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2549: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551: sed 's/^/| /' "$ac_site_file" >&5
1.36 bertrand 2552: . "$ac_site_file" \
2553: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555: as_fn_error $? "failed to load site script $ac_site_file
1.57 bertrand 2556: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 2557: fi
2558: done
1.14 bertrand 2559:
1.15 bertrand 2560: if test -r "$cache_file"; then
2561: # Some versions of bash will fail to source /dev/null (special files
2562: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565: $as_echo "$as_me: loading cache $cache_file" >&6;}
2566: case $cache_file in
2567: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568: *) . "./$cache_file";;
2569: esac
2570: fi
1.14 bertrand 2571: else
1.15 bertrand 2572: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573: $as_echo "$as_me: creating cache $cache_file" >&6;}
2574: >$cache_file
1.14 bertrand 2575: fi
2576:
1.15 bertrand 2577: # Check that the precious variables saved in the cache have kept the same
2578: # value.
2579: ac_cache_corrupted=false
2580: for ac_var in $ac_precious_vars; do
2581: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582: eval ac_new_set=\$ac_env_${ac_var}_set
2583: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584: eval ac_new_val=\$ac_env_${ac_var}_value
2585: case $ac_old_set,$ac_new_set in
2586: set,)
2587: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589: ac_cache_corrupted=: ;;
2590: ,set)
2591: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593: ac_cache_corrupted=: ;;
2594: ,);;
2595: *)
2596: if test "x$ac_old_val" != "x$ac_new_val"; then
2597: # differences in whitespace do not lead to failure.
2598: ac_old_val_w=`echo x $ac_old_val`
2599: ac_new_val_w=`echo x $ac_new_val`
2600: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603: ac_cache_corrupted=:
2604: else
2605: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607: eval $ac_var=\$ac_old_val
2608: fi
2609: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2613: fi;;
2614: esac
2615: # Pass precious variables to config.status.
2616: if test "$ac_new_set" = set; then
2617: case $ac_new_val in
2618: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619: *) ac_arg=$ac_var=$ac_new_val ;;
2620: esac
2621: case " $ac_configure_args " in
2622: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624: esac
1.14 bertrand 2625: fi
2626: done
1.15 bertrand 2627: if $ac_cache_corrupted; then
2628: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36 bertrand 2632: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15 bertrand 2633: fi
2634: ## -------------------- ##
2635: ## Main body of script. ##
2636: ## -------------------- ##
1.14 bertrand 2637:
1.15 bertrand 2638: ac_ext=c
2639: ac_cpp='$CPP $CPPFLAGS'
2640: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 2643:
2644:
1.15 bertrand 2645: ac_aux_dir=
2646: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36 bertrand 2647: if test -f "$ac_dir/install-sh"; then
2648: ac_aux_dir=$ac_dir
2649: ac_install_sh="$ac_aux_dir/install-sh -c"
2650: break
2651: elif test -f "$ac_dir/install.sh"; then
2652: ac_aux_dir=$ac_dir
2653: ac_install_sh="$ac_aux_dir/install.sh -c"
2654: break
2655: elif test -f "$ac_dir/shtool"; then
2656: ac_aux_dir=$ac_dir
2657: ac_install_sh="$ac_aux_dir/shtool install -c"
2658: break
2659: fi
1.14 bertrand 2660: done
1.15 bertrand 2661: if test -z "$ac_aux_dir"; then
1.36 bertrand 2662: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15 bertrand 2663: fi
1.14 bertrand 2664:
1.15 bertrand 2665: # These three variables are undocumented and unsupported,
2666: # and are intended to be withdrawn in a future Autoconf release.
2667: # They can cause serious problems if a builder's source tree is in a directory
2668: # whose full name contains unusual characters.
2669: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.14 bertrand 2672:
2673:
1.15 bertrand 2674: # Make sure we can run config.sub.
2675: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36 bertrand 2676: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14 bertrand 2677:
1.15 bertrand 2678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2679: $as_echo_n "checking build system type... " >&6; }
1.57 bertrand 2680: if ${ac_cv_build+:} false; then :
1.15 bertrand 2681: $as_echo_n "(cached) " >&6
1.14 bertrand 2682: else
1.15 bertrand 2683: ac_build_alias=$build_alias
2684: test "x$ac_build_alias" = x &&
2685: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2686: test "x$ac_build_alias" = x &&
1.36 bertrand 2687: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15 bertrand 2688: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36 bertrand 2689: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14 bertrand 2690:
2691: fi
1.15 bertrand 2692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2693: $as_echo "$ac_cv_build" >&6; }
2694: case $ac_cv_build in
2695: *-*-*) ;;
1.57 bertrand 2696: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15 bertrand 2697: esac
2698: build=$ac_cv_build
2699: ac_save_IFS=$IFS; IFS='-'
2700: set x $ac_cv_build
2701: shift
2702: build_cpu=$1
2703: build_vendor=$2
2704: shift; shift
2705: # Remember, the first character of IFS is used to create $*,
2706: # except with old shells:
2707: build_os=$*
2708: IFS=$ac_save_IFS
2709: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2710:
2711:
1.15 bertrand 2712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2713: $as_echo_n "checking host system type... " >&6; }
1.57 bertrand 2714: if ${ac_cv_host+:} false; then :
1.15 bertrand 2715: $as_echo_n "(cached) " >&6
1.14 bertrand 2716: else
1.15 bertrand 2717: if test "x$host_alias" = x; then
2718: ac_cv_host=$ac_cv_build
1.14 bertrand 2719: else
1.15 bertrand 2720: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36 bertrand 2721: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 bertrand 2722: fi
2723:
2724: fi
1.15 bertrand 2725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2726: $as_echo "$ac_cv_host" >&6; }
2727: case $ac_cv_host in
2728: *-*-*) ;;
1.57 bertrand 2729: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15 bertrand 2730: esac
2731: host=$ac_cv_host
2732: ac_save_IFS=$IFS; IFS='-'
2733: set x $ac_cv_host
2734: shift
2735: host_cpu=$1
2736: host_vendor=$2
2737: shift; shift
2738: # Remember, the first character of IFS is used to create $*,
2739: # except with old shells:
2740: host_os=$*
2741: IFS=$ac_save_IFS
2742: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2743:
2744:
1.15 bertrand 2745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2746: $as_echo_n "checking target system type... " >&6; }
1.57 bertrand 2747: if ${ac_cv_target+:} false; then :
1.15 bertrand 2748: $as_echo_n "(cached) " >&6
2749: else
2750: if test "x$target_alias" = x; then
2751: ac_cv_target=$ac_cv_host
1.14 bertrand 2752: else
1.15 bertrand 2753: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36 bertrand 2754: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15 bertrand 2755: fi
1.14 bertrand 2756:
2757: fi
1.15 bertrand 2758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2759: $as_echo "$ac_cv_target" >&6; }
2760: case $ac_cv_target in
2761: *-*-*) ;;
1.57 bertrand 2762: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15 bertrand 2763: esac
2764: target=$ac_cv_target
2765: ac_save_IFS=$IFS; IFS='-'
2766: set x $ac_cv_target
2767: shift
2768: target_cpu=$1
2769: target_vendor=$2
2770: shift; shift
2771: # Remember, the first character of IFS is used to create $*,
2772: # except with old shells:
2773: target_os=$*
2774: IFS=$ac_save_IFS
2775: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2776:
1.14 bertrand 2777:
1.15 bertrand 2778: # The aliases save the names the user supplied, while $host etc.
2779: # will get canonicalized.
2780: test -n "$target_alias" &&
2781: test "$program_prefix$program_suffix$program_transform_name" = \
2782: NONENONEs,x,x, &&
2783: program_prefix=${target_alias}-
1.1 bertrand 2784:
1.15 bertrand 2785: am__api_version='1.11'
1.1 bertrand 2786:
1.14 bertrand 2787: # Find a good install program. We prefer a C program (faster),
2788: # so one script is as good as another. But avoid the broken or
2789: # incompatible versions:
2790: # SysV /etc/install, /usr/sbin/install
2791: # SunOS /usr/etc/install
2792: # IRIX /sbin/install
2793: # AIX /bin/install
2794: # AmigaOS /C/install, which installs bootblocks on floppy discs
2795: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2796: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2797: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2798: # OS/2's system install, which has a completely different semantic
2799: # ./install, which can be erroneously created by make from ./install.sh.
1.15 bertrand 2800: # Reject install programs that cannot install multiple files.
2801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2802: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 bertrand 2803: if test -z "$INSTALL"; then
1.57 bertrand 2804: if ${ac_cv_path_install+:} false; then :
1.15 bertrand 2805: $as_echo_n "(cached) " >&6
1.14 bertrand 2806: else
2807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808: for as_dir in $PATH
2809: do
2810: IFS=$as_save_IFS
2811: test -z "$as_dir" && as_dir=.
1.15 bertrand 2812: # Account for people who put trailing slashes in PATH elements.
2813: case $as_dir/ in #((
2814: ./ | .// | /[cC]/* | \
1.14 bertrand 2815: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15 bertrand 2816: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 bertrand 2817: /usr/ucb/* ) ;;
2818: *)
2819: # OSF1 and SCO ODT 3.0 have their own names for install.
2820: # Don't use installbsd from OSF since it installs stuff as root
2821: # by default.
2822: for ac_prog in ginstall scoinst install; do
2823: for ac_exec_ext in '' $ac_executable_extensions; do
2824: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2825: if test $ac_prog = install &&
2826: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2827: # AIX install. It has an incompatible calling convention.
2828: :
2829: elif test $ac_prog = install &&
2830: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831: # program-specific install script used by HP pwplus--don't use.
2832: :
2833: else
1.15 bertrand 2834: rm -rf conftest.one conftest.two conftest.dir
2835: echo one > conftest.one
2836: echo two > conftest.two
2837: mkdir conftest.dir
2838: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2839: test -s conftest.one && test -s conftest.two &&
2840: test -s conftest.dir/conftest.one &&
2841: test -s conftest.dir/conftest.two
2842: then
2843: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2844: break 3
2845: fi
1.14 bertrand 2846: fi
2847: fi
2848: done
2849: done
2850: ;;
2851: esac
1.15 bertrand 2852:
2853: done
1.14 bertrand 2854: IFS=$as_save_IFS
1.1 bertrand 2855:
1.15 bertrand 2856: rm -rf conftest.one conftest.two conftest.dir
1.1 bertrand 2857:
1.14 bertrand 2858: fi
2859: if test "${ac_cv_path_install+set}" = set; then
2860: INSTALL=$ac_cv_path_install
2861: else
2862: # As a last resort, use the slow shell script. Don't cache a
2863: # value for INSTALL within a source directory, because that will
2864: # break other packages using the cache if that directory is
2865: # removed, or if the value is a relative name.
2866: INSTALL=$ac_install_sh
2867: fi
2868: fi
1.15 bertrand 2869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2870: $as_echo "$INSTALL" >&6; }
1.1 bertrand 2871:
1.14 bertrand 2872: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2873: # It thinks the first close brace ends the variable substitution.
2874: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 bertrand 2875:
1.14 bertrand 2876: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 bertrand 2877:
1.14 bertrand 2878: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 bertrand 2879:
1.15 bertrand 2880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2881: $as_echo_n "checking whether build environment is sane... " >&6; }
2882: # Just in case
2883: sleep 1
2884: echo timestamp > conftest.file
2885: # Reject unsafe characters in $srcdir or the absolute working directory
2886: # name. Accept space and tab only in the latter.
2887: am_lf='
2888: '
2889: case `pwd` in
2890: *[\\\"\#\$\&\'\`$am_lf]*)
1.57 bertrand 2891: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15 bertrand 2892: esac
2893: case $srcdir in
2894: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.57 bertrand 2895: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15 bertrand 2896: esac
2897:
2898: # Do `set' in a subshell so we don't clobber the current shell's
2899: # arguments. Must try -L first in case configure is actually a
2900: # symlink; some systems play weird games with the mod time of symlinks
2901: # (eg FreeBSD returns the mod time of the symlink's containing
2902: # directory).
2903: if (
2904: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2905: if test "$*" = "X"; then
2906: # -L didn't work.
2907: set X `ls -t "$srcdir/configure" conftest.file`
2908: fi
2909: rm -f conftest.file
2910: if test "$*" != "X $srcdir/configure conftest.file" \
2911: && test "$*" != "X conftest.file $srcdir/configure"; then
2912:
2913: # If neither matched, then we have a broken ls. This can happen
2914: # if, for instance, CONFIG_SHELL is bash and it inherits a
2915: # broken ls alias from the environment. This has actually
2916: # happened. Such a system could not be considered "sane".
1.36 bertrand 2917: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1.15 bertrand 2918: alias in your environment" "$LINENO" 5
2919: fi
2920:
2921: test "$2" = conftest.file
2922: )
2923: then
2924: # Ok.
2925: :
1.14 bertrand 2926: else
1.36 bertrand 2927: as_fn_error $? "newly created file is older than distributed files!
1.15 bertrand 2928: Check your system clock" "$LINENO" 5
1.14 bertrand 2929: fi
1.15 bertrand 2930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931: $as_echo "yes" >&6; }
2932: test "$program_prefix" != NONE &&
2933: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2934: # Use a double $ so make ignores it.
2935: test "$program_suffix" != NONE &&
2936: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2937: # Double any \ or $.
2938: # By default was `s,x,x', remove it if useless.
2939: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2940: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2941:
2942: # expand $ac_aux_dir to an absolute path
2943: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1 bertrand 2944:
1.15 bertrand 2945: if test x"${MISSING+set}" != xset; then
2946: case $am_aux_dir in
2947: *\ * | *\ *)
2948: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14 bertrand 2949: *)
1.15 bertrand 2950: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2951: esac
1.14 bertrand 2952: fi
1.15 bertrand 2953: # Use eval to expand $SHELL
2954: if eval "$MISSING --run true"; then
2955: am_missing_run="$MISSING --run "
1.14 bertrand 2956: else
1.15 bertrand 2957: am_missing_run=
2958: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2959: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2960: fi
2961:
2962: if test x"${install_sh}" != xset; then
2963: case $am_aux_dir in
2964: *\ * | *\ *)
2965: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2966: *)
2967: install_sh="\${SHELL} $am_aux_dir/install-sh"
2968: esac
1.14 bertrand 2969: fi
1.15 bertrand 2970:
2971: # Installed binaries are usually stripped using `strip' when the user
2972: # run `make install-strip'. However `strip' might not be the right
2973: # tool to use in cross-compilation environments, therefore Automake
2974: # will honor the `STRIP' environment variable to overrule this program.
2975: if test "$cross_compiling" != no; then
2976: if test -n "$ac_tool_prefix"; then
2977: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978: set dummy ${ac_tool_prefix}strip; ac_word=$2
2979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 2981: if ${ac_cv_prog_STRIP+:} false; then :
1.15 bertrand 2982: $as_echo_n "(cached) " >&6
1.14 bertrand 2983: else
1.15 bertrand 2984: if test -n "$STRIP"; then
2985: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14 bertrand 2986: else
2987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988: for as_dir in $PATH
2989: do
2990: IFS=$as_save_IFS
2991: test -z "$as_dir" && as_dir=.
1.15 bertrand 2992: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2993: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2994: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2995: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2996: break 2
2997: fi
2998: done
1.15 bertrand 2999: done
1.14 bertrand 3000: IFS=$as_save_IFS
1.1 bertrand 3001:
1.14 bertrand 3002: fi
3003: fi
1.15 bertrand 3004: STRIP=$ac_cv_prog_STRIP
3005: if test -n "$STRIP"; then
3006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3007: $as_echo "$STRIP" >&6; }
1.14 bertrand 3008: else
1.15 bertrand 3009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010: $as_echo "no" >&6; }
1.14 bertrand 3011: fi
1.1 bertrand 3012:
3013:
1.14 bertrand 3014: fi
1.15 bertrand 3015: if test -z "$ac_cv_prog_STRIP"; then
3016: ac_ct_STRIP=$STRIP
3017: # Extract the first word of "strip", so it can be a program name with args.
3018: set dummy strip; ac_word=$2
3019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3021: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15 bertrand 3022: $as_echo_n "(cached) " >&6
1.14 bertrand 3023: else
1.15 bertrand 3024: if test -n "$ac_ct_STRIP"; then
3025: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 bertrand 3026: else
1.14 bertrand 3027: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028: for as_dir in $PATH
1.1 bertrand 3029: do
1.14 bertrand 3030: IFS=$as_save_IFS
3031: test -z "$as_dir" && as_dir=.
1.15 bertrand 3032: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3033: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3034: ac_cv_prog_ac_ct_STRIP="strip"
3035: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3036: break 2
1.1 bertrand 3037: fi
3038: done
1.15 bertrand 3039: done
1.14 bertrand 3040: IFS=$as_save_IFS
1.1 bertrand 3041:
1.14 bertrand 3042: fi
3043: fi
1.15 bertrand 3044: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3045: if test -n "$ac_ct_STRIP"; then
3046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3047: $as_echo "$ac_ct_STRIP" >&6; }
1.1 bertrand 3048: else
1.15 bertrand 3049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050: $as_echo "no" >&6; }
1.1 bertrand 3051: fi
3052:
1.15 bertrand 3053: if test "x$ac_ct_STRIP" = x; then
3054: STRIP=":"
1.14 bertrand 3055: else
3056: case $cross_compiling:$ac_tool_warned in
3057: yes:)
1.15 bertrand 3058: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14 bertrand 3060: ac_tool_warned=yes ;;
3061: esac
1.15 bertrand 3062: STRIP=$ac_ct_STRIP
1.1 bertrand 3063: fi
1.14 bertrand 3064: else
1.15 bertrand 3065: STRIP="$ac_cv_prog_STRIP"
1.1 bertrand 3066: fi
3067:
1.15 bertrand 3068: fi
3069: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 bertrand 3070:
1.15 bertrand 3071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3072: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3073: if test -z "$MKDIR_P"; then
1.57 bertrand 3074: if ${ac_cv_path_mkdir+:} false; then :
1.15 bertrand 3075: $as_echo_n "(cached) " >&6
1.14 bertrand 3076: else
1.15 bertrand 3077: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14 bertrand 3079: do
3080: IFS=$as_save_IFS
3081: test -z "$as_dir" && as_dir=.
1.15 bertrand 3082: for ac_prog in mkdir gmkdir; do
3083: for ac_exec_ext in '' $ac_executable_extensions; do
3084: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3085: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3086: 'mkdir (GNU coreutils) '* | \
3087: 'mkdir (coreutils) '* | \
3088: 'mkdir (fileutils) '4.1*)
3089: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3090: break 3;;
3091: esac
3092: done
3093: done
3094: done
1.14 bertrand 3095: IFS=$as_save_IFS
1.1 bertrand 3096:
3097: fi
1.15 bertrand 3098:
3099: test -d ./--version && rmdir ./--version
3100: if test "${ac_cv_path_mkdir+set}" = set; then
3101: MKDIR_P="$ac_cv_path_mkdir -p"
3102: else
3103: # As a last resort, use the slow shell script. Don't cache a
3104: # value for MKDIR_P within a source directory, because that will
3105: # break other packages using the cache if that directory is
3106: # removed, or if the value is a relative name.
3107: MKDIR_P="$ac_install_sh -d"
3108: fi
1.14 bertrand 3109: fi
1.15 bertrand 3110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3111: $as_echo "$MKDIR_P" >&6; }
1.1 bertrand 3112:
1.15 bertrand 3113: mkdir_p="$MKDIR_P"
3114: case $mkdir_p in
3115: [\\/$]* | ?:[\\/]*) ;;
3116: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3117: esac
1.1 bertrand 3118:
1.15 bertrand 3119: for ac_prog in gawk mawk nawk awk
3120: do
3121: # Extract the first word of "$ac_prog", so it can be a program name with args.
3122: set dummy $ac_prog; ac_word=$2
3123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3125: if ${ac_cv_prog_AWK+:} false; then :
1.15 bertrand 3126: $as_echo_n "(cached) " >&6
1.1 bertrand 3127: else
1.15 bertrand 3128: if test -n "$AWK"; then
3129: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 bertrand 3130: else
1.14 bertrand 3131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132: for as_dir in $PATH
3133: do
3134: IFS=$as_save_IFS
3135: test -z "$as_dir" && as_dir=.
1.15 bertrand 3136: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3137: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3138: ac_cv_prog_AWK="$ac_prog"
3139: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3140: break 2
3141: fi
3142: done
1.15 bertrand 3143: done
1.14 bertrand 3144: IFS=$as_save_IFS
3145:
3146: fi
1.1 bertrand 3147: fi
1.15 bertrand 3148: AWK=$ac_cv_prog_AWK
3149: if test -n "$AWK"; then
3150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3151: $as_echo "$AWK" >&6; }
1.14 bertrand 3152: else
1.15 bertrand 3153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154: $as_echo "no" >&6; }
1.1 bertrand 3155: fi
3156:
3157:
1.15 bertrand 3158: test -n "$AWK" && break
3159: done
1.1 bertrand 3160:
1.15 bertrand 3161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3162: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3163: set x ${MAKE-make}
3164: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57 bertrand 3165: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15 bertrand 3166: $as_echo_n "(cached) " >&6
1.14 bertrand 3167: else
1.15 bertrand 3168: cat >conftest.make <<\_ACEOF
3169: SHELL = /bin/sh
3170: all:
3171: @echo '@@@%%%=$(MAKE)=@@@%%%'
3172: _ACEOF
1.36 bertrand 3173: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 3174: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3175: *@@@%%%=?*=@@@%%%*)
3176: eval ac_cv_prog_make_${ac_make}_set=yes;;
3177: *)
3178: eval ac_cv_prog_make_${ac_make}_set=no;;
3179: esac
3180: rm -f conftest.make
3181: fi
3182: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184: $as_echo "yes" >&6; }
3185: SET_MAKE=
1.1 bertrand 3186: else
1.15 bertrand 3187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188: $as_echo "no" >&6; }
3189: SET_MAKE="MAKE=${MAKE-make}"
3190: fi
1.1 bertrand 3191:
1.15 bertrand 3192: rm -rf .tst 2>/dev/null
3193: mkdir .tst 2>/dev/null
3194: if test -d .tst; then
3195: am__leading_dot=.
3196: else
3197: am__leading_dot=_
1.14 bertrand 3198: fi
1.15 bertrand 3199: rmdir .tst 2>/dev/null
3200:
3201: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3202: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3203: # is not polluted with repeated "-I."
3204: am__isrc=' -I$(srcdir)'
3205: # test to see if srcdir already configured
3206: if test -f $srcdir/config.status; then
1.36 bertrand 3207: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15 bertrand 3208: fi
1.1 bertrand 3209: fi
1.15 bertrand 3210:
3211: # test whether we have cygpath
3212: if test -z "$CYGPATH_W"; then
3213: if (cygpath --version) >/dev/null 2>/dev/null; then
3214: CYGPATH_W='cygpath -w'
3215: else
3216: CYGPATH_W=echo
3217: fi
1.1 bertrand 3218: fi
3219:
3220:
1.15 bertrand 3221: # Define the identity of the package.
3222: PACKAGE='rpl'
1.86 bertrand 3223: VERSION='4.1.4'
1.15 bertrand 3224:
3225:
3226: cat >>confdefs.h <<_ACEOF
3227: #define PACKAGE "$PACKAGE"
3228: _ACEOF
3229:
3230:
3231: cat >>confdefs.h <<_ACEOF
3232: #define VERSION "$VERSION"
3233: _ACEOF
3234:
3235: # Some tools Automake needs.
3236:
3237: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3238:
3239:
3240: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3241:
3242:
3243: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3244:
3245:
3246: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3247:
3248:
3249: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3250:
3251: # We need awk for the "check" target. The system "awk" is bad on
3252: # some platforms.
3253: # Always define AMTAR for backward compatibility.
3254:
3255: AMTAR=${AMTAR-"${am_missing_run}tar"}
3256:
3257: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3258:
3259:
3260:
3261:
1.1 bertrand 3262:
3263:
1.15 bertrand 3264: ac_config_headers="$ac_config_headers rplconfig.h"
1.1 bertrand 3265:
3266:
1.54 bertrand 3267: NCURSES=ncurses-5.9
1.50 bertrand 3268: READLINE=readline-6.2
1.30 bertrand 3269: UNITS=units-1.88
1.57 bertrand 3270: GSL=gsl-1.15
1.72 bertrand 3271: GPP=gpp-3.0
1.52 bertrand 3272: GNUPLOT=gnuplot-4.4.3
1.15 bertrand 3273: FILE=file-5.03
3274: ICONV=libiconv-1.13.1
1.87 bertrand 3275: SQLITE=sqlite-3.7.8
1.74 bertrand 3276: OPENSSL=openssl-1.0.0e
1.79 bertrand 3277: OPENMOTIF=openmotif-2.3.3
1.80 bertrand 3278: LIBXPM=libXpm-3.5.9
1.76 bertrand 3279: SIGSEGV=libsigsegv-2.6
1.14 bertrand 3280:
1.75 bertrand 3281: GMP=gmp-5.0.2
1.55 bertrand 3282: MPFR=mpfr-3.0.1
1.56 bertrand 3283: NTL=ntl-5.5.2
3284: COCOA=CoCoALib-0.9943
1.76 bertrand 3285: PARI=pari-2.5.0
1.67 bertrand 3286: GIAC=giac-0.9.3
1.55 bertrand 3287:
1.15 bertrand 3288: ac_ext=c
3289: ac_cpp='$CPP $CPPFLAGS'
3290: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293: if test -n "$ac_tool_prefix"; then
1.23 bertrand 3294: for ac_prog in gcc
1.15 bertrand 3295: do
3296: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3300: if ${ac_cv_prog_CC+:} false; then :
1.15 bertrand 3301: $as_echo_n "(cached) " >&6
1.1 bertrand 3302: else
1.15 bertrand 3303: if test -n "$CC"; then
3304: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 bertrand 3305: else
3306: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307: for as_dir in $PATH
3308: do
3309: IFS=$as_save_IFS
3310: test -z "$as_dir" && as_dir=.
1.15 bertrand 3311: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3312: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3313: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3314: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3315: break 2
3316: fi
3317: done
1.15 bertrand 3318: done
1.1 bertrand 3319: IFS=$as_save_IFS
3320:
3321: fi
3322: fi
1.15 bertrand 3323: CC=$ac_cv_prog_CC
3324: if test -n "$CC"; then
3325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326: $as_echo "$CC" >&6; }
1.1 bertrand 3327: else
1.15 bertrand 3328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329: $as_echo "no" >&6; }
1.1 bertrand 3330: fi
3331:
3332:
1.15 bertrand 3333: test -n "$CC" && break
3334: done
3335: fi
3336: if test -z "$CC"; then
3337: ac_ct_CC=$CC
1.23 bertrand 3338: for ac_prog in gcc
1.15 bertrand 3339: do
3340: # Extract the first word of "$ac_prog", so it can be a program name with args.
3341: set dummy $ac_prog; ac_word=$2
3342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3344: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15 bertrand 3345: $as_echo_n "(cached) " >&6
1.1 bertrand 3346: else
1.15 bertrand 3347: if test -n "$ac_ct_CC"; then
3348: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 bertrand 3349: else
3350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351: for as_dir in $PATH
3352: do
3353: IFS=$as_save_IFS
3354: test -z "$as_dir" && as_dir=.
1.15 bertrand 3355: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3356: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3357: ac_cv_prog_ac_ct_CC="$ac_prog"
3358: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3359: break 2
3360: fi
3361: done
1.15 bertrand 3362: done
1.1 bertrand 3363: IFS=$as_save_IFS
3364:
3365: fi
3366: fi
1.15 bertrand 3367: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368: if test -n "$ac_ct_CC"; then
3369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370: $as_echo "$ac_ct_CC" >&6; }
1.1 bertrand 3371: else
1.15 bertrand 3372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373: $as_echo "no" >&6; }
1.1 bertrand 3374: fi
3375:
3376:
1.15 bertrand 3377: test -n "$ac_ct_CC" && break
3378: done
1.1 bertrand 3379:
1.15 bertrand 3380: if test "x$ac_ct_CC" = x; then
3381: CC=""
3382: else
3383: case $cross_compiling:$ac_tool_warned in
3384: yes:)
3385: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387: ac_tool_warned=yes ;;
3388: esac
3389: CC=$ac_ct_CC
1.1 bertrand 3390: fi
3391: fi
3392:
3393:
1.15 bertrand 3394: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3396: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57 bertrand 3397: See \`config.log' for more details" "$LINENO" 5; }
1.1 bertrand 3398:
1.15 bertrand 3399: # Provide some information about the compiler.
3400: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3401: set X $ac_compile
3402: ac_compiler=$2
3403: for ac_option in --version -v -V -qversion; do
3404: { { ac_try="$ac_compiler $ac_option >&5"
3405: case "(($ac_try" in
3406: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407: *) ac_try_echo=$ac_try;;
3408: esac
3409: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410: $as_echo "$ac_try_echo"; } >&5
3411: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3412: ac_status=$?
3413: if test -s conftest.err; then
3414: sed '10a\
3415: ... rest of stderr output deleted ...
3416: 10q' conftest.err >conftest.er1
3417: cat conftest.er1 >&5
1.1 bertrand 3418: fi
1.15 bertrand 3419: rm -f conftest.er1 conftest.err
3420: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421: test $ac_status = 0; }
1.1 bertrand 3422: done
3423:
1.15 bertrand 3424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425: /* end confdefs.h. */
3426:
3427: int
3428: main ()
3429: {
1.14 bertrand 3430:
1.15 bertrand 3431: ;
3432: return 0;
3433: }
3434: _ACEOF
3435: ac_clean_files_save=$ac_clean_files
3436: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3437: # Try to create an executable without -o first, disregard a.out.
3438: # It will help us diagnose broken compilers, and finding out an intuition
3439: # of exeext.
3440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3441: $as_echo_n "checking whether the C compiler works... " >&6; }
3442: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14 bertrand 3443:
1.15 bertrand 3444: # The possible output files:
3445: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1 bertrand 3446:
1.15 bertrand 3447: ac_rmfiles=
3448: for ac_file in $ac_files
1.1 bertrand 3449: do
1.15 bertrand 3450: case $ac_file in
3451: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3452: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3453: esac
1.1 bertrand 3454: done
1.15 bertrand 3455: rm -f $ac_rmfiles
3456:
3457: if { { ac_try="$ac_link_default"
3458: case "(($ac_try" in
3459: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460: *) ac_try_echo=$ac_try;;
3461: esac
3462: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463: $as_echo "$ac_try_echo"; } >&5
3464: (eval "$ac_link_default") 2>&5
3465: ac_status=$?
3466: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467: test $ac_status = 0; }; then :
3468: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3469: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3470: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3471: # so that the user can short-circuit this test for compilers unknown to
3472: # Autoconf.
3473: for ac_file in $ac_files ''
3474: do
3475: test -f "$ac_file" || continue
3476: case $ac_file in
3477: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3478: ;;
3479: [ab].out )
3480: # We found the default executable, but exeext='' is most
3481: # certainly right.
3482: break;;
3483: *.* )
3484: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3485: then :; else
3486: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487: fi
3488: # We set ac_cv_exeext here because the later test for it is not
3489: # safe: cross compilers may not add the suffix if given an `-o'
3490: # argument, so we may need to know it at that point already.
3491: # Even if this section looks crufty: it has the advantage of
3492: # actually working.
3493: break;;
3494: * )
3495: break;;
3496: esac
1.14 bertrand 3497: done
1.15 bertrand 3498: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1 bertrand 3499:
1.14 bertrand 3500: else
1.15 bertrand 3501: ac_file=''
1.1 bertrand 3502: fi
1.15 bertrand 3503: if test -z "$ac_file"; then :
3504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505: $as_echo "no" >&6; }
3506: $as_echo "$as_me: failed program was:" >&5
3507: sed 's/^/| /' conftest.$ac_ext >&5
3508:
3509: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3511: as_fn_error 77 "C compiler cannot create executables
1.57 bertrand 3512: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3513: else
3514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3515: $as_echo "yes" >&6; }
3516: fi
3517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3518: $as_echo_n "checking for C compiler default output file name... " >&6; }
3519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3520: $as_echo "$ac_file" >&6; }
3521: ac_exeext=$ac_cv_exeext
1.1 bertrand 3522:
1.15 bertrand 3523: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3524: ac_clean_files=$ac_clean_files_save
3525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3526: $as_echo_n "checking for suffix of executables... " >&6; }
3527: if { { ac_try="$ac_link"
3528: case "(($ac_try" in
3529: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530: *) ac_try_echo=$ac_try;;
3531: esac
3532: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533: $as_echo "$ac_try_echo"; } >&5
3534: (eval "$ac_link") 2>&5
3535: ac_status=$?
3536: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537: test $ac_status = 0; }; then :
3538: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3539: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3540: # work properly (i.e., refer to `conftest.exe'), while it won't with
3541: # `rm'.
3542: for ac_file in conftest.exe conftest conftest.*; do
3543: test -f "$ac_file" || continue
3544: case $ac_file in
3545: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547: break;;
3548: * ) break;;
3549: esac
3550: done
1.14 bertrand 3551: else
1.15 bertrand 3552: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3554: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57 bertrand 3555: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3556: fi
3557: rm -f conftest conftest$ac_cv_exeext
3558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3559: $as_echo "$ac_cv_exeext" >&6; }
3560:
3561: rm -f conftest.$ac_ext
3562: EXEEXT=$ac_cv_exeext
3563: ac_exeext=$EXEEXT
3564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3565: /* end confdefs.h. */
1.15 bertrand 3566: #include <stdio.h>
1.14 bertrand 3567: int
3568: main ()
3569: {
1.15 bertrand 3570: FILE *f = fopen ("conftest.out", "w");
3571: return ferror (f) || fclose (f) != 0;
3572:
1.14 bertrand 3573: ;
3574: return 0;
3575: }
3576: _ACEOF
1.15 bertrand 3577: ac_clean_files="$ac_clean_files conftest.out"
3578: # Check that the compiler produces executables we can run. If not, either
3579: # the compiler is broken, or we cross compile.
3580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3581: $as_echo_n "checking whether we are cross compiling... " >&6; }
3582: if test "$cross_compiling" != yes; then
3583: { { ac_try="$ac_link"
1.1 bertrand 3584: case "(($ac_try" in
3585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586: *) ac_try_echo=$ac_try;;
3587: esac
1.15 bertrand 3588: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589: $as_echo "$ac_try_echo"; } >&5
3590: (eval "$ac_link") 2>&5
3591: ac_status=$?
3592: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593: test $ac_status = 0; }
3594: if { ac_try='./conftest$ac_cv_exeext'
3595: { { case "(($ac_try" in
3596: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597: *) ac_try_echo=$ac_try;;
3598: esac
3599: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600: $as_echo "$ac_try_echo"; } >&5
3601: (eval "$ac_try") 2>&5
1.1 bertrand 3602: ac_status=$?
1.15 bertrand 3603: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604: test $ac_status = 0; }; }; then
3605: cross_compiling=no
3606: else
3607: if test "$cross_compiling" = maybe; then
3608: cross_compiling=yes
3609: else
3610: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3612: as_fn_error $? "cannot run C compiled programs.
1.15 bertrand 3613: If you meant to cross compile, use \`--host'.
1.57 bertrand 3614: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3615: fi
3616: fi
1.14 bertrand 3617: fi
1.15 bertrand 3618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3619: $as_echo "$cross_compiling" >&6; }
1.14 bertrand 3620:
1.15 bertrand 3621: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3622: ac_clean_files=$ac_clean_files_save
3623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3624: $as_echo_n "checking for suffix of object files... " >&6; }
1.57 bertrand 3625: if ${ac_cv_objext+:} false; then :
1.15 bertrand 3626: $as_echo_n "(cached) " >&6
1.14 bertrand 3627: else
1.15 bertrand 3628: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 3629: /* end confdefs.h. */
3630:
3631: int
3632: main ()
3633: {
1.15 bertrand 3634:
1.1 bertrand 3635: ;
3636: return 0;
3637: }
3638: _ACEOF
1.15 bertrand 3639: rm -f conftest.o conftest.obj
3640: if { { ac_try="$ac_compile"
1.1 bertrand 3641: case "(($ac_try" in
3642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643: *) ac_try_echo=$ac_try;;
3644: esac
1.15 bertrand 3645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646: $as_echo "$ac_try_echo"; } >&5
3647: (eval "$ac_compile") 2>&5
1.1 bertrand 3648: ac_status=$?
1.15 bertrand 3649: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650: test $ac_status = 0; }; then :
3651: for ac_file in conftest.o conftest.obj conftest.*; do
3652: test -f "$ac_file" || continue;
3653: case $ac_file in
3654: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3655: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3656: break;;
3657: esac
3658: done
1.14 bertrand 3659: else
1.15 bertrand 3660: $as_echo "$as_me: failed program was:" >&5
1.14 bertrand 3661: sed 's/^/| /' conftest.$ac_ext >&5
3662:
1.15 bertrand 3663: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3665: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57 bertrand 3666: See \`config.log' for more details" "$LINENO" 5; }
1.14 bertrand 3667: fi
1.15 bertrand 3668: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669: fi
3670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3671: $as_echo "$ac_cv_objext" >&6; }
3672: OBJEXT=$ac_cv_objext
3673: ac_objext=$OBJEXT
3674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3675: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57 bertrand 3676: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15 bertrand 3677: $as_echo_n "(cached) " >&6
3678: else
3679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680: /* end confdefs.h. */
3681:
3682: int
3683: main ()
3684: {
3685: #ifndef __GNUC__
3686: choke me
3687: #endif
1.14 bertrand 3688:
1.15 bertrand 3689: ;
3690: return 0;
3691: }
3692: _ACEOF
3693: if ac_fn_c_try_compile "$LINENO"; then :
3694: ac_compiler_gnu=yes
1.14 bertrand 3695: else
1.15 bertrand 3696: ac_compiler_gnu=no
1.14 bertrand 3697: fi
1.15 bertrand 3698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14 bertrand 3700:
1.15 bertrand 3701: fi
3702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3703: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3704: if test $ac_compiler_gnu = yes; then
3705: GCC=yes
1.14 bertrand 3706: else
1.15 bertrand 3707: GCC=
1.14 bertrand 3708: fi
1.15 bertrand 3709: ac_test_CFLAGS=${CFLAGS+set}
3710: ac_save_CFLAGS=$CFLAGS
3711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3712: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57 bertrand 3713: if ${ac_cv_prog_cc_g+:} false; then :
1.15 bertrand 3714: $as_echo_n "(cached) " >&6
3715: else
3716: ac_save_c_werror_flag=$ac_c_werror_flag
3717: ac_c_werror_flag=yes
3718: ac_cv_prog_cc_g=no
3719: CFLAGS="-g"
3720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721: /* end confdefs.h. */
1.14 bertrand 3722:
1.15 bertrand 3723: int
3724: main ()
3725: {
1.14 bertrand 3726:
1.15 bertrand 3727: ;
3728: return 0;
3729: }
3730: _ACEOF
3731: if ac_fn_c_try_compile "$LINENO"; then :
3732: ac_cv_prog_cc_g=yes
3733: else
3734: CFLAGS=""
3735: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736: /* end confdefs.h. */
1.14 bertrand 3737:
1.15 bertrand 3738: int
3739: main ()
3740: {
1.14 bertrand 3741:
1.15 bertrand 3742: ;
3743: return 0;
3744: }
3745: _ACEOF
3746: if ac_fn_c_try_compile "$LINENO"; then :
1.14 bertrand 3747:
1.15 bertrand 3748: else
3749: ac_c_werror_flag=$ac_save_c_werror_flag
3750: CFLAGS="-g"
3751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752: /* end confdefs.h. */
1.14 bertrand 3753:
1.15 bertrand 3754: int
3755: main ()
3756: {
1.14 bertrand 3757:
1.15 bertrand 3758: ;
3759: return 0;
3760: }
3761: _ACEOF
3762: if ac_fn_c_try_compile "$LINENO"; then :
3763: ac_cv_prog_cc_g=yes
3764: fi
3765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766: fi
3767: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768: fi
3769: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770: ac_c_werror_flag=$ac_save_c_werror_flag
3771: fi
3772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3773: $as_echo "$ac_cv_prog_cc_g" >&6; }
3774: if test "$ac_test_CFLAGS" = set; then
3775: CFLAGS=$ac_save_CFLAGS
3776: elif test $ac_cv_prog_cc_g = yes; then
3777: if test "$GCC" = yes; then
3778: CFLAGS="-g -O2"
3779: else
3780: CFLAGS="-g"
3781: fi
3782: else
3783: if test "$GCC" = yes; then
3784: CFLAGS="-O2"
3785: else
3786: CFLAGS=
3787: fi
3788: fi
3789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3790: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57 bertrand 3791: if ${ac_cv_prog_cc_c89+:} false; then :
1.15 bertrand 3792: $as_echo_n "(cached) " >&6
1.1 bertrand 3793: else
1.15 bertrand 3794: ac_cv_prog_cc_c89=no
3795: ac_save_CC=$CC
3796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3797: /* end confdefs.h. */
1.15 bertrand 3798: #include <stdarg.h>
3799: #include <stdio.h>
3800: #include <sys/types.h>
3801: #include <sys/stat.h>
3802: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3803: struct buf { int x; };
3804: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3805: static char *e (p, i)
3806: char **p;
3807: int i;
3808: {
3809: return p[i];
3810: }
3811: static char *f (char * (*g) (char **, int), char **p, ...)
3812: {
3813: char *s;
3814: va_list v;
3815: va_start (v,p);
3816: s = g (p, va_arg (v,int));
3817: va_end (v);
3818: return s;
3819: }
3820:
3821: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3822: function prototypes and stuff, but not '\xHH' hex character constants.
3823: These don't provoke an error unfortunately, instead are silently treated
3824: as 'x'. The following induces an error, until -std is added to get
3825: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3826: array size at least. It's necessary to write '\x00'==0 to get something
3827: that's true only with -std. */
3828: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14 bertrand 3829:
1.15 bertrand 3830: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3831: inside strings and character constants. */
3832: #define FOO(x) 'x'
3833: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1 bertrand 3834:
1.15 bertrand 3835: int test (int i, double x);
3836: struct s1 {int (*f) (int a);};
3837: struct s2 {int (*f) (double a);};
3838: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3839: int argc;
3840: char **argv;
1.14 bertrand 3841: int
3842: main ()
3843: {
1.15 bertrand 3844: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.14 bertrand 3845: ;
3846: return 0;
3847: }
3848: _ACEOF
1.15 bertrand 3849: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3850: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3851: do
3852: CC="$ac_save_CC $ac_arg"
3853: if ac_fn_c_try_compile "$LINENO"; then :
3854: ac_cv_prog_cc_c89=$ac_arg
3855: fi
3856: rm -f core conftest.err conftest.$ac_objext
3857: test "x$ac_cv_prog_cc_c89" != "xno" && break
3858: done
3859: rm -f conftest.$ac_ext
3860: CC=$ac_save_CC
3861:
3862: fi
3863: # AC_CACHE_VAL
3864: case "x$ac_cv_prog_cc_c89" in
3865: x)
3866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3867: $as_echo "none needed" >&6; } ;;
3868: xno)
3869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3870: $as_echo "unsupported" >&6; } ;;
3871: *)
3872: CC="$CC $ac_cv_prog_cc_c89"
3873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3874: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 bertrand 3875: esac
1.15 bertrand 3876: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14 bertrand 3877:
3878: fi
3879:
1.15 bertrand 3880: ac_ext=c
3881: ac_cpp='$CPP $CPPFLAGS'
3882: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885: DEPDIR="${am__leading_dot}deps"
3886:
3887: ac_config_commands="$ac_config_commands depfiles"
3888:
3889:
3890: am_make=${MAKE-make}
3891: cat > confinc << 'END'
3892: am__doit:
3893: @echo this is the am__doit target
3894: .PHONY: am__doit
3895: END
3896: # If we don't find an include directive, just comment out the code.
3897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3898: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3899: am__include="#"
3900: am__quote=
3901: _am_result=none
3902: # First try GNU make style include.
3903: echo "include confinc" > confmf
3904: # Ignore all kinds of additional output from `make'.
3905: case `$am_make -s -f confmf 2> /dev/null` in #(
3906: *the\ am__doit\ target*)
3907: am__include=include
3908: am__quote=
3909: _am_result=GNU
3910: ;;
3911: esac
3912: # Now try BSD make style include.
3913: if test "$am__include" = "#"; then
3914: echo '.include "confinc"' > confmf
3915: case `$am_make -s -f confmf 2> /dev/null` in #(
3916: *the\ am__doit\ target*)
3917: am__include=.include
3918: am__quote="\""
3919: _am_result=BSD
3920: ;;
3921: esac
1.14 bertrand 3922: fi
3923:
3924:
1.15 bertrand 3925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3926: $as_echo "$_am_result" >&6; }
3927: rm -f confinc confmf
3928:
3929: # Check whether --enable-dependency-tracking was given.
3930: if test "${enable_dependency_tracking+set}" = set; then :
3931: enableval=$enable_dependency_tracking;
3932: fi
3933:
3934: if test "x$enable_dependency_tracking" != xno; then
3935: am_depcomp="$ac_aux_dir/depcomp"
3936: AMDEPBACKSLASH='\'
3937: fi
3938: if test "x$enable_dependency_tracking" != xno; then
3939: AMDEP_TRUE=
3940: AMDEP_FALSE='#'
1.1 bertrand 3941: else
1.15 bertrand 3942: AMDEP_TRUE='#'
3943: AMDEP_FALSE=
1.14 bertrand 3944: fi
1.1 bertrand 3945:
1.14 bertrand 3946:
3947:
1.15 bertrand 3948: depcc="$CC" am_compiler_list=
1.14 bertrand 3949:
1.15 bertrand 3950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3951: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57 bertrand 3952: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15 bertrand 3953: $as_echo_n "(cached) " >&6
1.14 bertrand 3954: else
1.15 bertrand 3955: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3956: # We make a subdir and do the tests there. Otherwise we can end up
3957: # making bogus files that we don't know about and never remove. For
3958: # instance it was reported that on HP-UX the gcc test will end up
3959: # making a dummy file named `D' -- because `-MD' means `put the output
3960: # in D'.
3961: mkdir conftest.dir
3962: # Copy depcomp to subdir because otherwise we won't find it if we're
3963: # using a relative directory.
3964: cp "$am_depcomp" conftest.dir
3965: cd conftest.dir
3966: # We will build objects and dependencies in a subdirectory because
3967: # it helps to detect inapplicable dependency modes. For instance
3968: # both Tru64's cc and ICC support -MD to output dependencies as a
3969: # side effect of compilation, but ICC will put the dependencies in
3970: # the current directory while Tru64 will put them in the object
3971: # directory.
3972: mkdir sub
1.14 bertrand 3973:
1.15 bertrand 3974: am_cv_CC_dependencies_compiler_type=none
3975: if test "$am_compiler_list" = ""; then
3976: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3977: fi
3978: am__universal=false
3979: case " $depcc " in #(
3980: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3981: esac
1.14 bertrand 3982:
1.15 bertrand 3983: for depmode in $am_compiler_list; do
3984: # Setup a source with many dependencies, because some compilers
3985: # like to wrap large dependency lists on column 80 (with \), and
3986: # we should not choose a depcomp mode which is confused by this.
3987: #
3988: # We need to recreate these files for each test, as the compiler may
3989: # overwrite some of them when testing with obscure command lines.
3990: # This happens at least with the AIX C compiler.
3991: : > sub/conftest.c
3992: for i in 1 2 3 4 5 6; do
3993: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3994: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3995: # Solaris 8's {/usr,}/bin/sh.
3996: touch sub/conftst$i.h
3997: done
3998: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 bertrand 3999:
1.15 bertrand 4000: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4001: # mode. It turns out that the SunPro C++ compiler does not properly
4002: # handle `-M -o', and we need to detect this. Also, some Intel
4003: # versions had trouble with output in subdirs
4004: am__obj=sub/conftest.${OBJEXT-o}
4005: am__minus_obj="-o $am__obj"
4006: case $depmode in
4007: gcc)
4008: # This depmode causes a compiler race in universal mode.
4009: test "$am__universal" = false || continue
4010: ;;
4011: nosideeffect)
4012: # after this tag, mechanisms are not by side-effect, so they'll
4013: # only be used when explicitly requested
4014: if test "x$enable_dependency_tracking" = xyes; then
4015: continue
4016: else
4017: break
4018: fi
4019: ;;
4020: msvisualcpp | msvcmsys)
4021: # This compiler won't grok `-c -o', but also, the minuso test has
4022: # not run yet. These depmodes are late enough in the game, and
4023: # so weak that their functioning should not be impacted.
4024: am__obj=conftest.${OBJEXT-o}
4025: am__minus_obj=
4026: ;;
4027: none) break ;;
4028: esac
4029: if depmode=$depmode \
4030: source=sub/conftest.c object=$am__obj \
4031: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4032: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4033: >/dev/null 2>conftest.err &&
4034: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4035: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4036: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4037: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4038: # icc doesn't choke on unknown options, it will just issue warnings
4039: # or remarks (even with -Werror). So we grep stderr for any message
4040: # that says an option was ignored or not supported.
4041: # When given -MP, icc 7.0 and 7.1 complain thusly:
4042: # icc: Command line warning: ignoring option '-M'; no argument required
4043: # The diagnosis changed in icc 8.0:
4044: # icc: Command line remark: option '-MP' not supported
4045: if (grep 'ignoring option' conftest.err ||
4046: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4047: am_cv_CC_dependencies_compiler_type=$depmode
4048: break
4049: fi
4050: fi
4051: done
1.14 bertrand 4052:
1.15 bertrand 4053: cd ..
4054: rm -rf conftest.dir
1.14 bertrand 4055: else
1.15 bertrand 4056: am_cv_CC_dependencies_compiler_type=none
1.1 bertrand 4057: fi
4058:
1.15 bertrand 4059: fi
4060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4061: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4062: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 bertrand 4063:
1.15 bertrand 4064: if
4065: test "x$enable_dependency_tracking" != xno \
4066: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4067: am__fastdepCC_TRUE=
4068: am__fastdepCC_FALSE='#'
1.1 bertrand 4069: else
1.15 bertrand 4070: am__fastdepCC_TRUE='#'
4071: am__fastdepCC_FALSE=
4072: fi
4073:
1.1 bertrand 4074:
4075:
1.30 bertrand 4076: EXT_SQL=
4077:
1.15 bertrand 4078: if test x"$CC" != x""; then
4079: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4080: awk -F. '{ printf("%s", $1);}'`
4081: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4082: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4083: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4084: OPTIMISATION_C=-O3
4085: else
1.23 bertrand 4086: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4087: then
1.15 bertrand 4088: OPTIMISATION_C=-O3
4089: else
1.23 bertrand 4090: if test $GCC_VERSION_MAJEURE -ge 2; then
4091: OPTIMISATION_C=-O2
4092: else
1.36 bertrand 4093: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23 bertrand 4094: fi
1.15 bertrand 4095: fi
4096: fi
1.14 bertrand 4097: fi
4098:
1.15 bertrand 4099: if test "x$CC" != xcc; then
4100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4101: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14 bertrand 4102: else
1.15 bertrand 4103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4104: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1 bertrand 4105: fi
1.15 bertrand 4106: set dummy $CC; ac_cc=`$as_echo "$2" |
4107: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57 bertrand 4108: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15 bertrand 4109: $as_echo_n "(cached) " >&6
1.1 bertrand 4110: else
1.15 bertrand 4111: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 4112: /* end confdefs.h. */
4113:
4114: int
4115: main ()
4116: {
1.15 bertrand 4117:
1.1 bertrand 4118: ;
4119: return 0;
4120: }
4121: _ACEOF
1.15 bertrand 4122: # Make sure it works both with $CC and with simple cc.
4123: # We do the test twice because some compilers refuse to overwrite an
4124: # existing .o file with -o, though they will create one.
4125: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4126: rm -f conftest2.*
4127: if { { case "(($ac_try" in
4128: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129: *) ac_try_echo=$ac_try;;
4130: esac
4131: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132: $as_echo "$ac_try_echo"; } >&5
4133: (eval "$ac_try") 2>&5
4134: ac_status=$?
4135: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136: test $ac_status = 0; } &&
4137: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4138: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139: *) ac_try_echo=$ac_try;;
4140: esac
4141: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142: $as_echo "$ac_try_echo"; } >&5
4143: (eval "$ac_try") 2>&5
4144: ac_status=$?
4145: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146: test $ac_status = 0; };
4147: then
4148: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4149: if test "x$CC" != xcc; then
4150: # Test first that cc exists at all.
4151: if { ac_try='cc -c conftest.$ac_ext >&5'
4152: { { case "(($ac_try" in
4153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154: *) ac_try_echo=$ac_try;;
4155: esac
4156: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157: $as_echo "$ac_try_echo"; } >&5
4158: (eval "$ac_try") 2>&5
4159: ac_status=$?
4160: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161: test $ac_status = 0; }; }; then
4162: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4163: rm -f conftest2.*
4164: if { { case "(($ac_try" in
4165: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166: *) ac_try_echo=$ac_try;;
4167: esac
4168: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169: $as_echo "$ac_try_echo"; } >&5
4170: (eval "$ac_try") 2>&5
4171: ac_status=$?
4172: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173: test $ac_status = 0; } &&
4174: test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14 bertrand 4175: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176: *) ac_try_echo=$ac_try;;
4177: esac
1.15 bertrand 4178: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179: $as_echo "$ac_try_echo"; } >&5
4180: (eval "$ac_try") 2>&5
1.14 bertrand 4181: ac_status=$?
1.15 bertrand 4182: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183: test $ac_status = 0; };
4184: then
4185: # cc works too.
4186: :
4187: else
4188: # cc exists but doesn't like -o.
4189: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4190: fi
4191: fi
4192: fi
1.1 bertrand 4193: else
1.15 bertrand 4194: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4195: fi
4196: rm -f core conftest*
1.14 bertrand 4197:
1.1 bertrand 4198: fi
1.15 bertrand 4199: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201: $as_echo "yes" >&6; }
4202: else
4203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204: $as_echo "no" >&6; }
4205:
4206: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1 bertrand 4207:
4208: fi
1.15 bertrand 4209:
4210: # FIXME: we rely on the cache variable name because
4211: # there is no other way.
4212: set dummy $CC
4213: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4214: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4215: if test "$am_t" != yes; then
4216: # Losing compiler, so override with the script.
4217: # FIXME: It is wrong to rewrite CC.
4218: # But if we don't then we get into trouble of one sort or another.
4219: # A longer-term fix would be to have automake use am__CC in this case,
4220: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4221: CC="$am_aux_dir/compile $CC"
1.1 bertrand 4222: fi
1.14 bertrand 4223:
4224:
1.15 bertrand 4225:
4226: if test "$GCC" != yes; then
1.36 bertrand 4227: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15 bertrand 4228: fi
4229:
4230: ac_ext=cpp
4231: ac_cpp='$CXXCPP $CPPFLAGS'
4232: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4235: if test -z "$CXX"; then
4236: if test -n "$CCC"; then
4237: CXX=$CCC
4238: else
4239: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4240: for ac_prog in g++
1.15 bertrand 4241: do
4242: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4243: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4246: if ${ac_cv_prog_CXX+:} false; then :
1.15 bertrand 4247: $as_echo_n "(cached) " >&6
1.1 bertrand 4248: else
1.15 bertrand 4249: if test -n "$CXX"; then
4250: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14 bertrand 4251: else
1.15 bertrand 4252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253: for as_dir in $PATH
4254: do
4255: IFS=$as_save_IFS
4256: test -z "$as_dir" && as_dir=.
4257: for ac_exec_ext in '' $ac_executable_extensions; do
4258: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4260: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261: break 2
4262: fi
4263: done
4264: done
4265: IFS=$as_save_IFS
1.14 bertrand 4266:
4267: fi
4268: fi
1.15 bertrand 4269: CXX=$ac_cv_prog_CXX
4270: if test -n "$CXX"; then
4271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4272: $as_echo "$CXX" >&6; }
1.14 bertrand 4273: else
1.15 bertrand 4274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275: $as_echo "no" >&6; }
1.14 bertrand 4276: fi
4277:
4278:
1.15 bertrand 4279: test -n "$CXX" && break
4280: done
4281: fi
4282: if test -z "$CXX"; then
4283: ac_ct_CXX=$CXX
1.23 bertrand 4284: for ac_prog in g++
1.15 bertrand 4285: do
4286: # Extract the first word of "$ac_prog", so it can be a program name with args.
4287: set dummy $ac_prog; ac_word=$2
4288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4290: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15 bertrand 4291: $as_echo_n "(cached) " >&6
4292: else
4293: if test -n "$ac_ct_CXX"; then
4294: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4295: else
4296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297: for as_dir in $PATH
4298: do
4299: IFS=$as_save_IFS
4300: test -z "$as_dir" && as_dir=.
4301: for ac_exec_ext in '' $ac_executable_extensions; do
4302: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303: ac_cv_prog_ac_ct_CXX="$ac_prog"
4304: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305: break 2
4306: fi
4307: done
4308: done
4309: IFS=$as_save_IFS
1.14 bertrand 4310:
1.15 bertrand 4311: fi
4312: fi
4313: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4314: if test -n "$ac_ct_CXX"; then
4315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4316: $as_echo "$ac_ct_CXX" >&6; }
1.1 bertrand 4317: else
1.15 bertrand 4318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319: $as_echo "no" >&6; }
1.14 bertrand 4320: fi
4321:
4322:
1.15 bertrand 4323: test -n "$ac_ct_CXX" && break
4324: done
1.14 bertrand 4325:
1.15 bertrand 4326: if test "x$ac_ct_CXX" = x; then
4327: CXX="g++"
4328: else
4329: case $cross_compiling:$ac_tool_warned in
4330: yes:)
4331: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333: ac_tool_warned=yes ;;
4334: esac
4335: CXX=$ac_ct_CXX
4336: fi
4337: fi
1.1 bertrand 4338:
1.15 bertrand 4339: fi
4340: fi
4341: # Provide some information about the compiler.
4342: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4343: set X $ac_compile
4344: ac_compiler=$2
4345: for ac_option in --version -v -V -qversion; do
4346: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4347: case "(($ac_try" in
4348: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349: *) ac_try_echo=$ac_try;;
4350: esac
1.15 bertrand 4351: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352: $as_echo "$ac_try_echo"; } >&5
4353: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4354: ac_status=$?
1.15 bertrand 4355: if test -s conftest.err; then
4356: sed '10a\
4357: ... rest of stderr output deleted ...
4358: 10q' conftest.err >conftest.er1
4359: cat conftest.er1 >&5
4360: fi
4361: rm -f conftest.er1 conftest.err
4362: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363: test $ac_status = 0; }
4364: done
4365:
4366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4367: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57 bertrand 4368: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15 bertrand 4369: $as_echo_n "(cached) " >&6
1.14 bertrand 4370: else
1.15 bertrand 4371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372: /* end confdefs.h. */
1.1 bertrand 4373:
4374: int
4375: main ()
4376: {
1.15 bertrand 4377: #ifndef __GNUC__
4378: choke me
4379: #endif
1.1 bertrand 4380:
4381: ;
4382: return 0;
4383: }
4384: _ACEOF
1.15 bertrand 4385: if ac_fn_cxx_try_compile "$LINENO"; then :
4386: ac_compiler_gnu=yes
1.1 bertrand 4387: else
1.15 bertrand 4388: ac_compiler_gnu=no
1.1 bertrand 4389: fi
1.14 bertrand 4390: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4391: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4392:
1.15 bertrand 4393: fi
4394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4395: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4396: if test $ac_compiler_gnu = yes; then
4397: GXX=yes
4398: else
4399: GXX=
4400: fi
4401: ac_test_CXXFLAGS=${CXXFLAGS+set}
4402: ac_save_CXXFLAGS=$CXXFLAGS
4403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4404: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57 bertrand 4405: if ${ac_cv_prog_cxx_g+:} false; then :
1.15 bertrand 4406: $as_echo_n "(cached) " >&6
4407: else
4408: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4409: ac_cxx_werror_flag=yes
4410: ac_cv_prog_cxx_g=no
4411: CXXFLAGS="-g"
4412: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 4413: /* end confdefs.h. */
1.15 bertrand 4414:
1.1 bertrand 4415: int
4416: main ()
4417: {
1.14 bertrand 4418:
1.1 bertrand 4419: ;
4420: return 0;
4421: }
4422: _ACEOF
1.15 bertrand 4423: if ac_fn_cxx_try_compile "$LINENO"; then :
4424: ac_cv_prog_cxx_g=yes
1.14 bertrand 4425: else
1.15 bertrand 4426: CXXFLAGS=""
4427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428: /* end confdefs.h. */
1.1 bertrand 4429:
1.14 bertrand 4430: int
4431: main ()
4432: {
1.1 bertrand 4433:
1.14 bertrand 4434: ;
4435: return 0;
4436: }
4437: _ACEOF
1.15 bertrand 4438: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 bertrand 4439:
4440: else
1.15 bertrand 4441: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4442: CXXFLAGS="-g"
4443: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444: /* end confdefs.h. */
1.1 bertrand 4445:
1.14 bertrand 4446: int
4447: main ()
4448: {
1.1 bertrand 4449:
1.14 bertrand 4450: ;
4451: return 0;
4452: }
4453: _ACEOF
1.15 bertrand 4454: if ac_fn_cxx_try_compile "$LINENO"; then :
4455: ac_cv_prog_cxx_g=yes
4456: fi
4457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458: fi
4459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460: fi
4461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4463: fi
4464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4465: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4466: if test "$ac_test_CXXFLAGS" = set; then
4467: CXXFLAGS=$ac_save_CXXFLAGS
4468: elif test $ac_cv_prog_cxx_g = yes; then
4469: if test "$GXX" = yes; then
4470: CXXFLAGS="-g -O2"
4471: else
4472: CXXFLAGS="-g"
4473: fi
4474: else
4475: if test "$GXX" = yes; then
4476: CXXFLAGS="-O2"
4477: else
4478: CXXFLAGS=
4479: fi
4480: fi
4481: ac_ext=c
4482: ac_cpp='$CPP $CPPFLAGS'
4483: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486:
4487: depcc="$CXX" am_compiler_list=
4488:
4489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4490: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57 bertrand 4491: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15 bertrand 4492: $as_echo_n "(cached) " >&6
4493: else
4494: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4495: # We make a subdir and do the tests there. Otherwise we can end up
4496: # making bogus files that we don't know about and never remove. For
4497: # instance it was reported that on HP-UX the gcc test will end up
4498: # making a dummy file named `D' -- because `-MD' means `put the output
4499: # in D'.
4500: mkdir conftest.dir
4501: # Copy depcomp to subdir because otherwise we won't find it if we're
4502: # using a relative directory.
4503: cp "$am_depcomp" conftest.dir
4504: cd conftest.dir
4505: # We will build objects and dependencies in a subdirectory because
4506: # it helps to detect inapplicable dependency modes. For instance
4507: # both Tru64's cc and ICC support -MD to output dependencies as a
4508: # side effect of compilation, but ICC will put the dependencies in
4509: # the current directory while Tru64 will put them in the object
4510: # directory.
4511: mkdir sub
4512:
4513: am_cv_CXX_dependencies_compiler_type=none
4514: if test "$am_compiler_list" = ""; then
4515: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4516: fi
4517: am__universal=false
4518: case " $depcc " in #(
4519: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4520: esac
4521:
4522: for depmode in $am_compiler_list; do
4523: # Setup a source with many dependencies, because some compilers
4524: # like to wrap large dependency lists on column 80 (with \), and
4525: # we should not choose a depcomp mode which is confused by this.
4526: #
4527: # We need to recreate these files for each test, as the compiler may
4528: # overwrite some of them when testing with obscure command lines.
4529: # This happens at least with the AIX C compiler.
4530: : > sub/conftest.c
4531: for i in 1 2 3 4 5 6; do
4532: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4533: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4534: # Solaris 8's {/usr,}/bin/sh.
4535: touch sub/conftst$i.h
4536: done
4537: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4538:
4539: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4540: # mode. It turns out that the SunPro C++ compiler does not properly
4541: # handle `-M -o', and we need to detect this. Also, some Intel
4542: # versions had trouble with output in subdirs
4543: am__obj=sub/conftest.${OBJEXT-o}
4544: am__minus_obj="-o $am__obj"
4545: case $depmode in
4546: gcc)
4547: # This depmode causes a compiler race in universal mode.
4548: test "$am__universal" = false || continue
4549: ;;
4550: nosideeffect)
4551: # after this tag, mechanisms are not by side-effect, so they'll
4552: # only be used when explicitly requested
4553: if test "x$enable_dependency_tracking" = xyes; then
4554: continue
4555: else
4556: break
4557: fi
4558: ;;
4559: msvisualcpp | msvcmsys)
4560: # This compiler won't grok `-c -o', but also, the minuso test has
4561: # not run yet. These depmodes are late enough in the game, and
4562: # so weak that their functioning should not be impacted.
4563: am__obj=conftest.${OBJEXT-o}
4564: am__minus_obj=
4565: ;;
4566: none) break ;;
4567: esac
4568: if depmode=$depmode \
4569: source=sub/conftest.c object=$am__obj \
4570: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4571: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4572: >/dev/null 2>conftest.err &&
4573: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4574: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4575: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4576: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4577: # icc doesn't choke on unknown options, it will just issue warnings
4578: # or remarks (even with -Werror). So we grep stderr for any message
4579: # that says an option was ignored or not supported.
4580: # When given -MP, icc 7.0 and 7.1 complain thusly:
4581: # icc: Command line warning: ignoring option '-M'; no argument required
4582: # The diagnosis changed in icc 8.0:
4583: # icc: Command line remark: option '-MP' not supported
4584: if (grep 'ignoring option' conftest.err ||
4585: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4586: am_cv_CXX_dependencies_compiler_type=$depmode
4587: break
4588: fi
4589: fi
4590: done
4591:
4592: cd ..
4593: rm -rf conftest.dir
4594: else
4595: am_cv_CXX_dependencies_compiler_type=none
4596: fi
4597:
4598: fi
4599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4600: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4601: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4602:
4603: if
4604: test "x$enable_dependency_tracking" != xno \
4605: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4606: am__fastdepCXX_TRUE=
4607: am__fastdepCXX_FALSE='#'
4608: else
4609: am__fastdepCXX_TRUE='#'
4610: am__fastdepCXX_FALSE=
4611: fi
4612:
4613:
4614:
1.87 bertrand 4615: if test "$GXX" != yes; then
1.36 bertrand 4616: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15 bertrand 4617: fi
4618:
1.69 bertrand 4619: if test x"$CXX" != x""; then
4620: GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4621: awk -F. '{ printf("%s", $1);}'`
4622: GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4623: awk -F. '{ printf("%s", $2);}'`
4624: if test $GCC_VERSION_MAJEURE -ge 5; then
4625: OPTIMISATION_GXX=-O3
4626: else
4627: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4628: OPTIMISATION_GXX=-O3
4629: else
4630: if test $GCC_VERSION_MAJEURE -ge 3; then
4631: OPTIMISATION_GXX=-O2
4632: else
4633: as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
4634: fi
4635: fi
4636: fi
4637: fi
4638:
1.15 bertrand 4639: ac_ext=f
4640: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4641: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4643: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4644: for ac_prog in gfortran
1.15 bertrand 4645: do
4646: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4650: if ${ac_cv_prog_F77+:} false; then :
1.15 bertrand 4651: $as_echo_n "(cached) " >&6
4652: else
4653: if test -n "$F77"; then
4654: ac_cv_prog_F77="$F77" # Let the user override the test.
4655: else
4656: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657: for as_dir in $PATH
4658: do
4659: IFS=$as_save_IFS
4660: test -z "$as_dir" && as_dir=.
4661: for ac_exec_ext in '' $ac_executable_extensions; do
4662: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4664: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665: break 2
4666: fi
4667: done
4668: done
4669: IFS=$as_save_IFS
4670:
4671: fi
4672: fi
4673: F77=$ac_cv_prog_F77
4674: if test -n "$F77"; then
4675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4676: $as_echo "$F77" >&6; }
4677: else
4678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679: $as_echo "no" >&6; }
4680: fi
4681:
4682:
4683: test -n "$F77" && break
4684: done
4685: fi
4686: if test -z "$F77"; then
4687: ac_ct_F77=$F77
1.23 bertrand 4688: for ac_prog in gfortran
1.15 bertrand 4689: do
4690: # Extract the first word of "$ac_prog", so it can be a program name with args.
4691: set dummy $ac_prog; ac_word=$2
4692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4694: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15 bertrand 4695: $as_echo_n "(cached) " >&6
4696: else
4697: if test -n "$ac_ct_F77"; then
4698: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4699: else
4700: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701: for as_dir in $PATH
4702: do
4703: IFS=$as_save_IFS
4704: test -z "$as_dir" && as_dir=.
4705: for ac_exec_ext in '' $ac_executable_extensions; do
4706: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707: ac_cv_prog_ac_ct_F77="$ac_prog"
4708: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709: break 2
4710: fi
4711: done
4712: done
4713: IFS=$as_save_IFS
4714:
4715: fi
4716: fi
4717: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4718: if test -n "$ac_ct_F77"; then
4719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4720: $as_echo "$ac_ct_F77" >&6; }
1.1 bertrand 4721: else
1.15 bertrand 4722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723: $as_echo "no" >&6; }
4724: fi
4725:
4726:
4727: test -n "$ac_ct_F77" && break
4728: done
1.1 bertrand 4729:
1.15 bertrand 4730: if test "x$ac_ct_F77" = x; then
4731: F77=""
4732: else
4733: case $cross_compiling:$ac_tool_warned in
4734: yes:)
4735: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4736: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737: ac_tool_warned=yes ;;
4738: esac
4739: F77=$ac_ct_F77
4740: fi
1.14 bertrand 4741: fi
1.1 bertrand 4742:
4743:
1.15 bertrand 4744: # Provide some information about the compiler.
4745: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4746: set X $ac_compile
4747: ac_compiler=$2
4748: for ac_option in --version -v -V -qversion; do
4749: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4750: case "(($ac_try" in
4751: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752: *) ac_try_echo=$ac_try;;
4753: esac
1.15 bertrand 4754: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755: $as_echo "$ac_try_echo"; } >&5
4756: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4757: ac_status=$?
1.15 bertrand 4758: if test -s conftest.err; then
4759: sed '10a\
4760: ... rest of stderr output deleted ...
4761: 10q' conftest.err >conftest.er1
4762: cat conftest.er1 >&5
4763: fi
4764: rm -f conftest.er1 conftest.err
4765: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766: test $ac_status = 0; }
4767: done
4768: rm -f a.out
4769:
4770: # If we don't use `.F' as extension, the preprocessor is not run on the
4771: # input file. (Note that this only needs to work for GNU compilers.)
4772: ac_save_ext=$ac_ext
4773: ac_ext=F
4774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4775: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57 bertrand 4776: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15 bertrand 4777: $as_echo_n "(cached) " >&6
1.1 bertrand 4778: else
1.15 bertrand 4779: cat > conftest.$ac_ext <<_ACEOF
4780: program main
4781: #ifndef __GNUC__
4782: choke me
4783: #endif
1.14 bertrand 4784:
1.15 bertrand 4785: end
4786: _ACEOF
4787: if ac_fn_f77_try_compile "$LINENO"; then :
4788: ac_compiler_gnu=yes
4789: else
4790: ac_compiler_gnu=no
1.1 bertrand 4791: fi
1.15 bertrand 4792: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4794:
4795: fi
1.15 bertrand 4796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4797: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4798: ac_ext=$ac_save_ext
4799: ac_test_FFLAGS=${FFLAGS+set}
4800: ac_save_FFLAGS=$FFLAGS
4801: FFLAGS=
4802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4803: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57 bertrand 4804: if ${ac_cv_prog_f77_g+:} false; then :
1.15 bertrand 4805: $as_echo_n "(cached) " >&6
4806: else
4807: FFLAGS=-g
4808: cat > conftest.$ac_ext <<_ACEOF
4809: program main
1.1 bertrand 4810:
1.15 bertrand 4811: end
1.14 bertrand 4812: _ACEOF
1.15 bertrand 4813: if ac_fn_f77_try_compile "$LINENO"; then :
4814: ac_cv_prog_f77_g=yes
1.1 bertrand 4815: else
1.15 bertrand 4816: ac_cv_prog_f77_g=no
1.1 bertrand 4817: fi
1.15 bertrand 4818: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4819:
4820: fi
1.15 bertrand 4821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4822: $as_echo "$ac_cv_prog_f77_g" >&6; }
4823: if test "$ac_test_FFLAGS" = set; then
4824: FFLAGS=$ac_save_FFLAGS
4825: elif test $ac_cv_prog_f77_g = yes; then
4826: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4827: FFLAGS="-g -O2"
4828: else
4829: FFLAGS="-g"
4830: fi
4831: else
4832: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4833: FFLAGS="-O2"
4834: else
4835: FFLAGS=
4836: fi
1.1 bertrand 4837: fi
4838:
1.15 bertrand 4839: if test $ac_compiler_gnu = yes; then
4840: G77=yes
1.1 bertrand 4841: else
1.15 bertrand 4842: G77=
1.1 bertrand 4843: fi
1.15 bertrand 4844: ac_ext=c
4845: ac_cpp='$CPP $CPPFLAGS'
4846: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4849:
4850:
1.15 bertrand 4851: ac_ext=${ac_fc_srcext-f}
4852: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4853: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4854: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4855: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4856: for ac_prog in gfortran
1.15 bertrand 4857: do
4858: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4859: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4862: if ${ac_cv_prog_FC+:} false; then :
1.15 bertrand 4863: $as_echo_n "(cached) " >&6
4864: else
4865: if test -n "$FC"; then
4866: ac_cv_prog_FC="$FC" # Let the user override the test.
1.1 bertrand 4867: else
1.15 bertrand 4868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869: for as_dir in $PATH
4870: do
4871: IFS=$as_save_IFS
4872: test -z "$as_dir" && as_dir=.
4873: for ac_exec_ext in '' $ac_executable_extensions; do
4874: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4876: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877: break 2
4878: fi
4879: done
4880: done
4881: IFS=$as_save_IFS
1.1 bertrand 4882:
4883: fi
1.15 bertrand 4884: fi
4885: FC=$ac_cv_prog_FC
4886: if test -n "$FC"; then
4887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4888: $as_echo "$FC" >&6; }
1.14 bertrand 4889: else
1.15 bertrand 4890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891: $as_echo "no" >&6; }
1.14 bertrand 4892: fi
4893:
1.1 bertrand 4894:
1.15 bertrand 4895: test -n "$FC" && break
4896: done
4897: fi
4898: if test -z "$FC"; then
4899: ac_ct_FC=$FC
1.23 bertrand 4900: for ac_prog in gfortran
1.15 bertrand 4901: do
4902: # Extract the first word of "$ac_prog", so it can be a program name with args.
4903: set dummy $ac_prog; ac_word=$2
4904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4906: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15 bertrand 4907: $as_echo_n "(cached) " >&6
4908: else
4909: if test -n "$ac_ct_FC"; then
4910: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4911: else
4912: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913: for as_dir in $PATH
4914: do
4915: IFS=$as_save_IFS
4916: test -z "$as_dir" && as_dir=.
4917: for ac_exec_ext in '' $ac_executable_extensions; do
4918: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919: ac_cv_prog_ac_ct_FC="$ac_prog"
4920: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921: break 2
4922: fi
4923: done
4924: done
4925: IFS=$as_save_IFS
1.1 bertrand 4926:
1.15 bertrand 4927: fi
4928: fi
4929: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4930: if test -n "$ac_ct_FC"; then
4931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4932: $as_echo "$ac_ct_FC" >&6; }
1.1 bertrand 4933: else
1.15 bertrand 4934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935: $as_echo "no" >&6; }
1.1 bertrand 4936: fi
1.14 bertrand 4937:
1.1 bertrand 4938:
1.15 bertrand 4939: test -n "$ac_ct_FC" && break
4940: done
1.1 bertrand 4941:
1.15 bertrand 4942: if test "x$ac_ct_FC" = x; then
4943: FC=""
4944: else
4945: case $cross_compiling:$ac_tool_warned in
4946: yes:)
4947: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949: ac_tool_warned=yes ;;
1.14 bertrand 4950: esac
1.15 bertrand 4951: FC=$ac_ct_FC
4952: fi
1.14 bertrand 4953: fi
4954:
4955:
1.15 bertrand 4956: # Provide some information about the compiler.
4957: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4958: set X $ac_compile
4959: ac_compiler=$2
4960: for ac_option in --version -v -V -qversion; do
4961: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4962: case "(($ac_try" in
4963: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964: *) ac_try_echo=$ac_try;;
4965: esac
1.15 bertrand 4966: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967: $as_echo "$ac_try_echo"; } >&5
4968: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4969: ac_status=$?
1.15 bertrand 4970: if test -s conftest.err; then
4971: sed '10a\
4972: ... rest of stderr output deleted ...
4973: 10q' conftest.err >conftest.er1
4974: cat conftest.er1 >&5
4975: fi
4976: rm -f conftest.er1 conftest.err
4977: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978: test $ac_status = 0; }
4979: done
4980: rm -f a.out
4981:
4982: # If we don't use `.F' as extension, the preprocessor is not run on the
4983: # input file. (Note that this only needs to work for GNU compilers.)
4984: ac_save_ext=$ac_ext
4985: ac_ext=F
4986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4987: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57 bertrand 4988: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15 bertrand 4989: $as_echo_n "(cached) " >&6
1.14 bertrand 4990: else
1.15 bertrand 4991: cat > conftest.$ac_ext <<_ACEOF
4992: program main
4993: #ifndef __GNUC__
4994: choke me
4995: #endif
1.14 bertrand 4996:
1.15 bertrand 4997: end
4998: _ACEOF
4999: if ac_fn_fc_try_compile "$LINENO"; then :
5000: ac_compiler_gnu=yes
5001: else
5002: ac_compiler_gnu=no
1.14 bertrand 5003: fi
5004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 5005: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 5006:
1.15 bertrand 5007: fi
5008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5009: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5010: ac_ext=$ac_save_ext
5011: ac_test_FCFLAGS=${FCFLAGS+set}
5012: ac_save_FCFLAGS=$FCFLAGS
5013: FCFLAGS=
5014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5015: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57 bertrand 5016: if ${ac_cv_prog_fc_g+:} false; then :
1.15 bertrand 5017: $as_echo_n "(cached) " >&6
5018: else
5019: FCFLAGS=-g
5020: cat > conftest.$ac_ext <<_ACEOF
5021: program main
1.1 bertrand 5022:
1.15 bertrand 5023: end
1.1 bertrand 5024: _ACEOF
1.15 bertrand 5025: if ac_fn_fc_try_compile "$LINENO"; then :
5026: ac_cv_prog_fc_g=yes
1.1 bertrand 5027: else
1.15 bertrand 5028: ac_cv_prog_fc_g=no
1.1 bertrand 5029: fi
1.14 bertrand 5030: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 5031:
1.15 bertrand 5032: fi
5033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5034: $as_echo "$ac_cv_prog_fc_g" >&6; }
5035: if test "$ac_test_FCFLAGS" = set; then
5036: FCFLAGS=$ac_save_FCFLAGS
5037: elif test $ac_cv_prog_fc_g = yes; then
5038: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5039: FCFLAGS="-g -O2"
5040: else
5041: FCFLAGS="-g"
5042: fi
1.1 bertrand 5043: else
1.15 bertrand 5044: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5045: FCFLAGS="-O2"
5046: else
5047: FCFLAGS=
5048: fi
1.1 bertrand 5049: fi
5050:
1.15 bertrand 5051: ac_ext=c
5052: ac_cpp='$CPP $CPPFLAGS'
5053: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 5056:
5057:
1.88 bertrand 5058: if test x"$F77" == x; then
5059: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
5060: fi
5061:
5062: if test x"$FC" == x; then
1.36 bertrand 5063: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1 bertrand 5064: fi
5065:
1.15 bertrand 5066: if test x"$FC" != x""; then
5067: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5068: awk -F. '{ printf("%s", $1);}'`
5069: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5070: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 5071: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 5072: OPTIMISATION_F=-O3
5073: else
1.23 bertrand 5074: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15 bertrand 5075: OPTIMISATION_F=-O3
5076: else
1.23 bertrand 5077: if test $GCC_VERSION_MAJEURE -ge 3; then
5078: OPTIMISATION_F=-O2
5079: else
1.36 bertrand 5080: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23 bertrand 5081: fi
1.14 bertrand 5082: fi
5083: fi
5084: fi
1.1 bertrand 5085:
5086:
1.15 bertrand 5087: ac_ext=c
5088: ac_cpp='$CPP $CPPFLAGS'
5089: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5093: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5094: # On Suns, sometimes $CPP names a directory.
5095: if test -n "$CPP" && test -d "$CPP"; then
5096: CPP=
5097: fi
5098: if test -z "$CPP"; then
1.57 bertrand 5099: if ${ac_cv_prog_CPP+:} false; then :
1.15 bertrand 5100: $as_echo_n "(cached) " >&6
5101: else
5102: # Double quotes because CPP needs to be expanded
5103: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5104: do
5105: ac_preproc_ok=false
5106: for ac_c_preproc_warn_flag in '' yes
5107: do
5108: # Use a header file that comes with gcc, so configuring glibc
5109: # with a fresh cross-compiler works.
5110: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111: # <limits.h> exists even on freestanding compilers.
5112: # On the NeXT, cc -E runs the code through the compiler's parser,
5113: # not just through cpp. "Syntax error" is here to catch this case.
5114: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5115: /* end confdefs.h. */
1.15 bertrand 5116: #ifdef __STDC__
5117: # include <limits.h>
5118: #else
5119: # include <assert.h>
5120: #endif
5121: Syntax error
1.1 bertrand 5122: _ACEOF
1.15 bertrand 5123: if ac_fn_c_try_cpp "$LINENO"; then :
5124:
1.1 bertrand 5125: else
1.15 bertrand 5126: # Broken: fails on valid input.
5127: continue
1.1 bertrand 5128: fi
1.36 bertrand 5129: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5130:
1.15 bertrand 5131: # OK, works on sane cases. Now check whether nonexistent headers
5132: # can be detected and how.
5133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134: /* end confdefs.h. */
5135: #include <ac_nonexistent.h>
5136: _ACEOF
5137: if ac_fn_c_try_cpp "$LINENO"; then :
5138: # Broken: success on invalid input.
5139: continue
5140: else
5141: # Passes both tests.
5142: ac_preproc_ok=:
5143: break
1.1 bertrand 5144: fi
1.36 bertrand 5145: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 bertrand 5146:
1.15 bertrand 5147: done
5148: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5149: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5150: if $ac_preproc_ok; then :
5151: break
1.1 bertrand 5152: fi
5153:
1.15 bertrand 5154: done
5155: ac_cv_prog_CPP=$CPP
1.14 bertrand 5156:
1.15 bertrand 5157: fi
5158: CPP=$ac_cv_prog_CPP
1.1 bertrand 5159: else
1.15 bertrand 5160: ac_cv_prog_CPP=$CPP
5161: fi
5162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5163: $as_echo "$CPP" >&6; }
5164: ac_preproc_ok=false
5165: for ac_c_preproc_warn_flag in '' yes
1.14 bertrand 5166: do
1.15 bertrand 5167: # Use a header file that comes with gcc, so configuring glibc
5168: # with a fresh cross-compiler works.
5169: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170: # <limits.h> exists even on freestanding compilers.
5171: # On the NeXT, cc -E runs the code through the compiler's parser,
5172: # not just through cpp. "Syntax error" is here to catch this case.
5173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174: /* end confdefs.h. */
5175: #ifdef __STDC__
5176: # include <limits.h>
5177: #else
5178: # include <assert.h>
5179: #endif
5180: Syntax error
5181: _ACEOF
5182: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 bertrand 5183:
1.15 bertrand 5184: else
5185: # Broken: fails on valid input.
5186: continue
5187: fi
1.36 bertrand 5188: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5189:
1.15 bertrand 5190: # OK, works on sane cases. Now check whether nonexistent headers
5191: # can be detected and how.
5192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193: /* end confdefs.h. */
5194: #include <ac_nonexistent.h>
5195: _ACEOF
5196: if ac_fn_c_try_cpp "$LINENO"; then :
5197: # Broken: success on invalid input.
5198: continue
5199: else
5200: # Passes both tests.
5201: ac_preproc_ok=:
5202: break
5203: fi
1.36 bertrand 5204: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5205:
5206: done
1.15 bertrand 5207: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5208: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5209: if $ac_preproc_ok; then :
1.1 bertrand 5210:
1.15 bertrand 5211: else
5212: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5213: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 5214: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57 bertrand 5215: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 5216: fi
1.14 bertrand 5217:
1.15 bertrand 5218: ac_ext=c
5219: ac_cpp='$CPP $CPPFLAGS'
5220: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 5223:
5224:
1.15 bertrand 5225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5226: $as_echo_n "checking for X... " >&6; }
1.1 bertrand 5227:
5228:
1.15 bertrand 5229: # Check whether --with-x was given.
5230: if test "${with_x+set}" = set; then :
5231: withval=$with_x;
1.1 bertrand 5232: fi
1.14 bertrand 5233:
1.15 bertrand 5234: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5235: if test "x$with_x" = xno; then
5236: # The user explicitly disabled X.
5237: have_x=disabled
1.1 bertrand 5238: else
1.15 bertrand 5239: case $x_includes,$x_libraries in #(
1.57 bertrand 5240: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5241: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15 bertrand 5242: $as_echo_n "(cached) " >&6
1.1 bertrand 5243: else
1.15 bertrand 5244: # One or both of the vars are not set, and there is no cached value.
5245: ac_x_includes=no ac_x_libraries=no
5246: rm -f -r conftest.dir
5247: if mkdir conftest.dir; then
5248: cd conftest.dir
5249: cat >Imakefile <<'_ACEOF'
5250: incroot:
5251: @echo incroot='${INCROOT}'
5252: usrlibdir:
5253: @echo usrlibdir='${USRLIBDIR}'
5254: libdir:
5255: @echo libdir='${LIBDIR}'
5256: _ACEOF
5257: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36 bertrand 5258: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 5259: for ac_var in incroot usrlibdir libdir; do
5260: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5261: done
5262: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5263: for ac_extension in a so sl dylib la dll; do
5264: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5265: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5266: ac_im_usrlibdir=$ac_im_libdir; break
5267: fi
5268: done
5269: # Screen out bogus values from the imake configuration. They are
5270: # bogus both because they are the default anyway, and because
5271: # using them would break gcc on systems where it needs fixed includes.
5272: case $ac_im_incroot in
5273: /usr/include) ac_x_includes= ;;
5274: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5275: esac
5276: case $ac_im_usrlibdir in
5277: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5278: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5279: esac
5280: fi
5281: cd ..
5282: rm -f -r conftest.dir
5283: fi
5284:
5285: # Standard set of common directories for X headers.
5286: # Check X11 before X11Rn because it is often a symlink to the current release.
5287: ac_x_header_dirs='
5288: /usr/X11/include
5289: /usr/X11R7/include
5290: /usr/X11R6/include
5291: /usr/X11R5/include
5292: /usr/X11R4/include
1.1 bertrand 5293:
1.15 bertrand 5294: /usr/include/X11
5295: /usr/include/X11R7
5296: /usr/include/X11R6
5297: /usr/include/X11R5
5298: /usr/include/X11R4
1.1 bertrand 5299:
1.15 bertrand 5300: /usr/local/X11/include
5301: /usr/local/X11R7/include
5302: /usr/local/X11R6/include
5303: /usr/local/X11R5/include
5304: /usr/local/X11R4/include
1.1 bertrand 5305:
1.15 bertrand 5306: /usr/local/include/X11
5307: /usr/local/include/X11R7
5308: /usr/local/include/X11R6
5309: /usr/local/include/X11R5
5310: /usr/local/include/X11R4
1.1 bertrand 5311:
1.15 bertrand 5312: /usr/X386/include
5313: /usr/x386/include
5314: /usr/XFree86/include/X11
1.1 bertrand 5315:
1.15 bertrand 5316: /usr/include
5317: /usr/local/include
5318: /usr/unsupported/include
5319: /usr/athena/include
5320: /usr/local/x11r5/include
5321: /usr/lpp/Xamples/include
1.1 bertrand 5322:
1.15 bertrand 5323: /usr/openwin/include
5324: /usr/openwin/share/include'
1.1 bertrand 5325:
1.15 bertrand 5326: if test "$ac_x_includes" = no; then
5327: # Guess where to find include files, by looking for Xlib.h.
5328: # First, try using that file with no special directory specified.
5329: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330: /* end confdefs.h. */
5331: #include <X11/Xlib.h>
5332: _ACEOF
5333: if ac_fn_c_try_cpp "$LINENO"; then :
5334: # We can compile using X headers with no special include directory.
5335: ac_x_includes=
1.1 bertrand 5336: else
1.15 bertrand 5337: for ac_dir in $ac_x_header_dirs; do
5338: if test -r "$ac_dir/X11/Xlib.h"; then
5339: ac_x_includes=$ac_dir
5340: break
5341: fi
5342: done
1.1 bertrand 5343: fi
1.36 bertrand 5344: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 5345: fi # $ac_x_includes = no
1.1 bertrand 5346:
1.15 bertrand 5347: if test "$ac_x_libraries" = no; then
5348: # Check for the libraries.
5349: # See if we find them without any special options.
5350: # Don't add to $LIBS permanently.
5351: ac_save_LIBS=$LIBS
5352: LIBS="-lX11 $LIBS"
5353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5354: /* end confdefs.h. */
1.15 bertrand 5355: #include <X11/Xlib.h>
1.14 bertrand 5356: int
5357: main ()
5358: {
1.15 bertrand 5359: XrmInitialize ()
1.14 bertrand 5360: ;
5361: return 0;
5362: }
1.1 bertrand 5363: _ACEOF
1.15 bertrand 5364: if ac_fn_c_try_link "$LINENO"; then :
5365: LIBS=$ac_save_LIBS
5366: # We can link X programs with no special library path.
5367: ac_x_libraries=
1.1 bertrand 5368: else
1.15 bertrand 5369: LIBS=$ac_save_LIBS
5370: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5371: do
5372: # Don't even attempt the hair of trying to link an X program!
5373: for ac_extension in a so sl dylib la dll; do
5374: if test -r "$ac_dir/libX11.$ac_extension"; then
5375: ac_x_libraries=$ac_dir
5376: break 2
5377: fi
5378: done
5379: done
5380: fi
5381: rm -f core conftest.err conftest.$ac_objext \
5382: conftest$ac_exeext conftest.$ac_ext
5383: fi # $ac_x_libraries = no
1.1 bertrand 5384:
1.15 bertrand 5385: case $ac_x_includes,$ac_x_libraries in #(
5386: no,* | *,no | *\'*)
5387: # Didn't find X, or a directory has "'" in its name.
5388: ac_cv_have_x="have_x=no";; #(
5389: *)
5390: # Record where we found X for the cache.
5391: ac_cv_have_x="have_x=yes\
5392: ac_x_includes='$ac_x_includes'\
5393: ac_x_libraries='$ac_x_libraries'"
5394: esac
1.1 bertrand 5395: fi
1.15 bertrand 5396: ;; #(
5397: *) have_x=yes;;
5398: esac
5399: eval "$ac_cv_have_x"
5400: fi # $with_x != no
1.1 bertrand 5401:
1.15 bertrand 5402: if test "$have_x" != yes; then
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5404: $as_echo "$have_x" >&6; }
5405: no_x=yes
1.14 bertrand 5406: else
1.15 bertrand 5407: # If each of the values was on the command line, it overrides each guess.
5408: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5409: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5410: # Update the cache value to reflect the command line values.
5411: ac_cv_have_x="have_x=yes\
5412: ac_x_includes='$x_includes'\
5413: ac_x_libraries='$x_libraries'"
5414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5415: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 bertrand 5416: fi
1.1 bertrand 5417:
1.15 bertrand 5418: if test "$no_x" = yes; then
5419: # Not all programs may use this symbol, but it does not hurt to define it.
1.1 bertrand 5420:
1.15 bertrand 5421: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 bertrand 5422:
1.15 bertrand 5423: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 bertrand 5424: else
1.15 bertrand 5425: if test -n "$x_includes"; then
5426: X_CFLAGS="$X_CFLAGS -I$x_includes"
5427: fi
5428:
5429: # It would also be nice to do this for all -L options, not just this one.
5430: if test -n "$x_libraries"; then
5431: X_LIBS="$X_LIBS -L$x_libraries"
5432: # For Solaris; some versions of Sun CC require a space after -R and
5433: # others require no space. Words are not sufficient . . . .
5434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5435: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5436: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5437: ac_xsave_c_werror_flag=$ac_c_werror_flag
5438: ac_c_werror_flag=yes
5439: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440: /* end confdefs.h. */
1.1 bertrand 5441:
1.15 bertrand 5442: int
5443: main ()
5444: {
1.1 bertrand 5445:
1.15 bertrand 5446: ;
5447: return 0;
5448: }
5449: _ACEOF
5450: if ac_fn_c_try_link "$LINENO"; then :
5451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452: $as_echo "no" >&6; }
5453: X_LIBS="$X_LIBS -R$x_libraries"
1.1 bertrand 5454: else
1.15 bertrand 5455: LIBS="$ac_xsave_LIBS -R $x_libraries"
5456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5457: /* end confdefs.h. */
1.1 bertrand 5458:
1.14 bertrand 5459: int
5460: main ()
5461: {
1.15 bertrand 5462:
5463: ;
1.14 bertrand 5464: return 0;
5465: }
5466: _ACEOF
1.15 bertrand 5467: if ac_fn_c_try_link "$LINENO"; then :
5468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5469: $as_echo "yes" >&6; }
5470: X_LIBS="$X_LIBS -R $x_libraries"
1.14 bertrand 5471: else
1.15 bertrand 5472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5473: $as_echo "neither works" >&6; }
1.14 bertrand 5474: fi
1.15 bertrand 5475: rm -f core conftest.err conftest.$ac_objext \
5476: conftest$ac_exeext conftest.$ac_ext
1.14 bertrand 5477: fi
1.15 bertrand 5478: rm -f core conftest.err conftest.$ac_objext \
5479: conftest$ac_exeext conftest.$ac_ext
5480: ac_c_werror_flag=$ac_xsave_c_werror_flag
5481: LIBS=$ac_xsave_LIBS
5482: fi
1.1 bertrand 5483:
1.15 bertrand 5484: # Check for system-dependent libraries X programs must link with.
5485: # Do this before checking for the system-independent R6 libraries
5486: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 bertrand 5487:
1.15 bertrand 5488: if test "$ISC" = yes; then
5489: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5490: else
5491: # Martyn Johnson says this is needed for Ultrix, if the X
5492: # libraries were built with DECnet support. And Karl Berry says
5493: # the Alpha needs dnet_stub (dnet does not exist).
5494: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496: /* end confdefs.h. */
1.1 bertrand 5497:
1.15 bertrand 5498: /* Override any GCC internal prototype to avoid an error.
5499: Use char because int might match the return type of a GCC
5500: builtin and then its argument prototype would still apply. */
5501: #ifdef __cplusplus
5502: extern "C"
5503: #endif
5504: char XOpenDisplay ();
5505: int
5506: main ()
5507: {
5508: return XOpenDisplay ();
5509: ;
5510: return 0;
5511: }
1.1 bertrand 5512: _ACEOF
1.15 bertrand 5513: if ac_fn_c_try_link "$LINENO"; then :
1.14 bertrand 5514:
5515: else
1.15 bertrand 5516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5517: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57 bertrand 5518: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15 bertrand 5519: $as_echo_n "(cached) " >&6
5520: else
5521: ac_check_lib_save_LIBS=$LIBS
5522: LIBS="-ldnet $LIBS"
5523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5524: /* end confdefs.h. */
1.14 bertrand 5525:
1.15 bertrand 5526: /* Override any GCC internal prototype to avoid an error.
5527: Use char because int might match the return type of a GCC
5528: builtin and then its argument prototype would still apply. */
5529: #ifdef __cplusplus
5530: extern "C"
5531: #endif
5532: char dnet_ntoa ();
5533: int
5534: main ()
5535: {
5536: return dnet_ntoa ();
5537: ;
5538: return 0;
5539: }
1.1 bertrand 5540: _ACEOF
1.15 bertrand 5541: if ac_fn_c_try_link "$LINENO"; then :
5542: ac_cv_lib_dnet_dnet_ntoa=yes
1.1 bertrand 5543: else
1.15 bertrand 5544: ac_cv_lib_dnet_dnet_ntoa=no
1.14 bertrand 5545: fi
1.15 bertrand 5546: rm -f core conftest.err conftest.$ac_objext \
5547: conftest$ac_exeext conftest.$ac_ext
5548: LIBS=$ac_check_lib_save_LIBS
1.14 bertrand 5549: fi
1.15 bertrand 5550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5551: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57 bertrand 5552: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15 bertrand 5553: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14 bertrand 5554: fi
5555:
1.15 bertrand 5556: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5558: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57 bertrand 5559: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15 bertrand 5560: $as_echo_n "(cached) " >&6
1.14 bertrand 5561: else
1.15 bertrand 5562: ac_check_lib_save_LIBS=$LIBS
5563: LIBS="-ldnet_stub $LIBS"
5564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5565: /* end confdefs.h. */
1.15 bertrand 5566:
5567: /* Override any GCC internal prototype to avoid an error.
5568: Use char because int might match the return type of a GCC
5569: builtin and then its argument prototype would still apply. */
5570: #ifdef __cplusplus
5571: extern "C"
5572: #endif
5573: char dnet_ntoa ();
1.1 bertrand 5574: int
5575: main ()
5576: {
1.15 bertrand 5577: return dnet_ntoa ();
1.1 bertrand 5578: ;
5579: return 0;
5580: }
5581: _ACEOF
1.15 bertrand 5582: if ac_fn_c_try_link "$LINENO"; then :
5583: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14 bertrand 5584: else
1.15 bertrand 5585: ac_cv_lib_dnet_stub_dnet_ntoa=no
5586: fi
5587: rm -f core conftest.err conftest.$ac_objext \
5588: conftest$ac_exeext conftest.$ac_ext
5589: LIBS=$ac_check_lib_save_LIBS
5590: fi
5591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5592: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57 bertrand 5593: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15 bertrand 5594: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5595: fi
1.14 bertrand 5596:
1.15 bertrand 5597: fi
1.1 bertrand 5598: fi
1.15 bertrand 5599: rm -f core conftest.err conftest.$ac_objext \
5600: conftest$ac_exeext conftest.$ac_ext
5601: LIBS="$ac_xsave_LIBS"
5602:
5603: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5604: # to get the SysV transport functions.
5605: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5606: # needs -lnsl.
5607: # The nsl library prevents programs from opening the X display
5608: # on Irix 5.2, according to T.E. Dickey.
5609: # The functions gethostbyname, getservbyname, and inet_addr are
5610: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5611: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57 bertrand 5612: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1 bertrand 5613:
5614: fi
5615:
1.15 bertrand 5616: if test $ac_cv_func_gethostbyname = no; then
5617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5618: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57 bertrand 5619: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15 bertrand 5620: $as_echo_n "(cached) " >&6
1.1 bertrand 5621: else
1.15 bertrand 5622: ac_check_lib_save_LIBS=$LIBS
5623: LIBS="-lnsl $LIBS"
5624: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5625: /* end confdefs.h. */
1.15 bertrand 5626:
5627: /* Override any GCC internal prototype to avoid an error.
5628: Use char because int might match the return type of a GCC
5629: builtin and then its argument prototype would still apply. */
5630: #ifdef __cplusplus
5631: extern "C"
5632: #endif
5633: char gethostbyname ();
1.1 bertrand 5634: int
5635: main ()
5636: {
1.15 bertrand 5637: return gethostbyname ();
1.1 bertrand 5638: ;
5639: return 0;
5640: }
5641: _ACEOF
1.15 bertrand 5642: if ac_fn_c_try_link "$LINENO"; then :
5643: ac_cv_lib_nsl_gethostbyname=yes
5644: else
5645: ac_cv_lib_nsl_gethostbyname=no
5646: fi
5647: rm -f core conftest.err conftest.$ac_objext \
5648: conftest$ac_exeext conftest.$ac_ext
5649: LIBS=$ac_check_lib_save_LIBS
5650: fi
5651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5652: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57 bertrand 5653: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15 bertrand 5654: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5655: fi
5656:
5657: if test $ac_cv_lib_nsl_gethostbyname = no; then
5658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5659: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57 bertrand 5660: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15 bertrand 5661: $as_echo_n "(cached) " >&6
5662: else
5663: ac_check_lib_save_LIBS=$LIBS
5664: LIBS="-lbsd $LIBS"
5665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5666: /* end confdefs.h. */
1.15 bertrand 5667:
5668: /* Override any GCC internal prototype to avoid an error.
5669: Use char because int might match the return type of a GCC
5670: builtin and then its argument prototype would still apply. */
5671: #ifdef __cplusplus
5672: extern "C"
5673: #endif
5674: char gethostbyname ();
1.1 bertrand 5675: int
5676: main ()
5677: {
1.15 bertrand 5678: return gethostbyname ();
1.1 bertrand 5679: ;
5680: return 0;
5681: }
5682: _ACEOF
1.15 bertrand 5683: if ac_fn_c_try_link "$LINENO"; then :
5684: ac_cv_lib_bsd_gethostbyname=yes
1.1 bertrand 5685: else
1.15 bertrand 5686: ac_cv_lib_bsd_gethostbyname=no
5687: fi
5688: rm -f core conftest.err conftest.$ac_objext \
5689: conftest$ac_exeext conftest.$ac_ext
5690: LIBS=$ac_check_lib_save_LIBS
5691: fi
5692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5693: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57 bertrand 5694: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15 bertrand 5695: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5696: fi
5697:
5698: fi
5699: fi
5700:
5701: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5702: # socket/setsockopt and other routines are undefined under SCO ODT
5703: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5704: # on later versions), says Simon Leinen: it contains gethostby*
5705: # variants that don't use the name server (or something). -lsocket
5706: # must be given before -lnsl if both are needed. We assume that
5707: # if connect needs -lnsl, so does gethostbyname.
5708: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57 bertrand 5709: if test "x$ac_cv_func_connect" = xyes; then :
1.14 bertrand 5710:
1.1 bertrand 5711: fi
5712:
1.15 bertrand 5713: if test $ac_cv_func_connect = no; then
5714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5715: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57 bertrand 5716: if ${ac_cv_lib_socket_connect+:} false; then :
1.15 bertrand 5717: $as_echo_n "(cached) " >&6
1.14 bertrand 5718: else
1.15 bertrand 5719: ac_check_lib_save_LIBS=$LIBS
5720: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5721: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722: /* end confdefs.h. */
1.1 bertrand 5723:
1.15 bertrand 5724: /* Override any GCC internal prototype to avoid an error.
5725: Use char because int might match the return type of a GCC
5726: builtin and then its argument prototype would still apply. */
5727: #ifdef __cplusplus
5728: extern "C"
5729: #endif
5730: char connect ();
1.14 bertrand 5731: int
5732: main ()
5733: {
1.15 bertrand 5734: return connect ();
1.14 bertrand 5735: ;
5736: return 0;
5737: }
5738: _ACEOF
1.15 bertrand 5739: if ac_fn_c_try_link "$LINENO"; then :
5740: ac_cv_lib_socket_connect=yes
5741: else
5742: ac_cv_lib_socket_connect=no
5743: fi
5744: rm -f core conftest.err conftest.$ac_objext \
5745: conftest$ac_exeext conftest.$ac_ext
5746: LIBS=$ac_check_lib_save_LIBS
5747: fi
5748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5749: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57 bertrand 5750: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15 bertrand 5751: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5752: fi
5753:
5754: fi
5755:
5756: # Guillermo Gomez says -lposix is necessary on A/UX.
5757: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57 bertrand 5758: if test "x$ac_cv_func_remove" = xyes; then :
1.15 bertrand 5759:
5760: fi
5761:
5762: if test $ac_cv_func_remove = no; then
5763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5764: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57 bertrand 5765: if ${ac_cv_lib_posix_remove+:} false; then :
1.15 bertrand 5766: $as_echo_n "(cached) " >&6
5767: else
5768: ac_check_lib_save_LIBS=$LIBS
5769: LIBS="-lposix $LIBS"
5770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5771: /* end confdefs.h. */
1.15 bertrand 5772:
5773: /* Override any GCC internal prototype to avoid an error.
5774: Use char because int might match the return type of a GCC
5775: builtin and then its argument prototype would still apply. */
5776: #ifdef __cplusplus
5777: extern "C"
5778: #endif
5779: char remove ();
1.1 bertrand 5780: int
5781: main ()
5782: {
1.15 bertrand 5783: return remove ();
1.1 bertrand 5784: ;
5785: return 0;
5786: }
5787: _ACEOF
1.15 bertrand 5788: if ac_fn_c_try_link "$LINENO"; then :
5789: ac_cv_lib_posix_remove=yes
1.14 bertrand 5790: else
1.15 bertrand 5791: ac_cv_lib_posix_remove=no
5792: fi
5793: rm -f core conftest.err conftest.$ac_objext \
5794: conftest$ac_exeext conftest.$ac_ext
5795: LIBS=$ac_check_lib_save_LIBS
5796: fi
5797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5798: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57 bertrand 5799: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15 bertrand 5800: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14 bertrand 5801: fi
1.1 bertrand 5802:
1.15 bertrand 5803: fi
1.14 bertrand 5804:
1.15 bertrand 5805: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5806: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57 bertrand 5807: if test "x$ac_cv_func_shmat" = xyes; then :
1.14 bertrand 5808:
5809: fi
5810:
1.15 bertrand 5811: if test $ac_cv_func_shmat = no; then
5812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5813: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57 bertrand 5814: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15 bertrand 5815: $as_echo_n "(cached) " >&6
5816: else
5817: ac_check_lib_save_LIBS=$LIBS
5818: LIBS="-lipc $LIBS"
5819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5820: /* end confdefs.h. */
1.15 bertrand 5821:
5822: /* Override any GCC internal prototype to avoid an error.
5823: Use char because int might match the return type of a GCC
5824: builtin and then its argument prototype would still apply. */
5825: #ifdef __cplusplus
5826: extern "C"
5827: #endif
5828: char shmat ();
1.1 bertrand 5829: int
5830: main ()
5831: {
1.15 bertrand 5832: return shmat ();
1.1 bertrand 5833: ;
5834: return 0;
5835: }
5836: _ACEOF
1.15 bertrand 5837: if ac_fn_c_try_link "$LINENO"; then :
5838: ac_cv_lib_ipc_shmat=yes
1.1 bertrand 5839: else
1.15 bertrand 5840: ac_cv_lib_ipc_shmat=no
5841: fi
5842: rm -f core conftest.err conftest.$ac_objext \
5843: conftest$ac_exeext conftest.$ac_ext
5844: LIBS=$ac_check_lib_save_LIBS
5845: fi
5846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5847: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57 bertrand 5848: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15 bertrand 5849: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5850: fi
1.14 bertrand 5851:
1.15 bertrand 5852: fi
5853: fi
1.1 bertrand 5854:
1.15 bertrand 5855: # Check for libraries that X11R6 Xt/Xaw programs need.
5856: ac_save_LDFLAGS=$LDFLAGS
5857: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5858: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5859: # check for ICE first), but we must link in the order -lSM -lICE or
5860: # we get undefined symbols. So assume we have SM if we have ICE.
5861: # These have to be linked with before -lX11, unlike the other
5862: # libraries we check for below, so use a different variable.
5863: # John Interrante, Karl Berry
5864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5865: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57 bertrand 5866: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15 bertrand 5867: $as_echo_n "(cached) " >&6
1.1 bertrand 5868: else
1.15 bertrand 5869: ac_check_lib_save_LIBS=$LIBS
5870: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5872: /* end confdefs.h. */
1.15 bertrand 5873:
5874: /* Override any GCC internal prototype to avoid an error.
5875: Use char because int might match the return type of a GCC
5876: builtin and then its argument prototype would still apply. */
5877: #ifdef __cplusplus
5878: extern "C"
5879: #endif
5880: char IceConnectionNumber ();
1.1 bertrand 5881: int
5882: main ()
5883: {
1.15 bertrand 5884: return IceConnectionNumber ();
1.1 bertrand 5885: ;
5886: return 0;
5887: }
5888: _ACEOF
1.15 bertrand 5889: if ac_fn_c_try_link "$LINENO"; then :
5890: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 bertrand 5891: else
1.15 bertrand 5892: ac_cv_lib_ICE_IceConnectionNumber=no
5893: fi
5894: rm -f core conftest.err conftest.$ac_objext \
5895: conftest$ac_exeext conftest.$ac_ext
5896: LIBS=$ac_check_lib_save_LIBS
5897: fi
5898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5899: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57 bertrand 5900: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15 bertrand 5901: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5902: fi
5903:
5904: LDFLAGS=$ac_save_LDFLAGS
5905:
5906: fi
5907:
1.14 bertrand 5908:
1.15 bertrand 5909: if test "$ac_x_includes" != "no"; then
5910: if test x"$ac_x_includes" != x; then
5911: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5912: includeX="-I$ac_x_includes"
5913: fi
1.1 bertrand 5914: fi
1.15 bertrand 5915: if test "$ac_x_libraries" != "no"; then
5916: if test x"$ac_x_libraries" != x; then
5917: X_LIBS="$X_LIBS -L$ac_x_libraries"
5918: fi
1.1 bertrand 5919: fi
1.15 bertrand 5920:
1.64 bertrand 5921:
1.69 bertrand 5922: # Check whether --with-32bits-abi was given.
5923: if test "${with_32bits_abi+set}" = set; then :
5924: withval=$with_32bits_abi;
1.64 bertrand 5925: if test "$with-32bits-abi" = "no"; then
1.66 bertrand 5926: ABI=
1.64 bertrand 5927: else
1.65 bertrand 5928: ABI=-m32
5929: fi
1.64 bertrand 5930: else
5931:
1.68 bertrand 5932: ABI=
1.64 bertrand 5933:
5934:
5935: fi
5936:
5937:
1.68 bertrand 5938: if test x$ABI = x; then
1.66 bertrand 5939:
1.69 bertrand 5940: # Check whether --with-64bits-abi was given.
5941: if test "${with_64bits_abi+set}" = set; then :
5942: withval=$with_64bits_abi;
1.67 bertrand 5943: if test "$with-64bits-abi" = "no"; then
5944: ABI=
5945: else
5946: ABI=-m64
5947: fi
5948: else
5949:
1.68 bertrand 5950: ABI=
1.67 bertrand 5951:
5952:
5953: fi
5954:
1.68 bertrand 5955: fi
1.67 bertrand 5956:
1.69 bertrand 5957: LDFLAGS="$LDFLAGS $ABI"
5958:
1.91 ! bertrand 5959: # Check whether --enable-recursive was given.
! 5960: if test "${enable_recursive+set}" = set; then :
! 5961: enableval=$enable_recursive;
! 5962: if test "$enableval" = "yes"; then
! 5963: RECURSIVE=yes
! 5964: else
! 5965: RECURSIVE=no
! 5966: fi
! 5967: else
! 5968:
! 5969: RECURSIVE=yes
! 5970:
! 5971:
! 5972: fi
! 5973:
! 5974:
1.67 bertrand 5975:
1.88 bertrand 5976: # Check whether --with-rpltools was given.
5977: if test "${with_rpltools+set}" = set; then :
5978: withval=$with_rpltools;
5979: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
5980: as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
5981: else
5982: RPLTOOLS=$with_rpltools
5983: fi
5984: else
5985:
5986: RPLTOOLS=\$\(top_builddir\)
5987:
5988:
5989: fi
5990:
5991:
5992:
5993:
5994: # Check whether --enable-rplcas was given.
5995: if test "${enable_rplcas+set}" = set; then :
5996: enableval=$enable_rplcas;
5997: if test "$enableval" = "no"; then
1.67 bertrand 5998: RPLCAS=-URPLCAS
5999: LIBRPLCAS=
6000: else
6001: RPLCAS=-DRPLCAS
6002: LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
6003: fi
6004: else
6005:
6006: RPLCAS=-URPLCAS
6007: LIBRPLCAS=
6008:
6009:
6010: fi
6011:
6012:
6013:
6014:
6015:
1.65 bertrand 6016:
1.15 bertrand 6017: # Check whether --enable-optimization was given.
6018: if test "${enable_optimization+set}" = set; then :
6019: enableval=$enable_optimization;
6020: if test "$enableval" = "no"; then
1.69 bertrand 6021: CFLAGS=$ABI
6022: FFLAGS=$ABI
6023: CXXFLAGS=$ABI
6024: FCFLAGS=$ABI
6025: else
6026: CFLAGS="$CFLAGS $ABI $enable_optimization"
6027: FFLAGS="$FFLAGS $ABI $enable_optimization"
6028: CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
6029: FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1 bertrand 6030: fi
1.15 bertrand 6031: else
1.14 bertrand 6032:
1.69 bertrand 6033: CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
6034: FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
6035: CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
6036: FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1 bertrand 6037:
6038:
1.15 bertrand 6039: fi
1.1 bertrand 6040:
6041:
1.91 ! bertrand 6042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable shared memory" >&5
! 6043: $as_echo_n "checking for usable shared memory... " >&6; }
! 6044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6045: /* end confdefs.h. */
! 6046: #include <sys/shm.h>
! 6047:
! 6048: int
! 6049: main ()
! 6050: {
! 6051: return(0);
! 6052: ;
! 6053: return 0;
! 6054: }
! 6055: _ACEOF
! 6056: if ac_fn_c_try_compile "$LINENO"; then :
! 6057: SHARED_MEMORY=-DSHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6058: $as_echo "yes" >&6; }
! 6059: else
! 6060: SHARED_MEMORY=-USHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6061: $as_echo "no" >&6; }
! 6062:
! 6063: fi
! 6064: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6065:
! 6066:
! 6067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
! 6068: $as_echo_n "checking for pselect... " >&6; }
! 6069: if test "$cross_compiling" = yes; then :
! 6070: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 6071: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 6072: as_fn_error $? "cannot run test program while cross compiling
! 6073: See \`config.log' for more details" "$LINENO" 5; }
! 6074: else
! 6075: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6076: /* end confdefs.h. */
! 6077: #include <sys/select.h>
! 6078: #include <unistd.h>
! 6079: #include <sys/time.h>
! 6080: #include <sys/types.h>
! 6081:
! 6082: int
! 6083: main ()
! 6084: {
! 6085:
! 6086: struct timespec tv;
! 6087: fd_set s1, s2, s3;
! 6088: tv.tv_sec=1;
! 6089: tv.tv_nsec=0;
! 6090: FD_SET(1, &s1); FD_SET(2, &s2); FD_SET(3, &s3);
! 6091: pselect(5, &s1, &s2, &s3, &tv, NULL);
! 6092: return(0);
! 6093:
! 6094: ;
! 6095: return 0;
! 6096: }
! 6097: _ACEOF
! 6098: if ac_fn_c_try_run "$LINENO"; then :
! 6099: PSELECT=-DPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6100: $as_echo "yes" >&6; }
! 6101: else
! 6102: PSELECT=-UPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6103: $as_echo "no" >&6; }
! 6104:
! 6105: fi
! 6106: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 6107: conftest.$ac_objext conftest.beam conftest.$ac_ext
! 6108: fi
! 6109:
! 6110:
! 6111:
1.87 bertrand 6112: # Check whether --enable-sysv-ipcs was given.
6113: if test "${enable_sysv_ipcs+set}" = set; then :
6114: enableval=$enable_sysv_ipcs;
1.36 bertrand 6115: if test "$enableval" = "no"; then
1.88 bertrand 6116: IPCS_SYSV=-UIPCS_SYSV
6117: POSIX_IPCS=no
1.36 bertrand 6118: else
1.88 bertrand 6119: IPCS_SYSV=-DIPCS_SYSV
6120: POSIX_IPCS=yes
1.36 bertrand 6121: fi
6122: else
1.85 bertrand 6123: REG=$LDFLAGS
1.88 bertrand 6124: POSIX_IPCS=guessed
1.85 bertrand 6125: LDFLAGS=-lrt
6126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
6127: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
6128: if test "$cross_compiling" = yes; then :
6129: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6130: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6131: as_fn_error $? "cannot run test program while cross compiling
6132: See \`config.log' for more details" "$LINENO" 5; }
6133: else
6134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81 bertrand 6135: /* end confdefs.h. */
6136: #include <sys/mman.h>
6137: #include <sys/stat.h>
6138: #include <fcntl.h>
1.82 bertrand 6139:
1.81 bertrand 6140: int
6141: main ()
6142: {
1.85 bertrand 6143: int fd; char *sem = "/test";
1.81 bertrand 6144: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
6145: close(fd);
6146: shm_unlink(sem);
1.85 bertrand 6147: fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
6148: close(fd);
6149: sem_unlink(sem);
1.81 bertrand 6150: return(0);
6151:
6152: ;
6153: return 0;
6154: }
6155: _ACEOF
1.85 bertrand 6156: if ac_fn_c_try_run "$LINENO"; then :
1.81 bertrand 6157: IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6158: $as_echo "yes" >&6; }
6159: else
6160: IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161: $as_echo "no" >&6; }
6162:
6163: fi
1.85 bertrand 6164: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6165: conftest.$ac_objext conftest.beam conftest.$ac_ext
6166: fi
6167:
6168: LDFLAGS=$REG
1.81 bertrand 6169:
1.36 bertrand 6170: fi
6171:
6172:
1.88 bertrand 6173: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.81 bertrand 6174: REG=$LDFLAGS
6175: LDFLAGS=-pthread
1.83 bertrand 6176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
6177: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
6178: if test "$cross_compiling" = yes; then :
6179: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6180: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6181: as_fn_error $? "cannot run test program while cross compiling
6182: See \`config.log' for more details" "$LINENO" 5; }
6183: else
6184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185: /* end confdefs.h. */
6186: #include <semaphore.h>
6187:
6188: int
6189: main ()
6190: {
6191: sem_t sem;
1.81 bertrand 6192: if (sem_init(&sem, 1, 0) != 0) return(1);
6193: sem_destroy(&sem);
6194: return(0);
1.83 bertrand 6195:
6196: ;
6197: return 0;
6198: }
6199: _ACEOF
6200: if ac_fn_c_try_run "$LINENO"; then :
6201: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202: $as_echo "yes" >&6; }
6203: else
6204: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205: $as_echo "no" >&6; }
6206:
6207: fi
6208: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6209: conftest.$ac_objext conftest.beam conftest.$ac_ext
6210: fi
6211:
1.81 bertrand 6212: LDFLAGS=$REG
6213: REG=""
6214: else
6215: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
6216: fi
6217:
1.30 bertrand 6218: # Check whether --enable-full-static was given.
6219: if test "${enable_full_static+set}" = set; then :
6220: enableval=$enable_full_static;
6221: if test "$enableval" = "no"; then
6222: STATIC=no
6223: else
6224: STATIC=yes
6225: fi
6226: else
6227: STATIC=no
6228: fi
6229:
6230:
1.15 bertrand 6231: # Check whether --enable-final-encoding was given.
6232: if test "${enable_final_encoding+set}" = set; then :
6233: enableval=$enable_final_encoding;
6234: if test "$enableval" = "no"; then
6235: FINAL_ENCODING="\$(shell locale charmap | \
6236: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35 bertrand 6237: FORCED_FINAL_ENCODING=0
1.1 bertrand 6238: else
1.15 bertrand 6239: FINAL_ENCODING="$enable_final_encoding"
1.35 bertrand 6240: FORCED_FINAL_ENCODING=1
1.15 bertrand 6241: fi
1.1 bertrand 6242: else
1.35 bertrand 6243:
6244: FORCED_FINAL_ENCODING=0
6245: FINAL_ENCODING="\$(shell locale charmap | \
1.15 bertrand 6246: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6247: fi
6248:
1.14 bertrand 6249:
1.15 bertrand 6250: # Check whether --enable-tex was given.
6251: if test "${enable_tex+set}" = set; then :
6252: enableval=$enable_tex;
6253: if test "$enableval" = "no"; then
6254: TEX_SUPPORT=no
6255: else
6256: TEX_SUPPORT=yes
1.1 bertrand 6257: fi
1.15 bertrand 6258: else
6259: TEX_SUPPORT=guessed
6260: fi
6261:
1.14 bertrand 6262:
1.15 bertrand 6263: # Check whether --enable-vim was given.
6264: if test "${enable_vim+set}" = set; then :
6265: enableval=$enable_vim;
6266: if test "$enableval" = "no"; then
6267: VIM_SUPPORT=no
6268: else
6269: VIM_SUPPORT=yes
6270: fi
6271: else
6272: VIM_SUPPORT=guessed
1.1 bertrand 6273: fi
6274:
1.15 bertrand 6275:
6276: # Check whether --enable-embedded-gnuplot was given.
6277: if test "${enable_embedded_gnuplot+set}" = set; then :
6278: enableval=$enable_embedded_gnuplot;
6279: if test "$enableval" = "no"; then
6280: MYGNUPLOT=no
6281: else
6282: MYGNUPLOT=yes
6283: fi
1.1 bertrand 6284: else
6285:
1.15 bertrand 6286: MYGNUPLOT=yes
6287: fi
6288:
1.14 bertrand 6289:
1.15 bertrand 6290: # Check whether --enable-gnuplot was given.
6291: if test "${enable_gnuplot+set}" = set; then :
6292: enableval=$enable_gnuplot;
6293: if test "$enableval" = "no"; then
6294: GNUPLOT_SUPPORT=no
6295: MYGNUPLOT=no
6296: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6297: else
6298: GNUPLOT_SUPPORT=yes
6299: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6300: fi
1.1 bertrand 6301: else
6302:
1.15 bertrand 6303: if test "$MYGNUPLOT" = "yes"; then
6304: GNUPLOT_SUPPORT=yes
6305: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6306: else
6307: GNUPLOT_SUPPORT=guessed
6308: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6309: fi
1.1 bertrand 6310: fi
6311:
1.15 bertrand 6312:
1.80 bertrand 6313: libX=""
6314: LIBMOTIF=""
6315: INCMOTIF=""
6316: BUILD_OPENMOTIF=""
6317:
1.15 bertrand 6318: # Check whether --enable-motif was given.
6319: if test "${enable_motif+set}" = set; then :
6320: enableval=$enable_motif;
6321: if test "$enableval" = "no"; then
6322: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6323: else
1.80 bertrand 6324: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6325: fi
1.1 bertrand 6326: else
1.80 bertrand 6327: if test "$have_x" == "yes"; then
6328: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15 bertrand 6329: else
1.80 bertrand 6330: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15 bertrand 6331: fi
6332: fi
1.14 bertrand 6333:
1.80 bertrand 6334:
6335: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6336: libX="$X_LIBS -lXt -lX11"
6337: LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
6338: \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
6339: INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
6340: -I\$(top_builddir)/tools/$OPENMOTIF/lib \
6341: -I\$(top_builddir)/tools/$LIBXPM/include"
6342: BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
6343:
1.91 ! bertrand 6344: if test $RECURSIVE = yes; then
! 6345:
1.80 bertrand 6346:
6347: subdirs="$subdirs tools/$LIBXPM"
6348:
1.91 ! bertrand 6349: subdirs="$subdirs tools/$OPENMOTIF"
1.80 bertrand 6350:
1.91 ! bertrand 6351: fi;
1.1 bertrand 6352: fi
6353:
1.15 bertrand 6354: # Check whether --enable-experimental was given.
6355: if test "${enable_experimental+set}" = set; then :
6356: enableval=$enable_experimental;
6357: if test "$enableval" = "no"; then
6358: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6359: else
6360: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6361: fi
1.14 bertrand 6362: else
1.15 bertrand 6363: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6364: fi
6365:
1.1 bertrand 6366:
1.15 bertrand 6367: # Check whether --enable-debug was given.
6368: if test "${enable_debug+set}" = set; then :
6369: enableval=$enable_debug;
6370: if test "$enableval" = "no"; then
1.24 bertrand 6371: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6372: else
1.24 bertrand 6373: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6374: fi
6375: else
1.24 bertrand 6376: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14 bertrand 6377: fi
1.1 bertrand 6378:
1.15 bertrand 6379:
6380: # Check whether --enable-profile was given.
6381: if test "${enable_profile+set}" = set; then :
6382: enableval=$enable_profile;
6383: if test "$enableval" = "no"; then
6384: PROFILAGE=""
6385: else
6386: PROFILAGE="-pg"
6387: fi
6388: else
6389: PROFILAGE=""
1.1 bertrand 6390: fi
6391:
1.14 bertrand 6392:
6393:
1.15 bertrand 6394:
6395: if test ! -d tools; then
6396: mkdir tools
6397: fi
6398: if test ! -d "$srcdir"/tools/$NCURSES; then
6399: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6400: (cd "$srcdir/tools" && tar -xf -)
1.51 bertrand 6401: (cd "$srcdir/tools/"$NCURSES && \
6402: for i in ../$NCURSES*.patch.gz;
6403: do gunzip -c $i | patch -p1;
6404: done);
1.15 bertrand 6405: fi
6406: if test ! -d "$srcdir"/tools/$READLINE; then
6407: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6408: (cd "$srcdir/tools" && tar -xf -)
6409: fi
6410: if test ! -d "$srcdir"/tools/$UNITS; then
6411: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6412: (cd "$srcdir/tools" && tar -xf -)
6413: fi
6414: if test ! -d "$srcdir"/tools/$GSL; then
6415: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6416: (cd "$srcdir/tools" && tar -xf -)
1.33 bertrand 6417: if test $(uname) = "OS/2"; then
6418: (cd "$srcdir"/tools/$GSL; \
6419: TMP=$(mktemp tmp.XXXXXXXXXX); \
6420: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6421: \mv -f $TMP ltmain.sh)
6422: fi
1.15 bertrand 6423: fi
6424: if test ! -d "$srcdir"/tools/$GPP; then
6425: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6426: (cd "$srcdir/tools" && tar -xf -)
6427: fi
6428: if test ! -d "$srcdir"/tools/$FILE; then
6429: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6430: (cd "$srcdir/tools" && tar -xf - )
6431: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6432: fi
6433: if test ! -d "$srcdir"/tools/$ICONV; then
6434: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6435: (cd "$srcdir/tools" && tar -xf -)
6436: fi
6437: if test ! -d "$srcdir"/tools/$SQLITE; then
6438: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6439: (cd "$srcdir/tools" && tar -xf -)
6440: fi
1.76 bertrand 6441: if test ! -d "$srcdir"/tools/$SIGSEGV; then
6442: gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
6443: (cd "$srcdir/tools" && tar -xf -)
6444: fi
1.80 bertrand 6445: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
6446: gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
6447: (cd "$srcdir/tools" && tar -xf -)
6448: fi
6449: if test ! -d "$srcdir"/tools/$LIBXPM; then
6450: gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
6451: (cd "$srcdir/tools" && tar -xf -)
6452: fi
1.15 bertrand 6453: if test ! -d tools/$OPENSSL; then
6454: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6455: (cd tools && tar -xf -)
1.1 bertrand 6456: fi
1.55 bertrand 6457: if test ! -d rplcas; then
6458: mkdir rplcas
6459: fi
6460: if test ! -d "$srcdir"/rplcas/$GMP; then
6461: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
6462: (cd "$srcdir/rplcas" && tar -xf -)
6463: fi
6464: if test ! -d "$srcdir"/rplcas/$MPFR; then
6465: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
6466: (cd "$srcdir/rplcas" && tar -xf -)
6467: fi
1.56 bertrand 6468: if test ! -d rplcas/$NTL; then
6469: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
6470: (cd rplcas && tar -xf -)
6471: fi
6472: if test ! -d rplcas/$COCOA; then
6473: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
6474: (cd rplcas && tar -xf -)
6475: fi
6476: if test ! -d rplcas/$PARI; then
6477: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
6478: (cd rplcas && tar -xf -)
6479: fi
6480: if test ! -d "$srcdir"/rplcas/$GIAC; then
6481: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
6482: (cd "$srcdir/rplcas" && tar -xf -)
6483: fi
1.1 bertrand 6484:
1.84 bertrand 6485: touch tools/openmotif.lib
6486:
1.1 bertrand 6487:
6488:
1.15 bertrand 6489: # Check whether --enable-final-run-path was given.
6490: if test "${enable_final_run_path+set}" = set; then :
6491: enableval=$enable_final_run_path;
6492: if test "x$enable_final_run_path" = "x"; then
6493: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6494: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36 bertrand 6495: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15 bertrand 6496: else
6497: RUNPATH="$enable_final_run_path"
6498: fi
1.1 bertrand 6499:
6500: else
1.15 bertrand 6501: RUNPATH="\${prefix}"
1.1 bertrand 6502:
6503: fi
6504:
1.15 bertrand 6505:
6506:
6507:
6508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6509: $as_echo_n "checking whether ln -s works... " >&6; }
6510: LN_S=$as_ln_s
6511: if test "$LN_S" = "ln -s"; then
6512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6513: $as_echo "yes" >&6; }
6514: else
6515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6516: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6517: fi
6518:
1.15 bertrand 6519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6520: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6521: set x ${MAKE-make}
6522: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57 bertrand 6523: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15 bertrand 6524: $as_echo_n "(cached) " >&6
1.1 bertrand 6525: else
1.15 bertrand 6526: cat >conftest.make <<\_ACEOF
6527: SHELL = /bin/sh
6528: all:
6529: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6530: _ACEOF
1.36 bertrand 6531: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 6532: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6533: *@@@%%%=?*=@@@%%%*)
6534: eval ac_cv_prog_make_${ac_make}_set=yes;;
6535: *)
6536: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6537: esac
1.15 bertrand 6538: rm -f conftest.make
6539: fi
6540: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542: $as_echo "yes" >&6; }
6543: SET_MAKE=
6544: else
6545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546: $as_echo "no" >&6; }
6547: SET_MAKE="MAKE=${MAKE-make}"
6548: fi
1.1 bertrand 6549:
1.15 bertrand 6550: if test -n "$ac_tool_prefix"; then
6551: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6552: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6555: if ${ac_cv_prog_RANLIB+:} false; then :
1.15 bertrand 6556: $as_echo_n "(cached) " >&6
6557: else
6558: if test -n "$RANLIB"; then
6559: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6560: else
1.15 bertrand 6561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562: for as_dir in $PATH
6563: do
6564: IFS=$as_save_IFS
6565: test -z "$as_dir" && as_dir=.
6566: for ac_exec_ext in '' $ac_executable_extensions; do
6567: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6569: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570: break 2
6571: fi
6572: done
6573: done
6574: IFS=$as_save_IFS
1.1 bertrand 6575:
6576: fi
1.15 bertrand 6577: fi
6578: RANLIB=$ac_cv_prog_RANLIB
6579: if test -n "$RANLIB"; then
6580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6581: $as_echo "$RANLIB" >&6; }
6582: else
6583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584: $as_echo "no" >&6; }
6585: fi
6586:
1.1 bertrand 6587:
1.15 bertrand 6588: fi
6589: if test -z "$ac_cv_prog_RANLIB"; then
6590: ac_ct_RANLIB=$RANLIB
6591: # Extract the first word of "ranlib", so it can be a program name with args.
6592: set dummy ranlib; ac_word=$2
6593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6595: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15 bertrand 6596: $as_echo_n "(cached) " >&6
6597: else
6598: if test -n "$ac_ct_RANLIB"; then
6599: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6600: else
6601: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602: for as_dir in $PATH
6603: do
6604: IFS=$as_save_IFS
6605: test -z "$as_dir" && as_dir=.
6606: for ac_exec_ext in '' $ac_executable_extensions; do
6607: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608: ac_cv_prog_ac_ct_RANLIB="ranlib"
6609: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610: break 2
6611: fi
6612: done
1.14 bertrand 6613: done
1.15 bertrand 6614: IFS=$as_save_IFS
6615:
6616: fi
6617: fi
6618: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6619: if test -n "$ac_ct_RANLIB"; then
6620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6621: $as_echo "$ac_ct_RANLIB" >&6; }
6622: else
6623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624: $as_echo "no" >&6; }
6625: fi
6626:
6627: if test "x$ac_ct_RANLIB" = x; then
6628: RANLIB=":"
6629: else
6630: case $cross_compiling:$ac_tool_warned in
6631: yes:)
6632: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634: ac_tool_warned=yes ;;
6635: esac
6636: RANLIB=$ac_ct_RANLIB
6637: fi
1.14 bertrand 6638: else
1.15 bertrand 6639: RANLIB="$ac_cv_prog_RANLIB"
6640: fi
1.1 bertrand 6641:
6642:
1.15 bertrand 6643: # Extract the first word of "nawk", so it can be a program name with args.
6644: set dummy nawk; ac_word=$2
6645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6647: if ${ac_cv_prog_AWK+:} false; then :
1.15 bertrand 6648: $as_echo_n "(cached) " >&6
6649: else
6650: if test -n "$AWK"; then
6651: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6652: else
6653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654: for as_dir in $PATH
6655: do
6656: IFS=$as_save_IFS
6657: test -z "$as_dir" && as_dir=.
6658: for ac_exec_ext in '' $ac_executable_extensions; do
6659: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660: ac_cv_prog_AWK="yes"
6661: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662: break 2
6663: fi
6664: done
6665: done
6666: IFS=$as_save_IFS
1.1 bertrand 6667:
1.15 bertrand 6668: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6669: fi
6670: fi
6671: AWK=$ac_cv_prog_AWK
6672: if test -n "$AWK"; then
6673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6674: $as_echo "$AWK" >&6; }
1.1 bertrand 6675: else
1.15 bertrand 6676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677: $as_echo "no" >&6; }
6678: fi
6679:
1.1 bertrand 6680:
1.15 bertrand 6681: if test "$AWK" = no; then
1.39 bertrand 6682: # Extract the first word of "gawk", so it can be a program name with args.
6683: set dummy gawk; ac_word=$2
6684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6686: if ${ac_cv_prog_AWK+:} false; then :
1.39 bertrand 6687: $as_echo_n "(cached) " >&6
6688: else
6689: if test -n "$AWK"; then
6690: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6691: else
6692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693: for as_dir in $PATH
6694: do
6695: IFS=$as_save_IFS
6696: test -z "$as_dir" && as_dir=.
6697: for ac_exec_ext in '' $ac_executable_extensions; do
6698: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699: ac_cv_prog_AWK="yes"
6700: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701: break 2
6702: fi
6703: done
6704: done
6705: IFS=$as_save_IFS
6706:
6707: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6708: fi
6709: fi
6710: AWK=$ac_cv_prog_AWK
6711: if test -n "$AWK"; then
6712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6713: $as_echo "$AWK" >&6; }
6714: else
6715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716: $as_echo "no" >&6; }
6717: fi
6718:
6719:
6720: if test "$AWK" = no; then
6721: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6722: fi
1.1 bertrand 6723: fi
6724:
1.15 bertrand 6725: # Extract the first word of "sed", so it can be a program name with args.
6726: set dummy sed; ac_word=$2
6727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6729: if ${ac_cv_prog_SED+:} false; then :
1.15 bertrand 6730: $as_echo_n "(cached) " >&6
6731: else
6732: if test -n "$SED"; then
6733: ac_cv_prog_SED="$SED" # Let the user override the test.
6734: else
6735: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736: for as_dir in $PATH
6737: do
6738: IFS=$as_save_IFS
6739: test -z "$as_dir" && as_dir=.
6740: for ac_exec_ext in '' $ac_executable_extensions; do
6741: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742: ac_cv_prog_SED="yes"
6743: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744: break 2
6745: fi
6746: done
1.14 bertrand 6747: done
1.15 bertrand 6748: IFS=$as_save_IFS
1.1 bertrand 6749:
1.15 bertrand 6750: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6751: fi
1.15 bertrand 6752: fi
6753: SED=$ac_cv_prog_SED
6754: if test -n "$SED"; then
6755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6756: $as_echo "$SED" >&6; }
6757: else
6758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759: $as_echo "no" >&6; }
1.14 bertrand 6760: fi
1.1 bertrand 6761:
6762:
1.15 bertrand 6763: if test "$SED" = no; then
1.36 bertrand 6764: as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15 bertrand 6765: fi
1.14 bertrand 6766:
1.15 bertrand 6767: if test "$TEX_SUPPORT" = guessed; then
6768: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6769:
1.15 bertrand 6770: # Extract the first word of "tex", so it can be a program name with args.
6771: set dummy tex; ac_word=$2
6772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6774: if ${ac_cv_prog_TEX+:} false; then :
1.15 bertrand 6775: $as_echo_n "(cached) " >&6
1.1 bertrand 6776: else
1.15 bertrand 6777: if test -n "$TEX"; then
6778: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6779: else
1.15 bertrand 6780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781: for as_dir in $PATH
6782: do
6783: IFS=$as_save_IFS
6784: test -z "$as_dir" && as_dir=.
6785: for ac_exec_ext in '' $ac_executable_extensions; do
6786: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787: ac_cv_prog_TEX="yes"
6788: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789: break 2
6790: fi
6791: done
6792: done
6793: IFS=$as_save_IFS
1.1 bertrand 6794:
1.15 bertrand 6795: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6796: fi
6797: fi
1.15 bertrand 6798: TEX=$ac_cv_prog_TEX
6799: if test -n "$TEX"; then
6800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6801: $as_echo "$TEX" >&6; }
6802: else
6803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804: $as_echo "no" >&6; }
1.1 bertrand 6805: fi
1.14 bertrand 6806:
6807:
1.15 bertrand 6808: if test "$TEX" = no; then
6809: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6810: Download at http://tex.loria.fr/
6811: " >&5
6812: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6813: Download at http://tex.loria.fr/
6814: " >&2;}
6815: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6816: fi
1.14 bertrand 6817:
1.15 bertrand 6818: # Extract the first word of "latex", so it can be a program name with args.
6819: set dummy latex; ac_word=$2
6820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6822: if ${ac_cv_prog_LATEX+:} false; then :
1.15 bertrand 6823: $as_echo_n "(cached) " >&6
1.1 bertrand 6824: else
1.15 bertrand 6825: if test -n "$LATEX"; then
6826: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6827: else
1.15 bertrand 6828: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829: for as_dir in $PATH
6830: do
6831: IFS=$as_save_IFS
6832: test -z "$as_dir" && as_dir=.
6833: for ac_exec_ext in '' $ac_executable_extensions; do
6834: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835: ac_cv_prog_LATEX="yes"
6836: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837: break 2
6838: fi
6839: done
6840: done
6841: IFS=$as_save_IFS
1.1 bertrand 6842:
1.15 bertrand 6843: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6844: fi
6845: fi
1.15 bertrand 6846: LATEX=$ac_cv_prog_LATEX
6847: if test -n "$LATEX"; then
6848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6849: $as_echo "$LATEX" >&6; }
6850: else
6851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852: $as_echo "no" >&6; }
6853: fi
1.14 bertrand 6854:
1.1 bertrand 6855:
1.15 bertrand 6856: if test "$LATEX" = no; then
6857: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6858: Download at http://tex.loria.fr/
6859: " >&5
6860: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6861: Download at http://tex.loria.fr/
6862: " >&2;}
6863: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6864: fi
1.1 bertrand 6865:
1.15 bertrand 6866: # Extract the first word of "dvips", so it can be a program name with args.
6867: set dummy dvips; ac_word=$2
6868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6870: if ${ac_cv_prog_DVIPS+:} false; then :
1.15 bertrand 6871: $as_echo_n "(cached) " >&6
6872: else
6873: if test -n "$DVIPS"; then
6874: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6875: else
6876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877: for as_dir in $PATH
6878: do
6879: IFS=$as_save_IFS
6880: test -z "$as_dir" && as_dir=.
6881: for ac_exec_ext in '' $ac_executable_extensions; do
6882: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883: ac_cv_prog_DVIPS="yes"
6884: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885: break 2
6886: fi
6887: done
6888: done
6889: IFS=$as_save_IFS
1.1 bertrand 6890:
1.15 bertrand 6891: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6892: fi
1.1 bertrand 6893: fi
1.15 bertrand 6894: DVIPS=$ac_cv_prog_DVIPS
6895: if test -n "$DVIPS"; then
6896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6897: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6898: else
1.15 bertrand 6899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900: $as_echo "no" >&6; }
6901: fi
1.1 bertrand 6902:
6903:
1.15 bertrand 6904: if test "$DVIPS" = no; then
6905: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6906: Download at http://tex.loria.fr/
6907: " >&5
6908: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6909: Download at http://tex.loria.fr/
6910: " >&2;}
6911: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6912: fi
1.1 bertrand 6913:
1.15 bertrand 6914: # Extract the first word of "gs", so it can be a program name with args.
6915: set dummy gs; ac_word=$2
6916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6918: if ${ac_cv_prog_GS+:} false; then :
1.15 bertrand 6919: $as_echo_n "(cached) " >&6
6920: else
6921: if test -n "$GS"; then
6922: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6923: else
1.15 bertrand 6924: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925: for as_dir in $PATH
6926: do
6927: IFS=$as_save_IFS
6928: test -z "$as_dir" && as_dir=.
6929: for ac_exec_ext in '' $ac_executable_extensions; do
6930: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931: ac_cv_prog_GS="yes"
6932: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933: break 2
6934: fi
6935: done
6936: done
6937: IFS=$as_save_IFS
1.1 bertrand 6938:
1.15 bertrand 6939: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6940: fi
6941: fi
6942: GS=$ac_cv_prog_GS
6943: if test -n "$GS"; then
6944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6945: $as_echo "$GS" >&6; }
6946: else
6947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948: $as_echo "no" >&6; }
1.1 bertrand 6949: fi
6950:
1.15 bertrand 6951:
6952: if test "$GS" = no; then
6953: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6954: Download at http://ftp.lip6.fr/
6955: " >&5
6956: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6957: Download at http://ftp.lip6.fr/
6958: " >&2;}
6959: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6960: fi
6961:
6962: # Extract the first word of "gv", so it can be a program name with args.
6963: set dummy gv; ac_word=$2
6964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6966: if ${ac_cv_prog_GV+:} false; then :
1.15 bertrand 6967: $as_echo_n "(cached) " >&6
6968: else
6969: if test -n "$GV"; then
6970: ac_cv_prog_GV="$GV" # Let the user override the test.
6971: else
6972: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973: for as_dir in $PATH
6974: do
6975: IFS=$as_save_IFS
6976: test -z "$as_dir" && as_dir=.
6977: for ac_exec_ext in '' $ac_executable_extensions; do
6978: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979: ac_cv_prog_GV="yes"
6980: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981: break 2
6982: fi
6983: done
1.14 bertrand 6984: done
1.15 bertrand 6985: IFS=$as_save_IFS
1.1 bertrand 6986:
1.15 bertrand 6987: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6988: fi
1.1 bertrand 6989: fi
1.15 bertrand 6990: GV=$ac_cv_prog_GV
6991: if test -n "$GV"; then
6992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6993: $as_echo "$GV" >&6; }
6994: else
6995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996: $as_echo "no" >&6; }
1.1 bertrand 6997: fi
1.14 bertrand 6998:
6999:
1.15 bertrand 7000: if test "$GV" = no; then
7001: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
7002: Download at http://ftp.lip6.fr/
7003: " >&5
7004: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
7005: Download at http://ftp.lip6.fr/
7006: " >&2;}
7007: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
7008: fi
1.1 bertrand 7009: else
1.15 bertrand 7010: if test "$TEX_SUPPORT" = no; then
7011: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
7012: else
7013: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
7014: fi
1.1 bertrand 7015: fi
7016:
1.15 bertrand 7017: if test "$GNUPLOT_SUPPORT" = guessed; then
7018: # Extract the first word of "gnuplot", so it can be a program name with args.
7019: set dummy gnuplot; ac_word=$2
7020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 7022: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15 bertrand 7023: $as_echo_n "(cached) " >&6
1.14 bertrand 7024: else
1.15 bertrand 7025: if test -n "$GNUPLOT_P"; then
7026: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 7027: else
1.15 bertrand 7028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029: for as_dir in $PATH
7030: do
7031: IFS=$as_save_IFS
7032: test -z "$as_dir" && as_dir=.
7033: for ac_exec_ext in '' $ac_executable_extensions; do
7034: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035: ac_cv_prog_GNUPLOT_P="yes"
7036: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037: break 2
7038: fi
7039: done
7040: done
7041: IFS=$as_save_IFS
1.1 bertrand 7042:
1.15 bertrand 7043: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 7044: fi
7045: fi
1.15 bertrand 7046: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
7047: if test -n "$GNUPLOT_P"; then
7048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
7049: $as_echo "$GNUPLOT_P" >&6; }
7050: else
7051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052: $as_echo "no" >&6; }
1.1 bertrand 7053: fi
7054:
7055:
1.15 bertrand 7056: if test "$GNUPLOT_P" = no; then
7057: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
7058: Download at http://www.gnuplot.vt.edu/
7059: " >&5
7060: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
7061: Download at http://www.gnuplot.vt.edu/
7062: " >&2;}
7063: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
7064: else
7065: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
7066: fi
7067: else
7068: if test "$GNUPLOT_SUPPORT" = no; then
7069: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
7070: else
7071: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
7072: fi
7073: fi
1.1 bertrand 7074:
1.15 bertrand 7075: if test "$VIM_SUPPORT" = guessed; then
7076: # Extract the first word of "vim", so it can be a program name with args.
7077: set dummy vim; ac_word=$2
7078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 7080: if ${ac_cv_prog_VIM+:} false; then :
1.15 bertrand 7081: $as_echo_n "(cached) " >&6
1.1 bertrand 7082: else
1.15 bertrand 7083: if test -n "$VIM"; then
7084: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 7085: else
1.15 bertrand 7086: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087: for as_dir in $PATH
7088: do
7089: IFS=$as_save_IFS
7090: test -z "$as_dir" && as_dir=.
7091: for ac_exec_ext in '' $ac_executable_extensions; do
7092: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093: ac_cv_prog_VIM="yes"
7094: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095: break 2
7096: fi
7097: done
7098: done
7099: IFS=$as_save_IFS
1.1 bertrand 7100:
1.15 bertrand 7101: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 7102: fi
7103: fi
1.15 bertrand 7104: VIM=$ac_cv_prog_VIM
7105: if test -n "$VIM"; then
7106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
7107: $as_echo "$VIM" >&6; }
1.1 bertrand 7108: else
1.15 bertrand 7109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110: $as_echo "no" >&6; }
7111: fi
1.1 bertrand 7112:
7113:
1.15 bertrand 7114: if test "$VIM" = no; then
7115: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
7116: Download at http://www.vim.org/
7117: " >&5
7118: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
7119: Download at http://www.vim.org/
7120: " >&2;}
7121: VIM_SUPPORT="-UVIM_SUPPORT"
7122: else
7123: VIM_SUPPORT="-DVIM_SUPPORT"
7124: fi
1.1 bertrand 7125: else
1.15 bertrand 7126: if test "$VIM_SUPPORT" = no; then
7127: VIM_SUPPORT="-UVIM_SUPPORT"
7128: else
7129: VIM_SUPPORT="-DVIM_SUPPORT"
7130: fi
1.1 bertrand 7131: fi
7132:
1.14 bertrand 7133:
7134:
1.1 bertrand 7135:
7136:
1.15 bertrand 7137:
7138:
7139:
7140:
7141:
7142:
7143: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7144:
7145:
7146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7147: $as_echo_n "checking for main in -lm... " >&6; }
1.57 bertrand 7148: if ${ac_cv_lib_m_main+:} false; then :
1.15 bertrand 7149: $as_echo_n "(cached) " >&6
1.1 bertrand 7150: else
1.15 bertrand 7151: ac_check_lib_save_LIBS=$LIBS
7152: LIBS="-lm $LIBS"
7153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7154: /* end confdefs.h. */
1.15 bertrand 7155:
7156:
1.1 bertrand 7157: int
7158: main ()
7159: {
1.15 bertrand 7160: return main ();
1.1 bertrand 7161: ;
7162: return 0;
7163: }
7164: _ACEOF
1.15 bertrand 7165: if ac_fn_c_try_link "$LINENO"; then :
7166: ac_cv_lib_m_main=yes
1.1 bertrand 7167: else
1.15 bertrand 7168: ac_cv_lib_m_main=no
7169: fi
7170: rm -f core conftest.err conftest.$ac_objext \
7171: conftest$ac_exeext conftest.$ac_ext
7172: LIBS=$ac_check_lib_save_LIBS
7173: fi
7174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7175: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57 bertrand 7176: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15 bertrand 7177: cat >>confdefs.h <<_ACEOF
7178: #define HAVE_LIBM 1
7179: _ACEOF
1.14 bertrand 7180:
1.15 bertrand 7181: LIBS="-lm $LIBS"
1.1 bertrand 7182:
1.15 bertrand 7183: else
1.36 bertrand 7184: as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1 bertrand 7185: fi
7186:
1.87 bertrand 7187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
7188: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
7189: if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
7190: $as_echo_n "(cached) " >&6
7191: else
7192: ac_check_lib_save_LIBS=$LIBS
7193: LIBS="-lc $LIBS"
7194: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195: /* end confdefs.h. */
7196:
7197: /* Override any GCC internal prototype to avoid an error.
7198: Use char because int might match the return type of a GCC
7199: builtin and then its argument prototype would still apply. */
7200: #ifdef __cplusplus
7201: extern "C"
7202: #endif
7203: char pthread_mutex_init ();
7204: int
7205: main ()
7206: {
7207: return pthread_mutex_init ();
7208: ;
7209: return 0;
7210: }
7211: _ACEOF
7212: if ac_fn_c_try_link "$LINENO"; then :
7213: ac_cv_lib_c_pthread_mutex_init=yes
7214: else
7215: ac_cv_lib_c_pthread_mutex_init=no
7216: fi
7217: rm -f core conftest.err conftest.$ac_objext \
7218: conftest$ac_exeext conftest.$ac_ext
7219: LIBS=$ac_check_lib_save_LIBS
7220: fi
7221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
7222: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
7223: if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
7224: cat >>confdefs.h <<_ACEOF
7225: #define HAVE_LIBC 1
7226: _ACEOF
7227:
7228: LIBS="-lc $LIBS"
7229:
7230: else
7231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15 bertrand 7232: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57 bertrand 7233: if ${ac_cv_lib_pthread_main+:} false; then :
1.15 bertrand 7234: $as_echo_n "(cached) " >&6
1.1 bertrand 7235: else
1.15 bertrand 7236: ac_check_lib_save_LIBS=$LIBS
7237: LIBS="-lpthread $LIBS"
7238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7239: /* end confdefs.h. */
1.15 bertrand 7240:
7241:
1.14 bertrand 7242: int
7243: main ()
7244: {
1.15 bertrand 7245: return main ();
1.14 bertrand 7246: ;
7247: return 0;
7248: }
7249: _ACEOF
1.15 bertrand 7250: if ac_fn_c_try_link "$LINENO"; then :
7251: ac_cv_lib_pthread_main=yes
7252: else
7253: ac_cv_lib_pthread_main=no
7254: fi
7255: rm -f core conftest.err conftest.$ac_objext \
7256: conftest$ac_exeext conftest.$ac_ext
7257: LIBS=$ac_check_lib_save_LIBS
7258: fi
7259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7260: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57 bertrand 7261: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15 bertrand 7262: cat >>confdefs.h <<_ACEOF
7263: #define HAVE_LIBPTHREAD 1
1.14 bertrand 7264: _ACEOF
7265:
1.15 bertrand 7266: LIBS="-lpthread $LIBS"
7267:
1.1 bertrand 7268: else
1.36 bertrand 7269: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15 bertrand 7270: fi
1.14 bertrand 7271:
1.87 bertrand 7272: fi
7273:
1.1 bertrand 7274:
1.33 bertrand 7275: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
7276: #include <sys/sem.h>
7277:
7278: "
1.57 bertrand 7279: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33 bertrand 7280: SEMUN=-DUNION_SEMUN
7281: else
7282: SEMUN=-UUNION_SEMUN
7283: fi
7284:
7285:
1.34 bertrand 7286: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35 bertrand 7287: #include <sys/types.h>
1.34 bertrand 7288: #include <netinet/in.h>
7289:
7290: "
1.57 bertrand 7291: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34 bertrand 7292: IPV6=-DIPV6
7293: else
7294: IPV6=-UIPV6
7295: fi
7296:
7297:
1.15 bertrand 7298: if test "$CYGWIN" != yes; then
7299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7300: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57 bertrand 7301: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15 bertrand 7302: $as_echo_n "(cached) " >&6
1.1 bertrand 7303: else
1.15 bertrand 7304: ac_check_lib_save_LIBS=$LIBS
7305: LIBS="-ldl $LIBS"
7306: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7307: /* end confdefs.h. */
7308:
1.15 bertrand 7309: /* Override any GCC internal prototype to avoid an error.
7310: Use char because int might match the return type of a GCC
7311: builtin and then its argument prototype would still apply. */
7312: #ifdef __cplusplus
7313: extern "C"
7314: #endif
7315: char dlopen ();
1.1 bertrand 7316: int
7317: main ()
7318: {
1.15 bertrand 7319: return dlopen ();
1.1 bertrand 7320: ;
7321: return 0;
7322: }
7323: _ACEOF
1.15 bertrand 7324: if ac_fn_c_try_link "$LINENO"; then :
7325: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 7326: else
1.15 bertrand 7327: ac_cv_lib_dl_dlopen=no
7328: fi
7329: rm -f core conftest.err conftest.$ac_objext \
7330: conftest$ac_exeext conftest.$ac_ext
7331: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7332: fi
1.15 bertrand 7333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7334: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57 bertrand 7335: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15 bertrand 7336: LIBS="$LIBS -ldl"
1.14 bertrand 7337: else
1.15 bertrand 7338: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7339: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7340: fi
7341:
1.14 bertrand 7342: fi
1.1 bertrand 7343:
1.15 bertrand 7344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7345: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57 bertrand 7346: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15 bertrand 7347: $as_echo_n "(cached) " >&6
7348: else
7349: ac_check_lib_save_LIBS=$LIBS
7350: LIBS="-lrt $LIBS"
7351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7352: /* end confdefs.h. */
1.15 bertrand 7353:
7354: /* Override any GCC internal prototype to avoid an error.
7355: Use char because int might match the return type of a GCC
7356: builtin and then its argument prototype would still apply. */
7357: #ifdef __cplusplus
7358: extern "C"
7359: #endif
7360: char nanosleep ();
1.1 bertrand 7361: int
7362: main ()
7363: {
1.15 bertrand 7364: return nanosleep ();
1.1 bertrand 7365: ;
7366: return 0;
7367: }
7368: _ACEOF
1.15 bertrand 7369: if ac_fn_c_try_link "$LINENO"; then :
7370: ac_cv_lib_rt_nanosleep=yes
7371: else
7372: ac_cv_lib_rt_nanosleep=no
7373: fi
7374: rm -f core conftest.err conftest.$ac_objext \
7375: conftest$ac_exeext conftest.$ac_ext
7376: LIBS=$ac_check_lib_save_LIBS
7377: fi
7378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7379: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57 bertrand 7380: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15 bertrand 7381: LIBS="$LIBS -lrt"
1.1 bertrand 7382: else
1.15 bertrand 7383: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7384: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7385: fi
1.1 bertrand 7386:
7387:
1.15 bertrand 7388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7389: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57 bertrand 7390: if ${ac_cv_lib_socket_bind+:} false; then :
1.15 bertrand 7391: $as_echo_n "(cached) " >&6
1.1 bertrand 7392: else
1.15 bertrand 7393: ac_check_lib_save_LIBS=$LIBS
7394: LIBS="-lsocket $LIBS"
7395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7396: /* end confdefs.h. */
1.15 bertrand 7397:
7398: /* Override any GCC internal prototype to avoid an error.
7399: Use char because int might match the return type of a GCC
7400: builtin and then its argument prototype would still apply. */
7401: #ifdef __cplusplus
7402: extern "C"
7403: #endif
7404: char bind ();
1.1 bertrand 7405: int
7406: main ()
7407: {
1.15 bertrand 7408: return bind ();
1.1 bertrand 7409: ;
7410: return 0;
7411: }
7412: _ACEOF
1.15 bertrand 7413: if ac_fn_c_try_link "$LINENO"; then :
7414: ac_cv_lib_socket_bind=yes
1.1 bertrand 7415: else
1.15 bertrand 7416: ac_cv_lib_socket_bind=no
1.1 bertrand 7417: fi
1.15 bertrand 7418: rm -f core conftest.err conftest.$ac_objext \
7419: conftest$ac_exeext conftest.$ac_ext
7420: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7421: fi
1.15 bertrand 7422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7423: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57 bertrand 7424: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15 bertrand 7425: LIBS="$LIBS -lsocket"
7426: else
7427: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7428: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7429: fi
7430:
7431:
1.15 bertrand 7432: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7433:
7434: # Check whether --with-mysql was given.
7435: if test "${with_mysql+set}" = set; then :
7436: withval=$with_mysql;
7437: else
7438: with_mysql=check
7439: fi
1.14 bertrand 7440:
7441:
1.15 bertrand 7442: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7443: libMySQLinc="-I/usr/include"
1.30 bertrand 7444: libMySQLlib="/usr/lib"
1.14 bertrand 7445:
1.15 bertrand 7446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7447: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7448: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7449: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7451: /* end confdefs.h. */
1.15 bertrand 7452: #include "mysql.h"
1.1 bertrand 7453: int
7454: main ()
7455: {
1.15 bertrand 7456:
1.1 bertrand 7457: ;
7458: return 0;
7459: }
7460: _ACEOF
1.15 bertrand 7461: if ac_fn_c_try_compile "$LINENO"; then :
7462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7464: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7465: else
1.15 bertrand 7466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7468: fi
1.14 bertrand 7469: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7470: CFLAGS=$saved_CFLAGS
1.1 bertrand 7471:
1.15 bertrand 7472: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7474: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7475: saved_CFLAGS="$CFLAGS"
7476: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7478: /* end confdefs.h. */
1.15 bertrand 7479: #include "mysql.h"
1.1 bertrand 7480: int
7481: main ()
7482: {
7483:
7484: ;
7485: return 0;
7486: }
7487: _ACEOF
1.15 bertrand 7488: if ac_fn_c_try_compile "$LINENO"; then :
7489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7490: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7491: libMySQLinc=$libMySQLinc
7492: else
7493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7495: fi
7496: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497: CFLAGS=$saved_CFLAGS
7498: libMySQLinc=$libMySQLinc/mysql
7499: fi
7500:
7501: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7503: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7504: saved_CFLAGS="$CFLAGS"
7505: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7507: /* end confdefs.h. */
1.15 bertrand 7508: #include "mysql.h"
1.1 bertrand 7509: int
7510: main ()
7511: {
7512:
7513: ;
7514: return 0;
7515: }
7516: _ACEOF
1.15 bertrand 7517: if ac_fn_c_try_compile "$LINENO"; then :
7518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7520: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7521: else
1.15 bertrand 7522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7524: fi
7525: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7526: CFLAGS=$saved_CFLAGS
7527: libMySQLinc=$libMySQLinc/../local/include
7528: libMySQLlib=$libMySQLlib/../local/lib
7529: fi
1.1 bertrand 7530:
1.15 bertrand 7531: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7533: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7534: saved_CFLAGS="$CFLAGS"
7535: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7537: /* end confdefs.h. */
1.15 bertrand 7538: #include "mysql.h"
1.1 bertrand 7539: int
7540: main ()
7541: {
7542:
7543: ;
7544: return 0;
7545: }
7546: _ACEOF
1.15 bertrand 7547: if ac_fn_c_try_compile "$LINENO"; then :
7548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7549: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7550: libMySQLinc=$libMySQLinc/mysql
7551: else
7552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7554: fi
7555: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556: CFLAGS=$saved_CFLAGS
7557: libMySQLinc=$libMySQLinc/../local/include/mysql
7558: libMySQLlib=$libMySQLlib/../local/lib
7559: fi
7560: else
7561: if test "x$with_mysql" != xno; then
7562: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7563: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7564:
7565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7566: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7567: saved_CFLAGS="$CFLAGS"
7568: CFLAGS="$CFLAGS $libMySQLinc"
7569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7570: /* end confdefs.h. */
1.15 bertrand 7571: #include "mysql.h"
1.1 bertrand 7572: int
7573: main ()
7574: {
7575:
7576: ;
7577: return 0;
7578: }
7579: _ACEOF
1.15 bertrand 7580: if ac_fn_c_try_compile "$LINENO"; then :
7581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7583: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7584: else
1.15 bertrand 7585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7587: fi
7588: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7589: CFLAGS=$saved_CFLAGS
1.1 bertrand 7590:
1.15 bertrand 7591: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7593: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7594: saved_CFLAGS="$CFLAGS"
7595: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7597: /* end confdefs.h. */
1.15 bertrand 7598: #include "mysql.h"
1.1 bertrand 7599: int
7600: main ()
7601: {
7602:
7603: ;
7604: return 0;
7605: }
7606: _ACEOF
1.15 bertrand 7607: if ac_fn_c_try_compile "$LINENO"; then :
7608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7609: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7610: libMySQLinc=$libMySQLinc
1.1 bertrand 7611: else
1.15 bertrand 7612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7614: fi
7615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616: CFLAGS=$saved_CFLAGS
7617: libMySQLinc=$libMySQLinc/mysql
7618: fi
7619: else
7620: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7621: fi
7622: fi
1.14 bertrand 7623:
1.15 bertrand 7624: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7625: MYSQL_LIB=no
1.14 bertrand 7626:
1.15 bertrand 7627: if test $MYSQL_LIB = no; then
7628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7629: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7630: saved_LIBS="$LIBS"
1.30 bertrand 7631: if test $STATIC = no; then
7632: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7633: else
7634: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7635: fi
1.15 bertrand 7636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7637: /* end confdefs.h. */
1.15 bertrand 7638: #include "mysql.h"
1.1 bertrand 7639: int
7640: main ()
7641: {
1.15 bertrand 7642: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7643: ;
7644: return 0;
7645: }
7646: _ACEOF
1.15 bertrand 7647: if ac_fn_c_try_link "$LINENO"; then :
7648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7649: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7650: else
1.15 bertrand 7651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652: $as_echo "no" >&6; }; MYSQL_LIB="no"
7653: fi
7654: rm -f core conftest.err conftest.$ac_objext \
7655: conftest$ac_exeext conftest.$ac_ext
7656: LIBS=$saved_LIBS;
1.30 bertrand 7657: if test $STATIC = no; then
7658: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7659: else
7660: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7661: EXT_SQL="$EXT_SQL $libMySQLlib"
7662: fi
1.15 bertrand 7663: fi
1.14 bertrand 7664:
1.15 bertrand 7665: if test $MYSQL_LIB = no; then
7666: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7667: fi
1.14 bertrand 7668: fi
1.15 bertrand 7669:
7670: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7671: libMySQLinc=
7672: libMySQLlib=
1.1 bertrand 7673: fi
1.14 bertrand 7674:
7675:
7676:
1.1 bertrand 7677:
7678:
1.15 bertrand 7679: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7680:
7681: # Check whether --with-postgresql was given.
7682: if test "${with_postgresql+set}" = set; then :
7683: withval=$with_postgresql;
1.14 bertrand 7684: else
1.15 bertrand 7685: with_postgresql=check
7686: fi
7687:
7688:
7689: # with_postgresql : check [pas défini], yes [uniquement --with],
7690: # no [--without], valeur [--with=valeur].
7691:
7692: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7693: libPgSQLinc="-I/usr/include"
1.30 bertrand 7694: libPgSQLlib="/usr/lib"
1.15 bertrand 7695:
7696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7697: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7698: saved_CFLAGS="$CFLAGS"
7699: CFLAGS="$CFLAGS $libPgSQLinc"
7700: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7701: /* end confdefs.h. */
1.15 bertrand 7702: #include "libpq-fe.h"
1.1 bertrand 7703: int
7704: main ()
7705: {
1.15 bertrand 7706:
1.1 bertrand 7707: ;
7708: return 0;
7709: }
7710: _ACEOF
1.15 bertrand 7711: if ac_fn_c_try_compile "$LINENO"; then :
7712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7713: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7714: else
1.15 bertrand 7715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7717: fi
1.14 bertrand 7718: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7719: CFLAGS=$saved_CFLAGS
1.1 bertrand 7720:
1.15 bertrand 7721: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7723: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7724: saved_CFLAGS="$CFLAGS"
7725: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7726: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7727: /* end confdefs.h. */
1.15 bertrand 7728: #include "libpq-fe.h"
1.1 bertrand 7729: int
7730: main ()
7731: {
7732:
7733: ;
7734: return 0;
7735: }
7736: _ACEOF
1.15 bertrand 7737: if ac_fn_c_try_compile "$LINENO"; then :
7738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7739: $as_echo "yes" >&6; };
7740: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7741: else
7742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743: $as_echo "no" >&6; };
7744: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7745: fi
7746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747: CFLAGS=$saved_CFLAGS
7748: libPgSQLinc=$libPgSQLinc/postgresql
7749: fi
7750:
7751: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7753: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7754: saved_CFLAGS="$CFLAGS"
7755: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7757: /* end confdefs.h. */
1.15 bertrand 7758: #include "libpq-fe.h"
1.1 bertrand 7759: int
7760: main ()
7761: {
7762:
7763: ;
7764: return 0;
7765: }
7766: _ACEOF
1.15 bertrand 7767: if ac_fn_c_try_compile "$LINENO"; then :
7768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7769: $as_echo "yes" >&6; };
7770: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7771: else
1.15 bertrand 7772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773: $as_echo "no" >&6; };
7774: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7775: fi
7776: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7777: CFLAGS=$saved_CFLAGS
7778: libPgSQLinc=$libPgSQLinc/pgsql
7779: fi
1.1 bertrand 7780:
1.15 bertrand 7781: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7783: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7784: saved_CFLAGS="$CFLAGS"
7785: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7787: /* end confdefs.h. */
1.15 bertrand 7788: #include "libpq-fe.h"
1.1 bertrand 7789: int
7790: main ()
7791: {
7792:
7793: ;
7794: return 0;
7795: }
7796: _ACEOF
1.15 bertrand 7797: if ac_fn_c_try_compile "$LINENO"; then :
7798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799: $as_echo "yes" >&6; };
7800: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7801: else
7802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803: $as_echo "no" >&6; };
7804: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7805: fi
7806: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807: CFLAGS=$saved_CFLAGS
7808: libPgSQLinc=$libPgSQLinc/../local/include
7809: libPgSQLlib=$libPgSQLlib/../local/lib
7810: fi
7811:
7812: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7814: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7815: saved_CFLAGS="$CFLAGS"
7816: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7817: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7818: /* end confdefs.h. */
1.15 bertrand 7819: #include "libpq-fe.h"
1.1 bertrand 7820: int
7821: main ()
7822: {
7823:
7824: ;
7825: return 0;
7826: }
7827: _ACEOF
1.15 bertrand 7828: if ac_fn_c_try_compile "$LINENO"; then :
7829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830: $as_echo "yes" >&6; };
7831: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7832: else
1.15 bertrand 7833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834: $as_echo "no" >&6; };
7835: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7836: fi
7837: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7838: CFLAGS=$saved_CFLAGS
7839: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7840: libPgSQLlib=$libPgSQLlib/../local/lib
7841: fi
1.14 bertrand 7842:
1.15 bertrand 7843: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7845: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7846: saved_CFLAGS="$CFLAGS"
7847: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7849: /* end confdefs.h. */
1.15 bertrand 7850: #include "libpq-fe.h"
1.1 bertrand 7851: int
7852: main ()
7853: {
7854:
7855: ;
7856: return 0;
7857: }
7858: _ACEOF
1.15 bertrand 7859: if ac_fn_c_try_compile "$LINENO"; then :
7860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861: $as_echo "yes" >&6; };
7862: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7863: else
1.15 bertrand 7864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865: $as_echo "no" >&6; };
7866: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7867: fi
7868: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7869: CFLAGS=$saved_CFLAGS
7870: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7871: libPgSQLlib=$libPgSQLlib/../local/lib
7872: fi
1.14 bertrand 7873: else
1.15 bertrand 7874: if test "x$with_postgresql" != xno; then
7875: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7876: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7877:
7878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7879: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7880: saved_CFLAGS="$CFLAGS"
7881: CFLAGS="$CFLAGS $libPgSQLinc"
7882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7883: /* end confdefs.h. */
1.15 bertrand 7884: #include "libpq-fe.h"
1.1 bertrand 7885: int
7886: main ()
7887: {
7888:
7889: ;
7890: return 0;
7891: }
7892: _ACEOF
1.15 bertrand 7893: if ac_fn_c_try_compile "$LINENO"; then :
7894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895: $as_echo "yes" >&6; };
7896: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7897: else
1.15 bertrand 7898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899: $as_echo "no" >&6; };
7900: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7901: fi
1.15 bertrand 7902: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903: CFLAGS=$saved_CFLAGS
1.14 bertrand 7904:
1.15 bertrand 7905: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7907: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7908: saved_CFLAGS="$CFLAGS"
7909: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7911: /* end confdefs.h. */
1.15 bertrand 7912: #include "libpq-fe.h"
1.1 bertrand 7913: int
7914: main ()
7915: {
1.15 bertrand 7916:
1.1 bertrand 7917: ;
7918: return 0;
7919: }
7920: _ACEOF
1.15 bertrand 7921: if ac_fn_c_try_compile "$LINENO"; then :
7922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7923: $as_echo "yes" >&6; };
7924: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7925: else
1.15 bertrand 7926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927: $as_echo "no" >&6; };
7928: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7929: fi
7930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7931: CFLAGS=$saved_CFLAGS
7932: libPgSQLinc=$libPgSQLinc/postgresql
7933: fi
1.14 bertrand 7934:
1.15 bertrand 7935: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7937: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7938: saved_CFLAGS="$CFLAGS"
7939: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7940: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7941: /* end confdefs.h. */
1.15 bertrand 7942: #include "libpq-fe.h"
1.1 bertrand 7943: int
7944: main ()
7945: {
1.15 bertrand 7946:
1.1 bertrand 7947: ;
7948: return 0;
7949: }
7950: _ACEOF
1.15 bertrand 7951: if ac_fn_c_try_compile "$LINENO"; then :
7952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7953: $as_echo "yes" >&6; };
7954: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7955: else
1.15 bertrand 7956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957: $as_echo "no" >&6; };
7958: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7959: fi
1.15 bertrand 7960: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961: CFLAGS=$saved_CFLAGS
7962: libPgSQLinc=$libPgSQLinc/pgsql
7963: fi
7964: else
7965: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7966: fi
1.1 bertrand 7967: fi
7968:
1.15 bertrand 7969: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7970: POSTGRESQL_LIB=no
1.1 bertrand 7971:
1.15 bertrand 7972: if test $POSTGRESQL_LIB = no; then
7973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7974: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7975: saved_LIBS="$LIBS"
1.30 bertrand 7976: if test $STATIC = no; then
7977: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7978: else
7979: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7980: fi
1.15 bertrand 7981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7982: /* end confdefs.h. */
1.15 bertrand 7983: #include "libpq-fe.h"
1.1 bertrand 7984: int
7985: main ()
7986: {
1.15 bertrand 7987: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7988: PQconnectdb(conninfo);
1.1 bertrand 7989: ;
7990: return 0;
7991: }
7992: _ACEOF
1.15 bertrand 7993: if ac_fn_c_try_link "$LINENO"; then :
7994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7995: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7996: else
1.15 bertrand 7997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7999: fi
8000: rm -f core conftest.err conftest.$ac_objext \
8001: conftest$ac_exeext conftest.$ac_ext
8002: LIBS=$saved_LIBS;
1.30 bertrand 8003: if test $STATIC = no; then
8004: libPgSQLlib="-L/$libPgSQLlib -lpq"
8005: else
8006: libPgSQLlib="$libPgSQLlib/libpq.a"
8007: EXT_SQL="$EXT_SQL $libPgSQLlib"
8008: fi
1.15 bertrand 8009: fi
8010: fi
8011:
8012: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
8013: libPgSQLinc=
8014: libPgSQLlib=
8015: fi
8016:
8017:
8018:
8019:
1.14 bertrand 8020:
1.40 bertrand 8021: # with_postgresql : check [pas défini], yes [uniquement --with],
8022: # no [--without], valeur [--with=valeur].
8023:
8024: # Check whether --with-bourne_shell was given.
8025: if test "${with_bourne_shell+set}" = set; then :
8026: withval=$with_bourne_shell;
8027: else
8028: with_bourne_shell=no
8029: fi
8030:
8031:
8032: if test "x$with_bourne_shell" = xyes; then
8033: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
8034: fi
8035:
8036: if test "x$with_bourne_shell" = xno; then
8037: if test $(uname) = "OS/2"; then
1.86 bertrand 8038: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
8039: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40 bertrand 8040: fi
8041:
8042: BSH_PATH=
8043: else
8044: if test ! -x $with_bourne_shell; then
8045: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
8046: fi
8047:
8048: if test $(uname) = "OS/2"; then
1.41 bertrand 8049: with_os2_bourne_shell=$(echo $with_bourne_shell | \
8050: sed -e '1,$s/\//\\\\\\\\/g')
8051: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40 bertrand 8052: else
8053: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
8054: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
8055: BSH_PATH=
8056: fi
8057: fi
8058:
1.15 bertrand 8059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8060: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57 bertrand 8061: if ${ac_cv_path_GREP+:} false; then :
1.15 bertrand 8062: $as_echo_n "(cached) " >&6
8063: else
8064: if test -z "$GREP"; then
8065: ac_path_GREP_found=false
8066: # Loop through the user's path and test for each of PROGNAME-LIST
8067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8069: do
8070: IFS=$as_save_IFS
8071: test -z "$as_dir" && as_dir=.
8072: for ac_prog in grep ggrep; do
8073: for ac_exec_ext in '' $ac_executable_extensions; do
8074: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8075: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8076: # Check for GNU ac_path_GREP and select it if it is found.
8077: # Check for GNU $ac_path_GREP
8078: case `"$ac_path_GREP" --version 2>&1` in
8079: *GNU*)
8080: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8081: *)
8082: ac_count=0
8083: $as_echo_n 0123456789 >"conftest.in"
8084: while :
8085: do
8086: cat "conftest.in" "conftest.in" >"conftest.tmp"
8087: mv "conftest.tmp" "conftest.in"
8088: cp "conftest.in" "conftest.nl"
8089: $as_echo 'GREP' >> "conftest.nl"
8090: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8091: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8092: as_fn_arith $ac_count + 1 && ac_count=$as_val
8093: if test $ac_count -gt ${ac_path_GREP_max-0}; then
8094: # Best one so far, save it but keep looking for a better one
8095: ac_cv_path_GREP="$ac_path_GREP"
8096: ac_path_GREP_max=$ac_count
8097: fi
8098: # 10*(2^10) chars as input seems more than enough
8099: test $ac_count -gt 10 && break
8100: done
8101: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8102: esac
1.14 bertrand 8103:
1.15 bertrand 8104: $ac_path_GREP_found && break 3
8105: done
8106: done
8107: done
8108: IFS=$as_save_IFS
8109: if test -z "$ac_cv_path_GREP"; then
1.36 bertrand 8110: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 8111: fi
8112: else
8113: ac_cv_path_GREP=$GREP
1.1 bertrand 8114: fi
8115:
8116: fi
1.15 bertrand 8117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8118: $as_echo "$ac_cv_path_GREP" >&6; }
8119: GREP="$ac_cv_path_GREP"
8120:
8121:
8122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8123: $as_echo_n "checking for egrep... " >&6; }
1.57 bertrand 8124: if ${ac_cv_path_EGREP+:} false; then :
1.15 bertrand 8125: $as_echo_n "(cached) " >&6
8126: else
8127: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8128: then ac_cv_path_EGREP="$GREP -E"
8129: else
8130: if test -z "$EGREP"; then
8131: ac_path_EGREP_found=false
8132: # Loop through the user's path and test for each of PROGNAME-LIST
8133: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8135: do
8136: IFS=$as_save_IFS
8137: test -z "$as_dir" && as_dir=.
8138: for ac_prog in egrep; do
8139: for ac_exec_ext in '' $ac_executable_extensions; do
8140: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8141: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8142: # Check for GNU ac_path_EGREP and select it if it is found.
8143: # Check for GNU $ac_path_EGREP
8144: case `"$ac_path_EGREP" --version 2>&1` in
8145: *GNU*)
8146: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8147: *)
8148: ac_count=0
8149: $as_echo_n 0123456789 >"conftest.in"
8150: while :
8151: do
8152: cat "conftest.in" "conftest.in" >"conftest.tmp"
8153: mv "conftest.tmp" "conftest.in"
8154: cp "conftest.in" "conftest.nl"
8155: $as_echo 'EGREP' >> "conftest.nl"
8156: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8157: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8158: as_fn_arith $ac_count + 1 && ac_count=$as_val
8159: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8160: # Best one so far, save it but keep looking for a better one
8161: ac_cv_path_EGREP="$ac_path_EGREP"
8162: ac_path_EGREP_max=$ac_count
8163: fi
8164: # 10*(2^10) chars as input seems more than enough
8165: test $ac_count -gt 10 && break
8166: done
8167: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8168: esac
8169:
8170: $ac_path_EGREP_found && break 3
8171: done
8172: done
8173: done
8174: IFS=$as_save_IFS
8175: if test -z "$ac_cv_path_EGREP"; then
1.36 bertrand 8176: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 8177: fi
1.1 bertrand 8178: else
1.15 bertrand 8179: ac_cv_path_EGREP=$EGREP
1.1 bertrand 8180: fi
8181:
1.15 bertrand 8182: fi
1.1 bertrand 8183: fi
1.15 bertrand 8184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8185: $as_echo "$ac_cv_path_EGREP" >&6; }
8186: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 8187:
8188:
1.15 bertrand 8189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8190: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57 bertrand 8191: if ${ac_cv_header_stdc+:} false; then :
1.15 bertrand 8192: $as_echo_n "(cached) " >&6
1.1 bertrand 8193: else
1.15 bertrand 8194: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8195: /* end confdefs.h. */
8196: #include <stdlib.h>
8197: #include <stdarg.h>
8198: #include <string.h>
8199: #include <float.h>
8200:
8201: int
8202: main ()
8203: {
8204:
8205: ;
8206: return 0;
8207: }
8208: _ACEOF
1.15 bertrand 8209: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 8210: ac_cv_header_stdc=yes
8211: else
1.15 bertrand 8212: ac_cv_header_stdc=no
1.1 bertrand 8213: fi
8214: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215:
8216: if test $ac_cv_header_stdc = yes; then
8217: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 8218: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8219: /* end confdefs.h. */
8220: #include <string.h>
8221:
8222: _ACEOF
8223: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 8224: $EGREP "memchr" >/dev/null 2>&1; then :
8225:
1.1 bertrand 8226: else
8227: ac_cv_header_stdc=no
8228: fi
8229: rm -f conftest*
8230:
8231: fi
8232:
8233: if test $ac_cv_header_stdc = yes; then
8234: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 8235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8236: /* end confdefs.h. */
8237: #include <stdlib.h>
8238:
8239: _ACEOF
8240: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 8241: $EGREP "free" >/dev/null 2>&1; then :
8242:
1.1 bertrand 8243: else
8244: ac_cv_header_stdc=no
8245: fi
8246: rm -f conftest*
8247:
8248: fi
8249:
8250: if test $ac_cv_header_stdc = yes; then
8251: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 8252: if test "$cross_compiling" = yes; then :
1.1 bertrand 8253: :
8254: else
1.15 bertrand 8255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8256: /* end confdefs.h. */
8257: #include <ctype.h>
8258: #include <stdlib.h>
8259: #if ((' ' & 0x0FF) == 0x020)
8260: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8261: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8262: #else
8263: # define ISLOWER(c) \
8264: (('a' <= (c) && (c) <= 'i') \
8265: || ('j' <= (c) && (c) <= 'r') \
8266: || ('s' <= (c) && (c) <= 'z'))
8267: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8268: #endif
8269:
8270: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8271: int
8272: main ()
8273: {
8274: int i;
8275: for (i = 0; i < 256; i++)
8276: if (XOR (islower (i), ISLOWER (i))
8277: || toupper (i) != TOUPPER (i))
8278: return 2;
8279: return 0;
8280: }
8281: _ACEOF
1.15 bertrand 8282: if ac_fn_c_try_run "$LINENO"; then :
8283:
1.14 bertrand 8284: else
1.15 bertrand 8285: ac_cv_header_stdc=no
8286: fi
8287: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8288: conftest.$ac_objext conftest.beam conftest.$ac_ext
8289: fi
1.1 bertrand 8290:
8291: fi
8292: fi
1.15 bertrand 8293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8294: $as_echo "$ac_cv_header_stdc" >&6; }
8295: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8296:
1.15 bertrand 8297: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 8298:
1.1 bertrand 8299: fi
8300:
1.15 bertrand 8301: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8302: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8303: inttypes.h stdint.h unistd.h
8304: do :
8305: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8306: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8307: "
1.36 bertrand 8308: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8309: cat >>confdefs.h <<_ACEOF
8310: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 8311: _ACEOF
1.1 bertrand 8312:
8313: fi
8314:
1.15 bertrand 8315: done
8316:
8317:
8318: # The cast to long int works around a bug in the HP C Compiler
8319: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8320: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8321: # This bug is HP SR number 8606223364.
8322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8323: $as_echo_n "checking size of void *... " >&6; }
1.57 bertrand 8324: if ${ac_cv_sizeof_void_p+:} false; then :
1.15 bertrand 8325: $as_echo_n "(cached) " >&6
8326: else
8327: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 8328:
8329: else
1.15 bertrand 8330: if test "$ac_cv_type_void_p" = yes; then
8331: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8332: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8333: as_fn_error 77 "cannot compute sizeof (void *)
1.57 bertrand 8334: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8335: else
8336: ac_cv_sizeof_void_p=0
8337: fi
8338: fi
1.1 bertrand 8339:
8340: fi
1.15 bertrand 8341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8342: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8343:
1.1 bertrand 8344:
8345:
1.15 bertrand 8346: cat >>confdefs.h <<_ACEOF
8347: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 8348: _ACEOF
1.1 bertrand 8349:
1.15 bertrand 8350:
8351: # The cast to long int works around a bug in the HP C Compiler
8352: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8353: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8354: # This bug is HP SR number 8606223364.
8355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8356: $as_echo_n "checking size of char... " >&6; }
1.57 bertrand 8357: if ${ac_cv_sizeof_char+:} false; then :
1.15 bertrand 8358: $as_echo_n "(cached) " >&6
8359: else
8360: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8361:
8362: else
8363: if test "$ac_cv_type_char" = yes; then
8364: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8365: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8366: as_fn_error 77 "cannot compute sizeof (char)
1.57 bertrand 8367: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8368: else
8369: ac_cv_sizeof_char=0
8370: fi
8371: fi
8372:
1.1 bertrand 8373: fi
1.15 bertrand 8374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8375: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 8376:
8377:
8378:
1.15 bertrand 8379: cat >>confdefs.h <<_ACEOF
8380: #define SIZEOF_CHAR $ac_cv_sizeof_char
8381: _ACEOF
1.1 bertrand 8382:
8383:
1.15 bertrand 8384: # The cast to long int works around a bug in the HP C Compiler
8385: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8386: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8387: # This bug is HP SR number 8606223364.
8388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8389: $as_echo_n "checking size of short int... " >&6; }
1.57 bertrand 8390: if ${ac_cv_sizeof_short_int+:} false; then :
1.15 bertrand 8391: $as_echo_n "(cached) " >&6
8392: else
8393: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 8394:
1.15 bertrand 8395: else
8396: if test "$ac_cv_type_short_int" = yes; then
8397: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8398: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8399: as_fn_error 77 "cannot compute sizeof (short int)
1.57 bertrand 8400: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8401: else
8402: ac_cv_sizeof_short_int=0
8403: fi
8404: fi
1.1 bertrand 8405:
1.15 bertrand 8406: fi
8407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8408: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8409:
8410:
8411:
1.15 bertrand 8412: cat >>confdefs.h <<_ACEOF
8413: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8414: _ACEOF
1.1 bertrand 8415:
8416:
1.15 bertrand 8417: # The cast to long int works around a bug in the HP C Compiler
8418: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8419: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8420: # This bug is HP SR number 8606223364.
8421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8422: $as_echo_n "checking size of int... " >&6; }
1.57 bertrand 8423: if ${ac_cv_sizeof_int+:} false; then :
1.15 bertrand 8424: $as_echo_n "(cached) " >&6
8425: else
8426: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8427:
1.15 bertrand 8428: else
8429: if test "$ac_cv_type_int" = yes; then
8430: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8431: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8432: as_fn_error 77 "cannot compute sizeof (int)
1.57 bertrand 8433: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8434: else
8435: ac_cv_sizeof_int=0
8436: fi
8437: fi
1.1 bertrand 8438:
1.15 bertrand 8439: fi
8440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8441: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8442:
8443:
8444:
1.15 bertrand 8445: cat >>confdefs.h <<_ACEOF
8446: #define SIZEOF_INT $ac_cv_sizeof_int
8447: _ACEOF
1.1 bertrand 8448:
8449:
1.15 bertrand 8450: # The cast to long int works around a bug in the HP C Compiler
8451: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8452: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8453: # This bug is HP SR number 8606223364.
8454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8455: $as_echo_n "checking size of long int... " >&6; }
1.57 bertrand 8456: if ${ac_cv_sizeof_long_int+:} false; then :
1.15 bertrand 8457: $as_echo_n "(cached) " >&6
8458: else
8459: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8460:
1.14 bertrand 8461: else
1.15 bertrand 8462: if test "$ac_cv_type_long_int" = yes; then
8463: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8464: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8465: as_fn_error 77 "cannot compute sizeof (long int)
1.57 bertrand 8466: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8467: else
8468: ac_cv_sizeof_long_int=0
8469: fi
8470: fi
1.1 bertrand 8471:
8472: fi
1.15 bertrand 8473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8474: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8475:
1.1 bertrand 8476:
8477:
1.15 bertrand 8478: cat >>confdefs.h <<_ACEOF
8479: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8480: _ACEOF
1.15 bertrand 8481:
8482:
8483: # The cast to long int works around a bug in the HP C Compiler
8484: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8485: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8486: # This bug is HP SR number 8606223364.
8487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8488: $as_echo_n "checking size of long long int... " >&6; }
1.57 bertrand 8489: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15 bertrand 8490: $as_echo_n "(cached) " >&6
8491: else
8492: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8493:
1.14 bertrand 8494: else
1.15 bertrand 8495: if test "$ac_cv_type_long_long_int" = yes; then
8496: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8497: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8498: as_fn_error 77 "cannot compute sizeof (long long int)
1.57 bertrand 8499: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8500: else
8501: ac_cv_sizeof_long_long_int=0
8502: fi
8503: fi
1.1 bertrand 8504:
1.14 bertrand 8505: fi
1.15 bertrand 8506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8507: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8508:
8509:
8510:
8511: cat >>confdefs.h <<_ACEOF
8512: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8513: _ACEOF
1.1 bertrand 8514:
8515:
1.15 bertrand 8516: # The cast to long int works around a bug in the HP C Compiler
8517: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8518: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8519: # This bug is HP SR number 8606223364.
8520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8521: $as_echo_n "checking size of float... " >&6; }
1.57 bertrand 8522: if ${ac_cv_sizeof_float+:} false; then :
1.15 bertrand 8523: $as_echo_n "(cached) " >&6
8524: else
8525: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8526:
8527: else
1.15 bertrand 8528: if test "$ac_cv_type_float" = yes; then
8529: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8530: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8531: as_fn_error 77 "cannot compute sizeof (float)
1.57 bertrand 8532: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8533: else
8534: ac_cv_sizeof_float=0
8535: fi
1.14 bertrand 8536: fi
8537:
1.1 bertrand 8538: fi
1.15 bertrand 8539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8540: $as_echo "$ac_cv_sizeof_float" >&6; }
8541:
8542:
8543:
8544: cat >>confdefs.h <<_ACEOF
8545: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8546: _ACEOF
1.1 bertrand 8547:
8548:
1.15 bertrand 8549: # The cast to long int works around a bug in the HP C Compiler
8550: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8551: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8552: # This bug is HP SR number 8606223364.
8553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8554: $as_echo_n "checking size of double... " >&6; }
1.57 bertrand 8555: if ${ac_cv_sizeof_double+:} false; then :
1.15 bertrand 8556: $as_echo_n "(cached) " >&6
8557: else
8558: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8559:
1.15 bertrand 8560: else
8561: if test "$ac_cv_type_double" = yes; then
8562: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8563: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8564: as_fn_error 77 "cannot compute sizeof (double)
1.57 bertrand 8565: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8566: else
8567: ac_cv_sizeof_double=0
8568: fi
8569: fi
1.1 bertrand 8570:
1.15 bertrand 8571: fi
8572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8573: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8574:
1.1 bertrand 8575:
8576:
1.15 bertrand 8577: cat >>confdefs.h <<_ACEOF
8578: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8579: _ACEOF
1.15 bertrand 8580:
8581:
8582: # The cast to long int works around a bug in the HP C Compiler
8583: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8584: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8585: # This bug is HP SR number 8606223364.
8586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8587: $as_echo_n "checking size of long double... " >&6; }
1.57 bertrand 8588: if ${ac_cv_sizeof_long_double+:} false; then :
1.15 bertrand 8589: $as_echo_n "(cached) " >&6
8590: else
8591: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8592:
1.14 bertrand 8593: else
1.15 bertrand 8594: if test "$ac_cv_type_long_double" = yes; then
8595: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8596: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8597: as_fn_error 77 "cannot compute sizeof (long double)
1.57 bertrand 8598: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8599: else
8600: ac_cv_sizeof_long_double=0
8601: fi
8602: fi
1.1 bertrand 8603:
8604: fi
1.15 bertrand 8605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8606: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8607:
1.1 bertrand 8608:
8609:
1.15 bertrand 8610: cat >>confdefs.h <<_ACEOF
8611: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8612: _ACEOF
8613:
8614:
1.15 bertrand 8615:
8616: ac_header_dirent=no
8617: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8618: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8620: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57 bertrand 8621: if eval \${$as_ac_Header+:} false; then :
1.15 bertrand 8622: $as_echo_n "(cached) " >&6
1.1 bertrand 8623: else
1.15 bertrand 8624: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8625: /* end confdefs.h. */
8626: #include <sys/types.h>
1.15 bertrand 8627: #include <$ac_hdr>
1.1 bertrand 8628:
1.15 bertrand 8629: int
8630: main ()
8631: {
8632: if ((DIR *) 0)
8633: return 0;
8634: ;
8635: return 0;
8636: }
1.1 bertrand 8637: _ACEOF
1.15 bertrand 8638: if ac_fn_c_try_compile "$LINENO"; then :
8639: eval "$as_ac_Header=yes"
1.1 bertrand 8640: else
1.15 bertrand 8641: eval "$as_ac_Header=no"
8642: fi
8643: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8644: fi
1.15 bertrand 8645: eval ac_res=\$$as_ac_Header
8646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8647: $as_echo "$ac_res" >&6; }
1.36 bertrand 8648: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8649: cat >>confdefs.h <<_ACEOF
8650: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8651: _ACEOF
1.1 bertrand 8652:
1.15 bertrand 8653: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8654: fi
8655:
1.15 bertrand 8656: done
8657: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8658: if test $ac_header_dirent = dirent.h; then
8659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8660: $as_echo_n "checking for library containing opendir... " >&6; }
1.57 bertrand 8661: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8662: $as_echo_n "(cached) " >&6
8663: else
8664: ac_func_search_save_LIBS=$LIBS
8665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666: /* end confdefs.h. */
8667:
8668: /* Override any GCC internal prototype to avoid an error.
8669: Use char because int might match the return type of a GCC
8670: builtin and then its argument prototype would still apply. */
8671: #ifdef __cplusplus
8672: extern "C"
8673: #endif
8674: char opendir ();
8675: int
8676: main ()
8677: {
8678: return opendir ();
8679: ;
8680: return 0;
8681: }
1.14 bertrand 8682: _ACEOF
1.15 bertrand 8683: for ac_lib in '' dir; do
8684: if test -z "$ac_lib"; then
8685: ac_res="none required"
8686: else
8687: ac_res=-l$ac_lib
8688: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8689: fi
8690: if ac_fn_c_try_link "$LINENO"; then :
8691: ac_cv_search_opendir=$ac_res
8692: fi
8693: rm -f core conftest.err conftest.$ac_objext \
8694: conftest$ac_exeext
1.57 bertrand 8695: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8696: break
8697: fi
8698: done
1.57 bertrand 8699: if ${ac_cv_search_opendir+:} false; then :
1.1 bertrand 8700:
1.15 bertrand 8701: else
8702: ac_cv_search_opendir=no
8703: fi
8704: rm conftest.$ac_ext
8705: LIBS=$ac_func_search_save_LIBS
8706: fi
8707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8708: $as_echo "$ac_cv_search_opendir" >&6; }
8709: ac_res=$ac_cv_search_opendir
8710: if test "$ac_res" != no; then :
8711: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8712:
1.14 bertrand 8713: fi
1.1 bertrand 8714:
8715: else
1.15 bertrand 8716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8717: $as_echo_n "checking for library containing opendir... " >&6; }
1.57 bertrand 8718: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8719: $as_echo_n "(cached) " >&6
8720: else
8721: ac_func_search_save_LIBS=$LIBS
8722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8723: /* end confdefs.h. */
1.15 bertrand 8724:
8725: /* Override any GCC internal prototype to avoid an error.
8726: Use char because int might match the return type of a GCC
8727: builtin and then its argument prototype would still apply. */
8728: #ifdef __cplusplus
8729: extern "C"
8730: #endif
8731: char opendir ();
1.1 bertrand 8732: int
8733: main ()
8734: {
1.15 bertrand 8735: return opendir ();
1.1 bertrand 8736: ;
8737: return 0;
8738: }
8739: _ACEOF
1.15 bertrand 8740: for ac_lib in '' x; do
8741: if test -z "$ac_lib"; then
8742: ac_res="none required"
8743: else
8744: ac_res=-l$ac_lib
8745: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8746: fi
8747: if ac_fn_c_try_link "$LINENO"; then :
8748: ac_cv_search_opendir=$ac_res
8749: fi
8750: rm -f core conftest.err conftest.$ac_objext \
8751: conftest$ac_exeext
1.57 bertrand 8752: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8753: break
8754: fi
8755: done
1.57 bertrand 8756: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8757:
1.1 bertrand 8758: else
1.15 bertrand 8759: ac_cv_search_opendir=no
8760: fi
8761: rm conftest.$ac_ext
8762: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8763: fi
1.15 bertrand 8764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8765: $as_echo "$ac_cv_search_opendir" >&6; }
8766: ac_res=$ac_cv_search_opendir
8767: if test "$ac_res" != no; then :
8768: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8769:
1.1 bertrand 8770: fi
8771:
8772: fi
8773:
1.15 bertrand 8774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8775: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57 bertrand 8776: if ${ac_cv_header_stdc+:} false; then :
1.15 bertrand 8777: $as_echo_n "(cached) " >&6
1.1 bertrand 8778: else
1.15 bertrand 8779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8780: /* end confdefs.h. */
1.15 bertrand 8781: #include <stdlib.h>
8782: #include <stdarg.h>
8783: #include <string.h>
8784: #include <float.h>
8785:
1.1 bertrand 8786: int
8787: main ()
8788: {
1.15 bertrand 8789:
1.1 bertrand 8790: ;
8791: return 0;
8792: }
8793: _ACEOF
1.15 bertrand 8794: if ac_fn_c_try_compile "$LINENO"; then :
8795: ac_cv_header_stdc=yes
1.14 bertrand 8796: else
1.15 bertrand 8797: ac_cv_header_stdc=no
8798: fi
8799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800:
8801: if test $ac_cv_header_stdc = yes; then
8802: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804: /* end confdefs.h. */
8805: #include <string.h>
8806:
8807: _ACEOF
8808: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8810:
1.15 bertrand 8811: else
8812: ac_cv_header_stdc=no
1.1 bertrand 8813: fi
1.15 bertrand 8814: rm -f conftest*
1.14 bertrand 8815:
1.1 bertrand 8816: fi
8817:
1.15 bertrand 8818: if test $ac_cv_header_stdc = yes; then
8819: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821: /* end confdefs.h. */
8822: #include <stdlib.h>
8823:
1.14 bertrand 8824: _ACEOF
1.15 bertrand 8825: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826: $EGREP "free" >/dev/null 2>&1; then :
8827:
8828: else
8829: ac_cv_header_stdc=no
8830: fi
8831: rm -f conftest*
1.1 bertrand 8832:
8833: fi
8834:
1.15 bertrand 8835: if test $ac_cv_header_stdc = yes; then
8836: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8837: if test "$cross_compiling" = yes; then :
8838: :
1.1 bertrand 8839: else
1.15 bertrand 8840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8841: /* end confdefs.h. */
1.15 bertrand 8842: #include <ctype.h>
8843: #include <stdlib.h>
8844: #if ((' ' & 0x0FF) == 0x020)
8845: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8847: #else
8848: # define ISLOWER(c) \
8849: (('a' <= (c) && (c) <= 'i') \
8850: || ('j' <= (c) && (c) <= 'r') \
8851: || ('s' <= (c) && (c) <= 'z'))
8852: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8853: #endif
1.1 bertrand 8854:
1.15 bertrand 8855: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8856: int
8857: main ()
8858: {
1.15 bertrand 8859: int i;
8860: for (i = 0; i < 256; i++)
8861: if (XOR (islower (i), ISLOWER (i))
8862: || toupper (i) != TOUPPER (i))
8863: return 2;
1.1 bertrand 8864: return 0;
8865: }
8866: _ACEOF
1.15 bertrand 8867: if ac_fn_c_try_run "$LINENO"; then :
8868:
1.14 bertrand 8869: else
1.15 bertrand 8870: ac_cv_header_stdc=no
8871: fi
8872: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873: conftest.$ac_objext conftest.beam conftest.$ac_ext
8874: fi
1.14 bertrand 8875:
1.1 bertrand 8876: fi
8877: fi
1.15 bertrand 8878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8879: $as_echo "$ac_cv_header_stdc" >&6; }
8880: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8881:
1.15 bertrand 8882: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8883:
8884: fi
8885:
1.15 bertrand 8886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8887: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57 bertrand 8888: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15 bertrand 8889: $as_echo_n "(cached) " >&6
1.1 bertrand 8890: else
1.15 bertrand 8891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8892: /* end confdefs.h. */
1.14 bertrand 8893: #include <sys/types.h>
1.15 bertrand 8894: #include <sys/wait.h>
8895: #ifndef WEXITSTATUS
8896: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8897: #endif
8898: #ifndef WIFEXITED
8899: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8900: #endif
1.1 bertrand 8901:
8902: int
8903: main ()
8904: {
1.15 bertrand 8905: int s;
8906: wait (&s);
8907: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8908: ;
8909: return 0;
8910: }
8911: _ACEOF
1.15 bertrand 8912: if ac_fn_c_try_compile "$LINENO"; then :
8913: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8914: else
1.15 bertrand 8915: ac_cv_header_sys_wait_h=no
8916: fi
8917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918: fi
8919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8920: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8921: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8922:
1.15 bertrand 8923: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8924:
8925: fi
8926:
1.15 bertrand 8927: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8928: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8929: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8930: do :
8931: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8932: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36 bertrand 8933: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8934: cat >>confdefs.h <<_ACEOF
8935: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8936: _ACEOF
8937:
8938: fi
8939:
1.15 bertrand 8940: done
8941:
1.1 bertrand 8942:
1.15 bertrand 8943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8944: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57 bertrand 8945: if ${ac_cv_c_const+:} false; then :
1.15 bertrand 8946: $as_echo_n "(cached) " >&6
1.1 bertrand 8947: else
1.15 bertrand 8948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8949: /* end confdefs.h. */
8950:
8951: int
8952: main ()
8953: {
1.15 bertrand 8954: /* FIXME: Include the comments suggested by Paul. */
8955: #ifndef __cplusplus
8956: /* Ultrix mips cc rejects this. */
8957: typedef int charset[2];
8958: const charset cs;
8959: /* SunOS 4.1.1 cc rejects this. */
8960: char const *const *pcpcc;
8961: char **ppc;
8962: /* NEC SVR4.0.2 mips cc rejects this. */
8963: struct point {int x, y;};
8964: static struct point const zero = {0,0};
8965: /* AIX XL C 1.02.0.0 rejects this.
8966: It does not let you subtract one const X* pointer from another in
8967: an arm of an if-expression whose if-part is not a constant
8968: expression */
8969: const char *g = "string";
8970: pcpcc = &g + (g ? g-g : 0);
8971: /* HPUX 7.0 cc rejects these. */
8972: ++pcpcc;
8973: ppc = (char**) pcpcc;
8974: pcpcc = (char const *const *) ppc;
8975: { /* SCO 3.2v4 cc rejects this. */
8976: char *t;
8977: char const *s = 0 ? (char *) 0 : (char const *) 0;
8978:
8979: *t++ = 0;
8980: if (s) return 0;
8981: }
8982: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8983: int x[] = {25, 17};
8984: const int *foo = &x[0];
8985: ++foo;
8986: }
8987: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8988: typedef const int *iptr;
8989: iptr p = 0;
8990: ++p;
8991: }
8992: { /* AIX XL C 1.02.0.0 rejects this saying
8993: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8994: struct s { int j; const int *ap[3]; };
8995: struct s *b; b->j = 5;
8996: }
8997: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8998: const int foo = 10;
8999: if (!foo) return 0;
9000: }
9001: return !cs[0] && !zero.x;
9002: #endif
9003:
1.14 bertrand 9004: ;
1.1 bertrand 9005: return 0;
9006: }
9007: _ACEOF
1.15 bertrand 9008: if ac_fn_c_try_compile "$LINENO"; then :
9009: ac_cv_c_const=yes
1.14 bertrand 9010: else
1.15 bertrand 9011: ac_cv_c_const=no
1.1 bertrand 9012: fi
1.14 bertrand 9013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 9014: fi
1.15 bertrand 9015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9016: $as_echo "$ac_cv_c_const" >&6; }
9017: if test $ac_cv_c_const = no; then
1.1 bertrand 9018:
1.15 bertrand 9019: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 9020:
1.15 bertrand 9021: fi
1.1 bertrand 9022:
1.15 bertrand 9023: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9024: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57 bertrand 9025: if ${ac_cv_type_uid_t+:} false; then :
1.15 bertrand 9026: $as_echo_n "(cached) " >&6
1.1 bertrand 9027: else
1.15 bertrand 9028: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9029: /* end confdefs.h. */
1.15 bertrand 9030: #include <sys/types.h>
9031:
1.1 bertrand 9032: _ACEOF
1.15 bertrand 9033: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9034: $EGREP "uid_t" >/dev/null 2>&1; then :
9035: ac_cv_type_uid_t=yes
1.1 bertrand 9036: else
1.15 bertrand 9037: ac_cv_type_uid_t=no
9038: fi
9039: rm -f conftest*
1.14 bertrand 9040:
1.1 bertrand 9041: fi
1.15 bertrand 9042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9043: $as_echo "$ac_cv_type_uid_t" >&6; }
9044: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 9045:
1.15 bertrand 9046: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 9047:
9048:
1.15 bertrand 9049: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 9050:
9051: fi
9052:
1.15 bertrand 9053: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57 bertrand 9054: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1 bertrand 9055:
9056: else
1.15 bertrand 9057:
9058: cat >>confdefs.h <<_ACEOF
9059: #define pid_t int
1.14 bertrand 9060: _ACEOF
9061:
1.15 bertrand 9062: fi
1.14 bertrand 9063:
1.15 bertrand 9064: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57 bertrand 9065: if test "x$ac_cv_type_size_t" = xyes; then :
1.14 bertrand 9066:
1.15 bertrand 9067: else
1.1 bertrand 9068:
1.15 bertrand 9069: cat >>confdefs.h <<_ACEOF
9070: #define size_t unsigned int
1.1 bertrand 9071: _ACEOF
1.14 bertrand 9072:
1.1 bertrand 9073: fi
9074:
1.15 bertrand 9075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9076: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57 bertrand 9077: if ${ac_cv_header_time+:} false; then :
1.15 bertrand 9078: $as_echo_n "(cached) " >&6
1.1 bertrand 9079: else
1.15 bertrand 9080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9081: /* end confdefs.h. */
1.15 bertrand 9082: #include <sys/types.h>
9083: #include <sys/time.h>
9084: #include <time.h>
1.1 bertrand 9085:
1.14 bertrand 9086: int
9087: main ()
9088: {
1.15 bertrand 9089: if ((struct tm *) 0)
9090: return 0;
1.14 bertrand 9091: ;
9092: return 0;
9093: }
1.1 bertrand 9094: _ACEOF
1.15 bertrand 9095: if ac_fn_c_try_compile "$LINENO"; then :
9096: ac_cv_header_time=yes
1.1 bertrand 9097: else
1.15 bertrand 9098: ac_cv_header_time=no
1.1 bertrand 9099: fi
1.15 bertrand 9100: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 9101: fi
1.15 bertrand 9102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9103: $as_echo "$ac_cv_header_time" >&6; }
9104: if test $ac_cv_header_time = yes; then
1.1 bertrand 9105:
1.15 bertrand 9106: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 9107:
9108: fi
9109:
1.15 bertrand 9110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9111: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57 bertrand 9112: if ${ac_cv_struct_tm+:} false; then :
1.15 bertrand 9113: $as_echo_n "(cached) " >&6
1.1 bertrand 9114: else
1.15 bertrand 9115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 9116: /* end confdefs.h. */
1.15 bertrand 9117: #include <sys/types.h>
9118: #include <time.h>
1.1 bertrand 9119:
9120: int
9121: main ()
9122: {
1.15 bertrand 9123: struct tm tm;
9124: int *p = &tm.tm_sec;
9125: return !p;
1.1 bertrand 9126: ;
9127: return 0;
9128: }
9129: _ACEOF
1.15 bertrand 9130: if ac_fn_c_try_compile "$LINENO"; then :
9131: ac_cv_struct_tm=time.h
1.1 bertrand 9132: else
1.15 bertrand 9133: ac_cv_struct_tm=sys/time.h
9134: fi
9135: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136: fi
9137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9138: $as_echo "$ac_cv_struct_tm" >&6; }
9139: if test $ac_cv_struct_tm = sys/time.h; then
9140:
9141: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 9142:
1.1 bertrand 9143: fi
9144:
9145:
1.15 bertrand 9146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9147: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57 bertrand 9148: if ${ac_cv_type_signal+:} false; then :
1.15 bertrand 9149: $as_echo_n "(cached) " >&6
1.1 bertrand 9150: else
1.15 bertrand 9151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9152: /* end confdefs.h. */
1.15 bertrand 9153: #include <sys/types.h>
9154: #include <signal.h>
1.1 bertrand 9155:
9156: int
9157: main ()
9158: {
1.15 bertrand 9159: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 9160: ;
9161: return 0;
9162: }
9163: _ACEOF
1.15 bertrand 9164: if ac_fn_c_try_compile "$LINENO"; then :
9165: ac_cv_type_signal=int
1.1 bertrand 9166: else
1.15 bertrand 9167: ac_cv_type_signal=void
1.1 bertrand 9168: fi
1.15 bertrand 9169: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 9170: fi
1.15 bertrand 9171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9172: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 9173:
1.15 bertrand 9174: cat >>confdefs.h <<_ACEOF
9175: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 9176: _ACEOF
1.1 bertrand 9177:
1.15 bertrand 9178:
9179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9180: $as_echo_n "checking for working strcoll... " >&6; }
1.57 bertrand 9181: if ${ac_cv_func_strcoll_works+:} false; then :
1.15 bertrand 9182: $as_echo_n "(cached) " >&6
9183: else
9184: if test "$cross_compiling" = yes; then :
9185: ac_cv_func_strcoll_works=no
9186: else
9187: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188: /* end confdefs.h. */
9189: $ac_includes_default
9190: int
9191: main ()
9192: {
9193: return (strcoll ("abc", "def") >= 0 ||
9194: strcoll ("ABC", "DEF") >= 0 ||
9195: strcoll ("123", "456") >= 0)
9196: ;
9197: return 0;
9198: }
9199: _ACEOF
9200: if ac_fn_c_try_run "$LINENO"; then :
9201: ac_cv_func_strcoll_works=yes
9202: else
9203: ac_cv_func_strcoll_works=no
9204: fi
9205: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9206: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 9207: fi
1.1 bertrand 9208:
9209: fi
1.15 bertrand 9210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9211: $as_echo "$ac_cv_func_strcoll_works" >&6; }
9212: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 9213:
1.15 bertrand 9214: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 9215:
1.15 bertrand 9216: fi
1.1 bertrand 9217:
1.15 bertrand 9218: for ac_func in strftime
9219: do :
9220: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57 bertrand 9221: if test "x$ac_cv_func_strftime" = xyes; then :
1.15 bertrand 9222: cat >>confdefs.h <<_ACEOF
9223: #define HAVE_STRFTIME 1
9224: _ACEOF
1.1 bertrand 9225:
9226: else
1.15 bertrand 9227: # strftime is in -lintl on SCO UNIX.
9228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9229: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57 bertrand 9230: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15 bertrand 9231: $as_echo_n "(cached) " >&6
9232: else
9233: ac_check_lib_save_LIBS=$LIBS
9234: LIBS="-lintl $LIBS"
9235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9236: /* end confdefs.h. */
9237:
9238: /* Override any GCC internal prototype to avoid an error.
9239: Use char because int might match the return type of a GCC
9240: builtin and then its argument prototype would still apply. */
9241: #ifdef __cplusplus
9242: extern "C"
9243: #endif
1.15 bertrand 9244: char strftime ();
1.1 bertrand 9245: int
9246: main ()
9247: {
1.15 bertrand 9248: return strftime ();
1.1 bertrand 9249: ;
9250: return 0;
9251: }
9252: _ACEOF
1.15 bertrand 9253: if ac_fn_c_try_link "$LINENO"; then :
9254: ac_cv_lib_intl_strftime=yes
1.1 bertrand 9255: else
1.15 bertrand 9256: ac_cv_lib_intl_strftime=no
9257: fi
9258: rm -f core conftest.err conftest.$ac_objext \
9259: conftest$ac_exeext conftest.$ac_ext
9260: LIBS=$ac_check_lib_save_LIBS
9261: fi
9262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9263: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57 bertrand 9264: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15 bertrand 9265: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9266:
9267: LIBS="-lintl $LIBS"
9268: fi
9269:
9270: fi
9271: done
9272:
9273: for ac_func in vprintf
9274: do :
9275: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57 bertrand 9276: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15 bertrand 9277: cat >>confdefs.h <<_ACEOF
9278: #define HAVE_VPRINTF 1
9279: _ACEOF
9280:
9281: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57 bertrand 9282: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15 bertrand 9283:
9284: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 9285:
9286: fi
9287:
9288: fi
1.15 bertrand 9289: done
9290:
9291:
9292: for ac_func in ftime getcwd putenv select strcspn strdup \
9293: strerror strspn strstr strtod
9294: do :
9295: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36 bertrand 9297: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 bertrand 9298: cat >>confdefs.h <<_ACEOF
1.15 bertrand 9299: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 9300: _ACEOF
9301:
9302: fi
9303: done
9304:
9305:
1.15 bertrand 9306:
9307: # Check whether --with-openssl_arch was given.
9308: if test "${with_openssl_arch+set}" = set; then :
9309: withval=$with_openssl_arch;
9310: else
9311: with_openssl_arch=none
9312: fi
9313:
9314:
1.31 bertrand 9315: if test $(uname) = "OS/2"; then
1.34 bertrand 9316: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15 bertrand 9317: else
1.31 bertrand 9318: if test "x$with_openssl_arch" = xnone; then
1.67 bertrand 9319: (cd tools/$OPENSSL && ./config no-asm)
1.31 bertrand 9320: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9321: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9322: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31 bertrand 9323: elif test "x$with_openssl_arch" = xlist; then
9324: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9325: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31 bertrand 9326: else
1.67 bertrand 9327: (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31 bertrand 9328: fi
1.15 bertrand 9329: fi
1.1 bertrand 9330:
9331: if test "$MYGNUPLOT" = "yes"; then
9332: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9333: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9334: (cd "$srcdir/tools" && tar -xf -)
9335: fi
1.91 ! bertrand 9336:
! 9337: if test $RECURSIVE = yes; then
! 9338: subdirs="$subdirs tools/$GNUPLOT"
! 9339:
! 9340: fi
1.1 bertrand 9341:
9342: GNUPLOT_COMPILATION=$GNUPLOT
9343: else
9344: GNUPLOT_COMPILATION=
9345: fi
9346:
9347:
9348:
1.88 bertrand 9349: HOST=$target
1.69 bertrand 9350:
9351:
1.87 bertrand 9352: my_save_cflags="$CFLAGS"
9353: FPCFLAGS=""
9354:
9355: CFLAGS=-malign-double
9356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
9357: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
9358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359: /* end confdefs.h. */
9360:
9361: int
9362: main ()
9363: {
1.1 bertrand 9364:
1.87 bertrand 9365: ;
9366: return 0;
9367: }
9368: _ACEOF
9369: if ac_fn_c_try_compile "$LINENO"; then :
9370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
9372: else
9373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374: $as_echo "no" >&6; }
9375: fi
9376: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377: CFLAGS=-mieee-fp
9378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
9379: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
9380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381: /* end confdefs.h. */
9382:
9383: int
9384: main ()
9385: {
1.1 bertrand 9386:
1.87 bertrand 9387: ;
9388: return 0;
9389: }
9390: _ACEOF
9391: if ac_fn_c_try_compile "$LINENO"; then :
9392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9393: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
9394: else
9395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396: $as_echo "no" >&6; }
9397: fi
9398: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399: CFLAGS=-mieee
9400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
9401: $as_echo_n "checking whether CC supports -mieee... " >&6; }
9402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403: /* end confdefs.h. */
1.1 bertrand 9404:
1.87 bertrand 9405: int
9406: main ()
9407: {
1.1 bertrand 9408:
1.87 bertrand 9409: ;
9410: return 0;
9411: }
9412: _ACEOF
9413: if ac_fn_c_try_compile "$LINENO"; then :
9414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9415: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
9416: else
9417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418: $as_echo "no" >&6; }
9419: fi
9420: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421: CFLAGS=$my_save_cflags
1.1 bertrand 9422:
1.87 bertrand 9423: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
9424: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
9425: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
9426: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1 bertrand 9427:
1.87 bertrand 9428: case $target_os in
1.8 bertrand 9429:
9430: cygwin*)
9431: OS=Cygwin
9432: break ;;
9433:
9434: interix*)
9435: OS=Interix
9436: break ;;
9437:
9438: *)
9439: OS=$(uname)
9440: break ;;
9441:
9442: esac
9443:
9444:
9445:
1.1 bertrand 9446: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9447: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49 bertrand 9448: MALLOC=
1.1 bertrand 9449:
1.22 bertrand 9450: case $OS in
1.17 bertrand 9451: Darwin)
1.31 bertrand 9452: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9453: NESTED_FUNCTIONS=-fnested-functions
1.23 bertrand 9454: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9455: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9456: --disable-shared --enable-static --enable-threads \
9457: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9458: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9459: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9460: C_STANDARD=-std=gnu99
1.75 bertrand 9461: ELF=
1.17 bertrand 9462: break ;;
9463:
1.31 bertrand 9464: Cygwin)
9465: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9466: NESTED_FUNCTIONS=
1.31 bertrand 9467: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9468: --disable-shared --enable-static --enable-threads \
9469: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9470: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9471: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9472: C_STANDARD=-std=gnu99
1.75 bertrand 9473: ELF=
1.17 bertrand 9474: break ;;
9475:
1.34 bertrand 9476: Interix)
9477: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9478: NESTED_FUNCTIONS=
9479: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9480: --disable-shared --enable-static --enable-threads \
9481: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9482: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9483: LDFLAGS=\"$LDFLAGS\""
1.34 bertrand 9484: C_STANDARD=-std=gnu99
1.75 bertrand 9485: ELF=
1.34 bertrand 9486: break;;
9487:
1.31 bertrand 9488: AIX)
9489: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9490: NESTED_FUNCTIONS=
1.31 bertrand 9491: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9492: --disable-shared --enable-static --enable-threads \
9493: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9494: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9495: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9496: C_STANDARD=-std=gnu99
1.75 bertrand 9497: ELF=
1.18 bertrand 9498: break ;;
9499:
1.31 bertrand 9500: OS/2)
1.37 bertrand 9501: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9502: FINAL_ENCODING=CP850; \
9503: fi;
1.31 bertrand 9504: OS=OS2
9505: NESTED_FUNCTIONS=
9506: EXPORT_DYNAMIC=-Zmap
9507: ac_configure_args="$ac_configure_args --without-readline \
1.49 bertrand 9508: --without-cairo --disable-shared --enable-static \
1.69 bertrand 9509: --enable-threads \
9510: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9511: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9512: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9513: C_STANDARD=
1.75 bertrand 9514: ELF=
1.31 bertrand 9515: break;;
9516:
1.35 bertrand 9517: OpenBSD)
1.37 bertrand 9518: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9519: FINAL_ENCODING=UTF-8; \
9520: fi;
9521: EXPORT_DYNAMIC=-Wl,--export-dynamic
9522: NESTED_FUNCTIONS=
9523: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9524: --disable-shared --enable-static --enable-threads \
9525: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9526: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9527: LDFLAGS=\"$LDFLAGS\""
1.35 bertrand 9528: C_STANDARD=-std=gnu99
1.75 bertrand 9529: ELF=
1.35 bertrand 9530: break;;
9531:
1.49 bertrand 9532: SunOS)
9533: EXPORT_DYNAMIC=-Wl,--export-dynamic
9534: NESTED_FUNCTIONS=
9535:
9536: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9537: --disable-shared --enable-static --enable-threads \
9538: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9539: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9540: LDFLAGS=\"$LDFLAGS\""
1.49 bertrand 9541: C_STANDARD=-std=gnu99
9542: MALLOC=-lumem
1.75 bertrand 9543: ELF=
9544: break ;;
9545:
9546: NetBSD)
9547: EXPORT_DYNAMIC=-Wl,--export-dynamic
9548: NESTED_FUNCTIONS=
9549:
9550: ac_configure_args="$ac_configure_args --with-readline=builtin \
9551: --disable-shared --enable-static --enable-threads \
9552: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9553: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9554: LDFLAGS=\"$LDFLAGS\""
9555: C_STANDARD=-std=gnu99
9556: GCCBIN=`which gcc`
9557: GCCLIB=`dirname $GCCBIN`/../lib
9558: ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49 bertrand 9559: break ;;
9560:
1.17 bertrand 9561: *)
1.31 bertrand 9562: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9563: NESTED_FUNCTIONS=
1.36 bertrand 9564:
1.31 bertrand 9565: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9566: --disable-shared --enable-static --enable-threads \
9567: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9568: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9569: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9570: C_STANDARD=-std=gnu99
1.75 bertrand 9571: ELF=
1.17 bertrand 9572: break ;;
1.90 bertrand 9573: esac
9574:
9575: case $OS in
9576: OS2)
9577: WHOLE_LIB1=""
9578: WHOLE_LIB2=""
1.91 ! bertrand 9579: LIB_PREFIX=""
1.90 bertrand 9580: break ;;
1.17 bertrand 9581:
1.90 bertrand 9582: *)
9583: WHOLE_LIB1="-Wl,-whole-archive"
9584: WHOLE_LIB2="-Wl,-no-whole-archive"
1.91 ! bertrand 9585: LIB_PREFIX="lib"
1.90 bertrand 9586: break ;;
1.17 bertrand 9587: esac
9588:
9589:
9590:
9591:
1.1 bertrand 9592:
9593:
9594:
9595:
9596:
9597:
9598:
9599:
9600:
9601:
9602:
9603:
9604:
9605:
9606:
9607:
9608:
9609:
9610:
1.9 bertrand 9611:
1.24 bertrand 9612:
1.30 bertrand 9613:
1.33 bertrand 9614:
9615:
9616:
1.34 bertrand 9617:
1.35 bertrand 9618:
1.49 bertrand 9619:
1.55 bertrand 9620:
9621:
1.56 bertrand 9622:
9623:
9624:
9625:
1.69 bertrand 9626:
1.75 bertrand 9627:
1.78 bertrand 9628:
1.80 bertrand 9629:
9630:
9631:
1.82 bertrand 9632:
1.90 bertrand 9633:
9634:
9635:
1.69 bertrand 9636:
1.91 ! bertrand 9637: if test $RECURSIVE = yes; then
! 9638: subdirs="$subdirs tools/$NCURSES"
1.69 bertrand 9639:
1.91 ! bertrand 9640: subdirs="$subdirs tools/$READLINE"
1.69 bertrand 9641:
1.91 ! bertrand 9642: subdirs="$subdirs tools/$GSL"
1.69 bertrand 9643:
1.91 ! bertrand 9644: subdirs="$subdirs tools/$GPP"
1.69 bertrand 9645:
1.91 ! bertrand 9646: subdirs="$subdirs tools/$FILE"
1.69 bertrand 9647:
1.91 ! bertrand 9648: subdirs="$subdirs tools/$ICONV"
1.69 bertrand 9649:
1.91 ! bertrand 9650: subdirs="$subdirs tools/$SQLITE"
1.69 bertrand 9651:
1.91 ! bertrand 9652: subdirs="$subdirs tools/$UNITS"
1.76 bertrand 9653:
1.91 ! bertrand 9654: subdirs="$subdirs tools/$SIGSEGV"
! 9655:
! 9656: fi
1.69 bertrand 9657:
1.1 bertrand 9658: ac_config_files="$ac_config_files Makefile"
9659:
9660: ac_config_files="$ac_config_files COPYING"
9661:
9662: ac_config_files="$ac_config_files tools/Makefile"
9663:
9664: ac_config_files="$ac_config_files src/Makefile"
9665:
9666: ac_config_files="$ac_config_files man/Makefile"
9667:
9668: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9669:
9670: ac_config_files="$ac_config_files doc/Makefile"
9671:
9672: ac_config_files="$ac_config_files scripts/Makefile"
9673:
9674: ac_config_files="$ac_config_files scripts/mkrplso"
9675:
9676: ac_config_files="$ac_config_files scripts/rplcc"
9677:
9678: ac_config_files="$ac_config_files scripts/rpllink"
9679:
9680: ac_config_files="$ac_config_files rpltags/Makefile"
9681:
9682: ac_config_files="$ac_config_files rpliconv/Makefile"
9683:
1.9 bertrand 9684: ac_config_files="$ac_config_files rplsums/Makefile"
9685:
1.55 bertrand 9686: ac_config_files="$ac_config_files rplcas/Makefile"
9687:
1.39 bertrand 9688: ac_config_files="$ac_config_files rplawk/Makefile"
9689:
1.1 bertrand 9690: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9691:
9692: ac_config_files="$ac_config_files lapack/blas/Makefile"
9693:
9694:
9695: ac_config_files="$ac_config_files man/rpl.1"
9696:
9697: ac_config_files="$ac_config_files man/rplcc.1"
9698:
9699: ac_config_files="$ac_config_files man/rpllink.1"
9700:
9701: ac_config_files="$ac_config_files man/rpltags.1"
9702:
9703: ac_config_files="$ac_config_files man/mkrplso.1"
9704:
9705: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9706:
9707: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9708:
9709: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9710:
9711: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9712:
9713: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9714:
9715:
9716: cat >confcache <<\_ACEOF
9717: # This file is a shell script that caches the results of configure
9718: # tests run on this system so they can be shared between configure
9719: # scripts and configure runs, see configure's option --config-cache.
9720: # It is not useful on other systems. If it contains results you don't
9721: # want to keep, you may remove or edit it.
9722: #
9723: # config.status only pays attention to the cache file if you give it
9724: # the --recheck option to rerun configure.
9725: #
9726: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9727: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9728: # following values.
9729:
9730: _ACEOF
9731:
9732: # The following way of writing the cache mishandles newlines in values,
9733: # but we know of no workaround that is simple, portable, and efficient.
9734: # So, we kill variables containing newlines.
9735: # Ultrix sh set writes to stderr and can't be redirected directly,
9736: # and sets the high bit in the cache file unless we assign to the vars.
9737: (
9738: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9739: eval ac_val=\$$ac_var
9740: case $ac_val in #(
9741: *${as_nl}*)
9742: case $ac_var in #(
1.15 bertrand 9743: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9744: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9745: esac
9746: case $ac_var in #(
9747: _ | IFS | as_nl) ;; #(
1.15 bertrand 9748: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9749: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9750: esac ;;
9751: esac
9752: done
9753:
9754: (set) 2>&1 |
9755: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9756: *${as_nl}ac_space=\ *)
1.15 bertrand 9757: # `set' does not quote correctly, so add quotes: double-quote
9758: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9759: sed -n \
9760: "s/'/'\\\\''/g;
9761: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9762: ;; #(
9763: *)
9764: # `set' quotes correctly as required by POSIX, so do not add quotes.
9765: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9766: ;;
9767: esac |
9768: sort
9769: ) |
9770: sed '
9771: /^ac_cv_env_/b end
9772: t clear
9773: :clear
9774: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9775: t end
9776: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9777: :end' >>confcache
9778: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9779: if test -w "$cache_file"; then
1.57 bertrand 9780: if test "x$cache_file" != "x/dev/null"; then
1.15 bertrand 9781: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9782: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57 bertrand 9783: if test ! -f "$cache_file" || test -h "$cache_file"; then
9784: cat confcache >"$cache_file"
9785: else
9786: case $cache_file in #(
9787: */* | ?:*)
9788: mv -f confcache "$cache_file"$$ &&
9789: mv -f "$cache_file"$$ "$cache_file" ;; #(
9790: *)
9791: mv -f confcache "$cache_file" ;;
9792: esac
9793: fi
9794: fi
1.1 bertrand 9795: else
1.15 bertrand 9796: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9797: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9798: fi
9799: fi
9800: rm -f confcache
9801:
9802: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9803: # Let make expand exec_prefix.
9804: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9805:
9806: DEFS=-DHAVE_CONFIG_H
9807:
9808: ac_libobjs=
9809: ac_ltlibobjs=
1.36 bertrand 9810: U=
1.1 bertrand 9811: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9812: # 1. Remove the extension, and $U if already installed.
9813: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9814: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9815: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9816: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9817: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9818: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9819: done
9820: LIBOBJS=$ac_libobjs
9821:
9822: LTLIBOBJS=$ac_ltlibobjs
9823:
9824:
1.15 bertrand 9825: if test -n "$EXEEXT"; then
9826: am__EXEEXT_TRUE=
9827: am__EXEEXT_FALSE='#'
9828: else
9829: am__EXEEXT_TRUE='#'
9830: am__EXEEXT_FALSE=
9831: fi
9832:
1.1 bertrand 9833: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36 bertrand 9834: as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15 bertrand 9835: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9836: fi
9837: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36 bertrand 9838: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15 bertrand 9839: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9840: fi
9841: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36 bertrand 9842: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15 bertrand 9843: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9844: fi
9845:
1.57 bertrand 9846: : "${CONFIG_STATUS=./config.status}"
1.15 bertrand 9847: ac_write_fail=0
1.1 bertrand 9848: ac_clean_files_save=$ac_clean_files
9849: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9850: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9851: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9852: as_write_fail=0
9853: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9854: #! $SHELL
9855: # Generated by $as_me.
9856: # Run this file to recreate the current configuration.
9857: # Compiler output produced by configure, useful for debugging
9858: # configure, is in config.log if it exists.
9859:
9860: debug=false
9861: ac_cs_recheck=false
9862: ac_cs_silent=false
1.15 bertrand 9863:
1.14 bertrand 9864: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9865: export SHELL
9866: _ASEOF
9867: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9868: ## -------------------- ##
9869: ## M4sh Initialization. ##
9870: ## -------------------- ##
1.1 bertrand 9871:
9872: # Be more Bourne compatible
9873: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9874: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9875: emulate sh
9876: NULLCMD=:
1.15 bertrand 9877: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9878: # is contrary to our usage. Disable this feature.
9879: alias -g '${1+"$@"}'='"$@"'
9880: setopt NO_GLOB_SUBST
9881: else
1.15 bertrand 9882: case `(set -o) 2>/dev/null` in #(
9883: *posix*) :
9884: set -o posix ;; #(
9885: *) :
9886: ;;
1.1 bertrand 9887: esac
9888: fi
9889:
9890:
1.15 bertrand 9891: as_nl='
9892: '
9893: export as_nl
9894: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9895: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9896: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9897: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9898: # Prefer a ksh shell builtin over an external printf program on Solaris,
9899: # but without wasting forks for bash or zsh.
9900: if test -z "$BASH_VERSION$ZSH_VERSION" \
9901: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9902: as_echo='print -r --'
9903: as_echo_n='print -rn --'
9904: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9905: as_echo='printf %s\n'
9906: as_echo_n='printf %s'
9907: else
9908: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9909: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9910: as_echo_n='/usr/ucb/echo -n'
9911: else
9912: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9913: as_echo_n_body='eval
9914: arg=$1;
9915: case $arg in #(
9916: *"$as_nl"*)
9917: expr "X$arg" : "X\\(.*\\)$as_nl";
9918: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9919: esac;
9920: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9921: '
9922: export as_echo_n_body
9923: as_echo_n='sh -c $as_echo_n_body as_echo'
9924: fi
9925: export as_echo_body
9926: as_echo='sh -c $as_echo_body as_echo'
9927: fi
1.14 bertrand 9928:
9929: # The user is always right.
9930: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9931: PATH_SEPARATOR=:
9932: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9933: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9934: PATH_SEPARATOR=';'
9935: }
1.1 bertrand 9936: fi
9937:
9938:
9939: # IFS
9940: # We need space, tab and new line, in precisely that order. Quoting is
9941: # there to prevent editors from complaining about space-tab.
9942: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9943: # splitting by setting IFS to empty value.)
9944: IFS=" "" $as_nl"
9945:
9946: # Find who we are. Look in the path if we contain no directory separator.
1.57 bertrand 9947: as_myself=
1.15 bertrand 9948: case $0 in #((
1.1 bertrand 9949: *[\\/]* ) as_myself=$0 ;;
9950: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951: for as_dir in $PATH
9952: do
9953: IFS=$as_save_IFS
9954: test -z "$as_dir" && as_dir=.
1.15 bertrand 9955: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9956: done
1.1 bertrand 9957: IFS=$as_save_IFS
9958:
9959: ;;
9960: esac
9961: # We did not find ourselves, most probably we were run as `sh COMMAND'
9962: # in which case we are not to be found in the path.
9963: if test "x$as_myself" = x; then
9964: as_myself=$0
9965: fi
9966: if test ! -f "$as_myself"; then
1.15 bertrand 9967: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9968: exit 1
1.1 bertrand 9969: fi
9970:
1.15 bertrand 9971: # Unset variables that we do not need and which cause bugs (e.g. in
9972: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9973: # suppresses any "Segmentation fault" message there. '((' could
9974: # trigger a bug in pdksh 5.2.14.
9975: for as_var in BASH_ENV ENV MAIL MAILPATH
9976: do eval test x\${$as_var+set} = xset \
9977: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9978: done
9979: PS1='$ '
9980: PS2='> '
9981: PS4='+ '
9982:
9983: # NLS nuisances.
1.15 bertrand 9984: LC_ALL=C
9985: export LC_ALL
9986: LANGUAGE=C
9987: export LANGUAGE
9988:
9989: # CDPATH.
9990: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9991:
9992:
1.36 bertrand 9993: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9994: # ----------------------------------------
1.15 bertrand 9995: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9996: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 9997: # script with STATUS, using 1 if that was 0.
1.15 bertrand 9998: as_fn_error ()
9999: {
1.36 bertrand 10000: as_status=$1; test $as_status -eq 0 && as_status=1
10001: if test "$4"; then
10002: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10003: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 10004: fi
1.36 bertrand 10005: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 10006: as_fn_exit $as_status
10007: } # as_fn_error
10008:
10009:
10010: # as_fn_set_status STATUS
10011: # -----------------------
10012: # Set $? to STATUS, without forking.
10013: as_fn_set_status ()
10014: {
10015: return $1
10016: } # as_fn_set_status
10017:
10018: # as_fn_exit STATUS
10019: # -----------------
10020: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10021: as_fn_exit ()
10022: {
10023: set +e
10024: as_fn_set_status $1
10025: exit $1
10026: } # as_fn_exit
10027:
10028: # as_fn_unset VAR
10029: # ---------------
10030: # Portably unset VAR.
10031: as_fn_unset ()
10032: {
10033: { eval $1=; unset $1;}
10034: }
10035: as_unset=as_fn_unset
10036: # as_fn_append VAR VALUE
10037: # ----------------------
10038: # Append the text in VALUE to the end of the definition contained in VAR. Take
10039: # advantage of any shell optimizations that allow amortized linear growth over
10040: # repeated appends, instead of the typical quadratic growth present in naive
10041: # implementations.
10042: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10043: eval 'as_fn_append ()
10044: {
10045: eval $1+=\$2
10046: }'
10047: else
10048: as_fn_append ()
10049: {
10050: eval $1=\$$1\$2
10051: }
10052: fi # as_fn_append
10053:
10054: # as_fn_arith ARG...
10055: # ------------------
10056: # Perform arithmetic evaluation on the ARGs, and store the result in the
10057: # global $as_val. Take advantage of shells that can avoid forks. The arguments
10058: # must be portable across $(()) and expr.
10059: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10060: eval 'as_fn_arith ()
10061: {
10062: as_val=$(( $* ))
10063: }'
10064: else
10065: as_fn_arith ()
10066: {
10067: as_val=`expr "$@" || test $? -eq 1`
10068: }
10069: fi # as_fn_arith
10070:
1.1 bertrand 10071:
10072: if expr a : '\(a\)' >/dev/null 2>&1 &&
10073: test "X`expr 00001 : '.*\(...\)'`" = X001; then
10074: as_expr=expr
10075: else
10076: as_expr=false
10077: fi
10078:
10079: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10080: as_basename=basename
10081: else
10082: as_basename=false
10083: fi
10084:
1.15 bertrand 10085: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10086: as_dirname=dirname
10087: else
10088: as_dirname=false
10089: fi
1.1 bertrand 10090:
10091: as_me=`$as_basename -- "$0" ||
10092: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10093: X"$0" : 'X\(//\)$' \| \
10094: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10095: $as_echo X/"$0" |
1.1 bertrand 10096: sed '/^.*\/\([^/][^/]*\)\/*$/{
10097: s//\1/
10098: q
10099: }
10100: /^X\/\(\/\/\)$/{
10101: s//\1/
10102: q
10103: }
10104: /^X\/\(\/\).*/{
10105: s//\1/
10106: q
10107: }
1.14 bertrand 10108: s/.*/./; q'`
10109:
1.15 bertrand 10110: # Avoid depending upon Character Ranges.
10111: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10112: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10113: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10114: as_cr_digits='0123456789'
10115: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 10116:
10117: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 10118: case `echo -n x` in #(((((
1.1 bertrand 10119: -n*)
1.15 bertrand 10120: case `echo 'xy\c'` in
1.1 bertrand 10121: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 10122: xy) ECHO_C='\c';;
10123: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10124: ECHO_T=' ';;
1.1 bertrand 10125: esac;;
10126: *)
10127: ECHO_N='-n';;
10128: esac
10129:
10130: rm -f conf$$ conf$$.exe conf$$.file
10131: if test -d conf$$.dir; then
10132: rm -f conf$$.dir/conf$$.file
10133: else
10134: rm -f conf$$.dir
1.15 bertrand 10135: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 10136: fi
1.15 bertrand 10137: if (echo >conf$$.file) 2>/dev/null; then
10138: if ln -s conf$$.file conf$$ 2>/dev/null; then
10139: as_ln_s='ln -s'
10140: # ... but there are two gotchas:
10141: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10142: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10143: # In both cases, we have to default to `cp -p'.
10144: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10145: as_ln_s='cp -p'
10146: elif ln conf$$.file conf$$ 2>/dev/null; then
10147: as_ln_s=ln
10148: else
1.1 bertrand 10149: as_ln_s='cp -p'
1.15 bertrand 10150: fi
1.1 bertrand 10151: else
10152: as_ln_s='cp -p'
10153: fi
10154: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10155: rmdir conf$$.dir 2>/dev/null
10156:
1.15 bertrand 10157:
10158: # as_fn_mkdir_p
10159: # -------------
10160: # Create "$as_dir" as a directory, including parents if necessary.
10161: as_fn_mkdir_p ()
10162: {
10163:
10164: case $as_dir in #(
10165: -*) as_dir=./$as_dir;;
10166: esac
10167: test -d "$as_dir" || eval $as_mkdir_p || {
10168: as_dirs=
10169: while :; do
10170: case $as_dir in #(
10171: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10172: *) as_qdir=$as_dir;;
10173: esac
10174: as_dirs="'$as_qdir' $as_dirs"
10175: as_dir=`$as_dirname -- "$as_dir" ||
10176: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10177: X"$as_dir" : 'X\(//\)[^/]' \| \
10178: X"$as_dir" : 'X\(//\)$' \| \
10179: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10180: $as_echo X"$as_dir" |
10181: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10182: s//\1/
10183: q
10184: }
10185: /^X\(\/\/\)[^/].*/{
10186: s//\1/
10187: q
10188: }
10189: /^X\(\/\/\)$/{
10190: s//\1/
10191: q
10192: }
10193: /^X\(\/\).*/{
10194: s//\1/
10195: q
10196: }
10197: s/.*/./; q'`
10198: test -d "$as_dir" && break
10199: done
10200: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 10201: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15 bertrand 10202:
10203:
10204: } # as_fn_mkdir_p
1.1 bertrand 10205: if mkdir -p . 2>/dev/null; then
1.15 bertrand 10206: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 10207: else
10208: test -d ./-p && rmdir ./-p
10209: as_mkdir_p=false
10210: fi
10211:
10212: if test -x / >/dev/null 2>&1; then
10213: as_test_x='test -x'
10214: else
10215: if ls -dL / >/dev/null 2>&1; then
10216: as_ls_L_option=L
10217: else
10218: as_ls_L_option=
10219: fi
10220: as_test_x='
10221: eval sh -c '\''
10222: if test -d "$1"; then
1.15 bertrand 10223: test -d "$1/.";
1.1 bertrand 10224: else
1.15 bertrand 10225: case $1 in #(
10226: -*)set "./$1";;
1.1 bertrand 10227: esac;
1.15 bertrand 10228: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 10229: ???[sx]*):;;*)false;;esac;fi
10230: '\'' sh
10231: '
10232: fi
10233: as_executable_p=$as_test_x
10234:
10235: # Sed expression to map a string onto a valid CPP name.
10236: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10237:
10238: # Sed expression to map a string onto a valid variable name.
10239: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10240:
10241:
10242: exec 6>&1
1.15 bertrand 10243: ## ----------------------------------- ##
10244: ## Main body of $CONFIG_STATUS script. ##
10245: ## ----------------------------------- ##
10246: _ASEOF
10247: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 10248:
1.15 bertrand 10249: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10250: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 10251: # report actual input values of CONFIG_FILES etc. instead of their
10252: # values after options handling.
10253: ac_log="
1.86 bertrand 10254: This file was extended by rpl $as_me 4.1.4, which was
1.57 bertrand 10255: generated by GNU Autoconf 2.68. Invocation command line was
1.1 bertrand 10256:
10257: CONFIG_FILES = $CONFIG_FILES
10258: CONFIG_HEADERS = $CONFIG_HEADERS
10259: CONFIG_LINKS = $CONFIG_LINKS
10260: CONFIG_COMMANDS = $CONFIG_COMMANDS
10261: $ $0 $@
10262:
10263: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10264: "
10265:
10266: _ACEOF
10267:
1.15 bertrand 10268: case $ac_config_files in *"
10269: "*) set x $ac_config_files; shift; ac_config_files=$*;;
10270: esac
10271:
10272: case $ac_config_headers in *"
10273: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10274: esac
10275:
10276:
10277: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10278: # Files that config.status was made for.
10279: config_files="$ac_config_files"
10280: config_headers="$ac_config_headers"
10281: config_commands="$ac_config_commands"
10282:
10283: _ACEOF
10284:
1.15 bertrand 10285: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10286: ac_cs_usage="\
1.15 bertrand 10287: \`$as_me' instantiates files and other configuration actions
10288: from templates according to the current configuration. Unless the files
10289: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 10290:
1.15 bertrand 10291: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 10292:
10293: -h, --help print this help, then exit
10294: -V, --version print version number and configuration settings, then exit
1.15 bertrand 10295: --config print configuration, then exit
10296: -q, --quiet, --silent
10297: do not print progress messages
1.1 bertrand 10298: -d, --debug don't remove temporary files
10299: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 10300: --file=FILE[:TEMPLATE]
10301: instantiate the configuration file FILE
10302: --header=FILE[:TEMPLATE]
10303: instantiate the configuration header FILE
1.1 bertrand 10304:
10305: Configuration files:
10306: $config_files
10307:
10308: Configuration headers:
10309: $config_headers
10310:
10311: Configuration commands:
10312: $config_commands
10313:
1.15 bertrand 10314: Report bugs to the package provider."
1.1 bertrand 10315:
10316: _ACEOF
1.15 bertrand 10317: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10318: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 10319: ac_cs_version="\\
1.86 bertrand 10320: rpl config.status 4.1.4
1.57 bertrand 10321: configured by $0, generated by GNU Autoconf 2.68,
1.15 bertrand 10322: with options \\"\$ac_cs_config\\"
1.1 bertrand 10323:
1.36 bertrand 10324: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 10325: This config.status script is free software; the Free Software Foundation
10326: gives unlimited permission to copy, distribute and modify it."
10327:
10328: ac_pwd='$ac_pwd'
10329: srcdir='$srcdir'
10330: INSTALL='$INSTALL'
10331: MKDIR_P='$MKDIR_P'
1.15 bertrand 10332: AWK='$AWK'
10333: test -n "\$AWK" || AWK=awk
1.1 bertrand 10334: _ACEOF
10335:
1.15 bertrand 10336: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10337: # The default lists apply if the user does not specify any file.
1.1 bertrand 10338: ac_need_defaults=:
10339: while test $# != 0
10340: do
10341: case $1 in
1.36 bertrand 10342: --*=?*)
1.1 bertrand 10343: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10344: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10345: ac_shift=:
10346: ;;
1.36 bertrand 10347: --*=)
10348: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10349: ac_optarg=
10350: ac_shift=:
10351: ;;
1.1 bertrand 10352: *)
10353: ac_option=$1
10354: ac_optarg=$2
10355: ac_shift=shift
10356: ;;
10357: esac
10358:
10359: case $ac_option in
10360: # Handling of the options.
10361: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10362: ac_cs_recheck=: ;;
10363: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 10364: $as_echo "$ac_cs_version"; exit ;;
10365: --config | --confi | --conf | --con | --co | --c )
10366: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 10367: --debug | --debu | --deb | --de | --d | -d )
10368: debug=: ;;
10369: --file | --fil | --fi | --f )
10370: $ac_shift
1.15 bertrand 10371: case $ac_optarg in
10372: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36 bertrand 10373: '') as_fn_error $? "missing file argument" ;;
1.15 bertrand 10374: esac
10375: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 10376: ac_need_defaults=false;;
10377: --header | --heade | --head | --hea )
10378: $ac_shift
1.15 bertrand 10379: case $ac_optarg in
10380: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10381: esac
10382: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 10383: ac_need_defaults=false;;
10384: --he | --h)
10385: # Conflict between --help and --header
1.36 bertrand 10386: as_fn_error $? "ambiguous option: \`$1'
1.15 bertrand 10387: Try \`$0 --help' for more information.";;
1.1 bertrand 10388: --help | --hel | -h )
1.15 bertrand 10389: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 10390: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10391: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10392: ac_cs_silent=: ;;
10393:
10394: # This is an error.
1.36 bertrand 10395: -*) as_fn_error $? "unrecognized option: \`$1'
1.15 bertrand 10396: Try \`$0 --help' for more information." ;;
1.1 bertrand 10397:
1.15 bertrand 10398: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 10399: ac_need_defaults=false ;;
10400:
10401: esac
10402: shift
10403: done
10404:
10405: ac_configure_extra_args=
10406:
10407: if $ac_cs_silent; then
10408: exec 6>/dev/null
10409: ac_configure_extra_args="$ac_configure_extra_args --silent"
10410: fi
10411:
10412: _ACEOF
1.15 bertrand 10413: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10414: if \$ac_cs_recheck; then
1.15 bertrand 10415: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10416: shift
10417: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10418: CONFIG_SHELL='$SHELL'
1.1 bertrand 10419: export CONFIG_SHELL
1.15 bertrand 10420: exec "\$@"
1.1 bertrand 10421: fi
10422:
10423: _ACEOF
1.15 bertrand 10424: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10425: exec 5>>config.log
10426: {
10427: echo
10428: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10429: ## Running $as_me. ##
10430: _ASBOX
1.15 bertrand 10431: $as_echo "$ac_log"
1.1 bertrand 10432: } >&5
10433:
10434: _ACEOF
1.15 bertrand 10435: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10436: #
10437: # INIT-COMMANDS
10438: #
10439: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10440:
10441: _ACEOF
10442:
1.15 bertrand 10443: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10444:
10445: # Handling of arguments.
10446: for ac_config_target in $ac_config_targets
10447: do
10448: case $ac_config_target in
10449: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10450: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10451: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10452: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10453: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10454: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10455: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10456: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10457: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10458: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10459: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10460: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10461: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10462: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10463: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 10464: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55 bertrand 10465: "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39 bertrand 10466: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1 bertrand 10467: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10468: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10469: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10470: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10471: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10472: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10473: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10474: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10475: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10476: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10477: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10478: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10479:
1.57 bertrand 10480: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 bertrand 10481: esac
10482: done
10483:
10484:
10485: # If the user did not use the arguments to specify the items to instantiate,
10486: # then the envvar interface is used. Set only those that are not.
10487: # We use the long form for the default assignment because of an extremely
10488: # bizarre bug on SunOS 4.1.3.
10489: if $ac_need_defaults; then
10490: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10491: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10492: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10493: fi
10494:
10495: # Have a temporary directory for convenience. Make it in the build tree
10496: # simply because there is no reason against having it here, and in addition,
10497: # creating and moving files from /tmp can sometimes cause problems.
10498: # Hook for its removal unless debugging.
10499: # Note that there is a small window in which the directory will not be cleaned:
10500: # after its creation but before its name has been assigned to `$tmp'.
10501: $debug ||
10502: {
1.57 bertrand 10503: tmp= ac_tmp=
1.1 bertrand 10504: trap 'exit_status=$?
1.57 bertrand 10505: : "${ac_tmp:=$tmp}"
10506: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 bertrand 10507: ' 0
1.15 bertrand 10508: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 10509: }
10510: # Create a (secure) tmp directory for tmp files.
10511:
10512: {
10513: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57 bertrand 10514: test -d "$tmp"
1.1 bertrand 10515: } ||
10516: {
10517: tmp=./conf$$-$RANDOM
10518: (umask 077 && mkdir "$tmp")
1.36 bertrand 10519: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57 bertrand 10520: ac_tmp=$tmp
1.15 bertrand 10521:
10522: # Set up the scripts for CONFIG_FILES section.
10523: # No need to generate them if there are no CONFIG_FILES.
10524: # This happens for instance with `./config.status config.h'.
10525: if test -n "$CONFIG_FILES"; then
1.14 bertrand 10526:
1.1 bertrand 10527:
1.15 bertrand 10528: ac_cr=`echo X | tr X '\015'`
10529: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10530: # But we know of no other shell where ac_cr would be empty at this
10531: # point, so we can use a bashism as a fallback.
10532: if test "x$ac_cr" = x; then
10533: eval ac_cr=\$\'\\r\'
10534: fi
10535: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10536: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36 bertrand 10537: ac_cs_awk_cr='\\r'
1.15 bertrand 10538: else
10539: ac_cs_awk_cr=$ac_cr
10540: fi
1.1 bertrand 10541:
1.57 bertrand 10542: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14 bertrand 10543: _ACEOF
10544:
10545:
1.15 bertrand 10546: {
10547: echo "cat >conf$$subs.awk <<_ACEOF" &&
10548: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10549: echo "_ACEOF"
10550: } >conf$$subs.sh ||
1.36 bertrand 10551: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10552: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14 bertrand 10553: ac_delim='%!_!# '
10554: for ac_last_try in false false false false false :; do
1.15 bertrand 10555: . ./conf$$subs.sh ||
1.36 bertrand 10556: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10557:
1.15 bertrand 10558: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10559: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 10560: break
10561: elif $ac_last_try; then
1.36 bertrand 10562: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10563: else
10564: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10565: fi
10566: done
1.15 bertrand 10567: rm -f conf$$subs.sh
1.1 bertrand 10568:
1.15 bertrand 10569: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57 bertrand 10570: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15 bertrand 10571: _ACEOF
10572: sed -n '
10573: h
10574: s/^/S["/; s/!.*/"]=/
10575: p
10576: g
10577: s/^[^!]*!//
10578: :repl
10579: t repl
10580: s/'"$ac_delim"'$//
10581: t delim
10582: :nl
10583: h
10584: s/\(.\{148\}\)..*/\1/
10585: t more1
10586: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10587: p
10588: n
10589: b repl
10590: :more1
10591: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10592: p
10593: g
10594: s/.\{148\}//
10595: t nl
10596: :delim
10597: h
10598: s/\(.\{148\}\)..*/\1/
10599: t more2
10600: s/["\\]/\\&/g; s/^/"/; s/$/"/
10601: p
10602: b
10603: :more2
10604: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10605: p
10606: g
10607: s/.\{148\}//
10608: t delim
10609: ' <conf$$subs.awk | sed '
10610: /^[^""]/{
10611: N
10612: s/\n//
10613: }
10614: ' >>$CONFIG_STATUS || ac_write_fail=1
10615: rm -f conf$$subs.awk
10616: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10617: _ACAWK
1.57 bertrand 10618: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15 bertrand 10619: for (key in S) S_is_set[key] = 1
10620: FS = ""
1.1 bertrand 10621:
1.15 bertrand 10622: }
10623: {
10624: line = $ 0
10625: nfields = split(line, field, "@")
10626: substed = 0
10627: len = length(field[1])
10628: for (i = 2; i < nfields; i++) {
10629: key = field[i]
10630: keylen = length(key)
10631: if (S_is_set[key]) {
10632: value = S[key]
10633: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10634: len += length(value) + length(field[++i])
10635: substed = 1
10636: } else
10637: len += 1 + keylen
10638: }
1.1 bertrand 10639:
1.15 bertrand 10640: print line
10641: }
1.1 bertrand 10642:
1.15 bertrand 10643: _ACAWK
1.14 bertrand 10644: _ACEOF
1.15 bertrand 10645: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10646: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10647: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10648: else
10649: cat
1.57 bertrand 10650: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36 bertrand 10651: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10652: _ACEOF
10653:
1.36 bertrand 10654: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10655: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 bertrand 10656: # trailing colons and then remove the whole line if VPATH becomes empty
10657: # (actually we leave an empty line to preserve line numbers).
10658: if test "x$srcdir" = x.; then
1.36 bertrand 10659: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10660: h
10661: s///
10662: s/^/:/
10663: s/[ ]*$/:/
10664: s/:\$(srcdir):/:/g
10665: s/:\${srcdir}:/:/g
10666: s/:@srcdir@:/:/g
10667: s/^:*//
1.1 bertrand 10668: s/:*$//
1.36 bertrand 10669: x
10670: s/\(=[ ]*\).*/\1/
10671: G
10672: s/\n//
1.1 bertrand 10673: s/^[^=]*=[ ]*$//
10674: }'
10675: fi
10676:
1.15 bertrand 10677: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10678: fi # test -n "$CONFIG_FILES"
10679:
1.15 bertrand 10680: # Set up the scripts for CONFIG_HEADERS section.
10681: # No need to generate them if there are no CONFIG_HEADERS.
10682: # This happens for instance with `./config.status Makefile'.
10683: if test -n "$CONFIG_HEADERS"; then
1.57 bertrand 10684: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15 bertrand 10685: BEGIN {
10686: _ACEOF
10687:
10688: # Transform confdefs.h into an awk script `defines.awk', embedded as
10689: # here-document in config.status, that substitutes the proper values into
10690: # config.h.in to produce config.h.
10691:
10692: # Create a delimiter string that does not exist in confdefs.h, to ease
10693: # handling of long lines.
10694: ac_delim='%!_!# '
10695: for ac_last_try in false false :; do
1.57 bertrand 10696: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10697: if test -z "$ac_tt"; then
1.15 bertrand 10698: break
10699: elif $ac_last_try; then
1.36 bertrand 10700: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15 bertrand 10701: else
10702: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10703: fi
10704: done
10705:
10706: # For the awk script, D is an array of macro values keyed by name,
10707: # likewise P contains macro parameters if any. Preserve backslash
10708: # newline sequences.
10709:
10710: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10711: sed -n '
10712: s/.\{148\}/&'"$ac_delim"'/g
10713: t rset
10714: :rset
10715: s/^[ ]*#[ ]*define[ ][ ]*/ /
10716: t def
10717: d
10718: :def
10719: s/\\$//
10720: t bsnl
10721: s/["\\]/\\&/g
10722: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10723: D["\1"]=" \3"/p
10724: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10725: d
10726: :bsnl
10727: s/["\\]/\\&/g
10728: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10729: D["\1"]=" \3\\\\\\n"\\/p
10730: t cont
10731: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10732: t cont
10733: d
10734: :cont
10735: n
10736: s/.\{148\}/&'"$ac_delim"'/g
10737: t clear
10738: :clear
10739: s/\\$//
10740: t bsnlc
10741: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10742: d
10743: :bsnlc
10744: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10745: b cont
10746: ' <confdefs.h | sed '
10747: s/'"$ac_delim"'/"\\\
10748: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10749:
10750: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10751: for (key in D) D_is_set[key] = 1
10752: FS = ""
10753: }
10754: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10755: line = \$ 0
10756: split(line, arg, " ")
10757: if (arg[1] == "#") {
10758: defundef = arg[2]
10759: mac1 = arg[3]
10760: } else {
10761: defundef = substr(arg[1], 2)
10762: mac1 = arg[2]
10763: }
10764: split(mac1, mac2, "(") #)
10765: macro = mac2[1]
10766: prefix = substr(line, 1, index(line, defundef) - 1)
10767: if (D_is_set[macro]) {
10768: # Preserve the white space surrounding the "#".
10769: print prefix "define", macro P[macro] D[macro]
10770: next
10771: } else {
10772: # Replace #undef with comments. This is necessary, for example,
10773: # in the case of _POSIX_SOURCE, which is predefined and required
10774: # on some systems where configure will not decide to define it.
10775: if (defundef == "undef") {
10776: print "/*", prefix defundef, macro, "*/"
10777: next
10778: }
10779: }
10780: }
10781: { print }
10782: _ACAWK
10783: _ACEOF
10784: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36 bertrand 10785: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15 bertrand 10786: fi # test -n "$CONFIG_HEADERS"
10787:
1.1 bertrand 10788:
1.15 bertrand 10789: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10790: shift
10791: for ac_tag
1.1 bertrand 10792: do
10793: case $ac_tag in
10794: :[FHLC]) ac_mode=$ac_tag; continue;;
10795: esac
10796: case $ac_mode$ac_tag in
10797: :[FHL]*:*);;
1.57 bertrand 10798: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 bertrand 10799: :[FH]-) ac_tag=-:-;;
10800: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10801: esac
10802: ac_save_IFS=$IFS
10803: IFS=:
10804: set x $ac_tag
10805: IFS=$ac_save_IFS
10806: shift
10807: ac_file=$1
10808: shift
10809:
10810: case $ac_mode in
10811: :L) ac_source=$1;;
10812: :[FH])
10813: ac_file_inputs=
10814: for ac_f
10815: do
10816: case $ac_f in
1.57 bertrand 10817: -) ac_f="$ac_tmp/stdin";;
1.1 bertrand 10818: *) # Look for the file first in the build tree, then in the source tree
10819: # (if the path is not absolute). The absolute path cannot be DOS-style,
10820: # because $ac_f cannot contain `:'.
10821: test -f "$ac_f" ||
10822: case $ac_f in
10823: [\\/$]*) false;;
10824: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10825: esac ||
1.57 bertrand 10826: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 bertrand 10827: esac
1.15 bertrand 10828: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10829: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10830: done
10831:
10832: # Let's still pretend it is `configure' which instantiates (i.e., don't
10833: # use $as_me), people would be surprised to read:
10834: # /* config.h. Generated by config.status. */
1.15 bertrand 10835: configure_input='Generated from '`
10836: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10837: `' by configure.'
1.1 bertrand 10838: if test x"$ac_file" != x-; then
10839: configure_input="$ac_file. $configure_input"
1.15 bertrand 10840: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10841: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10842: fi
1.15 bertrand 10843: # Neutralize special characters interpreted by sed in replacement strings.
10844: case $configure_input in #(
10845: *\&* | *\|* | *\\* )
10846: ac_sed_conf_input=`$as_echo "$configure_input" |
10847: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10848: *) ac_sed_conf_input=$configure_input;;
10849: esac
1.1 bertrand 10850:
10851: case $ac_tag in
1.57 bertrand 10852: *:-:* | *:-) cat >"$ac_tmp/stdin" \
10853: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10854: esac
10855: ;;
10856: esac
10857:
10858: ac_dir=`$as_dirname -- "$ac_file" ||
10859: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10860: X"$ac_file" : 'X\(//\)[^/]' \| \
10861: X"$ac_file" : 'X\(//\)$' \| \
10862: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10863: $as_echo X"$ac_file" |
1.1 bertrand 10864: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10865: s//\1/
10866: q
10867: }
10868: /^X\(\/\/\)[^/].*/{
10869: s//\1/
10870: q
10871: }
10872: /^X\(\/\/\)$/{
10873: s//\1/
10874: q
10875: }
10876: /^X\(\/\).*/{
10877: s//\1/
10878: q
10879: }
10880: s/.*/./; q'`
1.15 bertrand 10881: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10882: ac_builddir=.
10883:
10884: case "$ac_dir" in
10885: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10886: *)
1.15 bertrand 10887: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10888: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10889: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10890: case $ac_top_builddir_sub in
10891: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10892: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10893: esac ;;
10894: esac
10895: ac_abs_top_builddir=$ac_pwd
10896: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10897: # for backward compatibility:
10898: ac_top_builddir=$ac_top_build_prefix
10899:
10900: case $srcdir in
10901: .) # We are building in place.
10902: ac_srcdir=.
10903: ac_top_srcdir=$ac_top_builddir_sub
10904: ac_abs_top_srcdir=$ac_pwd ;;
10905: [\\/]* | ?:[\\/]* ) # Absolute name.
10906: ac_srcdir=$srcdir$ac_dir_suffix;
10907: ac_top_srcdir=$srcdir
10908: ac_abs_top_srcdir=$srcdir ;;
10909: *) # Relative name.
10910: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10911: ac_top_srcdir=$ac_top_build_prefix$srcdir
10912: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10913: esac
10914: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10915:
10916:
10917: case $ac_mode in
10918: :F)
10919: #
10920: # CONFIG_FILE
10921: #
10922:
10923: case $INSTALL in
10924: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10925: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10926: esac
10927: ac_MKDIR_P=$MKDIR_P
10928: case $MKDIR_P in
10929: [\\/$]* | ?:[\\/]* ) ;;
10930: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10931: esac
10932: _ACEOF
10933:
1.15 bertrand 10934: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10935: # If the template does not know about datarootdir, expand it.
10936: # FIXME: This hack should be removed a few years after 2.60.
10937: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10938: ac_sed_dataroot='
10939: /datarootdir/ {
1.1 bertrand 10940: p
10941: q
10942: }
10943: /@datadir@/p
10944: /@docdir@/p
10945: /@infodir@/p
10946: /@localedir@/p
1.15 bertrand 10947: /@mandir@/p'
10948: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10949: *datarootdir*) ac_datarootdir_seen=yes;;
10950: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10951: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10952: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10953: _ACEOF
1.15 bertrand 10954: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10955: ac_datarootdir_hack='
10956: s&@datadir@&$datadir&g
10957: s&@docdir@&$docdir&g
10958: s&@infodir@&$infodir&g
10959: s&@localedir@&$localedir&g
10960: s&@mandir@&$mandir&g
1.15 bertrand 10961: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10962: esac
10963: _ACEOF
10964:
10965: # Neutralize VPATH when `$srcdir' = `.'.
10966: # Shell code in configure.ac might set extrasub.
10967: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10968: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10969: ac_sed_extra="$ac_vpsub
1.1 bertrand 10970: $extrasub
10971: _ACEOF
1.15 bertrand 10972: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10973: :t
10974: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10975: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10976: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10977: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10978: s&@srcdir@&$ac_srcdir&;t t
10979: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10980: s&@top_srcdir@&$ac_top_srcdir&;t t
10981: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10982: s&@builddir@&$ac_builddir&;t t
10983: s&@abs_builddir@&$ac_abs_builddir&;t t
10984: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10985: s&@INSTALL@&$ac_INSTALL&;t t
10986: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10987: $ac_datarootdir_hack
1.15 bertrand 10988: "
1.57 bertrand 10989: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10990: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10991:
10992: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57 bertrand 10993: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10994: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10995: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10996: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10997: which seems to be undefined. Please make sure it is defined" >&5
1.15 bertrand 10998: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10999: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 bertrand 11000:
1.57 bertrand 11001: rm -f "$ac_tmp/stdin"
1.1 bertrand 11002: case $ac_file in
1.57 bertrand 11003: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11004: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15 bertrand 11005: esac \
1.36 bertrand 11006: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 11007: ;;
11008: :H)
11009: #
11010: # CONFIG_HEADER
11011: #
11012: if test x"$ac_file" != x-; then
1.15 bertrand 11013: {
11014: $as_echo "/* $configure_input */" \
1.57 bertrand 11015: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11016: } >"$ac_tmp/config.h" \
1.36 bertrand 11017: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57 bertrand 11018: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15 bertrand 11019: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11020: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 11021: else
1.15 bertrand 11022: rm -f "$ac_file"
1.57 bertrand 11023: mv "$ac_tmp/config.h" "$ac_file" \
1.36 bertrand 11024: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 11025: fi
11026: else
1.15 bertrand 11027: $as_echo "/* $configure_input */" \
1.57 bertrand 11028: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36 bertrand 11029: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 bertrand 11030: fi
1.15 bertrand 11031: # Compute "$ac_file"'s index in $config_headers.
11032: _am_arg="$ac_file"
1.1 bertrand 11033: _am_stamp_count=1
11034: for _am_header in $config_headers :; do
11035: case $_am_header in
11036: $_am_arg | $_am_arg:* )
11037: break ;;
11038: * )
11039: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11040: esac
11041: done
11042: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11043: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11044: X"$_am_arg" : 'X\(//\)[^/]' \| \
11045: X"$_am_arg" : 'X\(//\)$' \| \
11046: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 11047: $as_echo X"$_am_arg" |
1.1 bertrand 11048: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11049: s//\1/
11050: q
11051: }
11052: /^X\(\/\/\)[^/].*/{
11053: s//\1/
11054: q
11055: }
11056: /^X\(\/\/\)$/{
11057: s//\1/
11058: q
11059: }
11060: /^X\(\/\).*/{
11061: s//\1/
11062: q
11063: }
11064: s/.*/./; q'`/stamp-h$_am_stamp_count
11065: ;;
11066:
1.15 bertrand 11067: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11068: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 11069: ;;
11070: esac
11071:
11072:
11073: case $ac_file$ac_mode in
1.15 bertrand 11074: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11075: # Autoconf 2.62 quotes --file arguments for eval, but not when files
11076: # are listed without --file. Let's play safe and only enable the eval
11077: # if we detect the quoting.
11078: case $CONFIG_FILES in
11079: *\'*) eval set x "$CONFIG_FILES" ;;
11080: *) set x $CONFIG_FILES ;;
11081: esac
11082: shift
11083: for mf
11084: do
11085: # Strip MF so we end up with the name of the file.
11086: mf=`echo "$mf" | sed -e 's/:.*$//'`
11087: # Check whether this is an Automake generated Makefile or not.
11088: # We used to match only the files named `Makefile.in', but
11089: # some people rename them; so instead we look at the file content.
11090: # Grep'ing the first line is not enough: some people post-process
11091: # each Makefile.in and add a new line on top of each file to say so.
11092: # Grep'ing the whole file is not good either: AIX grep has a line
11093: # limit of 2048, but all sed's we know have understand at least 4000.
11094: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11095: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 11096: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11097: X"$mf" : 'X\(//\)[^/]' \| \
11098: X"$mf" : 'X\(//\)$' \| \
11099: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 11100: $as_echo X"$mf" |
1.1 bertrand 11101: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11102: s//\1/
11103: q
11104: }
11105: /^X\(\/\/\)[^/].*/{
11106: s//\1/
11107: q
11108: }
11109: /^X\(\/\/\)$/{
11110: s//\1/
11111: q
11112: }
11113: /^X\(\/\).*/{
11114: s//\1/
11115: q
11116: }
11117: s/.*/./; q'`
1.15 bertrand 11118: else
11119: continue
11120: fi
11121: # Extract the definition of DEPDIR, am__include, and am__quote
11122: # from the Makefile without running `make'.
11123: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11124: test -z "$DEPDIR" && continue
11125: am__include=`sed -n 's/^am__include = //p' < "$mf"`
11126: test -z "am__include" && continue
11127: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11128: # When using ansi2knr, U may be empty or an underscore; expand it
11129: U=`sed -n 's/^U = //p' < "$mf"`
11130: # Find all dependency output files, they are included files with
11131: # $(DEPDIR) in their names. We invoke sed twice because it is the
11132: # simplest approach to changing $(DEPDIR) to its actual value in the
11133: # expansion.
11134: for file in `sed -n "
11135: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11136: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11137: # Make sure the directory exists.
11138: test -f "$dirpart/$file" && continue
11139: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 11140: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11141: X"$file" : 'X\(//\)[^/]' \| \
11142: X"$file" : 'X\(//\)$' \| \
11143: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 11144: $as_echo X"$file" |
1.1 bertrand 11145: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11146: s//\1/
11147: q
11148: }
11149: /^X\(\/\/\)[^/].*/{
11150: s//\1/
11151: q
11152: }
11153: /^X\(\/\/\)$/{
11154: s//\1/
11155: q
11156: }
11157: /^X\(\/\).*/{
11158: s//\1/
11159: q
11160: }
11161: s/.*/./; q'`
1.15 bertrand 11162: as_dir=$dirpart/$fdir; as_fn_mkdir_p
11163: # echo "creating $dirpart/$file"
11164: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 11165: done
11166: done
1.15 bertrand 11167: }
1.1 bertrand 11168: ;;
11169:
11170: esac
11171: done # for ac_tag
11172:
11173:
1.15 bertrand 11174: as_fn_exit 0
1.1 bertrand 11175: _ACEOF
11176: ac_clean_files=$ac_clean_files_save
11177:
1.15 bertrand 11178: test $ac_write_fail = 0 ||
1.36 bertrand 11179: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15 bertrand 11180:
1.1 bertrand 11181:
11182: # configure is writing to config.log, and then calls config.status.
11183: # config.status does its own redirection, appending to config.log.
11184: # Unfortunately, on DOS this fails, as config.log is still kept open
11185: # by configure, so config.status won't be able to write to it; its
11186: # output is simply discarded. So we exec the FD to /dev/null,
11187: # effectively closing config.log, so it can be properly (re)opened and
11188: # appended to by config.status. When coming back to configure, we
11189: # need to make the FD available again.
11190: if test "$no_create" != yes; then
11191: ac_cs_success=:
11192: ac_config_status_args=
11193: test "$silent" = yes &&
11194: ac_config_status_args="$ac_config_status_args --quiet"
11195: exec 5>/dev/null
11196: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11197: exec 5>>config.log
11198: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11199: # would make configure fail if this is the last instruction.
1.36 bertrand 11200: $ac_cs_success || as_fn_exit 1
1.1 bertrand 11201: fi
11202:
11203: #
11204: # CONFIG_SUBDIRS section.
11205: #
11206: if test "$no_recursion" != yes; then
11207:
1.15 bertrand 11208: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11209: # so they do not pile up.
1.1 bertrand 11210: ac_sub_configure_args=
11211: ac_prev=
11212: eval "set x $ac_configure_args"
11213: shift
11214: for ac_arg
11215: do
11216: if test -n "$ac_prev"; then
11217: ac_prev=
11218: continue
11219: fi
11220: case $ac_arg in
11221: -cache-file | --cache-file | --cache-fil | --cache-fi \
11222: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11223: ac_prev=cache_file ;;
11224: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11225: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11226: | --c=*)
11227: ;;
11228: --config-cache | -C)
11229: ;;
11230: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11231: ac_prev=srcdir ;;
11232: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11233: ;;
11234: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11235: ac_prev=prefix ;;
11236: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11237: ;;
1.15 bertrand 11238: --disable-option-checking)
11239: ;;
1.1 bertrand 11240: *)
11241: case $ac_arg in
1.15 bertrand 11242: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 11243: esac
1.15 bertrand 11244: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 11245: esac
11246: done
11247:
11248: # Always prepend --prefix to ensure using the same prefix
11249: # in subdir configurations.
11250: ac_arg="--prefix=$prefix"
11251: case $ac_arg in
1.15 bertrand 11252: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 11253: esac
11254: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11255:
11256: # Pass --silent
11257: if test "$silent" = yes; then
11258: ac_sub_configure_args="--silent $ac_sub_configure_args"
11259: fi
11260:
1.15 bertrand 11261: # Always prepend --disable-option-checking to silence warnings, since
11262: # different subdirs can have different --enable and --with options.
11263: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11264:
1.1 bertrand 11265: ac_popdir=`pwd`
11266: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11267:
11268: # Do not complain, so a configure script can configure whichever
11269: # parts of a large source tree are present.
11270: test -d "$srcdir/$ac_dir" || continue
11271:
11272: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 11273: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11274: $as_echo "$ac_msg" >&6
11275: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 11276: ac_builddir=.
11277:
11278: case "$ac_dir" in
11279: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11280: *)
1.15 bertrand 11281: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 11282: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 11283: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 11284: case $ac_top_builddir_sub in
11285: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11286: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11287: esac ;;
11288: esac
11289: ac_abs_top_builddir=$ac_pwd
11290: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11291: # for backward compatibility:
11292: ac_top_builddir=$ac_top_build_prefix
11293:
11294: case $srcdir in
11295: .) # We are building in place.
11296: ac_srcdir=.
11297: ac_top_srcdir=$ac_top_builddir_sub
11298: ac_abs_top_srcdir=$ac_pwd ;;
11299: [\\/]* | ?:[\\/]* ) # Absolute name.
11300: ac_srcdir=$srcdir$ac_dir_suffix;
11301: ac_top_srcdir=$srcdir
11302: ac_abs_top_srcdir=$srcdir ;;
11303: *) # Relative name.
11304: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11305: ac_top_srcdir=$ac_top_build_prefix$srcdir
11306: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11307: esac
11308: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11309:
11310:
11311: cd "$ac_dir"
11312:
11313: # Check for guested configure; otherwise get Cygnus style configure.
11314: if test -f "$ac_srcdir/configure.gnu"; then
11315: ac_sub_configure=$ac_srcdir/configure.gnu
11316: elif test -f "$ac_srcdir/configure"; then
11317: ac_sub_configure=$ac_srcdir/configure
11318: elif test -f "$ac_srcdir/configure.in"; then
11319: # This should be Cygnus configure.
11320: ac_sub_configure=$ac_aux_dir/configure
11321: else
1.15 bertrand 11322: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11323: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 11324: ac_sub_configure=
11325: fi
11326:
11327: # The recursion is here.
11328: if test -n "$ac_sub_configure"; then
11329: # Make the cache file name correct relative to the subdirectory.
11330: case $cache_file in
11331: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11332: *) # Relative name.
11333: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11334: esac
11335:
1.15 bertrand 11336: { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11337: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 bertrand 11338: # The eval makes quoting arguments work.
11339: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11340: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36 bertrand 11341: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 11342: fi
11343:
11344: cd "$ac_popdir"
11345: done
11346: fi
1.15 bertrand 11347: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11348: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11349: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11350: fi
1.1 bertrand 11351:
CVSweb interface <joel.bertrand@systella.fr>