Annotation of rpl/configure, revision 1.40
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.38 bertrand 3: # Generated by GNU Autoconf 2.67 for rpl 4.0.19.
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.15 bertrand 92: case $0 in #((
1.1 bertrand 93: *[\\/]* ) as_myself=$0 ;;
94: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95: for as_dir in $PATH
96: do
97: IFS=$as_save_IFS
98: test -z "$as_dir" && as_dir=.
1.15 bertrand 99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100: done
1.1 bertrand 101: IFS=$as_save_IFS
102:
103: ;;
104: esac
105: # We did not find ourselves, most probably we were run as `sh COMMAND'
106: # in which case we are not to be found in the path.
107: if test "x$as_myself" = x; then
108: as_myself=$0
109: fi
110: if test ! -f "$as_myself"; then
1.15 bertrand 111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112: exit 1
1.1 bertrand 113: fi
114:
1.15 bertrand 115: # Unset variables that we do not need and which cause bugs (e.g. in
116: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117: # suppresses any "Segmentation fault" message there. '((' could
118: # trigger a bug in pdksh 5.2.14.
119: for as_var in BASH_ENV ENV MAIL MAILPATH
120: do eval test x\${$as_var+set} = xset \
121: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 122: done
123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
1.15 bertrand 128: LC_ALL=C
129: export LC_ALL
130: LANGUAGE=C
131: export LANGUAGE
1.1 bertrand 132:
133: # CDPATH.
1.15 bertrand 134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 bertrand 135:
136: if test "x$CONFIG_SHELL" = x; then
1.15 bertrand 137: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138: emulate sh
139: NULLCMD=:
140: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141: # is contrary to our usage. Disable this feature.
142: alias -g '\${1+\"\$@\"}'='\"\$@\"'
143: setopt NO_GLOB_SUBST
1.1 bertrand 144: else
1.15 bertrand 145: case \`(set -o) 2>/dev/null\` in #(
146: *posix*) :
147: set -o posix ;; #(
148: *) :
149: ;;
150: esac
1.1 bertrand 151: fi
1.15 bertrand 152: "
153: as_required="as_fn_return () { (exit \$1); }
154: as_fn_success () { as_fn_return 0; }
155: as_fn_failure () { as_fn_return 1; }
156: as_fn_ret_success () { return 0; }
157: as_fn_ret_failure () { return 1; }
1.1 bertrand 158:
159: exitcode=0
1.15 bertrand 160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165:
166: else
167: exitcode=1; echo positional parameters were not saved.
168: fi
169: test x\$exitcode = x0 || exit 1"
170: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174: test \$(( 1 + 1 )) = 2 || exit 1"
175: if (eval "$as_required") 2>/dev/null; then :
176: as_have_required=yes
1.14 bertrand 177: else
1.15 bertrand 178: as_have_required=no
1.14 bertrand 179: fi
1.15 bertrand 180: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14 bertrand 181:
182: else
1.15 bertrand 183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184: as_found=false
1.1 bertrand 185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186: do
187: IFS=$as_save_IFS
188: test -z "$as_dir" && as_dir=.
1.15 bertrand 189: as_found=:
190: case $as_dir in #(
1.1 bertrand 191: /*)
192: for as_base in sh bash ksh sh5; do
1.15 bertrand 193: # Try only shells that exist, to save several forks.
194: as_shell=$as_dir/$as_base
195: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197: CONFIG_SHELL=$as_shell as_have_required=yes
198: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199: break 2
200: fi
201: fi
1.1 bertrand 202: done;;
203: esac
1.15 bertrand 204: as_found=false
1.1 bertrand 205: done
1.15 bertrand 206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208: CONFIG_SHELL=$SHELL as_have_required=yes
209: fi; }
1.1 bertrand 210: IFS=$as_save_IFS
211:
212:
1.15 bertrand 213: if test "x$CONFIG_SHELL" != x; then :
214: # We cannot yet assume a decent shell, so we have to provide a
215: # neutralization value for shells without unset; and this also
216: # works around shells that cannot unset nonexistent variables.
217: BASH_ENV=/dev/null
218: ENV=/dev/null
219: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220: export CONFIG_SHELL
221: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222: fi
223:
224: if test x$as_have_required = xno; then :
225: $as_echo "$0: This script requires a shell more modern than all"
226: $as_echo "$0: the shells that I found on your system."
227: if test x${ZSH_VERSION+set} = xset ; then
228: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230: else
231: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232: $0: including any error possibly output before this
233: $0: message. Then install a modern shell, or manually run
234: $0: the script under such a shell if you do have one."
235: fi
236: exit 1
237: fi
1.1 bertrand 238: fi
239: fi
1.15 bertrand 240: SHELL=${CONFIG_SHELL-/bin/sh}
241: export SHELL
242: # Unset more variables known to interfere with behavior of common tools.
243: CLICOLOR_FORCE= GREP_OPTIONS=
244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14 bertrand 245:
1.15 bertrand 246: ## --------------------- ##
247: ## M4sh Shell Functions. ##
248: ## --------------------- ##
249: # as_fn_unset VAR
250: # ---------------
251: # Portably unset VAR.
252: as_fn_unset ()
253: {
254: { eval $1=; unset $1;}
255: }
256: as_unset=as_fn_unset
257:
258: # as_fn_set_status STATUS
259: # -----------------------
260: # Set $? to STATUS, without forking.
261: as_fn_set_status ()
262: {
263: return $1
264: } # as_fn_set_status
265:
266: # as_fn_exit STATUS
267: # -----------------
268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269: as_fn_exit ()
270: {
271: set +e
272: as_fn_set_status $1
273: exit $1
274: } # as_fn_exit
275:
276: # as_fn_mkdir_p
277: # -------------
278: # Create "$as_dir" as a directory, including parents if necessary.
279: as_fn_mkdir_p ()
280: {
1.14 bertrand 281:
1.15 bertrand 282: case $as_dir in #(
283: -*) as_dir=./$as_dir;;
284: esac
285: test -d "$as_dir" || eval $as_mkdir_p || {
286: as_dirs=
287: while :; do
288: case $as_dir in #(
289: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290: *) as_qdir=$as_dir;;
291: esac
292: as_dirs="'$as_qdir' $as_dirs"
293: as_dir=`$as_dirname -- "$as_dir" ||
294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295: X"$as_dir" : 'X\(//\)[^/]' \| \
296: X"$as_dir" : 'X\(//\)$' \| \
297: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298: $as_echo X"$as_dir" |
299: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300: s//\1/
301: q
302: }
303: /^X\(\/\/\)[^/].*/{
304: s//\1/
305: q
306: }
307: /^X\(\/\/\)$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\).*/{
312: s//\1/
313: q
314: }
315: s/.*/./; q'`
316: test -d "$as_dir" && break
317: done
318: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 319: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 bertrand 320:
321:
1.15 bertrand 322: } # as_fn_mkdir_p
323: # as_fn_append VAR VALUE
324: # ----------------------
325: # Append the text in VALUE to the end of the definition contained in VAR. Take
326: # advantage of any shell optimizations that allow amortized linear growth over
327: # repeated appends, instead of the typical quadratic growth present in naive
328: # implementations.
329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330: eval 'as_fn_append ()
331: {
332: eval $1+=\$2
333: }'
1.14 bertrand 334: else
1.15 bertrand 335: as_fn_append ()
336: {
337: eval $1=\$$1\$2
338: }
339: fi # as_fn_append
1.1 bertrand 340:
1.15 bertrand 341: # as_fn_arith ARG...
342: # ------------------
343: # Perform arithmetic evaluation on the ARGs, and store the result in the
344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
345: # must be portable across $(()) and expr.
346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347: eval 'as_fn_arith ()
348: {
349: as_val=$(( $* ))
350: }'
1.1 bertrand 351: else
1.15 bertrand 352: as_fn_arith ()
353: {
354: as_val=`expr "$@" || test $? -eq 1`
355: }
356: fi # as_fn_arith
1.14 bertrand 357:
358:
1.36 bertrand 359: # as_fn_error STATUS ERROR [LINENO LOG_FD]
360: # ----------------------------------------
1.15 bertrand 361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 363: # script with STATUS, using 1 if that was 0.
1.15 bertrand 364: as_fn_error ()
365: {
1.36 bertrand 366: as_status=$1; test $as_status -eq 0 && as_status=1
367: if test "$4"; then
368: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 370: fi
1.36 bertrand 371: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 372: as_fn_exit $as_status
373: } # as_fn_error
1.14 bertrand 374:
1.15 bertrand 375: if expr a : '\(a\)' >/dev/null 2>&1 &&
376: test "X`expr 00001 : '.*\(...\)'`" = X001; then
377: as_expr=expr
1.1 bertrand 378: else
1.15 bertrand 379: as_expr=false
1.14 bertrand 380: fi
381:
1.15 bertrand 382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383: as_basename=basename
1.1 bertrand 384: else
1.15 bertrand 385: as_basename=false
1.14 bertrand 386: fi
387:
1.15 bertrand 388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389: as_dirname=dirname
1.1 bertrand 390: else
1.15 bertrand 391: as_dirname=false
1.1 bertrand 392: fi
393:
1.15 bertrand 394: as_me=`$as_basename -- "$0" ||
395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396: X"$0" : 'X\(//\)$' \| \
397: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398: $as_echo X/"$0" |
399: sed '/^.*\/\([^/][^/]*\)\/*$/{
400: s//\1/
401: q
402: }
403: /^X\/\(\/\/\)$/{
404: s//\1/
405: q
406: }
407: /^X\/\(\/\).*/{
408: s//\1/
409: q
410: }
411: s/.*/./; q'`
1.1 bertrand 412:
1.15 bertrand 413: # Avoid depending upon Character Ranges.
414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417: as_cr_digits='0123456789'
418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 419:
420:
1.15 bertrand 421: as_lineno_1=$LINENO as_lineno_1a=$LINENO
422: as_lineno_2=$LINENO as_lineno_2a=$LINENO
423: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.1 bertrand 426: sed -n '
427: p
428: /[$]LINENO/=
429: ' <$as_myself |
430: sed '
431: s/[$]LINENO.*/&-/
432: t lineno
433: b
434: :lineno
435: N
436: :loop
437: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438: t loop
439: s/-\n.*//
440: ' >$as_me.lineno &&
441: chmod +x "$as_me.lineno" ||
1.15 bertrand 442: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 bertrand 443:
444: # Don't try to exec as it changes $[0], causing all sort of problems
445: # (the dirname of $[0] is not the place where we might find the
446: # original and so on. Autoconf is especially sensitive to this).
447: . "./$as_me.lineno"
448: # Exit status is that of the last command.
449: exit
450: }
451:
1.15 bertrand 452: ECHO_C= ECHO_N= ECHO_T=
453: case `echo -n x` in #(((((
454: -n*)
455: case `echo 'xy\c'` in
1.1 bertrand 456: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 457: xy) ECHO_C='\c';;
458: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459: ECHO_T=' ';;
1.1 bertrand 460: esac;;
461: *)
462: ECHO_N='-n';;
463: esac
464:
465: rm -f conf$$ conf$$.exe conf$$.file
466: if test -d conf$$.dir; then
467: rm -f conf$$.dir/conf$$.file
468: else
469: rm -f conf$$.dir
1.15 bertrand 470: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 471: fi
1.15 bertrand 472: if (echo >conf$$.file) 2>/dev/null; then
473: if ln -s conf$$.file conf$$ 2>/dev/null; then
474: as_ln_s='ln -s'
475: # ... but there are two gotchas:
476: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478: # In both cases, we have to default to `cp -p'.
479: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480: as_ln_s='cp -p'
481: elif ln conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s=ln
483: else
1.1 bertrand 484: as_ln_s='cp -p'
1.15 bertrand 485: fi
1.1 bertrand 486: else
487: as_ln_s='cp -p'
488: fi
489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490: rmdir conf$$.dir 2>/dev/null
491:
492: if mkdir -p . 2>/dev/null; then
1.15 bertrand 493: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 494: else
495: test -d ./-p && rmdir ./-p
496: as_mkdir_p=false
497: fi
498:
499: if test -x / >/dev/null 2>&1; then
500: as_test_x='test -x'
501: else
502: if ls -dL / >/dev/null 2>&1; then
503: as_ls_L_option=L
504: else
505: as_ls_L_option=
506: fi
507: as_test_x='
508: eval sh -c '\''
509: if test -d "$1"; then
1.15 bertrand 510: test -d "$1/.";
1.1 bertrand 511: else
1.15 bertrand 512: case $1 in #(
513: -*)set "./$1";;
1.1 bertrand 514: esac;
1.15 bertrand 515: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 516: ???[sx]*):;;*)false;;esac;fi
517: '\'' sh
518: '
519: fi
520: as_executable_p=$as_test_x
521:
522: # Sed expression to map a string onto a valid CPP name.
523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524:
525: # Sed expression to map a string onto a valid variable name.
526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527:
528:
1.15 bertrand 529: test -n "$DJDIR" || exec 7<&0 </dev/null
530: exec 6>&1
1.1 bertrand 531:
532: # Name of the host.
1.36 bertrand 533: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 bertrand 534: # so uname gets run too.
535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536:
537: #
538: # Initializations.
539: #
540: ac_default_prefix=/usr/local
541: ac_clean_files=
542: ac_config_libobj_dir=.
543: LIBOBJS=
544: cross_compiling=no
545: subdirs=
546: MFLAGS=
547: MAKEFLAGS=
548:
549: # Identity of this package.
550: PACKAGE_NAME='rpl'
551: PACKAGE_TARNAME='rpl'
1.38 bertrand 552: PACKAGE_VERSION='4.0.19'
553: PACKAGE_STRING='rpl 4.0.19'
1.1 bertrand 554: PACKAGE_BUGREPORT=''
1.15 bertrand 555: PACKAGE_URL=''
1.1 bertrand 556:
557: ac_default_prefix=/usr/local
558: # Factoring default headers for most tests.
559: ac_includes_default="\
560: #include <stdio.h>
561: #ifdef HAVE_SYS_TYPES_H
562: # include <sys/types.h>
563: #endif
564: #ifdef HAVE_SYS_STAT_H
565: # include <sys/stat.h>
566: #endif
567: #ifdef STDC_HEADERS
568: # include <stdlib.h>
569: # include <stddef.h>
570: #else
571: # ifdef HAVE_STDLIB_H
572: # include <stdlib.h>
573: # endif
574: #endif
575: #ifdef HAVE_STRING_H
576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577: # include <memory.h>
578: # endif
579: # include <string.h>
580: #endif
581: #ifdef HAVE_STRINGS_H
582: # include <strings.h>
583: #endif
584: #ifdef HAVE_INTTYPES_H
585: # include <inttypes.h>
586: #endif
587: #ifdef HAVE_STDINT_H
588: # include <stdint.h>
589: #endif
590: #ifdef HAVE_UNISTD_H
591: # include <unistd.h>
592: #endif"
593:
1.15 bertrand 594: enable_option_checking=no
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
1.30 bertrand 599: EXT_SQL
1.24 bertrand 600: MALLOC
1.15 bertrand 601: DATE_FR
602: FINAL_ENCODING
603: OPENSSL
604: SQLITE
605: ICONV
606: FILE
607: GNUPLOT
608: GPP
609: GSL
610: UNITS
611: READLINE
612: NCURSES
1.40 ! bertrand 613: BSH_PATH
1.35 bertrand 614: BROKEN_SIGINFO
1.34 bertrand 615: IPV6
1.33 bertrand 616: SEMUN
1.36 bertrand 617: IPCS_SYSV
1.17 bertrand 618: SEMAPHORES_NOMMES
619: NESTED_FUNCTIONS
620: EXPORT_DYNAMIC
1.33 bertrand 621: C_STANDARD
1.15 bertrand 622: OS
623: GNUPLOT_COMPILATION
624: subdirs
625: EGREP
626: GREP
627: libPgSQLlib
628: libPgSQLinc
629: POSTGRESQL_SUPPORT
630: libMySQLlib
631: libMySQLinc
632: MYSQL_SUPPORT
633: DATE
634: includeX
635: libX
636: MOTIF_SUPPORT
637: DEBUG
638: EXPERIMENTAL_CODE
639: VIM_SUPPORT
640: POSTSCRIPT_SUPPORT
641: FORCE_GNUPLOT_PATH
642: GNUPLOT_SUPPORT
643: VIM
644: GNUPLOT_P
645: GV
646: GS
647: DVIPS
648: LATEX
649: TEX
650: SED
651: RANLIB
652: LN_S
653: RUNPATH
654: PROFILAGE
655: X_EXTRA_LIBS
656: X_LIBS
657: X_PRE_LIBS
658: X_CFLAGS
659: CPP
660: XMKMF
661: ac_ct_FC
662: FCFLAGS
663: FC
664: ac_ct_F77
665: FFLAGS
666: F77
667: am__fastdepCXX_FALSE
668: am__fastdepCXX_TRUE
669: CXXDEPMODE
670: ac_ct_CXX
671: CXXFLAGS
672: CXX
673: am__fastdepCC_FALSE
674: am__fastdepCC_TRUE
675: CCDEPMODE
676: AMDEPBACKSLASH
677: AMDEP_FALSE
678: AMDEP_TRUE
679: am__quote
680: am__include
681: DEPDIR
682: OBJEXT
683: EXEEXT
684: ac_ct_CC
685: CPPFLAGS
686: LDFLAGS
687: CFLAGS
688: CC
689: am__untar
690: am__tar
691: AMTAR
692: am__leading_dot
693: SET_MAKE
694: AWK
695: mkdir_p
696: MKDIR_P
697: INSTALL_STRIP_PROGRAM
698: STRIP
699: install_sh
700: MAKEINFO
701: AUTOHEADER
702: AUTOMAKE
703: AUTOCONF
704: ACLOCAL
705: VERSION
706: PACKAGE
707: CYGPATH_W
708: am__isrc
709: INSTALL_DATA
710: INSTALL_SCRIPT
711: INSTALL_PROGRAM
712: target_os
713: target_vendor
714: target_cpu
715: target
716: host_os
717: host_vendor
718: host_cpu
719: host
720: build_os
721: build_vendor
722: build_cpu
723: build
724: target_alias
725: host_alias
726: build_alias
727: LIBS
728: ECHO_T
729: ECHO_N
730: ECHO_C
731: DEFS
732: mandir
733: localedir
734: libdir
735: psdir
736: pdfdir
737: dvidir
738: htmldir
739: infodir
740: docdir
741: oldincludedir
742: includedir
743: localstatedir
744: sharedstatedir
745: sysconfdir
746: datadir
747: datarootdir
748: libexecdir
749: sbindir
750: bindir
751: program_transform_name
752: prefix
753: exec_prefix
754: PACKAGE_URL
755: PACKAGE_BUGREPORT
756: PACKAGE_STRING
757: PACKAGE_VERSION
758: PACKAGE_TARNAME
759: PACKAGE_NAME
1.14 bertrand 760: PATH_SEPARATOR
1.15 bertrand 761: SHELL'
762: ac_subst_files=''
763: ac_user_opts='
764: enable_option_checking
765: enable_dependency_tracking
766: with_x
767: enable_optimization
1.36 bertrand 768: enable_sysv_semaphores
1.30 bertrand 769: enable_full_static
1.15 bertrand 770: enable_final_encoding
771: enable_tex
772: enable_vim
773: enable_embedded_gnuplot
774: enable_gnuplot
775: enable_motif
776: enable_experimental
777: enable_debug
778: enable_profile
779: enable_final_run_path
780: with_mysql
781: with_postgresql
1.40 ! bertrand 782: with_bourne_shell
1.15 bertrand 783: with_openssl_arch
784: '
785: ac_precious_vars='build_alias
1.1 bertrand 786: host_alias
787: target_alias
788: CC
789: CFLAGS
790: LDFLAGS
1.15 bertrand 791: LIBS
1.1 bertrand 792: CPPFLAGS
793: CXX
794: CXXFLAGS
1.15 bertrand 795: CCC
1.1 bertrand 796: F77
797: FFLAGS
798: FC
799: FCFLAGS
800: XMKMF
801: CPP'
802: ac_subdirs_all='tools/$NCURSES
803: tools/$READLINE
804: tools/$GSL
805: tools/$GPP
806: tools/$FILE
807: tools/$ICONV
1.9 bertrand 808: tools/$SQLITE
1.17 bertrand 809: tools/$UNITS
1.1 bertrand 810: tools/$GNUPLOT'
811:
812: # Initialize some variables set by options.
813: ac_init_help=
814: ac_init_version=false
1.15 bertrand 815: ac_unrecognized_opts=
816: ac_unrecognized_sep=
1.1 bertrand 817: # The variables have the same names as the options, with
818: # dashes changed to underlines.
819: cache_file=/dev/null
820: exec_prefix=NONE
821: no_create=
822: no_recursion=
823: prefix=NONE
824: program_prefix=NONE
825: program_suffix=NONE
826: program_transform_name=s,x,x,
827: silent=
828: site=
829: srcdir=
830: verbose=
831: x_includes=NONE
832: x_libraries=NONE
833:
834: # Installation directory options.
835: # These are left unexpanded so users can "make install exec_prefix=/foo"
836: # and all the variables that are supposed to be based on exec_prefix
837: # by default will actually change.
838: # Use braces instead of parens because sh, perl, etc. also accept them.
839: # (The list follows the same order as the GNU Coding Standards.)
840: bindir='${exec_prefix}/bin'
841: sbindir='${exec_prefix}/sbin'
842: libexecdir='${exec_prefix}/libexec'
843: datarootdir='${prefix}/share'
844: datadir='${datarootdir}'
845: sysconfdir='${prefix}/etc'
846: sharedstatedir='${prefix}/com'
847: localstatedir='${prefix}/var'
848: includedir='${prefix}/include'
849: oldincludedir='/usr/include'
850: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851: infodir='${datarootdir}/info'
852: htmldir='${docdir}'
853: dvidir='${docdir}'
854: pdfdir='${docdir}'
855: psdir='${docdir}'
856: libdir='${exec_prefix}/lib'
857: localedir='${datarootdir}/locale'
858: mandir='${datarootdir}/man'
859:
860: ac_prev=
861: ac_dashdash=
862: for ac_option
863: do
864: # If the previous option needs an argument, assign it.
865: if test -n "$ac_prev"; then
866: eval $ac_prev=\$ac_option
867: ac_prev=
868: continue
869: fi
870:
871: case $ac_option in
1.36 bertrand 872: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873: *=) ac_optarg= ;;
874: *) ac_optarg=yes ;;
1.1 bertrand 875: esac
876:
877: # Accept the important Cygnus configure options, so we can diagnose typos.
878:
879: case $ac_dashdash$ac_option in
880: --)
881: ac_dashdash=yes ;;
882:
883: -bindir | --bindir | --bindi | --bind | --bin | --bi)
884: ac_prev=bindir ;;
885: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886: bindir=$ac_optarg ;;
887:
888: -build | --build | --buil | --bui | --bu)
889: ac_prev=build_alias ;;
890: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891: build_alias=$ac_optarg ;;
892:
893: -cache-file | --cache-file | --cache-fil | --cache-fi \
894: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895: ac_prev=cache_file ;;
896: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898: cache_file=$ac_optarg ;;
899:
900: --config-cache | -C)
901: cache_file=config.cache ;;
902:
903: -datadir | --datadir | --datadi | --datad)
904: ac_prev=datadir ;;
905: -datadir=* | --datadir=* | --datadi=* | --datad=*)
906: datadir=$ac_optarg ;;
907:
908: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909: | --dataroo | --dataro | --datar)
910: ac_prev=datarootdir ;;
911: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913: datarootdir=$ac_optarg ;;
914:
915: -disable-* | --disable-*)
1.15 bertrand 916: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 bertrand 917: # Reject names that are not valid shell variable names.
1.15 bertrand 918: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 919: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 920: ac_useropt_orig=$ac_useropt
921: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922: case $ac_user_opts in
923: *"
924: "enable_$ac_useropt"
925: "*) ;;
926: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927: ac_unrecognized_sep=', ';;
928: esac
929: eval enable_$ac_useropt=no ;;
1.1 bertrand 930:
931: -docdir | --docdir | --docdi | --doc | --do)
932: ac_prev=docdir ;;
933: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934: docdir=$ac_optarg ;;
935:
936: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937: ac_prev=dvidir ;;
938: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939: dvidir=$ac_optarg ;;
940:
941: -enable-* | --enable-*)
1.15 bertrand 942: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 bertrand 943: # Reject names that are not valid shell variable names.
1.15 bertrand 944: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 945: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 946: ac_useropt_orig=$ac_useropt
947: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948: case $ac_user_opts in
949: *"
950: "enable_$ac_useropt"
951: "*) ;;
952: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953: ac_unrecognized_sep=', ';;
954: esac
955: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 956:
957: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959: | --exec | --exe | --ex)
960: ac_prev=exec_prefix ;;
961: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963: | --exec=* | --exe=* | --ex=*)
964: exec_prefix=$ac_optarg ;;
965:
966: -gas | --gas | --ga | --g)
967: # Obsolete; use --with-gas.
968: with_gas=yes ;;
969:
970: -help | --help | --hel | --he | -h)
971: ac_init_help=long ;;
972: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973: ac_init_help=recursive ;;
974: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975: ac_init_help=short ;;
976:
977: -host | --host | --hos | --ho)
978: ac_prev=host_alias ;;
979: -host=* | --host=* | --hos=* | --ho=*)
980: host_alias=$ac_optarg ;;
981:
982: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983: ac_prev=htmldir ;;
984: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985: | --ht=*)
986: htmldir=$ac_optarg ;;
987:
988: -includedir | --includedir | --includedi | --included | --include \
989: | --includ | --inclu | --incl | --inc)
990: ac_prev=includedir ;;
991: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992: | --includ=* | --inclu=* | --incl=* | --inc=*)
993: includedir=$ac_optarg ;;
994:
995: -infodir | --infodir | --infodi | --infod | --info | --inf)
996: ac_prev=infodir ;;
997: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998: infodir=$ac_optarg ;;
999:
1000: -libdir | --libdir | --libdi | --libd)
1001: ac_prev=libdir ;;
1002: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003: libdir=$ac_optarg ;;
1004:
1005: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006: | --libexe | --libex | --libe)
1007: ac_prev=libexecdir ;;
1008: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009: | --libexe=* | --libex=* | --libe=*)
1010: libexecdir=$ac_optarg ;;
1011:
1012: -localedir | --localedir | --localedi | --localed | --locale)
1013: ac_prev=localedir ;;
1014: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015: localedir=$ac_optarg ;;
1016:
1017: -localstatedir | --localstatedir | --localstatedi | --localstated \
1018: | --localstate | --localstat | --localsta | --localst | --locals)
1019: ac_prev=localstatedir ;;
1020: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022: localstatedir=$ac_optarg ;;
1023:
1024: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025: ac_prev=mandir ;;
1026: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027: mandir=$ac_optarg ;;
1028:
1029: -nfp | --nfp | --nf)
1030: # Obsolete; use --without-fp.
1031: with_fp=no ;;
1032:
1033: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034: | --no-cr | --no-c | -n)
1035: no_create=yes ;;
1036:
1037: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039: no_recursion=yes ;;
1040:
1041: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043: | --oldin | --oldi | --old | --ol | --o)
1044: ac_prev=oldincludedir ;;
1045: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048: oldincludedir=$ac_optarg ;;
1049:
1050: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051: ac_prev=prefix ;;
1052: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053: prefix=$ac_optarg ;;
1054:
1055: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056: | --program-pre | --program-pr | --program-p)
1057: ac_prev=program_prefix ;;
1058: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060: program_prefix=$ac_optarg ;;
1061:
1062: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063: | --program-suf | --program-su | --program-s)
1064: ac_prev=program_suffix ;;
1065: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067: program_suffix=$ac_optarg ;;
1068:
1069: -program-transform-name | --program-transform-name \
1070: | --program-transform-nam | --program-transform-na \
1071: | --program-transform-n | --program-transform- \
1072: | --program-transform | --program-transfor \
1073: | --program-transfo | --program-transf \
1074: | --program-trans | --program-tran \
1075: | --progr-tra | --program-tr | --program-t)
1076: ac_prev=program_transform_name ;;
1077: -program-transform-name=* | --program-transform-name=* \
1078: | --program-transform-nam=* | --program-transform-na=* \
1079: | --program-transform-n=* | --program-transform-=* \
1080: | --program-transform=* | --program-transfor=* \
1081: | --program-transfo=* | --program-transf=* \
1082: | --program-trans=* | --program-tran=* \
1083: | --progr-tra=* | --program-tr=* | --program-t=*)
1084: program_transform_name=$ac_optarg ;;
1085:
1086: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087: ac_prev=pdfdir ;;
1088: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089: pdfdir=$ac_optarg ;;
1090:
1091: -psdir | --psdir | --psdi | --psd | --ps)
1092: ac_prev=psdir ;;
1093: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094: psdir=$ac_optarg ;;
1095:
1096: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097: | -silent | --silent | --silen | --sile | --sil)
1098: silent=yes ;;
1099:
1100: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101: ac_prev=sbindir ;;
1102: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103: | --sbi=* | --sb=*)
1104: sbindir=$ac_optarg ;;
1105:
1106: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108: | --sharedst | --shareds | --shared | --share | --shar \
1109: | --sha | --sh)
1110: ac_prev=sharedstatedir ;;
1111: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114: | --sha=* | --sh=*)
1115: sharedstatedir=$ac_optarg ;;
1116:
1117: -site | --site | --sit)
1118: ac_prev=site ;;
1119: -site=* | --site=* | --sit=*)
1120: site=$ac_optarg ;;
1121:
1122: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123: ac_prev=srcdir ;;
1124: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125: srcdir=$ac_optarg ;;
1126:
1127: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128: | --syscon | --sysco | --sysc | --sys | --sy)
1129: ac_prev=sysconfdir ;;
1130: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132: sysconfdir=$ac_optarg ;;
1133:
1134: -target | --target | --targe | --targ | --tar | --ta | --t)
1135: ac_prev=target_alias ;;
1136: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137: target_alias=$ac_optarg ;;
1138:
1139: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140: verbose=yes ;;
1141:
1142: -version | --version | --versio | --versi | --vers | -V)
1143: ac_init_version=: ;;
1144:
1145: -with-* | --with-*)
1.15 bertrand 1146: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 bertrand 1147: # Reject names that are not valid shell variable names.
1.15 bertrand 1148: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1149: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1150: ac_useropt_orig=$ac_useropt
1151: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152: case $ac_user_opts in
1153: *"
1154: "with_$ac_useropt"
1155: "*) ;;
1156: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157: ac_unrecognized_sep=', ';;
1158: esac
1159: eval with_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 1160:
1161: -without-* | --without-*)
1.15 bertrand 1162: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 bertrand 1163: # Reject names that are not valid shell variable names.
1.15 bertrand 1164: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1165: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1166: ac_useropt_orig=$ac_useropt
1167: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168: case $ac_user_opts in
1169: *"
1170: "with_$ac_useropt"
1171: "*) ;;
1172: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173: ac_unrecognized_sep=', ';;
1174: esac
1175: eval with_$ac_useropt=no ;;
1.1 bertrand 1176:
1177: --x)
1178: # Obsolete; use --with-x.
1179: with_x=yes ;;
1180:
1181: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182: | --x-incl | --x-inc | --x-in | --x-i)
1183: ac_prev=x_includes ;;
1184: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186: x_includes=$ac_optarg ;;
1187:
1188: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190: ac_prev=x_libraries ;;
1191: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193: x_libraries=$ac_optarg ;;
1194:
1.36 bertrand 1195: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196: Try \`$0 --help' for more information"
1.1 bertrand 1197: ;;
1198:
1199: *=*)
1200: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201: # Reject names that are not valid shell variable names.
1.15 bertrand 1202: case $ac_envvar in #(
1203: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36 bertrand 1204: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15 bertrand 1205: esac
1.1 bertrand 1206: eval $ac_envvar=\$ac_optarg
1207: export $ac_envvar ;;
1208:
1209: *)
1210: # FIXME: should be removed in autoconf 3.0.
1.15 bertrand 1211: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 bertrand 1212: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15 bertrand 1213: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 bertrand 1214: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1215: ;;
1216:
1217: esac
1218: done
1219:
1220: if test -n "$ac_prev"; then
1221: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36 bertrand 1222: as_fn_error $? "missing argument to $ac_option"
1.15 bertrand 1223: fi
1224:
1225: if test -n "$ac_unrecognized_opts"; then
1226: case $enable_option_checking in
1227: no) ;;
1.36 bertrand 1228: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15 bertrand 1229: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230: esac
1.1 bertrand 1231: fi
1232:
1.15 bertrand 1233: # Check all directory arguments for consistency.
1.1 bertrand 1234: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235: datadir sysconfdir sharedstatedir localstatedir includedir \
1236: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237: libdir localedir mandir
1238: do
1239: eval ac_val=\$$ac_var
1.15 bertrand 1240: # Remove trailing slashes.
1241: case $ac_val in
1242: */ )
1243: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244: eval $ac_var=\$ac_val;;
1245: esac
1246: # Be sure to have absolute directory names.
1.1 bertrand 1247: case $ac_val in
1248: [\\/$]* | ?:[\\/]* ) continue;;
1249: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250: esac
1.36 bertrand 1251: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 bertrand 1252: done
1253:
1254: # There might be people who depend on the old broken behavior: `$host'
1255: # used to hold the argument of --host etc.
1256: # FIXME: To remove some day.
1257: build=$build_alias
1258: host=$host_alias
1259: target=$target_alias
1260:
1261: # FIXME: To remove some day.
1262: if test "x$host_alias" != x; then
1263: if test "x$build_alias" = x; then
1264: cross_compiling=maybe
1.36 bertrand 1265: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1266: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 bertrand 1267: elif test "x$build_alias" != "x$host_alias"; then
1268: cross_compiling=yes
1269: fi
1270: fi
1271:
1272: ac_tool_prefix=
1273: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274:
1275: test "$silent" = yes && exec 6>/dev/null
1276:
1277:
1278: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279: ac_ls_di=`ls -di .` &&
1280: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36 bertrand 1281: as_fn_error $? "working directory cannot be determined"
1.1 bertrand 1282: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36 bertrand 1283: as_fn_error $? "pwd does not report name of working directory"
1.1 bertrand 1284:
1285:
1286: # Find the source files, if location was not specified.
1287: if test -z "$srcdir"; then
1288: ac_srcdir_defaulted=yes
1289: # Try the directory containing this script, then the parent directory.
1.15 bertrand 1290: ac_confdir=`$as_dirname -- "$as_myself" ||
1291: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292: X"$as_myself" : 'X\(//\)[^/]' \| \
1293: X"$as_myself" : 'X\(//\)$' \| \
1294: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295: $as_echo X"$as_myself" |
1.1 bertrand 1296: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297: s//\1/
1298: q
1299: }
1300: /^X\(\/\/\)[^/].*/{
1301: s//\1/
1302: q
1303: }
1304: /^X\(\/\/\)$/{
1305: s//\1/
1306: q
1307: }
1308: /^X\(\/\).*/{
1309: s//\1/
1310: q
1311: }
1312: s/.*/./; q'`
1313: srcdir=$ac_confdir
1314: if test ! -r "$srcdir/$ac_unique_file"; then
1315: srcdir=..
1316: fi
1317: else
1318: ac_srcdir_defaulted=no
1319: fi
1320: if test ! -r "$srcdir/$ac_unique_file"; then
1321: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36 bertrand 1322: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 bertrand 1323: fi
1324: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325: ac_abs_confdir=`(
1.36 bertrand 1326: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 bertrand 1327: pwd)`
1328: # When building in place, set srcdir=.
1329: if test "$ac_abs_confdir" = "$ac_pwd"; then
1330: srcdir=.
1331: fi
1332: # Remove unnecessary trailing slashes from srcdir.
1333: # Double slashes in file names in object file debugging info
1334: # mess up M-x gdb in Emacs.
1335: case $srcdir in
1336: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337: esac
1338: for ac_var in $ac_precious_vars; do
1339: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340: eval ac_env_${ac_var}_value=\$${ac_var}
1341: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343: done
1344:
1345: #
1346: # Report the --help message.
1347: #
1348: if test "$ac_init_help" = "long"; then
1349: # Omit some internal or obsolete options to make the list less imposing.
1350: # This message is too long to be a string in the A/UX 3.1 sh.
1351: cat <<_ACEOF
1.38 bertrand 1352: \`configure' configures rpl 4.0.19 to adapt to many kinds of systems.
1.1 bertrand 1353:
1354: Usage: $0 [OPTION]... [VAR=VALUE]...
1355:
1356: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357: VAR=VALUE. See below for descriptions of some of the useful variables.
1358:
1359: Defaults for the options are specified in brackets.
1360:
1361: Configuration:
1362: -h, --help display this help and exit
1363: --help=short display options specific to this package
1364: --help=recursive display the short help of all the included packages
1365: -V, --version display version information and exit
1.36 bertrand 1366: -q, --quiet, --silent do not print \`checking ...' messages
1.1 bertrand 1367: --cache-file=FILE cache test results in FILE [disabled]
1368: -C, --config-cache alias for \`--cache-file=config.cache'
1369: -n, --no-create do not create output files
1370: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371:
1372: Installation directories:
1373: --prefix=PREFIX install architecture-independent files in PREFIX
1.15 bertrand 1374: [$ac_default_prefix]
1.1 bertrand 1375: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.15 bertrand 1376: [PREFIX]
1.1 bertrand 1377:
1378: By default, \`make install' will install all the files in
1379: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381: for instance \`--prefix=\$HOME'.
1382:
1383: For better control, use the options below.
1384:
1385: Fine tuning of the installation directories:
1.15 bertrand 1386: --bindir=DIR user executables [EPREFIX/bin]
1387: --sbindir=DIR system admin executables [EPREFIX/sbin]
1388: --libexecdir=DIR program executables [EPREFIX/libexec]
1389: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392: --libdir=DIR object code libraries [EPREFIX/lib]
1393: --includedir=DIR C header files [PREFIX/include]
1394: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397: --infodir=DIR info documentation [DATAROOTDIR/info]
1398: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399: --mandir=DIR man documentation [DATAROOTDIR/man]
1400: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1401: --htmldir=DIR html documentation [DOCDIR]
1402: --dvidir=DIR dvi documentation [DOCDIR]
1403: --pdfdir=DIR pdf documentation [DOCDIR]
1404: --psdir=DIR ps documentation [DOCDIR]
1.1 bertrand 1405: _ACEOF
1406:
1407: cat <<\_ACEOF
1408:
1409: Program names:
1410: --program-prefix=PREFIX prepend PREFIX to installed program names
1411: --program-suffix=SUFFIX append SUFFIX to installed program names
1412: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413:
1414: X features:
1415: --x-includes=DIR X include files are in DIR
1416: --x-libraries=DIR X library files are in DIR
1417:
1418: System types:
1419: --build=BUILD configure for building on BUILD [guessed]
1420: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421: --target=TARGET configure for building compilers for TARGET [HOST]
1422: _ACEOF
1423: fi
1424:
1425: if test -n "$ac_init_help"; then
1426: case $ac_init_help in
1.38 bertrand 1427: short | recursive ) echo "Configuration of rpl 4.0.19:";;
1.1 bertrand 1428: esac
1429: cat <<\_ACEOF
1430:
1431: Optional Features:
1.15 bertrand 1432: --disable-option-checking ignore unrecognized --enable/--with options
1.1 bertrand 1433: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435: --disable-dependency-tracking speeds up one-time build
1436: --enable-dependency-tracking do not reject slow dependency extractors
1437: --enable-optimization set compiler flags [default=environment variables -O3]
1.36 bertrand 1438: --enable-sysv-ipcs use SystemV IPC functions [default=no]
1.30 bertrand 1439: --enable-full-static build static RPL/2 engine [default=shared]
1.1 bertrand 1440: --enable-final-encoding force final encoding [default=guessed]
1441: --enable-tex provide the TeX support [default=guessed]
1442: --enable-vim provide the vim support [default=guessed]
1443: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1444: --enable-gnuplot provide the GnuPlot support [default=guessed]
1445: --enable-motif provide the Motif support [default=guessed]
1446: --enable-experimental enable experimental code [default=no]
1447: --enable-debug enable debug code [default=no]
1448: --enable-profile enable profile code [default=no]
1449: --enable-final-run-path=PATH enable another final run path than PREFIX
1450:
1451: Optional Packages:
1452: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454: --with-x use the X Window System
1455: --with-mysql=PATH specify directory for installed mysql
1456: --with-postgresql=PATH specify directory for installed postgresql
1.40 ! bertrand 1457: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1.15 bertrand 1458: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1.1 bertrand 1459:
1460: Some influential environment variables:
1461: CC C compiler command
1462: CFLAGS C compiler flags
1463: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464: nonstandard directory <lib dir>
1465: LIBS libraries to pass to the linker, e.g. -l<library>
1.15 bertrand 1466: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 bertrand 1467: you have headers in a nonstandard directory <include dir>
1468: CXX C++ compiler command
1469: CXXFLAGS C++ compiler flags
1470: F77 Fortran 77 compiler command
1471: FFLAGS Fortran 77 compiler flags
1472: FC Fortran compiler command
1473: FCFLAGS Fortran compiler flags
1474: XMKMF Path to xmkmf, Makefile generator for X Window System
1475: CPP C preprocessor
1476:
1477: Use these variables to override the choices made by `configure' or to help
1478: it to find libraries and programs with nonstandard names/locations.
1479:
1.15 bertrand 1480: Report bugs to the package provider.
1.1 bertrand 1481: _ACEOF
1482: ac_status=$?
1483: fi
1484:
1485: if test "$ac_init_help" = "recursive"; then
1486: # If there are subdirs, report their specific --help.
1487: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15 bertrand 1488: test -d "$ac_dir" ||
1489: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490: continue
1.1 bertrand 1491: ac_builddir=.
1492:
1493: case "$ac_dir" in
1494: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495: *)
1.15 bertrand 1496: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 1497: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 1498: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 1499: case $ac_top_builddir_sub in
1500: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502: esac ;;
1503: esac
1504: ac_abs_top_builddir=$ac_pwd
1505: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506: # for backward compatibility:
1507: ac_top_builddir=$ac_top_build_prefix
1508:
1509: case $srcdir in
1510: .) # We are building in place.
1511: ac_srcdir=.
1512: ac_top_srcdir=$ac_top_builddir_sub
1513: ac_abs_top_srcdir=$ac_pwd ;;
1514: [\\/]* | ?:[\\/]* ) # Absolute name.
1515: ac_srcdir=$srcdir$ac_dir_suffix;
1516: ac_top_srcdir=$srcdir
1517: ac_abs_top_srcdir=$srcdir ;;
1518: *) # Relative name.
1519: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520: ac_top_srcdir=$ac_top_build_prefix$srcdir
1521: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522: esac
1523: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524:
1525: cd "$ac_dir" || { ac_status=$?; continue; }
1526: # Check for guested configure.
1527: if test -f "$ac_srcdir/configure.gnu"; then
1528: echo &&
1529: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530: elif test -f "$ac_srcdir/configure"; then
1531: echo &&
1532: $SHELL "$ac_srcdir/configure" --help=recursive
1533: else
1.15 bertrand 1534: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 bertrand 1535: fi || ac_status=$?
1536: cd "$ac_pwd" || { ac_status=$?; break; }
1537: done
1538: fi
1539:
1540: test -n "$ac_init_help" && exit $ac_status
1541: if $ac_init_version; then
1542: cat <<\_ACEOF
1.38 bertrand 1543: rpl configure 4.0.19
1.36 bertrand 1544: generated by GNU Autoconf 2.67
1.1 bertrand 1545:
1.36 bertrand 1546: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 1547: This configure script is free software; the Free Software Foundation
1548: gives unlimited permission to copy, distribute and modify it.
1549: _ACEOF
1550: exit
1551: fi
1552:
1.15 bertrand 1553: ## ------------------------ ##
1554: ## Autoconf initialization. ##
1555: ## ------------------------ ##
1556:
1557: # ac_fn_c_try_compile LINENO
1558: # --------------------------
1559: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560: ac_fn_c_try_compile ()
1561: {
1562: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563: rm -f conftest.$ac_objext
1564: if { { ac_try="$ac_compile"
1565: case "(($ac_try" in
1566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567: *) ac_try_echo=$ac_try;;
1568: esac
1569: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570: $as_echo "$ac_try_echo"; } >&5
1571: (eval "$ac_compile") 2>conftest.err
1572: ac_status=$?
1573: if test -s conftest.err; then
1574: grep -v '^ *+' conftest.err >conftest.er1
1575: cat conftest.er1 >&5
1576: mv -f conftest.er1 conftest.err
1577: fi
1578: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579: test $ac_status = 0; } && {
1580: test -z "$ac_c_werror_flag" ||
1581: test ! -s conftest.err
1582: } && test -s conftest.$ac_objext; then :
1583: ac_retval=0
1584: else
1585: $as_echo "$as_me: failed program was:" >&5
1586: sed 's/^/| /' conftest.$ac_ext >&5
1587:
1588: ac_retval=1
1589: fi
1590: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591: as_fn_set_status $ac_retval
1.1 bertrand 1592:
1.15 bertrand 1593: } # ac_fn_c_try_compile
1.1 bertrand 1594:
1.15 bertrand 1595: # ac_fn_cxx_try_compile LINENO
1596: # ----------------------------
1597: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598: ac_fn_cxx_try_compile ()
1.1 bertrand 1599: {
1.15 bertrand 1600: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601: rm -f conftest.$ac_objext
1602: if { { ac_try="$ac_compile"
1603: case "(($ac_try" in
1604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605: *) ac_try_echo=$ac_try;;
1606: esac
1607: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608: $as_echo "$ac_try_echo"; } >&5
1609: (eval "$ac_compile") 2>conftest.err
1610: ac_status=$?
1611: if test -s conftest.err; then
1612: grep -v '^ *+' conftest.err >conftest.er1
1613: cat conftest.er1 >&5
1614: mv -f conftest.er1 conftest.err
1615: fi
1616: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617: test $ac_status = 0; } && {
1618: test -z "$ac_cxx_werror_flag" ||
1619: test ! -s conftest.err
1620: } && test -s conftest.$ac_objext; then :
1621: ac_retval=0
1622: else
1623: $as_echo "$as_me: failed program was:" >&5
1624: sed 's/^/| /' conftest.$ac_ext >&5
1625:
1626: ac_retval=1
1627: fi
1628: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629: as_fn_set_status $ac_retval
1.1 bertrand 1630:
1.15 bertrand 1631: } # ac_fn_cxx_try_compile
1.1 bertrand 1632:
1.15 bertrand 1633: # ac_fn_f77_try_compile LINENO
1634: # ----------------------------
1635: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636: ac_fn_f77_try_compile ()
1637: {
1638: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639: rm -f conftest.$ac_objext
1640: if { { ac_try="$ac_compile"
1641: case "(($ac_try" in
1642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643: *) ac_try_echo=$ac_try;;
1644: esac
1645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646: $as_echo "$ac_try_echo"; } >&5
1647: (eval "$ac_compile") 2>conftest.err
1648: ac_status=$?
1649: if test -s conftest.err; then
1650: grep -v '^ *+' conftest.err >conftest.er1
1651: cat conftest.er1 >&5
1652: mv -f conftest.er1 conftest.err
1653: fi
1654: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655: test $ac_status = 0; } && {
1656: test -z "$ac_f77_werror_flag" ||
1657: test ! -s conftest.err
1658: } && test -s conftest.$ac_objext; then :
1659: ac_retval=0
1660: else
1661: $as_echo "$as_me: failed program was:" >&5
1662: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1663:
1.15 bertrand 1664: ac_retval=1
1665: fi
1666: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667: as_fn_set_status $ac_retval
1.1 bertrand 1668:
1.15 bertrand 1669: } # ac_fn_f77_try_compile
1.1 bertrand 1670:
1.15 bertrand 1671: # ac_fn_fc_try_compile LINENO
1672: # ---------------------------
1673: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674: ac_fn_fc_try_compile ()
1675: {
1676: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677: rm -f conftest.$ac_objext
1678: if { { ac_try="$ac_compile"
1679: case "(($ac_try" in
1680: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681: *) ac_try_echo=$ac_try;;
1682: esac
1683: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684: $as_echo "$ac_try_echo"; } >&5
1685: (eval "$ac_compile") 2>conftest.err
1686: ac_status=$?
1687: if test -s conftest.err; then
1688: grep -v '^ *+' conftest.err >conftest.er1
1689: cat conftest.er1 >&5
1690: mv -f conftest.er1 conftest.err
1691: fi
1692: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693: test $ac_status = 0; } && {
1694: test -z "$ac_fc_werror_flag" ||
1695: test ! -s conftest.err
1696: } && test -s conftest.$ac_objext; then :
1697: ac_retval=0
1698: else
1699: $as_echo "$as_me: failed program was:" >&5
1700: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1701:
1.15 bertrand 1702: ac_retval=1
1703: fi
1704: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705: as_fn_set_status $ac_retval
1.1 bertrand 1706:
1.15 bertrand 1707: } # ac_fn_fc_try_compile
1.1 bertrand 1708:
1.15 bertrand 1709: # ac_fn_c_try_cpp LINENO
1710: # ----------------------
1711: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712: ac_fn_c_try_cpp ()
1713: {
1714: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715: if { { ac_try="$ac_cpp conftest.$ac_ext"
1716: case "(($ac_try" in
1717: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718: *) ac_try_echo=$ac_try;;
1719: esac
1720: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721: $as_echo "$ac_try_echo"; } >&5
1722: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723: ac_status=$?
1724: if test -s conftest.err; then
1725: grep -v '^ *+' conftest.err >conftest.er1
1726: cat conftest.er1 >&5
1727: mv -f conftest.er1 conftest.err
1728: fi
1729: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36 bertrand 1730: test $ac_status = 0; } > conftest.i && {
1.15 bertrand 1731: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732: test ! -s conftest.err
1733: }; then :
1734: ac_retval=0
1735: else
1736: $as_echo "$as_me: failed program was:" >&5
1737: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1738:
1.15 bertrand 1739: ac_retval=1
1740: fi
1741: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742: as_fn_set_status $ac_retval
1.1 bertrand 1743:
1.15 bertrand 1744: } # ac_fn_c_try_cpp
1.1 bertrand 1745:
1.15 bertrand 1746: # ac_fn_c_try_link LINENO
1747: # -----------------------
1748: # Try to link conftest.$ac_ext, and return whether this succeeded.
1749: ac_fn_c_try_link ()
1750: {
1751: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752: rm -f conftest.$ac_objext conftest$ac_exeext
1753: if { { ac_try="$ac_link"
1754: case "(($ac_try" in
1755: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756: *) ac_try_echo=$ac_try;;
1757: esac
1758: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759: $as_echo "$ac_try_echo"; } >&5
1760: (eval "$ac_link") 2>conftest.err
1761: ac_status=$?
1762: if test -s conftest.err; then
1763: grep -v '^ *+' conftest.err >conftest.er1
1764: cat conftest.er1 >&5
1765: mv -f conftest.er1 conftest.err
1766: fi
1767: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768: test $ac_status = 0; } && {
1769: test -z "$ac_c_werror_flag" ||
1770: test ! -s conftest.err
1771: } && test -s conftest$ac_exeext && {
1772: test "$cross_compiling" = yes ||
1773: $as_test_x conftest$ac_exeext
1774: }; then :
1775: ac_retval=0
1776: else
1777: $as_echo "$as_me: failed program was:" >&5
1778: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1779:
1.15 bertrand 1780: ac_retval=1
1781: fi
1782: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784: # interfere with the next link command; also delete a directory that is
1785: # left behind by Apple's compiler. We do this before executing the actions.
1786: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788: as_fn_set_status $ac_retval
1.1 bertrand 1789:
1.15 bertrand 1790: } # ac_fn_c_try_link
1.1 bertrand 1791:
1.15 bertrand 1792: # ac_fn_c_check_func LINENO FUNC VAR
1793: # ----------------------------------
1794: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795: ac_fn_c_check_func ()
1796: {
1797: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 1800: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 1801: $as_echo_n "(cached) " >&6
1802: else
1803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804: /* end confdefs.h. */
1805: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807: #define $2 innocuous_$2
1.1 bertrand 1808:
1.15 bertrand 1809: /* System header to define __stub macros and hopefully few prototypes,
1810: which can conflict with char $2 (); below.
1811: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812: <limits.h> exists even on freestanding compilers. */
1.1 bertrand 1813:
1.15 bertrand 1814: #ifdef __STDC__
1815: # include <limits.h>
1816: #else
1817: # include <assert.h>
1818: #endif
1.1 bertrand 1819:
1.15 bertrand 1820: #undef $2
1.1 bertrand 1821:
1.15 bertrand 1822: /* Override any GCC internal prototype to avoid an error.
1823: Use char because int might match the return type of a GCC
1824: builtin and then its argument prototype would still apply. */
1825: #ifdef __cplusplus
1826: extern "C"
1827: #endif
1828: char $2 ();
1829: /* The GNU C library defines this for functions which it implements
1830: to always fail with ENOSYS. Some functions are actually named
1831: something starting with __ and the normal name is an alias. */
1832: #if defined __stub_$2 || defined __stub___$2
1833: choke me
1834: #endif
1.1 bertrand 1835:
1.15 bertrand 1836: int
1837: main ()
1838: {
1839: return $2 ();
1840: ;
1841: return 0;
1842: }
1.1 bertrand 1843: _ACEOF
1.15 bertrand 1844: if ac_fn_c_try_link "$LINENO"; then :
1845: eval "$3=yes"
1846: else
1847: eval "$3=no"
1848: fi
1849: rm -f core conftest.err conftest.$ac_objext \
1850: conftest$ac_exeext conftest.$ac_ext
1851: fi
1852: eval ac_res=\$$3
1853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854: $as_echo "$ac_res" >&6; }
1855: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 1856:
1.15 bertrand 1857: } # ac_fn_c_check_func
1.1 bertrand 1858:
1.33 bertrand 1859: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860: # -------------------------------------------
1861: # Tests whether TYPE exists after having included INCLUDES, setting cache
1862: # variable VAR accordingly.
1863: ac_fn_c_check_type ()
1864: {
1865: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 1868: if eval "test \"\${$3+set}\"" = set; then :
1.33 bertrand 1869: $as_echo_n "(cached) " >&6
1870: else
1871: eval "$3=no"
1872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873: /* end confdefs.h. */
1874: $4
1875: int
1876: main ()
1877: {
1878: if (sizeof ($2))
1879: return 0;
1880: ;
1881: return 0;
1882: }
1883: _ACEOF
1884: if ac_fn_c_try_compile "$LINENO"; then :
1885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886: /* end confdefs.h. */
1887: $4
1888: int
1889: main ()
1890: {
1891: if (sizeof (($2)))
1892: return 0;
1893: ;
1894: return 0;
1895: }
1896: _ACEOF
1897: if ac_fn_c_try_compile "$LINENO"; then :
1898:
1899: else
1900: eval "$3=yes"
1901: fi
1902: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903: fi
1904: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905: fi
1906: eval ac_res=\$$3
1907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908: $as_echo "$ac_res" >&6; }
1909: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910:
1911: } # ac_fn_c_check_type
1912:
1.15 bertrand 1913: # ac_fn_c_try_run LINENO
1914: # ----------------------
1915: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1916: # that executables *can* be run.
1917: ac_fn_c_try_run ()
1918: {
1919: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920: if { { ac_try="$ac_link"
1921: case "(($ac_try" in
1922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923: *) ac_try_echo=$ac_try;;
1924: esac
1925: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926: $as_echo "$ac_try_echo"; } >&5
1927: (eval "$ac_link") 2>&5
1928: ac_status=$?
1929: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1931: { { case "(($ac_try" in
1932: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933: *) ac_try_echo=$ac_try;;
1934: esac
1935: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936: $as_echo "$ac_try_echo"; } >&5
1937: (eval "$ac_try") 2>&5
1938: ac_status=$?
1939: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940: test $ac_status = 0; }; }; then :
1941: ac_retval=0
1942: else
1943: $as_echo "$as_me: program exited with status $ac_status" >&5
1944: $as_echo "$as_me: failed program was:" >&5
1945: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1946:
1.15 bertrand 1947: ac_retval=$ac_status
1948: fi
1949: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951: as_fn_set_status $ac_retval
1.1 bertrand 1952:
1.15 bertrand 1953: } # ac_fn_c_try_run
1.1 bertrand 1954:
1.15 bertrand 1955: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1956: # --------------------------------------------
1957: # Tries to find the compile-time value of EXPR in a program that includes
1958: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1959: # computed
1960: ac_fn_c_compute_int ()
1961: {
1962: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963: if test "$cross_compiling" = yes; then
1964: # Depending upon the size, compute the lo and hi bounds.
1965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966: /* end confdefs.h. */
1967: $4
1968: int
1969: main ()
1970: {
1971: static int test_array [1 - 2 * !(($2) >= 0)];
1972: test_array [0] = 0
1.1 bertrand 1973:
1.15 bertrand 1974: ;
1975: return 0;
1976: }
1.1 bertrand 1977: _ACEOF
1.15 bertrand 1978: if ac_fn_c_try_compile "$LINENO"; then :
1979: ac_lo=0 ac_mid=0
1980: while :; do
1981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982: /* end confdefs.h. */
1983: $4
1984: int
1985: main ()
1986: {
1987: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988: test_array [0] = 0
1.1 bertrand 1989:
1.15 bertrand 1990: ;
1991: return 0;
1992: }
1993: _ACEOF
1994: if ac_fn_c_try_compile "$LINENO"; then :
1995: ac_hi=$ac_mid; break
1996: else
1997: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1998: if test $ac_lo -le $ac_mid; then
1999: ac_lo= ac_hi=
2000: break
2001: fi
2002: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2003: fi
2004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005: done
2006: else
2007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008: /* end confdefs.h. */
2009: $4
2010: int
2011: main ()
2012: {
2013: static int test_array [1 - 2 * !(($2) < 0)];
2014: test_array [0] = 0
1.1 bertrand 2015:
1.15 bertrand 2016: ;
2017: return 0;
2018: }
1.1 bertrand 2019: _ACEOF
1.15 bertrand 2020: if ac_fn_c_try_compile "$LINENO"; then :
2021: ac_hi=-1 ac_mid=-1
2022: while :; do
2023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024: /* end confdefs.h. */
2025: $4
2026: int
2027: main ()
2028: {
2029: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2030: test_array [0] = 0
1.1 bertrand 2031:
1.15 bertrand 2032: ;
2033: return 0;
2034: }
2035: _ACEOF
2036: if ac_fn_c_try_compile "$LINENO"; then :
2037: ac_lo=$ac_mid; break
2038: else
2039: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2040: if test $ac_mid -le $ac_hi; then
2041: ac_lo= ac_hi=
2042: break
2043: fi
2044: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2045: fi
2046: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047: done
1.1 bertrand 2048: else
1.15 bertrand 2049: ac_lo= ac_hi=
2050: fi
2051: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 2052: fi
1.15 bertrand 2053: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054: # Binary search between lo and hi bounds.
2055: while test "x$ac_lo" != "x$ac_hi"; do
2056: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058: /* end confdefs.h. */
2059: $4
2060: int
2061: main ()
2062: {
2063: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064: test_array [0] = 0
1.1 bertrand 2065:
1.15 bertrand 2066: ;
2067: return 0;
2068: }
2069: _ACEOF
2070: if ac_fn_c_try_compile "$LINENO"; then :
2071: ac_hi=$ac_mid
1.1 bertrand 2072: else
1.15 bertrand 2073: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1 bertrand 2074: fi
1.15 bertrand 2075: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076: done
2077: case $ac_lo in #((
2078: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2079: '') ac_retval=1 ;;
2080: esac
2081: else
2082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083: /* end confdefs.h. */
2084: $4
2085: static long int longval () { return $2; }
2086: static unsigned long int ulongval () { return $2; }
2087: #include <stdio.h>
2088: #include <stdlib.h>
2089: int
2090: main ()
2091: {
1.1 bertrand 2092:
1.15 bertrand 2093: FILE *f = fopen ("conftest.val", "w");
2094: if (! f)
2095: return 1;
2096: if (($2) < 0)
2097: {
2098: long int i = longval ();
2099: if (i != ($2))
2100: return 1;
2101: fprintf (f, "%ld", i);
2102: }
2103: else
2104: {
2105: unsigned long int i = ulongval ();
2106: if (i != ($2))
2107: return 1;
2108: fprintf (f, "%lu", i);
2109: }
2110: /* Do not output a trailing newline, as this causes \r\n confusion
2111: on some platforms. */
2112: return ferror (f) || fclose (f) != 0;
2113:
2114: ;
2115: return 0;
2116: }
2117: _ACEOF
2118: if ac_fn_c_try_run "$LINENO"; then :
2119: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2120: else
2121: ac_retval=1
1.14 bertrand 2122: fi
1.15 bertrand 2123: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2124: conftest.$ac_objext conftest.beam conftest.$ac_ext
2125: rm -f conftest.val
1.14 bertrand 2126:
1.15 bertrand 2127: fi
2128: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129: as_fn_set_status $ac_retval
1.14 bertrand 2130:
1.15 bertrand 2131: } # ac_fn_c_compute_int
1.1 bertrand 2132:
1.15 bertrand 2133: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2134: # -------------------------------------------------------
2135: # Tests whether HEADER exists and can be compiled using the include files in
2136: # INCLUDES, setting the cache variable VAR accordingly.
2137: ac_fn_c_check_header_compile ()
2138: {
2139: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 2142: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2143: $as_echo_n "(cached) " >&6
2144: else
2145: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146: /* end confdefs.h. */
2147: $4
2148: #include <$2>
2149: _ACEOF
2150: if ac_fn_c_try_compile "$LINENO"; then :
2151: eval "$3=yes"
2152: else
2153: eval "$3=no"
2154: fi
2155: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156: fi
2157: eval ac_res=\$$3
2158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159: $as_echo "$ac_res" >&6; }
2160: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 2161:
1.15 bertrand 2162: } # ac_fn_c_check_header_compile
1.1 bertrand 2163:
1.15 bertrand 2164: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2165: # -------------------------------------------------------
2166: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2167: # the include files in INCLUDES and setting the cache variable VAR
2168: # accordingly.
2169: ac_fn_c_check_header_mongrel ()
2170: {
2171: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.36 bertrand 2172: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 2175: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2176: $as_echo_n "(cached) " >&6
2177: fi
2178: eval ac_res=\$$3
2179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180: $as_echo "$ac_res" >&6; }
2181: else
2182: # Is the header compilable?
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2184: $as_echo_n "checking $2 usability... " >&6; }
2185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186: /* end confdefs.h. */
2187: $4
2188: #include <$2>
2189: _ACEOF
2190: if ac_fn_c_try_compile "$LINENO"; then :
2191: ac_header_compiler=yes
2192: else
2193: ac_header_compiler=no
2194: fi
2195: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2197: $as_echo "$ac_header_compiler" >&6; }
1.1 bertrand 2198:
1.15 bertrand 2199: # Is the header present?
2200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2201: $as_echo_n "checking $2 presence... " >&6; }
2202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203: /* end confdefs.h. */
2204: #include <$2>
2205: _ACEOF
2206: if ac_fn_c_try_cpp "$LINENO"; then :
2207: ac_header_preproc=yes
2208: else
2209: ac_header_preproc=no
2210: fi
1.36 bertrand 2211: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 2212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2213: $as_echo "$ac_header_preproc" >&6; }
1.1 bertrand 2214:
1.15 bertrand 2215: # So? What about this header?
2216: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2217: yes:no: )
2218: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2219: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2220: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222: ;;
2223: no:yes:* )
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2225: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2226: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2227: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2229: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2230: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2231: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2232: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2233: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2234: ;;
2235: esac
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 2238: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2239: $as_echo_n "(cached) " >&6
2240: else
2241: eval "$3=\$ac_header_compiler"
2242: fi
2243: eval ac_res=\$$3
2244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245: $as_echo "$ac_res" >&6; }
2246: fi
2247: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 2248:
1.15 bertrand 2249: } # ac_fn_c_check_header_mongrel
2250: cat >config.log <<_ACEOF
2251: This file contains any messages produced by compilers while
2252: running configure, to aid debugging if configure makes a mistake.
1.1 bertrand 2253:
1.38 bertrand 2254: It was created by rpl $as_me 4.0.19, which was
1.36 bertrand 2255: generated by GNU Autoconf 2.67. Invocation command line was
1.1 bertrand 2256:
1.15 bertrand 2257: $ $0 $@
1.1 bertrand 2258:
1.15 bertrand 2259: _ACEOF
2260: exec 5>>config.log
2261: {
2262: cat <<_ASUNAME
2263: ## --------- ##
2264: ## Platform. ##
2265: ## --------- ##
1.1 bertrand 2266:
1.15 bertrand 2267: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 bertrand 2272:
1.15 bertrand 2273: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1 bertrand 2275:
1.15 bertrand 2276: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1 bertrand 2283:
1.15 bertrand 2284: _ASUNAME
1.1 bertrand 2285:
1.15 bertrand 2286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287: for as_dir in $PATH
2288: do
2289: IFS=$as_save_IFS
2290: test -z "$as_dir" && as_dir=.
2291: $as_echo "PATH: $as_dir"
2292: done
2293: IFS=$as_save_IFS
1.1 bertrand 2294:
1.15 bertrand 2295: } >&5
1.1 bertrand 2296:
1.15 bertrand 2297: cat >&5 <<_ACEOF
1.1 bertrand 2298:
2299:
1.15 bertrand 2300: ## ----------- ##
2301: ## Core tests. ##
2302: ## ----------- ##
1.1 bertrand 2303:
1.15 bertrand 2304: _ACEOF
1.1 bertrand 2305:
2306:
1.15 bertrand 2307: # Keep a trace of the command line.
2308: # Strip out --no-create and --no-recursion so they do not pile up.
2309: # Strip out --silent because we don't want to record it for future runs.
2310: # Also quote any args containing shell meta-characters.
2311: # Make two passes to allow for proper duplicate-argument suppression.
2312: ac_configure_args=
2313: ac_configure_args0=
2314: ac_configure_args1=
2315: ac_must_keep_next=false
2316: for ac_pass in 1 2
2317: do
2318: for ac_arg
2319: do
2320: case $ac_arg in
2321: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323: | -silent | --silent | --silen | --sile | --sil)
2324: continue ;;
2325: *\'*)
2326: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327: esac
2328: case $ac_pass in
2329: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330: 2)
2331: as_fn_append ac_configure_args1 " '$ac_arg'"
2332: if test $ac_must_keep_next = true; then
2333: ac_must_keep_next=false # Got value, back to normal.
2334: else
2335: case $ac_arg in
2336: *=* | --config-cache | -C | -disable-* | --disable-* \
2337: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339: | -with-* | --with-* | -without-* | --without-* | --x)
2340: case "$ac_configure_args0 " in
2341: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342: esac
2343: ;;
2344: -* ) ac_must_keep_next=true ;;
2345: esac
2346: fi
2347: as_fn_append ac_configure_args " '$ac_arg'"
2348: ;;
2349: esac
2350: done
2351: done
2352: { ac_configure_args0=; unset ac_configure_args0;}
2353: { ac_configure_args1=; unset ac_configure_args1;}
1.1 bertrand 2354:
1.15 bertrand 2355: # When interrupted or exit'd, cleanup temporary files, and complete
2356: # config.log. We remove comments because anyway the quotes in there
2357: # would cause problems or look ugly.
2358: # WARNING: Use '\'' to represent an apostrophe within the trap.
2359: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360: trap 'exit_status=$?
2361: # Save into config.log some information that might help in debugging.
2362: {
2363: echo
1.1 bertrand 2364:
1.36 bertrand 2365: $as_echo "## ---------------- ##
1.15 bertrand 2366: ## Cache variables. ##
1.36 bertrand 2367: ## ---------------- ##"
1.15 bertrand 2368: echo
2369: # The following way of writing the cache mishandles newlines in values,
2370: (
2371: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372: eval ac_val=\$$ac_var
2373: case $ac_val in #(
2374: *${as_nl}*)
2375: case $ac_var in #(
2376: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378: esac
2379: case $ac_var in #(
2380: _ | IFS | as_nl) ;; #(
2381: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382: *) { eval $ac_var=; unset $ac_var;} ;;
2383: esac ;;
2384: esac
2385: done
2386: (set) 2>&1 |
2387: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388: *${as_nl}ac_space=\ *)
2389: sed -n \
2390: "s/'\''/'\''\\\\'\'''\''/g;
2391: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392: ;; #(
2393: *)
2394: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395: ;;
2396: esac |
2397: sort
2398: )
2399: echo
1.1 bertrand 2400:
1.36 bertrand 2401: $as_echo "## ----------------- ##
1.15 bertrand 2402: ## Output variables. ##
1.36 bertrand 2403: ## ----------------- ##"
1.15 bertrand 2404: echo
2405: for ac_var in $ac_subst_vars
2406: do
2407: eval ac_val=\$$ac_var
2408: case $ac_val in
2409: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410: esac
2411: $as_echo "$ac_var='\''$ac_val'\''"
2412: done | sort
2413: echo
1.1 bertrand 2414:
1.15 bertrand 2415: if test -n "$ac_subst_files"; then
1.36 bertrand 2416: $as_echo "## ------------------- ##
1.15 bertrand 2417: ## File substitutions. ##
1.36 bertrand 2418: ## ------------------- ##"
1.15 bertrand 2419: echo
2420: for ac_var in $ac_subst_files
2421: do
2422: eval ac_val=\$$ac_var
2423: case $ac_val in
2424: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425: esac
2426: $as_echo "$ac_var='\''$ac_val'\''"
2427: done | sort
2428: echo
1.14 bertrand 2429: fi
2430:
1.15 bertrand 2431: if test -s confdefs.h; then
1.36 bertrand 2432: $as_echo "## ----------- ##
1.15 bertrand 2433: ## confdefs.h. ##
1.36 bertrand 2434: ## ----------- ##"
1.15 bertrand 2435: echo
2436: cat confdefs.h
2437: echo
2438: fi
2439: test "$ac_signal" != 0 &&
2440: $as_echo "$as_me: caught signal $ac_signal"
2441: $as_echo "$as_me: exit $exit_status"
2442: } >&5
2443: rm -f core *.core core.conftest.* &&
2444: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445: exit $exit_status
2446: ' 0
2447: for ac_signal in 1 2 13 15; do
2448: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449: done
2450: ac_signal=0
1.14 bertrand 2451:
1.15 bertrand 2452: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453: rm -f -r conftest* confdefs.h
1.14 bertrand 2454:
1.15 bertrand 2455: $as_echo "/* confdefs.h */" > confdefs.h
1.14 bertrand 2456:
1.15 bertrand 2457: # Predefined preprocessor variables.
1.14 bertrand 2458:
1.15 bertrand 2459: cat >>confdefs.h <<_ACEOF
2460: #define PACKAGE_NAME "$PACKAGE_NAME"
2461: _ACEOF
1.14 bertrand 2462:
1.15 bertrand 2463: cat >>confdefs.h <<_ACEOF
2464: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14 bertrand 2465: _ACEOF
2466:
1.15 bertrand 2467: cat >>confdefs.h <<_ACEOF
2468: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469: _ACEOF
1.14 bertrand 2470:
1.15 bertrand 2471: cat >>confdefs.h <<_ACEOF
2472: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14 bertrand 2473: _ACEOF
2474:
1.15 bertrand 2475: cat >>confdefs.h <<_ACEOF
2476: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477: _ACEOF
1.14 bertrand 2478:
1.15 bertrand 2479: cat >>confdefs.h <<_ACEOF
2480: #define PACKAGE_URL "$PACKAGE_URL"
2481: _ACEOF
1.14 bertrand 2482:
2483:
1.15 bertrand 2484: # Let the site file select an alternate cache file if it wants to.
2485: # Prefer an explicitly selected file to automatically selected ones.
2486: ac_site_file1=NONE
2487: ac_site_file2=NONE
2488: if test -n "$CONFIG_SITE"; then
1.36 bertrand 2489: # We do not want a PATH search for config.site.
2490: case $CONFIG_SITE in #((
2491: -*) ac_site_file1=./$CONFIG_SITE;;
2492: */*) ac_site_file1=$CONFIG_SITE;;
2493: *) ac_site_file1=./$CONFIG_SITE;;
2494: esac
1.15 bertrand 2495: elif test "x$prefix" != xNONE; then
2496: ac_site_file1=$prefix/share/config.site
2497: ac_site_file2=$prefix/etc/config.site
1.14 bertrand 2498: else
1.15 bertrand 2499: ac_site_file1=$ac_default_prefix/share/config.site
2500: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 bertrand 2501: fi
1.15 bertrand 2502: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503: do
2504: test "x$ac_site_file" = xNONE && continue
2505: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2506: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2508: sed 's/^/| /' "$ac_site_file" >&5
1.36 bertrand 2509: . "$ac_site_file" \
2510: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512: as_fn_error $? "failed to load site script $ac_site_file
2513: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 2514: fi
2515: done
1.14 bertrand 2516:
1.15 bertrand 2517: if test -r "$cache_file"; then
2518: # Some versions of bash will fail to source /dev/null (special files
2519: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2520: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522: $as_echo "$as_me: loading cache $cache_file" >&6;}
2523: case $cache_file in
2524: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525: *) . "./$cache_file";;
2526: esac
2527: fi
1.14 bertrand 2528: else
1.15 bertrand 2529: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530: $as_echo "$as_me: creating cache $cache_file" >&6;}
2531: >$cache_file
1.14 bertrand 2532: fi
2533:
1.15 bertrand 2534: # Check that the precious variables saved in the cache have kept the same
2535: # value.
2536: ac_cache_corrupted=false
2537: for ac_var in $ac_precious_vars; do
2538: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539: eval ac_new_set=\$ac_env_${ac_var}_set
2540: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541: eval ac_new_val=\$ac_env_${ac_var}_value
2542: case $ac_old_set,$ac_new_set in
2543: set,)
2544: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546: ac_cache_corrupted=: ;;
2547: ,set)
2548: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550: ac_cache_corrupted=: ;;
2551: ,);;
2552: *)
2553: if test "x$ac_old_val" != "x$ac_new_val"; then
2554: # differences in whitespace do not lead to failure.
2555: ac_old_val_w=`echo x $ac_old_val`
2556: ac_new_val_w=`echo x $ac_new_val`
2557: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560: ac_cache_corrupted=:
2561: else
2562: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564: eval $ac_var=\$ac_old_val
2565: fi
2566: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2567: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2568: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2569: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2570: fi;;
2571: esac
2572: # Pass precious variables to config.status.
2573: if test "$ac_new_set" = set; then
2574: case $ac_new_val in
2575: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576: *) ac_arg=$ac_var=$ac_new_val ;;
2577: esac
2578: case " $ac_configure_args " in
2579: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2580: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581: esac
1.14 bertrand 2582: fi
2583: done
1.15 bertrand 2584: if $ac_cache_corrupted; then
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36 bertrand 2589: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15 bertrand 2590: fi
2591: ## -------------------- ##
2592: ## Main body of script. ##
2593: ## -------------------- ##
1.14 bertrand 2594:
1.15 bertrand 2595: ac_ext=c
2596: ac_cpp='$CPP $CPPFLAGS'
2597: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 2600:
2601:
1.15 bertrand 2602: ac_aux_dir=
2603: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36 bertrand 2604: if test -f "$ac_dir/install-sh"; then
2605: ac_aux_dir=$ac_dir
2606: ac_install_sh="$ac_aux_dir/install-sh -c"
2607: break
2608: elif test -f "$ac_dir/install.sh"; then
2609: ac_aux_dir=$ac_dir
2610: ac_install_sh="$ac_aux_dir/install.sh -c"
2611: break
2612: elif test -f "$ac_dir/shtool"; then
2613: ac_aux_dir=$ac_dir
2614: ac_install_sh="$ac_aux_dir/shtool install -c"
2615: break
2616: fi
1.14 bertrand 2617: done
1.15 bertrand 2618: if test -z "$ac_aux_dir"; then
1.36 bertrand 2619: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15 bertrand 2620: fi
1.14 bertrand 2621:
1.15 bertrand 2622: # These three variables are undocumented and unsupported,
2623: # and are intended to be withdrawn in a future Autoconf release.
2624: # They can cause serious problems if a builder's source tree is in a directory
2625: # whose full name contains unusual characters.
2626: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2627: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2628: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.14 bertrand 2629:
2630:
1.15 bertrand 2631: # Make sure we can run config.sub.
2632: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36 bertrand 2633: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14 bertrand 2634:
1.15 bertrand 2635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2636: $as_echo_n "checking build system type... " >&6; }
2637: if test "${ac_cv_build+set}" = set; then :
2638: $as_echo_n "(cached) " >&6
1.14 bertrand 2639: else
1.15 bertrand 2640: ac_build_alias=$build_alias
2641: test "x$ac_build_alias" = x &&
2642: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2643: test "x$ac_build_alias" = x &&
1.36 bertrand 2644: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15 bertrand 2645: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36 bertrand 2646: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14 bertrand 2647:
2648: fi
1.15 bertrand 2649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2650: $as_echo "$ac_cv_build" >&6; }
2651: case $ac_cv_build in
2652: *-*-*) ;;
1.36 bertrand 2653: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1.15 bertrand 2654: esac
2655: build=$ac_cv_build
2656: ac_save_IFS=$IFS; IFS='-'
2657: set x $ac_cv_build
2658: shift
2659: build_cpu=$1
2660: build_vendor=$2
2661: shift; shift
2662: # Remember, the first character of IFS is used to create $*,
2663: # except with old shells:
2664: build_os=$*
2665: IFS=$ac_save_IFS
2666: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2667:
2668:
1.15 bertrand 2669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2670: $as_echo_n "checking host system type... " >&6; }
2671: if test "${ac_cv_host+set}" = set; then :
2672: $as_echo_n "(cached) " >&6
1.14 bertrand 2673: else
1.15 bertrand 2674: if test "x$host_alias" = x; then
2675: ac_cv_host=$ac_cv_build
1.14 bertrand 2676: else
1.15 bertrand 2677: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36 bertrand 2678: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 bertrand 2679: fi
2680:
2681: fi
1.15 bertrand 2682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2683: $as_echo "$ac_cv_host" >&6; }
2684: case $ac_cv_host in
2685: *-*-*) ;;
1.36 bertrand 2686: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1.15 bertrand 2687: esac
2688: host=$ac_cv_host
2689: ac_save_IFS=$IFS; IFS='-'
2690: set x $ac_cv_host
2691: shift
2692: host_cpu=$1
2693: host_vendor=$2
2694: shift; shift
2695: # Remember, the first character of IFS is used to create $*,
2696: # except with old shells:
2697: host_os=$*
2698: IFS=$ac_save_IFS
2699: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2700:
2701:
1.15 bertrand 2702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2703: $as_echo_n "checking target system type... " >&6; }
2704: if test "${ac_cv_target+set}" = set; then :
2705: $as_echo_n "(cached) " >&6
2706: else
2707: if test "x$target_alias" = x; then
2708: ac_cv_target=$ac_cv_host
1.14 bertrand 2709: else
1.15 bertrand 2710: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36 bertrand 2711: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15 bertrand 2712: fi
1.14 bertrand 2713:
2714: fi
1.15 bertrand 2715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2716: $as_echo "$ac_cv_target" >&6; }
2717: case $ac_cv_target in
2718: *-*-*) ;;
1.36 bertrand 2719: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
1.15 bertrand 2720: esac
2721: target=$ac_cv_target
2722: ac_save_IFS=$IFS; IFS='-'
2723: set x $ac_cv_target
2724: shift
2725: target_cpu=$1
2726: target_vendor=$2
2727: shift; shift
2728: # Remember, the first character of IFS is used to create $*,
2729: # except with old shells:
2730: target_os=$*
2731: IFS=$ac_save_IFS
2732: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2733:
1.14 bertrand 2734:
1.15 bertrand 2735: # The aliases save the names the user supplied, while $host etc.
2736: # will get canonicalized.
2737: test -n "$target_alias" &&
2738: test "$program_prefix$program_suffix$program_transform_name" = \
2739: NONENONEs,x,x, &&
2740: program_prefix=${target_alias}-
1.1 bertrand 2741:
1.15 bertrand 2742: am__api_version='1.11'
1.1 bertrand 2743:
1.14 bertrand 2744: # Find a good install program. We prefer a C program (faster),
2745: # so one script is as good as another. But avoid the broken or
2746: # incompatible versions:
2747: # SysV /etc/install, /usr/sbin/install
2748: # SunOS /usr/etc/install
2749: # IRIX /sbin/install
2750: # AIX /bin/install
2751: # AmigaOS /C/install, which installs bootblocks on floppy discs
2752: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2753: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2754: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2755: # OS/2's system install, which has a completely different semantic
2756: # ./install, which can be erroneously created by make from ./install.sh.
1.15 bertrand 2757: # Reject install programs that cannot install multiple files.
2758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2759: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 bertrand 2760: if test -z "$INSTALL"; then
1.15 bertrand 2761: if test "${ac_cv_path_install+set}" = set; then :
2762: $as_echo_n "(cached) " >&6
1.14 bertrand 2763: else
2764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765: for as_dir in $PATH
2766: do
2767: IFS=$as_save_IFS
2768: test -z "$as_dir" && as_dir=.
1.15 bertrand 2769: # Account for people who put trailing slashes in PATH elements.
2770: case $as_dir/ in #((
2771: ./ | .// | /[cC]/* | \
1.14 bertrand 2772: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15 bertrand 2773: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 bertrand 2774: /usr/ucb/* ) ;;
2775: *)
2776: # OSF1 and SCO ODT 3.0 have their own names for install.
2777: # Don't use installbsd from OSF since it installs stuff as root
2778: # by default.
2779: for ac_prog in ginstall scoinst install; do
2780: for ac_exec_ext in '' $ac_executable_extensions; do
2781: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2782: if test $ac_prog = install &&
2783: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784: # AIX install. It has an incompatible calling convention.
2785: :
2786: elif test $ac_prog = install &&
2787: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2788: # program-specific install script used by HP pwplus--don't use.
2789: :
2790: else
1.15 bertrand 2791: rm -rf conftest.one conftest.two conftest.dir
2792: echo one > conftest.one
2793: echo two > conftest.two
2794: mkdir conftest.dir
2795: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2796: test -s conftest.one && test -s conftest.two &&
2797: test -s conftest.dir/conftest.one &&
2798: test -s conftest.dir/conftest.two
2799: then
2800: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2801: break 3
2802: fi
1.14 bertrand 2803: fi
2804: fi
2805: done
2806: done
2807: ;;
2808: esac
1.15 bertrand 2809:
2810: done
1.14 bertrand 2811: IFS=$as_save_IFS
1.1 bertrand 2812:
1.15 bertrand 2813: rm -rf conftest.one conftest.two conftest.dir
1.1 bertrand 2814:
1.14 bertrand 2815: fi
2816: if test "${ac_cv_path_install+set}" = set; then
2817: INSTALL=$ac_cv_path_install
2818: else
2819: # As a last resort, use the slow shell script. Don't cache a
2820: # value for INSTALL within a source directory, because that will
2821: # break other packages using the cache if that directory is
2822: # removed, or if the value is a relative name.
2823: INSTALL=$ac_install_sh
2824: fi
2825: fi
1.15 bertrand 2826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2827: $as_echo "$INSTALL" >&6; }
1.1 bertrand 2828:
1.14 bertrand 2829: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2830: # It thinks the first close brace ends the variable substitution.
2831: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 bertrand 2832:
1.14 bertrand 2833: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 bertrand 2834:
1.14 bertrand 2835: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 bertrand 2836:
1.15 bertrand 2837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2838: $as_echo_n "checking whether build environment is sane... " >&6; }
2839: # Just in case
2840: sleep 1
2841: echo timestamp > conftest.file
2842: # Reject unsafe characters in $srcdir or the absolute working directory
2843: # name. Accept space and tab only in the latter.
2844: am_lf='
2845: '
2846: case `pwd` in
2847: *[\\\"\#\$\&\'\`$am_lf]*)
1.36 bertrand 2848: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
1.15 bertrand 2849: esac
2850: case $srcdir in
2851: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.36 bertrand 2852: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
1.15 bertrand 2853: esac
2854:
2855: # Do `set' in a subshell so we don't clobber the current shell's
2856: # arguments. Must try -L first in case configure is actually a
2857: # symlink; some systems play weird games with the mod time of symlinks
2858: # (eg FreeBSD returns the mod time of the symlink's containing
2859: # directory).
2860: if (
2861: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2862: if test "$*" = "X"; then
2863: # -L didn't work.
2864: set X `ls -t "$srcdir/configure" conftest.file`
2865: fi
2866: rm -f conftest.file
2867: if test "$*" != "X $srcdir/configure conftest.file" \
2868: && test "$*" != "X conftest.file $srcdir/configure"; then
2869:
2870: # If neither matched, then we have a broken ls. This can happen
2871: # if, for instance, CONFIG_SHELL is bash and it inherits a
2872: # broken ls alias from the environment. This has actually
2873: # happened. Such a system could not be considered "sane".
1.36 bertrand 2874: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1.15 bertrand 2875: alias in your environment" "$LINENO" 5
2876: fi
2877:
2878: test "$2" = conftest.file
2879: )
2880: then
2881: # Ok.
2882: :
1.14 bertrand 2883: else
1.36 bertrand 2884: as_fn_error $? "newly created file is older than distributed files!
1.15 bertrand 2885: Check your system clock" "$LINENO" 5
1.14 bertrand 2886: fi
1.15 bertrand 2887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888: $as_echo "yes" >&6; }
2889: test "$program_prefix" != NONE &&
2890: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2891: # Use a double $ so make ignores it.
2892: test "$program_suffix" != NONE &&
2893: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2894: # Double any \ or $.
2895: # By default was `s,x,x', remove it if useless.
2896: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2897: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2898:
2899: # expand $ac_aux_dir to an absolute path
2900: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1 bertrand 2901:
1.15 bertrand 2902: if test x"${MISSING+set}" != xset; then
2903: case $am_aux_dir in
2904: *\ * | *\ *)
2905: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14 bertrand 2906: *)
1.15 bertrand 2907: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2908: esac
1.14 bertrand 2909: fi
1.15 bertrand 2910: # Use eval to expand $SHELL
2911: if eval "$MISSING --run true"; then
2912: am_missing_run="$MISSING --run "
1.14 bertrand 2913: else
1.15 bertrand 2914: am_missing_run=
2915: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2916: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2917: fi
2918:
2919: if test x"${install_sh}" != xset; then
2920: case $am_aux_dir in
2921: *\ * | *\ *)
2922: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2923: *)
2924: install_sh="\${SHELL} $am_aux_dir/install-sh"
2925: esac
1.14 bertrand 2926: fi
1.15 bertrand 2927:
2928: # Installed binaries are usually stripped using `strip' when the user
2929: # run `make install-strip'. However `strip' might not be the right
2930: # tool to use in cross-compilation environments, therefore Automake
2931: # will honor the `STRIP' environment variable to overrule this program.
2932: if test "$cross_compiling" != no; then
2933: if test -n "$ac_tool_prefix"; then
2934: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2935: set dummy ${ac_tool_prefix}strip; ac_word=$2
2936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937: $as_echo_n "checking for $ac_word... " >&6; }
2938: if test "${ac_cv_prog_STRIP+set}" = set; then :
2939: $as_echo_n "(cached) " >&6
1.14 bertrand 2940: else
1.15 bertrand 2941: if test -n "$STRIP"; then
2942: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14 bertrand 2943: else
2944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945: for as_dir in $PATH
2946: do
2947: IFS=$as_save_IFS
2948: test -z "$as_dir" && as_dir=.
1.15 bertrand 2949: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2950: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2951: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2953: break 2
2954: fi
2955: done
1.15 bertrand 2956: done
1.14 bertrand 2957: IFS=$as_save_IFS
1.1 bertrand 2958:
1.14 bertrand 2959: fi
2960: fi
1.15 bertrand 2961: STRIP=$ac_cv_prog_STRIP
2962: if test -n "$STRIP"; then
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2964: $as_echo "$STRIP" >&6; }
1.14 bertrand 2965: else
1.15 bertrand 2966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967: $as_echo "no" >&6; }
1.14 bertrand 2968: fi
1.1 bertrand 2969:
2970:
1.14 bertrand 2971: fi
1.15 bertrand 2972: if test -z "$ac_cv_prog_STRIP"; then
2973: ac_ct_STRIP=$STRIP
2974: # Extract the first word of "strip", so it can be a program name with args.
2975: set dummy strip; ac_word=$2
2976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977: $as_echo_n "checking for $ac_word... " >&6; }
2978: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2979: $as_echo_n "(cached) " >&6
1.14 bertrand 2980: else
1.15 bertrand 2981: if test -n "$ac_ct_STRIP"; then
2982: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 bertrand 2983: else
1.14 bertrand 2984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985: for as_dir in $PATH
1.1 bertrand 2986: do
1.14 bertrand 2987: IFS=$as_save_IFS
2988: test -z "$as_dir" && as_dir=.
1.15 bertrand 2989: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2990: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2991: ac_cv_prog_ac_ct_STRIP="strip"
2992: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2993: break 2
1.1 bertrand 2994: fi
2995: done
1.15 bertrand 2996: done
1.14 bertrand 2997: IFS=$as_save_IFS
1.1 bertrand 2998:
1.14 bertrand 2999: fi
3000: fi
1.15 bertrand 3001: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3002: if test -n "$ac_ct_STRIP"; then
3003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3004: $as_echo "$ac_ct_STRIP" >&6; }
1.1 bertrand 3005: else
1.15 bertrand 3006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007: $as_echo "no" >&6; }
1.1 bertrand 3008: fi
3009:
1.15 bertrand 3010: if test "x$ac_ct_STRIP" = x; then
3011: STRIP=":"
1.14 bertrand 3012: else
3013: case $cross_compiling:$ac_tool_warned in
3014: yes:)
1.15 bertrand 3015: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14 bertrand 3017: ac_tool_warned=yes ;;
3018: esac
1.15 bertrand 3019: STRIP=$ac_ct_STRIP
1.1 bertrand 3020: fi
1.14 bertrand 3021: else
1.15 bertrand 3022: STRIP="$ac_cv_prog_STRIP"
1.1 bertrand 3023: fi
3024:
1.15 bertrand 3025: fi
3026: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 bertrand 3027:
1.15 bertrand 3028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3029: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3030: if test -z "$MKDIR_P"; then
3031: if test "${ac_cv_path_mkdir+set}" = set; then :
3032: $as_echo_n "(cached) " >&6
1.14 bertrand 3033: else
1.15 bertrand 3034: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14 bertrand 3036: do
3037: IFS=$as_save_IFS
3038: test -z "$as_dir" && as_dir=.
1.15 bertrand 3039: for ac_prog in mkdir gmkdir; do
3040: for ac_exec_ext in '' $ac_executable_extensions; do
3041: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3042: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3043: 'mkdir (GNU coreutils) '* | \
3044: 'mkdir (coreutils) '* | \
3045: 'mkdir (fileutils) '4.1*)
3046: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3047: break 3;;
3048: esac
3049: done
3050: done
3051: done
1.14 bertrand 3052: IFS=$as_save_IFS
1.1 bertrand 3053:
3054: fi
1.15 bertrand 3055:
3056: test -d ./--version && rmdir ./--version
3057: if test "${ac_cv_path_mkdir+set}" = set; then
3058: MKDIR_P="$ac_cv_path_mkdir -p"
3059: else
3060: # As a last resort, use the slow shell script. Don't cache a
3061: # value for MKDIR_P within a source directory, because that will
3062: # break other packages using the cache if that directory is
3063: # removed, or if the value is a relative name.
3064: MKDIR_P="$ac_install_sh -d"
3065: fi
1.14 bertrand 3066: fi
1.15 bertrand 3067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3068: $as_echo "$MKDIR_P" >&6; }
1.1 bertrand 3069:
1.15 bertrand 3070: mkdir_p="$MKDIR_P"
3071: case $mkdir_p in
3072: [\\/$]* | ?:[\\/]*) ;;
3073: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3074: esac
1.1 bertrand 3075:
1.15 bertrand 3076: for ac_prog in gawk mawk nawk awk
3077: do
3078: # Extract the first word of "$ac_prog", so it can be a program name with args.
3079: set dummy $ac_prog; ac_word=$2
3080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081: $as_echo_n "checking for $ac_word... " >&6; }
3082: if test "${ac_cv_prog_AWK+set}" = set; then :
3083: $as_echo_n "(cached) " >&6
1.1 bertrand 3084: else
1.15 bertrand 3085: if test -n "$AWK"; then
3086: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 bertrand 3087: else
1.14 bertrand 3088: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089: for as_dir in $PATH
3090: do
3091: IFS=$as_save_IFS
3092: test -z "$as_dir" && as_dir=.
1.15 bertrand 3093: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3094: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3095: ac_cv_prog_AWK="$ac_prog"
3096: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3097: break 2
3098: fi
3099: done
1.15 bertrand 3100: done
1.14 bertrand 3101: IFS=$as_save_IFS
3102:
3103: fi
1.1 bertrand 3104: fi
1.15 bertrand 3105: AWK=$ac_cv_prog_AWK
3106: if test -n "$AWK"; then
3107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3108: $as_echo "$AWK" >&6; }
1.14 bertrand 3109: else
1.15 bertrand 3110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111: $as_echo "no" >&6; }
1.1 bertrand 3112: fi
3113:
3114:
1.15 bertrand 3115: test -n "$AWK" && break
3116: done
1.1 bertrand 3117:
1.15 bertrand 3118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3119: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3120: set x ${MAKE-make}
3121: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36 bertrand 3122: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15 bertrand 3123: $as_echo_n "(cached) " >&6
1.14 bertrand 3124: else
1.15 bertrand 3125: cat >conftest.make <<\_ACEOF
3126: SHELL = /bin/sh
3127: all:
3128: @echo '@@@%%%=$(MAKE)=@@@%%%'
3129: _ACEOF
1.36 bertrand 3130: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 3131: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3132: *@@@%%%=?*=@@@%%%*)
3133: eval ac_cv_prog_make_${ac_make}_set=yes;;
3134: *)
3135: eval ac_cv_prog_make_${ac_make}_set=no;;
3136: esac
3137: rm -f conftest.make
3138: fi
3139: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141: $as_echo "yes" >&6; }
3142: SET_MAKE=
1.1 bertrand 3143: else
1.15 bertrand 3144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145: $as_echo "no" >&6; }
3146: SET_MAKE="MAKE=${MAKE-make}"
3147: fi
1.1 bertrand 3148:
1.15 bertrand 3149: rm -rf .tst 2>/dev/null
3150: mkdir .tst 2>/dev/null
3151: if test -d .tst; then
3152: am__leading_dot=.
3153: else
3154: am__leading_dot=_
1.14 bertrand 3155: fi
1.15 bertrand 3156: rmdir .tst 2>/dev/null
3157:
3158: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3159: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3160: # is not polluted with repeated "-I."
3161: am__isrc=' -I$(srcdir)'
3162: # test to see if srcdir already configured
3163: if test -f $srcdir/config.status; then
1.36 bertrand 3164: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15 bertrand 3165: fi
1.1 bertrand 3166: fi
1.15 bertrand 3167:
3168: # test whether we have cygpath
3169: if test -z "$CYGPATH_W"; then
3170: if (cygpath --version) >/dev/null 2>/dev/null; then
3171: CYGPATH_W='cygpath -w'
3172: else
3173: CYGPATH_W=echo
3174: fi
1.1 bertrand 3175: fi
3176:
3177:
1.15 bertrand 3178: # Define the identity of the package.
3179: PACKAGE='rpl'
1.38 bertrand 3180: VERSION='4.0.19'
1.15 bertrand 3181:
3182:
3183: cat >>confdefs.h <<_ACEOF
3184: #define PACKAGE "$PACKAGE"
3185: _ACEOF
3186:
3187:
3188: cat >>confdefs.h <<_ACEOF
3189: #define VERSION "$VERSION"
3190: _ACEOF
3191:
3192: # Some tools Automake needs.
3193:
3194: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3195:
3196:
3197: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3198:
3199:
3200: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3201:
3202:
3203: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3204:
3205:
3206: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3207:
3208: # We need awk for the "check" target. The system "awk" is bad on
3209: # some platforms.
3210: # Always define AMTAR for backward compatibility.
3211:
3212: AMTAR=${AMTAR-"${am_missing_run}tar"}
3213:
3214: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3215:
3216:
3217:
3218:
1.1 bertrand 3219:
3220:
1.15 bertrand 3221: ac_config_headers="$ac_config_headers rplconfig.h"
1.1 bertrand 3222:
3223:
1.27 bertrand 3224: NCURSES=ncurses-5.7-20100619
1.15 bertrand 3225: READLINE=readline-6.1
1.30 bertrand 3226: UNITS=units-1.88
1.15 bertrand 3227: GSL=gsl-1.14
3228: GPP=gpp-2.24
3229: GNUPLOT=gnuplot-4.4.0
3230: FILE=file-5.03
3231: ICONV=libiconv-1.13.1
1.39 bertrand 3232: SQLITE=sqlite-3.7.2
1.26 bertrand 3233: OPENSSL=openssl-1.0.0a
1.14 bertrand 3234:
1.15 bertrand 3235: ac_ext=c
3236: ac_cpp='$CPP $CPPFLAGS'
3237: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240: if test -n "$ac_tool_prefix"; then
1.23 bertrand 3241: for ac_prog in gcc
1.15 bertrand 3242: do
3243: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246: $as_echo_n "checking for $ac_word... " >&6; }
3247: if test "${ac_cv_prog_CC+set}" = set; then :
3248: $as_echo_n "(cached) " >&6
1.1 bertrand 3249: else
1.15 bertrand 3250: if test -n "$CC"; then
3251: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 bertrand 3252: else
3253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254: for as_dir in $PATH
3255: do
3256: IFS=$as_save_IFS
3257: test -z "$as_dir" && as_dir=.
1.15 bertrand 3258: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3259: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3260: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3261: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3262: break 2
3263: fi
3264: done
1.15 bertrand 3265: done
1.1 bertrand 3266: IFS=$as_save_IFS
3267:
3268: fi
3269: fi
1.15 bertrand 3270: CC=$ac_cv_prog_CC
3271: if test -n "$CC"; then
3272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273: $as_echo "$CC" >&6; }
1.1 bertrand 3274: else
1.15 bertrand 3275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276: $as_echo "no" >&6; }
1.1 bertrand 3277: fi
3278:
3279:
1.15 bertrand 3280: test -n "$CC" && break
3281: done
3282: fi
3283: if test -z "$CC"; then
3284: ac_ct_CC=$CC
1.23 bertrand 3285: for ac_prog in gcc
1.15 bertrand 3286: do
3287: # Extract the first word of "$ac_prog", so it can be a program name with args.
3288: set dummy $ac_prog; ac_word=$2
3289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290: $as_echo_n "checking for $ac_word... " >&6; }
3291: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3292: $as_echo_n "(cached) " >&6
1.1 bertrand 3293: else
1.15 bertrand 3294: if test -n "$ac_ct_CC"; then
3295: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 bertrand 3296: else
3297: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298: for as_dir in $PATH
3299: do
3300: IFS=$as_save_IFS
3301: test -z "$as_dir" && as_dir=.
1.15 bertrand 3302: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3303: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3304: ac_cv_prog_ac_ct_CC="$ac_prog"
3305: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3306: break 2
3307: fi
3308: done
1.15 bertrand 3309: done
1.1 bertrand 3310: IFS=$as_save_IFS
3311:
3312: fi
3313: fi
1.15 bertrand 3314: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315: if test -n "$ac_ct_CC"; then
3316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3317: $as_echo "$ac_ct_CC" >&6; }
1.1 bertrand 3318: else
1.15 bertrand 3319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320: $as_echo "no" >&6; }
1.1 bertrand 3321: fi
3322:
3323:
1.15 bertrand 3324: test -n "$ac_ct_CC" && break
3325: done
1.1 bertrand 3326:
1.15 bertrand 3327: if test "x$ac_ct_CC" = x; then
3328: CC=""
3329: else
3330: case $cross_compiling:$ac_tool_warned in
3331: yes:)
3332: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3333: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334: ac_tool_warned=yes ;;
3335: esac
3336: CC=$ac_ct_CC
1.1 bertrand 3337: fi
3338: fi
3339:
3340:
1.15 bertrand 3341: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3343: as_fn_error $? "no acceptable C compiler found in \$PATH
3344: See \`config.log' for more details" "$LINENO" 5 ; }
1.1 bertrand 3345:
1.15 bertrand 3346: # Provide some information about the compiler.
3347: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3348: set X $ac_compile
3349: ac_compiler=$2
3350: for ac_option in --version -v -V -qversion; do
3351: { { ac_try="$ac_compiler $ac_option >&5"
3352: case "(($ac_try" in
3353: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354: *) ac_try_echo=$ac_try;;
3355: esac
3356: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357: $as_echo "$ac_try_echo"; } >&5
3358: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359: ac_status=$?
3360: if test -s conftest.err; then
3361: sed '10a\
3362: ... rest of stderr output deleted ...
3363: 10q' conftest.err >conftest.er1
3364: cat conftest.er1 >&5
1.1 bertrand 3365: fi
1.15 bertrand 3366: rm -f conftest.er1 conftest.err
3367: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368: test $ac_status = 0; }
1.1 bertrand 3369: done
3370:
1.15 bertrand 3371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372: /* end confdefs.h. */
3373:
3374: int
3375: main ()
3376: {
1.14 bertrand 3377:
1.15 bertrand 3378: ;
3379: return 0;
3380: }
3381: _ACEOF
3382: ac_clean_files_save=$ac_clean_files
3383: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384: # Try to create an executable without -o first, disregard a.out.
3385: # It will help us diagnose broken compilers, and finding out an intuition
3386: # of exeext.
3387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388: $as_echo_n "checking whether the C compiler works... " >&6; }
3389: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14 bertrand 3390:
1.15 bertrand 3391: # The possible output files:
3392: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1 bertrand 3393:
1.15 bertrand 3394: ac_rmfiles=
3395: for ac_file in $ac_files
1.1 bertrand 3396: do
1.15 bertrand 3397: case $ac_file in
3398: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400: esac
1.1 bertrand 3401: done
1.15 bertrand 3402: rm -f $ac_rmfiles
3403:
3404: if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3412: ac_status=$?
3413: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414: test $ac_status = 0; }; then :
3415: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3418: # so that the user can short-circuit this test for compilers unknown to
3419: # Autoconf.
3420: for ac_file in $ac_files ''
3421: do
3422: test -f "$ac_file" || continue
3423: case $ac_file in
3424: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3425: ;;
3426: [ab].out )
3427: # We found the default executable, but exeext='' is most
3428: # certainly right.
3429: break;;
3430: *.* )
3431: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432: then :; else
3433: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434: fi
3435: # We set ac_cv_exeext here because the later test for it is not
3436: # safe: cross compilers may not add the suffix if given an `-o'
3437: # argument, so we may need to know it at that point already.
3438: # Even if this section looks crufty: it has the advantage of
3439: # actually working.
3440: break;;
3441: * )
3442: break;;
3443: esac
1.14 bertrand 3444: done
1.15 bertrand 3445: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1 bertrand 3446:
1.14 bertrand 3447: else
1.15 bertrand 3448: ac_file=''
1.1 bertrand 3449: fi
1.15 bertrand 3450: if test -z "$ac_file"; then :
3451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452: $as_echo "no" >&6; }
3453: $as_echo "$as_me: failed program was:" >&5
3454: sed 's/^/| /' conftest.$ac_ext >&5
3455:
3456: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3458: as_fn_error 77 "C compiler cannot create executables
3459: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 3460: else
3461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462: $as_echo "yes" >&6; }
3463: fi
3464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3465: $as_echo_n "checking for C compiler default output file name... " >&6; }
3466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467: $as_echo "$ac_file" >&6; }
3468: ac_exeext=$ac_cv_exeext
1.1 bertrand 3469:
1.15 bertrand 3470: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3471: ac_clean_files=$ac_clean_files_save
3472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3473: $as_echo_n "checking for suffix of executables... " >&6; }
3474: if { { ac_try="$ac_link"
3475: case "(($ac_try" in
3476: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477: *) ac_try_echo=$ac_try;;
3478: esac
3479: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480: $as_echo "$ac_try_echo"; } >&5
3481: (eval "$ac_link") 2>&5
3482: ac_status=$?
3483: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484: test $ac_status = 0; }; then :
3485: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3486: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3487: # work properly (i.e., refer to `conftest.exe'), while it won't with
3488: # `rm'.
3489: for ac_file in conftest.exe conftest conftest.*; do
3490: test -f "$ac_file" || continue
3491: case $ac_file in
3492: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494: break;;
3495: * ) break;;
3496: esac
3497: done
1.14 bertrand 3498: else
1.15 bertrand 3499: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3501: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3502: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 3503: fi
3504: rm -f conftest conftest$ac_cv_exeext
3505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3506: $as_echo "$ac_cv_exeext" >&6; }
3507:
3508: rm -f conftest.$ac_ext
3509: EXEEXT=$ac_cv_exeext
3510: ac_exeext=$EXEEXT
3511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3512: /* end confdefs.h. */
1.15 bertrand 3513: #include <stdio.h>
1.14 bertrand 3514: int
3515: main ()
3516: {
1.15 bertrand 3517: FILE *f = fopen ("conftest.out", "w");
3518: return ferror (f) || fclose (f) != 0;
3519:
1.14 bertrand 3520: ;
3521: return 0;
3522: }
3523: _ACEOF
1.15 bertrand 3524: ac_clean_files="$ac_clean_files conftest.out"
3525: # Check that the compiler produces executables we can run. If not, either
3526: # the compiler is broken, or we cross compile.
3527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3528: $as_echo_n "checking whether we are cross compiling... " >&6; }
3529: if test "$cross_compiling" != yes; then
3530: { { ac_try="$ac_link"
1.1 bertrand 3531: case "(($ac_try" in
3532: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533: *) ac_try_echo=$ac_try;;
3534: esac
1.15 bertrand 3535: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536: $as_echo "$ac_try_echo"; } >&5
3537: (eval "$ac_link") 2>&5
3538: ac_status=$?
3539: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540: test $ac_status = 0; }
3541: if { ac_try='./conftest$ac_cv_exeext'
3542: { { case "(($ac_try" in
3543: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544: *) ac_try_echo=$ac_try;;
3545: esac
3546: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547: $as_echo "$ac_try_echo"; } >&5
3548: (eval "$ac_try") 2>&5
1.1 bertrand 3549: ac_status=$?
1.15 bertrand 3550: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551: test $ac_status = 0; }; }; then
3552: cross_compiling=no
3553: else
3554: if test "$cross_compiling" = maybe; then
3555: cross_compiling=yes
3556: else
3557: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3559: as_fn_error $? "cannot run C compiled programs.
1.15 bertrand 3560: If you meant to cross compile, use \`--host'.
1.36 bertrand 3561: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 3562: fi
3563: fi
1.14 bertrand 3564: fi
1.15 bertrand 3565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566: $as_echo "$cross_compiling" >&6; }
1.14 bertrand 3567:
1.15 bertrand 3568: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3569: ac_clean_files=$ac_clean_files_save
3570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3571: $as_echo_n "checking for suffix of object files... " >&6; }
3572: if test "${ac_cv_objext+set}" = set; then :
3573: $as_echo_n "(cached) " >&6
1.14 bertrand 3574: else
1.15 bertrand 3575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 3576: /* end confdefs.h. */
3577:
3578: int
3579: main ()
3580: {
1.15 bertrand 3581:
1.1 bertrand 3582: ;
3583: return 0;
3584: }
3585: _ACEOF
1.15 bertrand 3586: rm -f conftest.o conftest.obj
3587: if { { ac_try="$ac_compile"
1.1 bertrand 3588: case "(($ac_try" in
3589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590: *) ac_try_echo=$ac_try;;
3591: esac
1.15 bertrand 3592: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593: $as_echo "$ac_try_echo"; } >&5
3594: (eval "$ac_compile") 2>&5
1.1 bertrand 3595: ac_status=$?
1.15 bertrand 3596: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597: test $ac_status = 0; }; then :
3598: for ac_file in conftest.o conftest.obj conftest.*; do
3599: test -f "$ac_file" || continue;
3600: case $ac_file in
3601: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603: break;;
3604: esac
3605: done
1.14 bertrand 3606: else
1.15 bertrand 3607: $as_echo "$as_me: failed program was:" >&5
1.14 bertrand 3608: sed 's/^/| /' conftest.$ac_ext >&5
3609:
1.15 bertrand 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 compute suffix of object files: cannot compile
3613: See \`config.log' for more details" "$LINENO" 5 ; }
1.14 bertrand 3614: fi
1.15 bertrand 3615: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616: fi
3617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3618: $as_echo "$ac_cv_objext" >&6; }
3619: OBJEXT=$ac_cv_objext
3620: ac_objext=$OBJEXT
3621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3622: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3623: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3624: $as_echo_n "(cached) " >&6
3625: else
3626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627: /* end confdefs.h. */
3628:
3629: int
3630: main ()
3631: {
3632: #ifndef __GNUC__
3633: choke me
3634: #endif
1.14 bertrand 3635:
1.15 bertrand 3636: ;
3637: return 0;
3638: }
3639: _ACEOF
3640: if ac_fn_c_try_compile "$LINENO"; then :
3641: ac_compiler_gnu=yes
1.14 bertrand 3642: else
1.15 bertrand 3643: ac_compiler_gnu=no
1.14 bertrand 3644: fi
1.15 bertrand 3645: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14 bertrand 3647:
1.15 bertrand 3648: fi
3649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3650: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3651: if test $ac_compiler_gnu = yes; then
3652: GCC=yes
1.14 bertrand 3653: else
1.15 bertrand 3654: GCC=
1.14 bertrand 3655: fi
1.15 bertrand 3656: ac_test_CFLAGS=${CFLAGS+set}
3657: ac_save_CFLAGS=$CFLAGS
3658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3659: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3660: if test "${ac_cv_prog_cc_g+set}" = set; then :
3661: $as_echo_n "(cached) " >&6
3662: else
3663: ac_save_c_werror_flag=$ac_c_werror_flag
3664: ac_c_werror_flag=yes
3665: ac_cv_prog_cc_g=no
3666: CFLAGS="-g"
3667: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668: /* end confdefs.h. */
1.14 bertrand 3669:
1.15 bertrand 3670: int
3671: main ()
3672: {
1.14 bertrand 3673:
1.15 bertrand 3674: ;
3675: return 0;
3676: }
3677: _ACEOF
3678: if ac_fn_c_try_compile "$LINENO"; then :
3679: ac_cv_prog_cc_g=yes
3680: else
3681: CFLAGS=""
3682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683: /* end confdefs.h. */
1.14 bertrand 3684:
1.15 bertrand 3685: int
3686: main ()
3687: {
1.14 bertrand 3688:
1.15 bertrand 3689: ;
3690: return 0;
3691: }
3692: _ACEOF
3693: if ac_fn_c_try_compile "$LINENO"; then :
1.14 bertrand 3694:
1.15 bertrand 3695: else
3696: ac_c_werror_flag=$ac_save_c_werror_flag
3697: CFLAGS="-g"
3698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699: /* end confdefs.h. */
1.14 bertrand 3700:
1.15 bertrand 3701: int
3702: main ()
3703: {
1.14 bertrand 3704:
1.15 bertrand 3705: ;
3706: return 0;
3707: }
3708: _ACEOF
3709: if ac_fn_c_try_compile "$LINENO"; then :
3710: ac_cv_prog_cc_g=yes
3711: fi
3712: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713: fi
3714: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715: fi
3716: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717: ac_c_werror_flag=$ac_save_c_werror_flag
3718: fi
3719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3720: $as_echo "$ac_cv_prog_cc_g" >&6; }
3721: if test "$ac_test_CFLAGS" = set; then
3722: CFLAGS=$ac_save_CFLAGS
3723: elif test $ac_cv_prog_cc_g = yes; then
3724: if test "$GCC" = yes; then
3725: CFLAGS="-g -O2"
3726: else
3727: CFLAGS="-g"
3728: fi
3729: else
3730: if test "$GCC" = yes; then
3731: CFLAGS="-O2"
3732: else
3733: CFLAGS=
3734: fi
3735: fi
3736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3737: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3738: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3739: $as_echo_n "(cached) " >&6
1.1 bertrand 3740: else
1.15 bertrand 3741: ac_cv_prog_cc_c89=no
3742: ac_save_CC=$CC
3743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3744: /* end confdefs.h. */
1.15 bertrand 3745: #include <stdarg.h>
3746: #include <stdio.h>
3747: #include <sys/types.h>
3748: #include <sys/stat.h>
3749: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3750: struct buf { int x; };
3751: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752: static char *e (p, i)
3753: char **p;
3754: int i;
3755: {
3756: return p[i];
3757: }
3758: static char *f (char * (*g) (char **, int), char **p, ...)
3759: {
3760: char *s;
3761: va_list v;
3762: va_start (v,p);
3763: s = g (p, va_arg (v,int));
3764: va_end (v);
3765: return s;
3766: }
3767:
3768: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3769: function prototypes and stuff, but not '\xHH' hex character constants.
3770: These don't provoke an error unfortunately, instead are silently treated
3771: as 'x'. The following induces an error, until -std is added to get
3772: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3773: array size at least. It's necessary to write '\x00'==0 to get something
3774: that's true only with -std. */
3775: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14 bertrand 3776:
1.15 bertrand 3777: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778: inside strings and character constants. */
3779: #define FOO(x) 'x'
3780: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1 bertrand 3781:
1.15 bertrand 3782: int test (int i, double x);
3783: struct s1 {int (*f) (int a);};
3784: struct s2 {int (*f) (double a);};
3785: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786: int argc;
3787: char **argv;
1.14 bertrand 3788: int
3789: main ()
3790: {
1.15 bertrand 3791: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.14 bertrand 3792: ;
3793: return 0;
3794: }
3795: _ACEOF
1.15 bertrand 3796: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798: do
3799: CC="$ac_save_CC $ac_arg"
3800: if ac_fn_c_try_compile "$LINENO"; then :
3801: ac_cv_prog_cc_c89=$ac_arg
3802: fi
3803: rm -f core conftest.err conftest.$ac_objext
3804: test "x$ac_cv_prog_cc_c89" != "xno" && break
3805: done
3806: rm -f conftest.$ac_ext
3807: CC=$ac_save_CC
3808:
3809: fi
3810: # AC_CACHE_VAL
3811: case "x$ac_cv_prog_cc_c89" in
3812: x)
3813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3814: $as_echo "none needed" >&6; } ;;
3815: xno)
3816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3817: $as_echo "unsupported" >&6; } ;;
3818: *)
3819: CC="$CC $ac_cv_prog_cc_c89"
3820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3821: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 bertrand 3822: esac
1.15 bertrand 3823: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14 bertrand 3824:
3825: fi
3826:
1.15 bertrand 3827: ac_ext=c
3828: ac_cpp='$CPP $CPPFLAGS'
3829: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832: DEPDIR="${am__leading_dot}deps"
3833:
3834: ac_config_commands="$ac_config_commands depfiles"
3835:
3836:
3837: am_make=${MAKE-make}
3838: cat > confinc << 'END'
3839: am__doit:
3840: @echo this is the am__doit target
3841: .PHONY: am__doit
3842: END
3843: # If we don't find an include directive, just comment out the code.
3844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3845: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3846: am__include="#"
3847: am__quote=
3848: _am_result=none
3849: # First try GNU make style include.
3850: echo "include confinc" > confmf
3851: # Ignore all kinds of additional output from `make'.
3852: case `$am_make -s -f confmf 2> /dev/null` in #(
3853: *the\ am__doit\ target*)
3854: am__include=include
3855: am__quote=
3856: _am_result=GNU
3857: ;;
3858: esac
3859: # Now try BSD make style include.
3860: if test "$am__include" = "#"; then
3861: echo '.include "confinc"' > confmf
3862: case `$am_make -s -f confmf 2> /dev/null` in #(
3863: *the\ am__doit\ target*)
3864: am__include=.include
3865: am__quote="\""
3866: _am_result=BSD
3867: ;;
3868: esac
1.14 bertrand 3869: fi
3870:
3871:
1.15 bertrand 3872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3873: $as_echo "$_am_result" >&6; }
3874: rm -f confinc confmf
3875:
3876: # Check whether --enable-dependency-tracking was given.
3877: if test "${enable_dependency_tracking+set}" = set; then :
3878: enableval=$enable_dependency_tracking;
3879: fi
3880:
3881: if test "x$enable_dependency_tracking" != xno; then
3882: am_depcomp="$ac_aux_dir/depcomp"
3883: AMDEPBACKSLASH='\'
3884: fi
3885: if test "x$enable_dependency_tracking" != xno; then
3886: AMDEP_TRUE=
3887: AMDEP_FALSE='#'
1.1 bertrand 3888: else
1.15 bertrand 3889: AMDEP_TRUE='#'
3890: AMDEP_FALSE=
1.14 bertrand 3891: fi
1.1 bertrand 3892:
1.14 bertrand 3893:
3894:
1.15 bertrand 3895: depcc="$CC" am_compiler_list=
1.14 bertrand 3896:
1.15 bertrand 3897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3898: $as_echo_n "checking dependency style of $depcc... " >&6; }
3899: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3900: $as_echo_n "(cached) " >&6
1.14 bertrand 3901: else
1.15 bertrand 3902: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3903: # We make a subdir and do the tests there. Otherwise we can end up
3904: # making bogus files that we don't know about and never remove. For
3905: # instance it was reported that on HP-UX the gcc test will end up
3906: # making a dummy file named `D' -- because `-MD' means `put the output
3907: # in D'.
3908: mkdir conftest.dir
3909: # Copy depcomp to subdir because otherwise we won't find it if we're
3910: # using a relative directory.
3911: cp "$am_depcomp" conftest.dir
3912: cd conftest.dir
3913: # We will build objects and dependencies in a subdirectory because
3914: # it helps to detect inapplicable dependency modes. For instance
3915: # both Tru64's cc and ICC support -MD to output dependencies as a
3916: # side effect of compilation, but ICC will put the dependencies in
3917: # the current directory while Tru64 will put them in the object
3918: # directory.
3919: mkdir sub
1.14 bertrand 3920:
1.15 bertrand 3921: am_cv_CC_dependencies_compiler_type=none
3922: if test "$am_compiler_list" = ""; then
3923: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3924: fi
3925: am__universal=false
3926: case " $depcc " in #(
3927: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3928: esac
1.14 bertrand 3929:
1.15 bertrand 3930: for depmode in $am_compiler_list; do
3931: # Setup a source with many dependencies, because some compilers
3932: # like to wrap large dependency lists on column 80 (with \), and
3933: # we should not choose a depcomp mode which is confused by this.
3934: #
3935: # We need to recreate these files for each test, as the compiler may
3936: # overwrite some of them when testing with obscure command lines.
3937: # This happens at least with the AIX C compiler.
3938: : > sub/conftest.c
3939: for i in 1 2 3 4 5 6; do
3940: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3941: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3942: # Solaris 8's {/usr,}/bin/sh.
3943: touch sub/conftst$i.h
3944: done
3945: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 bertrand 3946:
1.15 bertrand 3947: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3948: # mode. It turns out that the SunPro C++ compiler does not properly
3949: # handle `-M -o', and we need to detect this. Also, some Intel
3950: # versions had trouble with output in subdirs
3951: am__obj=sub/conftest.${OBJEXT-o}
3952: am__minus_obj="-o $am__obj"
3953: case $depmode in
3954: gcc)
3955: # This depmode causes a compiler race in universal mode.
3956: test "$am__universal" = false || continue
3957: ;;
3958: nosideeffect)
3959: # after this tag, mechanisms are not by side-effect, so they'll
3960: # only be used when explicitly requested
3961: if test "x$enable_dependency_tracking" = xyes; then
3962: continue
3963: else
3964: break
3965: fi
3966: ;;
3967: msvisualcpp | msvcmsys)
3968: # This compiler won't grok `-c -o', but also, the minuso test has
3969: # not run yet. These depmodes are late enough in the game, and
3970: # so weak that their functioning should not be impacted.
3971: am__obj=conftest.${OBJEXT-o}
3972: am__minus_obj=
3973: ;;
3974: none) break ;;
3975: esac
3976: if depmode=$depmode \
3977: source=sub/conftest.c object=$am__obj \
3978: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3979: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3980: >/dev/null 2>conftest.err &&
3981: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3982: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3983: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3984: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3985: # icc doesn't choke on unknown options, it will just issue warnings
3986: # or remarks (even with -Werror). So we grep stderr for any message
3987: # that says an option was ignored or not supported.
3988: # When given -MP, icc 7.0 and 7.1 complain thusly:
3989: # icc: Command line warning: ignoring option '-M'; no argument required
3990: # The diagnosis changed in icc 8.0:
3991: # icc: Command line remark: option '-MP' not supported
3992: if (grep 'ignoring option' conftest.err ||
3993: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3994: am_cv_CC_dependencies_compiler_type=$depmode
3995: break
3996: fi
3997: fi
3998: done
1.14 bertrand 3999:
1.15 bertrand 4000: cd ..
4001: rm -rf conftest.dir
1.14 bertrand 4002: else
1.15 bertrand 4003: am_cv_CC_dependencies_compiler_type=none
1.1 bertrand 4004: fi
4005:
1.15 bertrand 4006: fi
4007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4008: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4009: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 bertrand 4010:
1.15 bertrand 4011: if
4012: test "x$enable_dependency_tracking" != xno \
4013: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4014: am__fastdepCC_TRUE=
4015: am__fastdepCC_FALSE='#'
1.1 bertrand 4016: else
1.15 bertrand 4017: am__fastdepCC_TRUE='#'
4018: am__fastdepCC_FALSE=
4019: fi
4020:
1.1 bertrand 4021:
4022:
1.30 bertrand 4023: EXT_SQL=
4024:
1.15 bertrand 4025: if test x"$CC" != x""; then
4026: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4027: awk -F. '{ printf("%s", $1);}'`
4028: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4029: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4030: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4031: OPTIMISATION_C=-O3
4032: else
1.23 bertrand 4033: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4034: then
1.15 bertrand 4035: OPTIMISATION_C=-O3
4036: else
1.23 bertrand 4037: if test $GCC_VERSION_MAJEURE -ge 2; then
4038: OPTIMISATION_C=-O2
4039: else
1.36 bertrand 4040: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23 bertrand 4041: fi
1.15 bertrand 4042: fi
4043: fi
1.14 bertrand 4044: fi
4045:
1.15 bertrand 4046: if test "x$CC" != xcc; then
4047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4048: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14 bertrand 4049: else
1.15 bertrand 4050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4051: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1 bertrand 4052: fi
1.15 bertrand 4053: set dummy $CC; ac_cc=`$as_echo "$2" |
4054: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.36 bertrand 4055: if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
1.15 bertrand 4056: $as_echo_n "(cached) " >&6
1.1 bertrand 4057: else
1.15 bertrand 4058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 4059: /* end confdefs.h. */
4060:
4061: int
4062: main ()
4063: {
1.15 bertrand 4064:
1.1 bertrand 4065: ;
4066: return 0;
4067: }
4068: _ACEOF
1.15 bertrand 4069: # Make sure it works both with $CC and with simple cc.
4070: # We do the test twice because some compilers refuse to overwrite an
4071: # existing .o file with -o, though they will create one.
4072: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4073: rm -f conftest2.*
4074: if { { case "(($ac_try" in
4075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076: *) ac_try_echo=$ac_try;;
4077: esac
4078: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079: $as_echo "$ac_try_echo"; } >&5
4080: (eval "$ac_try") 2>&5
4081: ac_status=$?
4082: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083: test $ac_status = 0; } &&
4084: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4085: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086: *) ac_try_echo=$ac_try;;
4087: esac
4088: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089: $as_echo "$ac_try_echo"; } >&5
4090: (eval "$ac_try") 2>&5
4091: ac_status=$?
4092: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093: test $ac_status = 0; };
4094: then
4095: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4096: if test "x$CC" != xcc; then
4097: # Test first that cc exists at all.
4098: if { ac_try='cc -c conftest.$ac_ext >&5'
4099: { { case "(($ac_try" in
4100: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101: *) ac_try_echo=$ac_try;;
4102: esac
4103: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104: $as_echo "$ac_try_echo"; } >&5
4105: (eval "$ac_try") 2>&5
4106: ac_status=$?
4107: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108: test $ac_status = 0; }; }; then
4109: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4110: rm -f conftest2.*
4111: if { { case "(($ac_try" in
4112: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113: *) ac_try_echo=$ac_try;;
4114: esac
4115: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116: $as_echo "$ac_try_echo"; } >&5
4117: (eval "$ac_try") 2>&5
4118: ac_status=$?
4119: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120: test $ac_status = 0; } &&
4121: test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14 bertrand 4122: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123: *) ac_try_echo=$ac_try;;
4124: esac
1.15 bertrand 4125: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126: $as_echo "$ac_try_echo"; } >&5
4127: (eval "$ac_try") 2>&5
1.14 bertrand 4128: ac_status=$?
1.15 bertrand 4129: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130: test $ac_status = 0; };
4131: then
4132: # cc works too.
4133: :
4134: else
4135: # cc exists but doesn't like -o.
4136: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4137: fi
4138: fi
4139: fi
1.1 bertrand 4140: else
1.15 bertrand 4141: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4142: fi
4143: rm -f core conftest*
1.14 bertrand 4144:
1.1 bertrand 4145: fi
1.15 bertrand 4146: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4148: $as_echo "yes" >&6; }
4149: else
4150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151: $as_echo "no" >&6; }
4152:
4153: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1 bertrand 4154:
4155: fi
1.15 bertrand 4156:
4157: # FIXME: we rely on the cache variable name because
4158: # there is no other way.
4159: set dummy $CC
4160: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4161: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4162: if test "$am_t" != yes; then
4163: # Losing compiler, so override with the script.
4164: # FIXME: It is wrong to rewrite CC.
4165: # But if we don't then we get into trouble of one sort or another.
4166: # A longer-term fix would be to have automake use am__CC in this case,
4167: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4168: CC="$am_aux_dir/compile $CC"
1.1 bertrand 4169: fi
1.14 bertrand 4170:
4171:
1.15 bertrand 4172:
4173: if test "$GCC" != yes; then
1.36 bertrand 4174: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15 bertrand 4175: fi
4176:
4177: ac_ext=cpp
4178: ac_cpp='$CXXCPP $CPPFLAGS'
4179: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4182: if test -z "$CXX"; then
4183: if test -n "$CCC"; then
4184: CXX=$CCC
4185: else
4186: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4187: for ac_prog in g++
1.15 bertrand 4188: do
4189: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192: $as_echo_n "checking for $ac_word... " >&6; }
4193: if test "${ac_cv_prog_CXX+set}" = set; then :
4194: $as_echo_n "(cached) " >&6
1.1 bertrand 4195: else
1.15 bertrand 4196: if test -n "$CXX"; then
4197: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14 bertrand 4198: else
1.15 bertrand 4199: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200: for as_dir in $PATH
4201: do
4202: IFS=$as_save_IFS
4203: test -z "$as_dir" && as_dir=.
4204: for ac_exec_ext in '' $ac_executable_extensions; do
4205: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4207: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208: break 2
4209: fi
4210: done
4211: done
4212: IFS=$as_save_IFS
1.14 bertrand 4213:
4214: fi
4215: fi
1.15 bertrand 4216: CXX=$ac_cv_prog_CXX
4217: if test -n "$CXX"; then
4218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4219: $as_echo "$CXX" >&6; }
1.14 bertrand 4220: else
1.15 bertrand 4221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222: $as_echo "no" >&6; }
1.14 bertrand 4223: fi
4224:
4225:
1.15 bertrand 4226: test -n "$CXX" && break
4227: done
4228: fi
4229: if test -z "$CXX"; then
4230: ac_ct_CXX=$CXX
1.23 bertrand 4231: for ac_prog in g++
1.15 bertrand 4232: do
4233: # Extract the first word of "$ac_prog", so it can be a program name with args.
4234: set dummy $ac_prog; ac_word=$2
4235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236: $as_echo_n "checking for $ac_word... " >&6; }
4237: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4238: $as_echo_n "(cached) " >&6
4239: else
4240: if test -n "$ac_ct_CXX"; then
4241: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4242: else
4243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244: for as_dir in $PATH
4245: do
4246: IFS=$as_save_IFS
4247: test -z "$as_dir" && as_dir=.
4248: for ac_exec_ext in '' $ac_executable_extensions; do
4249: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250: ac_cv_prog_ac_ct_CXX="$ac_prog"
4251: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252: break 2
4253: fi
4254: done
4255: done
4256: IFS=$as_save_IFS
1.14 bertrand 4257:
1.15 bertrand 4258: fi
4259: fi
4260: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4261: if test -n "$ac_ct_CXX"; then
4262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4263: $as_echo "$ac_ct_CXX" >&6; }
1.1 bertrand 4264: else
1.15 bertrand 4265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266: $as_echo "no" >&6; }
1.14 bertrand 4267: fi
4268:
4269:
1.15 bertrand 4270: test -n "$ac_ct_CXX" && break
4271: done
1.14 bertrand 4272:
1.15 bertrand 4273: if test "x$ac_ct_CXX" = x; then
4274: CXX="g++"
4275: else
4276: case $cross_compiling:$ac_tool_warned in
4277: yes:)
4278: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280: ac_tool_warned=yes ;;
4281: esac
4282: CXX=$ac_ct_CXX
4283: fi
4284: fi
1.1 bertrand 4285:
1.15 bertrand 4286: fi
4287: fi
4288: # Provide some information about the compiler.
4289: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4290: set X $ac_compile
4291: ac_compiler=$2
4292: for ac_option in --version -v -V -qversion; do
4293: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4294: case "(($ac_try" in
4295: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296: *) ac_try_echo=$ac_try;;
4297: esac
1.15 bertrand 4298: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299: $as_echo "$ac_try_echo"; } >&5
4300: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4301: ac_status=$?
1.15 bertrand 4302: if test -s conftest.err; then
4303: sed '10a\
4304: ... rest of stderr output deleted ...
4305: 10q' conftest.err >conftest.er1
4306: cat conftest.er1 >&5
4307: fi
4308: rm -f conftest.er1 conftest.err
4309: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310: test $ac_status = 0; }
4311: done
4312:
4313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4314: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4315: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4316: $as_echo_n "(cached) " >&6
1.14 bertrand 4317: else
1.15 bertrand 4318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319: /* end confdefs.h. */
1.1 bertrand 4320:
4321: int
4322: main ()
4323: {
1.15 bertrand 4324: #ifndef __GNUC__
4325: choke me
4326: #endif
1.1 bertrand 4327:
4328: ;
4329: return 0;
4330: }
4331: _ACEOF
1.15 bertrand 4332: if ac_fn_cxx_try_compile "$LINENO"; then :
4333: ac_compiler_gnu=yes
1.1 bertrand 4334: else
1.15 bertrand 4335: ac_compiler_gnu=no
1.1 bertrand 4336: fi
1.14 bertrand 4337: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4338: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4339:
1.15 bertrand 4340: fi
4341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4342: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4343: if test $ac_compiler_gnu = yes; then
4344: GXX=yes
4345: else
4346: GXX=
4347: fi
4348: ac_test_CXXFLAGS=${CXXFLAGS+set}
4349: ac_save_CXXFLAGS=$CXXFLAGS
4350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4351: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4352: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4353: $as_echo_n "(cached) " >&6
4354: else
4355: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4356: ac_cxx_werror_flag=yes
4357: ac_cv_prog_cxx_g=no
4358: CXXFLAGS="-g"
4359: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 4360: /* end confdefs.h. */
1.15 bertrand 4361:
1.1 bertrand 4362: int
4363: main ()
4364: {
1.14 bertrand 4365:
1.1 bertrand 4366: ;
4367: return 0;
4368: }
4369: _ACEOF
1.15 bertrand 4370: if ac_fn_cxx_try_compile "$LINENO"; then :
4371: ac_cv_prog_cxx_g=yes
1.14 bertrand 4372: else
1.15 bertrand 4373: CXXFLAGS=""
4374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375: /* end confdefs.h. */
1.1 bertrand 4376:
1.14 bertrand 4377: int
4378: main ()
4379: {
1.1 bertrand 4380:
1.14 bertrand 4381: ;
4382: return 0;
4383: }
4384: _ACEOF
1.15 bertrand 4385: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 bertrand 4386:
4387: else
1.15 bertrand 4388: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4389: CXXFLAGS="-g"
4390: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391: /* end confdefs.h. */
1.1 bertrand 4392:
1.14 bertrand 4393: int
4394: main ()
4395: {
1.1 bertrand 4396:
1.14 bertrand 4397: ;
4398: return 0;
4399: }
4400: _ACEOF
1.15 bertrand 4401: if ac_fn_cxx_try_compile "$LINENO"; then :
4402: ac_cv_prog_cxx_g=yes
4403: fi
4404: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405: fi
4406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407: fi
4408: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4410: fi
4411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4412: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4413: if test "$ac_test_CXXFLAGS" = set; then
4414: CXXFLAGS=$ac_save_CXXFLAGS
4415: elif test $ac_cv_prog_cxx_g = yes; then
4416: if test "$GXX" = yes; then
4417: CXXFLAGS="-g -O2"
4418: else
4419: CXXFLAGS="-g"
4420: fi
4421: else
4422: if test "$GXX" = yes; then
4423: CXXFLAGS="-O2"
4424: else
4425: CXXFLAGS=
4426: fi
4427: fi
4428: ac_ext=c
4429: ac_cpp='$CPP $CPPFLAGS'
4430: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433:
4434: depcc="$CXX" am_compiler_list=
4435:
4436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4437: $as_echo_n "checking dependency style of $depcc... " >&6; }
4438: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4439: $as_echo_n "(cached) " >&6
4440: else
4441: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4442: # We make a subdir and do the tests there. Otherwise we can end up
4443: # making bogus files that we don't know about and never remove. For
4444: # instance it was reported that on HP-UX the gcc test will end up
4445: # making a dummy file named `D' -- because `-MD' means `put the output
4446: # in D'.
4447: mkdir conftest.dir
4448: # Copy depcomp to subdir because otherwise we won't find it if we're
4449: # using a relative directory.
4450: cp "$am_depcomp" conftest.dir
4451: cd conftest.dir
4452: # We will build objects and dependencies in a subdirectory because
4453: # it helps to detect inapplicable dependency modes. For instance
4454: # both Tru64's cc and ICC support -MD to output dependencies as a
4455: # side effect of compilation, but ICC will put the dependencies in
4456: # the current directory while Tru64 will put them in the object
4457: # directory.
4458: mkdir sub
4459:
4460: am_cv_CXX_dependencies_compiler_type=none
4461: if test "$am_compiler_list" = ""; then
4462: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463: fi
4464: am__universal=false
4465: case " $depcc " in #(
4466: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467: esac
4468:
4469: for depmode in $am_compiler_list; do
4470: # Setup a source with many dependencies, because some compilers
4471: # like to wrap large dependency lists on column 80 (with \), and
4472: # we should not choose a depcomp mode which is confused by this.
4473: #
4474: # We need to recreate these files for each test, as the compiler may
4475: # overwrite some of them when testing with obscure command lines.
4476: # This happens at least with the AIX C compiler.
4477: : > sub/conftest.c
4478: for i in 1 2 3 4 5 6; do
4479: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4481: # Solaris 8's {/usr,}/bin/sh.
4482: touch sub/conftst$i.h
4483: done
4484: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485:
4486: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4487: # mode. It turns out that the SunPro C++ compiler does not properly
4488: # handle `-M -o', and we need to detect this. Also, some Intel
4489: # versions had trouble with output in subdirs
4490: am__obj=sub/conftest.${OBJEXT-o}
4491: am__minus_obj="-o $am__obj"
4492: case $depmode in
4493: gcc)
4494: # This depmode causes a compiler race in universal mode.
4495: test "$am__universal" = false || continue
4496: ;;
4497: nosideeffect)
4498: # after this tag, mechanisms are not by side-effect, so they'll
4499: # only be used when explicitly requested
4500: if test "x$enable_dependency_tracking" = xyes; then
4501: continue
4502: else
4503: break
4504: fi
4505: ;;
4506: msvisualcpp | msvcmsys)
4507: # This compiler won't grok `-c -o', but also, the minuso test has
4508: # not run yet. These depmodes are late enough in the game, and
4509: # so weak that their functioning should not be impacted.
4510: am__obj=conftest.${OBJEXT-o}
4511: am__minus_obj=
4512: ;;
4513: none) break ;;
4514: esac
4515: if depmode=$depmode \
4516: source=sub/conftest.c object=$am__obj \
4517: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519: >/dev/null 2>conftest.err &&
4520: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524: # icc doesn't choke on unknown options, it will just issue warnings
4525: # or remarks (even with -Werror). So we grep stderr for any message
4526: # that says an option was ignored or not supported.
4527: # When given -MP, icc 7.0 and 7.1 complain thusly:
4528: # icc: Command line warning: ignoring option '-M'; no argument required
4529: # The diagnosis changed in icc 8.0:
4530: # icc: Command line remark: option '-MP' not supported
4531: if (grep 'ignoring option' conftest.err ||
4532: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533: am_cv_CXX_dependencies_compiler_type=$depmode
4534: break
4535: fi
4536: fi
4537: done
4538:
4539: cd ..
4540: rm -rf conftest.dir
4541: else
4542: am_cv_CXX_dependencies_compiler_type=none
4543: fi
4544:
4545: fi
4546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4547: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4548: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4549:
4550: if
4551: test "x$enable_dependency_tracking" != xno \
4552: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4553: am__fastdepCXX_TRUE=
4554: am__fastdepCXX_FALSE='#'
4555: else
4556: am__fastdepCXX_TRUE='#'
4557: am__fastdepCXX_FALSE=
4558: fi
4559:
4560:
4561:
4562: if test "$GXX" != yes; then
1.36 bertrand 4563: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15 bertrand 4564: fi
4565:
4566: ac_ext=f
4567: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4568: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4570: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4571: for ac_prog in gfortran
1.15 bertrand 4572: do
4573: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4574: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576: $as_echo_n "checking for $ac_word... " >&6; }
4577: if test "${ac_cv_prog_F77+set}" = set; then :
4578: $as_echo_n "(cached) " >&6
4579: else
4580: if test -n "$F77"; then
4581: ac_cv_prog_F77="$F77" # Let the user override the test.
4582: else
4583: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584: for as_dir in $PATH
4585: do
4586: IFS=$as_save_IFS
4587: test -z "$as_dir" && as_dir=.
4588: for ac_exec_ext in '' $ac_executable_extensions; do
4589: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4591: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592: break 2
4593: fi
4594: done
4595: done
4596: IFS=$as_save_IFS
4597:
4598: fi
4599: fi
4600: F77=$ac_cv_prog_F77
4601: if test -n "$F77"; then
4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4603: $as_echo "$F77" >&6; }
4604: else
4605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606: $as_echo "no" >&6; }
4607: fi
4608:
4609:
4610: test -n "$F77" && break
4611: done
4612: fi
4613: if test -z "$F77"; then
4614: ac_ct_F77=$F77
1.23 bertrand 4615: for ac_prog in gfortran
1.15 bertrand 4616: do
4617: # Extract the first word of "$ac_prog", so it can be a program name with args.
4618: set dummy $ac_prog; ac_word=$2
4619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620: $as_echo_n "checking for $ac_word... " >&6; }
4621: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4622: $as_echo_n "(cached) " >&6
4623: else
4624: if test -n "$ac_ct_F77"; then
4625: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4626: else
4627: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628: for as_dir in $PATH
4629: do
4630: IFS=$as_save_IFS
4631: test -z "$as_dir" && as_dir=.
4632: for ac_exec_ext in '' $ac_executable_extensions; do
4633: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634: ac_cv_prog_ac_ct_F77="$ac_prog"
4635: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636: break 2
4637: fi
4638: done
4639: done
4640: IFS=$as_save_IFS
4641:
4642: fi
4643: fi
4644: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4645: if test -n "$ac_ct_F77"; then
4646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4647: $as_echo "$ac_ct_F77" >&6; }
1.1 bertrand 4648: else
1.15 bertrand 4649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650: $as_echo "no" >&6; }
4651: fi
4652:
4653:
4654: test -n "$ac_ct_F77" && break
4655: done
1.1 bertrand 4656:
1.15 bertrand 4657: if test "x$ac_ct_F77" = x; then
4658: F77=""
4659: else
4660: case $cross_compiling:$ac_tool_warned in
4661: yes:)
4662: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664: ac_tool_warned=yes ;;
4665: esac
4666: F77=$ac_ct_F77
4667: fi
1.14 bertrand 4668: fi
1.1 bertrand 4669:
4670:
1.15 bertrand 4671: # Provide some information about the compiler.
4672: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4673: set X $ac_compile
4674: ac_compiler=$2
4675: for ac_option in --version -v -V -qversion; do
4676: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4677: case "(($ac_try" in
4678: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679: *) ac_try_echo=$ac_try;;
4680: esac
1.15 bertrand 4681: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682: $as_echo "$ac_try_echo"; } >&5
4683: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4684: ac_status=$?
1.15 bertrand 4685: if test -s conftest.err; then
4686: sed '10a\
4687: ... rest of stderr output deleted ...
4688: 10q' conftest.err >conftest.er1
4689: cat conftest.er1 >&5
4690: fi
4691: rm -f conftest.er1 conftest.err
4692: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693: test $ac_status = 0; }
4694: done
4695: rm -f a.out
4696:
4697: # If we don't use `.F' as extension, the preprocessor is not run on the
4698: # input file. (Note that this only needs to work for GNU compilers.)
4699: ac_save_ext=$ac_ext
4700: ac_ext=F
4701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4702: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4703: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4704: $as_echo_n "(cached) " >&6
1.1 bertrand 4705: else
1.15 bertrand 4706: cat > conftest.$ac_ext <<_ACEOF
4707: program main
4708: #ifndef __GNUC__
4709: choke me
4710: #endif
1.14 bertrand 4711:
1.15 bertrand 4712: end
4713: _ACEOF
4714: if ac_fn_f77_try_compile "$LINENO"; then :
4715: ac_compiler_gnu=yes
4716: else
4717: ac_compiler_gnu=no
1.1 bertrand 4718: fi
1.15 bertrand 4719: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4721:
4722: fi
1.15 bertrand 4723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4724: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4725: ac_ext=$ac_save_ext
4726: ac_test_FFLAGS=${FFLAGS+set}
4727: ac_save_FFLAGS=$FFLAGS
4728: FFLAGS=
4729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4730: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4731: if test "${ac_cv_prog_f77_g+set}" = set; then :
4732: $as_echo_n "(cached) " >&6
4733: else
4734: FFLAGS=-g
4735: cat > conftest.$ac_ext <<_ACEOF
4736: program main
1.1 bertrand 4737:
1.15 bertrand 4738: end
1.14 bertrand 4739: _ACEOF
1.15 bertrand 4740: if ac_fn_f77_try_compile "$LINENO"; then :
4741: ac_cv_prog_f77_g=yes
1.1 bertrand 4742: else
1.15 bertrand 4743: ac_cv_prog_f77_g=no
1.1 bertrand 4744: fi
1.15 bertrand 4745: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4746:
4747: fi
1.15 bertrand 4748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4749: $as_echo "$ac_cv_prog_f77_g" >&6; }
4750: if test "$ac_test_FFLAGS" = set; then
4751: FFLAGS=$ac_save_FFLAGS
4752: elif test $ac_cv_prog_f77_g = yes; then
4753: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4754: FFLAGS="-g -O2"
4755: else
4756: FFLAGS="-g"
4757: fi
4758: else
4759: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4760: FFLAGS="-O2"
4761: else
4762: FFLAGS=
4763: fi
1.1 bertrand 4764: fi
4765:
1.15 bertrand 4766: if test $ac_compiler_gnu = yes; then
4767: G77=yes
1.1 bertrand 4768: else
1.15 bertrand 4769: G77=
1.1 bertrand 4770: fi
1.15 bertrand 4771: ac_ext=c
4772: ac_cpp='$CPP $CPPFLAGS'
4773: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4776:
4777:
1.15 bertrand 4778: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36 bertrand 4779: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15 bertrand 4780: fi
1.14 bertrand 4781:
1.15 bertrand 4782: ac_ext=${ac_fc_srcext-f}
4783: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4784: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4785: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4786: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4787: for ac_prog in gfortran
1.15 bertrand 4788: do
4789: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4790: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792: $as_echo_n "checking for $ac_word... " >&6; }
4793: if test "${ac_cv_prog_FC+set}" = set; then :
4794: $as_echo_n "(cached) " >&6
4795: else
4796: if test -n "$FC"; then
4797: ac_cv_prog_FC="$FC" # Let the user override the test.
1.1 bertrand 4798: else
1.15 bertrand 4799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800: for as_dir in $PATH
4801: do
4802: IFS=$as_save_IFS
4803: test -z "$as_dir" && as_dir=.
4804: for ac_exec_ext in '' $ac_executable_extensions; do
4805: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4807: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808: break 2
4809: fi
4810: done
4811: done
4812: IFS=$as_save_IFS
1.1 bertrand 4813:
4814: fi
1.15 bertrand 4815: fi
4816: FC=$ac_cv_prog_FC
4817: if test -n "$FC"; then
4818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4819: $as_echo "$FC" >&6; }
1.14 bertrand 4820: else
1.15 bertrand 4821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822: $as_echo "no" >&6; }
1.14 bertrand 4823: fi
4824:
1.1 bertrand 4825:
1.15 bertrand 4826: test -n "$FC" && break
4827: done
4828: fi
4829: if test -z "$FC"; then
4830: ac_ct_FC=$FC
1.23 bertrand 4831: for ac_prog in gfortran
1.15 bertrand 4832: do
4833: # Extract the first word of "$ac_prog", so it can be a program name with args.
4834: set dummy $ac_prog; ac_word=$2
4835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836: $as_echo_n "checking for $ac_word... " >&6; }
4837: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4838: $as_echo_n "(cached) " >&6
4839: else
4840: if test -n "$ac_ct_FC"; then
4841: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4842: else
4843: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844: for as_dir in $PATH
4845: do
4846: IFS=$as_save_IFS
4847: test -z "$as_dir" && as_dir=.
4848: for ac_exec_ext in '' $ac_executable_extensions; do
4849: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850: ac_cv_prog_ac_ct_FC="$ac_prog"
4851: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852: break 2
4853: fi
4854: done
4855: done
4856: IFS=$as_save_IFS
1.1 bertrand 4857:
1.15 bertrand 4858: fi
4859: fi
4860: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4861: if test -n "$ac_ct_FC"; then
4862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4863: $as_echo "$ac_ct_FC" >&6; }
1.1 bertrand 4864: else
1.15 bertrand 4865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866: $as_echo "no" >&6; }
1.1 bertrand 4867: fi
1.14 bertrand 4868:
1.1 bertrand 4869:
1.15 bertrand 4870: test -n "$ac_ct_FC" && break
4871: done
1.1 bertrand 4872:
1.15 bertrand 4873: if test "x$ac_ct_FC" = x; then
4874: FC=""
4875: else
4876: case $cross_compiling:$ac_tool_warned in
4877: yes:)
4878: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880: ac_tool_warned=yes ;;
1.14 bertrand 4881: esac
1.15 bertrand 4882: FC=$ac_ct_FC
4883: fi
1.14 bertrand 4884: fi
4885:
4886:
1.15 bertrand 4887: # Provide some information about the compiler.
4888: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4889: set X $ac_compile
4890: ac_compiler=$2
4891: for ac_option in --version -v -V -qversion; do
4892: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4893: case "(($ac_try" in
4894: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895: *) ac_try_echo=$ac_try;;
4896: esac
1.15 bertrand 4897: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898: $as_echo "$ac_try_echo"; } >&5
4899: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4900: ac_status=$?
1.15 bertrand 4901: if test -s conftest.err; then
4902: sed '10a\
4903: ... rest of stderr output deleted ...
4904: 10q' conftest.err >conftest.er1
4905: cat conftest.er1 >&5
4906: fi
4907: rm -f conftest.er1 conftest.err
4908: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4909: test $ac_status = 0; }
4910: done
4911: rm -f a.out
4912:
4913: # If we don't use `.F' as extension, the preprocessor is not run on the
4914: # input file. (Note that this only needs to work for GNU compilers.)
4915: ac_save_ext=$ac_ext
4916: ac_ext=F
4917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4918: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4919: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4920: $as_echo_n "(cached) " >&6
1.14 bertrand 4921: else
1.15 bertrand 4922: cat > conftest.$ac_ext <<_ACEOF
4923: program main
4924: #ifndef __GNUC__
4925: choke me
4926: #endif
1.14 bertrand 4927:
1.15 bertrand 4928: end
4929: _ACEOF
4930: if ac_fn_fc_try_compile "$LINENO"; then :
4931: ac_compiler_gnu=yes
4932: else
4933: ac_compiler_gnu=no
1.14 bertrand 4934: fi
4935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4936: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4937:
1.15 bertrand 4938: fi
4939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4940: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4941: ac_ext=$ac_save_ext
4942: ac_test_FCFLAGS=${FCFLAGS+set}
4943: ac_save_FCFLAGS=$FCFLAGS
4944: FCFLAGS=
4945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4946: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4947: if test "${ac_cv_prog_fc_g+set}" = set; then :
4948: $as_echo_n "(cached) " >&6
4949: else
4950: FCFLAGS=-g
4951: cat > conftest.$ac_ext <<_ACEOF
4952: program main
1.1 bertrand 4953:
1.15 bertrand 4954: end
1.1 bertrand 4955: _ACEOF
1.15 bertrand 4956: if ac_fn_fc_try_compile "$LINENO"; then :
4957: ac_cv_prog_fc_g=yes
1.1 bertrand 4958: else
1.15 bertrand 4959: ac_cv_prog_fc_g=no
1.1 bertrand 4960: fi
1.14 bertrand 4961: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4962:
1.15 bertrand 4963: fi
4964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4965: $as_echo "$ac_cv_prog_fc_g" >&6; }
4966: if test "$ac_test_FCFLAGS" = set; then
4967: FCFLAGS=$ac_save_FCFLAGS
4968: elif test $ac_cv_prog_fc_g = yes; then
4969: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4970: FCFLAGS="-g -O2"
4971: else
4972: FCFLAGS="-g"
4973: fi
1.1 bertrand 4974: else
1.15 bertrand 4975: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4976: FCFLAGS="-O2"
4977: else
4978: FCFLAGS=
4979: fi
1.1 bertrand 4980: fi
4981:
1.15 bertrand 4982: ac_ext=c
4983: ac_cpp='$CPP $CPPFLAGS'
4984: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4987:
4988:
1.15 bertrand 4989: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36 bertrand 4990: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1 bertrand 4991: fi
4992:
1.15 bertrand 4993: if test x"$FC" != x""; then
4994: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4995: awk -F. '{ printf("%s", $1);}'`
4996: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4997: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4998: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4999: OPTIMISATION_F=-O3
5000: else
1.23 bertrand 5001: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15 bertrand 5002: OPTIMISATION_F=-O3
5003: else
1.23 bertrand 5004: if test $GCC_VERSION_MAJEURE -ge 3; then
5005: OPTIMISATION_F=-O2
5006: else
1.36 bertrand 5007: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23 bertrand 5008: fi
1.14 bertrand 5009: fi
5010: fi
5011: fi
1.1 bertrand 5012:
5013:
1.15 bertrand 5014: ac_ext=c
5015: ac_cpp='$CPP $CPPFLAGS'
5016: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5020: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5021: # On Suns, sometimes $CPP names a directory.
5022: if test -n "$CPP" && test -d "$CPP"; then
5023: CPP=
5024: fi
5025: if test -z "$CPP"; then
5026: if test "${ac_cv_prog_CPP+set}" = set; then :
5027: $as_echo_n "(cached) " >&6
5028: else
5029: # Double quotes because CPP needs to be expanded
5030: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5031: do
5032: ac_preproc_ok=false
5033: for ac_c_preproc_warn_flag in '' yes
5034: do
5035: # Use a header file that comes with gcc, so configuring glibc
5036: # with a fresh cross-compiler works.
5037: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038: # <limits.h> exists even on freestanding compilers.
5039: # On the NeXT, cc -E runs the code through the compiler's parser,
5040: # not just through cpp. "Syntax error" is here to catch this case.
5041: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5042: /* end confdefs.h. */
1.15 bertrand 5043: #ifdef __STDC__
5044: # include <limits.h>
5045: #else
5046: # include <assert.h>
5047: #endif
5048: Syntax error
1.1 bertrand 5049: _ACEOF
1.15 bertrand 5050: if ac_fn_c_try_cpp "$LINENO"; then :
5051:
1.1 bertrand 5052: else
1.15 bertrand 5053: # Broken: fails on valid input.
5054: continue
1.1 bertrand 5055: fi
1.36 bertrand 5056: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5057:
1.15 bertrand 5058: # OK, works on sane cases. Now check whether nonexistent headers
5059: # can be detected and how.
5060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061: /* end confdefs.h. */
5062: #include <ac_nonexistent.h>
5063: _ACEOF
5064: if ac_fn_c_try_cpp "$LINENO"; then :
5065: # Broken: success on invalid input.
5066: continue
5067: else
5068: # Passes both tests.
5069: ac_preproc_ok=:
5070: break
1.1 bertrand 5071: fi
1.36 bertrand 5072: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 bertrand 5073:
1.15 bertrand 5074: done
5075: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5076: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5077: if $ac_preproc_ok; then :
5078: break
1.1 bertrand 5079: fi
5080:
1.15 bertrand 5081: done
5082: ac_cv_prog_CPP=$CPP
1.14 bertrand 5083:
1.15 bertrand 5084: fi
5085: CPP=$ac_cv_prog_CPP
1.1 bertrand 5086: else
1.15 bertrand 5087: ac_cv_prog_CPP=$CPP
5088: fi
5089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5090: $as_echo "$CPP" >&6; }
5091: ac_preproc_ok=false
5092: for ac_c_preproc_warn_flag in '' yes
1.14 bertrand 5093: do
1.15 bertrand 5094: # Use a header file that comes with gcc, so configuring glibc
5095: # with a fresh cross-compiler works.
5096: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5097: # <limits.h> exists even on freestanding compilers.
5098: # On the NeXT, cc -E runs the code through the compiler's parser,
5099: # not just through cpp. "Syntax error" is here to catch this case.
5100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101: /* end confdefs.h. */
5102: #ifdef __STDC__
5103: # include <limits.h>
5104: #else
5105: # include <assert.h>
5106: #endif
5107: Syntax error
5108: _ACEOF
5109: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 bertrand 5110:
1.15 bertrand 5111: else
5112: # Broken: fails on valid input.
5113: continue
5114: fi
1.36 bertrand 5115: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5116:
1.15 bertrand 5117: # OK, works on sane cases. Now check whether nonexistent headers
5118: # can be detected and how.
5119: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120: /* end confdefs.h. */
5121: #include <ac_nonexistent.h>
5122: _ACEOF
5123: if ac_fn_c_try_cpp "$LINENO"; then :
5124: # Broken: success on invalid input.
5125: continue
5126: else
5127: # Passes both tests.
5128: ac_preproc_ok=:
5129: break
5130: fi
1.36 bertrand 5131: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5132:
5133: done
1.15 bertrand 5134: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5135: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5136: if $ac_preproc_ok; then :
1.1 bertrand 5137:
1.15 bertrand 5138: else
5139: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5140: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 5141: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5142: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 5143: fi
1.14 bertrand 5144:
1.15 bertrand 5145: ac_ext=c
5146: ac_cpp='$CPP $CPPFLAGS'
5147: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 5150:
5151:
1.15 bertrand 5152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5153: $as_echo_n "checking for X... " >&6; }
1.1 bertrand 5154:
5155:
1.15 bertrand 5156: # Check whether --with-x was given.
5157: if test "${with_x+set}" = set; then :
5158: withval=$with_x;
1.1 bertrand 5159: fi
1.14 bertrand 5160:
1.15 bertrand 5161: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5162: if test "x$with_x" = xno; then
5163: # The user explicitly disabled X.
5164: have_x=disabled
1.1 bertrand 5165: else
1.15 bertrand 5166: case $x_includes,$x_libraries in #(
1.36 bertrand 5167: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
1.15 bertrand 5168: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5169: $as_echo_n "(cached) " >&6
1.1 bertrand 5170: else
1.15 bertrand 5171: # One or both of the vars are not set, and there is no cached value.
5172: ac_x_includes=no ac_x_libraries=no
5173: rm -f -r conftest.dir
5174: if mkdir conftest.dir; then
5175: cd conftest.dir
5176: cat >Imakefile <<'_ACEOF'
5177: incroot:
5178: @echo incroot='${INCROOT}'
5179: usrlibdir:
5180: @echo usrlibdir='${USRLIBDIR}'
5181: libdir:
5182: @echo libdir='${LIBDIR}'
5183: _ACEOF
5184: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36 bertrand 5185: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 5186: for ac_var in incroot usrlibdir libdir; do
5187: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5188: done
5189: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5190: for ac_extension in a so sl dylib la dll; do
5191: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5192: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5193: ac_im_usrlibdir=$ac_im_libdir; break
5194: fi
5195: done
5196: # Screen out bogus values from the imake configuration. They are
5197: # bogus both because they are the default anyway, and because
5198: # using them would break gcc on systems where it needs fixed includes.
5199: case $ac_im_incroot in
5200: /usr/include) ac_x_includes= ;;
5201: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5202: esac
5203: case $ac_im_usrlibdir in
5204: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5205: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5206: esac
5207: fi
5208: cd ..
5209: rm -f -r conftest.dir
5210: fi
5211:
5212: # Standard set of common directories for X headers.
5213: # Check X11 before X11Rn because it is often a symlink to the current release.
5214: ac_x_header_dirs='
5215: /usr/X11/include
5216: /usr/X11R7/include
5217: /usr/X11R6/include
5218: /usr/X11R5/include
5219: /usr/X11R4/include
1.1 bertrand 5220:
1.15 bertrand 5221: /usr/include/X11
5222: /usr/include/X11R7
5223: /usr/include/X11R6
5224: /usr/include/X11R5
5225: /usr/include/X11R4
1.1 bertrand 5226:
1.15 bertrand 5227: /usr/local/X11/include
5228: /usr/local/X11R7/include
5229: /usr/local/X11R6/include
5230: /usr/local/X11R5/include
5231: /usr/local/X11R4/include
1.1 bertrand 5232:
1.15 bertrand 5233: /usr/local/include/X11
5234: /usr/local/include/X11R7
5235: /usr/local/include/X11R6
5236: /usr/local/include/X11R5
5237: /usr/local/include/X11R4
1.1 bertrand 5238:
1.15 bertrand 5239: /usr/X386/include
5240: /usr/x386/include
5241: /usr/XFree86/include/X11
1.1 bertrand 5242:
1.15 bertrand 5243: /usr/include
5244: /usr/local/include
5245: /usr/unsupported/include
5246: /usr/athena/include
5247: /usr/local/x11r5/include
5248: /usr/lpp/Xamples/include
1.1 bertrand 5249:
1.15 bertrand 5250: /usr/openwin/include
5251: /usr/openwin/share/include'
1.1 bertrand 5252:
1.15 bertrand 5253: if test "$ac_x_includes" = no; then
5254: # Guess where to find include files, by looking for Xlib.h.
5255: # First, try using that file with no special directory specified.
5256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257: /* end confdefs.h. */
5258: #include <X11/Xlib.h>
5259: _ACEOF
5260: if ac_fn_c_try_cpp "$LINENO"; then :
5261: # We can compile using X headers with no special include directory.
5262: ac_x_includes=
1.1 bertrand 5263: else
1.15 bertrand 5264: for ac_dir in $ac_x_header_dirs; do
5265: if test -r "$ac_dir/X11/Xlib.h"; then
5266: ac_x_includes=$ac_dir
5267: break
5268: fi
5269: done
1.1 bertrand 5270: fi
1.36 bertrand 5271: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 5272: fi # $ac_x_includes = no
1.1 bertrand 5273:
1.15 bertrand 5274: if test "$ac_x_libraries" = no; then
5275: # Check for the libraries.
5276: # See if we find them without any special options.
5277: # Don't add to $LIBS permanently.
5278: ac_save_LIBS=$LIBS
5279: LIBS="-lX11 $LIBS"
5280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5281: /* end confdefs.h. */
1.15 bertrand 5282: #include <X11/Xlib.h>
1.14 bertrand 5283: int
5284: main ()
5285: {
1.15 bertrand 5286: XrmInitialize ()
1.14 bertrand 5287: ;
5288: return 0;
5289: }
1.1 bertrand 5290: _ACEOF
1.15 bertrand 5291: if ac_fn_c_try_link "$LINENO"; then :
5292: LIBS=$ac_save_LIBS
5293: # We can link X programs with no special library path.
5294: ac_x_libraries=
1.1 bertrand 5295: else
1.15 bertrand 5296: LIBS=$ac_save_LIBS
5297: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5298: do
5299: # Don't even attempt the hair of trying to link an X program!
5300: for ac_extension in a so sl dylib la dll; do
5301: if test -r "$ac_dir/libX11.$ac_extension"; then
5302: ac_x_libraries=$ac_dir
5303: break 2
5304: fi
5305: done
5306: done
5307: fi
5308: rm -f core conftest.err conftest.$ac_objext \
5309: conftest$ac_exeext conftest.$ac_ext
5310: fi # $ac_x_libraries = no
1.1 bertrand 5311:
1.15 bertrand 5312: case $ac_x_includes,$ac_x_libraries in #(
5313: no,* | *,no | *\'*)
5314: # Didn't find X, or a directory has "'" in its name.
5315: ac_cv_have_x="have_x=no";; #(
5316: *)
5317: # Record where we found X for the cache.
5318: ac_cv_have_x="have_x=yes\
5319: ac_x_includes='$ac_x_includes'\
5320: ac_x_libraries='$ac_x_libraries'"
5321: esac
1.1 bertrand 5322: fi
1.15 bertrand 5323: ;; #(
5324: *) have_x=yes;;
5325: esac
5326: eval "$ac_cv_have_x"
5327: fi # $with_x != no
1.1 bertrand 5328:
1.15 bertrand 5329: if test "$have_x" != yes; then
5330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5331: $as_echo "$have_x" >&6; }
5332: no_x=yes
1.14 bertrand 5333: else
1.15 bertrand 5334: # If each of the values was on the command line, it overrides each guess.
5335: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5336: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5337: # Update the cache value to reflect the command line values.
5338: ac_cv_have_x="have_x=yes\
5339: ac_x_includes='$x_includes'\
5340: ac_x_libraries='$x_libraries'"
5341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5342: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 bertrand 5343: fi
1.1 bertrand 5344:
1.15 bertrand 5345: if test "$no_x" = yes; then
5346: # Not all programs may use this symbol, but it does not hurt to define it.
1.1 bertrand 5347:
1.15 bertrand 5348: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 bertrand 5349:
1.15 bertrand 5350: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 bertrand 5351: else
1.15 bertrand 5352: if test -n "$x_includes"; then
5353: X_CFLAGS="$X_CFLAGS -I$x_includes"
5354: fi
5355:
5356: # It would also be nice to do this for all -L options, not just this one.
5357: if test -n "$x_libraries"; then
5358: X_LIBS="$X_LIBS -L$x_libraries"
5359: # For Solaris; some versions of Sun CC require a space after -R and
5360: # others require no space. Words are not sufficient . . . .
5361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5362: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5363: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5364: ac_xsave_c_werror_flag=$ac_c_werror_flag
5365: ac_c_werror_flag=yes
5366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367: /* end confdefs.h. */
1.1 bertrand 5368:
1.15 bertrand 5369: int
5370: main ()
5371: {
1.1 bertrand 5372:
1.15 bertrand 5373: ;
5374: return 0;
5375: }
5376: _ACEOF
5377: if ac_fn_c_try_link "$LINENO"; then :
5378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379: $as_echo "no" >&6; }
5380: X_LIBS="$X_LIBS -R$x_libraries"
1.1 bertrand 5381: else
1.15 bertrand 5382: LIBS="$ac_xsave_LIBS -R $x_libraries"
5383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5384: /* end confdefs.h. */
1.1 bertrand 5385:
1.14 bertrand 5386: int
5387: main ()
5388: {
1.15 bertrand 5389:
5390: ;
1.14 bertrand 5391: return 0;
5392: }
5393: _ACEOF
1.15 bertrand 5394: if ac_fn_c_try_link "$LINENO"; then :
5395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396: $as_echo "yes" >&6; }
5397: X_LIBS="$X_LIBS -R $x_libraries"
1.14 bertrand 5398: else
1.15 bertrand 5399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5400: $as_echo "neither works" >&6; }
1.14 bertrand 5401: fi
1.15 bertrand 5402: rm -f core conftest.err conftest.$ac_objext \
5403: conftest$ac_exeext conftest.$ac_ext
1.14 bertrand 5404: fi
1.15 bertrand 5405: rm -f core conftest.err conftest.$ac_objext \
5406: conftest$ac_exeext conftest.$ac_ext
5407: ac_c_werror_flag=$ac_xsave_c_werror_flag
5408: LIBS=$ac_xsave_LIBS
5409: fi
1.1 bertrand 5410:
1.15 bertrand 5411: # Check for system-dependent libraries X programs must link with.
5412: # Do this before checking for the system-independent R6 libraries
5413: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 bertrand 5414:
1.15 bertrand 5415: if test "$ISC" = yes; then
5416: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5417: else
5418: # Martyn Johnson says this is needed for Ultrix, if the X
5419: # libraries were built with DECnet support. And Karl Berry says
5420: # the Alpha needs dnet_stub (dnet does not exist).
5421: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5422: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423: /* end confdefs.h. */
1.1 bertrand 5424:
1.15 bertrand 5425: /* Override any GCC internal prototype to avoid an error.
5426: Use char because int might match the return type of a GCC
5427: builtin and then its argument prototype would still apply. */
5428: #ifdef __cplusplus
5429: extern "C"
5430: #endif
5431: char XOpenDisplay ();
5432: int
5433: main ()
5434: {
5435: return XOpenDisplay ();
5436: ;
5437: return 0;
5438: }
1.1 bertrand 5439: _ACEOF
1.15 bertrand 5440: if ac_fn_c_try_link "$LINENO"; then :
1.14 bertrand 5441:
5442: else
1.15 bertrand 5443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5444: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5445: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5446: $as_echo_n "(cached) " >&6
5447: else
5448: ac_check_lib_save_LIBS=$LIBS
5449: LIBS="-ldnet $LIBS"
5450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5451: /* end confdefs.h. */
1.14 bertrand 5452:
1.15 bertrand 5453: /* Override any GCC internal prototype to avoid an error.
5454: Use char because int might match the return type of a GCC
5455: builtin and then its argument prototype would still apply. */
5456: #ifdef __cplusplus
5457: extern "C"
5458: #endif
5459: char dnet_ntoa ();
5460: int
5461: main ()
5462: {
5463: return dnet_ntoa ();
5464: ;
5465: return 0;
5466: }
1.1 bertrand 5467: _ACEOF
1.15 bertrand 5468: if ac_fn_c_try_link "$LINENO"; then :
5469: ac_cv_lib_dnet_dnet_ntoa=yes
1.1 bertrand 5470: else
1.15 bertrand 5471: ac_cv_lib_dnet_dnet_ntoa=no
1.14 bertrand 5472: fi
1.15 bertrand 5473: rm -f core conftest.err conftest.$ac_objext \
5474: conftest$ac_exeext conftest.$ac_ext
5475: LIBS=$ac_check_lib_save_LIBS
1.14 bertrand 5476: fi
1.15 bertrand 5477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5478: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5479: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5480: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14 bertrand 5481: fi
5482:
1.15 bertrand 5483: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5485: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5486: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5487: $as_echo_n "(cached) " >&6
1.14 bertrand 5488: else
1.15 bertrand 5489: ac_check_lib_save_LIBS=$LIBS
5490: LIBS="-ldnet_stub $LIBS"
5491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5492: /* end confdefs.h. */
1.15 bertrand 5493:
5494: /* Override any GCC internal prototype to avoid an error.
5495: Use char because int might match the return type of a GCC
5496: builtin and then its argument prototype would still apply. */
5497: #ifdef __cplusplus
5498: extern "C"
5499: #endif
5500: char dnet_ntoa ();
1.1 bertrand 5501: int
5502: main ()
5503: {
1.15 bertrand 5504: return dnet_ntoa ();
1.1 bertrand 5505: ;
5506: return 0;
5507: }
5508: _ACEOF
1.15 bertrand 5509: if ac_fn_c_try_link "$LINENO"; then :
5510: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14 bertrand 5511: else
1.15 bertrand 5512: ac_cv_lib_dnet_stub_dnet_ntoa=no
5513: fi
5514: rm -f core conftest.err conftest.$ac_objext \
5515: conftest$ac_exeext conftest.$ac_ext
5516: LIBS=$ac_check_lib_save_LIBS
5517: fi
5518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5519: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5520: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5521: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5522: fi
1.14 bertrand 5523:
1.15 bertrand 5524: fi
1.1 bertrand 5525: fi
1.15 bertrand 5526: rm -f core conftest.err conftest.$ac_objext \
5527: conftest$ac_exeext conftest.$ac_ext
5528: LIBS="$ac_xsave_LIBS"
5529:
5530: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5531: # to get the SysV transport functions.
5532: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5533: # needs -lnsl.
5534: # The nsl library prevents programs from opening the X display
5535: # on Irix 5.2, according to T.E. Dickey.
5536: # The functions gethostbyname, getservbyname, and inet_addr are
5537: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5538: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5539: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1 bertrand 5540:
5541: fi
5542:
1.15 bertrand 5543: if test $ac_cv_func_gethostbyname = no; then
5544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5545: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5546: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5547: $as_echo_n "(cached) " >&6
1.1 bertrand 5548: else
1.15 bertrand 5549: ac_check_lib_save_LIBS=$LIBS
5550: LIBS="-lnsl $LIBS"
5551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5552: /* end confdefs.h. */
1.15 bertrand 5553:
5554: /* Override any GCC internal prototype to avoid an error.
5555: Use char because int might match the return type of a GCC
5556: builtin and then its argument prototype would still apply. */
5557: #ifdef __cplusplus
5558: extern "C"
5559: #endif
5560: char gethostbyname ();
1.1 bertrand 5561: int
5562: main ()
5563: {
1.15 bertrand 5564: return gethostbyname ();
1.1 bertrand 5565: ;
5566: return 0;
5567: }
5568: _ACEOF
1.15 bertrand 5569: if ac_fn_c_try_link "$LINENO"; then :
5570: ac_cv_lib_nsl_gethostbyname=yes
5571: else
5572: ac_cv_lib_nsl_gethostbyname=no
5573: fi
5574: rm -f core conftest.err conftest.$ac_objext \
5575: conftest$ac_exeext conftest.$ac_ext
5576: LIBS=$ac_check_lib_save_LIBS
5577: fi
5578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5579: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5580: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5581: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5582: fi
5583:
5584: if test $ac_cv_lib_nsl_gethostbyname = no; then
5585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5586: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5587: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5588: $as_echo_n "(cached) " >&6
5589: else
5590: ac_check_lib_save_LIBS=$LIBS
5591: LIBS="-lbsd $LIBS"
5592: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5593: /* end confdefs.h. */
1.15 bertrand 5594:
5595: /* Override any GCC internal prototype to avoid an error.
5596: Use char because int might match the return type of a GCC
5597: builtin and then its argument prototype would still apply. */
5598: #ifdef __cplusplus
5599: extern "C"
5600: #endif
5601: char gethostbyname ();
1.1 bertrand 5602: int
5603: main ()
5604: {
1.15 bertrand 5605: return gethostbyname ();
1.1 bertrand 5606: ;
5607: return 0;
5608: }
5609: _ACEOF
1.15 bertrand 5610: if ac_fn_c_try_link "$LINENO"; then :
5611: ac_cv_lib_bsd_gethostbyname=yes
1.1 bertrand 5612: else
1.15 bertrand 5613: ac_cv_lib_bsd_gethostbyname=no
5614: fi
5615: rm -f core conftest.err conftest.$ac_objext \
5616: conftest$ac_exeext conftest.$ac_ext
5617: LIBS=$ac_check_lib_save_LIBS
5618: fi
5619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5620: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5621: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5622: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5623: fi
5624:
5625: fi
5626: fi
5627:
5628: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5629: # socket/setsockopt and other routines are undefined under SCO ODT
5630: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5631: # on later versions), says Simon Leinen: it contains gethostby*
5632: # variants that don't use the name server (or something). -lsocket
5633: # must be given before -lnsl if both are needed. We assume that
5634: # if connect needs -lnsl, so does gethostbyname.
5635: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5636: if test "x$ac_cv_func_connect" = x""yes; then :
1.14 bertrand 5637:
1.1 bertrand 5638: fi
5639:
1.15 bertrand 5640: if test $ac_cv_func_connect = no; then
5641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5642: $as_echo_n "checking for connect in -lsocket... " >&6; }
5643: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5644: $as_echo_n "(cached) " >&6
1.14 bertrand 5645: else
1.15 bertrand 5646: ac_check_lib_save_LIBS=$LIBS
5647: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649: /* end confdefs.h. */
1.1 bertrand 5650:
1.15 bertrand 5651: /* Override any GCC internal prototype to avoid an error.
5652: Use char because int might match the return type of a GCC
5653: builtin and then its argument prototype would still apply. */
5654: #ifdef __cplusplus
5655: extern "C"
5656: #endif
5657: char connect ();
1.14 bertrand 5658: int
5659: main ()
5660: {
1.15 bertrand 5661: return connect ();
1.14 bertrand 5662: ;
5663: return 0;
5664: }
5665: _ACEOF
1.15 bertrand 5666: if ac_fn_c_try_link "$LINENO"; then :
5667: ac_cv_lib_socket_connect=yes
5668: else
5669: ac_cv_lib_socket_connect=no
5670: fi
5671: rm -f core conftest.err conftest.$ac_objext \
5672: conftest$ac_exeext conftest.$ac_ext
5673: LIBS=$ac_check_lib_save_LIBS
5674: fi
5675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5676: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5677: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5678: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5679: fi
5680:
5681: fi
5682:
5683: # Guillermo Gomez says -lposix is necessary on A/UX.
5684: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5685: if test "x$ac_cv_func_remove" = x""yes; then :
5686:
5687: fi
5688:
5689: if test $ac_cv_func_remove = no; then
5690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5691: $as_echo_n "checking for remove in -lposix... " >&6; }
5692: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5693: $as_echo_n "(cached) " >&6
5694: else
5695: ac_check_lib_save_LIBS=$LIBS
5696: LIBS="-lposix $LIBS"
5697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5698: /* end confdefs.h. */
1.15 bertrand 5699:
5700: /* Override any GCC internal prototype to avoid an error.
5701: Use char because int might match the return type of a GCC
5702: builtin and then its argument prototype would still apply. */
5703: #ifdef __cplusplus
5704: extern "C"
5705: #endif
5706: char remove ();
1.1 bertrand 5707: int
5708: main ()
5709: {
1.15 bertrand 5710: return remove ();
1.1 bertrand 5711: ;
5712: return 0;
5713: }
5714: _ACEOF
1.15 bertrand 5715: if ac_fn_c_try_link "$LINENO"; then :
5716: ac_cv_lib_posix_remove=yes
1.14 bertrand 5717: else
1.15 bertrand 5718: ac_cv_lib_posix_remove=no
5719: fi
5720: rm -f core conftest.err conftest.$ac_objext \
5721: conftest$ac_exeext conftest.$ac_ext
5722: LIBS=$ac_check_lib_save_LIBS
5723: fi
5724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5725: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5726: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5727: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14 bertrand 5728: fi
1.1 bertrand 5729:
1.15 bertrand 5730: fi
1.14 bertrand 5731:
1.15 bertrand 5732: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5733: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5734: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14 bertrand 5735:
5736: fi
5737:
1.15 bertrand 5738: if test $ac_cv_func_shmat = no; then
5739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5740: $as_echo_n "checking for shmat in -lipc... " >&6; }
5741: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5742: $as_echo_n "(cached) " >&6
5743: else
5744: ac_check_lib_save_LIBS=$LIBS
5745: LIBS="-lipc $LIBS"
5746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5747: /* end confdefs.h. */
1.15 bertrand 5748:
5749: /* Override any GCC internal prototype to avoid an error.
5750: Use char because int might match the return type of a GCC
5751: builtin and then its argument prototype would still apply. */
5752: #ifdef __cplusplus
5753: extern "C"
5754: #endif
5755: char shmat ();
1.1 bertrand 5756: int
5757: main ()
5758: {
1.15 bertrand 5759: return shmat ();
1.1 bertrand 5760: ;
5761: return 0;
5762: }
5763: _ACEOF
1.15 bertrand 5764: if ac_fn_c_try_link "$LINENO"; then :
5765: ac_cv_lib_ipc_shmat=yes
1.1 bertrand 5766: else
1.15 bertrand 5767: ac_cv_lib_ipc_shmat=no
5768: fi
5769: rm -f core conftest.err conftest.$ac_objext \
5770: conftest$ac_exeext conftest.$ac_ext
5771: LIBS=$ac_check_lib_save_LIBS
5772: fi
5773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5774: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5775: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5776: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5777: fi
1.14 bertrand 5778:
1.15 bertrand 5779: fi
5780: fi
1.1 bertrand 5781:
1.15 bertrand 5782: # Check for libraries that X11R6 Xt/Xaw programs need.
5783: ac_save_LDFLAGS=$LDFLAGS
5784: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5785: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5786: # check for ICE first), but we must link in the order -lSM -lICE or
5787: # we get undefined symbols. So assume we have SM if we have ICE.
5788: # These have to be linked with before -lX11, unlike the other
5789: # libraries we check for below, so use a different variable.
5790: # John Interrante, Karl Berry
5791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5792: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5793: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5794: $as_echo_n "(cached) " >&6
1.1 bertrand 5795: else
1.15 bertrand 5796: ac_check_lib_save_LIBS=$LIBS
5797: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5799: /* end confdefs.h. */
1.15 bertrand 5800:
5801: /* Override any GCC internal prototype to avoid an error.
5802: Use char because int might match the return type of a GCC
5803: builtin and then its argument prototype would still apply. */
5804: #ifdef __cplusplus
5805: extern "C"
5806: #endif
5807: char IceConnectionNumber ();
1.1 bertrand 5808: int
5809: main ()
5810: {
1.15 bertrand 5811: return IceConnectionNumber ();
1.1 bertrand 5812: ;
5813: return 0;
5814: }
5815: _ACEOF
1.15 bertrand 5816: if ac_fn_c_try_link "$LINENO"; then :
5817: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 bertrand 5818: else
1.15 bertrand 5819: ac_cv_lib_ICE_IceConnectionNumber=no
5820: fi
5821: rm -f core conftest.err conftest.$ac_objext \
5822: conftest$ac_exeext conftest.$ac_ext
5823: LIBS=$ac_check_lib_save_LIBS
5824: fi
5825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5826: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5827: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5828: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5829: fi
5830:
5831: LDFLAGS=$ac_save_LDFLAGS
5832:
5833: fi
5834:
1.14 bertrand 5835:
1.15 bertrand 5836: if test "$ac_x_includes" != "no"; then
5837: if test x"$ac_x_includes" != x; then
5838: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5839: includeX="-I$ac_x_includes"
5840: fi
1.1 bertrand 5841: fi
1.15 bertrand 5842: if test "$ac_x_libraries" != "no"; then
5843: if test x"$ac_x_libraries" != x; then
5844: X_LIBS="$X_LIBS -L$ac_x_libraries"
5845: fi
1.1 bertrand 5846: fi
1.15 bertrand 5847:
5848: # Check whether --enable-optimization was given.
5849: if test "${enable_optimization+set}" = set; then :
5850: enableval=$enable_optimization;
5851: if test "$enableval" = "no"; then
5852: CFLAGS=
5853: FFLAGS=
5854: CXXFLAGS=
5855: FCFLAGS=
5856: else
5857: CFLAGS="$CFLAGS $enable_optimization"
5858: FFLAGS="$FFLAGS $enable_optimization"
5859: FCFLAGS="$FCFLAGS $enable_optimization"
1.1 bertrand 5860: fi
1.15 bertrand 5861: else
1.14 bertrand 5862:
1.15 bertrand 5863: CFLAGS="$CFLAGS $OPTIMISATION_C"
5864: FFLAGS="$FFLAGS $OPTIMISATION_F"
5865: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1 bertrand 5866:
5867:
1.15 bertrand 5868: fi
1.1 bertrand 5869:
5870:
1.36 bertrand 5871: # Check whether --enable-sysv-semaphores was given.
5872: if test "${enable_sysv_semaphores+set}" = set; then :
5873: enableval=$enable_sysv_semaphores;
5874: if test "$enableval" = "no"; then
5875: IPCS_SYSV=no
5876: else
5877: IPCS_SYSV=yes
5878: fi
5879: else
5880: IPCS_SYSV=no
5881: fi
5882:
5883:
1.30 bertrand 5884: # Check whether --enable-full-static was given.
5885: if test "${enable_full_static+set}" = set; then :
5886: enableval=$enable_full_static;
5887: if test "$enableval" = "no"; then
5888: STATIC=no
5889: else
5890: STATIC=yes
5891: fi
5892: else
5893: STATIC=no
5894: fi
5895:
5896:
1.15 bertrand 5897: # Check whether --enable-final-encoding was given.
5898: if test "${enable_final_encoding+set}" = set; then :
5899: enableval=$enable_final_encoding;
5900: if test "$enableval" = "no"; then
5901: FINAL_ENCODING="\$(shell locale charmap | \
5902: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35 bertrand 5903: FORCED_FINAL_ENCODING=0
1.1 bertrand 5904: else
1.15 bertrand 5905: FINAL_ENCODING="$enable_final_encoding"
1.35 bertrand 5906: FORCED_FINAL_ENCODING=1
1.15 bertrand 5907: fi
1.1 bertrand 5908: else
1.35 bertrand 5909:
5910: FORCED_FINAL_ENCODING=0
5911: FINAL_ENCODING="\$(shell locale charmap | \
1.15 bertrand 5912: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
5913: fi
5914:
1.14 bertrand 5915:
1.15 bertrand 5916: # Check whether --enable-tex was given.
5917: if test "${enable_tex+set}" = set; then :
5918: enableval=$enable_tex;
5919: if test "$enableval" = "no"; then
5920: TEX_SUPPORT=no
5921: else
5922: TEX_SUPPORT=yes
1.1 bertrand 5923: fi
1.15 bertrand 5924: else
5925: TEX_SUPPORT=guessed
5926: fi
5927:
1.14 bertrand 5928:
1.15 bertrand 5929: # Check whether --enable-vim was given.
5930: if test "${enable_vim+set}" = set; then :
5931: enableval=$enable_vim;
5932: if test "$enableval" = "no"; then
5933: VIM_SUPPORT=no
5934: else
5935: VIM_SUPPORT=yes
5936: fi
5937: else
5938: VIM_SUPPORT=guessed
1.1 bertrand 5939: fi
5940:
1.15 bertrand 5941:
5942: # Check whether --enable-embedded-gnuplot was given.
5943: if test "${enable_embedded_gnuplot+set}" = set; then :
5944: enableval=$enable_embedded_gnuplot;
5945: if test "$enableval" = "no"; then
5946: MYGNUPLOT=no
5947: else
5948: MYGNUPLOT=yes
5949: fi
1.1 bertrand 5950: else
5951:
1.15 bertrand 5952: MYGNUPLOT=yes
5953: fi
5954:
1.14 bertrand 5955:
1.15 bertrand 5956: # Check whether --enable-gnuplot was given.
5957: if test "${enable_gnuplot+set}" = set; then :
5958: enableval=$enable_gnuplot;
5959: if test "$enableval" = "no"; then
5960: GNUPLOT_SUPPORT=no
5961: MYGNUPLOT=no
5962: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5963: else
5964: GNUPLOT_SUPPORT=yes
5965: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5966: fi
1.1 bertrand 5967: else
5968:
1.15 bertrand 5969: if test "$MYGNUPLOT" = "yes"; then
5970: GNUPLOT_SUPPORT=yes
5971: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5972: else
5973: GNUPLOT_SUPPORT=guessed
5974: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5975: fi
1.1 bertrand 5976: fi
5977:
1.15 bertrand 5978:
5979: # Check whether --enable-motif was given.
5980: if test "${enable_motif+set}" = set; then :
5981: enableval=$enable_motif;
5982: if test "$enableval" = "no"; then
5983: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5984: else
5985: CFLAGS_ORIG=$CFLAGS
5986: LIBS_ORIG=$LIBS
5987: CFLAGS="$CFLAGS $X_CFLAGS"
5988: LIBS="$LIB $X_LIBS"
5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5990: $as_echo_n "checking for main in -lXm... " >&6; }
5991: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5992: $as_echo_n "(cached) " >&6
1.1 bertrand 5993: else
1.15 bertrand 5994: ac_check_lib_save_LIBS=$LIBS
5995: LIBS="-lXm $LIBS"
5996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997: /* end confdefs.h. */
1.14 bertrand 5998:
5999:
1.1 bertrand 6000: int
6001: main ()
6002: {
1.15 bertrand 6003: return main ();
1.1 bertrand 6004: ;
6005: return 0;
6006: }
6007: _ACEOF
1.15 bertrand 6008: if ac_fn_c_try_link "$LINENO"; then :
6009: ac_cv_lib_Xm_main=yes
6010: else
6011: ac_cv_lib_Xm_main=no
6012: fi
6013: rm -f core conftest.err conftest.$ac_objext \
6014: conftest$ac_exeext conftest.$ac_ext
6015: LIBS=$ac_check_lib_save_LIBS
6016: fi
6017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6018: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6019: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6020: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6021: else
1.15 bertrand 6022: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6023: fi
1.14 bertrand 6024:
1.15 bertrand 6025: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6026: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
6027: Motif flag is disabled.
6028: " >&5
6029: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
6030: Motif flag is disabled.
6031: " >&2;}
6032: fi
6033: LIBS=$LIBS_ORIG
6034: CFLAGS=$CFLAGS_ORIG
6035: fi
6036: else
6037: MOTIF_SUPPORT=guessed
1.1 bertrand 6038: fi
6039:
1.15 bertrand 6040:
6041: # Check whether --enable-experimental was given.
6042: if test "${enable_experimental+set}" = set; then :
6043: enableval=$enable_experimental;
6044: if test "$enableval" = "no"; then
6045: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6046: else
6047: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6048: fi
1.14 bertrand 6049: else
1.15 bertrand 6050: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6051: fi
6052:
1.1 bertrand 6053:
1.15 bertrand 6054: # Check whether --enable-debug was given.
6055: if test "${enable_debug+set}" = set; then :
6056: enableval=$enable_debug;
6057: if test "$enableval" = "no"; then
1.24 bertrand 6058: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6059: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.15 bertrand 6060: else
1.24 bertrand 6061: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6062: MALLOC=""
1.15 bertrand 6063: fi
6064: else
1.24 bertrand 6065: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6066: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.14 bertrand 6067: fi
1.1 bertrand 6068:
1.15 bertrand 6069:
6070: # Check whether --enable-profile was given.
6071: if test "${enable_profile+set}" = set; then :
6072: enableval=$enable_profile;
6073: if test "$enableval" = "no"; then
6074: PROFILAGE=""
6075: else
6076: PROFILAGE="-pg"
6077: fi
6078: else
6079: PROFILAGE=""
1.1 bertrand 6080: fi
6081:
1.14 bertrand 6082:
6083:
1.15 bertrand 6084:
6085: if test ! -d tools; then
6086: mkdir tools
6087: fi
6088: if test ! -d "$srcdir"/tools/$NCURSES; then
6089: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6090: (cd "$srcdir/tools" && tar -xf -)
6091: fi
6092: if test ! -d "$srcdir"/tools/$READLINE; then
6093: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6094: (cd "$srcdir/tools" && tar -xf -)
6095: fi
6096: if test ! -d "$srcdir"/tools/$UNITS; then
6097: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6098: (cd "$srcdir/tools" && tar -xf -)
6099: fi
6100: if test ! -d "$srcdir"/tools/$GSL; then
6101: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6102: (cd "$srcdir/tools" && tar -xf -)
1.33 bertrand 6103: if test $(uname) = "OS/2"; then
6104: (cd "$srcdir"/tools/$GSL; \
6105: TMP=$(mktemp tmp.XXXXXXXXXX); \
6106: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6107: \mv -f $TMP ltmain.sh)
6108: fi
1.15 bertrand 6109: fi
6110: if test ! -d "$srcdir"/tools/$GPP; then
6111: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6112: (cd "$srcdir/tools" && tar -xf -)
6113: fi
6114: if test ! -d "$srcdir"/tools/$FILE; then
6115: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6116: (cd "$srcdir/tools" && tar -xf - )
6117: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6118: fi
6119: if test ! -d "$srcdir"/tools/$ICONV; then
6120: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6121: (cd "$srcdir/tools" && tar -xf -)
6122: fi
6123: if test ! -d "$srcdir"/tools/$SQLITE; then
6124: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6125: (cd "$srcdir/tools" && tar -xf -)
1.31 bertrand 6126: (cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1)
1.15 bertrand 6127: fi
6128: if test ! -d tools/$OPENSSL; then
6129: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6130: (cd tools && tar -xf -)
1.1 bertrand 6131: fi
6132:
6133:
6134:
1.15 bertrand 6135: # Check whether --enable-final-run-path was given.
6136: if test "${enable_final_run_path+set}" = set; then :
6137: enableval=$enable_final_run_path;
6138: if test "x$enable_final_run_path" = "x"; then
6139: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6140: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36 bertrand 6141: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15 bertrand 6142: else
6143: RUNPATH="$enable_final_run_path"
6144: fi
1.1 bertrand 6145:
6146: else
1.15 bertrand 6147: RUNPATH="\${prefix}"
1.1 bertrand 6148:
6149: fi
6150:
1.15 bertrand 6151:
6152:
6153:
6154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6155: $as_echo_n "checking whether ln -s works... " >&6; }
6156: LN_S=$as_ln_s
6157: if test "$LN_S" = "ln -s"; then
6158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6159: $as_echo "yes" >&6; }
6160: else
6161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6162: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6163: fi
6164:
1.15 bertrand 6165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6166: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6167: set x ${MAKE-make}
6168: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36 bertrand 6169: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15 bertrand 6170: $as_echo_n "(cached) " >&6
1.1 bertrand 6171: else
1.15 bertrand 6172: cat >conftest.make <<\_ACEOF
6173: SHELL = /bin/sh
6174: all:
6175: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6176: _ACEOF
1.36 bertrand 6177: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 6178: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6179: *@@@%%%=?*=@@@%%%*)
6180: eval ac_cv_prog_make_${ac_make}_set=yes;;
6181: *)
6182: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6183: esac
1.15 bertrand 6184: rm -f conftest.make
6185: fi
6186: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6188: $as_echo "yes" >&6; }
6189: SET_MAKE=
6190: else
6191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192: $as_echo "no" >&6; }
6193: SET_MAKE="MAKE=${MAKE-make}"
6194: fi
1.1 bertrand 6195:
1.15 bertrand 6196: if test -n "$ac_tool_prefix"; then
6197: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6198: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200: $as_echo_n "checking for $ac_word... " >&6; }
6201: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6202: $as_echo_n "(cached) " >&6
6203: else
6204: if test -n "$RANLIB"; then
6205: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6206: else
1.15 bertrand 6207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208: for as_dir in $PATH
6209: do
6210: IFS=$as_save_IFS
6211: test -z "$as_dir" && as_dir=.
6212: for ac_exec_ext in '' $ac_executable_extensions; do
6213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6215: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216: break 2
6217: fi
6218: done
6219: done
6220: IFS=$as_save_IFS
1.1 bertrand 6221:
6222: fi
1.15 bertrand 6223: fi
6224: RANLIB=$ac_cv_prog_RANLIB
6225: if test -n "$RANLIB"; then
6226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6227: $as_echo "$RANLIB" >&6; }
6228: else
6229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230: $as_echo "no" >&6; }
6231: fi
6232:
1.1 bertrand 6233:
1.15 bertrand 6234: fi
6235: if test -z "$ac_cv_prog_RANLIB"; then
6236: ac_ct_RANLIB=$RANLIB
6237: # Extract the first word of "ranlib", so it can be a program name with args.
6238: set dummy ranlib; ac_word=$2
6239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240: $as_echo_n "checking for $ac_word... " >&6; }
6241: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6242: $as_echo_n "(cached) " >&6
6243: else
6244: if test -n "$ac_ct_RANLIB"; then
6245: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6246: else
6247: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248: for as_dir in $PATH
6249: do
6250: IFS=$as_save_IFS
6251: test -z "$as_dir" && as_dir=.
6252: for ac_exec_ext in '' $ac_executable_extensions; do
6253: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254: ac_cv_prog_ac_ct_RANLIB="ranlib"
6255: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256: break 2
6257: fi
6258: done
1.14 bertrand 6259: done
1.15 bertrand 6260: IFS=$as_save_IFS
6261:
6262: fi
6263: fi
6264: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6265: if test -n "$ac_ct_RANLIB"; then
6266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6267: $as_echo "$ac_ct_RANLIB" >&6; }
6268: else
6269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270: $as_echo "no" >&6; }
6271: fi
6272:
6273: if test "x$ac_ct_RANLIB" = x; then
6274: RANLIB=":"
6275: else
6276: case $cross_compiling:$ac_tool_warned in
6277: yes:)
6278: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6279: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280: ac_tool_warned=yes ;;
6281: esac
6282: RANLIB=$ac_ct_RANLIB
6283: fi
1.14 bertrand 6284: else
1.15 bertrand 6285: RANLIB="$ac_cv_prog_RANLIB"
6286: fi
1.1 bertrand 6287:
6288:
1.15 bertrand 6289: # Extract the first word of "nawk", so it can be a program name with args.
6290: set dummy nawk; ac_word=$2
6291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292: $as_echo_n "checking for $ac_word... " >&6; }
6293: if test "${ac_cv_prog_AWK+set}" = set; then :
6294: $as_echo_n "(cached) " >&6
6295: else
6296: if test -n "$AWK"; then
6297: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6298: else
6299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300: for as_dir in $PATH
6301: do
6302: IFS=$as_save_IFS
6303: test -z "$as_dir" && as_dir=.
6304: for ac_exec_ext in '' $ac_executable_extensions; do
6305: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306: ac_cv_prog_AWK="yes"
6307: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308: break 2
6309: fi
6310: done
6311: done
6312: IFS=$as_save_IFS
1.1 bertrand 6313:
1.15 bertrand 6314: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6315: fi
6316: fi
6317: AWK=$ac_cv_prog_AWK
6318: if test -n "$AWK"; then
6319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6320: $as_echo "$AWK" >&6; }
1.1 bertrand 6321: else
1.15 bertrand 6322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323: $as_echo "no" >&6; }
6324: fi
6325:
1.1 bertrand 6326:
1.15 bertrand 6327: if test "$AWK" = no; then
1.39 bertrand 6328: # Extract the first word of "gawk", so it can be a program name with args.
6329: set dummy gawk; ac_word=$2
6330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331: $as_echo_n "checking for $ac_word... " >&6; }
6332: if test "${ac_cv_prog_AWK+set}" = set; then :
6333: $as_echo_n "(cached) " >&6
6334: else
6335: if test -n "$AWK"; then
6336: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6337: else
6338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339: for as_dir in $PATH
6340: do
6341: IFS=$as_save_IFS
6342: test -z "$as_dir" && as_dir=.
6343: for ac_exec_ext in '' $ac_executable_extensions; do
6344: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345: ac_cv_prog_AWK="yes"
6346: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347: break 2
6348: fi
6349: done
6350: done
6351: IFS=$as_save_IFS
6352:
6353: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6354: fi
6355: fi
6356: AWK=$ac_cv_prog_AWK
6357: if test -n "$AWK"; then
6358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6359: $as_echo "$AWK" >&6; }
6360: else
6361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362: $as_echo "no" >&6; }
6363: fi
6364:
6365:
6366: if test "$AWK" = no; then
6367: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6368: fi
1.1 bertrand 6369: fi
6370:
1.15 bertrand 6371: # Extract the first word of "sed", so it can be a program name with args.
6372: set dummy sed; ac_word=$2
6373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374: $as_echo_n "checking for $ac_word... " >&6; }
6375: if test "${ac_cv_prog_SED+set}" = set; then :
6376: $as_echo_n "(cached) " >&6
6377: else
6378: if test -n "$SED"; then
6379: ac_cv_prog_SED="$SED" # Let the user override the test.
6380: else
6381: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382: for as_dir in $PATH
6383: do
6384: IFS=$as_save_IFS
6385: test -z "$as_dir" && as_dir=.
6386: for ac_exec_ext in '' $ac_executable_extensions; do
6387: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388: ac_cv_prog_SED="yes"
6389: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390: break 2
6391: fi
6392: done
1.14 bertrand 6393: done
1.15 bertrand 6394: IFS=$as_save_IFS
1.1 bertrand 6395:
1.15 bertrand 6396: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6397: fi
1.15 bertrand 6398: fi
6399: SED=$ac_cv_prog_SED
6400: if test -n "$SED"; then
6401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6402: $as_echo "$SED" >&6; }
6403: else
6404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405: $as_echo "no" >&6; }
1.14 bertrand 6406: fi
1.1 bertrand 6407:
6408:
1.15 bertrand 6409: if test "$SED" = no; then
1.36 bertrand 6410: as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15 bertrand 6411: fi
1.14 bertrand 6412:
1.15 bertrand 6413: if test "$TEX_SUPPORT" = guessed; then
6414: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6415:
1.15 bertrand 6416: # Extract the first word of "tex", so it can be a program name with args.
6417: set dummy tex; ac_word=$2
6418: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419: $as_echo_n "checking for $ac_word... " >&6; }
6420: if test "${ac_cv_prog_TEX+set}" = set; then :
6421: $as_echo_n "(cached) " >&6
1.1 bertrand 6422: else
1.15 bertrand 6423: if test -n "$TEX"; then
6424: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6425: else
1.15 bertrand 6426: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427: for as_dir in $PATH
6428: do
6429: IFS=$as_save_IFS
6430: test -z "$as_dir" && as_dir=.
6431: for ac_exec_ext in '' $ac_executable_extensions; do
6432: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433: ac_cv_prog_TEX="yes"
6434: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435: break 2
6436: fi
6437: done
6438: done
6439: IFS=$as_save_IFS
1.1 bertrand 6440:
1.15 bertrand 6441: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6442: fi
6443: fi
1.15 bertrand 6444: TEX=$ac_cv_prog_TEX
6445: if test -n "$TEX"; then
6446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6447: $as_echo "$TEX" >&6; }
6448: else
6449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450: $as_echo "no" >&6; }
1.1 bertrand 6451: fi
1.14 bertrand 6452:
6453:
1.15 bertrand 6454: if test "$TEX" = no; then
6455: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6456: Download at http://tex.loria.fr/
6457: " >&5
6458: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6459: Download at http://tex.loria.fr/
6460: " >&2;}
6461: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6462: fi
1.14 bertrand 6463:
1.15 bertrand 6464: # Extract the first word of "latex", so it can be a program name with args.
6465: set dummy latex; ac_word=$2
6466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467: $as_echo_n "checking for $ac_word... " >&6; }
6468: if test "${ac_cv_prog_LATEX+set}" = set; then :
6469: $as_echo_n "(cached) " >&6
1.1 bertrand 6470: else
1.15 bertrand 6471: if test -n "$LATEX"; then
6472: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6473: else
1.15 bertrand 6474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475: for as_dir in $PATH
6476: do
6477: IFS=$as_save_IFS
6478: test -z "$as_dir" && as_dir=.
6479: for ac_exec_ext in '' $ac_executable_extensions; do
6480: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481: ac_cv_prog_LATEX="yes"
6482: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483: break 2
6484: fi
6485: done
6486: done
6487: IFS=$as_save_IFS
1.1 bertrand 6488:
1.15 bertrand 6489: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6490: fi
6491: fi
1.15 bertrand 6492: LATEX=$ac_cv_prog_LATEX
6493: if test -n "$LATEX"; then
6494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6495: $as_echo "$LATEX" >&6; }
6496: else
6497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498: $as_echo "no" >&6; }
6499: fi
1.14 bertrand 6500:
1.1 bertrand 6501:
1.15 bertrand 6502: if test "$LATEX" = no; then
6503: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6504: Download at http://tex.loria.fr/
6505: " >&5
6506: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6507: Download at http://tex.loria.fr/
6508: " >&2;}
6509: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6510: fi
1.1 bertrand 6511:
1.15 bertrand 6512: # Extract the first word of "dvips", so it can be a program name with args.
6513: set dummy dvips; ac_word=$2
6514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515: $as_echo_n "checking for $ac_word... " >&6; }
6516: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6517: $as_echo_n "(cached) " >&6
6518: else
6519: if test -n "$DVIPS"; then
6520: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6521: else
6522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523: for as_dir in $PATH
6524: do
6525: IFS=$as_save_IFS
6526: test -z "$as_dir" && as_dir=.
6527: for ac_exec_ext in '' $ac_executable_extensions; do
6528: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529: ac_cv_prog_DVIPS="yes"
6530: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531: break 2
6532: fi
6533: done
6534: done
6535: IFS=$as_save_IFS
1.1 bertrand 6536:
1.15 bertrand 6537: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6538: fi
1.1 bertrand 6539: fi
1.15 bertrand 6540: DVIPS=$ac_cv_prog_DVIPS
6541: if test -n "$DVIPS"; then
6542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6543: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6544: else
1.15 bertrand 6545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546: $as_echo "no" >&6; }
6547: fi
1.1 bertrand 6548:
6549:
1.15 bertrand 6550: if test "$DVIPS" = no; then
6551: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6552: Download at http://tex.loria.fr/
6553: " >&5
6554: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6555: Download at http://tex.loria.fr/
6556: " >&2;}
6557: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6558: fi
1.1 bertrand 6559:
1.15 bertrand 6560: # Extract the first word of "gs", so it can be a program name with args.
6561: set dummy gs; ac_word=$2
6562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563: $as_echo_n "checking for $ac_word... " >&6; }
6564: if test "${ac_cv_prog_GS+set}" = set; then :
6565: $as_echo_n "(cached) " >&6
6566: else
6567: if test -n "$GS"; then
6568: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6569: else
1.15 bertrand 6570: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571: for as_dir in $PATH
6572: do
6573: IFS=$as_save_IFS
6574: test -z "$as_dir" && as_dir=.
6575: for ac_exec_ext in '' $ac_executable_extensions; do
6576: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577: ac_cv_prog_GS="yes"
6578: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579: break 2
6580: fi
6581: done
6582: done
6583: IFS=$as_save_IFS
1.1 bertrand 6584:
1.15 bertrand 6585: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6586: fi
6587: fi
6588: GS=$ac_cv_prog_GS
6589: if test -n "$GS"; then
6590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6591: $as_echo "$GS" >&6; }
6592: else
6593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594: $as_echo "no" >&6; }
1.1 bertrand 6595: fi
6596:
1.15 bertrand 6597:
6598: if test "$GS" = no; then
6599: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6600: Download at http://ftp.lip6.fr/
6601: " >&5
6602: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6603: Download at http://ftp.lip6.fr/
6604: " >&2;}
6605: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6606: fi
6607:
6608: # Extract the first word of "gv", so it can be a program name with args.
6609: set dummy gv; ac_word=$2
6610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611: $as_echo_n "checking for $ac_word... " >&6; }
6612: if test "${ac_cv_prog_GV+set}" = set; then :
6613: $as_echo_n "(cached) " >&6
6614: else
6615: if test -n "$GV"; then
6616: ac_cv_prog_GV="$GV" # Let the user override the test.
6617: else
6618: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619: for as_dir in $PATH
6620: do
6621: IFS=$as_save_IFS
6622: test -z "$as_dir" && as_dir=.
6623: for ac_exec_ext in '' $ac_executable_extensions; do
6624: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625: ac_cv_prog_GV="yes"
6626: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627: break 2
6628: fi
6629: done
1.14 bertrand 6630: done
1.15 bertrand 6631: IFS=$as_save_IFS
1.1 bertrand 6632:
1.15 bertrand 6633: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6634: fi
1.1 bertrand 6635: fi
1.15 bertrand 6636: GV=$ac_cv_prog_GV
6637: if test -n "$GV"; then
6638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6639: $as_echo "$GV" >&6; }
6640: else
6641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642: $as_echo "no" >&6; }
1.1 bertrand 6643: fi
1.14 bertrand 6644:
6645:
1.15 bertrand 6646: if test "$GV" = no; then
6647: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6648: Download at http://ftp.lip6.fr/
6649: " >&5
6650: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6651: Download at http://ftp.lip6.fr/
6652: " >&2;}
6653: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6654: fi
1.1 bertrand 6655: else
1.15 bertrand 6656: if test "$TEX_SUPPORT" = no; then
6657: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6658: else
6659: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6660: fi
1.1 bertrand 6661: fi
6662:
1.15 bertrand 6663: if test "$GNUPLOT_SUPPORT" = guessed; then
6664: # Extract the first word of "gnuplot", so it can be a program name with args.
6665: set dummy gnuplot; ac_word=$2
6666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667: $as_echo_n "checking for $ac_word... " >&6; }
6668: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6669: $as_echo_n "(cached) " >&6
1.14 bertrand 6670: else
1.15 bertrand 6671: if test -n "$GNUPLOT_P"; then
6672: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 6673: else
1.15 bertrand 6674: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675: for as_dir in $PATH
6676: do
6677: IFS=$as_save_IFS
6678: test -z "$as_dir" && as_dir=.
6679: for ac_exec_ext in '' $ac_executable_extensions; do
6680: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681: ac_cv_prog_GNUPLOT_P="yes"
6682: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683: break 2
6684: fi
6685: done
6686: done
6687: IFS=$as_save_IFS
1.1 bertrand 6688:
1.15 bertrand 6689: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 6690: fi
6691: fi
1.15 bertrand 6692: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6693: if test -n "$GNUPLOT_P"; then
6694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6695: $as_echo "$GNUPLOT_P" >&6; }
6696: else
6697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698: $as_echo "no" >&6; }
1.1 bertrand 6699: fi
6700:
6701:
1.15 bertrand 6702: if test "$GNUPLOT_P" = no; then
6703: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6704: Download at http://www.gnuplot.vt.edu/
6705: " >&5
6706: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6707: Download at http://www.gnuplot.vt.edu/
6708: " >&2;}
6709: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6710: else
6711: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6712: fi
6713: else
6714: if test "$GNUPLOT_SUPPORT" = no; then
6715: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6716: else
6717: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6718: fi
6719: fi
1.1 bertrand 6720:
1.15 bertrand 6721: if test "$VIM_SUPPORT" = guessed; then
6722: # Extract the first word of "vim", so it can be a program name with args.
6723: set dummy vim; ac_word=$2
6724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725: $as_echo_n "checking for $ac_word... " >&6; }
6726: if test "${ac_cv_prog_VIM+set}" = set; then :
6727: $as_echo_n "(cached) " >&6
1.1 bertrand 6728: else
1.15 bertrand 6729: if test -n "$VIM"; then
6730: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 6731: else
1.15 bertrand 6732: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733: for as_dir in $PATH
6734: do
6735: IFS=$as_save_IFS
6736: test -z "$as_dir" && as_dir=.
6737: for ac_exec_ext in '' $ac_executable_extensions; do
6738: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739: ac_cv_prog_VIM="yes"
6740: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741: break 2
6742: fi
6743: done
6744: done
6745: IFS=$as_save_IFS
1.1 bertrand 6746:
1.15 bertrand 6747: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 6748: fi
6749: fi
1.15 bertrand 6750: VIM=$ac_cv_prog_VIM
6751: if test -n "$VIM"; then
6752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6753: $as_echo "$VIM" >&6; }
1.1 bertrand 6754: else
1.15 bertrand 6755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756: $as_echo "no" >&6; }
6757: fi
1.1 bertrand 6758:
6759:
1.15 bertrand 6760: if test "$VIM" = no; then
6761: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6762: Download at http://www.vim.org/
6763: " >&5
6764: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6765: Download at http://www.vim.org/
6766: " >&2;}
6767: VIM_SUPPORT="-UVIM_SUPPORT"
6768: else
6769: VIM_SUPPORT="-DVIM_SUPPORT"
6770: fi
1.1 bertrand 6771: else
1.15 bertrand 6772: if test "$VIM_SUPPORT" = no; then
6773: VIM_SUPPORT="-UVIM_SUPPORT"
6774: else
6775: VIM_SUPPORT="-DVIM_SUPPORT"
6776: fi
1.1 bertrand 6777: fi
6778:
1.15 bertrand 6779: if test "$MOTIF_SUPPORT" = guessed; then
6780: CFLAGS_ORIG=$CFLAGS
6781: LIBS_ORIG=$LIBS
6782: CFLAGS="$CFLAGS $X_CFLAGS"
6783: LIBS="$LIB $X_LIBS"
6784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6785: $as_echo_n "checking for main in -lXm... " >&6; }
6786: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6787: $as_echo_n "(cached) " >&6
1.1 bertrand 6788: else
1.15 bertrand 6789: ac_check_lib_save_LIBS=$LIBS
6790: LIBS="-lXm $LIBS"
6791: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792: /* end confdefs.h. */
1.1 bertrand 6793:
6794:
1.14 bertrand 6795: int
6796: main ()
6797: {
1.15 bertrand 6798: return main ();
1.14 bertrand 6799: ;
6800: return 0;
6801: }
6802: _ACEOF
1.15 bertrand 6803: if ac_fn_c_try_link "$LINENO"; then :
6804: ac_cv_lib_Xm_main=yes
1.1 bertrand 6805: else
1.15 bertrand 6806: ac_cv_lib_Xm_main=no
6807: fi
6808: rm -f core conftest.err conftest.$ac_objext \
6809: conftest$ac_exeext conftest.$ac_ext
6810: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6811: fi
1.15 bertrand 6812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6813: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6814: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6815: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6816: else
1.15 bertrand 6817: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6818: fi
1.14 bertrand 6819:
1.15 bertrand 6820: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6821: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6822: Motif flag is disabled.
6823: " >&5
6824: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6825: Motif flag is disabled.
6826: " >&2;}
6827: fi
6828: LIBS=$LIBS_ORIG
6829: CFLAGS=$CFLAGS_ORIG
1.1 bertrand 6830: fi
6831:
1.15 bertrand 6832: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6833: CFLAGS_ORIG=$CFLAGS
6834: LIBS_ORIG=$LIBS
6835: CFLAGS="$CFLAGS $X_CFLAGS"
6836: LIBS="$LIB $X_LIBS"
6837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6838: $as_echo_n "checking for main in -lXpm... " >&6; }
6839: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6840: $as_echo_n "(cached) " >&6
6841: else
6842: ac_check_lib_save_LIBS=$LIBS
6843: LIBS="-lXpm $LIBS"
6844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 6845: /* end confdefs.h. */
6846:
1.1 bertrand 6847:
6848: int
6849: main ()
6850: {
1.15 bertrand 6851: return main ();
1.1 bertrand 6852: ;
6853: return 0;
6854: }
6855: _ACEOF
1.15 bertrand 6856: if ac_fn_c_try_link "$LINENO"; then :
6857: ac_cv_lib_Xpm_main=yes
1.1 bertrand 6858: else
1.15 bertrand 6859: ac_cv_lib_Xpm_main=no
6860: fi
6861: rm -f core conftest.err conftest.$ac_objext \
6862: conftest$ac_exeext conftest.$ac_ext
6863: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6864: fi
1.15 bertrand 6865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6866: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6867: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6868: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6869: else
6870: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6871: fi
1.15 bertrand 6872:
6873: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6874: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6875: else
6876: libX=""
6877: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6878: Motif flag is disabled.
6879: " >&5
6880: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6881: Motif flag is disabled.
6882: " >&2;}
6883: fi
6884: LIBS=$LIBS_ORIG
6885: CFLAGS=$CFLAGS_ORIG
6886: else
6887: libX=""
1.1 bertrand 6888: fi
1.14 bertrand 6889:
6890:
6891:
1.1 bertrand 6892:
6893:
1.15 bertrand 6894:
6895:
6896:
6897:
6898:
6899:
6900: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6901:
6902:
6903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6904: $as_echo_n "checking for main in -lm... " >&6; }
6905: if test "${ac_cv_lib_m_main+set}" = set; then :
6906: $as_echo_n "(cached) " >&6
1.1 bertrand 6907: else
1.15 bertrand 6908: ac_check_lib_save_LIBS=$LIBS
6909: LIBS="-lm $LIBS"
6910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6911: /* end confdefs.h. */
1.15 bertrand 6912:
6913:
1.1 bertrand 6914: int
6915: main ()
6916: {
1.15 bertrand 6917: return main ();
1.1 bertrand 6918: ;
6919: return 0;
6920: }
6921: _ACEOF
1.15 bertrand 6922: if ac_fn_c_try_link "$LINENO"; then :
6923: ac_cv_lib_m_main=yes
1.1 bertrand 6924: else
1.15 bertrand 6925: ac_cv_lib_m_main=no
6926: fi
6927: rm -f core conftest.err conftest.$ac_objext \
6928: conftest$ac_exeext conftest.$ac_ext
6929: LIBS=$ac_check_lib_save_LIBS
6930: fi
6931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6932: $as_echo "$ac_cv_lib_m_main" >&6; }
6933: if test "x$ac_cv_lib_m_main" = x""yes; then :
6934: cat >>confdefs.h <<_ACEOF
6935: #define HAVE_LIBM 1
6936: _ACEOF
1.14 bertrand 6937:
1.15 bertrand 6938: LIBS="-lm $LIBS"
1.1 bertrand 6939:
1.15 bertrand 6940: else
1.36 bertrand 6941: as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1 bertrand 6942: fi
6943:
1.15 bertrand 6944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6945: $as_echo_n "checking for main in -lpthread... " >&6; }
6946: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6947: $as_echo_n "(cached) " >&6
1.1 bertrand 6948: else
1.15 bertrand 6949: ac_check_lib_save_LIBS=$LIBS
6950: LIBS="-lpthread $LIBS"
6951: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6952: /* end confdefs.h. */
1.15 bertrand 6953:
6954:
1.14 bertrand 6955: int
6956: main ()
6957: {
1.15 bertrand 6958: return main ();
1.14 bertrand 6959: ;
6960: return 0;
6961: }
6962: _ACEOF
1.15 bertrand 6963: if ac_fn_c_try_link "$LINENO"; then :
6964: ac_cv_lib_pthread_main=yes
6965: else
6966: ac_cv_lib_pthread_main=no
6967: fi
6968: rm -f core conftest.err conftest.$ac_objext \
6969: conftest$ac_exeext conftest.$ac_ext
6970: LIBS=$ac_check_lib_save_LIBS
6971: fi
6972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6973: $as_echo "$ac_cv_lib_pthread_main" >&6; }
6974: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
6975: cat >>confdefs.h <<_ACEOF
6976: #define HAVE_LIBPTHREAD 1
1.14 bertrand 6977: _ACEOF
6978:
1.15 bertrand 6979: LIBS="-lpthread $LIBS"
6980:
1.1 bertrand 6981: else
1.36 bertrand 6982: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15 bertrand 6983: fi
1.14 bertrand 6984:
1.1 bertrand 6985:
1.33 bertrand 6986: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
6987: #include <sys/sem.h>
6988:
6989: "
6990: if test "x$ac_cv_type_union_semun" = x""yes; then :
6991: SEMUN=-DUNION_SEMUN
6992: else
6993: SEMUN=-UUNION_SEMUN
6994: fi
6995:
6996:
1.34 bertrand 6997: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35 bertrand 6998: #include <sys/types.h>
1.34 bertrand 6999: #include <netinet/in.h>
7000:
7001: "
7002: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
7003: IPV6=-DIPV6
7004: else
7005: IPV6=-UIPV6
7006: fi
7007:
7008:
1.15 bertrand 7009: if test "$CYGWIN" != yes; then
7010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7011: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7012: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7013: $as_echo_n "(cached) " >&6
1.1 bertrand 7014: else
1.15 bertrand 7015: ac_check_lib_save_LIBS=$LIBS
7016: LIBS="-ldl $LIBS"
7017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7018: /* end confdefs.h. */
7019:
1.15 bertrand 7020: /* Override any GCC internal prototype to avoid an error.
7021: Use char because int might match the return type of a GCC
7022: builtin and then its argument prototype would still apply. */
7023: #ifdef __cplusplus
7024: extern "C"
7025: #endif
7026: char dlopen ();
1.1 bertrand 7027: int
7028: main ()
7029: {
1.15 bertrand 7030: return dlopen ();
1.1 bertrand 7031: ;
7032: return 0;
7033: }
7034: _ACEOF
1.15 bertrand 7035: if ac_fn_c_try_link "$LINENO"; then :
7036: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 7037: else
1.15 bertrand 7038: ac_cv_lib_dl_dlopen=no
7039: fi
7040: rm -f core conftest.err conftest.$ac_objext \
7041: conftest$ac_exeext conftest.$ac_ext
7042: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7043: fi
1.15 bertrand 7044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7045: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7046: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7047: LIBS="$LIBS -ldl"
1.14 bertrand 7048: else
1.15 bertrand 7049: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7050: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7051: fi
7052:
1.14 bertrand 7053: fi
1.1 bertrand 7054:
1.15 bertrand 7055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7056: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7057: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7058: $as_echo_n "(cached) " >&6
7059: else
7060: ac_check_lib_save_LIBS=$LIBS
7061: LIBS="-lrt $LIBS"
7062: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7063: /* end confdefs.h. */
1.15 bertrand 7064:
7065: /* Override any GCC internal prototype to avoid an error.
7066: Use char because int might match the return type of a GCC
7067: builtin and then its argument prototype would still apply. */
7068: #ifdef __cplusplus
7069: extern "C"
7070: #endif
7071: char nanosleep ();
1.1 bertrand 7072: int
7073: main ()
7074: {
1.15 bertrand 7075: return nanosleep ();
1.1 bertrand 7076: ;
7077: return 0;
7078: }
7079: _ACEOF
1.15 bertrand 7080: if ac_fn_c_try_link "$LINENO"; then :
7081: ac_cv_lib_rt_nanosleep=yes
7082: else
7083: ac_cv_lib_rt_nanosleep=no
7084: fi
7085: rm -f core conftest.err conftest.$ac_objext \
7086: conftest$ac_exeext conftest.$ac_ext
7087: LIBS=$ac_check_lib_save_LIBS
7088: fi
7089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7090: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7091: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7092: LIBS="$LIBS -lrt"
1.1 bertrand 7093: else
1.15 bertrand 7094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7095: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7096: fi
1.1 bertrand 7097:
7098:
1.15 bertrand 7099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7100: $as_echo_n "checking for bind in -lsocket... " >&6; }
7101: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7102: $as_echo_n "(cached) " >&6
1.1 bertrand 7103: else
1.15 bertrand 7104: ac_check_lib_save_LIBS=$LIBS
7105: LIBS="-lsocket $LIBS"
7106: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7107: /* end confdefs.h. */
1.15 bertrand 7108:
7109: /* Override any GCC internal prototype to avoid an error.
7110: Use char because int might match the return type of a GCC
7111: builtin and then its argument prototype would still apply. */
7112: #ifdef __cplusplus
7113: extern "C"
7114: #endif
7115: char bind ();
1.1 bertrand 7116: int
7117: main ()
7118: {
1.15 bertrand 7119: return bind ();
1.1 bertrand 7120: ;
7121: return 0;
7122: }
7123: _ACEOF
1.15 bertrand 7124: if ac_fn_c_try_link "$LINENO"; then :
7125: ac_cv_lib_socket_bind=yes
1.1 bertrand 7126: else
1.15 bertrand 7127: ac_cv_lib_socket_bind=no
1.1 bertrand 7128: fi
1.15 bertrand 7129: rm -f core conftest.err conftest.$ac_objext \
7130: conftest$ac_exeext conftest.$ac_ext
7131: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7132: fi
1.15 bertrand 7133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7134: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7135: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7136: LIBS="$LIBS -lsocket"
7137: else
7138: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7139: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7140: fi
7141:
7142:
1.15 bertrand 7143: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7144:
7145: # Check whether --with-mysql was given.
7146: if test "${with_mysql+set}" = set; then :
7147: withval=$with_mysql;
7148: else
7149: with_mysql=check
7150: fi
1.14 bertrand 7151:
7152:
1.15 bertrand 7153: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7154: libMySQLinc="-I/usr/include"
1.30 bertrand 7155: libMySQLlib="/usr/lib"
1.14 bertrand 7156:
1.15 bertrand 7157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7158: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7159: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7160: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7162: /* end confdefs.h. */
1.15 bertrand 7163: #include "mysql.h"
1.1 bertrand 7164: int
7165: main ()
7166: {
1.15 bertrand 7167:
1.1 bertrand 7168: ;
7169: return 0;
7170: }
7171: _ACEOF
1.15 bertrand 7172: if ac_fn_c_try_compile "$LINENO"; then :
7173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7175: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7176: else
1.15 bertrand 7177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7179: fi
1.14 bertrand 7180: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7181: CFLAGS=$saved_CFLAGS
1.1 bertrand 7182:
1.15 bertrand 7183: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7185: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7186: saved_CFLAGS="$CFLAGS"
7187: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7189: /* end confdefs.h. */
1.15 bertrand 7190: #include "mysql.h"
1.1 bertrand 7191: int
7192: main ()
7193: {
7194:
7195: ;
7196: return 0;
7197: }
7198: _ACEOF
1.15 bertrand 7199: if ac_fn_c_try_compile "$LINENO"; then :
7200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7201: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7202: libMySQLinc=$libMySQLinc
7203: else
7204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7206: fi
7207: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208: CFLAGS=$saved_CFLAGS
7209: libMySQLinc=$libMySQLinc/mysql
7210: fi
7211:
7212: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7214: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7215: saved_CFLAGS="$CFLAGS"
7216: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7218: /* end confdefs.h. */
1.15 bertrand 7219: #include "mysql.h"
1.1 bertrand 7220: int
7221: main ()
7222: {
7223:
7224: ;
7225: return 0;
7226: }
7227: _ACEOF
1.15 bertrand 7228: if ac_fn_c_try_compile "$LINENO"; then :
7229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7231: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7232: else
1.15 bertrand 7233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7235: fi
7236: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7237: CFLAGS=$saved_CFLAGS
7238: libMySQLinc=$libMySQLinc/../local/include
7239: libMySQLlib=$libMySQLlib/../local/lib
7240: fi
1.1 bertrand 7241:
1.15 bertrand 7242: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7244: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7245: saved_CFLAGS="$CFLAGS"
7246: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7247: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7248: /* end confdefs.h. */
1.15 bertrand 7249: #include "mysql.h"
1.1 bertrand 7250: int
7251: main ()
7252: {
7253:
7254: ;
7255: return 0;
7256: }
7257: _ACEOF
1.15 bertrand 7258: if ac_fn_c_try_compile "$LINENO"; then :
7259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7260: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7261: libMySQLinc=$libMySQLinc/mysql
7262: else
7263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7265: fi
7266: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267: CFLAGS=$saved_CFLAGS
7268: libMySQLinc=$libMySQLinc/../local/include/mysql
7269: libMySQLlib=$libMySQLlib/../local/lib
7270: fi
7271: else
7272: if test "x$with_mysql" != xno; then
7273: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7274: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7275:
7276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7277: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7278: saved_CFLAGS="$CFLAGS"
7279: CFLAGS="$CFLAGS $libMySQLinc"
7280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7281: /* end confdefs.h. */
1.15 bertrand 7282: #include "mysql.h"
1.1 bertrand 7283: int
7284: main ()
7285: {
7286:
7287: ;
7288: return 0;
7289: }
7290: _ACEOF
1.15 bertrand 7291: if ac_fn_c_try_compile "$LINENO"; then :
7292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7294: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7295: else
1.15 bertrand 7296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7298: fi
7299: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7300: CFLAGS=$saved_CFLAGS
1.1 bertrand 7301:
1.15 bertrand 7302: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7304: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7305: saved_CFLAGS="$CFLAGS"
7306: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7307: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7308: /* end confdefs.h. */
1.15 bertrand 7309: #include "mysql.h"
1.1 bertrand 7310: int
7311: main ()
7312: {
7313:
7314: ;
7315: return 0;
7316: }
7317: _ACEOF
1.15 bertrand 7318: if ac_fn_c_try_compile "$LINENO"; then :
7319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7320: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7321: libMySQLinc=$libMySQLinc
1.1 bertrand 7322: else
1.15 bertrand 7323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7325: fi
7326: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327: CFLAGS=$saved_CFLAGS
7328: libMySQLinc=$libMySQLinc/mysql
7329: fi
7330: else
7331: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7332: fi
7333: fi
1.14 bertrand 7334:
1.15 bertrand 7335: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7336: MYSQL_LIB=no
1.14 bertrand 7337:
1.15 bertrand 7338: if test $MYSQL_LIB = no; then
7339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7340: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7341: saved_LIBS="$LIBS"
1.30 bertrand 7342: if test $STATIC = no; then
7343: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7344: else
7345: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7346: fi
1.15 bertrand 7347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7348: /* end confdefs.h. */
1.15 bertrand 7349: #include "mysql.h"
1.1 bertrand 7350: int
7351: main ()
7352: {
1.15 bertrand 7353: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7354: ;
7355: return 0;
7356: }
7357: _ACEOF
1.15 bertrand 7358: if ac_fn_c_try_link "$LINENO"; then :
7359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7360: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7361: else
1.15 bertrand 7362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363: $as_echo "no" >&6; }; MYSQL_LIB="no"
7364: fi
7365: rm -f core conftest.err conftest.$ac_objext \
7366: conftest$ac_exeext conftest.$ac_ext
7367: LIBS=$saved_LIBS;
1.30 bertrand 7368: if test $STATIC = no; then
7369: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7370: else
7371: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7372: EXT_SQL="$EXT_SQL $libMySQLlib"
7373: fi
1.15 bertrand 7374: fi
1.14 bertrand 7375:
1.15 bertrand 7376: if test $MYSQL_LIB = no; then
7377: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7378: fi
1.14 bertrand 7379: fi
1.15 bertrand 7380:
7381: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7382: libMySQLinc=
7383: libMySQLlib=
1.1 bertrand 7384: fi
1.14 bertrand 7385:
7386:
7387:
1.1 bertrand 7388:
7389:
1.15 bertrand 7390: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7391:
7392: # Check whether --with-postgresql was given.
7393: if test "${with_postgresql+set}" = set; then :
7394: withval=$with_postgresql;
1.14 bertrand 7395: else
1.15 bertrand 7396: with_postgresql=check
7397: fi
7398:
7399:
7400: # with_postgresql : check [pas défini], yes [uniquement --with],
7401: # no [--without], valeur [--with=valeur].
7402:
7403: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7404: libPgSQLinc="-I/usr/include"
1.30 bertrand 7405: libPgSQLlib="/usr/lib"
1.15 bertrand 7406:
7407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7408: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7409: saved_CFLAGS="$CFLAGS"
7410: CFLAGS="$CFLAGS $libPgSQLinc"
7411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7412: /* end confdefs.h. */
1.15 bertrand 7413: #include "libpq-fe.h"
1.1 bertrand 7414: int
7415: main ()
7416: {
1.15 bertrand 7417:
1.1 bertrand 7418: ;
7419: return 0;
7420: }
7421: _ACEOF
1.15 bertrand 7422: if ac_fn_c_try_compile "$LINENO"; then :
7423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7424: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7425: else
1.15 bertrand 7426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7428: fi
1.14 bertrand 7429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7430: CFLAGS=$saved_CFLAGS
1.1 bertrand 7431:
1.15 bertrand 7432: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7434: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7435: saved_CFLAGS="$CFLAGS"
7436: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7438: /* end confdefs.h. */
1.15 bertrand 7439: #include "libpq-fe.h"
1.1 bertrand 7440: int
7441: main ()
7442: {
7443:
7444: ;
7445: return 0;
7446: }
7447: _ACEOF
1.15 bertrand 7448: if ac_fn_c_try_compile "$LINENO"; then :
7449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7450: $as_echo "yes" >&6; };
7451: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7452: else
7453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454: $as_echo "no" >&6; };
7455: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7456: fi
7457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458: CFLAGS=$saved_CFLAGS
7459: libPgSQLinc=$libPgSQLinc/postgresql
7460: fi
7461:
7462: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7464: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7465: saved_CFLAGS="$CFLAGS"
7466: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7468: /* end confdefs.h. */
1.15 bertrand 7469: #include "libpq-fe.h"
1.1 bertrand 7470: int
7471: main ()
7472: {
7473:
7474: ;
7475: return 0;
7476: }
7477: _ACEOF
1.15 bertrand 7478: if ac_fn_c_try_compile "$LINENO"; then :
7479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7480: $as_echo "yes" >&6; };
7481: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7482: else
1.15 bertrand 7483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484: $as_echo "no" >&6; };
7485: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7486: fi
7487: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7488: CFLAGS=$saved_CFLAGS
7489: libPgSQLinc=$libPgSQLinc/pgsql
7490: fi
1.1 bertrand 7491:
1.15 bertrand 7492: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7494: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7495: saved_CFLAGS="$CFLAGS"
7496: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7498: /* end confdefs.h. */
1.15 bertrand 7499: #include "libpq-fe.h"
1.1 bertrand 7500: int
7501: main ()
7502: {
7503:
7504: ;
7505: return 0;
7506: }
7507: _ACEOF
1.15 bertrand 7508: if ac_fn_c_try_compile "$LINENO"; then :
7509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7510: $as_echo "yes" >&6; };
7511: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7512: else
7513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514: $as_echo "no" >&6; };
7515: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7516: fi
7517: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518: CFLAGS=$saved_CFLAGS
7519: libPgSQLinc=$libPgSQLinc/../local/include
7520: libPgSQLlib=$libPgSQLlib/../local/lib
7521: fi
7522:
7523: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7525: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7526: saved_CFLAGS="$CFLAGS"
7527: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7529: /* end confdefs.h. */
1.15 bertrand 7530: #include "libpq-fe.h"
1.1 bertrand 7531: int
7532: main ()
7533: {
7534:
7535: ;
7536: return 0;
7537: }
7538: _ACEOF
1.15 bertrand 7539: if ac_fn_c_try_compile "$LINENO"; then :
7540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7541: $as_echo "yes" >&6; };
7542: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7543: else
1.15 bertrand 7544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545: $as_echo "no" >&6; };
7546: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7547: fi
7548: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7549: CFLAGS=$saved_CFLAGS
7550: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7551: libPgSQLlib=$libPgSQLlib/../local/lib
7552: fi
1.14 bertrand 7553:
1.15 bertrand 7554: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7556: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7557: saved_CFLAGS="$CFLAGS"
7558: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7560: /* end confdefs.h. */
1.15 bertrand 7561: #include "libpq-fe.h"
1.1 bertrand 7562: int
7563: main ()
7564: {
7565:
7566: ;
7567: return 0;
7568: }
7569: _ACEOF
1.15 bertrand 7570: if ac_fn_c_try_compile "$LINENO"; then :
7571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7572: $as_echo "yes" >&6; };
7573: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7574: else
1.15 bertrand 7575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576: $as_echo "no" >&6; };
7577: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7578: fi
7579: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7580: CFLAGS=$saved_CFLAGS
7581: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7582: libPgSQLlib=$libPgSQLlib/../local/lib
7583: fi
1.14 bertrand 7584: else
1.15 bertrand 7585: if test "x$with_postgresql" != xno; then
7586: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7587: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7588:
7589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7590: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7591: saved_CFLAGS="$CFLAGS"
7592: CFLAGS="$CFLAGS $libPgSQLinc"
7593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7594: /* end confdefs.h. */
1.15 bertrand 7595: #include "libpq-fe.h"
1.1 bertrand 7596: int
7597: main ()
7598: {
7599:
7600: ;
7601: return 0;
7602: }
7603: _ACEOF
1.15 bertrand 7604: if ac_fn_c_try_compile "$LINENO"; then :
7605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7606: $as_echo "yes" >&6; };
7607: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7608: else
1.15 bertrand 7609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610: $as_echo "no" >&6; };
7611: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7612: fi
1.15 bertrand 7613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614: CFLAGS=$saved_CFLAGS
1.14 bertrand 7615:
1.15 bertrand 7616: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7618: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7619: saved_CFLAGS="$CFLAGS"
7620: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7621: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7622: /* end confdefs.h. */
1.15 bertrand 7623: #include "libpq-fe.h"
1.1 bertrand 7624: int
7625: main ()
7626: {
1.15 bertrand 7627:
1.1 bertrand 7628: ;
7629: return 0;
7630: }
7631: _ACEOF
1.15 bertrand 7632: if ac_fn_c_try_compile "$LINENO"; then :
7633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7634: $as_echo "yes" >&6; };
7635: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7636: else
1.15 bertrand 7637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638: $as_echo "no" >&6; };
7639: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7640: fi
7641: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7642: CFLAGS=$saved_CFLAGS
7643: libPgSQLinc=$libPgSQLinc/postgresql
7644: fi
1.14 bertrand 7645:
1.15 bertrand 7646: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7648: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7649: saved_CFLAGS="$CFLAGS"
7650: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7651: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7652: /* end confdefs.h. */
1.15 bertrand 7653: #include "libpq-fe.h"
1.1 bertrand 7654: int
7655: main ()
7656: {
1.15 bertrand 7657:
1.1 bertrand 7658: ;
7659: return 0;
7660: }
7661: _ACEOF
1.15 bertrand 7662: if ac_fn_c_try_compile "$LINENO"; then :
7663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7664: $as_echo "yes" >&6; };
7665: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7666: else
1.15 bertrand 7667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668: $as_echo "no" >&6; };
7669: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7670: fi
1.15 bertrand 7671: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672: CFLAGS=$saved_CFLAGS
7673: libPgSQLinc=$libPgSQLinc/pgsql
7674: fi
7675: else
7676: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7677: fi
1.1 bertrand 7678: fi
7679:
1.15 bertrand 7680: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7681: POSTGRESQL_LIB=no
1.1 bertrand 7682:
1.15 bertrand 7683: if test $POSTGRESQL_LIB = no; then
7684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7685: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7686: saved_LIBS="$LIBS"
1.30 bertrand 7687: if test $STATIC = no; then
7688: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7689: else
7690: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7691: fi
1.15 bertrand 7692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7693: /* end confdefs.h. */
1.15 bertrand 7694: #include "libpq-fe.h"
1.1 bertrand 7695: int
7696: main ()
7697: {
1.15 bertrand 7698: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7699: PQconnectdb(conninfo);
1.1 bertrand 7700: ;
7701: return 0;
7702: }
7703: _ACEOF
1.15 bertrand 7704: if ac_fn_c_try_link "$LINENO"; then :
7705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7707: else
1.15 bertrand 7708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7710: fi
7711: rm -f core conftest.err conftest.$ac_objext \
7712: conftest$ac_exeext conftest.$ac_ext
7713: LIBS=$saved_LIBS;
1.30 bertrand 7714: if test $STATIC = no; then
7715: libPgSQLlib="-L/$libPgSQLlib -lpq"
7716: else
7717: libPgSQLlib="$libPgSQLlib/libpq.a"
7718: EXT_SQL="$EXT_SQL $libPgSQLlib"
7719: fi
1.15 bertrand 7720: fi
7721: fi
7722:
7723: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7724: libPgSQLinc=
7725: libPgSQLlib=
7726: fi
7727:
7728:
7729:
7730:
1.14 bertrand 7731:
1.40 ! bertrand 7732: # with_postgresql : check [pas défini], yes [uniquement --with],
! 7733: # no [--without], valeur [--with=valeur].
! 7734:
! 7735: # Check whether --with-bourne_shell was given.
! 7736: if test "${with_bourne_shell+set}" = set; then :
! 7737: withval=$with_bourne_shell;
! 7738: else
! 7739: with_bourne_shell=no
! 7740: fi
! 7741:
! 7742:
! 7743: if test "x$with_bourne_shell" = xyes; then
! 7744: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
! 7745: fi
! 7746:
! 7747: if test "x$with_bourne_shell" = xno; then
! 7748: if test $(uname) = "OS/2"; then
! 7749: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
! 7750: fi
! 7751:
! 7752: BSH_PATH=
! 7753: else
! 7754: if test ! -x $with_bourne_shell; then
! 7755: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
! 7756: fi
! 7757:
! 7758: if test $(uname) = "OS/2"; then
! 7759: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_bourne_shell\\\"\"
! 7760: else
! 7761: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
! 7762: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
! 7763: BSH_PATH=
! 7764: fi
! 7765: fi
! 7766:
1.15 bertrand 7767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7768: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7769: if test "${ac_cv_path_GREP+set}" = set; then :
7770: $as_echo_n "(cached) " >&6
7771: else
7772: if test -z "$GREP"; then
7773: ac_path_GREP_found=false
7774: # Loop through the user's path and test for each of PROGNAME-LIST
7775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7777: do
7778: IFS=$as_save_IFS
7779: test -z "$as_dir" && as_dir=.
7780: for ac_prog in grep ggrep; do
7781: for ac_exec_ext in '' $ac_executable_extensions; do
7782: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7783: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7784: # Check for GNU ac_path_GREP and select it if it is found.
7785: # Check for GNU $ac_path_GREP
7786: case `"$ac_path_GREP" --version 2>&1` in
7787: *GNU*)
7788: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7789: *)
7790: ac_count=0
7791: $as_echo_n 0123456789 >"conftest.in"
7792: while :
7793: do
7794: cat "conftest.in" "conftest.in" >"conftest.tmp"
7795: mv "conftest.tmp" "conftest.in"
7796: cp "conftest.in" "conftest.nl"
7797: $as_echo 'GREP' >> "conftest.nl"
7798: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7799: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7800: as_fn_arith $ac_count + 1 && ac_count=$as_val
7801: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7802: # Best one so far, save it but keep looking for a better one
7803: ac_cv_path_GREP="$ac_path_GREP"
7804: ac_path_GREP_max=$ac_count
7805: fi
7806: # 10*(2^10) chars as input seems more than enough
7807: test $ac_count -gt 10 && break
7808: done
7809: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7810: esac
1.14 bertrand 7811:
1.15 bertrand 7812: $ac_path_GREP_found && break 3
7813: done
7814: done
7815: done
7816: IFS=$as_save_IFS
7817: if test -z "$ac_cv_path_GREP"; then
1.36 bertrand 7818: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7819: fi
7820: else
7821: ac_cv_path_GREP=$GREP
1.1 bertrand 7822: fi
7823:
7824: fi
1.15 bertrand 7825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7826: $as_echo "$ac_cv_path_GREP" >&6; }
7827: GREP="$ac_cv_path_GREP"
7828:
7829:
7830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7831: $as_echo_n "checking for egrep... " >&6; }
7832: if test "${ac_cv_path_EGREP+set}" = set; then :
7833: $as_echo_n "(cached) " >&6
7834: else
7835: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7836: then ac_cv_path_EGREP="$GREP -E"
7837: else
7838: if test -z "$EGREP"; then
7839: ac_path_EGREP_found=false
7840: # Loop through the user's path and test for each of PROGNAME-LIST
7841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7843: do
7844: IFS=$as_save_IFS
7845: test -z "$as_dir" && as_dir=.
7846: for ac_prog in egrep; do
7847: for ac_exec_ext in '' $ac_executable_extensions; do
7848: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7849: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7850: # Check for GNU ac_path_EGREP and select it if it is found.
7851: # Check for GNU $ac_path_EGREP
7852: case `"$ac_path_EGREP" --version 2>&1` in
7853: *GNU*)
7854: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7855: *)
7856: ac_count=0
7857: $as_echo_n 0123456789 >"conftest.in"
7858: while :
7859: do
7860: cat "conftest.in" "conftest.in" >"conftest.tmp"
7861: mv "conftest.tmp" "conftest.in"
7862: cp "conftest.in" "conftest.nl"
7863: $as_echo 'EGREP' >> "conftest.nl"
7864: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7865: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7866: as_fn_arith $ac_count + 1 && ac_count=$as_val
7867: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7868: # Best one so far, save it but keep looking for a better one
7869: ac_cv_path_EGREP="$ac_path_EGREP"
7870: ac_path_EGREP_max=$ac_count
7871: fi
7872: # 10*(2^10) chars as input seems more than enough
7873: test $ac_count -gt 10 && break
7874: done
7875: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7876: esac
7877:
7878: $ac_path_EGREP_found && break 3
7879: done
7880: done
7881: done
7882: IFS=$as_save_IFS
7883: if test -z "$ac_cv_path_EGREP"; then
1.36 bertrand 7884: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7885: fi
1.1 bertrand 7886: else
1.15 bertrand 7887: ac_cv_path_EGREP=$EGREP
1.1 bertrand 7888: fi
7889:
1.15 bertrand 7890: fi
1.1 bertrand 7891: fi
1.15 bertrand 7892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7893: $as_echo "$ac_cv_path_EGREP" >&6; }
7894: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 7895:
7896:
1.15 bertrand 7897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7898: $as_echo_n "checking for ANSI C header files... " >&6; }
7899: if test "${ac_cv_header_stdc+set}" = set; then :
7900: $as_echo_n "(cached) " >&6
1.1 bertrand 7901: else
1.15 bertrand 7902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7903: /* end confdefs.h. */
7904: #include <stdlib.h>
7905: #include <stdarg.h>
7906: #include <string.h>
7907: #include <float.h>
7908:
7909: int
7910: main ()
7911: {
7912:
7913: ;
7914: return 0;
7915: }
7916: _ACEOF
1.15 bertrand 7917: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 7918: ac_cv_header_stdc=yes
7919: else
1.15 bertrand 7920: ac_cv_header_stdc=no
1.1 bertrand 7921: fi
7922: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923:
7924: if test $ac_cv_header_stdc = yes; then
7925: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 7926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7927: /* end confdefs.h. */
7928: #include <string.h>
7929:
7930: _ACEOF
7931: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7932: $EGREP "memchr" >/dev/null 2>&1; then :
7933:
1.1 bertrand 7934: else
7935: ac_cv_header_stdc=no
7936: fi
7937: rm -f conftest*
7938:
7939: fi
7940:
7941: if test $ac_cv_header_stdc = yes; then
7942: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 7943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7944: /* end confdefs.h. */
7945: #include <stdlib.h>
7946:
7947: _ACEOF
7948: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7949: $EGREP "free" >/dev/null 2>&1; then :
7950:
1.1 bertrand 7951: else
7952: ac_cv_header_stdc=no
7953: fi
7954: rm -f conftest*
7955:
7956: fi
7957:
7958: if test $ac_cv_header_stdc = yes; then
7959: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 7960: if test "$cross_compiling" = yes; then :
1.1 bertrand 7961: :
7962: else
1.15 bertrand 7963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7964: /* end confdefs.h. */
7965: #include <ctype.h>
7966: #include <stdlib.h>
7967: #if ((' ' & 0x0FF) == 0x020)
7968: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7969: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7970: #else
7971: # define ISLOWER(c) \
7972: (('a' <= (c) && (c) <= 'i') \
7973: || ('j' <= (c) && (c) <= 'r') \
7974: || ('s' <= (c) && (c) <= 'z'))
7975: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7976: #endif
7977:
7978: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7979: int
7980: main ()
7981: {
7982: int i;
7983: for (i = 0; i < 256; i++)
7984: if (XOR (islower (i), ISLOWER (i))
7985: || toupper (i) != TOUPPER (i))
7986: return 2;
7987: return 0;
7988: }
7989: _ACEOF
1.15 bertrand 7990: if ac_fn_c_try_run "$LINENO"; then :
7991:
1.14 bertrand 7992: else
1.15 bertrand 7993: ac_cv_header_stdc=no
7994: fi
7995: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7996: conftest.$ac_objext conftest.beam conftest.$ac_ext
7997: fi
1.1 bertrand 7998:
7999: fi
8000: fi
1.15 bertrand 8001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8002: $as_echo "$ac_cv_header_stdc" >&6; }
8003: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8004:
1.15 bertrand 8005: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 8006:
1.1 bertrand 8007: fi
8008:
1.15 bertrand 8009: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8010: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8011: inttypes.h stdint.h unistd.h
8012: do :
8013: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8014: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8015: "
1.36 bertrand 8016: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8017: cat >>confdefs.h <<_ACEOF
8018: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 8019: _ACEOF
1.1 bertrand 8020:
8021: fi
8022:
1.15 bertrand 8023: done
8024:
8025:
8026: # The cast to long int works around a bug in the HP C Compiler
8027: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8028: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8029: # This bug is HP SR number 8606223364.
8030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8031: $as_echo_n "checking size of void *... " >&6; }
8032: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8033: $as_echo_n "(cached) " >&6
8034: else
8035: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 8036:
8037: else
1.15 bertrand 8038: if test "$ac_cv_type_void_p" = yes; then
8039: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8040: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8041: as_fn_error 77 "cannot compute sizeof (void *)
8042: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8043: else
8044: ac_cv_sizeof_void_p=0
8045: fi
8046: fi
1.1 bertrand 8047:
8048: fi
1.15 bertrand 8049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8050: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8051:
1.1 bertrand 8052:
8053:
1.15 bertrand 8054: cat >>confdefs.h <<_ACEOF
8055: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 8056: _ACEOF
1.1 bertrand 8057:
1.15 bertrand 8058:
8059: # The cast to long int works around a bug in the HP C Compiler
8060: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8061: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8062: # This bug is HP SR number 8606223364.
8063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8064: $as_echo_n "checking size of char... " >&6; }
8065: if test "${ac_cv_sizeof_char+set}" = set; then :
8066: $as_echo_n "(cached) " >&6
8067: else
8068: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8069:
8070: else
8071: if test "$ac_cv_type_char" = yes; then
8072: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8073: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8074: as_fn_error 77 "cannot compute sizeof (char)
8075: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8076: else
8077: ac_cv_sizeof_char=0
8078: fi
8079: fi
8080:
1.1 bertrand 8081: fi
1.15 bertrand 8082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8083: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 8084:
8085:
8086:
1.15 bertrand 8087: cat >>confdefs.h <<_ACEOF
8088: #define SIZEOF_CHAR $ac_cv_sizeof_char
8089: _ACEOF
1.1 bertrand 8090:
8091:
1.15 bertrand 8092: # The cast to long int works around a bug in the HP C Compiler
8093: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8094: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8095: # This bug is HP SR number 8606223364.
8096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8097: $as_echo_n "checking size of short int... " >&6; }
8098: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8099: $as_echo_n "(cached) " >&6
8100: else
8101: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 8102:
1.15 bertrand 8103: else
8104: if test "$ac_cv_type_short_int" = yes; then
8105: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8106: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8107: as_fn_error 77 "cannot compute sizeof (short int)
8108: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8109: else
8110: ac_cv_sizeof_short_int=0
8111: fi
8112: fi
1.1 bertrand 8113:
1.15 bertrand 8114: fi
8115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8116: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8117:
8118:
8119:
1.15 bertrand 8120: cat >>confdefs.h <<_ACEOF
8121: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8122: _ACEOF
1.1 bertrand 8123:
8124:
1.15 bertrand 8125: # The cast to long int works around a bug in the HP C Compiler
8126: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8127: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8128: # This bug is HP SR number 8606223364.
8129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8130: $as_echo_n "checking size of int... " >&6; }
8131: if test "${ac_cv_sizeof_int+set}" = set; then :
8132: $as_echo_n "(cached) " >&6
8133: else
8134: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8135:
1.15 bertrand 8136: else
8137: if test "$ac_cv_type_int" = yes; then
8138: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8139: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8140: as_fn_error 77 "cannot compute sizeof (int)
8141: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8142: else
8143: ac_cv_sizeof_int=0
8144: fi
8145: fi
1.1 bertrand 8146:
1.15 bertrand 8147: fi
8148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8149: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8150:
8151:
8152:
1.15 bertrand 8153: cat >>confdefs.h <<_ACEOF
8154: #define SIZEOF_INT $ac_cv_sizeof_int
8155: _ACEOF
1.1 bertrand 8156:
8157:
1.15 bertrand 8158: # The cast to long int works around a bug in the HP C Compiler
8159: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8160: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8161: # This bug is HP SR number 8606223364.
8162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8163: $as_echo_n "checking size of long int... " >&6; }
8164: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8165: $as_echo_n "(cached) " >&6
8166: else
8167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8168:
1.14 bertrand 8169: else
1.15 bertrand 8170: if test "$ac_cv_type_long_int" = yes; then
8171: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8172: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8173: as_fn_error 77 "cannot compute sizeof (long int)
8174: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8175: else
8176: ac_cv_sizeof_long_int=0
8177: fi
8178: fi
1.1 bertrand 8179:
8180: fi
1.15 bertrand 8181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8182: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8183:
1.1 bertrand 8184:
8185:
1.15 bertrand 8186: cat >>confdefs.h <<_ACEOF
8187: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8188: _ACEOF
1.15 bertrand 8189:
8190:
8191: # The cast to long int works around a bug in the HP C Compiler
8192: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8193: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8194: # This bug is HP SR number 8606223364.
8195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8196: $as_echo_n "checking size of long long int... " >&6; }
8197: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8198: $as_echo_n "(cached) " >&6
8199: else
8200: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8201:
1.14 bertrand 8202: else
1.15 bertrand 8203: if test "$ac_cv_type_long_long_int" = yes; then
8204: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8205: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8206: as_fn_error 77 "cannot compute sizeof (long long int)
8207: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8208: else
8209: ac_cv_sizeof_long_long_int=0
8210: fi
8211: fi
1.1 bertrand 8212:
1.14 bertrand 8213: fi
1.15 bertrand 8214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8215: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8216:
8217:
8218:
8219: cat >>confdefs.h <<_ACEOF
8220: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8221: _ACEOF
1.1 bertrand 8222:
8223:
1.15 bertrand 8224: # The cast to long int works around a bug in the HP C Compiler
8225: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8226: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8227: # This bug is HP SR number 8606223364.
8228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8229: $as_echo_n "checking size of float... " >&6; }
8230: if test "${ac_cv_sizeof_float+set}" = set; then :
8231: $as_echo_n "(cached) " >&6
8232: else
8233: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8234:
8235: else
1.15 bertrand 8236: if test "$ac_cv_type_float" = yes; then
8237: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8238: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8239: as_fn_error 77 "cannot compute sizeof (float)
8240: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8241: else
8242: ac_cv_sizeof_float=0
8243: fi
1.14 bertrand 8244: fi
8245:
1.1 bertrand 8246: fi
1.15 bertrand 8247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8248: $as_echo "$ac_cv_sizeof_float" >&6; }
8249:
8250:
8251:
8252: cat >>confdefs.h <<_ACEOF
8253: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8254: _ACEOF
1.1 bertrand 8255:
8256:
1.15 bertrand 8257: # The cast to long int works around a bug in the HP C Compiler
8258: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8259: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8260: # This bug is HP SR number 8606223364.
8261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8262: $as_echo_n "checking size of double... " >&6; }
8263: if test "${ac_cv_sizeof_double+set}" = set; then :
8264: $as_echo_n "(cached) " >&6
8265: else
8266: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8267:
1.15 bertrand 8268: else
8269: if test "$ac_cv_type_double" = yes; then
8270: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8271: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8272: as_fn_error 77 "cannot compute sizeof (double)
8273: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8274: else
8275: ac_cv_sizeof_double=0
8276: fi
8277: fi
1.1 bertrand 8278:
1.15 bertrand 8279: fi
8280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8281: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8282:
1.1 bertrand 8283:
8284:
1.15 bertrand 8285: cat >>confdefs.h <<_ACEOF
8286: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8287: _ACEOF
1.15 bertrand 8288:
8289:
8290: # The cast to long int works around a bug in the HP C Compiler
8291: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8292: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8293: # This bug is HP SR number 8606223364.
8294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8295: $as_echo_n "checking size of long double... " >&6; }
8296: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8297: $as_echo_n "(cached) " >&6
8298: else
8299: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8300:
1.14 bertrand 8301: else
1.15 bertrand 8302: if test "$ac_cv_type_long_double" = yes; then
8303: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8304: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8305: as_fn_error 77 "cannot compute sizeof (long double)
8306: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8307: else
8308: ac_cv_sizeof_long_double=0
8309: fi
8310: fi
1.1 bertrand 8311:
8312: fi
1.15 bertrand 8313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8314: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8315:
1.1 bertrand 8316:
8317:
1.15 bertrand 8318: cat >>confdefs.h <<_ACEOF
8319: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8320: _ACEOF
8321:
8322:
1.15 bertrand 8323:
8324: ac_header_dirent=no
8325: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8326: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8328: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.36 bertrand 8329: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
1.15 bertrand 8330: $as_echo_n "(cached) " >&6
1.1 bertrand 8331: else
1.15 bertrand 8332: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8333: /* end confdefs.h. */
8334: #include <sys/types.h>
1.15 bertrand 8335: #include <$ac_hdr>
1.1 bertrand 8336:
1.15 bertrand 8337: int
8338: main ()
8339: {
8340: if ((DIR *) 0)
8341: return 0;
8342: ;
8343: return 0;
8344: }
1.1 bertrand 8345: _ACEOF
1.15 bertrand 8346: if ac_fn_c_try_compile "$LINENO"; then :
8347: eval "$as_ac_Header=yes"
1.1 bertrand 8348: else
1.15 bertrand 8349: eval "$as_ac_Header=no"
8350: fi
8351: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8352: fi
1.15 bertrand 8353: eval ac_res=\$$as_ac_Header
8354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8355: $as_echo "$ac_res" >&6; }
1.36 bertrand 8356: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8357: cat >>confdefs.h <<_ACEOF
8358: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8359: _ACEOF
1.1 bertrand 8360:
1.15 bertrand 8361: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8362: fi
8363:
1.15 bertrand 8364: done
8365: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8366: if test $ac_header_dirent = dirent.h; then
8367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8368: $as_echo_n "checking for library containing opendir... " >&6; }
8369: if test "${ac_cv_search_opendir+set}" = set; then :
8370: $as_echo_n "(cached) " >&6
8371: else
8372: ac_func_search_save_LIBS=$LIBS
8373: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374: /* end confdefs.h. */
8375:
8376: /* Override any GCC internal prototype to avoid an error.
8377: Use char because int might match the return type of a GCC
8378: builtin and then its argument prototype would still apply. */
8379: #ifdef __cplusplus
8380: extern "C"
8381: #endif
8382: char opendir ();
8383: int
8384: main ()
8385: {
8386: return opendir ();
8387: ;
8388: return 0;
8389: }
1.14 bertrand 8390: _ACEOF
1.15 bertrand 8391: for ac_lib in '' dir; do
8392: if test -z "$ac_lib"; then
8393: ac_res="none required"
8394: else
8395: ac_res=-l$ac_lib
8396: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8397: fi
8398: if ac_fn_c_try_link "$LINENO"; then :
8399: ac_cv_search_opendir=$ac_res
8400: fi
8401: rm -f core conftest.err conftest.$ac_objext \
8402: conftest$ac_exeext
8403: if test "${ac_cv_search_opendir+set}" = set; then :
8404: break
8405: fi
8406: done
8407: if test "${ac_cv_search_opendir+set}" = set; then :
1.1 bertrand 8408:
1.15 bertrand 8409: else
8410: ac_cv_search_opendir=no
8411: fi
8412: rm conftest.$ac_ext
8413: LIBS=$ac_func_search_save_LIBS
8414: fi
8415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8416: $as_echo "$ac_cv_search_opendir" >&6; }
8417: ac_res=$ac_cv_search_opendir
8418: if test "$ac_res" != no; then :
8419: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8420:
1.14 bertrand 8421: fi
1.1 bertrand 8422:
8423: else
1.15 bertrand 8424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8425: $as_echo_n "checking for library containing opendir... " >&6; }
8426: if test "${ac_cv_search_opendir+set}" = set; then :
8427: $as_echo_n "(cached) " >&6
8428: else
8429: ac_func_search_save_LIBS=$LIBS
8430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8431: /* end confdefs.h. */
1.15 bertrand 8432:
8433: /* Override any GCC internal prototype to avoid an error.
8434: Use char because int might match the return type of a GCC
8435: builtin and then its argument prototype would still apply. */
8436: #ifdef __cplusplus
8437: extern "C"
8438: #endif
8439: char opendir ();
1.1 bertrand 8440: int
8441: main ()
8442: {
1.15 bertrand 8443: return opendir ();
1.1 bertrand 8444: ;
8445: return 0;
8446: }
8447: _ACEOF
1.15 bertrand 8448: for ac_lib in '' x; do
8449: if test -z "$ac_lib"; then
8450: ac_res="none required"
8451: else
8452: ac_res=-l$ac_lib
8453: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8454: fi
8455: if ac_fn_c_try_link "$LINENO"; then :
8456: ac_cv_search_opendir=$ac_res
8457: fi
8458: rm -f core conftest.err conftest.$ac_objext \
8459: conftest$ac_exeext
8460: if test "${ac_cv_search_opendir+set}" = set; then :
8461: break
8462: fi
8463: done
8464: if test "${ac_cv_search_opendir+set}" = set; then :
8465:
1.1 bertrand 8466: else
1.15 bertrand 8467: ac_cv_search_opendir=no
8468: fi
8469: rm conftest.$ac_ext
8470: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8471: fi
1.15 bertrand 8472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8473: $as_echo "$ac_cv_search_opendir" >&6; }
8474: ac_res=$ac_cv_search_opendir
8475: if test "$ac_res" != no; then :
8476: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8477:
1.1 bertrand 8478: fi
8479:
8480: fi
8481:
1.15 bertrand 8482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8483: $as_echo_n "checking for ANSI C header files... " >&6; }
8484: if test "${ac_cv_header_stdc+set}" = set; then :
8485: $as_echo_n "(cached) " >&6
1.1 bertrand 8486: else
1.15 bertrand 8487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8488: /* end confdefs.h. */
1.15 bertrand 8489: #include <stdlib.h>
8490: #include <stdarg.h>
8491: #include <string.h>
8492: #include <float.h>
8493:
1.1 bertrand 8494: int
8495: main ()
8496: {
1.15 bertrand 8497:
1.1 bertrand 8498: ;
8499: return 0;
8500: }
8501: _ACEOF
1.15 bertrand 8502: if ac_fn_c_try_compile "$LINENO"; then :
8503: ac_cv_header_stdc=yes
1.14 bertrand 8504: else
1.15 bertrand 8505: ac_cv_header_stdc=no
8506: fi
8507: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508:
8509: if test $ac_cv_header_stdc = yes; then
8510: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512: /* end confdefs.h. */
8513: #include <string.h>
8514:
8515: _ACEOF
8516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8517: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8518:
1.15 bertrand 8519: else
8520: ac_cv_header_stdc=no
1.1 bertrand 8521: fi
1.15 bertrand 8522: rm -f conftest*
1.14 bertrand 8523:
1.1 bertrand 8524: fi
8525:
1.15 bertrand 8526: if test $ac_cv_header_stdc = yes; then
8527: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529: /* end confdefs.h. */
8530: #include <stdlib.h>
8531:
1.14 bertrand 8532: _ACEOF
1.15 bertrand 8533: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8534: $EGREP "free" >/dev/null 2>&1; then :
8535:
8536: else
8537: ac_cv_header_stdc=no
8538: fi
8539: rm -f conftest*
1.1 bertrand 8540:
8541: fi
8542:
1.15 bertrand 8543: if test $ac_cv_header_stdc = yes; then
8544: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8545: if test "$cross_compiling" = yes; then :
8546: :
1.1 bertrand 8547: else
1.15 bertrand 8548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8549: /* end confdefs.h. */
1.15 bertrand 8550: #include <ctype.h>
8551: #include <stdlib.h>
8552: #if ((' ' & 0x0FF) == 0x020)
8553: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8554: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8555: #else
8556: # define ISLOWER(c) \
8557: (('a' <= (c) && (c) <= 'i') \
8558: || ('j' <= (c) && (c) <= 'r') \
8559: || ('s' <= (c) && (c) <= 'z'))
8560: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8561: #endif
1.1 bertrand 8562:
1.15 bertrand 8563: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8564: int
8565: main ()
8566: {
1.15 bertrand 8567: int i;
8568: for (i = 0; i < 256; i++)
8569: if (XOR (islower (i), ISLOWER (i))
8570: || toupper (i) != TOUPPER (i))
8571: return 2;
1.1 bertrand 8572: return 0;
8573: }
8574: _ACEOF
1.15 bertrand 8575: if ac_fn_c_try_run "$LINENO"; then :
8576:
1.14 bertrand 8577: else
1.15 bertrand 8578: ac_cv_header_stdc=no
8579: fi
8580: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8581: conftest.$ac_objext conftest.beam conftest.$ac_ext
8582: fi
1.14 bertrand 8583:
1.1 bertrand 8584: fi
8585: fi
1.15 bertrand 8586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8587: $as_echo "$ac_cv_header_stdc" >&6; }
8588: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8589:
1.15 bertrand 8590: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8591:
8592: fi
8593:
1.15 bertrand 8594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8595: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8596: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8597: $as_echo_n "(cached) " >&6
1.1 bertrand 8598: else
1.15 bertrand 8599: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8600: /* end confdefs.h. */
1.14 bertrand 8601: #include <sys/types.h>
1.15 bertrand 8602: #include <sys/wait.h>
8603: #ifndef WEXITSTATUS
8604: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8605: #endif
8606: #ifndef WIFEXITED
8607: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8608: #endif
1.1 bertrand 8609:
8610: int
8611: main ()
8612: {
1.15 bertrand 8613: int s;
8614: wait (&s);
8615: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8616: ;
8617: return 0;
8618: }
8619: _ACEOF
1.15 bertrand 8620: if ac_fn_c_try_compile "$LINENO"; then :
8621: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8622: else
1.15 bertrand 8623: ac_cv_header_sys_wait_h=no
8624: fi
8625: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626: fi
8627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8628: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8629: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8630:
1.15 bertrand 8631: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8632:
8633: fi
8634:
1.15 bertrand 8635: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8636: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8637: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8638: do :
8639: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8640: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36 bertrand 8641: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8642: cat >>confdefs.h <<_ACEOF
8643: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8644: _ACEOF
8645:
8646: fi
8647:
1.15 bertrand 8648: done
8649:
1.1 bertrand 8650:
1.15 bertrand 8651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8652: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8653: if test "${ac_cv_c_const+set}" = set; then :
8654: $as_echo_n "(cached) " >&6
1.1 bertrand 8655: else
1.15 bertrand 8656: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8657: /* end confdefs.h. */
8658:
8659: int
8660: main ()
8661: {
1.15 bertrand 8662: /* FIXME: Include the comments suggested by Paul. */
8663: #ifndef __cplusplus
8664: /* Ultrix mips cc rejects this. */
8665: typedef int charset[2];
8666: const charset cs;
8667: /* SunOS 4.1.1 cc rejects this. */
8668: char const *const *pcpcc;
8669: char **ppc;
8670: /* NEC SVR4.0.2 mips cc rejects this. */
8671: struct point {int x, y;};
8672: static struct point const zero = {0,0};
8673: /* AIX XL C 1.02.0.0 rejects this.
8674: It does not let you subtract one const X* pointer from another in
8675: an arm of an if-expression whose if-part is not a constant
8676: expression */
8677: const char *g = "string";
8678: pcpcc = &g + (g ? g-g : 0);
8679: /* HPUX 7.0 cc rejects these. */
8680: ++pcpcc;
8681: ppc = (char**) pcpcc;
8682: pcpcc = (char const *const *) ppc;
8683: { /* SCO 3.2v4 cc rejects this. */
8684: char *t;
8685: char const *s = 0 ? (char *) 0 : (char const *) 0;
8686:
8687: *t++ = 0;
8688: if (s) return 0;
8689: }
8690: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8691: int x[] = {25, 17};
8692: const int *foo = &x[0];
8693: ++foo;
8694: }
8695: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8696: typedef const int *iptr;
8697: iptr p = 0;
8698: ++p;
8699: }
8700: { /* AIX XL C 1.02.0.0 rejects this saying
8701: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8702: struct s { int j; const int *ap[3]; };
8703: struct s *b; b->j = 5;
8704: }
8705: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8706: const int foo = 10;
8707: if (!foo) return 0;
8708: }
8709: return !cs[0] && !zero.x;
8710: #endif
8711:
1.14 bertrand 8712: ;
1.1 bertrand 8713: return 0;
8714: }
8715: _ACEOF
1.15 bertrand 8716: if ac_fn_c_try_compile "$LINENO"; then :
8717: ac_cv_c_const=yes
1.14 bertrand 8718: else
1.15 bertrand 8719: ac_cv_c_const=no
1.1 bertrand 8720: fi
1.14 bertrand 8721: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8722: fi
1.15 bertrand 8723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8724: $as_echo "$ac_cv_c_const" >&6; }
8725: if test $ac_cv_c_const = no; then
1.1 bertrand 8726:
1.15 bertrand 8727: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 8728:
1.15 bertrand 8729: fi
1.1 bertrand 8730:
1.15 bertrand 8731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8732: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8733: if test "${ac_cv_type_uid_t+set}" = set; then :
8734: $as_echo_n "(cached) " >&6
1.1 bertrand 8735: else
1.15 bertrand 8736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8737: /* end confdefs.h. */
1.15 bertrand 8738: #include <sys/types.h>
8739:
1.1 bertrand 8740: _ACEOF
1.15 bertrand 8741: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8742: $EGREP "uid_t" >/dev/null 2>&1; then :
8743: ac_cv_type_uid_t=yes
1.1 bertrand 8744: else
1.15 bertrand 8745: ac_cv_type_uid_t=no
8746: fi
8747: rm -f conftest*
1.14 bertrand 8748:
1.1 bertrand 8749: fi
1.15 bertrand 8750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8751: $as_echo "$ac_cv_type_uid_t" >&6; }
8752: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 8753:
1.15 bertrand 8754: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 8755:
8756:
1.15 bertrand 8757: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 8758:
8759: fi
8760:
1.15 bertrand 8761: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8762: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1 bertrand 8763:
8764: else
1.15 bertrand 8765:
8766: cat >>confdefs.h <<_ACEOF
8767: #define pid_t int
1.14 bertrand 8768: _ACEOF
8769:
1.15 bertrand 8770: fi
1.14 bertrand 8771:
1.15 bertrand 8772: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8773: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14 bertrand 8774:
1.15 bertrand 8775: else
1.1 bertrand 8776:
1.15 bertrand 8777: cat >>confdefs.h <<_ACEOF
8778: #define size_t unsigned int
1.1 bertrand 8779: _ACEOF
1.14 bertrand 8780:
1.1 bertrand 8781: fi
8782:
1.15 bertrand 8783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8784: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8785: if test "${ac_cv_header_time+set}" = set; then :
8786: $as_echo_n "(cached) " >&6
1.1 bertrand 8787: else
1.15 bertrand 8788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8789: /* end confdefs.h. */
1.15 bertrand 8790: #include <sys/types.h>
8791: #include <sys/time.h>
8792: #include <time.h>
1.1 bertrand 8793:
1.14 bertrand 8794: int
8795: main ()
8796: {
1.15 bertrand 8797: if ((struct tm *) 0)
8798: return 0;
1.14 bertrand 8799: ;
8800: return 0;
8801: }
1.1 bertrand 8802: _ACEOF
1.15 bertrand 8803: if ac_fn_c_try_compile "$LINENO"; then :
8804: ac_cv_header_time=yes
1.1 bertrand 8805: else
1.15 bertrand 8806: ac_cv_header_time=no
1.1 bertrand 8807: fi
1.15 bertrand 8808: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8809: fi
1.15 bertrand 8810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8811: $as_echo "$ac_cv_header_time" >&6; }
8812: if test $ac_cv_header_time = yes; then
1.1 bertrand 8813:
1.15 bertrand 8814: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 8815:
8816: fi
8817:
1.15 bertrand 8818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8819: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8820: if test "${ac_cv_struct_tm+set}" = set; then :
8821: $as_echo_n "(cached) " >&6
1.1 bertrand 8822: else
1.15 bertrand 8823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8824: /* end confdefs.h. */
1.15 bertrand 8825: #include <sys/types.h>
8826: #include <time.h>
1.1 bertrand 8827:
8828: int
8829: main ()
8830: {
1.15 bertrand 8831: struct tm tm;
8832: int *p = &tm.tm_sec;
8833: return !p;
1.1 bertrand 8834: ;
8835: return 0;
8836: }
8837: _ACEOF
1.15 bertrand 8838: if ac_fn_c_try_compile "$LINENO"; then :
8839: ac_cv_struct_tm=time.h
1.1 bertrand 8840: else
1.15 bertrand 8841: ac_cv_struct_tm=sys/time.h
8842: fi
8843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844: fi
8845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8846: $as_echo "$ac_cv_struct_tm" >&6; }
8847: if test $ac_cv_struct_tm = sys/time.h; then
8848:
8849: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 8850:
1.1 bertrand 8851: fi
8852:
8853:
1.15 bertrand 8854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8855: $as_echo_n "checking return type of signal handlers... " >&6; }
8856: if test "${ac_cv_type_signal+set}" = set; then :
8857: $as_echo_n "(cached) " >&6
1.1 bertrand 8858: else
1.15 bertrand 8859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8860: /* end confdefs.h. */
1.15 bertrand 8861: #include <sys/types.h>
8862: #include <signal.h>
1.1 bertrand 8863:
8864: int
8865: main ()
8866: {
1.15 bertrand 8867: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 8868: ;
8869: return 0;
8870: }
8871: _ACEOF
1.15 bertrand 8872: if ac_fn_c_try_compile "$LINENO"; then :
8873: ac_cv_type_signal=int
1.1 bertrand 8874: else
1.15 bertrand 8875: ac_cv_type_signal=void
1.1 bertrand 8876: fi
1.15 bertrand 8877: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8878: fi
1.15 bertrand 8879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8880: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 8881:
1.15 bertrand 8882: cat >>confdefs.h <<_ACEOF
8883: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 8884: _ACEOF
1.1 bertrand 8885:
1.15 bertrand 8886:
1.35 bertrand 8887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
8888: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
8889: if test "$cross_compiling" = yes; then :
8890: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8891: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8892: as_fn_error $? "cannot run test program while cross compiling
8893: See \`config.log' for more details" "$LINENO" 5 ; }
1.35 bertrand 8894: else
8895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896: /* end confdefs.h. */
8897: #include <unistd.h>
8898: #include <signal.h>
8899: int flag;
8900: void handler(int signal, siginfo_t *siginfo, void *context)
1.39 bertrand 8901: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35 bertrand 8902: int
8903: main ()
8904: {
8905: struct sigaction action;
8906: action.sa_sigaction = handler;
8907: action.sa_flags = SA_SIGINFO;
8908: sigaction(SIGUSR1, &action, NULL);
8909: raise(SIGUSR1);
8910: return(flag);
8911: ;
8912: return 0;
8913: }
8914: _ACEOF
8915: if ac_fn_c_try_run "$LINENO"; then :
8916: BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917: $as_echo "no" >&6; }
8918: else
8919: BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8920: $as_echo "yes" >&6; }
8921: fi
8922: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8923: conftest.$ac_objext conftest.beam conftest.$ac_ext
8924: fi
8925:
8926:
1.15 bertrand 8927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8928: $as_echo_n "checking for working strcoll... " >&6; }
8929: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8930: $as_echo_n "(cached) " >&6
8931: else
8932: if test "$cross_compiling" = yes; then :
8933: ac_cv_func_strcoll_works=no
8934: else
8935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936: /* end confdefs.h. */
8937: $ac_includes_default
8938: int
8939: main ()
8940: {
8941: return (strcoll ("abc", "def") >= 0 ||
8942: strcoll ("ABC", "DEF") >= 0 ||
8943: strcoll ("123", "456") >= 0)
8944: ;
8945: return 0;
8946: }
8947: _ACEOF
8948: if ac_fn_c_try_run "$LINENO"; then :
8949: ac_cv_func_strcoll_works=yes
8950: else
8951: ac_cv_func_strcoll_works=no
8952: fi
8953: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8954: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 8955: fi
1.1 bertrand 8956:
8957: fi
1.15 bertrand 8958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8959: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8960: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 8961:
1.15 bertrand 8962: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 8963:
1.15 bertrand 8964: fi
1.1 bertrand 8965:
1.15 bertrand 8966: for ac_func in strftime
8967: do :
8968: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8969: if test "x$ac_cv_func_strftime" = x""yes; then :
8970: cat >>confdefs.h <<_ACEOF
8971: #define HAVE_STRFTIME 1
8972: _ACEOF
1.1 bertrand 8973:
8974: else
1.15 bertrand 8975: # strftime is in -lintl on SCO UNIX.
8976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8977: $as_echo_n "checking for strftime in -lintl... " >&6; }
8978: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8979: $as_echo_n "(cached) " >&6
8980: else
8981: ac_check_lib_save_LIBS=$LIBS
8982: LIBS="-lintl $LIBS"
8983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8984: /* end confdefs.h. */
8985:
8986: /* Override any GCC internal prototype to avoid an error.
8987: Use char because int might match the return type of a GCC
8988: builtin and then its argument prototype would still apply. */
8989: #ifdef __cplusplus
8990: extern "C"
8991: #endif
1.15 bertrand 8992: char strftime ();
1.1 bertrand 8993: int
8994: main ()
8995: {
1.15 bertrand 8996: return strftime ();
1.1 bertrand 8997: ;
8998: return 0;
8999: }
9000: _ACEOF
1.15 bertrand 9001: if ac_fn_c_try_link "$LINENO"; then :
9002: ac_cv_lib_intl_strftime=yes
1.1 bertrand 9003: else
1.15 bertrand 9004: ac_cv_lib_intl_strftime=no
9005: fi
9006: rm -f core conftest.err conftest.$ac_objext \
9007: conftest$ac_exeext conftest.$ac_ext
9008: LIBS=$ac_check_lib_save_LIBS
9009: fi
9010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9011: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9012: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9013: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9014:
9015: LIBS="-lintl $LIBS"
9016: fi
9017:
9018: fi
9019: done
9020:
9021: for ac_func in vprintf
9022: do :
9023: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9024: if test "x$ac_cv_func_vprintf" = x""yes; then :
9025: cat >>confdefs.h <<_ACEOF
9026: #define HAVE_VPRINTF 1
9027: _ACEOF
9028:
9029: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9030: if test "x$ac_cv_func__doprnt" = x""yes; then :
9031:
9032: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 9033:
9034: fi
9035:
9036: fi
1.15 bertrand 9037: done
9038:
9039:
9040: for ac_func in ftime getcwd putenv select strcspn strdup \
9041: strerror strspn strstr strtod
9042: do :
9043: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9044: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36 bertrand 9045: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 bertrand 9046: cat >>confdefs.h <<_ACEOF
1.15 bertrand 9047: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 9048: _ACEOF
9049:
9050: fi
9051: done
9052:
9053:
1.15 bertrand 9054:
9055: # Check whether --with-openssl_arch was given.
9056: if test "${with_openssl_arch+set}" = set; then :
9057: withval=$with_openssl_arch;
9058: else
9059: with_openssl_arch=none
9060: fi
9061:
9062:
1.31 bertrand 9063: if test $(uname) = "OS/2"; then
1.34 bertrand 9064: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15 bertrand 9065: else
1.31 bertrand 9066: if test "x$with_openssl_arch" = xnone; then
9067: (cd tools/$OPENSSL && ./config)
9068: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9069: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9070: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31 bertrand 9071: elif test "x$with_openssl_arch" = xlist; then
9072: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9073: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31 bertrand 9074: else
9075: (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
9076: fi
1.15 bertrand 9077: fi
1.1 bertrand 9078:
1.34 bertrand 9079:
9080:
9081: subdirs="$subdirs tools/$NCURSES"
9082:
9083: subdirs="$subdirs tools/$READLINE"
9084:
9085: subdirs="$subdirs tools/$GSL"
9086:
9087: subdirs="$subdirs tools/$GPP"
9088:
9089: subdirs="$subdirs tools/$FILE"
9090:
9091: subdirs="$subdirs tools/$ICONV"
9092:
9093: subdirs="$subdirs tools/$SQLITE"
9094:
9095: subdirs="$subdirs tools/$UNITS"
9096:
9097:
1.1 bertrand 9098: if test "$MYGNUPLOT" = "yes"; then
9099: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9100: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9101: (cd "$srcdir/tools" && tar -xf -)
9102: fi
9103: subdirs="$subdirs tools/$GNUPLOT"
9104:
9105: GNUPLOT_COMPILATION=$GNUPLOT
9106: else
9107: GNUPLOT_COMPILATION=
9108: fi
9109:
9110:
9111:
9112: case $host_cpu in
9113:
9114: i?86)
9115: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9116: -Wno-pointer-sign"
9117: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9118: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9119: break ;;
9120:
9121: x86_64*)
9122: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9123: -Wno-pointer-sign"
9124: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9125: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9126: break ;;
9127:
9128: alpha*)
9129: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9130: -Wno-pointer-sign"
9131: FFLAGS="$FFLAGS -mieee -Wall"
9132: FCFLAGS="$FCFLAGS -mieee -Wall"
9133: break ;;
9134:
9135: sparc*)
9136: CFLAGS="$CFLAGS -Wall -funsigned-char \
9137: -Wno-pointer-sign"
9138: FFLAGS="$FFLAGS -Wall"
9139: FCFLAGS="$FCFLAGS -Wall"
9140: break ;;
9141:
9142: esac
9143:
1.8 bertrand 9144: case $host_os in
9145:
9146: cygwin*)
9147: OS=Cygwin
9148: break ;;
9149:
9150: interix*)
9151: OS=Interix
9152: break ;;
9153:
9154: *)
9155: OS=$(uname)
9156: break ;;
9157:
9158: esac
9159:
9160:
9161:
1.1 bertrand 9162: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9163: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9164:
1.22 bertrand 9165: case $OS in
1.17 bertrand 9166:
9167: Darwin)
1.31 bertrand 9168: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9169: NESTED_FUNCTIONS=-fnested-functions
9170: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9171: IPCS_SYSV=-UIPCS_SYSV
1.23 bertrand 9172: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9173: ac_configure_args="$ac_configure_args --with-readline=builtin \
9174: --disable-shared --enable-static"
1.33 bertrand 9175: C_STANDARD=-std=gnu99
1.17 bertrand 9176: break ;;
9177:
1.31 bertrand 9178: Cygwin)
9179: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9180: NESTED_FUNCTIONS=
9181: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9182: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9183: ac_configure_args="$ac_configure_args --with-readline=builtin \
9184: --disable-shared --enable-static"
1.33 bertrand 9185: C_STANDARD=-std=gnu99
1.17 bertrand 9186: break ;;
9187:
1.34 bertrand 9188: Interix)
9189: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9190: NESTED_FUNCTIONS=
9191: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9192: IPCS_SYSV=-UIPCS_SYSV
1.34 bertrand 9193: ac_configure_args="$ac_configure_args --with-readline=builtin \
9194: --disable-shared --enable-static"
9195: C_STANDARD=-std=gnu99
9196: break;;
9197:
1.31 bertrand 9198: AIX)
9199: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9200: NESTED_FUNCTIONS=
9201: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9202: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9203: ac_configure_args="$ac_configure_args --with-readline=builtin \
9204: --disable-shared --enable-static"
1.33 bertrand 9205: C_STANDARD=-std=gnu99
1.18 bertrand 9206: break ;;
9207:
1.31 bertrand 9208: OS/2)
9209: MALLOC=
1.37 bertrand 9210: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9211: FINAL_ENCODING=CP850; \
9212: fi;
1.31 bertrand 9213: OS=OS2
9214: NESTED_FUNCTIONS=
9215: EXPORT_DYNAMIC=-Zmap
9216: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9217: IPCS_SYSV=-DIPCS_SYSV
1.31 bertrand 9218: ac_configure_args="$ac_configure_args --without-readline \
9219: --without-cairo --disable-shared --enable-static"
1.33 bertrand 9220: C_STANDARD=
1.31 bertrand 9221: break;;
9222:
1.35 bertrand 9223: OpenBSD)
1.37 bertrand 9224: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9225: FINAL_ENCODING=UTF-8; \
9226: fi;
9227: EXPORT_DYNAMIC=-Wl,--export-dynamic
9228: NESTED_FUNCTIONS=
9229: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9230: IPCS_SYSV=-DIPCS_SYSV
1.35 bertrand 9231: ac_configure_args="$ac_configure_args --with-readline=builtin \
9232: --disable-shared --enable-static"
9233: C_STANDARD=-std=gnu99
9234: break;;
9235:
1.17 bertrand 9236: *)
1.31 bertrand 9237: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9238: NESTED_FUNCTIONS=
9239: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9240:
9241: if test $IPCS_SYSV = no; then
9242: IPCS_SYSV=-UIPCS_SYSV
9243: else
9244: IPCS_SYSV=-DIPCS_SYSV
9245: fi
9246:
1.31 bertrand 9247: ac_configure_args="$ac_configure_args --with-readline=builtin \
9248: --disable-shared --enable-static"
1.33 bertrand 9249: C_STANDARD=-std=gnu99
1.17 bertrand 9250: break ;;
9251:
9252: esac
9253:
9254:
9255:
9256:
1.1 bertrand 9257:
9258:
9259:
9260:
9261:
9262:
9263:
9264:
9265:
9266:
9267:
9268:
9269:
9270:
9271:
9272:
9273:
9274:
9275:
1.9 bertrand 9276:
1.24 bertrand 9277:
1.30 bertrand 9278:
1.33 bertrand 9279:
9280:
9281:
1.34 bertrand 9282:
1.35 bertrand 9283:
1.40 ! bertrand 9284:
1.1 bertrand 9285: ac_config_files="$ac_config_files Makefile"
9286:
9287: ac_config_files="$ac_config_files COPYING"
9288:
9289: ac_config_files="$ac_config_files tools/Makefile"
9290:
9291: ac_config_files="$ac_config_files src/Makefile"
9292:
9293: ac_config_files="$ac_config_files man/Makefile"
9294:
9295: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9296:
9297: ac_config_files="$ac_config_files doc/Makefile"
9298:
9299: ac_config_files="$ac_config_files scripts/Makefile"
9300:
9301: ac_config_files="$ac_config_files scripts/mkrplso"
9302:
9303: ac_config_files="$ac_config_files scripts/rplcc"
9304:
9305: ac_config_files="$ac_config_files scripts/rpllink"
9306:
9307: ac_config_files="$ac_config_files rpltags/Makefile"
9308:
9309: ac_config_files="$ac_config_files rpliconv/Makefile"
9310:
1.9 bertrand 9311: ac_config_files="$ac_config_files rplsums/Makefile"
9312:
1.39 bertrand 9313: ac_config_files="$ac_config_files rplawk/Makefile"
9314:
1.1 bertrand 9315: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9316:
9317: ac_config_files="$ac_config_files lapack/blas/Makefile"
9318:
1.20 bertrand 9319: ac_config_files="$ac_config_files ptmalloc3/Makefile"
9320:
1.1 bertrand 9321:
9322: ac_config_files="$ac_config_files man/rpl.1"
9323:
9324: ac_config_files="$ac_config_files man/rplcc.1"
9325:
9326: ac_config_files="$ac_config_files man/rpllink.1"
9327:
9328: ac_config_files="$ac_config_files man/rpltags.1"
9329:
9330: ac_config_files="$ac_config_files man/mkrplso.1"
9331:
9332: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9333:
9334: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9335:
9336: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9337:
9338: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9339:
9340: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9341:
9342:
9343: cat >confcache <<\_ACEOF
9344: # This file is a shell script that caches the results of configure
9345: # tests run on this system so they can be shared between configure
9346: # scripts and configure runs, see configure's option --config-cache.
9347: # It is not useful on other systems. If it contains results you don't
9348: # want to keep, you may remove or edit it.
9349: #
9350: # config.status only pays attention to the cache file if you give it
9351: # the --recheck option to rerun configure.
9352: #
9353: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9354: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9355: # following values.
9356:
9357: _ACEOF
9358:
9359: # The following way of writing the cache mishandles newlines in values,
9360: # but we know of no workaround that is simple, portable, and efficient.
9361: # So, we kill variables containing newlines.
9362: # Ultrix sh set writes to stderr and can't be redirected directly,
9363: # and sets the high bit in the cache file unless we assign to the vars.
9364: (
9365: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9366: eval ac_val=\$$ac_var
9367: case $ac_val in #(
9368: *${as_nl}*)
9369: case $ac_var in #(
1.15 bertrand 9370: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9371: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9372: esac
9373: case $ac_var in #(
9374: _ | IFS | as_nl) ;; #(
1.15 bertrand 9375: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9376: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9377: esac ;;
9378: esac
9379: done
9380:
9381: (set) 2>&1 |
9382: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9383: *${as_nl}ac_space=\ *)
1.15 bertrand 9384: # `set' does not quote correctly, so add quotes: double-quote
9385: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9386: sed -n \
9387: "s/'/'\\\\''/g;
9388: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9389: ;; #(
9390: *)
9391: # `set' quotes correctly as required by POSIX, so do not add quotes.
9392: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9393: ;;
9394: esac |
9395: sort
9396: ) |
9397: sed '
9398: /^ac_cv_env_/b end
9399: t clear
9400: :clear
9401: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9402: t end
9403: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9404: :end' >>confcache
9405: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9406: if test -w "$cache_file"; then
9407: test "x$cache_file" != "x/dev/null" &&
1.15 bertrand 9408: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9409: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1 bertrand 9410: cat confcache >$cache_file
9411: else
1.15 bertrand 9412: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9413: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9414: fi
9415: fi
9416: rm -f confcache
9417:
9418: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9419: # Let make expand exec_prefix.
9420: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9421:
9422: DEFS=-DHAVE_CONFIG_H
9423:
9424: ac_libobjs=
9425: ac_ltlibobjs=
1.36 bertrand 9426: U=
1.1 bertrand 9427: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9428: # 1. Remove the extension, and $U if already installed.
9429: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9430: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9431: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9432: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9433: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9434: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9435: done
9436: LIBOBJS=$ac_libobjs
9437:
9438: LTLIBOBJS=$ac_ltlibobjs
9439:
9440:
1.15 bertrand 9441: if test -n "$EXEEXT"; then
9442: am__EXEEXT_TRUE=
9443: am__EXEEXT_FALSE='#'
9444: else
9445: am__EXEEXT_TRUE='#'
9446: am__EXEEXT_FALSE=
9447: fi
9448:
1.1 bertrand 9449: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36 bertrand 9450: as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15 bertrand 9451: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9452: fi
9453: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36 bertrand 9454: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15 bertrand 9455: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9456: fi
9457: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36 bertrand 9458: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15 bertrand 9459: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9460: fi
9461:
9462: : ${CONFIG_STATUS=./config.status}
1.15 bertrand 9463: ac_write_fail=0
1.1 bertrand 9464: ac_clean_files_save=$ac_clean_files
9465: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9466: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9467: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9468: as_write_fail=0
9469: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9470: #! $SHELL
9471: # Generated by $as_me.
9472: # Run this file to recreate the current configuration.
9473: # Compiler output produced by configure, useful for debugging
9474: # configure, is in config.log if it exists.
9475:
9476: debug=false
9477: ac_cs_recheck=false
9478: ac_cs_silent=false
1.15 bertrand 9479:
1.14 bertrand 9480: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9481: export SHELL
9482: _ASEOF
9483: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9484: ## -------------------- ##
9485: ## M4sh Initialization. ##
9486: ## -------------------- ##
1.1 bertrand 9487:
9488: # Be more Bourne compatible
9489: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9490: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9491: emulate sh
9492: NULLCMD=:
1.15 bertrand 9493: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9494: # is contrary to our usage. Disable this feature.
9495: alias -g '${1+"$@"}'='"$@"'
9496: setopt NO_GLOB_SUBST
9497: else
1.15 bertrand 9498: case `(set -o) 2>/dev/null` in #(
9499: *posix*) :
9500: set -o posix ;; #(
9501: *) :
9502: ;;
1.1 bertrand 9503: esac
9504: fi
9505:
9506:
1.15 bertrand 9507: as_nl='
9508: '
9509: export as_nl
9510: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9511: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9512: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9513: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9514: # Prefer a ksh shell builtin over an external printf program on Solaris,
9515: # but without wasting forks for bash or zsh.
9516: if test -z "$BASH_VERSION$ZSH_VERSION" \
9517: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9518: as_echo='print -r --'
9519: as_echo_n='print -rn --'
9520: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9521: as_echo='printf %s\n'
9522: as_echo_n='printf %s'
9523: else
9524: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9525: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9526: as_echo_n='/usr/ucb/echo -n'
9527: else
9528: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9529: as_echo_n_body='eval
9530: arg=$1;
9531: case $arg in #(
9532: *"$as_nl"*)
9533: expr "X$arg" : "X\\(.*\\)$as_nl";
9534: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9535: esac;
9536: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9537: '
9538: export as_echo_n_body
9539: as_echo_n='sh -c $as_echo_n_body as_echo'
9540: fi
9541: export as_echo_body
9542: as_echo='sh -c $as_echo_body as_echo'
9543: fi
1.14 bertrand 9544:
9545: # The user is always right.
9546: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9547: PATH_SEPARATOR=:
9548: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9549: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9550: PATH_SEPARATOR=';'
9551: }
1.1 bertrand 9552: fi
9553:
9554:
9555: # IFS
9556: # We need space, tab and new line, in precisely that order. Quoting is
9557: # there to prevent editors from complaining about space-tab.
9558: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9559: # splitting by setting IFS to empty value.)
9560: IFS=" "" $as_nl"
9561:
9562: # Find who we are. Look in the path if we contain no directory separator.
1.15 bertrand 9563: case $0 in #((
1.1 bertrand 9564: *[\\/]* ) as_myself=$0 ;;
9565: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566: for as_dir in $PATH
9567: do
9568: IFS=$as_save_IFS
9569: test -z "$as_dir" && as_dir=.
1.15 bertrand 9570: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9571: done
1.1 bertrand 9572: IFS=$as_save_IFS
9573:
9574: ;;
9575: esac
9576: # We did not find ourselves, most probably we were run as `sh COMMAND'
9577: # in which case we are not to be found in the path.
9578: if test "x$as_myself" = x; then
9579: as_myself=$0
9580: fi
9581: if test ! -f "$as_myself"; then
1.15 bertrand 9582: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9583: exit 1
1.1 bertrand 9584: fi
9585:
1.15 bertrand 9586: # Unset variables that we do not need and which cause bugs (e.g. in
9587: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9588: # suppresses any "Segmentation fault" message there. '((' could
9589: # trigger a bug in pdksh 5.2.14.
9590: for as_var in BASH_ENV ENV MAIL MAILPATH
9591: do eval test x\${$as_var+set} = xset \
9592: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9593: done
9594: PS1='$ '
9595: PS2='> '
9596: PS4='+ '
9597:
9598: # NLS nuisances.
1.15 bertrand 9599: LC_ALL=C
9600: export LC_ALL
9601: LANGUAGE=C
9602: export LANGUAGE
9603:
9604: # CDPATH.
9605: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9606:
9607:
1.36 bertrand 9608: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9609: # ----------------------------------------
1.15 bertrand 9610: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9611: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 9612: # script with STATUS, using 1 if that was 0.
1.15 bertrand 9613: as_fn_error ()
9614: {
1.36 bertrand 9615: as_status=$1; test $as_status -eq 0 && as_status=1
9616: if test "$4"; then
9617: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9618: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 9619: fi
1.36 bertrand 9620: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 9621: as_fn_exit $as_status
9622: } # as_fn_error
9623:
9624:
9625: # as_fn_set_status STATUS
9626: # -----------------------
9627: # Set $? to STATUS, without forking.
9628: as_fn_set_status ()
9629: {
9630: return $1
9631: } # as_fn_set_status
9632:
9633: # as_fn_exit STATUS
9634: # -----------------
9635: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9636: as_fn_exit ()
9637: {
9638: set +e
9639: as_fn_set_status $1
9640: exit $1
9641: } # as_fn_exit
9642:
9643: # as_fn_unset VAR
9644: # ---------------
9645: # Portably unset VAR.
9646: as_fn_unset ()
9647: {
9648: { eval $1=; unset $1;}
9649: }
9650: as_unset=as_fn_unset
9651: # as_fn_append VAR VALUE
9652: # ----------------------
9653: # Append the text in VALUE to the end of the definition contained in VAR. Take
9654: # advantage of any shell optimizations that allow amortized linear growth over
9655: # repeated appends, instead of the typical quadratic growth present in naive
9656: # implementations.
9657: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9658: eval 'as_fn_append ()
9659: {
9660: eval $1+=\$2
9661: }'
9662: else
9663: as_fn_append ()
9664: {
9665: eval $1=\$$1\$2
9666: }
9667: fi # as_fn_append
9668:
9669: # as_fn_arith ARG...
9670: # ------------------
9671: # Perform arithmetic evaluation on the ARGs, and store the result in the
9672: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9673: # must be portable across $(()) and expr.
9674: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9675: eval 'as_fn_arith ()
9676: {
9677: as_val=$(( $* ))
9678: }'
9679: else
9680: as_fn_arith ()
9681: {
9682: as_val=`expr "$@" || test $? -eq 1`
9683: }
9684: fi # as_fn_arith
9685:
1.1 bertrand 9686:
9687: if expr a : '\(a\)' >/dev/null 2>&1 &&
9688: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9689: as_expr=expr
9690: else
9691: as_expr=false
9692: fi
9693:
9694: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9695: as_basename=basename
9696: else
9697: as_basename=false
9698: fi
9699:
1.15 bertrand 9700: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9701: as_dirname=dirname
9702: else
9703: as_dirname=false
9704: fi
1.1 bertrand 9705:
9706: as_me=`$as_basename -- "$0" ||
9707: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9708: X"$0" : 'X\(//\)$' \| \
9709: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 9710: $as_echo X/"$0" |
1.1 bertrand 9711: sed '/^.*\/\([^/][^/]*\)\/*$/{
9712: s//\1/
9713: q
9714: }
9715: /^X\/\(\/\/\)$/{
9716: s//\1/
9717: q
9718: }
9719: /^X\/\(\/\).*/{
9720: s//\1/
9721: q
9722: }
1.14 bertrand 9723: s/.*/./; q'`
9724:
1.15 bertrand 9725: # Avoid depending upon Character Ranges.
9726: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9727: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9728: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9729: as_cr_digits='0123456789'
9730: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 9731:
9732: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 9733: case `echo -n x` in #(((((
1.1 bertrand 9734: -n*)
1.15 bertrand 9735: case `echo 'xy\c'` in
1.1 bertrand 9736: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 9737: xy) ECHO_C='\c';;
9738: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9739: ECHO_T=' ';;
1.1 bertrand 9740: esac;;
9741: *)
9742: ECHO_N='-n';;
9743: esac
9744:
9745: rm -f conf$$ conf$$.exe conf$$.file
9746: if test -d conf$$.dir; then
9747: rm -f conf$$.dir/conf$$.file
9748: else
9749: rm -f conf$$.dir
1.15 bertrand 9750: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 9751: fi
1.15 bertrand 9752: if (echo >conf$$.file) 2>/dev/null; then
9753: if ln -s conf$$.file conf$$ 2>/dev/null; then
9754: as_ln_s='ln -s'
9755: # ... but there are two gotchas:
9756: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9757: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9758: # In both cases, we have to default to `cp -p'.
9759: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9760: as_ln_s='cp -p'
9761: elif ln conf$$.file conf$$ 2>/dev/null; then
9762: as_ln_s=ln
9763: else
1.1 bertrand 9764: as_ln_s='cp -p'
1.15 bertrand 9765: fi
1.1 bertrand 9766: else
9767: as_ln_s='cp -p'
9768: fi
9769: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9770: rmdir conf$$.dir 2>/dev/null
9771:
1.15 bertrand 9772:
9773: # as_fn_mkdir_p
9774: # -------------
9775: # Create "$as_dir" as a directory, including parents if necessary.
9776: as_fn_mkdir_p ()
9777: {
9778:
9779: case $as_dir in #(
9780: -*) as_dir=./$as_dir;;
9781: esac
9782: test -d "$as_dir" || eval $as_mkdir_p || {
9783: as_dirs=
9784: while :; do
9785: case $as_dir in #(
9786: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9787: *) as_qdir=$as_dir;;
9788: esac
9789: as_dirs="'$as_qdir' $as_dirs"
9790: as_dir=`$as_dirname -- "$as_dir" ||
9791: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9792: X"$as_dir" : 'X\(//\)[^/]' \| \
9793: X"$as_dir" : 'X\(//\)$' \| \
9794: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9795: $as_echo X"$as_dir" |
9796: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9797: s//\1/
9798: q
9799: }
9800: /^X\(\/\/\)[^/].*/{
9801: s//\1/
9802: q
9803: }
9804: /^X\(\/\/\)$/{
9805: s//\1/
9806: q
9807: }
9808: /^X\(\/\).*/{
9809: s//\1/
9810: q
9811: }
9812: s/.*/./; q'`
9813: test -d "$as_dir" && break
9814: done
9815: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 9816: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15 bertrand 9817:
9818:
9819: } # as_fn_mkdir_p
1.1 bertrand 9820: if mkdir -p . 2>/dev/null; then
1.15 bertrand 9821: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 9822: else
9823: test -d ./-p && rmdir ./-p
9824: as_mkdir_p=false
9825: fi
9826:
9827: if test -x / >/dev/null 2>&1; then
9828: as_test_x='test -x'
9829: else
9830: if ls -dL / >/dev/null 2>&1; then
9831: as_ls_L_option=L
9832: else
9833: as_ls_L_option=
9834: fi
9835: as_test_x='
9836: eval sh -c '\''
9837: if test -d "$1"; then
1.15 bertrand 9838: test -d "$1/.";
1.1 bertrand 9839: else
1.15 bertrand 9840: case $1 in #(
9841: -*)set "./$1";;
1.1 bertrand 9842: esac;
1.15 bertrand 9843: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 9844: ???[sx]*):;;*)false;;esac;fi
9845: '\'' sh
9846: '
9847: fi
9848: as_executable_p=$as_test_x
9849:
9850: # Sed expression to map a string onto a valid CPP name.
9851: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9852:
9853: # Sed expression to map a string onto a valid variable name.
9854: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9855:
9856:
9857: exec 6>&1
1.15 bertrand 9858: ## ----------------------------------- ##
9859: ## Main body of $CONFIG_STATUS script. ##
9860: ## ----------------------------------- ##
9861: _ASEOF
9862: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 9863:
1.15 bertrand 9864: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9865: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 9866: # report actual input values of CONFIG_FILES etc. instead of their
9867: # values after options handling.
9868: ac_log="
1.38 bertrand 9869: This file was extended by rpl $as_me 4.0.19, which was
1.36 bertrand 9870: generated by GNU Autoconf 2.67. Invocation command line was
1.1 bertrand 9871:
9872: CONFIG_FILES = $CONFIG_FILES
9873: CONFIG_HEADERS = $CONFIG_HEADERS
9874: CONFIG_LINKS = $CONFIG_LINKS
9875: CONFIG_COMMANDS = $CONFIG_COMMANDS
9876: $ $0 $@
9877:
9878: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9879: "
9880:
9881: _ACEOF
9882:
1.15 bertrand 9883: case $ac_config_files in *"
9884: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9885: esac
9886:
9887: case $ac_config_headers in *"
9888: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9889: esac
9890:
9891:
9892: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9893: # Files that config.status was made for.
9894: config_files="$ac_config_files"
9895: config_headers="$ac_config_headers"
9896: config_commands="$ac_config_commands"
9897:
9898: _ACEOF
9899:
1.15 bertrand 9900: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 9901: ac_cs_usage="\
1.15 bertrand 9902: \`$as_me' instantiates files and other configuration actions
9903: from templates according to the current configuration. Unless the files
9904: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 9905:
1.15 bertrand 9906: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 9907:
9908: -h, --help print this help, then exit
9909: -V, --version print version number and configuration settings, then exit
1.15 bertrand 9910: --config print configuration, then exit
9911: -q, --quiet, --silent
9912: do not print progress messages
1.1 bertrand 9913: -d, --debug don't remove temporary files
9914: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 9915: --file=FILE[:TEMPLATE]
9916: instantiate the configuration file FILE
9917: --header=FILE[:TEMPLATE]
9918: instantiate the configuration header FILE
1.1 bertrand 9919:
9920: Configuration files:
9921: $config_files
9922:
9923: Configuration headers:
9924: $config_headers
9925:
9926: Configuration commands:
9927: $config_commands
9928:
1.15 bertrand 9929: Report bugs to the package provider."
1.1 bertrand 9930:
9931: _ACEOF
1.15 bertrand 9932: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9933: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 9934: ac_cs_version="\\
1.38 bertrand 9935: rpl config.status 4.0.19
1.36 bertrand 9936: configured by $0, generated by GNU Autoconf 2.67,
1.15 bertrand 9937: with options \\"\$ac_cs_config\\"
1.1 bertrand 9938:
1.36 bertrand 9939: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 9940: This config.status script is free software; the Free Software Foundation
9941: gives unlimited permission to copy, distribute and modify it."
9942:
9943: ac_pwd='$ac_pwd'
9944: srcdir='$srcdir'
9945: INSTALL='$INSTALL'
9946: MKDIR_P='$MKDIR_P'
1.15 bertrand 9947: AWK='$AWK'
9948: test -n "\$AWK" || AWK=awk
1.1 bertrand 9949: _ACEOF
9950:
1.15 bertrand 9951: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9952: # The default lists apply if the user does not specify any file.
1.1 bertrand 9953: ac_need_defaults=:
9954: while test $# != 0
9955: do
9956: case $1 in
1.36 bertrand 9957: --*=?*)
1.1 bertrand 9958: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9959: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9960: ac_shift=:
9961: ;;
1.36 bertrand 9962: --*=)
9963: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9964: ac_optarg=
9965: ac_shift=:
9966: ;;
1.1 bertrand 9967: *)
9968: ac_option=$1
9969: ac_optarg=$2
9970: ac_shift=shift
9971: ;;
9972: esac
9973:
9974: case $ac_option in
9975: # Handling of the options.
9976: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9977: ac_cs_recheck=: ;;
9978: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 9979: $as_echo "$ac_cs_version"; exit ;;
9980: --config | --confi | --conf | --con | --co | --c )
9981: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 9982: --debug | --debu | --deb | --de | --d | -d )
9983: debug=: ;;
9984: --file | --fil | --fi | --f )
9985: $ac_shift
1.15 bertrand 9986: case $ac_optarg in
9987: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36 bertrand 9988: '') as_fn_error $? "missing file argument" ;;
1.15 bertrand 9989: esac
9990: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 9991: ac_need_defaults=false;;
9992: --header | --heade | --head | --hea )
9993: $ac_shift
1.15 bertrand 9994: case $ac_optarg in
9995: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9996: esac
9997: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 9998: ac_need_defaults=false;;
9999: --he | --h)
10000: # Conflict between --help and --header
1.36 bertrand 10001: as_fn_error $? "ambiguous option: \`$1'
1.15 bertrand 10002: Try \`$0 --help' for more information.";;
1.1 bertrand 10003: --help | --hel | -h )
1.15 bertrand 10004: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 10005: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10006: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10007: ac_cs_silent=: ;;
10008:
10009: # This is an error.
1.36 bertrand 10010: -*) as_fn_error $? "unrecognized option: \`$1'
1.15 bertrand 10011: Try \`$0 --help' for more information." ;;
1.1 bertrand 10012:
1.15 bertrand 10013: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 10014: ac_need_defaults=false ;;
10015:
10016: esac
10017: shift
10018: done
10019:
10020: ac_configure_extra_args=
10021:
10022: if $ac_cs_silent; then
10023: exec 6>/dev/null
10024: ac_configure_extra_args="$ac_configure_extra_args --silent"
10025: fi
10026:
10027: _ACEOF
1.15 bertrand 10028: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10029: if \$ac_cs_recheck; then
1.15 bertrand 10030: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10031: shift
10032: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10033: CONFIG_SHELL='$SHELL'
1.1 bertrand 10034: export CONFIG_SHELL
1.15 bertrand 10035: exec "\$@"
1.1 bertrand 10036: fi
10037:
10038: _ACEOF
1.15 bertrand 10039: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10040: exec 5>>config.log
10041: {
10042: echo
10043: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10044: ## Running $as_me. ##
10045: _ASBOX
1.15 bertrand 10046: $as_echo "$ac_log"
1.1 bertrand 10047: } >&5
10048:
10049: _ACEOF
1.15 bertrand 10050: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10051: #
10052: # INIT-COMMANDS
10053: #
10054: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10055:
10056: _ACEOF
10057:
1.15 bertrand 10058: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10059:
10060: # Handling of arguments.
10061: for ac_config_target in $ac_config_targets
10062: do
10063: case $ac_config_target in
10064: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10065: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10066: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10067: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10068: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10069: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10070: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10071: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10072: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10073: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10074: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10075: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10076: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10077: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10078: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 10079: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.39 bertrand 10080: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1 bertrand 10081: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10082: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20 bertrand 10083: "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1 bertrand 10084: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10085: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10086: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10087: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10088: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10089: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10090: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10091: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10092: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10093: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10094:
1.36 bertrand 10095: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.1 bertrand 10096: esac
10097: done
10098:
10099:
10100: # If the user did not use the arguments to specify the items to instantiate,
10101: # then the envvar interface is used. Set only those that are not.
10102: # We use the long form for the default assignment because of an extremely
10103: # bizarre bug on SunOS 4.1.3.
10104: if $ac_need_defaults; then
10105: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10106: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10107: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10108: fi
10109:
10110: # Have a temporary directory for convenience. Make it in the build tree
10111: # simply because there is no reason against having it here, and in addition,
10112: # creating and moving files from /tmp can sometimes cause problems.
10113: # Hook for its removal unless debugging.
10114: # Note that there is a small window in which the directory will not be cleaned:
10115: # after its creation but before its name has been assigned to `$tmp'.
10116: $debug ||
10117: {
10118: tmp=
10119: trap 'exit_status=$?
10120: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10121: ' 0
1.15 bertrand 10122: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 10123: }
10124: # Create a (secure) tmp directory for tmp files.
10125:
10126: {
10127: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10128: test -n "$tmp" && test -d "$tmp"
10129: } ||
10130: {
10131: tmp=./conf$$-$RANDOM
10132: (umask 077 && mkdir "$tmp")
1.36 bertrand 10133: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15 bertrand 10134:
10135: # Set up the scripts for CONFIG_FILES section.
10136: # No need to generate them if there are no CONFIG_FILES.
10137: # This happens for instance with `./config.status config.h'.
10138: if test -n "$CONFIG_FILES"; then
1.14 bertrand 10139:
1.1 bertrand 10140:
1.15 bertrand 10141: ac_cr=`echo X | tr X '\015'`
10142: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10143: # But we know of no other shell where ac_cr would be empty at this
10144: # point, so we can use a bashism as a fallback.
10145: if test "x$ac_cr" = x; then
10146: eval ac_cr=\$\'\\r\'
10147: fi
10148: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10149: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36 bertrand 10150: ac_cs_awk_cr='\\r'
1.15 bertrand 10151: else
10152: ac_cs_awk_cr=$ac_cr
10153: fi
1.1 bertrand 10154:
1.15 bertrand 10155: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14 bertrand 10156: _ACEOF
10157:
10158:
1.15 bertrand 10159: {
10160: echo "cat >conf$$subs.awk <<_ACEOF" &&
10161: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10162: echo "_ACEOF"
10163: } >conf$$subs.sh ||
1.36 bertrand 10164: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10165: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14 bertrand 10166: ac_delim='%!_!# '
10167: for ac_last_try in false false false false false :; do
1.15 bertrand 10168: . ./conf$$subs.sh ||
1.36 bertrand 10169: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10170:
1.15 bertrand 10171: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10172: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 10173: break
10174: elif $ac_last_try; then
1.36 bertrand 10175: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10176: else
10177: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10178: fi
10179: done
1.15 bertrand 10180: rm -f conf$$subs.sh
1.1 bertrand 10181:
1.15 bertrand 10182: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10183: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10184: _ACEOF
10185: sed -n '
10186: h
10187: s/^/S["/; s/!.*/"]=/
10188: p
10189: g
10190: s/^[^!]*!//
10191: :repl
10192: t repl
10193: s/'"$ac_delim"'$//
10194: t delim
10195: :nl
10196: h
10197: s/\(.\{148\}\)..*/\1/
10198: t more1
10199: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10200: p
10201: n
10202: b repl
10203: :more1
10204: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10205: p
10206: g
10207: s/.\{148\}//
10208: t nl
10209: :delim
10210: h
10211: s/\(.\{148\}\)..*/\1/
10212: t more2
10213: s/["\\]/\\&/g; s/^/"/; s/$/"/
10214: p
10215: b
10216: :more2
10217: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10218: p
10219: g
10220: s/.\{148\}//
10221: t delim
10222: ' <conf$$subs.awk | sed '
10223: /^[^""]/{
10224: N
10225: s/\n//
10226: }
10227: ' >>$CONFIG_STATUS || ac_write_fail=1
10228: rm -f conf$$subs.awk
10229: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10230: _ACAWK
10231: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10232: for (key in S) S_is_set[key] = 1
10233: FS = ""
1.1 bertrand 10234:
1.15 bertrand 10235: }
10236: {
10237: line = $ 0
10238: nfields = split(line, field, "@")
10239: substed = 0
10240: len = length(field[1])
10241: for (i = 2; i < nfields; i++) {
10242: key = field[i]
10243: keylen = length(key)
10244: if (S_is_set[key]) {
10245: value = S[key]
10246: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10247: len += length(value) + length(field[++i])
10248: substed = 1
10249: } else
10250: len += 1 + keylen
10251: }
1.1 bertrand 10252:
1.15 bertrand 10253: print line
10254: }
1.1 bertrand 10255:
1.15 bertrand 10256: _ACAWK
1.14 bertrand 10257: _ACEOF
1.15 bertrand 10258: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10259: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10260: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10261: else
10262: cat
10263: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1.36 bertrand 10264: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10265: _ACEOF
10266:
1.36 bertrand 10267: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10268: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 bertrand 10269: # trailing colons and then remove the whole line if VPATH becomes empty
10270: # (actually we leave an empty line to preserve line numbers).
10271: if test "x$srcdir" = x.; then
1.36 bertrand 10272: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10273: h
10274: s///
10275: s/^/:/
10276: s/[ ]*$/:/
10277: s/:\$(srcdir):/:/g
10278: s/:\${srcdir}:/:/g
10279: s/:@srcdir@:/:/g
10280: s/^:*//
1.1 bertrand 10281: s/:*$//
1.36 bertrand 10282: x
10283: s/\(=[ ]*\).*/\1/
10284: G
10285: s/\n//
1.1 bertrand 10286: s/^[^=]*=[ ]*$//
10287: }'
10288: fi
10289:
1.15 bertrand 10290: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10291: fi # test -n "$CONFIG_FILES"
10292:
1.15 bertrand 10293: # Set up the scripts for CONFIG_HEADERS section.
10294: # No need to generate them if there are no CONFIG_HEADERS.
10295: # This happens for instance with `./config.status Makefile'.
10296: if test -n "$CONFIG_HEADERS"; then
10297: cat >"$tmp/defines.awk" <<\_ACAWK ||
10298: BEGIN {
10299: _ACEOF
10300:
10301: # Transform confdefs.h into an awk script `defines.awk', embedded as
10302: # here-document in config.status, that substitutes the proper values into
10303: # config.h.in to produce config.h.
10304:
10305: # Create a delimiter string that does not exist in confdefs.h, to ease
10306: # handling of long lines.
10307: ac_delim='%!_!# '
10308: for ac_last_try in false false :; do
10309: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10310: if test -z "$ac_t"; then
10311: break
10312: elif $ac_last_try; then
1.36 bertrand 10313: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15 bertrand 10314: else
10315: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10316: fi
10317: done
10318:
10319: # For the awk script, D is an array of macro values keyed by name,
10320: # likewise P contains macro parameters if any. Preserve backslash
10321: # newline sequences.
10322:
10323: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10324: sed -n '
10325: s/.\{148\}/&'"$ac_delim"'/g
10326: t rset
10327: :rset
10328: s/^[ ]*#[ ]*define[ ][ ]*/ /
10329: t def
10330: d
10331: :def
10332: s/\\$//
10333: t bsnl
10334: s/["\\]/\\&/g
10335: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10336: D["\1"]=" \3"/p
10337: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10338: d
10339: :bsnl
10340: s/["\\]/\\&/g
10341: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10342: D["\1"]=" \3\\\\\\n"\\/p
10343: t cont
10344: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10345: t cont
10346: d
10347: :cont
10348: n
10349: s/.\{148\}/&'"$ac_delim"'/g
10350: t clear
10351: :clear
10352: s/\\$//
10353: t bsnlc
10354: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10355: d
10356: :bsnlc
10357: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10358: b cont
10359: ' <confdefs.h | sed '
10360: s/'"$ac_delim"'/"\\\
10361: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10362:
10363: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10364: for (key in D) D_is_set[key] = 1
10365: FS = ""
10366: }
10367: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10368: line = \$ 0
10369: split(line, arg, " ")
10370: if (arg[1] == "#") {
10371: defundef = arg[2]
10372: mac1 = arg[3]
10373: } else {
10374: defundef = substr(arg[1], 2)
10375: mac1 = arg[2]
10376: }
10377: split(mac1, mac2, "(") #)
10378: macro = mac2[1]
10379: prefix = substr(line, 1, index(line, defundef) - 1)
10380: if (D_is_set[macro]) {
10381: # Preserve the white space surrounding the "#".
10382: print prefix "define", macro P[macro] D[macro]
10383: next
10384: } else {
10385: # Replace #undef with comments. This is necessary, for example,
10386: # in the case of _POSIX_SOURCE, which is predefined and required
10387: # on some systems where configure will not decide to define it.
10388: if (defundef == "undef") {
10389: print "/*", prefix defundef, macro, "*/"
10390: next
10391: }
10392: }
10393: }
10394: { print }
10395: _ACAWK
10396: _ACEOF
10397: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36 bertrand 10398: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15 bertrand 10399: fi # test -n "$CONFIG_HEADERS"
10400:
1.1 bertrand 10401:
1.15 bertrand 10402: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10403: shift
10404: for ac_tag
1.1 bertrand 10405: do
10406: case $ac_tag in
10407: :[FHLC]) ac_mode=$ac_tag; continue;;
10408: esac
10409: case $ac_mode$ac_tag in
10410: :[FHL]*:*);;
1.36 bertrand 10411: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
1.1 bertrand 10412: :[FH]-) ac_tag=-:-;;
10413: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10414: esac
10415: ac_save_IFS=$IFS
10416: IFS=:
10417: set x $ac_tag
10418: IFS=$ac_save_IFS
10419: shift
10420: ac_file=$1
10421: shift
10422:
10423: case $ac_mode in
10424: :L) ac_source=$1;;
10425: :[FH])
10426: ac_file_inputs=
10427: for ac_f
10428: do
10429: case $ac_f in
10430: -) ac_f="$tmp/stdin";;
10431: *) # Look for the file first in the build tree, then in the source tree
10432: # (if the path is not absolute). The absolute path cannot be DOS-style,
10433: # because $ac_f cannot contain `:'.
10434: test -f "$ac_f" ||
10435: case $ac_f in
10436: [\\/$]*) false;;
10437: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10438: esac ||
1.36 bertrand 10439: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
1.1 bertrand 10440: esac
1.15 bertrand 10441: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10442: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10443: done
10444:
10445: # Let's still pretend it is `configure' which instantiates (i.e., don't
10446: # use $as_me), people would be surprised to read:
10447: # /* config.h. Generated by config.status. */
1.15 bertrand 10448: configure_input='Generated from '`
10449: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10450: `' by configure.'
1.1 bertrand 10451: if test x"$ac_file" != x-; then
10452: configure_input="$ac_file. $configure_input"
1.15 bertrand 10453: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10454: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10455: fi
1.15 bertrand 10456: # Neutralize special characters interpreted by sed in replacement strings.
10457: case $configure_input in #(
10458: *\&* | *\|* | *\\* )
10459: ac_sed_conf_input=`$as_echo "$configure_input" |
10460: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10461: *) ac_sed_conf_input=$configure_input;;
10462: esac
1.1 bertrand 10463:
10464: case $ac_tag in
1.15 bertrand 10465: *:-:* | *:-) cat >"$tmp/stdin" \
1.36 bertrand 10466: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10467: esac
10468: ;;
10469: esac
10470:
10471: ac_dir=`$as_dirname -- "$ac_file" ||
10472: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10473: X"$ac_file" : 'X\(//\)[^/]' \| \
10474: X"$ac_file" : 'X\(//\)$' \| \
10475: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10476: $as_echo X"$ac_file" |
1.1 bertrand 10477: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10478: s//\1/
10479: q
10480: }
10481: /^X\(\/\/\)[^/].*/{
10482: s//\1/
10483: q
10484: }
10485: /^X\(\/\/\)$/{
10486: s//\1/
10487: q
10488: }
10489: /^X\(\/\).*/{
10490: s//\1/
10491: q
10492: }
10493: s/.*/./; q'`
1.15 bertrand 10494: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10495: ac_builddir=.
10496:
10497: case "$ac_dir" in
10498: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10499: *)
1.15 bertrand 10500: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10501: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10502: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10503: case $ac_top_builddir_sub in
10504: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10505: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10506: esac ;;
10507: esac
10508: ac_abs_top_builddir=$ac_pwd
10509: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10510: # for backward compatibility:
10511: ac_top_builddir=$ac_top_build_prefix
10512:
10513: case $srcdir in
10514: .) # We are building in place.
10515: ac_srcdir=.
10516: ac_top_srcdir=$ac_top_builddir_sub
10517: ac_abs_top_srcdir=$ac_pwd ;;
10518: [\\/]* | ?:[\\/]* ) # Absolute name.
10519: ac_srcdir=$srcdir$ac_dir_suffix;
10520: ac_top_srcdir=$srcdir
10521: ac_abs_top_srcdir=$srcdir ;;
10522: *) # Relative name.
10523: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10524: ac_top_srcdir=$ac_top_build_prefix$srcdir
10525: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10526: esac
10527: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10528:
10529:
10530: case $ac_mode in
10531: :F)
10532: #
10533: # CONFIG_FILE
10534: #
10535:
10536: case $INSTALL in
10537: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10538: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10539: esac
10540: ac_MKDIR_P=$MKDIR_P
10541: case $MKDIR_P in
10542: [\\/$]* | ?:[\\/]* ) ;;
10543: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10544: esac
10545: _ACEOF
10546:
1.15 bertrand 10547: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10548: # If the template does not know about datarootdir, expand it.
10549: # FIXME: This hack should be removed a few years after 2.60.
10550: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10551: ac_sed_dataroot='
10552: /datarootdir/ {
1.1 bertrand 10553: p
10554: q
10555: }
10556: /@datadir@/p
10557: /@docdir@/p
10558: /@infodir@/p
10559: /@localedir@/p
1.15 bertrand 10560: /@mandir@/p'
10561: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10562: *datarootdir*) ac_datarootdir_seen=yes;;
10563: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10564: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10565: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10566: _ACEOF
1.15 bertrand 10567: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10568: ac_datarootdir_hack='
10569: s&@datadir@&$datadir&g
10570: s&@docdir@&$docdir&g
10571: s&@infodir@&$infodir&g
10572: s&@localedir@&$localedir&g
10573: s&@mandir@&$mandir&g
1.15 bertrand 10574: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10575: esac
10576: _ACEOF
10577:
10578: # Neutralize VPATH when `$srcdir' = `.'.
10579: # Shell code in configure.ac might set extrasub.
10580: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10581: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10582: ac_sed_extra="$ac_vpsub
1.1 bertrand 10583: $extrasub
10584: _ACEOF
1.15 bertrand 10585: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10586: :t
10587: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10588: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10589: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10590: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10591: s&@srcdir@&$ac_srcdir&;t t
10592: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10593: s&@top_srcdir@&$ac_top_srcdir&;t t
10594: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10595: s&@builddir@&$ac_builddir&;t t
10596: s&@abs_builddir@&$ac_abs_builddir&;t t
10597: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10598: s&@INSTALL@&$ac_INSTALL&;t t
10599: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10600: $ac_datarootdir_hack
1.15 bertrand 10601: "
10602: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1.36 bertrand 10603: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10604:
10605: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10606: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10607: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10608: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10609: which seems to be undefined. Please make sure it is defined" >&5
1.15 bertrand 10610: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10611: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 bertrand 10612:
10613: rm -f "$tmp/stdin"
10614: case $ac_file in
1.15 bertrand 10615: -) cat "$tmp/out" && rm -f "$tmp/out";;
10616: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10617: esac \
1.36 bertrand 10618: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10619: ;;
10620: :H)
10621: #
10622: # CONFIG_HEADER
10623: #
10624: if test x"$ac_file" != x-; then
1.15 bertrand 10625: {
10626: $as_echo "/* $configure_input */" \
10627: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10628: } >"$tmp/config.h" \
1.36 bertrand 10629: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.15 bertrand 10630: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10631: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10632: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 10633: else
1.15 bertrand 10634: rm -f "$ac_file"
10635: mv "$tmp/config.h" "$ac_file" \
1.36 bertrand 10636: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10637: fi
10638: else
1.15 bertrand 10639: $as_echo "/* $configure_input */" \
10640: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1.36 bertrand 10641: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 bertrand 10642: fi
1.15 bertrand 10643: # Compute "$ac_file"'s index in $config_headers.
10644: _am_arg="$ac_file"
1.1 bertrand 10645: _am_stamp_count=1
10646: for _am_header in $config_headers :; do
10647: case $_am_header in
10648: $_am_arg | $_am_arg:* )
10649: break ;;
10650: * )
10651: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10652: esac
10653: done
10654: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10655: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10656: X"$_am_arg" : 'X\(//\)[^/]' \| \
10657: X"$_am_arg" : 'X\(//\)$' \| \
10658: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10659: $as_echo X"$_am_arg" |
1.1 bertrand 10660: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10661: s//\1/
10662: q
10663: }
10664: /^X\(\/\/\)[^/].*/{
10665: s//\1/
10666: q
10667: }
10668: /^X\(\/\/\)$/{
10669: s//\1/
10670: q
10671: }
10672: /^X\(\/\).*/{
10673: s//\1/
10674: q
10675: }
10676: s/.*/./; q'`/stamp-h$_am_stamp_count
10677: ;;
10678:
1.15 bertrand 10679: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10680: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 10681: ;;
10682: esac
10683:
10684:
10685: case $ac_file$ac_mode in
1.15 bertrand 10686: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10687: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10688: # are listed without --file. Let's play safe and only enable the eval
10689: # if we detect the quoting.
10690: case $CONFIG_FILES in
10691: *\'*) eval set x "$CONFIG_FILES" ;;
10692: *) set x $CONFIG_FILES ;;
10693: esac
10694: shift
10695: for mf
10696: do
10697: # Strip MF so we end up with the name of the file.
10698: mf=`echo "$mf" | sed -e 's/:.*$//'`
10699: # Check whether this is an Automake generated Makefile or not.
10700: # We used to match only the files named `Makefile.in', but
10701: # some people rename them; so instead we look at the file content.
10702: # Grep'ing the first line is not enough: some people post-process
10703: # each Makefile.in and add a new line on top of each file to say so.
10704: # Grep'ing the whole file is not good either: AIX grep has a line
10705: # limit of 2048, but all sed's we know have understand at least 4000.
10706: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10707: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 10708: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10709: X"$mf" : 'X\(//\)[^/]' \| \
10710: X"$mf" : 'X\(//\)$' \| \
10711: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10712: $as_echo X"$mf" |
1.1 bertrand 10713: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10714: s//\1/
10715: q
10716: }
10717: /^X\(\/\/\)[^/].*/{
10718: s//\1/
10719: q
10720: }
10721: /^X\(\/\/\)$/{
10722: s//\1/
10723: q
10724: }
10725: /^X\(\/\).*/{
10726: s//\1/
10727: q
10728: }
10729: s/.*/./; q'`
1.15 bertrand 10730: else
10731: continue
10732: fi
10733: # Extract the definition of DEPDIR, am__include, and am__quote
10734: # from the Makefile without running `make'.
10735: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10736: test -z "$DEPDIR" && continue
10737: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10738: test -z "am__include" && continue
10739: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10740: # When using ansi2knr, U may be empty or an underscore; expand it
10741: U=`sed -n 's/^U = //p' < "$mf"`
10742: # Find all dependency output files, they are included files with
10743: # $(DEPDIR) in their names. We invoke sed twice because it is the
10744: # simplest approach to changing $(DEPDIR) to its actual value in the
10745: # expansion.
10746: for file in `sed -n "
10747: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10748: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10749: # Make sure the directory exists.
10750: test -f "$dirpart/$file" && continue
10751: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 10752: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10753: X"$file" : 'X\(//\)[^/]' \| \
10754: X"$file" : 'X\(//\)$' \| \
10755: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10756: $as_echo X"$file" |
1.1 bertrand 10757: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10758: s//\1/
10759: q
10760: }
10761: /^X\(\/\/\)[^/].*/{
10762: s//\1/
10763: q
10764: }
10765: /^X\(\/\/\)$/{
10766: s//\1/
10767: q
10768: }
10769: /^X\(\/\).*/{
10770: s//\1/
10771: q
10772: }
10773: s/.*/./; q'`
1.15 bertrand 10774: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10775: # echo "creating $dirpart/$file"
10776: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 10777: done
10778: done
1.15 bertrand 10779: }
1.1 bertrand 10780: ;;
10781:
10782: esac
10783: done # for ac_tag
10784:
10785:
1.15 bertrand 10786: as_fn_exit 0
1.1 bertrand 10787: _ACEOF
10788: ac_clean_files=$ac_clean_files_save
10789:
1.15 bertrand 10790: test $ac_write_fail = 0 ||
1.36 bertrand 10791: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15 bertrand 10792:
1.1 bertrand 10793:
10794: # configure is writing to config.log, and then calls config.status.
10795: # config.status does its own redirection, appending to config.log.
10796: # Unfortunately, on DOS this fails, as config.log is still kept open
10797: # by configure, so config.status won't be able to write to it; its
10798: # output is simply discarded. So we exec the FD to /dev/null,
10799: # effectively closing config.log, so it can be properly (re)opened and
10800: # appended to by config.status. When coming back to configure, we
10801: # need to make the FD available again.
10802: if test "$no_create" != yes; then
10803: ac_cs_success=:
10804: ac_config_status_args=
10805: test "$silent" = yes &&
10806: ac_config_status_args="$ac_config_status_args --quiet"
10807: exec 5>/dev/null
10808: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10809: exec 5>>config.log
10810: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10811: # would make configure fail if this is the last instruction.
1.36 bertrand 10812: $ac_cs_success || as_fn_exit 1
1.1 bertrand 10813: fi
10814:
10815: #
10816: # CONFIG_SUBDIRS section.
10817: #
10818: if test "$no_recursion" != yes; then
10819:
1.15 bertrand 10820: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10821: # so they do not pile up.
1.1 bertrand 10822: ac_sub_configure_args=
10823: ac_prev=
10824: eval "set x $ac_configure_args"
10825: shift
10826: for ac_arg
10827: do
10828: if test -n "$ac_prev"; then
10829: ac_prev=
10830: continue
10831: fi
10832: case $ac_arg in
10833: -cache-file | --cache-file | --cache-fil | --cache-fi \
10834: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10835: ac_prev=cache_file ;;
10836: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10837: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10838: | --c=*)
10839: ;;
10840: --config-cache | -C)
10841: ;;
10842: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10843: ac_prev=srcdir ;;
10844: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10845: ;;
10846: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10847: ac_prev=prefix ;;
10848: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10849: ;;
1.15 bertrand 10850: --disable-option-checking)
10851: ;;
1.1 bertrand 10852: *)
10853: case $ac_arg in
1.15 bertrand 10854: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10855: esac
1.15 bertrand 10856: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 10857: esac
10858: done
10859:
10860: # Always prepend --prefix to ensure using the same prefix
10861: # in subdir configurations.
10862: ac_arg="--prefix=$prefix"
10863: case $ac_arg in
1.15 bertrand 10864: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10865: esac
10866: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10867:
10868: # Pass --silent
10869: if test "$silent" = yes; then
10870: ac_sub_configure_args="--silent $ac_sub_configure_args"
10871: fi
10872:
1.15 bertrand 10873: # Always prepend --disable-option-checking to silence warnings, since
10874: # different subdirs can have different --enable and --with options.
10875: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10876:
1.1 bertrand 10877: ac_popdir=`pwd`
10878: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10879:
10880: # Do not complain, so a configure script can configure whichever
10881: # parts of a large source tree are present.
10882: test -d "$srcdir/$ac_dir" || continue
10883:
10884: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 10885: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10886: $as_echo "$ac_msg" >&6
10887: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10888: ac_builddir=.
10889:
10890: case "$ac_dir" in
10891: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10892: *)
1.15 bertrand 10893: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10894: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10895: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10896: case $ac_top_builddir_sub in
10897: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10898: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10899: esac ;;
10900: esac
10901: ac_abs_top_builddir=$ac_pwd
10902: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10903: # for backward compatibility:
10904: ac_top_builddir=$ac_top_build_prefix
10905:
10906: case $srcdir in
10907: .) # We are building in place.
10908: ac_srcdir=.
10909: ac_top_srcdir=$ac_top_builddir_sub
10910: ac_abs_top_srcdir=$ac_pwd ;;
10911: [\\/]* | ?:[\\/]* ) # Absolute name.
10912: ac_srcdir=$srcdir$ac_dir_suffix;
10913: ac_top_srcdir=$srcdir
10914: ac_abs_top_srcdir=$srcdir ;;
10915: *) # Relative name.
10916: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10917: ac_top_srcdir=$ac_top_build_prefix$srcdir
10918: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10919: esac
10920: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10921:
10922:
10923: cd "$ac_dir"
10924:
10925: # Check for guested configure; otherwise get Cygnus style configure.
10926: if test -f "$ac_srcdir/configure.gnu"; then
10927: ac_sub_configure=$ac_srcdir/configure.gnu
10928: elif test -f "$ac_srcdir/configure"; then
10929: ac_sub_configure=$ac_srcdir/configure
10930: elif test -f "$ac_srcdir/configure.in"; then
10931: # This should be Cygnus configure.
10932: ac_sub_configure=$ac_aux_dir/configure
10933: else
1.15 bertrand 10934: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10935: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 10936: ac_sub_configure=
10937: fi
10938:
10939: # The recursion is here.
10940: if test -n "$ac_sub_configure"; then
10941: # Make the cache file name correct relative to the subdirectory.
10942: case $cache_file in
10943: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10944: *) # Relative name.
10945: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10946: esac
10947:
1.15 bertrand 10948: { $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
10949: $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 10950: # The eval makes quoting arguments work.
10951: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10952: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36 bertrand 10953: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 10954: fi
10955:
10956: cd "$ac_popdir"
10957: done
10958: fi
1.15 bertrand 10959: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10960: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10961: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10962: fi
1.1 bertrand 10963:
CVSweb interface <joel.bertrand@systella.fr>