Annotation of rpl/configure, revision 1.50
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.44 bertrand 3: # Generated by GNU Autoconf 2.67 for rpl 4.0.20.
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.44 bertrand 552: PACKAGE_VERSION='4.0.20'
553: PACKAGE_STRING='rpl 4.0.20'
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.49 bertrand 599: MALLOC
1.30 bertrand 600: EXT_SQL
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.44 bertrand 1352: \`configure' configures rpl 4.0.20 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.44 bertrand 1427: short | recursive ) echo "Configuration of rpl 4.0.20:";;
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.44 bertrand 1543: rpl configure 4.0.20
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.44 bertrand 2254: It was created by rpl $as_me 4.0.20, 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.44 bertrand 3180: VERSION='4.0.20'
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.48 bertrand 3224: NCURSES=ncurses-5.7-20101204
1.50 ! bertrand 3225: READLINE=readline-6.2
1.30 bertrand 3226: UNITS=units-1.88
1.15 bertrand 3227: GSL=gsl-1.14
3228: GPP=gpp-2.24
1.45 bertrand 3229: GNUPLOT=gnuplot-4.4.2
1.15 bertrand 3230: FILE=file-5.03
3231: ICONV=libiconv-1.13.1
1.50 ! bertrand 3232: SQLITE=sqlite-3.7.5
! 3233: OPENSSL=openssl-1.0.0d
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"
1.15 bertrand 6059: else
1.24 bertrand 6060: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6061: fi
6062: else
1.24 bertrand 6063: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14 bertrand 6064: fi
1.1 bertrand 6065:
1.15 bertrand 6066:
6067: # Check whether --enable-profile was given.
6068: if test "${enable_profile+set}" = set; then :
6069: enableval=$enable_profile;
6070: if test "$enableval" = "no"; then
6071: PROFILAGE=""
6072: else
6073: PROFILAGE="-pg"
6074: fi
6075: else
6076: PROFILAGE=""
1.1 bertrand 6077: fi
6078:
1.14 bertrand 6079:
6080:
1.15 bertrand 6081:
6082: if test ! -d tools; then
6083: mkdir tools
6084: fi
6085: if test ! -d "$srcdir"/tools/$NCURSES; then
6086: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6087: (cd "$srcdir/tools" && tar -xf -)
6088: fi
6089: if test ! -d "$srcdir"/tools/$READLINE; then
6090: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6091: (cd "$srcdir/tools" && tar -xf -)
6092: fi
6093: if test ! -d "$srcdir"/tools/$UNITS; then
6094: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6095: (cd "$srcdir/tools" && tar -xf -)
6096: fi
6097: if test ! -d "$srcdir"/tools/$GSL; then
6098: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6099: (cd "$srcdir/tools" && tar -xf -)
1.33 bertrand 6100: if test $(uname) = "OS/2"; then
6101: (cd "$srcdir"/tools/$GSL; \
6102: TMP=$(mktemp tmp.XXXXXXXXXX); \
6103: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6104: \mv -f $TMP ltmain.sh)
6105: fi
1.15 bertrand 6106: fi
6107: if test ! -d "$srcdir"/tools/$GPP; then
6108: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6109: (cd "$srcdir/tools" && tar -xf -)
6110: fi
6111: if test ! -d "$srcdir"/tools/$FILE; then
6112: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6113: (cd "$srcdir/tools" && tar -xf - )
6114: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6115: fi
6116: if test ! -d "$srcdir"/tools/$ICONV; then
6117: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6118: (cd "$srcdir/tools" && tar -xf -)
6119: fi
6120: if test ! -d "$srcdir"/tools/$SQLITE; then
6121: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6122: (cd "$srcdir/tools" && tar -xf -)
6123: fi
6124: if test ! -d tools/$OPENSSL; then
6125: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6126: (cd tools && tar -xf -)
1.1 bertrand 6127: fi
6128:
6129:
6130:
1.15 bertrand 6131: # Check whether --enable-final-run-path was given.
6132: if test "${enable_final_run_path+set}" = set; then :
6133: enableval=$enable_final_run_path;
6134: if test "x$enable_final_run_path" = "x"; then
6135: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6136: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36 bertrand 6137: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15 bertrand 6138: else
6139: RUNPATH="$enable_final_run_path"
6140: fi
1.1 bertrand 6141:
6142: else
1.15 bertrand 6143: RUNPATH="\${prefix}"
1.1 bertrand 6144:
6145: fi
6146:
1.15 bertrand 6147:
6148:
6149:
6150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6151: $as_echo_n "checking whether ln -s works... " >&6; }
6152: LN_S=$as_ln_s
6153: if test "$LN_S" = "ln -s"; then
6154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6155: $as_echo "yes" >&6; }
6156: else
6157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6158: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6159: fi
6160:
1.15 bertrand 6161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6162: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6163: set x ${MAKE-make}
6164: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36 bertrand 6165: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15 bertrand 6166: $as_echo_n "(cached) " >&6
1.1 bertrand 6167: else
1.15 bertrand 6168: cat >conftest.make <<\_ACEOF
6169: SHELL = /bin/sh
6170: all:
6171: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6172: _ACEOF
1.36 bertrand 6173: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 6174: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6175: *@@@%%%=?*=@@@%%%*)
6176: eval ac_cv_prog_make_${ac_make}_set=yes;;
6177: *)
6178: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6179: esac
1.15 bertrand 6180: rm -f conftest.make
6181: fi
6182: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6184: $as_echo "yes" >&6; }
6185: SET_MAKE=
6186: else
6187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188: $as_echo "no" >&6; }
6189: SET_MAKE="MAKE=${MAKE-make}"
6190: fi
1.1 bertrand 6191:
1.15 bertrand 6192: if test -n "$ac_tool_prefix"; then
6193: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6194: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196: $as_echo_n "checking for $ac_word... " >&6; }
6197: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6198: $as_echo_n "(cached) " >&6
6199: else
6200: if test -n "$RANLIB"; then
6201: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6202: else
1.15 bertrand 6203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204: for as_dir in $PATH
6205: do
6206: IFS=$as_save_IFS
6207: test -z "$as_dir" && as_dir=.
6208: for ac_exec_ext in '' $ac_executable_extensions; do
6209: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6211: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212: break 2
6213: fi
6214: done
6215: done
6216: IFS=$as_save_IFS
1.1 bertrand 6217:
6218: fi
1.15 bertrand 6219: fi
6220: RANLIB=$ac_cv_prog_RANLIB
6221: if test -n "$RANLIB"; then
6222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6223: $as_echo "$RANLIB" >&6; }
6224: else
6225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226: $as_echo "no" >&6; }
6227: fi
6228:
1.1 bertrand 6229:
1.15 bertrand 6230: fi
6231: if test -z "$ac_cv_prog_RANLIB"; then
6232: ac_ct_RANLIB=$RANLIB
6233: # Extract the first word of "ranlib", so it can be a program name with args.
6234: set dummy ranlib; ac_word=$2
6235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236: $as_echo_n "checking for $ac_word... " >&6; }
6237: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6238: $as_echo_n "(cached) " >&6
6239: else
6240: if test -n "$ac_ct_RANLIB"; then
6241: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6242: else
6243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244: for as_dir in $PATH
6245: do
6246: IFS=$as_save_IFS
6247: test -z "$as_dir" && as_dir=.
6248: for ac_exec_ext in '' $ac_executable_extensions; do
6249: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250: ac_cv_prog_ac_ct_RANLIB="ranlib"
6251: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252: break 2
6253: fi
6254: done
1.14 bertrand 6255: done
1.15 bertrand 6256: IFS=$as_save_IFS
6257:
6258: fi
6259: fi
6260: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6261: if test -n "$ac_ct_RANLIB"; then
6262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6263: $as_echo "$ac_ct_RANLIB" >&6; }
6264: else
6265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266: $as_echo "no" >&6; }
6267: fi
6268:
6269: if test "x$ac_ct_RANLIB" = x; then
6270: RANLIB=":"
6271: else
6272: case $cross_compiling:$ac_tool_warned in
6273: yes:)
6274: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276: ac_tool_warned=yes ;;
6277: esac
6278: RANLIB=$ac_ct_RANLIB
6279: fi
1.14 bertrand 6280: else
1.15 bertrand 6281: RANLIB="$ac_cv_prog_RANLIB"
6282: fi
1.1 bertrand 6283:
6284:
1.15 bertrand 6285: # Extract the first word of "nawk", so it can be a program name with args.
6286: set dummy nawk; ac_word=$2
6287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288: $as_echo_n "checking for $ac_word... " >&6; }
6289: if test "${ac_cv_prog_AWK+set}" = set; then :
6290: $as_echo_n "(cached) " >&6
6291: else
6292: if test -n "$AWK"; then
6293: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6294: else
6295: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296: for as_dir in $PATH
6297: do
6298: IFS=$as_save_IFS
6299: test -z "$as_dir" && as_dir=.
6300: for ac_exec_ext in '' $ac_executable_extensions; do
6301: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302: ac_cv_prog_AWK="yes"
6303: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304: break 2
6305: fi
6306: done
6307: done
6308: IFS=$as_save_IFS
1.1 bertrand 6309:
1.15 bertrand 6310: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6311: fi
6312: fi
6313: AWK=$ac_cv_prog_AWK
6314: if test -n "$AWK"; then
6315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6316: $as_echo "$AWK" >&6; }
1.1 bertrand 6317: else
1.15 bertrand 6318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319: $as_echo "no" >&6; }
6320: fi
6321:
1.1 bertrand 6322:
1.15 bertrand 6323: if test "$AWK" = no; then
1.39 bertrand 6324: # Extract the first word of "gawk", so it can be a program name with args.
6325: set dummy gawk; ac_word=$2
6326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327: $as_echo_n "checking for $ac_word... " >&6; }
6328: if test "${ac_cv_prog_AWK+set}" = set; then :
6329: $as_echo_n "(cached) " >&6
6330: else
6331: if test -n "$AWK"; then
6332: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6333: else
6334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335: for as_dir in $PATH
6336: do
6337: IFS=$as_save_IFS
6338: test -z "$as_dir" && as_dir=.
6339: for ac_exec_ext in '' $ac_executable_extensions; do
6340: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341: ac_cv_prog_AWK="yes"
6342: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343: break 2
6344: fi
6345: done
6346: done
6347: IFS=$as_save_IFS
6348:
6349: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6350: fi
6351: fi
6352: AWK=$ac_cv_prog_AWK
6353: if test -n "$AWK"; then
6354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6355: $as_echo "$AWK" >&6; }
6356: else
6357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358: $as_echo "no" >&6; }
6359: fi
6360:
6361:
6362: if test "$AWK" = no; then
6363: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6364: fi
1.1 bertrand 6365: fi
6366:
1.15 bertrand 6367: # Extract the first word of "sed", so it can be a program name with args.
6368: set dummy sed; ac_word=$2
6369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370: $as_echo_n "checking for $ac_word... " >&6; }
6371: if test "${ac_cv_prog_SED+set}" = set; then :
6372: $as_echo_n "(cached) " >&6
6373: else
6374: if test -n "$SED"; then
6375: ac_cv_prog_SED="$SED" # Let the user override the test.
6376: else
6377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378: for as_dir in $PATH
6379: do
6380: IFS=$as_save_IFS
6381: test -z "$as_dir" && as_dir=.
6382: for ac_exec_ext in '' $ac_executable_extensions; do
6383: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384: ac_cv_prog_SED="yes"
6385: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386: break 2
6387: fi
6388: done
1.14 bertrand 6389: done
1.15 bertrand 6390: IFS=$as_save_IFS
1.1 bertrand 6391:
1.15 bertrand 6392: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6393: fi
1.15 bertrand 6394: fi
6395: SED=$ac_cv_prog_SED
6396: if test -n "$SED"; then
6397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6398: $as_echo "$SED" >&6; }
6399: else
6400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401: $as_echo "no" >&6; }
1.14 bertrand 6402: fi
1.1 bertrand 6403:
6404:
1.15 bertrand 6405: if test "$SED" = no; then
1.36 bertrand 6406: as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15 bertrand 6407: fi
1.14 bertrand 6408:
1.15 bertrand 6409: if test "$TEX_SUPPORT" = guessed; then
6410: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6411:
1.15 bertrand 6412: # Extract the first word of "tex", so it can be a program name with args.
6413: set dummy tex; ac_word=$2
6414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415: $as_echo_n "checking for $ac_word... " >&6; }
6416: if test "${ac_cv_prog_TEX+set}" = set; then :
6417: $as_echo_n "(cached) " >&6
1.1 bertrand 6418: else
1.15 bertrand 6419: if test -n "$TEX"; then
6420: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6421: else
1.15 bertrand 6422: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423: for as_dir in $PATH
6424: do
6425: IFS=$as_save_IFS
6426: test -z "$as_dir" && as_dir=.
6427: for ac_exec_ext in '' $ac_executable_extensions; do
6428: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429: ac_cv_prog_TEX="yes"
6430: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431: break 2
6432: fi
6433: done
6434: done
6435: IFS=$as_save_IFS
1.1 bertrand 6436:
1.15 bertrand 6437: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6438: fi
6439: fi
1.15 bertrand 6440: TEX=$ac_cv_prog_TEX
6441: if test -n "$TEX"; then
6442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6443: $as_echo "$TEX" >&6; }
6444: else
6445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446: $as_echo "no" >&6; }
1.1 bertrand 6447: fi
1.14 bertrand 6448:
6449:
1.15 bertrand 6450: if test "$TEX" = no; then
6451: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6452: Download at http://tex.loria.fr/
6453: " >&5
6454: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6455: Download at http://tex.loria.fr/
6456: " >&2;}
6457: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6458: fi
1.14 bertrand 6459:
1.15 bertrand 6460: # Extract the first word of "latex", so it can be a program name with args.
6461: set dummy latex; ac_word=$2
6462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463: $as_echo_n "checking for $ac_word... " >&6; }
6464: if test "${ac_cv_prog_LATEX+set}" = set; then :
6465: $as_echo_n "(cached) " >&6
1.1 bertrand 6466: else
1.15 bertrand 6467: if test -n "$LATEX"; then
6468: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6469: else
1.15 bertrand 6470: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471: for as_dir in $PATH
6472: do
6473: IFS=$as_save_IFS
6474: test -z "$as_dir" && as_dir=.
6475: for ac_exec_ext in '' $ac_executable_extensions; do
6476: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477: ac_cv_prog_LATEX="yes"
6478: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479: break 2
6480: fi
6481: done
6482: done
6483: IFS=$as_save_IFS
1.1 bertrand 6484:
1.15 bertrand 6485: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6486: fi
6487: fi
1.15 bertrand 6488: LATEX=$ac_cv_prog_LATEX
6489: if test -n "$LATEX"; then
6490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6491: $as_echo "$LATEX" >&6; }
6492: else
6493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494: $as_echo "no" >&6; }
6495: fi
1.14 bertrand 6496:
1.1 bertrand 6497:
1.15 bertrand 6498: if test "$LATEX" = no; then
6499: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6500: Download at http://tex.loria.fr/
6501: " >&5
6502: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6503: Download at http://tex.loria.fr/
6504: " >&2;}
6505: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6506: fi
1.1 bertrand 6507:
1.15 bertrand 6508: # Extract the first word of "dvips", so it can be a program name with args.
6509: set dummy dvips; ac_word=$2
6510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511: $as_echo_n "checking for $ac_word... " >&6; }
6512: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6513: $as_echo_n "(cached) " >&6
6514: else
6515: if test -n "$DVIPS"; then
6516: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6517: else
6518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519: for as_dir in $PATH
6520: do
6521: IFS=$as_save_IFS
6522: test -z "$as_dir" && as_dir=.
6523: for ac_exec_ext in '' $ac_executable_extensions; do
6524: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525: ac_cv_prog_DVIPS="yes"
6526: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527: break 2
6528: fi
6529: done
6530: done
6531: IFS=$as_save_IFS
1.1 bertrand 6532:
1.15 bertrand 6533: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6534: fi
1.1 bertrand 6535: fi
1.15 bertrand 6536: DVIPS=$ac_cv_prog_DVIPS
6537: if test -n "$DVIPS"; then
6538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6539: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6540: else
1.15 bertrand 6541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542: $as_echo "no" >&6; }
6543: fi
1.1 bertrand 6544:
6545:
1.15 bertrand 6546: if test "$DVIPS" = no; then
6547: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6548: Download at http://tex.loria.fr/
6549: " >&5
6550: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6551: Download at http://tex.loria.fr/
6552: " >&2;}
6553: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6554: fi
1.1 bertrand 6555:
1.15 bertrand 6556: # Extract the first word of "gs", so it can be a program name with args.
6557: set dummy gs; ac_word=$2
6558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559: $as_echo_n "checking for $ac_word... " >&6; }
6560: if test "${ac_cv_prog_GS+set}" = set; then :
6561: $as_echo_n "(cached) " >&6
6562: else
6563: if test -n "$GS"; then
6564: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6565: else
1.15 bertrand 6566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567: for as_dir in $PATH
6568: do
6569: IFS=$as_save_IFS
6570: test -z "$as_dir" && as_dir=.
6571: for ac_exec_ext in '' $ac_executable_extensions; do
6572: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573: ac_cv_prog_GS="yes"
6574: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575: break 2
6576: fi
6577: done
6578: done
6579: IFS=$as_save_IFS
1.1 bertrand 6580:
1.15 bertrand 6581: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6582: fi
6583: fi
6584: GS=$ac_cv_prog_GS
6585: if test -n "$GS"; then
6586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6587: $as_echo "$GS" >&6; }
6588: else
6589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590: $as_echo "no" >&6; }
1.1 bertrand 6591: fi
6592:
1.15 bertrand 6593:
6594: if test "$GS" = no; then
6595: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6596: Download at http://ftp.lip6.fr/
6597: " >&5
6598: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6599: Download at http://ftp.lip6.fr/
6600: " >&2;}
6601: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6602: fi
6603:
6604: # Extract the first word of "gv", so it can be a program name with args.
6605: set dummy gv; ac_word=$2
6606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607: $as_echo_n "checking for $ac_word... " >&6; }
6608: if test "${ac_cv_prog_GV+set}" = set; then :
6609: $as_echo_n "(cached) " >&6
6610: else
6611: if test -n "$GV"; then
6612: ac_cv_prog_GV="$GV" # Let the user override the test.
6613: else
6614: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615: for as_dir in $PATH
6616: do
6617: IFS=$as_save_IFS
6618: test -z "$as_dir" && as_dir=.
6619: for ac_exec_ext in '' $ac_executable_extensions; do
6620: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621: ac_cv_prog_GV="yes"
6622: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623: break 2
6624: fi
6625: done
1.14 bertrand 6626: done
1.15 bertrand 6627: IFS=$as_save_IFS
1.1 bertrand 6628:
1.15 bertrand 6629: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6630: fi
1.1 bertrand 6631: fi
1.15 bertrand 6632: GV=$ac_cv_prog_GV
6633: if test -n "$GV"; then
6634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6635: $as_echo "$GV" >&6; }
6636: else
6637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638: $as_echo "no" >&6; }
1.1 bertrand 6639: fi
1.14 bertrand 6640:
6641:
1.15 bertrand 6642: if test "$GV" = no; then
6643: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6644: Download at http://ftp.lip6.fr/
6645: " >&5
6646: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6647: Download at http://ftp.lip6.fr/
6648: " >&2;}
6649: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6650: fi
1.1 bertrand 6651: else
1.15 bertrand 6652: if test "$TEX_SUPPORT" = no; then
6653: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6654: else
6655: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6656: fi
1.1 bertrand 6657: fi
6658:
1.15 bertrand 6659: if test "$GNUPLOT_SUPPORT" = guessed; then
6660: # Extract the first word of "gnuplot", so it can be a program name with args.
6661: set dummy gnuplot; ac_word=$2
6662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663: $as_echo_n "checking for $ac_word... " >&6; }
6664: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6665: $as_echo_n "(cached) " >&6
1.14 bertrand 6666: else
1.15 bertrand 6667: if test -n "$GNUPLOT_P"; then
6668: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 6669: else
1.15 bertrand 6670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671: for as_dir in $PATH
6672: do
6673: IFS=$as_save_IFS
6674: test -z "$as_dir" && as_dir=.
6675: for ac_exec_ext in '' $ac_executable_extensions; do
6676: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677: ac_cv_prog_GNUPLOT_P="yes"
6678: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679: break 2
6680: fi
6681: done
6682: done
6683: IFS=$as_save_IFS
1.1 bertrand 6684:
1.15 bertrand 6685: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 6686: fi
6687: fi
1.15 bertrand 6688: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6689: if test -n "$GNUPLOT_P"; then
6690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6691: $as_echo "$GNUPLOT_P" >&6; }
6692: else
6693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694: $as_echo "no" >&6; }
1.1 bertrand 6695: fi
6696:
6697:
1.15 bertrand 6698: if test "$GNUPLOT_P" = no; then
6699: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6700: Download at http://www.gnuplot.vt.edu/
6701: " >&5
6702: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6703: Download at http://www.gnuplot.vt.edu/
6704: " >&2;}
6705: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6706: else
6707: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6708: fi
6709: else
6710: if test "$GNUPLOT_SUPPORT" = no; then
6711: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6712: else
6713: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6714: fi
6715: fi
1.1 bertrand 6716:
1.15 bertrand 6717: if test "$VIM_SUPPORT" = guessed; then
6718: # Extract the first word of "vim", so it can be a program name with args.
6719: set dummy vim; ac_word=$2
6720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721: $as_echo_n "checking for $ac_word... " >&6; }
6722: if test "${ac_cv_prog_VIM+set}" = set; then :
6723: $as_echo_n "(cached) " >&6
1.1 bertrand 6724: else
1.15 bertrand 6725: if test -n "$VIM"; then
6726: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 6727: else
1.15 bertrand 6728: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729: for as_dir in $PATH
6730: do
6731: IFS=$as_save_IFS
6732: test -z "$as_dir" && as_dir=.
6733: for ac_exec_ext in '' $ac_executable_extensions; do
6734: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735: ac_cv_prog_VIM="yes"
6736: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737: break 2
6738: fi
6739: done
6740: done
6741: IFS=$as_save_IFS
1.1 bertrand 6742:
1.15 bertrand 6743: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 6744: fi
6745: fi
1.15 bertrand 6746: VIM=$ac_cv_prog_VIM
6747: if test -n "$VIM"; then
6748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6749: $as_echo "$VIM" >&6; }
1.1 bertrand 6750: else
1.15 bertrand 6751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752: $as_echo "no" >&6; }
6753: fi
1.1 bertrand 6754:
6755:
1.15 bertrand 6756: if test "$VIM" = no; then
6757: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6758: Download at http://www.vim.org/
6759: " >&5
6760: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6761: Download at http://www.vim.org/
6762: " >&2;}
6763: VIM_SUPPORT="-UVIM_SUPPORT"
6764: else
6765: VIM_SUPPORT="-DVIM_SUPPORT"
6766: fi
1.1 bertrand 6767: else
1.15 bertrand 6768: if test "$VIM_SUPPORT" = no; then
6769: VIM_SUPPORT="-UVIM_SUPPORT"
6770: else
6771: VIM_SUPPORT="-DVIM_SUPPORT"
6772: fi
1.1 bertrand 6773: fi
6774:
1.15 bertrand 6775: if test "$MOTIF_SUPPORT" = guessed; then
6776: CFLAGS_ORIG=$CFLAGS
6777: LIBS_ORIG=$LIBS
6778: CFLAGS="$CFLAGS $X_CFLAGS"
6779: LIBS="$LIB $X_LIBS"
6780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6781: $as_echo_n "checking for main in -lXm... " >&6; }
6782: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6783: $as_echo_n "(cached) " >&6
1.1 bertrand 6784: else
1.15 bertrand 6785: ac_check_lib_save_LIBS=$LIBS
6786: LIBS="-lXm $LIBS"
6787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788: /* end confdefs.h. */
1.1 bertrand 6789:
6790:
1.14 bertrand 6791: int
6792: main ()
6793: {
1.15 bertrand 6794: return main ();
1.14 bertrand 6795: ;
6796: return 0;
6797: }
6798: _ACEOF
1.15 bertrand 6799: if ac_fn_c_try_link "$LINENO"; then :
6800: ac_cv_lib_Xm_main=yes
1.1 bertrand 6801: else
1.15 bertrand 6802: ac_cv_lib_Xm_main=no
6803: fi
6804: rm -f core conftest.err conftest.$ac_objext \
6805: conftest$ac_exeext conftest.$ac_ext
6806: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6807: fi
1.15 bertrand 6808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6809: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6810: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6811: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6812: else
1.15 bertrand 6813: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6814: fi
1.14 bertrand 6815:
1.15 bertrand 6816: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6817: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6818: Motif flag is disabled.
6819: " >&5
6820: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6821: Motif flag is disabled.
6822: " >&2;}
6823: fi
6824: LIBS=$LIBS_ORIG
6825: CFLAGS=$CFLAGS_ORIG
1.1 bertrand 6826: fi
6827:
1.15 bertrand 6828: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6829: CFLAGS_ORIG=$CFLAGS
6830: LIBS_ORIG=$LIBS
6831: CFLAGS="$CFLAGS $X_CFLAGS"
6832: LIBS="$LIB $X_LIBS"
6833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6834: $as_echo_n "checking for main in -lXpm... " >&6; }
6835: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6836: $as_echo_n "(cached) " >&6
6837: else
6838: ac_check_lib_save_LIBS=$LIBS
6839: LIBS="-lXpm $LIBS"
6840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 6841: /* end confdefs.h. */
6842:
1.1 bertrand 6843:
6844: int
6845: main ()
6846: {
1.15 bertrand 6847: return main ();
1.1 bertrand 6848: ;
6849: return 0;
6850: }
6851: _ACEOF
1.15 bertrand 6852: if ac_fn_c_try_link "$LINENO"; then :
6853: ac_cv_lib_Xpm_main=yes
1.1 bertrand 6854: else
1.15 bertrand 6855: ac_cv_lib_Xpm_main=no
6856: fi
6857: rm -f core conftest.err conftest.$ac_objext \
6858: conftest$ac_exeext conftest.$ac_ext
6859: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6860: fi
1.15 bertrand 6861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6862: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6863: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6864: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6865: else
6866: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6867: fi
1.15 bertrand 6868:
6869: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6870: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6871: else
6872: libX=""
6873: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6874: Motif flag is disabled.
6875: " >&5
6876: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6877: Motif flag is disabled.
6878: " >&2;}
6879: fi
6880: LIBS=$LIBS_ORIG
6881: CFLAGS=$CFLAGS_ORIG
6882: else
6883: libX=""
1.1 bertrand 6884: fi
1.14 bertrand 6885:
6886:
6887:
1.1 bertrand 6888:
6889:
1.15 bertrand 6890:
6891:
6892:
6893:
6894:
6895:
6896: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6897:
6898:
6899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6900: $as_echo_n "checking for main in -lm... " >&6; }
6901: if test "${ac_cv_lib_m_main+set}" = set; then :
6902: $as_echo_n "(cached) " >&6
1.1 bertrand 6903: else
1.15 bertrand 6904: ac_check_lib_save_LIBS=$LIBS
6905: LIBS="-lm $LIBS"
6906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6907: /* end confdefs.h. */
1.15 bertrand 6908:
6909:
1.1 bertrand 6910: int
6911: main ()
6912: {
1.15 bertrand 6913: return main ();
1.1 bertrand 6914: ;
6915: return 0;
6916: }
6917: _ACEOF
1.15 bertrand 6918: if ac_fn_c_try_link "$LINENO"; then :
6919: ac_cv_lib_m_main=yes
1.1 bertrand 6920: else
1.15 bertrand 6921: ac_cv_lib_m_main=no
6922: fi
6923: rm -f core conftest.err conftest.$ac_objext \
6924: conftest$ac_exeext conftest.$ac_ext
6925: LIBS=$ac_check_lib_save_LIBS
6926: fi
6927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6928: $as_echo "$ac_cv_lib_m_main" >&6; }
6929: if test "x$ac_cv_lib_m_main" = x""yes; then :
6930: cat >>confdefs.h <<_ACEOF
6931: #define HAVE_LIBM 1
6932: _ACEOF
1.14 bertrand 6933:
1.15 bertrand 6934: LIBS="-lm $LIBS"
1.1 bertrand 6935:
1.15 bertrand 6936: else
1.36 bertrand 6937: as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1 bertrand 6938: fi
6939:
1.15 bertrand 6940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6941: $as_echo_n "checking for main in -lpthread... " >&6; }
6942: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6943: $as_echo_n "(cached) " >&6
1.1 bertrand 6944: else
1.15 bertrand 6945: ac_check_lib_save_LIBS=$LIBS
6946: LIBS="-lpthread $LIBS"
6947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6948: /* end confdefs.h. */
1.15 bertrand 6949:
6950:
1.14 bertrand 6951: int
6952: main ()
6953: {
1.15 bertrand 6954: return main ();
1.14 bertrand 6955: ;
6956: return 0;
6957: }
6958: _ACEOF
1.15 bertrand 6959: if ac_fn_c_try_link "$LINENO"; then :
6960: ac_cv_lib_pthread_main=yes
6961: else
6962: ac_cv_lib_pthread_main=no
6963: fi
6964: rm -f core conftest.err conftest.$ac_objext \
6965: conftest$ac_exeext conftest.$ac_ext
6966: LIBS=$ac_check_lib_save_LIBS
6967: fi
6968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6969: $as_echo "$ac_cv_lib_pthread_main" >&6; }
6970: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
6971: cat >>confdefs.h <<_ACEOF
6972: #define HAVE_LIBPTHREAD 1
1.14 bertrand 6973: _ACEOF
6974:
1.15 bertrand 6975: LIBS="-lpthread $LIBS"
6976:
1.1 bertrand 6977: else
1.36 bertrand 6978: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15 bertrand 6979: fi
1.14 bertrand 6980:
1.1 bertrand 6981:
1.33 bertrand 6982: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
6983: #include <sys/sem.h>
6984:
6985: "
6986: if test "x$ac_cv_type_union_semun" = x""yes; then :
6987: SEMUN=-DUNION_SEMUN
6988: else
6989: SEMUN=-UUNION_SEMUN
6990: fi
6991:
6992:
1.34 bertrand 6993: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35 bertrand 6994: #include <sys/types.h>
1.34 bertrand 6995: #include <netinet/in.h>
6996:
6997: "
6998: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
6999: IPV6=-DIPV6
7000: else
7001: IPV6=-UIPV6
7002: fi
7003:
7004:
1.15 bertrand 7005: if test "$CYGWIN" != yes; then
7006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7007: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7008: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7009: $as_echo_n "(cached) " >&6
1.1 bertrand 7010: else
1.15 bertrand 7011: ac_check_lib_save_LIBS=$LIBS
7012: LIBS="-ldl $LIBS"
7013: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7014: /* end confdefs.h. */
7015:
1.15 bertrand 7016: /* Override any GCC internal prototype to avoid an error.
7017: Use char because int might match the return type of a GCC
7018: builtin and then its argument prototype would still apply. */
7019: #ifdef __cplusplus
7020: extern "C"
7021: #endif
7022: char dlopen ();
1.1 bertrand 7023: int
7024: main ()
7025: {
1.15 bertrand 7026: return dlopen ();
1.1 bertrand 7027: ;
7028: return 0;
7029: }
7030: _ACEOF
1.15 bertrand 7031: if ac_fn_c_try_link "$LINENO"; then :
7032: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 7033: else
1.15 bertrand 7034: ac_cv_lib_dl_dlopen=no
7035: fi
7036: rm -f core conftest.err conftest.$ac_objext \
7037: conftest$ac_exeext conftest.$ac_ext
7038: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7039: fi
1.15 bertrand 7040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7041: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7042: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7043: LIBS="$LIBS -ldl"
1.14 bertrand 7044: else
1.15 bertrand 7045: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7046: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7047: fi
7048:
1.14 bertrand 7049: fi
1.1 bertrand 7050:
1.15 bertrand 7051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7052: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7053: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7054: $as_echo_n "(cached) " >&6
7055: else
7056: ac_check_lib_save_LIBS=$LIBS
7057: LIBS="-lrt $LIBS"
7058: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7059: /* end confdefs.h. */
1.15 bertrand 7060:
7061: /* Override any GCC internal prototype to avoid an error.
7062: Use char because int might match the return type of a GCC
7063: builtin and then its argument prototype would still apply. */
7064: #ifdef __cplusplus
7065: extern "C"
7066: #endif
7067: char nanosleep ();
1.1 bertrand 7068: int
7069: main ()
7070: {
1.15 bertrand 7071: return nanosleep ();
1.1 bertrand 7072: ;
7073: return 0;
7074: }
7075: _ACEOF
1.15 bertrand 7076: if ac_fn_c_try_link "$LINENO"; then :
7077: ac_cv_lib_rt_nanosleep=yes
7078: else
7079: ac_cv_lib_rt_nanosleep=no
7080: fi
7081: rm -f core conftest.err conftest.$ac_objext \
7082: conftest$ac_exeext conftest.$ac_ext
7083: LIBS=$ac_check_lib_save_LIBS
7084: fi
7085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7086: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7087: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7088: LIBS="$LIBS -lrt"
1.1 bertrand 7089: else
1.15 bertrand 7090: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7091: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7092: fi
1.1 bertrand 7093:
7094:
1.15 bertrand 7095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7096: $as_echo_n "checking for bind in -lsocket... " >&6; }
7097: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7098: $as_echo_n "(cached) " >&6
1.1 bertrand 7099: else
1.15 bertrand 7100: ac_check_lib_save_LIBS=$LIBS
7101: LIBS="-lsocket $LIBS"
7102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7103: /* end confdefs.h. */
1.15 bertrand 7104:
7105: /* Override any GCC internal prototype to avoid an error.
7106: Use char because int might match the return type of a GCC
7107: builtin and then its argument prototype would still apply. */
7108: #ifdef __cplusplus
7109: extern "C"
7110: #endif
7111: char bind ();
1.1 bertrand 7112: int
7113: main ()
7114: {
1.15 bertrand 7115: return bind ();
1.1 bertrand 7116: ;
7117: return 0;
7118: }
7119: _ACEOF
1.15 bertrand 7120: if ac_fn_c_try_link "$LINENO"; then :
7121: ac_cv_lib_socket_bind=yes
1.1 bertrand 7122: else
1.15 bertrand 7123: ac_cv_lib_socket_bind=no
1.1 bertrand 7124: fi
1.15 bertrand 7125: rm -f core conftest.err conftest.$ac_objext \
7126: conftest$ac_exeext conftest.$ac_ext
7127: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7128: fi
1.15 bertrand 7129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7130: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7131: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7132: LIBS="$LIBS -lsocket"
7133: else
7134: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7135: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7136: fi
7137:
7138:
1.15 bertrand 7139: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7140:
7141: # Check whether --with-mysql was given.
7142: if test "${with_mysql+set}" = set; then :
7143: withval=$with_mysql;
7144: else
7145: with_mysql=check
7146: fi
1.14 bertrand 7147:
7148:
1.15 bertrand 7149: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7150: libMySQLinc="-I/usr/include"
1.30 bertrand 7151: libMySQLlib="/usr/lib"
1.14 bertrand 7152:
1.15 bertrand 7153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7154: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7155: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7156: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7157: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7158: /* end confdefs.h. */
1.15 bertrand 7159: #include "mysql.h"
1.1 bertrand 7160: int
7161: main ()
7162: {
1.15 bertrand 7163:
1.1 bertrand 7164: ;
7165: return 0;
7166: }
7167: _ACEOF
1.15 bertrand 7168: if ac_fn_c_try_compile "$LINENO"; then :
7169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7170: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7171: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7172: else
1.15 bertrand 7173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7175: fi
1.14 bertrand 7176: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7177: CFLAGS=$saved_CFLAGS
1.1 bertrand 7178:
1.15 bertrand 7179: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7181: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7182: saved_CFLAGS="$CFLAGS"
7183: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7185: /* end confdefs.h. */
1.15 bertrand 7186: #include "mysql.h"
1.1 bertrand 7187: int
7188: main ()
7189: {
7190:
7191: ;
7192: return 0;
7193: }
7194: _ACEOF
1.15 bertrand 7195: if ac_fn_c_try_compile "$LINENO"; then :
7196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7197: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7198: libMySQLinc=$libMySQLinc
7199: else
7200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7202: fi
7203: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204: CFLAGS=$saved_CFLAGS
7205: libMySQLinc=$libMySQLinc/mysql
7206: fi
7207:
7208: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7210: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7211: saved_CFLAGS="$CFLAGS"
7212: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7214: /* end confdefs.h. */
1.15 bertrand 7215: #include "mysql.h"
1.1 bertrand 7216: int
7217: main ()
7218: {
7219:
7220: ;
7221: return 0;
7222: }
7223: _ACEOF
1.15 bertrand 7224: if ac_fn_c_try_compile "$LINENO"; then :
7225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7226: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7227: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7228: else
1.15 bertrand 7229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7231: fi
7232: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7233: CFLAGS=$saved_CFLAGS
7234: libMySQLinc=$libMySQLinc/../local/include
7235: libMySQLlib=$libMySQLlib/../local/lib
7236: fi
1.1 bertrand 7237:
1.15 bertrand 7238: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7240: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7241: saved_CFLAGS="$CFLAGS"
7242: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7244: /* end confdefs.h. */
1.15 bertrand 7245: #include "mysql.h"
1.1 bertrand 7246: int
7247: main ()
7248: {
7249:
7250: ;
7251: return 0;
7252: }
7253: _ACEOF
1.15 bertrand 7254: if ac_fn_c_try_compile "$LINENO"; then :
7255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7257: libMySQLinc=$libMySQLinc/mysql
7258: else
7259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7261: fi
7262: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263: CFLAGS=$saved_CFLAGS
7264: libMySQLinc=$libMySQLinc/../local/include/mysql
7265: libMySQLlib=$libMySQLlib/../local/lib
7266: fi
7267: else
7268: if test "x$with_mysql" != xno; then
7269: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7270: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7271:
7272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7273: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7274: saved_CFLAGS="$CFLAGS"
7275: CFLAGS="$CFLAGS $libMySQLinc"
7276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7277: /* end confdefs.h. */
1.15 bertrand 7278: #include "mysql.h"
1.1 bertrand 7279: int
7280: main ()
7281: {
7282:
7283: ;
7284: return 0;
7285: }
7286: _ACEOF
1.15 bertrand 7287: if ac_fn_c_try_compile "$LINENO"; then :
7288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7289: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7290: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7291: else
1.15 bertrand 7292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7294: fi
7295: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7296: CFLAGS=$saved_CFLAGS
1.1 bertrand 7297:
1.15 bertrand 7298: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7300: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7301: saved_CFLAGS="$CFLAGS"
7302: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7303: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7304: /* end confdefs.h. */
1.15 bertrand 7305: #include "mysql.h"
1.1 bertrand 7306: int
7307: main ()
7308: {
7309:
7310: ;
7311: return 0;
7312: }
7313: _ACEOF
1.15 bertrand 7314: if ac_fn_c_try_compile "$LINENO"; then :
7315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7317: libMySQLinc=$libMySQLinc
1.1 bertrand 7318: else
1.15 bertrand 7319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7321: fi
7322: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323: CFLAGS=$saved_CFLAGS
7324: libMySQLinc=$libMySQLinc/mysql
7325: fi
7326: else
7327: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7328: fi
7329: fi
1.14 bertrand 7330:
1.15 bertrand 7331: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7332: MYSQL_LIB=no
1.14 bertrand 7333:
1.15 bertrand 7334: if test $MYSQL_LIB = no; then
7335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7336: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7337: saved_LIBS="$LIBS"
1.30 bertrand 7338: if test $STATIC = no; then
7339: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7340: else
7341: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7342: fi
1.15 bertrand 7343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7344: /* end confdefs.h. */
1.15 bertrand 7345: #include "mysql.h"
1.1 bertrand 7346: int
7347: main ()
7348: {
1.15 bertrand 7349: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7350: ;
7351: return 0;
7352: }
7353: _ACEOF
1.15 bertrand 7354: if ac_fn_c_try_link "$LINENO"; then :
7355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7356: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7357: else
1.15 bertrand 7358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359: $as_echo "no" >&6; }; MYSQL_LIB="no"
7360: fi
7361: rm -f core conftest.err conftest.$ac_objext \
7362: conftest$ac_exeext conftest.$ac_ext
7363: LIBS=$saved_LIBS;
1.30 bertrand 7364: if test $STATIC = no; then
7365: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7366: else
7367: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7368: EXT_SQL="$EXT_SQL $libMySQLlib"
7369: fi
1.15 bertrand 7370: fi
1.14 bertrand 7371:
1.15 bertrand 7372: if test $MYSQL_LIB = no; then
7373: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7374: fi
1.14 bertrand 7375: fi
1.15 bertrand 7376:
7377: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7378: libMySQLinc=
7379: libMySQLlib=
1.1 bertrand 7380: fi
1.14 bertrand 7381:
7382:
7383:
1.1 bertrand 7384:
7385:
1.15 bertrand 7386: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7387:
7388: # Check whether --with-postgresql was given.
7389: if test "${with_postgresql+set}" = set; then :
7390: withval=$with_postgresql;
1.14 bertrand 7391: else
1.15 bertrand 7392: with_postgresql=check
7393: fi
7394:
7395:
7396: # with_postgresql : check [pas défini], yes [uniquement --with],
7397: # no [--without], valeur [--with=valeur].
7398:
7399: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7400: libPgSQLinc="-I/usr/include"
1.30 bertrand 7401: libPgSQLlib="/usr/lib"
1.15 bertrand 7402:
7403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7404: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7405: saved_CFLAGS="$CFLAGS"
7406: CFLAGS="$CFLAGS $libPgSQLinc"
7407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7408: /* end confdefs.h. */
1.15 bertrand 7409: #include "libpq-fe.h"
1.1 bertrand 7410: int
7411: main ()
7412: {
1.15 bertrand 7413:
1.1 bertrand 7414: ;
7415: return 0;
7416: }
7417: _ACEOF
1.15 bertrand 7418: if ac_fn_c_try_compile "$LINENO"; then :
7419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7420: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7421: else
1.15 bertrand 7422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7424: fi
1.14 bertrand 7425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7426: CFLAGS=$saved_CFLAGS
1.1 bertrand 7427:
1.15 bertrand 7428: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7430: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7431: saved_CFLAGS="$CFLAGS"
7432: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7434: /* end confdefs.h. */
1.15 bertrand 7435: #include "libpq-fe.h"
1.1 bertrand 7436: int
7437: main ()
7438: {
7439:
7440: ;
7441: return 0;
7442: }
7443: _ACEOF
1.15 bertrand 7444: if ac_fn_c_try_compile "$LINENO"; then :
7445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446: $as_echo "yes" >&6; };
7447: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7448: else
7449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450: $as_echo "no" >&6; };
7451: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7452: fi
7453: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454: CFLAGS=$saved_CFLAGS
7455: libPgSQLinc=$libPgSQLinc/postgresql
7456: fi
7457:
7458: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7460: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7461: saved_CFLAGS="$CFLAGS"
7462: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7463: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7464: /* end confdefs.h. */
1.15 bertrand 7465: #include "libpq-fe.h"
1.1 bertrand 7466: int
7467: main ()
7468: {
7469:
7470: ;
7471: return 0;
7472: }
7473: _ACEOF
1.15 bertrand 7474: if ac_fn_c_try_compile "$LINENO"; then :
7475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476: $as_echo "yes" >&6; };
7477: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7478: else
1.15 bertrand 7479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480: $as_echo "no" >&6; };
7481: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7482: fi
7483: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7484: CFLAGS=$saved_CFLAGS
7485: libPgSQLinc=$libPgSQLinc/pgsql
7486: fi
1.1 bertrand 7487:
1.15 bertrand 7488: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7490: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7491: saved_CFLAGS="$CFLAGS"
7492: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7494: /* end confdefs.h. */
1.15 bertrand 7495: #include "libpq-fe.h"
1.1 bertrand 7496: int
7497: main ()
7498: {
7499:
7500: ;
7501: return 0;
7502: }
7503: _ACEOF
1.15 bertrand 7504: if ac_fn_c_try_compile "$LINENO"; then :
7505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7506: $as_echo "yes" >&6; };
7507: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7508: else
7509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510: $as_echo "no" >&6; };
7511: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7512: fi
7513: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514: CFLAGS=$saved_CFLAGS
7515: libPgSQLinc=$libPgSQLinc/../local/include
7516: libPgSQLlib=$libPgSQLlib/../local/lib
7517: fi
7518:
7519: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7521: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7522: saved_CFLAGS="$CFLAGS"
7523: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7525: /* end confdefs.h. */
1.15 bertrand 7526: #include "libpq-fe.h"
1.1 bertrand 7527: int
7528: main ()
7529: {
7530:
7531: ;
7532: return 0;
7533: }
7534: _ACEOF
1.15 bertrand 7535: if ac_fn_c_try_compile "$LINENO"; then :
7536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7537: $as_echo "yes" >&6; };
7538: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7539: else
1.15 bertrand 7540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541: $as_echo "no" >&6; };
7542: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7543: fi
7544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7545: CFLAGS=$saved_CFLAGS
7546: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7547: libPgSQLlib=$libPgSQLlib/../local/lib
7548: fi
1.14 bertrand 7549:
1.15 bertrand 7550: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7552: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7553: saved_CFLAGS="$CFLAGS"
7554: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7556: /* end confdefs.h. */
1.15 bertrand 7557: #include "libpq-fe.h"
1.1 bertrand 7558: int
7559: main ()
7560: {
7561:
7562: ;
7563: return 0;
7564: }
7565: _ACEOF
1.15 bertrand 7566: if ac_fn_c_try_compile "$LINENO"; then :
7567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568: $as_echo "yes" >&6; };
7569: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7570: else
1.15 bertrand 7571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572: $as_echo "no" >&6; };
7573: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7574: fi
7575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7576: CFLAGS=$saved_CFLAGS
7577: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7578: libPgSQLlib=$libPgSQLlib/../local/lib
7579: fi
1.14 bertrand 7580: else
1.15 bertrand 7581: if test "x$with_postgresql" != xno; then
7582: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7583: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7584:
7585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7586: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7587: saved_CFLAGS="$CFLAGS"
7588: CFLAGS="$CFLAGS $libPgSQLinc"
7589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7590: /* end confdefs.h. */
1.15 bertrand 7591: #include "libpq-fe.h"
1.1 bertrand 7592: int
7593: main ()
7594: {
7595:
7596: ;
7597: return 0;
7598: }
7599: _ACEOF
1.15 bertrand 7600: if ac_fn_c_try_compile "$LINENO"; then :
7601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602: $as_echo "yes" >&6; };
7603: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7604: else
1.15 bertrand 7605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606: $as_echo "no" >&6; };
7607: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7608: fi
1.15 bertrand 7609: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610: CFLAGS=$saved_CFLAGS
1.14 bertrand 7611:
1.15 bertrand 7612: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7614: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7615: saved_CFLAGS="$CFLAGS"
7616: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7618: /* end confdefs.h. */
1.15 bertrand 7619: #include "libpq-fe.h"
1.1 bertrand 7620: int
7621: main ()
7622: {
1.15 bertrand 7623:
1.1 bertrand 7624: ;
7625: return 0;
7626: }
7627: _ACEOF
1.15 bertrand 7628: if ac_fn_c_try_compile "$LINENO"; then :
7629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7630: $as_echo "yes" >&6; };
7631: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7632: else
1.15 bertrand 7633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634: $as_echo "no" >&6; };
7635: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7636: fi
7637: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7638: CFLAGS=$saved_CFLAGS
7639: libPgSQLinc=$libPgSQLinc/postgresql
7640: fi
1.14 bertrand 7641:
1.15 bertrand 7642: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7644: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7645: saved_CFLAGS="$CFLAGS"
7646: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7648: /* end confdefs.h. */
1.15 bertrand 7649: #include "libpq-fe.h"
1.1 bertrand 7650: int
7651: main ()
7652: {
1.15 bertrand 7653:
1.1 bertrand 7654: ;
7655: return 0;
7656: }
7657: _ACEOF
1.15 bertrand 7658: if ac_fn_c_try_compile "$LINENO"; then :
7659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660: $as_echo "yes" >&6; };
7661: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7662: else
1.15 bertrand 7663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664: $as_echo "no" >&6; };
7665: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7666: fi
1.15 bertrand 7667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668: CFLAGS=$saved_CFLAGS
7669: libPgSQLinc=$libPgSQLinc/pgsql
7670: fi
7671: else
7672: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7673: fi
1.1 bertrand 7674: fi
7675:
1.15 bertrand 7676: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7677: POSTGRESQL_LIB=no
1.1 bertrand 7678:
1.15 bertrand 7679: if test $POSTGRESQL_LIB = no; then
7680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7681: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7682: saved_LIBS="$LIBS"
1.30 bertrand 7683: if test $STATIC = no; then
7684: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7685: else
7686: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7687: fi
1.15 bertrand 7688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7689: /* end confdefs.h. */
1.15 bertrand 7690: #include "libpq-fe.h"
1.1 bertrand 7691: int
7692: main ()
7693: {
1.15 bertrand 7694: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7695: PQconnectdb(conninfo);
1.1 bertrand 7696: ;
7697: return 0;
7698: }
7699: _ACEOF
1.15 bertrand 7700: if ac_fn_c_try_link "$LINENO"; then :
7701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7702: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7703: else
1.15 bertrand 7704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7706: fi
7707: rm -f core conftest.err conftest.$ac_objext \
7708: conftest$ac_exeext conftest.$ac_ext
7709: LIBS=$saved_LIBS;
1.30 bertrand 7710: if test $STATIC = no; then
7711: libPgSQLlib="-L/$libPgSQLlib -lpq"
7712: else
7713: libPgSQLlib="$libPgSQLlib/libpq.a"
7714: EXT_SQL="$EXT_SQL $libPgSQLlib"
7715: fi
1.15 bertrand 7716: fi
7717: fi
7718:
7719: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7720: libPgSQLinc=
7721: libPgSQLlib=
7722: fi
7723:
7724:
7725:
7726:
1.14 bertrand 7727:
1.40 bertrand 7728: # with_postgresql : check [pas défini], yes [uniquement --with],
7729: # no [--without], valeur [--with=valeur].
7730:
7731: # Check whether --with-bourne_shell was given.
7732: if test "${with_bourne_shell+set}" = set; then :
7733: withval=$with_bourne_shell;
7734: else
7735: with_bourne_shell=no
7736: fi
7737:
7738:
7739: if test "x$with_bourne_shell" = xyes; then
7740: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
7741: fi
7742:
7743: if test "x$with_bourne_shell" = xno; then
7744: if test $(uname) = "OS/2"; then
7745: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
7746: fi
7747:
7748: BSH_PATH=
7749: else
7750: if test ! -x $with_bourne_shell; then
7751: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
7752: fi
7753:
7754: if test $(uname) = "OS/2"; then
1.41 bertrand 7755: with_os2_bourne_shell=$(echo $with_bourne_shell | \
7756: sed -e '1,$s/\//\\\\\\\\/g')
7757: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40 bertrand 7758: else
7759: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
7760: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
7761: BSH_PATH=
7762: fi
7763: fi
7764:
1.15 bertrand 7765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7766: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7767: if test "${ac_cv_path_GREP+set}" = set; then :
7768: $as_echo_n "(cached) " >&6
7769: else
7770: if test -z "$GREP"; then
7771: ac_path_GREP_found=false
7772: # Loop through the user's path and test for each of PROGNAME-LIST
7773: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7775: do
7776: IFS=$as_save_IFS
7777: test -z "$as_dir" && as_dir=.
7778: for ac_prog in grep ggrep; do
7779: for ac_exec_ext in '' $ac_executable_extensions; do
7780: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7781: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7782: # Check for GNU ac_path_GREP and select it if it is found.
7783: # Check for GNU $ac_path_GREP
7784: case `"$ac_path_GREP" --version 2>&1` in
7785: *GNU*)
7786: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7787: *)
7788: ac_count=0
7789: $as_echo_n 0123456789 >"conftest.in"
7790: while :
7791: do
7792: cat "conftest.in" "conftest.in" >"conftest.tmp"
7793: mv "conftest.tmp" "conftest.in"
7794: cp "conftest.in" "conftest.nl"
7795: $as_echo 'GREP' >> "conftest.nl"
7796: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7797: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7798: as_fn_arith $ac_count + 1 && ac_count=$as_val
7799: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7800: # Best one so far, save it but keep looking for a better one
7801: ac_cv_path_GREP="$ac_path_GREP"
7802: ac_path_GREP_max=$ac_count
7803: fi
7804: # 10*(2^10) chars as input seems more than enough
7805: test $ac_count -gt 10 && break
7806: done
7807: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7808: esac
1.14 bertrand 7809:
1.15 bertrand 7810: $ac_path_GREP_found && break 3
7811: done
7812: done
7813: done
7814: IFS=$as_save_IFS
7815: if test -z "$ac_cv_path_GREP"; then
1.36 bertrand 7816: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7817: fi
7818: else
7819: ac_cv_path_GREP=$GREP
1.1 bertrand 7820: fi
7821:
7822: fi
1.15 bertrand 7823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7824: $as_echo "$ac_cv_path_GREP" >&6; }
7825: GREP="$ac_cv_path_GREP"
7826:
7827:
7828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7829: $as_echo_n "checking for egrep... " >&6; }
7830: if test "${ac_cv_path_EGREP+set}" = set; then :
7831: $as_echo_n "(cached) " >&6
7832: else
7833: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7834: then ac_cv_path_EGREP="$GREP -E"
7835: else
7836: if test -z "$EGREP"; then
7837: ac_path_EGREP_found=false
7838: # Loop through the user's path and test for each of PROGNAME-LIST
7839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7841: do
7842: IFS=$as_save_IFS
7843: test -z "$as_dir" && as_dir=.
7844: for ac_prog in egrep; do
7845: for ac_exec_ext in '' $ac_executable_extensions; do
7846: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7847: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7848: # Check for GNU ac_path_EGREP and select it if it is found.
7849: # Check for GNU $ac_path_EGREP
7850: case `"$ac_path_EGREP" --version 2>&1` in
7851: *GNU*)
7852: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7853: *)
7854: ac_count=0
7855: $as_echo_n 0123456789 >"conftest.in"
7856: while :
7857: do
7858: cat "conftest.in" "conftest.in" >"conftest.tmp"
7859: mv "conftest.tmp" "conftest.in"
7860: cp "conftest.in" "conftest.nl"
7861: $as_echo 'EGREP' >> "conftest.nl"
7862: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7863: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7864: as_fn_arith $ac_count + 1 && ac_count=$as_val
7865: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7866: # Best one so far, save it but keep looking for a better one
7867: ac_cv_path_EGREP="$ac_path_EGREP"
7868: ac_path_EGREP_max=$ac_count
7869: fi
7870: # 10*(2^10) chars as input seems more than enough
7871: test $ac_count -gt 10 && break
7872: done
7873: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7874: esac
7875:
7876: $ac_path_EGREP_found && break 3
7877: done
7878: done
7879: done
7880: IFS=$as_save_IFS
7881: if test -z "$ac_cv_path_EGREP"; then
1.36 bertrand 7882: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7883: fi
1.1 bertrand 7884: else
1.15 bertrand 7885: ac_cv_path_EGREP=$EGREP
1.1 bertrand 7886: fi
7887:
1.15 bertrand 7888: fi
1.1 bertrand 7889: fi
1.15 bertrand 7890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7891: $as_echo "$ac_cv_path_EGREP" >&6; }
7892: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 7893:
7894:
1.15 bertrand 7895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7896: $as_echo_n "checking for ANSI C header files... " >&6; }
7897: if test "${ac_cv_header_stdc+set}" = set; then :
7898: $as_echo_n "(cached) " >&6
1.1 bertrand 7899: else
1.15 bertrand 7900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7901: /* end confdefs.h. */
7902: #include <stdlib.h>
7903: #include <stdarg.h>
7904: #include <string.h>
7905: #include <float.h>
7906:
7907: int
7908: main ()
7909: {
7910:
7911: ;
7912: return 0;
7913: }
7914: _ACEOF
1.15 bertrand 7915: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 7916: ac_cv_header_stdc=yes
7917: else
1.15 bertrand 7918: ac_cv_header_stdc=no
1.1 bertrand 7919: fi
7920: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921:
7922: if test $ac_cv_header_stdc = yes; then
7923: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 7924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7925: /* end confdefs.h. */
7926: #include <string.h>
7927:
7928: _ACEOF
7929: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7930: $EGREP "memchr" >/dev/null 2>&1; then :
7931:
1.1 bertrand 7932: else
7933: ac_cv_header_stdc=no
7934: fi
7935: rm -f conftest*
7936:
7937: fi
7938:
7939: if test $ac_cv_header_stdc = yes; then
7940: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 7941: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7942: /* end confdefs.h. */
7943: #include <stdlib.h>
7944:
7945: _ACEOF
7946: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7947: $EGREP "free" >/dev/null 2>&1; then :
7948:
1.1 bertrand 7949: else
7950: ac_cv_header_stdc=no
7951: fi
7952: rm -f conftest*
7953:
7954: fi
7955:
7956: if test $ac_cv_header_stdc = yes; then
7957: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 7958: if test "$cross_compiling" = yes; then :
1.1 bertrand 7959: :
7960: else
1.15 bertrand 7961: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7962: /* end confdefs.h. */
7963: #include <ctype.h>
7964: #include <stdlib.h>
7965: #if ((' ' & 0x0FF) == 0x020)
7966: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7967: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7968: #else
7969: # define ISLOWER(c) \
7970: (('a' <= (c) && (c) <= 'i') \
7971: || ('j' <= (c) && (c) <= 'r') \
7972: || ('s' <= (c) && (c) <= 'z'))
7973: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7974: #endif
7975:
7976: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7977: int
7978: main ()
7979: {
7980: int i;
7981: for (i = 0; i < 256; i++)
7982: if (XOR (islower (i), ISLOWER (i))
7983: || toupper (i) != TOUPPER (i))
7984: return 2;
7985: return 0;
7986: }
7987: _ACEOF
1.15 bertrand 7988: if ac_fn_c_try_run "$LINENO"; then :
7989:
1.14 bertrand 7990: else
1.15 bertrand 7991: ac_cv_header_stdc=no
7992: fi
7993: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994: conftest.$ac_objext conftest.beam conftest.$ac_ext
7995: fi
1.1 bertrand 7996:
7997: fi
7998: fi
1.15 bertrand 7999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8000: $as_echo "$ac_cv_header_stdc" >&6; }
8001: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8002:
1.15 bertrand 8003: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 8004:
1.1 bertrand 8005: fi
8006:
1.15 bertrand 8007: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8008: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8009: inttypes.h stdint.h unistd.h
8010: do :
8011: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8013: "
1.36 bertrand 8014: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8015: cat >>confdefs.h <<_ACEOF
8016: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 8017: _ACEOF
1.1 bertrand 8018:
8019: fi
8020:
1.15 bertrand 8021: done
8022:
8023:
8024: # The cast to long int works around a bug in the HP C Compiler
8025: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8026: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8027: # This bug is HP SR number 8606223364.
8028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8029: $as_echo_n "checking size of void *... " >&6; }
8030: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8031: $as_echo_n "(cached) " >&6
8032: else
8033: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 8034:
8035: else
1.15 bertrand 8036: if test "$ac_cv_type_void_p" = yes; then
8037: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8038: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8039: as_fn_error 77 "cannot compute sizeof (void *)
8040: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8041: else
8042: ac_cv_sizeof_void_p=0
8043: fi
8044: fi
1.1 bertrand 8045:
8046: fi
1.15 bertrand 8047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8048: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8049:
1.1 bertrand 8050:
8051:
1.15 bertrand 8052: cat >>confdefs.h <<_ACEOF
8053: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 8054: _ACEOF
1.1 bertrand 8055:
1.15 bertrand 8056:
8057: # The cast to long int works around a bug in the HP C Compiler
8058: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8059: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8060: # This bug is HP SR number 8606223364.
8061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8062: $as_echo_n "checking size of char... " >&6; }
8063: if test "${ac_cv_sizeof_char+set}" = set; then :
8064: $as_echo_n "(cached) " >&6
8065: else
8066: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8067:
8068: else
8069: if test "$ac_cv_type_char" = yes; then
8070: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8071: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8072: as_fn_error 77 "cannot compute sizeof (char)
8073: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8074: else
8075: ac_cv_sizeof_char=0
8076: fi
8077: fi
8078:
1.1 bertrand 8079: fi
1.15 bertrand 8080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8081: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 8082:
8083:
8084:
1.15 bertrand 8085: cat >>confdefs.h <<_ACEOF
8086: #define SIZEOF_CHAR $ac_cv_sizeof_char
8087: _ACEOF
1.1 bertrand 8088:
8089:
1.15 bertrand 8090: # The cast to long int works around a bug in the HP C Compiler
8091: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8092: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8093: # This bug is HP SR number 8606223364.
8094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8095: $as_echo_n "checking size of short int... " >&6; }
8096: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8097: $as_echo_n "(cached) " >&6
8098: else
8099: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 8100:
1.15 bertrand 8101: else
8102: if test "$ac_cv_type_short_int" = yes; then
8103: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8104: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8105: as_fn_error 77 "cannot compute sizeof (short int)
8106: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8107: else
8108: ac_cv_sizeof_short_int=0
8109: fi
8110: fi
1.1 bertrand 8111:
1.15 bertrand 8112: fi
8113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8114: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8115:
8116:
8117:
1.15 bertrand 8118: cat >>confdefs.h <<_ACEOF
8119: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8120: _ACEOF
1.1 bertrand 8121:
8122:
1.15 bertrand 8123: # The cast to long int works around a bug in the HP C Compiler
8124: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8125: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8126: # This bug is HP SR number 8606223364.
8127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8128: $as_echo_n "checking size of int... " >&6; }
8129: if test "${ac_cv_sizeof_int+set}" = set; then :
8130: $as_echo_n "(cached) " >&6
8131: else
8132: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8133:
1.15 bertrand 8134: else
8135: if test "$ac_cv_type_int" = yes; then
8136: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8137: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8138: as_fn_error 77 "cannot compute sizeof (int)
8139: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8140: else
8141: ac_cv_sizeof_int=0
8142: fi
8143: fi
1.1 bertrand 8144:
1.15 bertrand 8145: fi
8146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8147: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8148:
8149:
8150:
1.15 bertrand 8151: cat >>confdefs.h <<_ACEOF
8152: #define SIZEOF_INT $ac_cv_sizeof_int
8153: _ACEOF
1.1 bertrand 8154:
8155:
1.15 bertrand 8156: # The cast to long int works around a bug in the HP C Compiler
8157: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8158: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8159: # This bug is HP SR number 8606223364.
8160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8161: $as_echo_n "checking size of long int... " >&6; }
8162: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8163: $as_echo_n "(cached) " >&6
8164: else
8165: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8166:
1.14 bertrand 8167: else
1.15 bertrand 8168: if test "$ac_cv_type_long_int" = yes; then
8169: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8170: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8171: as_fn_error 77 "cannot compute sizeof (long int)
8172: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8173: else
8174: ac_cv_sizeof_long_int=0
8175: fi
8176: fi
1.1 bertrand 8177:
8178: fi
1.15 bertrand 8179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8180: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8181:
1.1 bertrand 8182:
8183:
1.15 bertrand 8184: cat >>confdefs.h <<_ACEOF
8185: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8186: _ACEOF
1.15 bertrand 8187:
8188:
8189: # The cast to long int works around a bug in the HP C Compiler
8190: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8191: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8192: # This bug is HP SR number 8606223364.
8193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8194: $as_echo_n "checking size of long long int... " >&6; }
8195: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8196: $as_echo_n "(cached) " >&6
8197: else
8198: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8199:
1.14 bertrand 8200: else
1.15 bertrand 8201: if test "$ac_cv_type_long_long_int" = yes; then
8202: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8203: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8204: as_fn_error 77 "cannot compute sizeof (long long int)
8205: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8206: else
8207: ac_cv_sizeof_long_long_int=0
8208: fi
8209: fi
1.1 bertrand 8210:
1.14 bertrand 8211: fi
1.15 bertrand 8212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8213: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8214:
8215:
8216:
8217: cat >>confdefs.h <<_ACEOF
8218: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8219: _ACEOF
1.1 bertrand 8220:
8221:
1.15 bertrand 8222: # The cast to long int works around a bug in the HP C Compiler
8223: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8224: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8225: # This bug is HP SR number 8606223364.
8226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8227: $as_echo_n "checking size of float... " >&6; }
8228: if test "${ac_cv_sizeof_float+set}" = set; then :
8229: $as_echo_n "(cached) " >&6
8230: else
8231: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8232:
8233: else
1.15 bertrand 8234: if test "$ac_cv_type_float" = yes; then
8235: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8236: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8237: as_fn_error 77 "cannot compute sizeof (float)
8238: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8239: else
8240: ac_cv_sizeof_float=0
8241: fi
1.14 bertrand 8242: fi
8243:
1.1 bertrand 8244: fi
1.15 bertrand 8245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8246: $as_echo "$ac_cv_sizeof_float" >&6; }
8247:
8248:
8249:
8250: cat >>confdefs.h <<_ACEOF
8251: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8252: _ACEOF
1.1 bertrand 8253:
8254:
1.15 bertrand 8255: # The cast to long int works around a bug in the HP C Compiler
8256: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8257: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8258: # This bug is HP SR number 8606223364.
8259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8260: $as_echo_n "checking size of double... " >&6; }
8261: if test "${ac_cv_sizeof_double+set}" = set; then :
8262: $as_echo_n "(cached) " >&6
8263: else
8264: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8265:
1.15 bertrand 8266: else
8267: if test "$ac_cv_type_double" = yes; then
8268: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8269: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8270: as_fn_error 77 "cannot compute sizeof (double)
8271: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8272: else
8273: ac_cv_sizeof_double=0
8274: fi
8275: fi
1.1 bertrand 8276:
1.15 bertrand 8277: fi
8278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8279: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8280:
1.1 bertrand 8281:
8282:
1.15 bertrand 8283: cat >>confdefs.h <<_ACEOF
8284: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8285: _ACEOF
1.15 bertrand 8286:
8287:
8288: # The cast to long int works around a bug in the HP C Compiler
8289: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8290: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8291: # This bug is HP SR number 8606223364.
8292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8293: $as_echo_n "checking size of long double... " >&6; }
8294: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8295: $as_echo_n "(cached) " >&6
8296: else
8297: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8298:
1.14 bertrand 8299: else
1.15 bertrand 8300: if test "$ac_cv_type_long_double" = yes; then
8301: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8302: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8303: as_fn_error 77 "cannot compute sizeof (long double)
8304: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8305: else
8306: ac_cv_sizeof_long_double=0
8307: fi
8308: fi
1.1 bertrand 8309:
8310: fi
1.15 bertrand 8311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8312: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8313:
1.1 bertrand 8314:
8315:
1.15 bertrand 8316: cat >>confdefs.h <<_ACEOF
8317: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8318: _ACEOF
8319:
8320:
1.15 bertrand 8321:
8322: ac_header_dirent=no
8323: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8324: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8326: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.36 bertrand 8327: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
1.15 bertrand 8328: $as_echo_n "(cached) " >&6
1.1 bertrand 8329: else
1.15 bertrand 8330: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8331: /* end confdefs.h. */
8332: #include <sys/types.h>
1.15 bertrand 8333: #include <$ac_hdr>
1.1 bertrand 8334:
1.15 bertrand 8335: int
8336: main ()
8337: {
8338: if ((DIR *) 0)
8339: return 0;
8340: ;
8341: return 0;
8342: }
1.1 bertrand 8343: _ACEOF
1.15 bertrand 8344: if ac_fn_c_try_compile "$LINENO"; then :
8345: eval "$as_ac_Header=yes"
1.1 bertrand 8346: else
1.15 bertrand 8347: eval "$as_ac_Header=no"
8348: fi
8349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8350: fi
1.15 bertrand 8351: eval ac_res=\$$as_ac_Header
8352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8353: $as_echo "$ac_res" >&6; }
1.36 bertrand 8354: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8355: cat >>confdefs.h <<_ACEOF
8356: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8357: _ACEOF
1.1 bertrand 8358:
1.15 bertrand 8359: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8360: fi
8361:
1.15 bertrand 8362: done
8363: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8364: if test $ac_header_dirent = dirent.h; then
8365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8366: $as_echo_n "checking for library containing opendir... " >&6; }
8367: if test "${ac_cv_search_opendir+set}" = set; then :
8368: $as_echo_n "(cached) " >&6
8369: else
8370: ac_func_search_save_LIBS=$LIBS
8371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372: /* end confdefs.h. */
8373:
8374: /* Override any GCC internal prototype to avoid an error.
8375: Use char because int might match the return type of a GCC
8376: builtin and then its argument prototype would still apply. */
8377: #ifdef __cplusplus
8378: extern "C"
8379: #endif
8380: char opendir ();
8381: int
8382: main ()
8383: {
8384: return opendir ();
8385: ;
8386: return 0;
8387: }
1.14 bertrand 8388: _ACEOF
1.15 bertrand 8389: for ac_lib in '' dir; do
8390: if test -z "$ac_lib"; then
8391: ac_res="none required"
8392: else
8393: ac_res=-l$ac_lib
8394: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8395: fi
8396: if ac_fn_c_try_link "$LINENO"; then :
8397: ac_cv_search_opendir=$ac_res
8398: fi
8399: rm -f core conftest.err conftest.$ac_objext \
8400: conftest$ac_exeext
8401: if test "${ac_cv_search_opendir+set}" = set; then :
8402: break
8403: fi
8404: done
8405: if test "${ac_cv_search_opendir+set}" = set; then :
1.1 bertrand 8406:
1.15 bertrand 8407: else
8408: ac_cv_search_opendir=no
8409: fi
8410: rm conftest.$ac_ext
8411: LIBS=$ac_func_search_save_LIBS
8412: fi
8413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8414: $as_echo "$ac_cv_search_opendir" >&6; }
8415: ac_res=$ac_cv_search_opendir
8416: if test "$ac_res" != no; then :
8417: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8418:
1.14 bertrand 8419: fi
1.1 bertrand 8420:
8421: else
1.15 bertrand 8422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8423: $as_echo_n "checking for library containing opendir... " >&6; }
8424: if test "${ac_cv_search_opendir+set}" = set; then :
8425: $as_echo_n "(cached) " >&6
8426: else
8427: ac_func_search_save_LIBS=$LIBS
8428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8429: /* end confdefs.h. */
1.15 bertrand 8430:
8431: /* Override any GCC internal prototype to avoid an error.
8432: Use char because int might match the return type of a GCC
8433: builtin and then its argument prototype would still apply. */
8434: #ifdef __cplusplus
8435: extern "C"
8436: #endif
8437: char opendir ();
1.1 bertrand 8438: int
8439: main ()
8440: {
1.15 bertrand 8441: return opendir ();
1.1 bertrand 8442: ;
8443: return 0;
8444: }
8445: _ACEOF
1.15 bertrand 8446: for ac_lib in '' x; do
8447: if test -z "$ac_lib"; then
8448: ac_res="none required"
8449: else
8450: ac_res=-l$ac_lib
8451: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8452: fi
8453: if ac_fn_c_try_link "$LINENO"; then :
8454: ac_cv_search_opendir=$ac_res
8455: fi
8456: rm -f core conftest.err conftest.$ac_objext \
8457: conftest$ac_exeext
8458: if test "${ac_cv_search_opendir+set}" = set; then :
8459: break
8460: fi
8461: done
8462: if test "${ac_cv_search_opendir+set}" = set; then :
8463:
1.1 bertrand 8464: else
1.15 bertrand 8465: ac_cv_search_opendir=no
8466: fi
8467: rm conftest.$ac_ext
8468: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8469: fi
1.15 bertrand 8470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8471: $as_echo "$ac_cv_search_opendir" >&6; }
8472: ac_res=$ac_cv_search_opendir
8473: if test "$ac_res" != no; then :
8474: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8475:
1.1 bertrand 8476: fi
8477:
8478: fi
8479:
1.15 bertrand 8480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8481: $as_echo_n "checking for ANSI C header files... " >&6; }
8482: if test "${ac_cv_header_stdc+set}" = set; then :
8483: $as_echo_n "(cached) " >&6
1.1 bertrand 8484: else
1.15 bertrand 8485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8486: /* end confdefs.h. */
1.15 bertrand 8487: #include <stdlib.h>
8488: #include <stdarg.h>
8489: #include <string.h>
8490: #include <float.h>
8491:
1.1 bertrand 8492: int
8493: main ()
8494: {
1.15 bertrand 8495:
1.1 bertrand 8496: ;
8497: return 0;
8498: }
8499: _ACEOF
1.15 bertrand 8500: if ac_fn_c_try_compile "$LINENO"; then :
8501: ac_cv_header_stdc=yes
1.14 bertrand 8502: else
1.15 bertrand 8503: ac_cv_header_stdc=no
8504: fi
8505: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506:
8507: if test $ac_cv_header_stdc = yes; then
8508: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510: /* end confdefs.h. */
8511: #include <string.h>
8512:
8513: _ACEOF
8514: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8515: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8516:
1.15 bertrand 8517: else
8518: ac_cv_header_stdc=no
1.1 bertrand 8519: fi
1.15 bertrand 8520: rm -f conftest*
1.14 bertrand 8521:
1.1 bertrand 8522: fi
8523:
1.15 bertrand 8524: if test $ac_cv_header_stdc = yes; then
8525: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527: /* end confdefs.h. */
8528: #include <stdlib.h>
8529:
1.14 bertrand 8530: _ACEOF
1.15 bertrand 8531: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532: $EGREP "free" >/dev/null 2>&1; then :
8533:
8534: else
8535: ac_cv_header_stdc=no
8536: fi
8537: rm -f conftest*
1.1 bertrand 8538:
8539: fi
8540:
1.15 bertrand 8541: if test $ac_cv_header_stdc = yes; then
8542: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8543: if test "$cross_compiling" = yes; then :
8544: :
1.1 bertrand 8545: else
1.15 bertrand 8546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8547: /* end confdefs.h. */
1.15 bertrand 8548: #include <ctype.h>
8549: #include <stdlib.h>
8550: #if ((' ' & 0x0FF) == 0x020)
8551: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8552: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8553: #else
8554: # define ISLOWER(c) \
8555: (('a' <= (c) && (c) <= 'i') \
8556: || ('j' <= (c) && (c) <= 'r') \
8557: || ('s' <= (c) && (c) <= 'z'))
8558: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8559: #endif
1.1 bertrand 8560:
1.15 bertrand 8561: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8562: int
8563: main ()
8564: {
1.15 bertrand 8565: int i;
8566: for (i = 0; i < 256; i++)
8567: if (XOR (islower (i), ISLOWER (i))
8568: || toupper (i) != TOUPPER (i))
8569: return 2;
1.1 bertrand 8570: return 0;
8571: }
8572: _ACEOF
1.15 bertrand 8573: if ac_fn_c_try_run "$LINENO"; then :
8574:
1.14 bertrand 8575: else
1.15 bertrand 8576: ac_cv_header_stdc=no
8577: fi
8578: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8579: conftest.$ac_objext conftest.beam conftest.$ac_ext
8580: fi
1.14 bertrand 8581:
1.1 bertrand 8582: fi
8583: fi
1.15 bertrand 8584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8585: $as_echo "$ac_cv_header_stdc" >&6; }
8586: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8587:
1.15 bertrand 8588: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8589:
8590: fi
8591:
1.15 bertrand 8592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8593: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8594: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8595: $as_echo_n "(cached) " >&6
1.1 bertrand 8596: else
1.15 bertrand 8597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8598: /* end confdefs.h. */
1.14 bertrand 8599: #include <sys/types.h>
1.15 bertrand 8600: #include <sys/wait.h>
8601: #ifndef WEXITSTATUS
8602: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8603: #endif
8604: #ifndef WIFEXITED
8605: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8606: #endif
1.1 bertrand 8607:
8608: int
8609: main ()
8610: {
1.15 bertrand 8611: int s;
8612: wait (&s);
8613: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8614: ;
8615: return 0;
8616: }
8617: _ACEOF
1.15 bertrand 8618: if ac_fn_c_try_compile "$LINENO"; then :
8619: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8620: else
1.15 bertrand 8621: ac_cv_header_sys_wait_h=no
8622: fi
8623: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624: fi
8625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8626: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8627: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8628:
1.15 bertrand 8629: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8630:
8631: fi
8632:
1.15 bertrand 8633: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8634: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8635: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8636: do :
8637: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36 bertrand 8639: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8640: cat >>confdefs.h <<_ACEOF
8641: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8642: _ACEOF
8643:
8644: fi
8645:
1.15 bertrand 8646: done
8647:
1.1 bertrand 8648:
1.15 bertrand 8649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8650: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8651: if test "${ac_cv_c_const+set}" = set; then :
8652: $as_echo_n "(cached) " >&6
1.1 bertrand 8653: else
1.15 bertrand 8654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8655: /* end confdefs.h. */
8656:
8657: int
8658: main ()
8659: {
1.15 bertrand 8660: /* FIXME: Include the comments suggested by Paul. */
8661: #ifndef __cplusplus
8662: /* Ultrix mips cc rejects this. */
8663: typedef int charset[2];
8664: const charset cs;
8665: /* SunOS 4.1.1 cc rejects this. */
8666: char const *const *pcpcc;
8667: char **ppc;
8668: /* NEC SVR4.0.2 mips cc rejects this. */
8669: struct point {int x, y;};
8670: static struct point const zero = {0,0};
8671: /* AIX XL C 1.02.0.0 rejects this.
8672: It does not let you subtract one const X* pointer from another in
8673: an arm of an if-expression whose if-part is not a constant
8674: expression */
8675: const char *g = "string";
8676: pcpcc = &g + (g ? g-g : 0);
8677: /* HPUX 7.0 cc rejects these. */
8678: ++pcpcc;
8679: ppc = (char**) pcpcc;
8680: pcpcc = (char const *const *) ppc;
8681: { /* SCO 3.2v4 cc rejects this. */
8682: char *t;
8683: char const *s = 0 ? (char *) 0 : (char const *) 0;
8684:
8685: *t++ = 0;
8686: if (s) return 0;
8687: }
8688: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8689: int x[] = {25, 17};
8690: const int *foo = &x[0];
8691: ++foo;
8692: }
8693: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8694: typedef const int *iptr;
8695: iptr p = 0;
8696: ++p;
8697: }
8698: { /* AIX XL C 1.02.0.0 rejects this saying
8699: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8700: struct s { int j; const int *ap[3]; };
8701: struct s *b; b->j = 5;
8702: }
8703: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8704: const int foo = 10;
8705: if (!foo) return 0;
8706: }
8707: return !cs[0] && !zero.x;
8708: #endif
8709:
1.14 bertrand 8710: ;
1.1 bertrand 8711: return 0;
8712: }
8713: _ACEOF
1.15 bertrand 8714: if ac_fn_c_try_compile "$LINENO"; then :
8715: ac_cv_c_const=yes
1.14 bertrand 8716: else
1.15 bertrand 8717: ac_cv_c_const=no
1.1 bertrand 8718: fi
1.14 bertrand 8719: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8720: fi
1.15 bertrand 8721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8722: $as_echo "$ac_cv_c_const" >&6; }
8723: if test $ac_cv_c_const = no; then
1.1 bertrand 8724:
1.15 bertrand 8725: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 8726:
1.15 bertrand 8727: fi
1.1 bertrand 8728:
1.15 bertrand 8729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8730: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8731: if test "${ac_cv_type_uid_t+set}" = set; then :
8732: $as_echo_n "(cached) " >&6
1.1 bertrand 8733: else
1.15 bertrand 8734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8735: /* end confdefs.h. */
1.15 bertrand 8736: #include <sys/types.h>
8737:
1.1 bertrand 8738: _ACEOF
1.15 bertrand 8739: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8740: $EGREP "uid_t" >/dev/null 2>&1; then :
8741: ac_cv_type_uid_t=yes
1.1 bertrand 8742: else
1.15 bertrand 8743: ac_cv_type_uid_t=no
8744: fi
8745: rm -f conftest*
1.14 bertrand 8746:
1.1 bertrand 8747: fi
1.15 bertrand 8748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8749: $as_echo "$ac_cv_type_uid_t" >&6; }
8750: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 8751:
1.15 bertrand 8752: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 8753:
8754:
1.15 bertrand 8755: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 8756:
8757: fi
8758:
1.15 bertrand 8759: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8760: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1 bertrand 8761:
8762: else
1.15 bertrand 8763:
8764: cat >>confdefs.h <<_ACEOF
8765: #define pid_t int
1.14 bertrand 8766: _ACEOF
8767:
1.15 bertrand 8768: fi
1.14 bertrand 8769:
1.15 bertrand 8770: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8771: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14 bertrand 8772:
1.15 bertrand 8773: else
1.1 bertrand 8774:
1.15 bertrand 8775: cat >>confdefs.h <<_ACEOF
8776: #define size_t unsigned int
1.1 bertrand 8777: _ACEOF
1.14 bertrand 8778:
1.1 bertrand 8779: fi
8780:
1.15 bertrand 8781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8782: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8783: if test "${ac_cv_header_time+set}" = set; then :
8784: $as_echo_n "(cached) " >&6
1.1 bertrand 8785: else
1.15 bertrand 8786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8787: /* end confdefs.h. */
1.15 bertrand 8788: #include <sys/types.h>
8789: #include <sys/time.h>
8790: #include <time.h>
1.1 bertrand 8791:
1.14 bertrand 8792: int
8793: main ()
8794: {
1.15 bertrand 8795: if ((struct tm *) 0)
8796: return 0;
1.14 bertrand 8797: ;
8798: return 0;
8799: }
1.1 bertrand 8800: _ACEOF
1.15 bertrand 8801: if ac_fn_c_try_compile "$LINENO"; then :
8802: ac_cv_header_time=yes
1.1 bertrand 8803: else
1.15 bertrand 8804: ac_cv_header_time=no
1.1 bertrand 8805: fi
1.15 bertrand 8806: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8807: fi
1.15 bertrand 8808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8809: $as_echo "$ac_cv_header_time" >&6; }
8810: if test $ac_cv_header_time = yes; then
1.1 bertrand 8811:
1.15 bertrand 8812: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 8813:
8814: fi
8815:
1.15 bertrand 8816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8817: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8818: if test "${ac_cv_struct_tm+set}" = set; then :
8819: $as_echo_n "(cached) " >&6
1.1 bertrand 8820: else
1.15 bertrand 8821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8822: /* end confdefs.h. */
1.15 bertrand 8823: #include <sys/types.h>
8824: #include <time.h>
1.1 bertrand 8825:
8826: int
8827: main ()
8828: {
1.15 bertrand 8829: struct tm tm;
8830: int *p = &tm.tm_sec;
8831: return !p;
1.1 bertrand 8832: ;
8833: return 0;
8834: }
8835: _ACEOF
1.15 bertrand 8836: if ac_fn_c_try_compile "$LINENO"; then :
8837: ac_cv_struct_tm=time.h
1.1 bertrand 8838: else
1.15 bertrand 8839: ac_cv_struct_tm=sys/time.h
8840: fi
8841: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842: fi
8843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8844: $as_echo "$ac_cv_struct_tm" >&6; }
8845: if test $ac_cv_struct_tm = sys/time.h; then
8846:
8847: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 8848:
1.1 bertrand 8849: fi
8850:
8851:
1.15 bertrand 8852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8853: $as_echo_n "checking return type of signal handlers... " >&6; }
8854: if test "${ac_cv_type_signal+set}" = set; then :
8855: $as_echo_n "(cached) " >&6
1.1 bertrand 8856: else
1.15 bertrand 8857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8858: /* end confdefs.h. */
1.15 bertrand 8859: #include <sys/types.h>
8860: #include <signal.h>
1.1 bertrand 8861:
8862: int
8863: main ()
8864: {
1.15 bertrand 8865: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 8866: ;
8867: return 0;
8868: }
8869: _ACEOF
1.15 bertrand 8870: if ac_fn_c_try_compile "$LINENO"; then :
8871: ac_cv_type_signal=int
1.1 bertrand 8872: else
1.15 bertrand 8873: ac_cv_type_signal=void
1.1 bertrand 8874: fi
1.15 bertrand 8875: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8876: fi
1.15 bertrand 8877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8878: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 8879:
1.15 bertrand 8880: cat >>confdefs.h <<_ACEOF
8881: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 8882: _ACEOF
1.1 bertrand 8883:
1.15 bertrand 8884:
1.35 bertrand 8885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
8886: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
8887: if test "$cross_compiling" = yes; then :
8888: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8889: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8890: as_fn_error $? "cannot run test program while cross compiling
8891: See \`config.log' for more details" "$LINENO" 5 ; }
1.35 bertrand 8892: else
8893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894: /* end confdefs.h. */
8895: #include <unistd.h>
8896: #include <signal.h>
8897: int flag;
8898: void handler(int signal, siginfo_t *siginfo, void *context)
1.39 bertrand 8899: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35 bertrand 8900: int
8901: main ()
8902: {
8903: struct sigaction action;
8904: action.sa_sigaction = handler;
8905: action.sa_flags = SA_SIGINFO;
8906: sigaction(SIGUSR1, &action, NULL);
8907: raise(SIGUSR1);
8908: return(flag);
8909: ;
8910: return 0;
8911: }
8912: _ACEOF
8913: if ac_fn_c_try_run "$LINENO"; then :
8914: BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915: $as_echo "no" >&6; }
8916: else
8917: BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8918: $as_echo "yes" >&6; }
8919: fi
8920: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8921: conftest.$ac_objext conftest.beam conftest.$ac_ext
8922: fi
8923:
8924:
1.15 bertrand 8925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8926: $as_echo_n "checking for working strcoll... " >&6; }
8927: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8928: $as_echo_n "(cached) " >&6
8929: else
8930: if test "$cross_compiling" = yes; then :
8931: ac_cv_func_strcoll_works=no
8932: else
8933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934: /* end confdefs.h. */
8935: $ac_includes_default
8936: int
8937: main ()
8938: {
8939: return (strcoll ("abc", "def") >= 0 ||
8940: strcoll ("ABC", "DEF") >= 0 ||
8941: strcoll ("123", "456") >= 0)
8942: ;
8943: return 0;
8944: }
8945: _ACEOF
8946: if ac_fn_c_try_run "$LINENO"; then :
8947: ac_cv_func_strcoll_works=yes
8948: else
8949: ac_cv_func_strcoll_works=no
8950: fi
8951: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8952: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 8953: fi
1.1 bertrand 8954:
8955: fi
1.15 bertrand 8956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8957: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8958: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 8959:
1.15 bertrand 8960: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 8961:
1.15 bertrand 8962: fi
1.1 bertrand 8963:
1.15 bertrand 8964: for ac_func in strftime
8965: do :
8966: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8967: if test "x$ac_cv_func_strftime" = x""yes; then :
8968: cat >>confdefs.h <<_ACEOF
8969: #define HAVE_STRFTIME 1
8970: _ACEOF
1.1 bertrand 8971:
8972: else
1.15 bertrand 8973: # strftime is in -lintl on SCO UNIX.
8974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8975: $as_echo_n "checking for strftime in -lintl... " >&6; }
8976: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8977: $as_echo_n "(cached) " >&6
8978: else
8979: ac_check_lib_save_LIBS=$LIBS
8980: LIBS="-lintl $LIBS"
8981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8982: /* end confdefs.h. */
8983:
8984: /* Override any GCC internal prototype to avoid an error.
8985: Use char because int might match the return type of a GCC
8986: builtin and then its argument prototype would still apply. */
8987: #ifdef __cplusplus
8988: extern "C"
8989: #endif
1.15 bertrand 8990: char strftime ();
1.1 bertrand 8991: int
8992: main ()
8993: {
1.15 bertrand 8994: return strftime ();
1.1 bertrand 8995: ;
8996: return 0;
8997: }
8998: _ACEOF
1.15 bertrand 8999: if ac_fn_c_try_link "$LINENO"; then :
9000: ac_cv_lib_intl_strftime=yes
1.1 bertrand 9001: else
1.15 bertrand 9002: ac_cv_lib_intl_strftime=no
9003: fi
9004: rm -f core conftest.err conftest.$ac_objext \
9005: conftest$ac_exeext conftest.$ac_ext
9006: LIBS=$ac_check_lib_save_LIBS
9007: fi
9008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9009: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9010: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9011: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9012:
9013: LIBS="-lintl $LIBS"
9014: fi
9015:
9016: fi
9017: done
9018:
9019: for ac_func in vprintf
9020: do :
9021: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9022: if test "x$ac_cv_func_vprintf" = x""yes; then :
9023: cat >>confdefs.h <<_ACEOF
9024: #define HAVE_VPRINTF 1
9025: _ACEOF
9026:
9027: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9028: if test "x$ac_cv_func__doprnt" = x""yes; then :
9029:
9030: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 9031:
9032: fi
9033:
9034: fi
1.15 bertrand 9035: done
9036:
9037:
9038: for ac_func in ftime getcwd putenv select strcspn strdup \
9039: strerror strspn strstr strtod
9040: do :
9041: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9042: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36 bertrand 9043: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 bertrand 9044: cat >>confdefs.h <<_ACEOF
1.15 bertrand 9045: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 9046: _ACEOF
9047:
9048: fi
9049: done
9050:
9051:
1.15 bertrand 9052:
9053: # Check whether --with-openssl_arch was given.
9054: if test "${with_openssl_arch+set}" = set; then :
9055: withval=$with_openssl_arch;
9056: else
9057: with_openssl_arch=none
9058: fi
9059:
9060:
1.31 bertrand 9061: if test $(uname) = "OS/2"; then
1.34 bertrand 9062: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15 bertrand 9063: else
1.31 bertrand 9064: if test "x$with_openssl_arch" = xnone; then
9065: (cd tools/$OPENSSL && ./config)
9066: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9067: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9068: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31 bertrand 9069: elif test "x$with_openssl_arch" = xlist; then
9070: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9071: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31 bertrand 9072: else
9073: (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
9074: fi
1.15 bertrand 9075: fi
1.1 bertrand 9076:
1.34 bertrand 9077:
9078:
9079: subdirs="$subdirs tools/$NCURSES"
9080:
9081: subdirs="$subdirs tools/$READLINE"
9082:
9083: subdirs="$subdirs tools/$GSL"
9084:
9085: subdirs="$subdirs tools/$GPP"
9086:
9087: subdirs="$subdirs tools/$FILE"
9088:
9089: subdirs="$subdirs tools/$ICONV"
9090:
9091: subdirs="$subdirs tools/$SQLITE"
9092:
9093: subdirs="$subdirs tools/$UNITS"
9094:
9095:
1.1 bertrand 9096: if test "$MYGNUPLOT" = "yes"; then
9097: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9098: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9099: (cd "$srcdir/tools" && tar -xf -)
9100: fi
9101: subdirs="$subdirs tools/$GNUPLOT"
9102:
9103: GNUPLOT_COMPILATION=$GNUPLOT
9104: else
9105: GNUPLOT_COMPILATION=
9106: fi
9107:
9108:
9109:
9110: case $host_cpu in
9111:
9112: i?86)
9113: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9114: -Wno-pointer-sign"
9115: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9116: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9117: break ;;
9118:
9119: x86_64*)
9120: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9121: -Wno-pointer-sign"
9122: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9123: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9124: break ;;
9125:
9126: alpha*)
9127: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9128: -Wno-pointer-sign"
9129: FFLAGS="$FFLAGS -mieee -Wall"
9130: FCFLAGS="$FCFLAGS -mieee -Wall"
9131: break ;;
9132:
9133: sparc*)
9134: CFLAGS="$CFLAGS -Wall -funsigned-char \
9135: -Wno-pointer-sign"
9136: FFLAGS="$FFLAGS -Wall"
9137: FCFLAGS="$FCFLAGS -Wall"
9138: break ;;
9139:
9140: esac
9141:
1.8 bertrand 9142: case $host_os in
9143:
9144: cygwin*)
9145: OS=Cygwin
9146: break ;;
9147:
9148: interix*)
9149: OS=Interix
9150: break ;;
9151:
9152: *)
9153: OS=$(uname)
9154: break ;;
9155:
9156: esac
9157:
9158:
9159:
1.1 bertrand 9160: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9161: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49 bertrand 9162: MALLOC=
1.1 bertrand 9163:
1.22 bertrand 9164: case $OS in
1.17 bertrand 9165:
9166: Darwin)
1.31 bertrand 9167: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9168: NESTED_FUNCTIONS=-fnested-functions
9169: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9170: IPCS_SYSV=-UIPCS_SYSV
1.23 bertrand 9171: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9172: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9173: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9174: C_STANDARD=-std=gnu99
1.17 bertrand 9175: break ;;
9176:
1.31 bertrand 9177: Cygwin)
9178: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9179: NESTED_FUNCTIONS=
9180: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9181: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9182: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9183: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9184: C_STANDARD=-std=gnu99
1.17 bertrand 9185: break ;;
9186:
1.34 bertrand 9187: Interix)
9188: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9189: NESTED_FUNCTIONS=
9190: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9191: IPCS_SYSV=-UIPCS_SYSV
1.34 bertrand 9192: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9193: --disable-shared --enable-static --enable-threads"
1.34 bertrand 9194: C_STANDARD=-std=gnu99
9195: break;;
9196:
1.31 bertrand 9197: AIX)
9198: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9199: NESTED_FUNCTIONS=
9200: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9201: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9202: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9203: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9204: C_STANDARD=-std=gnu99
1.18 bertrand 9205: break ;;
9206:
1.31 bertrand 9207: OS/2)
1.37 bertrand 9208: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9209: FINAL_ENCODING=CP850; \
9210: fi;
1.31 bertrand 9211: OS=OS2
9212: NESTED_FUNCTIONS=
9213: EXPORT_DYNAMIC=-Zmap
9214: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9215: IPCS_SYSV=-DIPCS_SYSV
1.31 bertrand 9216: ac_configure_args="$ac_configure_args --without-readline \
1.49 bertrand 9217: --without-cairo --disable-shared --enable-static \
9218: --enable-threads"
1.33 bertrand 9219: C_STANDARD=
1.31 bertrand 9220: break;;
9221:
1.35 bertrand 9222: OpenBSD)
1.37 bertrand 9223: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9224: FINAL_ENCODING=UTF-8; \
9225: fi;
9226: EXPORT_DYNAMIC=-Wl,--export-dynamic
9227: NESTED_FUNCTIONS=
9228: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9229: IPCS_SYSV=-DIPCS_SYSV
1.35 bertrand 9230: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9231: --disable-shared --enable-static --enable-threads"
1.35 bertrand 9232: C_STANDARD=-std=gnu99
9233: break;;
9234:
1.49 bertrand 9235: SunOS)
9236: EXPORT_DYNAMIC=-Wl,--export-dynamic
9237: NESTED_FUNCTIONS=
9238: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
9239:
9240: if test $IPCS_SYSV = no; then
9241: IPCS_SYSV=-UIPCS_SYSV
9242: else
9243: IPCS_SYSV=-DIPCS_SYSV
9244: fi
9245:
9246: ac_configure_args="$ac_configure_args --with-readline=builtin \
9247: --disable-shared --enable-static --enable-threads"
9248: C_STANDARD=-std=gnu99
9249: MALLOC=-lumem
9250: break ;;
9251:
1.17 bertrand 9252: *)
1.31 bertrand 9253: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9254: NESTED_FUNCTIONS=
9255: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9256:
9257: if test $IPCS_SYSV = no; then
9258: IPCS_SYSV=-UIPCS_SYSV
9259: else
9260: IPCS_SYSV=-DIPCS_SYSV
9261: fi
9262:
1.31 bertrand 9263: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9264: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9265: C_STANDARD=-std=gnu99
1.17 bertrand 9266: break ;;
9267:
9268: esac
9269:
9270:
9271:
9272:
1.1 bertrand 9273:
9274:
9275:
9276:
9277:
9278:
9279:
9280:
9281:
9282:
9283:
9284:
9285:
9286:
9287:
9288:
9289:
9290:
9291:
1.9 bertrand 9292:
1.24 bertrand 9293:
1.30 bertrand 9294:
1.33 bertrand 9295:
9296:
9297:
1.34 bertrand 9298:
1.35 bertrand 9299:
1.49 bertrand 9300:
1.1 bertrand 9301: ac_config_files="$ac_config_files Makefile"
9302:
9303: ac_config_files="$ac_config_files COPYING"
9304:
9305: ac_config_files="$ac_config_files tools/Makefile"
9306:
9307: ac_config_files="$ac_config_files src/Makefile"
9308:
9309: ac_config_files="$ac_config_files man/Makefile"
9310:
9311: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9312:
9313: ac_config_files="$ac_config_files doc/Makefile"
9314:
9315: ac_config_files="$ac_config_files scripts/Makefile"
9316:
9317: ac_config_files="$ac_config_files scripts/mkrplso"
9318:
9319: ac_config_files="$ac_config_files scripts/rplcc"
9320:
9321: ac_config_files="$ac_config_files scripts/rpllink"
9322:
9323: ac_config_files="$ac_config_files rpltags/Makefile"
9324:
9325: ac_config_files="$ac_config_files rpliconv/Makefile"
9326:
1.9 bertrand 9327: ac_config_files="$ac_config_files rplsums/Makefile"
9328:
1.39 bertrand 9329: ac_config_files="$ac_config_files rplawk/Makefile"
9330:
1.1 bertrand 9331: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9332:
9333: ac_config_files="$ac_config_files lapack/blas/Makefile"
9334:
9335:
9336: ac_config_files="$ac_config_files man/rpl.1"
9337:
9338: ac_config_files="$ac_config_files man/rplcc.1"
9339:
9340: ac_config_files="$ac_config_files man/rpllink.1"
9341:
9342: ac_config_files="$ac_config_files man/rpltags.1"
9343:
9344: ac_config_files="$ac_config_files man/mkrplso.1"
9345:
9346: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9347:
9348: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9349:
9350: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9351:
9352: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9353:
9354: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9355:
9356:
9357: cat >confcache <<\_ACEOF
9358: # This file is a shell script that caches the results of configure
9359: # tests run on this system so they can be shared between configure
9360: # scripts and configure runs, see configure's option --config-cache.
9361: # It is not useful on other systems. If it contains results you don't
9362: # want to keep, you may remove or edit it.
9363: #
9364: # config.status only pays attention to the cache file if you give it
9365: # the --recheck option to rerun configure.
9366: #
9367: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9368: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9369: # following values.
9370:
9371: _ACEOF
9372:
9373: # The following way of writing the cache mishandles newlines in values,
9374: # but we know of no workaround that is simple, portable, and efficient.
9375: # So, we kill variables containing newlines.
9376: # Ultrix sh set writes to stderr and can't be redirected directly,
9377: # and sets the high bit in the cache file unless we assign to the vars.
9378: (
9379: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9380: eval ac_val=\$$ac_var
9381: case $ac_val in #(
9382: *${as_nl}*)
9383: case $ac_var in #(
1.15 bertrand 9384: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9385: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9386: esac
9387: case $ac_var in #(
9388: _ | IFS | as_nl) ;; #(
1.15 bertrand 9389: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9390: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9391: esac ;;
9392: esac
9393: done
9394:
9395: (set) 2>&1 |
9396: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9397: *${as_nl}ac_space=\ *)
1.15 bertrand 9398: # `set' does not quote correctly, so add quotes: double-quote
9399: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9400: sed -n \
9401: "s/'/'\\\\''/g;
9402: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9403: ;; #(
9404: *)
9405: # `set' quotes correctly as required by POSIX, so do not add quotes.
9406: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9407: ;;
9408: esac |
9409: sort
9410: ) |
9411: sed '
9412: /^ac_cv_env_/b end
9413: t clear
9414: :clear
9415: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9416: t end
9417: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9418: :end' >>confcache
9419: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9420: if test -w "$cache_file"; then
9421: test "x$cache_file" != "x/dev/null" &&
1.15 bertrand 9422: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9423: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1 bertrand 9424: cat confcache >$cache_file
9425: else
1.15 bertrand 9426: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9427: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9428: fi
9429: fi
9430: rm -f confcache
9431:
9432: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9433: # Let make expand exec_prefix.
9434: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9435:
9436: DEFS=-DHAVE_CONFIG_H
9437:
9438: ac_libobjs=
9439: ac_ltlibobjs=
1.36 bertrand 9440: U=
1.1 bertrand 9441: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9442: # 1. Remove the extension, and $U if already installed.
9443: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9444: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9445: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9446: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9447: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9448: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9449: done
9450: LIBOBJS=$ac_libobjs
9451:
9452: LTLIBOBJS=$ac_ltlibobjs
9453:
9454:
1.15 bertrand 9455: if test -n "$EXEEXT"; then
9456: am__EXEEXT_TRUE=
9457: am__EXEEXT_FALSE='#'
9458: else
9459: am__EXEEXT_TRUE='#'
9460: am__EXEEXT_FALSE=
9461: fi
9462:
1.1 bertrand 9463: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36 bertrand 9464: as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15 bertrand 9465: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9466: fi
9467: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36 bertrand 9468: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15 bertrand 9469: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9470: fi
9471: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36 bertrand 9472: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15 bertrand 9473: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9474: fi
9475:
9476: : ${CONFIG_STATUS=./config.status}
1.15 bertrand 9477: ac_write_fail=0
1.1 bertrand 9478: ac_clean_files_save=$ac_clean_files
9479: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9480: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9481: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9482: as_write_fail=0
9483: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9484: #! $SHELL
9485: # Generated by $as_me.
9486: # Run this file to recreate the current configuration.
9487: # Compiler output produced by configure, useful for debugging
9488: # configure, is in config.log if it exists.
9489:
9490: debug=false
9491: ac_cs_recheck=false
9492: ac_cs_silent=false
1.15 bertrand 9493:
1.14 bertrand 9494: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9495: export SHELL
9496: _ASEOF
9497: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9498: ## -------------------- ##
9499: ## M4sh Initialization. ##
9500: ## -------------------- ##
1.1 bertrand 9501:
9502: # Be more Bourne compatible
9503: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9504: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9505: emulate sh
9506: NULLCMD=:
1.15 bertrand 9507: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9508: # is contrary to our usage. Disable this feature.
9509: alias -g '${1+"$@"}'='"$@"'
9510: setopt NO_GLOB_SUBST
9511: else
1.15 bertrand 9512: case `(set -o) 2>/dev/null` in #(
9513: *posix*) :
9514: set -o posix ;; #(
9515: *) :
9516: ;;
1.1 bertrand 9517: esac
9518: fi
9519:
9520:
1.15 bertrand 9521: as_nl='
9522: '
9523: export as_nl
9524: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9525: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9526: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9527: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9528: # Prefer a ksh shell builtin over an external printf program on Solaris,
9529: # but without wasting forks for bash or zsh.
9530: if test -z "$BASH_VERSION$ZSH_VERSION" \
9531: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9532: as_echo='print -r --'
9533: as_echo_n='print -rn --'
9534: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9535: as_echo='printf %s\n'
9536: as_echo_n='printf %s'
9537: else
9538: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9539: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9540: as_echo_n='/usr/ucb/echo -n'
9541: else
9542: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9543: as_echo_n_body='eval
9544: arg=$1;
9545: case $arg in #(
9546: *"$as_nl"*)
9547: expr "X$arg" : "X\\(.*\\)$as_nl";
9548: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9549: esac;
9550: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9551: '
9552: export as_echo_n_body
9553: as_echo_n='sh -c $as_echo_n_body as_echo'
9554: fi
9555: export as_echo_body
9556: as_echo='sh -c $as_echo_body as_echo'
9557: fi
1.14 bertrand 9558:
9559: # The user is always right.
9560: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9561: PATH_SEPARATOR=:
9562: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9563: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9564: PATH_SEPARATOR=';'
9565: }
1.1 bertrand 9566: fi
9567:
9568:
9569: # IFS
9570: # We need space, tab and new line, in precisely that order. Quoting is
9571: # there to prevent editors from complaining about space-tab.
9572: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9573: # splitting by setting IFS to empty value.)
9574: IFS=" "" $as_nl"
9575:
9576: # Find who we are. Look in the path if we contain no directory separator.
1.15 bertrand 9577: case $0 in #((
1.1 bertrand 9578: *[\\/]* ) as_myself=$0 ;;
9579: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580: for as_dir in $PATH
9581: do
9582: IFS=$as_save_IFS
9583: test -z "$as_dir" && as_dir=.
1.15 bertrand 9584: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9585: done
1.1 bertrand 9586: IFS=$as_save_IFS
9587:
9588: ;;
9589: esac
9590: # We did not find ourselves, most probably we were run as `sh COMMAND'
9591: # in which case we are not to be found in the path.
9592: if test "x$as_myself" = x; then
9593: as_myself=$0
9594: fi
9595: if test ! -f "$as_myself"; then
1.15 bertrand 9596: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9597: exit 1
1.1 bertrand 9598: fi
9599:
1.15 bertrand 9600: # Unset variables that we do not need and which cause bugs (e.g. in
9601: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9602: # suppresses any "Segmentation fault" message there. '((' could
9603: # trigger a bug in pdksh 5.2.14.
9604: for as_var in BASH_ENV ENV MAIL MAILPATH
9605: do eval test x\${$as_var+set} = xset \
9606: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9607: done
9608: PS1='$ '
9609: PS2='> '
9610: PS4='+ '
9611:
9612: # NLS nuisances.
1.15 bertrand 9613: LC_ALL=C
9614: export LC_ALL
9615: LANGUAGE=C
9616: export LANGUAGE
9617:
9618: # CDPATH.
9619: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9620:
9621:
1.36 bertrand 9622: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9623: # ----------------------------------------
1.15 bertrand 9624: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9625: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 9626: # script with STATUS, using 1 if that was 0.
1.15 bertrand 9627: as_fn_error ()
9628: {
1.36 bertrand 9629: as_status=$1; test $as_status -eq 0 && as_status=1
9630: if test "$4"; then
9631: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9632: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 9633: fi
1.36 bertrand 9634: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 9635: as_fn_exit $as_status
9636: } # as_fn_error
9637:
9638:
9639: # as_fn_set_status STATUS
9640: # -----------------------
9641: # Set $? to STATUS, without forking.
9642: as_fn_set_status ()
9643: {
9644: return $1
9645: } # as_fn_set_status
9646:
9647: # as_fn_exit STATUS
9648: # -----------------
9649: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9650: as_fn_exit ()
9651: {
9652: set +e
9653: as_fn_set_status $1
9654: exit $1
9655: } # as_fn_exit
9656:
9657: # as_fn_unset VAR
9658: # ---------------
9659: # Portably unset VAR.
9660: as_fn_unset ()
9661: {
9662: { eval $1=; unset $1;}
9663: }
9664: as_unset=as_fn_unset
9665: # as_fn_append VAR VALUE
9666: # ----------------------
9667: # Append the text in VALUE to the end of the definition contained in VAR. Take
9668: # advantage of any shell optimizations that allow amortized linear growth over
9669: # repeated appends, instead of the typical quadratic growth present in naive
9670: # implementations.
9671: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9672: eval 'as_fn_append ()
9673: {
9674: eval $1+=\$2
9675: }'
9676: else
9677: as_fn_append ()
9678: {
9679: eval $1=\$$1\$2
9680: }
9681: fi # as_fn_append
9682:
9683: # as_fn_arith ARG...
9684: # ------------------
9685: # Perform arithmetic evaluation on the ARGs, and store the result in the
9686: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9687: # must be portable across $(()) and expr.
9688: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9689: eval 'as_fn_arith ()
9690: {
9691: as_val=$(( $* ))
9692: }'
9693: else
9694: as_fn_arith ()
9695: {
9696: as_val=`expr "$@" || test $? -eq 1`
9697: }
9698: fi # as_fn_arith
9699:
1.1 bertrand 9700:
9701: if expr a : '\(a\)' >/dev/null 2>&1 &&
9702: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9703: as_expr=expr
9704: else
9705: as_expr=false
9706: fi
9707:
9708: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9709: as_basename=basename
9710: else
9711: as_basename=false
9712: fi
9713:
1.15 bertrand 9714: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9715: as_dirname=dirname
9716: else
9717: as_dirname=false
9718: fi
1.1 bertrand 9719:
9720: as_me=`$as_basename -- "$0" ||
9721: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9722: X"$0" : 'X\(//\)$' \| \
9723: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 9724: $as_echo X/"$0" |
1.1 bertrand 9725: sed '/^.*\/\([^/][^/]*\)\/*$/{
9726: s//\1/
9727: q
9728: }
9729: /^X\/\(\/\/\)$/{
9730: s//\1/
9731: q
9732: }
9733: /^X\/\(\/\).*/{
9734: s//\1/
9735: q
9736: }
1.14 bertrand 9737: s/.*/./; q'`
9738:
1.15 bertrand 9739: # Avoid depending upon Character Ranges.
9740: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9741: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9742: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9743: as_cr_digits='0123456789'
9744: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 9745:
9746: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 9747: case `echo -n x` in #(((((
1.1 bertrand 9748: -n*)
1.15 bertrand 9749: case `echo 'xy\c'` in
1.1 bertrand 9750: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 9751: xy) ECHO_C='\c';;
9752: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9753: ECHO_T=' ';;
1.1 bertrand 9754: esac;;
9755: *)
9756: ECHO_N='-n';;
9757: esac
9758:
9759: rm -f conf$$ conf$$.exe conf$$.file
9760: if test -d conf$$.dir; then
9761: rm -f conf$$.dir/conf$$.file
9762: else
9763: rm -f conf$$.dir
1.15 bertrand 9764: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 9765: fi
1.15 bertrand 9766: if (echo >conf$$.file) 2>/dev/null; then
9767: if ln -s conf$$.file conf$$ 2>/dev/null; then
9768: as_ln_s='ln -s'
9769: # ... but there are two gotchas:
9770: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9771: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9772: # In both cases, we have to default to `cp -p'.
9773: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9774: as_ln_s='cp -p'
9775: elif ln conf$$.file conf$$ 2>/dev/null; then
9776: as_ln_s=ln
9777: else
1.1 bertrand 9778: as_ln_s='cp -p'
1.15 bertrand 9779: fi
1.1 bertrand 9780: else
9781: as_ln_s='cp -p'
9782: fi
9783: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9784: rmdir conf$$.dir 2>/dev/null
9785:
1.15 bertrand 9786:
9787: # as_fn_mkdir_p
9788: # -------------
9789: # Create "$as_dir" as a directory, including parents if necessary.
9790: as_fn_mkdir_p ()
9791: {
9792:
9793: case $as_dir in #(
9794: -*) as_dir=./$as_dir;;
9795: esac
9796: test -d "$as_dir" || eval $as_mkdir_p || {
9797: as_dirs=
9798: while :; do
9799: case $as_dir in #(
9800: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9801: *) as_qdir=$as_dir;;
9802: esac
9803: as_dirs="'$as_qdir' $as_dirs"
9804: as_dir=`$as_dirname -- "$as_dir" ||
9805: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9806: X"$as_dir" : 'X\(//\)[^/]' \| \
9807: X"$as_dir" : 'X\(//\)$' \| \
9808: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9809: $as_echo X"$as_dir" |
9810: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9811: s//\1/
9812: q
9813: }
9814: /^X\(\/\/\)[^/].*/{
9815: s//\1/
9816: q
9817: }
9818: /^X\(\/\/\)$/{
9819: s//\1/
9820: q
9821: }
9822: /^X\(\/\).*/{
9823: s//\1/
9824: q
9825: }
9826: s/.*/./; q'`
9827: test -d "$as_dir" && break
9828: done
9829: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 9830: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15 bertrand 9831:
9832:
9833: } # as_fn_mkdir_p
1.1 bertrand 9834: if mkdir -p . 2>/dev/null; then
1.15 bertrand 9835: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 9836: else
9837: test -d ./-p && rmdir ./-p
9838: as_mkdir_p=false
9839: fi
9840:
9841: if test -x / >/dev/null 2>&1; then
9842: as_test_x='test -x'
9843: else
9844: if ls -dL / >/dev/null 2>&1; then
9845: as_ls_L_option=L
9846: else
9847: as_ls_L_option=
9848: fi
9849: as_test_x='
9850: eval sh -c '\''
9851: if test -d "$1"; then
1.15 bertrand 9852: test -d "$1/.";
1.1 bertrand 9853: else
1.15 bertrand 9854: case $1 in #(
9855: -*)set "./$1";;
1.1 bertrand 9856: esac;
1.15 bertrand 9857: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 9858: ???[sx]*):;;*)false;;esac;fi
9859: '\'' sh
9860: '
9861: fi
9862: as_executable_p=$as_test_x
9863:
9864: # Sed expression to map a string onto a valid CPP name.
9865: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9866:
9867: # Sed expression to map a string onto a valid variable name.
9868: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9869:
9870:
9871: exec 6>&1
1.15 bertrand 9872: ## ----------------------------------- ##
9873: ## Main body of $CONFIG_STATUS script. ##
9874: ## ----------------------------------- ##
9875: _ASEOF
9876: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 9877:
1.15 bertrand 9878: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9879: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 9880: # report actual input values of CONFIG_FILES etc. instead of their
9881: # values after options handling.
9882: ac_log="
1.44 bertrand 9883: This file was extended by rpl $as_me 4.0.20, which was
1.36 bertrand 9884: generated by GNU Autoconf 2.67. Invocation command line was
1.1 bertrand 9885:
9886: CONFIG_FILES = $CONFIG_FILES
9887: CONFIG_HEADERS = $CONFIG_HEADERS
9888: CONFIG_LINKS = $CONFIG_LINKS
9889: CONFIG_COMMANDS = $CONFIG_COMMANDS
9890: $ $0 $@
9891:
9892: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9893: "
9894:
9895: _ACEOF
9896:
1.15 bertrand 9897: case $ac_config_files in *"
9898: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9899: esac
9900:
9901: case $ac_config_headers in *"
9902: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9903: esac
9904:
9905:
9906: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9907: # Files that config.status was made for.
9908: config_files="$ac_config_files"
9909: config_headers="$ac_config_headers"
9910: config_commands="$ac_config_commands"
9911:
9912: _ACEOF
9913:
1.15 bertrand 9914: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 9915: ac_cs_usage="\
1.15 bertrand 9916: \`$as_me' instantiates files and other configuration actions
9917: from templates according to the current configuration. Unless the files
9918: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 9919:
1.15 bertrand 9920: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 9921:
9922: -h, --help print this help, then exit
9923: -V, --version print version number and configuration settings, then exit
1.15 bertrand 9924: --config print configuration, then exit
9925: -q, --quiet, --silent
9926: do not print progress messages
1.1 bertrand 9927: -d, --debug don't remove temporary files
9928: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 9929: --file=FILE[:TEMPLATE]
9930: instantiate the configuration file FILE
9931: --header=FILE[:TEMPLATE]
9932: instantiate the configuration header FILE
1.1 bertrand 9933:
9934: Configuration files:
9935: $config_files
9936:
9937: Configuration headers:
9938: $config_headers
9939:
9940: Configuration commands:
9941: $config_commands
9942:
1.15 bertrand 9943: Report bugs to the package provider."
1.1 bertrand 9944:
9945: _ACEOF
1.15 bertrand 9946: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9947: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 9948: ac_cs_version="\\
1.44 bertrand 9949: rpl config.status 4.0.20
1.36 bertrand 9950: configured by $0, generated by GNU Autoconf 2.67,
1.15 bertrand 9951: with options \\"\$ac_cs_config\\"
1.1 bertrand 9952:
1.36 bertrand 9953: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 9954: This config.status script is free software; the Free Software Foundation
9955: gives unlimited permission to copy, distribute and modify it."
9956:
9957: ac_pwd='$ac_pwd'
9958: srcdir='$srcdir'
9959: INSTALL='$INSTALL'
9960: MKDIR_P='$MKDIR_P'
1.15 bertrand 9961: AWK='$AWK'
9962: test -n "\$AWK" || AWK=awk
1.1 bertrand 9963: _ACEOF
9964:
1.15 bertrand 9965: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9966: # The default lists apply if the user does not specify any file.
1.1 bertrand 9967: ac_need_defaults=:
9968: while test $# != 0
9969: do
9970: case $1 in
1.36 bertrand 9971: --*=?*)
1.1 bertrand 9972: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9973: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9974: ac_shift=:
9975: ;;
1.36 bertrand 9976: --*=)
9977: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9978: ac_optarg=
9979: ac_shift=:
9980: ;;
1.1 bertrand 9981: *)
9982: ac_option=$1
9983: ac_optarg=$2
9984: ac_shift=shift
9985: ;;
9986: esac
9987:
9988: case $ac_option in
9989: # Handling of the options.
9990: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9991: ac_cs_recheck=: ;;
9992: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 9993: $as_echo "$ac_cs_version"; exit ;;
9994: --config | --confi | --conf | --con | --co | --c )
9995: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 9996: --debug | --debu | --deb | --de | --d | -d )
9997: debug=: ;;
9998: --file | --fil | --fi | --f )
9999: $ac_shift
1.15 bertrand 10000: case $ac_optarg in
10001: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36 bertrand 10002: '') as_fn_error $? "missing file argument" ;;
1.15 bertrand 10003: esac
10004: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 10005: ac_need_defaults=false;;
10006: --header | --heade | --head | --hea )
10007: $ac_shift
1.15 bertrand 10008: case $ac_optarg in
10009: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10010: esac
10011: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 10012: ac_need_defaults=false;;
10013: --he | --h)
10014: # Conflict between --help and --header
1.36 bertrand 10015: as_fn_error $? "ambiguous option: \`$1'
1.15 bertrand 10016: Try \`$0 --help' for more information.";;
1.1 bertrand 10017: --help | --hel | -h )
1.15 bertrand 10018: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 10019: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10020: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10021: ac_cs_silent=: ;;
10022:
10023: # This is an error.
1.36 bertrand 10024: -*) as_fn_error $? "unrecognized option: \`$1'
1.15 bertrand 10025: Try \`$0 --help' for more information." ;;
1.1 bertrand 10026:
1.15 bertrand 10027: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 10028: ac_need_defaults=false ;;
10029:
10030: esac
10031: shift
10032: done
10033:
10034: ac_configure_extra_args=
10035:
10036: if $ac_cs_silent; then
10037: exec 6>/dev/null
10038: ac_configure_extra_args="$ac_configure_extra_args --silent"
10039: fi
10040:
10041: _ACEOF
1.15 bertrand 10042: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10043: if \$ac_cs_recheck; then
1.15 bertrand 10044: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10045: shift
10046: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10047: CONFIG_SHELL='$SHELL'
1.1 bertrand 10048: export CONFIG_SHELL
1.15 bertrand 10049: exec "\$@"
1.1 bertrand 10050: fi
10051:
10052: _ACEOF
1.15 bertrand 10053: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10054: exec 5>>config.log
10055: {
10056: echo
10057: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10058: ## Running $as_me. ##
10059: _ASBOX
1.15 bertrand 10060: $as_echo "$ac_log"
1.1 bertrand 10061: } >&5
10062:
10063: _ACEOF
1.15 bertrand 10064: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10065: #
10066: # INIT-COMMANDS
10067: #
10068: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10069:
10070: _ACEOF
10071:
1.15 bertrand 10072: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10073:
10074: # Handling of arguments.
10075: for ac_config_target in $ac_config_targets
10076: do
10077: case $ac_config_target in
10078: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10079: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10080: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10081: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10082: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10083: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10084: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10085: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10086: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10087: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10088: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10089: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10090: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10091: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10092: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 10093: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.39 bertrand 10094: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1 bertrand 10095: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10096: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10097: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10098: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10099: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10100: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10101: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10102: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10103: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10104: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10105: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10106: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10107:
1.36 bertrand 10108: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.1 bertrand 10109: esac
10110: done
10111:
10112:
10113: # If the user did not use the arguments to specify the items to instantiate,
10114: # then the envvar interface is used. Set only those that are not.
10115: # We use the long form for the default assignment because of an extremely
10116: # bizarre bug on SunOS 4.1.3.
10117: if $ac_need_defaults; then
10118: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10119: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10120: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10121: fi
10122:
10123: # Have a temporary directory for convenience. Make it in the build tree
10124: # simply because there is no reason against having it here, and in addition,
10125: # creating and moving files from /tmp can sometimes cause problems.
10126: # Hook for its removal unless debugging.
10127: # Note that there is a small window in which the directory will not be cleaned:
10128: # after its creation but before its name has been assigned to `$tmp'.
10129: $debug ||
10130: {
10131: tmp=
10132: trap 'exit_status=$?
10133: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10134: ' 0
1.15 bertrand 10135: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 10136: }
10137: # Create a (secure) tmp directory for tmp files.
10138:
10139: {
10140: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10141: test -n "$tmp" && test -d "$tmp"
10142: } ||
10143: {
10144: tmp=./conf$$-$RANDOM
10145: (umask 077 && mkdir "$tmp")
1.36 bertrand 10146: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15 bertrand 10147:
10148: # Set up the scripts for CONFIG_FILES section.
10149: # No need to generate them if there are no CONFIG_FILES.
10150: # This happens for instance with `./config.status config.h'.
10151: if test -n "$CONFIG_FILES"; then
1.14 bertrand 10152:
1.1 bertrand 10153:
1.15 bertrand 10154: ac_cr=`echo X | tr X '\015'`
10155: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10156: # But we know of no other shell where ac_cr would be empty at this
10157: # point, so we can use a bashism as a fallback.
10158: if test "x$ac_cr" = x; then
10159: eval ac_cr=\$\'\\r\'
10160: fi
10161: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10162: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36 bertrand 10163: ac_cs_awk_cr='\\r'
1.15 bertrand 10164: else
10165: ac_cs_awk_cr=$ac_cr
10166: fi
1.1 bertrand 10167:
1.15 bertrand 10168: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14 bertrand 10169: _ACEOF
10170:
10171:
1.15 bertrand 10172: {
10173: echo "cat >conf$$subs.awk <<_ACEOF" &&
10174: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10175: echo "_ACEOF"
10176: } >conf$$subs.sh ||
1.36 bertrand 10177: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10178: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14 bertrand 10179: ac_delim='%!_!# '
10180: for ac_last_try in false false false false false :; do
1.15 bertrand 10181: . ./conf$$subs.sh ||
1.36 bertrand 10182: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10183:
1.15 bertrand 10184: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10185: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 10186: break
10187: elif $ac_last_try; then
1.36 bertrand 10188: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10189: else
10190: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10191: fi
10192: done
1.15 bertrand 10193: rm -f conf$$subs.sh
1.1 bertrand 10194:
1.15 bertrand 10195: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10196: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10197: _ACEOF
10198: sed -n '
10199: h
10200: s/^/S["/; s/!.*/"]=/
10201: p
10202: g
10203: s/^[^!]*!//
10204: :repl
10205: t repl
10206: s/'"$ac_delim"'$//
10207: t delim
10208: :nl
10209: h
10210: s/\(.\{148\}\)..*/\1/
10211: t more1
10212: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10213: p
10214: n
10215: b repl
10216: :more1
10217: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10218: p
10219: g
10220: s/.\{148\}//
10221: t nl
10222: :delim
10223: h
10224: s/\(.\{148\}\)..*/\1/
10225: t more2
10226: s/["\\]/\\&/g; s/^/"/; s/$/"/
10227: p
10228: b
10229: :more2
10230: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10231: p
10232: g
10233: s/.\{148\}//
10234: t delim
10235: ' <conf$$subs.awk | sed '
10236: /^[^""]/{
10237: N
10238: s/\n//
10239: }
10240: ' >>$CONFIG_STATUS || ac_write_fail=1
10241: rm -f conf$$subs.awk
10242: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10243: _ACAWK
10244: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10245: for (key in S) S_is_set[key] = 1
10246: FS = ""
1.1 bertrand 10247:
1.15 bertrand 10248: }
10249: {
10250: line = $ 0
10251: nfields = split(line, field, "@")
10252: substed = 0
10253: len = length(field[1])
10254: for (i = 2; i < nfields; i++) {
10255: key = field[i]
10256: keylen = length(key)
10257: if (S_is_set[key]) {
10258: value = S[key]
10259: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10260: len += length(value) + length(field[++i])
10261: substed = 1
10262: } else
10263: len += 1 + keylen
10264: }
1.1 bertrand 10265:
1.15 bertrand 10266: print line
10267: }
1.1 bertrand 10268:
1.15 bertrand 10269: _ACAWK
1.14 bertrand 10270: _ACEOF
1.15 bertrand 10271: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10272: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10273: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10274: else
10275: cat
10276: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1.36 bertrand 10277: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10278: _ACEOF
10279:
1.36 bertrand 10280: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10281: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 bertrand 10282: # trailing colons and then remove the whole line if VPATH becomes empty
10283: # (actually we leave an empty line to preserve line numbers).
10284: if test "x$srcdir" = x.; then
1.36 bertrand 10285: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10286: h
10287: s///
10288: s/^/:/
10289: s/[ ]*$/:/
10290: s/:\$(srcdir):/:/g
10291: s/:\${srcdir}:/:/g
10292: s/:@srcdir@:/:/g
10293: s/^:*//
1.1 bertrand 10294: s/:*$//
1.36 bertrand 10295: x
10296: s/\(=[ ]*\).*/\1/
10297: G
10298: s/\n//
1.1 bertrand 10299: s/^[^=]*=[ ]*$//
10300: }'
10301: fi
10302:
1.15 bertrand 10303: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10304: fi # test -n "$CONFIG_FILES"
10305:
1.15 bertrand 10306: # Set up the scripts for CONFIG_HEADERS section.
10307: # No need to generate them if there are no CONFIG_HEADERS.
10308: # This happens for instance with `./config.status Makefile'.
10309: if test -n "$CONFIG_HEADERS"; then
10310: cat >"$tmp/defines.awk" <<\_ACAWK ||
10311: BEGIN {
10312: _ACEOF
10313:
10314: # Transform confdefs.h into an awk script `defines.awk', embedded as
10315: # here-document in config.status, that substitutes the proper values into
10316: # config.h.in to produce config.h.
10317:
10318: # Create a delimiter string that does not exist in confdefs.h, to ease
10319: # handling of long lines.
10320: ac_delim='%!_!# '
10321: for ac_last_try in false false :; do
10322: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10323: if test -z "$ac_t"; then
10324: break
10325: elif $ac_last_try; then
1.36 bertrand 10326: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15 bertrand 10327: else
10328: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10329: fi
10330: done
10331:
10332: # For the awk script, D is an array of macro values keyed by name,
10333: # likewise P contains macro parameters if any. Preserve backslash
10334: # newline sequences.
10335:
10336: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10337: sed -n '
10338: s/.\{148\}/&'"$ac_delim"'/g
10339: t rset
10340: :rset
10341: s/^[ ]*#[ ]*define[ ][ ]*/ /
10342: t def
10343: d
10344: :def
10345: s/\\$//
10346: t bsnl
10347: s/["\\]/\\&/g
10348: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10349: D["\1"]=" \3"/p
10350: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10351: d
10352: :bsnl
10353: s/["\\]/\\&/g
10354: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10355: D["\1"]=" \3\\\\\\n"\\/p
10356: t cont
10357: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10358: t cont
10359: d
10360: :cont
10361: n
10362: s/.\{148\}/&'"$ac_delim"'/g
10363: t clear
10364: :clear
10365: s/\\$//
10366: t bsnlc
10367: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10368: d
10369: :bsnlc
10370: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10371: b cont
10372: ' <confdefs.h | sed '
10373: s/'"$ac_delim"'/"\\\
10374: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10375:
10376: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10377: for (key in D) D_is_set[key] = 1
10378: FS = ""
10379: }
10380: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10381: line = \$ 0
10382: split(line, arg, " ")
10383: if (arg[1] == "#") {
10384: defundef = arg[2]
10385: mac1 = arg[3]
10386: } else {
10387: defundef = substr(arg[1], 2)
10388: mac1 = arg[2]
10389: }
10390: split(mac1, mac2, "(") #)
10391: macro = mac2[1]
10392: prefix = substr(line, 1, index(line, defundef) - 1)
10393: if (D_is_set[macro]) {
10394: # Preserve the white space surrounding the "#".
10395: print prefix "define", macro P[macro] D[macro]
10396: next
10397: } else {
10398: # Replace #undef with comments. This is necessary, for example,
10399: # in the case of _POSIX_SOURCE, which is predefined and required
10400: # on some systems where configure will not decide to define it.
10401: if (defundef == "undef") {
10402: print "/*", prefix defundef, macro, "*/"
10403: next
10404: }
10405: }
10406: }
10407: { print }
10408: _ACAWK
10409: _ACEOF
10410: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36 bertrand 10411: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15 bertrand 10412: fi # test -n "$CONFIG_HEADERS"
10413:
1.1 bertrand 10414:
1.15 bertrand 10415: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10416: shift
10417: for ac_tag
1.1 bertrand 10418: do
10419: case $ac_tag in
10420: :[FHLC]) ac_mode=$ac_tag; continue;;
10421: esac
10422: case $ac_mode$ac_tag in
10423: :[FHL]*:*);;
1.36 bertrand 10424: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
1.1 bertrand 10425: :[FH]-) ac_tag=-:-;;
10426: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10427: esac
10428: ac_save_IFS=$IFS
10429: IFS=:
10430: set x $ac_tag
10431: IFS=$ac_save_IFS
10432: shift
10433: ac_file=$1
10434: shift
10435:
10436: case $ac_mode in
10437: :L) ac_source=$1;;
10438: :[FH])
10439: ac_file_inputs=
10440: for ac_f
10441: do
10442: case $ac_f in
10443: -) ac_f="$tmp/stdin";;
10444: *) # Look for the file first in the build tree, then in the source tree
10445: # (if the path is not absolute). The absolute path cannot be DOS-style,
10446: # because $ac_f cannot contain `:'.
10447: test -f "$ac_f" ||
10448: case $ac_f in
10449: [\\/$]*) false;;
10450: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10451: esac ||
1.36 bertrand 10452: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
1.1 bertrand 10453: esac
1.15 bertrand 10454: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10455: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10456: done
10457:
10458: # Let's still pretend it is `configure' which instantiates (i.e., don't
10459: # use $as_me), people would be surprised to read:
10460: # /* config.h. Generated by config.status. */
1.15 bertrand 10461: configure_input='Generated from '`
10462: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10463: `' by configure.'
1.1 bertrand 10464: if test x"$ac_file" != x-; then
10465: configure_input="$ac_file. $configure_input"
1.15 bertrand 10466: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10467: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10468: fi
1.15 bertrand 10469: # Neutralize special characters interpreted by sed in replacement strings.
10470: case $configure_input in #(
10471: *\&* | *\|* | *\\* )
10472: ac_sed_conf_input=`$as_echo "$configure_input" |
10473: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10474: *) ac_sed_conf_input=$configure_input;;
10475: esac
1.1 bertrand 10476:
10477: case $ac_tag in
1.15 bertrand 10478: *:-:* | *:-) cat >"$tmp/stdin" \
1.36 bertrand 10479: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10480: esac
10481: ;;
10482: esac
10483:
10484: ac_dir=`$as_dirname -- "$ac_file" ||
10485: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10486: X"$ac_file" : 'X\(//\)[^/]' \| \
10487: X"$ac_file" : 'X\(//\)$' \| \
10488: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10489: $as_echo X"$ac_file" |
1.1 bertrand 10490: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10491: s//\1/
10492: q
10493: }
10494: /^X\(\/\/\)[^/].*/{
10495: s//\1/
10496: q
10497: }
10498: /^X\(\/\/\)$/{
10499: s//\1/
10500: q
10501: }
10502: /^X\(\/\).*/{
10503: s//\1/
10504: q
10505: }
10506: s/.*/./; q'`
1.15 bertrand 10507: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10508: ac_builddir=.
10509:
10510: case "$ac_dir" in
10511: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10512: *)
1.15 bertrand 10513: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10514: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10515: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10516: case $ac_top_builddir_sub in
10517: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10518: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10519: esac ;;
10520: esac
10521: ac_abs_top_builddir=$ac_pwd
10522: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10523: # for backward compatibility:
10524: ac_top_builddir=$ac_top_build_prefix
10525:
10526: case $srcdir in
10527: .) # We are building in place.
10528: ac_srcdir=.
10529: ac_top_srcdir=$ac_top_builddir_sub
10530: ac_abs_top_srcdir=$ac_pwd ;;
10531: [\\/]* | ?:[\\/]* ) # Absolute name.
10532: ac_srcdir=$srcdir$ac_dir_suffix;
10533: ac_top_srcdir=$srcdir
10534: ac_abs_top_srcdir=$srcdir ;;
10535: *) # Relative name.
10536: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10537: ac_top_srcdir=$ac_top_build_prefix$srcdir
10538: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10539: esac
10540: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10541:
10542:
10543: case $ac_mode in
10544: :F)
10545: #
10546: # CONFIG_FILE
10547: #
10548:
10549: case $INSTALL in
10550: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10551: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10552: esac
10553: ac_MKDIR_P=$MKDIR_P
10554: case $MKDIR_P in
10555: [\\/$]* | ?:[\\/]* ) ;;
10556: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10557: esac
10558: _ACEOF
10559:
1.15 bertrand 10560: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10561: # If the template does not know about datarootdir, expand it.
10562: # FIXME: This hack should be removed a few years after 2.60.
10563: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10564: ac_sed_dataroot='
10565: /datarootdir/ {
1.1 bertrand 10566: p
10567: q
10568: }
10569: /@datadir@/p
10570: /@docdir@/p
10571: /@infodir@/p
10572: /@localedir@/p
1.15 bertrand 10573: /@mandir@/p'
10574: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10575: *datarootdir*) ac_datarootdir_seen=yes;;
10576: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10578: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10579: _ACEOF
1.15 bertrand 10580: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10581: ac_datarootdir_hack='
10582: s&@datadir@&$datadir&g
10583: s&@docdir@&$docdir&g
10584: s&@infodir@&$infodir&g
10585: s&@localedir@&$localedir&g
10586: s&@mandir@&$mandir&g
1.15 bertrand 10587: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10588: esac
10589: _ACEOF
10590:
10591: # Neutralize VPATH when `$srcdir' = `.'.
10592: # Shell code in configure.ac might set extrasub.
10593: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10594: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10595: ac_sed_extra="$ac_vpsub
1.1 bertrand 10596: $extrasub
10597: _ACEOF
1.15 bertrand 10598: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10599: :t
10600: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10601: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10602: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10603: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10604: s&@srcdir@&$ac_srcdir&;t t
10605: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10606: s&@top_srcdir@&$ac_top_srcdir&;t t
10607: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10608: s&@builddir@&$ac_builddir&;t t
10609: s&@abs_builddir@&$ac_abs_builddir&;t t
10610: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10611: s&@INSTALL@&$ac_INSTALL&;t t
10612: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10613: $ac_datarootdir_hack
1.15 bertrand 10614: "
10615: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1.36 bertrand 10616: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10617:
10618: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10619: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10620: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10621: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10622: which seems to be undefined. Please make sure it is defined" >&5
1.15 bertrand 10623: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10624: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 bertrand 10625:
10626: rm -f "$tmp/stdin"
10627: case $ac_file in
1.15 bertrand 10628: -) cat "$tmp/out" && rm -f "$tmp/out";;
10629: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10630: esac \
1.36 bertrand 10631: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10632: ;;
10633: :H)
10634: #
10635: # CONFIG_HEADER
10636: #
10637: if test x"$ac_file" != x-; then
1.15 bertrand 10638: {
10639: $as_echo "/* $configure_input */" \
10640: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10641: } >"$tmp/config.h" \
1.36 bertrand 10642: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.15 bertrand 10643: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10644: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10645: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 10646: else
1.15 bertrand 10647: rm -f "$ac_file"
10648: mv "$tmp/config.h" "$ac_file" \
1.36 bertrand 10649: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10650: fi
10651: else
1.15 bertrand 10652: $as_echo "/* $configure_input */" \
10653: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1.36 bertrand 10654: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 bertrand 10655: fi
1.15 bertrand 10656: # Compute "$ac_file"'s index in $config_headers.
10657: _am_arg="$ac_file"
1.1 bertrand 10658: _am_stamp_count=1
10659: for _am_header in $config_headers :; do
10660: case $_am_header in
10661: $_am_arg | $_am_arg:* )
10662: break ;;
10663: * )
10664: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10665: esac
10666: done
10667: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10668: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10669: X"$_am_arg" : 'X\(//\)[^/]' \| \
10670: X"$_am_arg" : 'X\(//\)$' \| \
10671: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10672: $as_echo X"$_am_arg" |
1.1 bertrand 10673: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10674: s//\1/
10675: q
10676: }
10677: /^X\(\/\/\)[^/].*/{
10678: s//\1/
10679: q
10680: }
10681: /^X\(\/\/\)$/{
10682: s//\1/
10683: q
10684: }
10685: /^X\(\/\).*/{
10686: s//\1/
10687: q
10688: }
10689: s/.*/./; q'`/stamp-h$_am_stamp_count
10690: ;;
10691:
1.15 bertrand 10692: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10693: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 10694: ;;
10695: esac
10696:
10697:
10698: case $ac_file$ac_mode in
1.15 bertrand 10699: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10700: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10701: # are listed without --file. Let's play safe and only enable the eval
10702: # if we detect the quoting.
10703: case $CONFIG_FILES in
10704: *\'*) eval set x "$CONFIG_FILES" ;;
10705: *) set x $CONFIG_FILES ;;
10706: esac
10707: shift
10708: for mf
10709: do
10710: # Strip MF so we end up with the name of the file.
10711: mf=`echo "$mf" | sed -e 's/:.*$//'`
10712: # Check whether this is an Automake generated Makefile or not.
10713: # We used to match only the files named `Makefile.in', but
10714: # some people rename them; so instead we look at the file content.
10715: # Grep'ing the first line is not enough: some people post-process
10716: # each Makefile.in and add a new line on top of each file to say so.
10717: # Grep'ing the whole file is not good either: AIX grep has a line
10718: # limit of 2048, but all sed's we know have understand at least 4000.
10719: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10720: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 10721: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10722: X"$mf" : 'X\(//\)[^/]' \| \
10723: X"$mf" : 'X\(//\)$' \| \
10724: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10725: $as_echo X"$mf" |
1.1 bertrand 10726: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10727: s//\1/
10728: q
10729: }
10730: /^X\(\/\/\)[^/].*/{
10731: s//\1/
10732: q
10733: }
10734: /^X\(\/\/\)$/{
10735: s//\1/
10736: q
10737: }
10738: /^X\(\/\).*/{
10739: s//\1/
10740: q
10741: }
10742: s/.*/./; q'`
1.15 bertrand 10743: else
10744: continue
10745: fi
10746: # Extract the definition of DEPDIR, am__include, and am__quote
10747: # from the Makefile without running `make'.
10748: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10749: test -z "$DEPDIR" && continue
10750: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10751: test -z "am__include" && continue
10752: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10753: # When using ansi2knr, U may be empty or an underscore; expand it
10754: U=`sed -n 's/^U = //p' < "$mf"`
10755: # Find all dependency output files, they are included files with
10756: # $(DEPDIR) in their names. We invoke sed twice because it is the
10757: # simplest approach to changing $(DEPDIR) to its actual value in the
10758: # expansion.
10759: for file in `sed -n "
10760: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10761: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10762: # Make sure the directory exists.
10763: test -f "$dirpart/$file" && continue
10764: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 10765: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10766: X"$file" : 'X\(//\)[^/]' \| \
10767: X"$file" : 'X\(//\)$' \| \
10768: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10769: $as_echo X"$file" |
1.1 bertrand 10770: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10771: s//\1/
10772: q
10773: }
10774: /^X\(\/\/\)[^/].*/{
10775: s//\1/
10776: q
10777: }
10778: /^X\(\/\/\)$/{
10779: s//\1/
10780: q
10781: }
10782: /^X\(\/\).*/{
10783: s//\1/
10784: q
10785: }
10786: s/.*/./; q'`
1.15 bertrand 10787: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10788: # echo "creating $dirpart/$file"
10789: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 10790: done
10791: done
1.15 bertrand 10792: }
1.1 bertrand 10793: ;;
10794:
10795: esac
10796: done # for ac_tag
10797:
10798:
1.15 bertrand 10799: as_fn_exit 0
1.1 bertrand 10800: _ACEOF
10801: ac_clean_files=$ac_clean_files_save
10802:
1.15 bertrand 10803: test $ac_write_fail = 0 ||
1.36 bertrand 10804: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15 bertrand 10805:
1.1 bertrand 10806:
10807: # configure is writing to config.log, and then calls config.status.
10808: # config.status does its own redirection, appending to config.log.
10809: # Unfortunately, on DOS this fails, as config.log is still kept open
10810: # by configure, so config.status won't be able to write to it; its
10811: # output is simply discarded. So we exec the FD to /dev/null,
10812: # effectively closing config.log, so it can be properly (re)opened and
10813: # appended to by config.status. When coming back to configure, we
10814: # need to make the FD available again.
10815: if test "$no_create" != yes; then
10816: ac_cs_success=:
10817: ac_config_status_args=
10818: test "$silent" = yes &&
10819: ac_config_status_args="$ac_config_status_args --quiet"
10820: exec 5>/dev/null
10821: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10822: exec 5>>config.log
10823: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10824: # would make configure fail if this is the last instruction.
1.36 bertrand 10825: $ac_cs_success || as_fn_exit 1
1.1 bertrand 10826: fi
10827:
10828: #
10829: # CONFIG_SUBDIRS section.
10830: #
10831: if test "$no_recursion" != yes; then
10832:
1.15 bertrand 10833: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10834: # so they do not pile up.
1.1 bertrand 10835: ac_sub_configure_args=
10836: ac_prev=
10837: eval "set x $ac_configure_args"
10838: shift
10839: for ac_arg
10840: do
10841: if test -n "$ac_prev"; then
10842: ac_prev=
10843: continue
10844: fi
10845: case $ac_arg in
10846: -cache-file | --cache-file | --cache-fil | --cache-fi \
10847: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10848: ac_prev=cache_file ;;
10849: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10850: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10851: | --c=*)
10852: ;;
10853: --config-cache | -C)
10854: ;;
10855: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10856: ac_prev=srcdir ;;
10857: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10858: ;;
10859: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10860: ac_prev=prefix ;;
10861: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10862: ;;
1.15 bertrand 10863: --disable-option-checking)
10864: ;;
1.1 bertrand 10865: *)
10866: case $ac_arg in
1.15 bertrand 10867: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10868: esac
1.15 bertrand 10869: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 10870: esac
10871: done
10872:
10873: # Always prepend --prefix to ensure using the same prefix
10874: # in subdir configurations.
10875: ac_arg="--prefix=$prefix"
10876: case $ac_arg in
1.15 bertrand 10877: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10878: esac
10879: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10880:
10881: # Pass --silent
10882: if test "$silent" = yes; then
10883: ac_sub_configure_args="--silent $ac_sub_configure_args"
10884: fi
10885:
1.15 bertrand 10886: # Always prepend --disable-option-checking to silence warnings, since
10887: # different subdirs can have different --enable and --with options.
10888: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10889:
1.1 bertrand 10890: ac_popdir=`pwd`
10891: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10892:
10893: # Do not complain, so a configure script can configure whichever
10894: # parts of a large source tree are present.
10895: test -d "$srcdir/$ac_dir" || continue
10896:
10897: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 10898: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10899: $as_echo "$ac_msg" >&6
10900: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10901: ac_builddir=.
10902:
10903: case "$ac_dir" in
10904: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10905: *)
1.15 bertrand 10906: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10907: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10908: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10909: case $ac_top_builddir_sub in
10910: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10911: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10912: esac ;;
10913: esac
10914: ac_abs_top_builddir=$ac_pwd
10915: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10916: # for backward compatibility:
10917: ac_top_builddir=$ac_top_build_prefix
10918:
10919: case $srcdir in
10920: .) # We are building in place.
10921: ac_srcdir=.
10922: ac_top_srcdir=$ac_top_builddir_sub
10923: ac_abs_top_srcdir=$ac_pwd ;;
10924: [\\/]* | ?:[\\/]* ) # Absolute name.
10925: ac_srcdir=$srcdir$ac_dir_suffix;
10926: ac_top_srcdir=$srcdir
10927: ac_abs_top_srcdir=$srcdir ;;
10928: *) # Relative name.
10929: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10930: ac_top_srcdir=$ac_top_build_prefix$srcdir
10931: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10932: esac
10933: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10934:
10935:
10936: cd "$ac_dir"
10937:
10938: # Check for guested configure; otherwise get Cygnus style configure.
10939: if test -f "$ac_srcdir/configure.gnu"; then
10940: ac_sub_configure=$ac_srcdir/configure.gnu
10941: elif test -f "$ac_srcdir/configure"; then
10942: ac_sub_configure=$ac_srcdir/configure
10943: elif test -f "$ac_srcdir/configure.in"; then
10944: # This should be Cygnus configure.
10945: ac_sub_configure=$ac_aux_dir/configure
10946: else
1.15 bertrand 10947: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10948: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 10949: ac_sub_configure=
10950: fi
10951:
10952: # The recursion is here.
10953: if test -n "$ac_sub_configure"; then
10954: # Make the cache file name correct relative to the subdirectory.
10955: case $cache_file in
10956: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10957: *) # Relative name.
10958: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10959: esac
10960:
1.15 bertrand 10961: { $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
10962: $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 10963: # The eval makes quoting arguments work.
10964: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10965: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36 bertrand 10966: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 10967: fi
10968:
10969: cd "$ac_popdir"
10970: done
10971: fi
1.15 bertrand 10972: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10973: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10974: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10975: fi
1.1 bertrand 10976:
CVSweb interface <joel.bertrand@systella.fr>