1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68 for rpl 4.1.3.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
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
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
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: }
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.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1"
176: if (eval "$as_required") 2>/dev/null; then :
177: as_have_required=yes
178: else
179: as_have_required=no
180: fi
181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182:
183: else
184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185: as_found=false
186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187: do
188: IFS=$as_save_IFS
189: test -z "$as_dir" && as_dir=.
190: as_found=:
191: case $as_dir in #(
192: /*)
193: for as_base in sh bash ksh sh5; do
194: # Try only shells that exist, to save several forks.
195: as_shell=$as_dir/$as_base
196: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198: CONFIG_SHELL=$as_shell as_have_required=yes
199: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: break 2
201: fi
202: fi
203: done;;
204: esac
205: as_found=false
206: done
207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209: CONFIG_SHELL=$SHELL as_have_required=yes
210: fi; }
211: IFS=$as_save_IFS
212:
213:
214: if test "x$CONFIG_SHELL" != x; then :
215: # We cannot yet assume a decent shell, so we have to provide a
216: # neutralization value for shells without unset; and this also
217: # works around shells that cannot unset nonexistent variables.
218: # Preserve -v and -x to the replacement shell.
219: BASH_ENV=/dev/null
220: ENV=/dev/null
221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222: export CONFIG_SHELL
223: case $- in # ((((
224: *v*x* | *x*v* ) as_opts=-vx ;;
225: *v* ) as_opts=-v ;;
226: *x* ) as_opts=-x ;;
227: * ) as_opts= ;;
228: esac
229: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230: fi
231:
232: if test x$as_have_required = xno; then :
233: $as_echo "$0: This script requires a shell more modern than all"
234: $as_echo "$0: the shells that I found on your system."
235: if test x${ZSH_VERSION+set} = xset ; then
236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238: else
239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240: $0: including any error possibly output before this
241: $0: message. Then install a modern shell, or manually run
242: $0: the script under such a shell if you do have one."
243: fi
244: exit 1
245: fi
246: fi
247: fi
248: SHELL=${CONFIG_SHELL-/bin/sh}
249: export SHELL
250: # Unset more variables known to interfere with behavior of common tools.
251: CLICOLOR_FORCE= GREP_OPTIONS=
252: unset CLICOLOR_FORCE GREP_OPTIONS
253:
254: ## --------------------- ##
255: ## M4sh Shell Functions. ##
256: ## --------------------- ##
257: # as_fn_unset VAR
258: # ---------------
259: # Portably unset VAR.
260: as_fn_unset ()
261: {
262: { eval $1=; unset $1;}
263: }
264: as_unset=as_fn_unset
265:
266: # as_fn_set_status STATUS
267: # -----------------------
268: # Set $? to STATUS, without forking.
269: as_fn_set_status ()
270: {
271: return $1
272: } # as_fn_set_status
273:
274: # as_fn_exit STATUS
275: # -----------------
276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277: as_fn_exit ()
278: {
279: set +e
280: as_fn_set_status $1
281: exit $1
282: } # as_fn_exit
283:
284: # as_fn_mkdir_p
285: # -------------
286: # Create "$as_dir" as a directory, including parents if necessary.
287: as_fn_mkdir_p ()
288: {
289:
290: case $as_dir in #(
291: -*) as_dir=./$as_dir;;
292: esac
293: test -d "$as_dir" || eval $as_mkdir_p || {
294: as_dirs=
295: while :; do
296: case $as_dir in #(
297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298: *) as_qdir=$as_dir;;
299: esac
300: as_dirs="'$as_qdir' $as_dirs"
301: as_dir=`$as_dirname -- "$as_dir" ||
302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303: X"$as_dir" : 'X\(//\)[^/]' \| \
304: X"$as_dir" : 'X\(//\)$' \| \
305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306: $as_echo X"$as_dir" |
307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\/\)[^/].*/{
312: s//\1/
313: q
314: }
315: /^X\(\/\/\)$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\).*/{
320: s//\1/
321: q
322: }
323: s/.*/./; q'`
324: test -d "$as_dir" && break
325: done
326: test -z "$as_dirs" || eval "mkdir $as_dirs"
327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328:
329:
330: } # as_fn_mkdir_p
331: # as_fn_append VAR VALUE
332: # ----------------------
333: # Append the text in VALUE to the end of the definition contained in VAR. Take
334: # advantage of any shell optimizations that allow amortized linear growth over
335: # repeated appends, instead of the typical quadratic growth present in naive
336: # implementations.
337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338: eval 'as_fn_append ()
339: {
340: eval $1+=\$2
341: }'
342: else
343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
348:
349: # as_fn_arith ARG...
350: # ------------------
351: # Perform arithmetic evaluation on the ARGs, and store the result in the
352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
353: # must be portable across $(()) and expr.
354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355: eval 'as_fn_arith ()
356: {
357: as_val=$(( $* ))
358: }'
359: else
360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
365:
366:
367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371: # script with STATUS, using 1 if that was 0.
372: as_fn_error ()
373: {
374: as_status=$1; test $as_status -eq 0 && as_status=1
375: if test "$4"; then
376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378: fi
379: $as_echo "$as_me: error: $2" >&2
380: as_fn_exit $as_status
381: } # as_fn_error
382:
383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
386: else
387: as_expr=false
388: fi
389:
390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
392: else
393: as_basename=false
394: fi
395:
396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
398: else
399: as_dirname=false
400: fi
401:
402: as_me=`$as_basename -- "$0" ||
403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406: $as_echo X/"$0" |
407: sed '/^.*\/\([^/][^/]*\)\/*$/{
408: s//\1/
409: q
410: }
411: /^X\/\(\/\/\)$/{
412: s//\1/
413: q
414: }
415: /^X\/\(\/\).*/{
416: s//\1/
417: q
418: }
419: s/.*/./; q'`
420:
421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
427:
428:
429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
438: sed '
439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
443: N
444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446: t loop
447: s/-\n.*//
448: ' >$as_me.lineno &&
449: chmod +x "$as_me.lineno" ||
450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
456: # Exit status is that of the last command.
457: exit
458: }
459:
460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
468: esac;;
469: *)
470: ECHO_N='-n';;
471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
478: mkdir conf$$.dir 2>/dev/null
479: fi
480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
492: as_ln_s='cp -p'
493: fi
494: else
495: as_ln_s='cp -p'
496: fi
497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
499:
500: if mkdir -p . 2>/dev/null; then
501: as_mkdir_p='mkdir -p "$as_dir"'
502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
518: test -d "$1/.";
519: else
520: case $1 in #(
521: -*)set "./$1";;
522: esac;
523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536:
537: test -n "$DJDIR" || exec 7<&0 </dev/null
538: exec 6>&1
539:
540: # Name of the host.
541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542: # so uname gets run too.
543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544:
545: #
546: # Initializations.
547: #
548: ac_default_prefix=/usr/local
549: ac_clean_files=
550: ac_config_libobj_dir=.
551: LIBOBJS=
552: cross_compiling=no
553: subdirs=
554: MFLAGS=
555: MAKEFLAGS=
556:
557: # Identity of this package.
558: PACKAGE_NAME='rpl'
559: PACKAGE_TARNAME='rpl'
560: PACKAGE_VERSION='4.1.3'
561: PACKAGE_STRING='rpl 4.1.3'
562: PACKAGE_BUGREPORT=''
563: PACKAGE_URL=''
564:
565: enable_option_checking=no
566: ac_default_prefix=/usr/local
567: # Factoring default headers for most tests.
568: ac_includes_default="\
569: #include <stdio.h>
570: #ifdef HAVE_SYS_TYPES_H
571: # include <sys/types.h>
572: #endif
573: #ifdef HAVE_SYS_STAT_H
574: # include <sys/stat.h>
575: #endif
576: #ifdef STDC_HEADERS
577: # include <stdlib.h>
578: # include <stddef.h>
579: #else
580: # ifdef HAVE_STDLIB_H
581: # include <stdlib.h>
582: # endif
583: #endif
584: #ifdef HAVE_STRING_H
585: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586: # include <memory.h>
587: # endif
588: # include <string.h>
589: #endif
590: #ifdef HAVE_STRINGS_H
591: # include <strings.h>
592: #endif
593: #ifdef HAVE_INTTYPES_H
594: # include <inttypes.h>
595: #endif
596: #ifdef HAVE_STDINT_H
597: # include <stdint.h>
598: #endif
599: #ifdef HAVE_UNISTD_H
600: # include <unistd.h>
601: #endif"
602:
603: ac_subst_vars='am__EXEEXT_FALSE
604: am__EXEEXT_TRUE
605: LTLIBOBJS
606: LIBOBJS
607: LIBMOTIF
608: INCMOTIF
609: GIAC
610: PARI
611: COCOA
612: NTL
613: MPFR
614: GMP
615: MALLOC
616: EXT_SQL
617: DATE_FR
618: FINAL_ENCODING
619: SIGSEGV
620: BUILD_OPENMOTIF
621: OPENMOTIF
622: OPENSSL
623: SQLITE
624: ICONV
625: FILE
626: GNUPLOT
627: GPP
628: GSL
629: UNITS
630: READLINE
631: NCURSES
632: ELF
633: BSH_PATH
634: IPV6
635: SEMUN
636: IPCS_SYSV
637: SEMAPHORES_NOMMES
638: NESTED_FUNCTIONS
639: EXPORT_DYNAMIC
640: C_STANDARD
641: OS
642: HOST
643: GNUPLOT_COMPILATION
644: EGREP
645: GREP
646: libPgSQLlib
647: libPgSQLinc
648: POSTGRESQL_SUPPORT
649: libMySQLlib
650: libMySQLinc
651: MYSQL_SUPPORT
652: DATE
653: includeX
654: libX
655: MOTIF_SUPPORT
656: DEBUG
657: EXPERIMENTAL_CODE
658: VIM_SUPPORT
659: POSTSCRIPT_SUPPORT
660: FORCE_GNUPLOT_PATH
661: GNUPLOT_SUPPORT
662: VIM
663: GNUPLOT_P
664: GV
665: GS
666: DVIPS
667: LATEX
668: TEX
669: SED
670: RANLIB
671: LN_S
672: RUNPATH
673: PROFILAGE
674: subdirs
675: LIBRPLCAS
676: RPLCAS
677: ABI
678: X_EXTRA_LIBS
679: X_LIBS
680: X_PRE_LIBS
681: X_CFLAGS
682: CPP
683: XMKMF
684: ac_ct_FC
685: FCFLAGS
686: FC
687: ac_ct_F77
688: FFLAGS
689: F77
690: am__fastdepCXX_FALSE
691: am__fastdepCXX_TRUE
692: CXXDEPMODE
693: ac_ct_CXX
694: CXXFLAGS
695: CXX
696: am__fastdepCC_FALSE
697: am__fastdepCC_TRUE
698: CCDEPMODE
699: AMDEPBACKSLASH
700: AMDEP_FALSE
701: AMDEP_TRUE
702: am__quote
703: am__include
704: DEPDIR
705: OBJEXT
706: EXEEXT
707: ac_ct_CC
708: CPPFLAGS
709: LDFLAGS
710: CFLAGS
711: CC
712: am__untar
713: am__tar
714: AMTAR
715: am__leading_dot
716: SET_MAKE
717: AWK
718: mkdir_p
719: MKDIR_P
720: INSTALL_STRIP_PROGRAM
721: STRIP
722: install_sh
723: MAKEINFO
724: AUTOHEADER
725: AUTOMAKE
726: AUTOCONF
727: ACLOCAL
728: VERSION
729: PACKAGE
730: CYGPATH_W
731: am__isrc
732: INSTALL_DATA
733: INSTALL_SCRIPT
734: INSTALL_PROGRAM
735: target_os
736: target_vendor
737: target_cpu
738: target
739: host_os
740: host_vendor
741: host_cpu
742: host
743: build_os
744: build_vendor
745: build_cpu
746: build
747: target_alias
748: host_alias
749: build_alias
750: LIBS
751: ECHO_T
752: ECHO_N
753: ECHO_C
754: DEFS
755: mandir
756: localedir
757: libdir
758: psdir
759: pdfdir
760: dvidir
761: htmldir
762: infodir
763: docdir
764: oldincludedir
765: includedir
766: localstatedir
767: sharedstatedir
768: sysconfdir
769: datadir
770: datarootdir
771: libexecdir
772: sbindir
773: bindir
774: program_transform_name
775: prefix
776: exec_prefix
777: PACKAGE_URL
778: PACKAGE_BUGREPORT
779: PACKAGE_STRING
780: PACKAGE_VERSION
781: PACKAGE_TARNAME
782: PACKAGE_NAME
783: PATH_SEPARATOR
784: SHELL'
785: ac_subst_files=''
786: ac_user_opts='
787: enable_option_checking
788: enable_dependency_tracking
789: with_x
790: with_32bits_abi
791: with_64bits_abi
792: with_rplcas
793: enable_optimization
794: enable_sysv_semaphores
795: enable_full_static
796: enable_final_encoding
797: enable_tex
798: enable_vim
799: enable_embedded_gnuplot
800: enable_gnuplot
801: enable_motif
802: enable_experimental
803: enable_debug
804: enable_profile
805: enable_final_run_path
806: with_mysql
807: with_postgresql
808: with_bourne_shell
809: with_openssl_arch
810: '
811: ac_precious_vars='build_alias
812: host_alias
813: target_alias
814: CC
815: CFLAGS
816: LDFLAGS
817: LIBS
818: CPPFLAGS
819: CXX
820: CXXFLAGS
821: CCC
822: F77
823: FFLAGS
824: FC
825: FCFLAGS
826: XMKMF
827: CPP'
828: ac_subdirs_all='tools/$LIBXPM
829: tools/$OPENMOTIF
830: tools/$GNUPLOT
831: tools/$NCURSES
832: tools/$READLINE
833: tools/$GSL
834: tools/$GPP
835: tools/$FILE
836: tools/$ICONV
837: tools/$SQLITE
838: tools/$UNITS
839: tools/$SIGSEGV'
840:
841: # Initialize some variables set by options.
842: ac_init_help=
843: ac_init_version=false
844: ac_unrecognized_opts=
845: ac_unrecognized_sep=
846: # The variables have the same names as the options, with
847: # dashes changed to underlines.
848: cache_file=/dev/null
849: exec_prefix=NONE
850: no_create=
851: no_recursion=
852: prefix=NONE
853: program_prefix=NONE
854: program_suffix=NONE
855: program_transform_name=s,x,x,
856: silent=
857: site=
858: srcdir=
859: verbose=
860: x_includes=NONE
861: x_libraries=NONE
862:
863: # Installation directory options.
864: # These are left unexpanded so users can "make install exec_prefix=/foo"
865: # and all the variables that are supposed to be based on exec_prefix
866: # by default will actually change.
867: # Use braces instead of parens because sh, perl, etc. also accept them.
868: # (The list follows the same order as the GNU Coding Standards.)
869: bindir='${exec_prefix}/bin'
870: sbindir='${exec_prefix}/sbin'
871: libexecdir='${exec_prefix}/libexec'
872: datarootdir='${prefix}/share'
873: datadir='${datarootdir}'
874: sysconfdir='${prefix}/etc'
875: sharedstatedir='${prefix}/com'
876: localstatedir='${prefix}/var'
877: includedir='${prefix}/include'
878: oldincludedir='/usr/include'
879: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880: infodir='${datarootdir}/info'
881: htmldir='${docdir}'
882: dvidir='${docdir}'
883: pdfdir='${docdir}'
884: psdir='${docdir}'
885: libdir='${exec_prefix}/lib'
886: localedir='${datarootdir}/locale'
887: mandir='${datarootdir}/man'
888:
889: ac_prev=
890: ac_dashdash=
891: for ac_option
892: do
893: # If the previous option needs an argument, assign it.
894: if test -n "$ac_prev"; then
895: eval $ac_prev=\$ac_option
896: ac_prev=
897: continue
898: fi
899:
900: case $ac_option in
901: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902: *=) ac_optarg= ;;
903: *) ac_optarg=yes ;;
904: esac
905:
906: # Accept the important Cygnus configure options, so we can diagnose typos.
907:
908: case $ac_dashdash$ac_option in
909: --)
910: ac_dashdash=yes ;;
911:
912: -bindir | --bindir | --bindi | --bind | --bin | --bi)
913: ac_prev=bindir ;;
914: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915: bindir=$ac_optarg ;;
916:
917: -build | --build | --buil | --bui | --bu)
918: ac_prev=build_alias ;;
919: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920: build_alias=$ac_optarg ;;
921:
922: -cache-file | --cache-file | --cache-fil | --cache-fi \
923: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924: ac_prev=cache_file ;;
925: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927: cache_file=$ac_optarg ;;
928:
929: --config-cache | -C)
930: cache_file=config.cache ;;
931:
932: -datadir | --datadir | --datadi | --datad)
933: ac_prev=datadir ;;
934: -datadir=* | --datadir=* | --datadi=* | --datad=*)
935: datadir=$ac_optarg ;;
936:
937: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938: | --dataroo | --dataro | --datar)
939: ac_prev=datarootdir ;;
940: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942: datarootdir=$ac_optarg ;;
943:
944: -disable-* | --disable-*)
945: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946: # Reject names that are not valid shell variable names.
947: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948: as_fn_error $? "invalid feature name: $ac_useropt"
949: ac_useropt_orig=$ac_useropt
950: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951: case $ac_user_opts in
952: *"
953: "enable_$ac_useropt"
954: "*) ;;
955: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956: ac_unrecognized_sep=', ';;
957: esac
958: eval enable_$ac_useropt=no ;;
959:
960: -docdir | --docdir | --docdi | --doc | --do)
961: ac_prev=docdir ;;
962: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963: docdir=$ac_optarg ;;
964:
965: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966: ac_prev=dvidir ;;
967: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968: dvidir=$ac_optarg ;;
969:
970: -enable-* | --enable-*)
971: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972: # Reject names that are not valid shell variable names.
973: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974: as_fn_error $? "invalid feature name: $ac_useropt"
975: ac_useropt_orig=$ac_useropt
976: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977: case $ac_user_opts in
978: *"
979: "enable_$ac_useropt"
980: "*) ;;
981: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982: ac_unrecognized_sep=', ';;
983: esac
984: eval enable_$ac_useropt=\$ac_optarg ;;
985:
986: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988: | --exec | --exe | --ex)
989: ac_prev=exec_prefix ;;
990: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992: | --exec=* | --exe=* | --ex=*)
993: exec_prefix=$ac_optarg ;;
994:
995: -gas | --gas | --ga | --g)
996: # Obsolete; use --with-gas.
997: with_gas=yes ;;
998:
999: -help | --help | --hel | --he | -h)
1000: ac_init_help=long ;;
1001: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002: ac_init_help=recursive ;;
1003: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004: ac_init_help=short ;;
1005:
1006: -host | --host | --hos | --ho)
1007: ac_prev=host_alias ;;
1008: -host=* | --host=* | --hos=* | --ho=*)
1009: host_alias=$ac_optarg ;;
1010:
1011: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012: ac_prev=htmldir ;;
1013: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014: | --ht=*)
1015: htmldir=$ac_optarg ;;
1016:
1017: -includedir | --includedir | --includedi | --included | --include \
1018: | --includ | --inclu | --incl | --inc)
1019: ac_prev=includedir ;;
1020: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021: | --includ=* | --inclu=* | --incl=* | --inc=*)
1022: includedir=$ac_optarg ;;
1023:
1024: -infodir | --infodir | --infodi | --infod | --info | --inf)
1025: ac_prev=infodir ;;
1026: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027: infodir=$ac_optarg ;;
1028:
1029: -libdir | --libdir | --libdi | --libd)
1030: ac_prev=libdir ;;
1031: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032: libdir=$ac_optarg ;;
1033:
1034: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035: | --libexe | --libex | --libe)
1036: ac_prev=libexecdir ;;
1037: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038: | --libexe=* | --libex=* | --libe=*)
1039: libexecdir=$ac_optarg ;;
1040:
1041: -localedir | --localedir | --localedi | --localed | --locale)
1042: ac_prev=localedir ;;
1043: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044: localedir=$ac_optarg ;;
1045:
1046: -localstatedir | --localstatedir | --localstatedi | --localstated \
1047: | --localstate | --localstat | --localsta | --localst | --locals)
1048: ac_prev=localstatedir ;;
1049: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051: localstatedir=$ac_optarg ;;
1052:
1053: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054: ac_prev=mandir ;;
1055: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056: mandir=$ac_optarg ;;
1057:
1058: -nfp | --nfp | --nf)
1059: # Obsolete; use --without-fp.
1060: with_fp=no ;;
1061:
1062: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063: | --no-cr | --no-c | -n)
1064: no_create=yes ;;
1065:
1066: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068: no_recursion=yes ;;
1069:
1070: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072: | --oldin | --oldi | --old | --ol | --o)
1073: ac_prev=oldincludedir ;;
1074: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077: oldincludedir=$ac_optarg ;;
1078:
1079: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080: ac_prev=prefix ;;
1081: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082: prefix=$ac_optarg ;;
1083:
1084: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085: | --program-pre | --program-pr | --program-p)
1086: ac_prev=program_prefix ;;
1087: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089: program_prefix=$ac_optarg ;;
1090:
1091: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092: | --program-suf | --program-su | --program-s)
1093: ac_prev=program_suffix ;;
1094: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096: program_suffix=$ac_optarg ;;
1097:
1098: -program-transform-name | --program-transform-name \
1099: | --program-transform-nam | --program-transform-na \
1100: | --program-transform-n | --program-transform- \
1101: | --program-transform | --program-transfor \
1102: | --program-transfo | --program-transf \
1103: | --program-trans | --program-tran \
1104: | --progr-tra | --program-tr | --program-t)
1105: ac_prev=program_transform_name ;;
1106: -program-transform-name=* | --program-transform-name=* \
1107: | --program-transform-nam=* | --program-transform-na=* \
1108: | --program-transform-n=* | --program-transform-=* \
1109: | --program-transform=* | --program-transfor=* \
1110: | --program-transfo=* | --program-transf=* \
1111: | --program-trans=* | --program-tran=* \
1112: | --progr-tra=* | --program-tr=* | --program-t=*)
1113: program_transform_name=$ac_optarg ;;
1114:
1115: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116: ac_prev=pdfdir ;;
1117: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118: pdfdir=$ac_optarg ;;
1119:
1120: -psdir | --psdir | --psdi | --psd | --ps)
1121: ac_prev=psdir ;;
1122: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123: psdir=$ac_optarg ;;
1124:
1125: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126: | -silent | --silent | --silen | --sile | --sil)
1127: silent=yes ;;
1128:
1129: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130: ac_prev=sbindir ;;
1131: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132: | --sbi=* | --sb=*)
1133: sbindir=$ac_optarg ;;
1134:
1135: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137: | --sharedst | --shareds | --shared | --share | --shar \
1138: | --sha | --sh)
1139: ac_prev=sharedstatedir ;;
1140: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143: | --sha=* | --sh=*)
1144: sharedstatedir=$ac_optarg ;;
1145:
1146: -site | --site | --sit)
1147: ac_prev=site ;;
1148: -site=* | --site=* | --sit=*)
1149: site=$ac_optarg ;;
1150:
1151: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152: ac_prev=srcdir ;;
1153: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154: srcdir=$ac_optarg ;;
1155:
1156: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157: | --syscon | --sysco | --sysc | --sys | --sy)
1158: ac_prev=sysconfdir ;;
1159: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161: sysconfdir=$ac_optarg ;;
1162:
1163: -target | --target | --targe | --targ | --tar | --ta | --t)
1164: ac_prev=target_alias ;;
1165: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166: target_alias=$ac_optarg ;;
1167:
1168: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169: verbose=yes ;;
1170:
1171: -version | --version | --versio | --versi | --vers | -V)
1172: ac_init_version=: ;;
1173:
1174: -with-* | --with-*)
1175: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176: # Reject names that are not valid shell variable names.
1177: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178: as_fn_error $? "invalid package name: $ac_useropt"
1179: ac_useropt_orig=$ac_useropt
1180: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181: case $ac_user_opts in
1182: *"
1183: "with_$ac_useropt"
1184: "*) ;;
1185: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186: ac_unrecognized_sep=', ';;
1187: esac
1188: eval with_$ac_useropt=\$ac_optarg ;;
1189:
1190: -without-* | --without-*)
1191: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192: # Reject names that are not valid shell variable names.
1193: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194: as_fn_error $? "invalid package name: $ac_useropt"
1195: ac_useropt_orig=$ac_useropt
1196: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197: case $ac_user_opts in
1198: *"
1199: "with_$ac_useropt"
1200: "*) ;;
1201: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202: ac_unrecognized_sep=', ';;
1203: esac
1204: eval with_$ac_useropt=no ;;
1205:
1206: --x)
1207: # Obsolete; use --with-x.
1208: with_x=yes ;;
1209:
1210: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211: | --x-incl | --x-inc | --x-in | --x-i)
1212: ac_prev=x_includes ;;
1213: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215: x_includes=$ac_optarg ;;
1216:
1217: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219: ac_prev=x_libraries ;;
1220: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222: x_libraries=$ac_optarg ;;
1223:
1224: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225: Try \`$0 --help' for more information"
1226: ;;
1227:
1228: *=*)
1229: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230: # Reject names that are not valid shell variable names.
1231: case $ac_envvar in #(
1232: '' | [0-9]* | *[!_$as_cr_alnum]* )
1233: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234: esac
1235: eval $ac_envvar=\$ac_optarg
1236: export $ac_envvar ;;
1237:
1238: *)
1239: # FIXME: should be removed in autoconf 3.0.
1240: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244: ;;
1245:
1246: esac
1247: done
1248:
1249: if test -n "$ac_prev"; then
1250: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251: as_fn_error $? "missing argument to $ac_option"
1252: fi
1253:
1254: if test -n "$ac_unrecognized_opts"; then
1255: case $enable_option_checking in
1256: no) ;;
1257: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259: esac
1260: fi
1261:
1262: # Check all directory arguments for consistency.
1263: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264: datadir sysconfdir sharedstatedir localstatedir includedir \
1265: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266: libdir localedir mandir
1267: do
1268: eval ac_val=\$$ac_var
1269: # Remove trailing slashes.
1270: case $ac_val in
1271: */ )
1272: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273: eval $ac_var=\$ac_val;;
1274: esac
1275: # Be sure to have absolute directory names.
1276: case $ac_val in
1277: [\\/$]* | ?:[\\/]* ) continue;;
1278: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279: esac
1280: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281: done
1282:
1283: # There might be people who depend on the old broken behavior: `$host'
1284: # used to hold the argument of --host etc.
1285: # FIXME: To remove some day.
1286: build=$build_alias
1287: host=$host_alias
1288: target=$target_alias
1289:
1290: # FIXME: To remove some day.
1291: if test "x$host_alias" != x; then
1292: if test "x$build_alias" = x; then
1293: cross_compiling=maybe
1294: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1295: If a cross compiler is detected then cross compile mode will be used" >&2
1296: elif test "x$build_alias" != "x$host_alias"; then
1297: cross_compiling=yes
1298: fi
1299: fi
1300:
1301: ac_tool_prefix=
1302: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303:
1304: test "$silent" = yes && exec 6>/dev/null
1305:
1306:
1307: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308: ac_ls_di=`ls -di .` &&
1309: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310: as_fn_error $? "working directory cannot be determined"
1311: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312: as_fn_error $? "pwd does not report name of working directory"
1313:
1314:
1315: # Find the source files, if location was not specified.
1316: if test -z "$srcdir"; then
1317: ac_srcdir_defaulted=yes
1318: # Try the directory containing this script, then the parent directory.
1319: ac_confdir=`$as_dirname -- "$as_myself" ||
1320: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321: X"$as_myself" : 'X\(//\)[^/]' \| \
1322: X"$as_myself" : 'X\(//\)$' \| \
1323: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324: $as_echo X"$as_myself" |
1325: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326: s//\1/
1327: q
1328: }
1329: /^X\(\/\/\)[^/].*/{
1330: s//\1/
1331: q
1332: }
1333: /^X\(\/\/\)$/{
1334: s//\1/
1335: q
1336: }
1337: /^X\(\/\).*/{
1338: s//\1/
1339: q
1340: }
1341: s/.*/./; q'`
1342: srcdir=$ac_confdir
1343: if test ! -r "$srcdir/$ac_unique_file"; then
1344: srcdir=..
1345: fi
1346: else
1347: ac_srcdir_defaulted=no
1348: fi
1349: if test ! -r "$srcdir/$ac_unique_file"; then
1350: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352: fi
1353: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354: ac_abs_confdir=`(
1355: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356: pwd)`
1357: # When building in place, set srcdir=.
1358: if test "$ac_abs_confdir" = "$ac_pwd"; then
1359: srcdir=.
1360: fi
1361: # Remove unnecessary trailing slashes from srcdir.
1362: # Double slashes in file names in object file debugging info
1363: # mess up M-x gdb in Emacs.
1364: case $srcdir in
1365: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366: esac
1367: for ac_var in $ac_precious_vars; do
1368: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369: eval ac_env_${ac_var}_value=\$${ac_var}
1370: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372: done
1373:
1374: #
1375: # Report the --help message.
1376: #
1377: if test "$ac_init_help" = "long"; then
1378: # Omit some internal or obsolete options to make the list less imposing.
1379: # This message is too long to be a string in the A/UX 3.1 sh.
1380: cat <<_ACEOF
1381: \`configure' configures rpl 4.1.3 to adapt to many kinds of systems.
1382:
1383: Usage: $0 [OPTION]... [VAR=VALUE]...
1384:
1385: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386: VAR=VALUE. See below for descriptions of some of the useful variables.
1387:
1388: Defaults for the options are specified in brackets.
1389:
1390: Configuration:
1391: -h, --help display this help and exit
1392: --help=short display options specific to this package
1393: --help=recursive display the short help of all the included packages
1394: -V, --version display version information and exit
1395: -q, --quiet, --silent do not print \`checking ...' messages
1396: --cache-file=FILE cache test results in FILE [disabled]
1397: -C, --config-cache alias for \`--cache-file=config.cache'
1398: -n, --no-create do not create output files
1399: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400:
1401: Installation directories:
1402: --prefix=PREFIX install architecture-independent files in PREFIX
1403: [$ac_default_prefix]
1404: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405: [PREFIX]
1406:
1407: By default, \`make install' will install all the files in
1408: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410: for instance \`--prefix=\$HOME'.
1411:
1412: For better control, use the options below.
1413:
1414: Fine tuning of the installation directories:
1415: --bindir=DIR user executables [EPREFIX/bin]
1416: --sbindir=DIR system admin executables [EPREFIX/sbin]
1417: --libexecdir=DIR program executables [EPREFIX/libexec]
1418: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421: --libdir=DIR object code libraries [EPREFIX/lib]
1422: --includedir=DIR C header files [PREFIX/include]
1423: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426: --infodir=DIR info documentation [DATAROOTDIR/info]
1427: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428: --mandir=DIR man documentation [DATAROOTDIR/man]
1429: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1430: --htmldir=DIR html documentation [DOCDIR]
1431: --dvidir=DIR dvi documentation [DOCDIR]
1432: --pdfdir=DIR pdf documentation [DOCDIR]
1433: --psdir=DIR ps documentation [DOCDIR]
1434: _ACEOF
1435:
1436: cat <<\_ACEOF
1437:
1438: Program names:
1439: --program-prefix=PREFIX prepend PREFIX to installed program names
1440: --program-suffix=SUFFIX append SUFFIX to installed program names
1441: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442:
1443: X features:
1444: --x-includes=DIR X include files are in DIR
1445: --x-libraries=DIR X library files are in DIR
1446:
1447: System types:
1448: --build=BUILD configure for building on BUILD [guessed]
1449: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450: --target=TARGET configure for building compilers for TARGET [HOST]
1451: _ACEOF
1452: fi
1453:
1454: if test -n "$ac_init_help"; then
1455: case $ac_init_help in
1456: short | recursive ) echo "Configuration of rpl 4.1.3:";;
1457: esac
1458: cat <<\_ACEOF
1459:
1460: Optional Features:
1461: --disable-option-checking ignore unrecognized --enable/--with options
1462: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464: --disable-dependency-tracking speeds up one-time build
1465: --enable-dependency-tracking do not reject slow dependency extractors
1466: --enable-optimization set compiler flags [default=environment variables -O3]
1467: --enable-sysv-ipcs use SystemV IPC functions [default=guessed]
1468: --enable-full-static build static RPL/2 engine [default=shared]
1469: --enable-final-encoding force final encoding [default=guessed]
1470: --enable-tex provide the TeX support [default=guessed]
1471: --enable-vim provide the vim support [default=guessed]
1472: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1473: --enable-gnuplot provide the GnuPlot support [default=guessed]
1474: --enable-motif provide the Motif support [default=guessed]
1475: --enable-experimental enable experimental code [default=no]
1476: --enable-debug enable debug code [default=no]
1477: --enable-profile enable profile code [default=no]
1478: --enable-final-run-path=PATH enable another final run path than PREFIX
1479:
1480: Optional Packages:
1481: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483: --with-x use the X Window System
1484: --with-32bits-abi force 32bits ABI (multilib)
1485: --with-64bits-abi force 64bits ABI (multilib)
1486: --with-rplcas compile rplcas (default=no)
1487: --with-mysql=PATH specify directory for installed mysql
1488: --with-postgresql=PATH specify directory for installed postgresql
1489: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1490: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1491:
1492: Some influential environment variables:
1493: CC C compiler command
1494: CFLAGS C compiler flags
1495: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496: nonstandard directory <lib dir>
1497: LIBS libraries to pass to the linker, e.g. -l<library>
1498: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499: you have headers in a nonstandard directory <include dir>
1500: CXX C++ compiler command
1501: CXXFLAGS C++ compiler flags
1502: F77 Fortran 77 compiler command
1503: FFLAGS Fortran 77 compiler flags
1504: FC Fortran compiler command
1505: FCFLAGS Fortran compiler flags
1506: XMKMF Path to xmkmf, Makefile generator for X Window System
1507: CPP C preprocessor
1508:
1509: Use these variables to override the choices made by `configure' or to help
1510: it to find libraries and programs with nonstandard names/locations.
1511:
1512: Report bugs to the package provider.
1513: _ACEOF
1514: ac_status=$?
1515: fi
1516:
1517: if test "$ac_init_help" = "recursive"; then
1518: # If there are subdirs, report their specific --help.
1519: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520: test -d "$ac_dir" ||
1521: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522: continue
1523: ac_builddir=.
1524:
1525: case "$ac_dir" in
1526: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527: *)
1528: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529: # A ".." for each directory in $ac_dir_suffix.
1530: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531: case $ac_top_builddir_sub in
1532: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534: esac ;;
1535: esac
1536: ac_abs_top_builddir=$ac_pwd
1537: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538: # for backward compatibility:
1539: ac_top_builddir=$ac_top_build_prefix
1540:
1541: case $srcdir in
1542: .) # We are building in place.
1543: ac_srcdir=.
1544: ac_top_srcdir=$ac_top_builddir_sub
1545: ac_abs_top_srcdir=$ac_pwd ;;
1546: [\\/]* | ?:[\\/]* ) # Absolute name.
1547: ac_srcdir=$srcdir$ac_dir_suffix;
1548: ac_top_srcdir=$srcdir
1549: ac_abs_top_srcdir=$srcdir ;;
1550: *) # Relative name.
1551: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552: ac_top_srcdir=$ac_top_build_prefix$srcdir
1553: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554: esac
1555: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556:
1557: cd "$ac_dir" || { ac_status=$?; continue; }
1558: # Check for guested configure.
1559: if test -f "$ac_srcdir/configure.gnu"; then
1560: echo &&
1561: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562: elif test -f "$ac_srcdir/configure"; then
1563: echo &&
1564: $SHELL "$ac_srcdir/configure" --help=recursive
1565: else
1566: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567: fi || ac_status=$?
1568: cd "$ac_pwd" || { ac_status=$?; break; }
1569: done
1570: fi
1571:
1572: test -n "$ac_init_help" && exit $ac_status
1573: if $ac_init_version; then
1574: cat <<\_ACEOF
1575: rpl configure 4.1.3
1576: generated by GNU Autoconf 2.68
1577:
1578: Copyright (C) 2010 Free Software Foundation, Inc.
1579: This configure script is free software; the Free Software Foundation
1580: gives unlimited permission to copy, distribute and modify it.
1581: _ACEOF
1582: exit
1583: fi
1584:
1585: ## ------------------------ ##
1586: ## Autoconf initialization. ##
1587: ## ------------------------ ##
1588:
1589: # ac_fn_c_try_compile LINENO
1590: # --------------------------
1591: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592: ac_fn_c_try_compile ()
1593: {
1594: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595: rm -f conftest.$ac_objext
1596: if { { ac_try="$ac_compile"
1597: case "(($ac_try" in
1598: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599: *) ac_try_echo=$ac_try;;
1600: esac
1601: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602: $as_echo "$ac_try_echo"; } >&5
1603: (eval "$ac_compile") 2>conftest.err
1604: ac_status=$?
1605: if test -s conftest.err; then
1606: grep -v '^ *+' conftest.err >conftest.er1
1607: cat conftest.er1 >&5
1608: mv -f conftest.er1 conftest.err
1609: fi
1610: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611: test $ac_status = 0; } && {
1612: test -z "$ac_c_werror_flag" ||
1613: test ! -s conftest.err
1614: } && test -s conftest.$ac_objext; then :
1615: ac_retval=0
1616: else
1617: $as_echo "$as_me: failed program was:" >&5
1618: sed 's/^/| /' conftest.$ac_ext >&5
1619:
1620: ac_retval=1
1621: fi
1622: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623: as_fn_set_status $ac_retval
1624:
1625: } # ac_fn_c_try_compile
1626:
1627: # ac_fn_cxx_try_compile LINENO
1628: # ----------------------------
1629: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630: ac_fn_cxx_try_compile ()
1631: {
1632: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633: rm -f conftest.$ac_objext
1634: if { { ac_try="$ac_compile"
1635: case "(($ac_try" in
1636: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637: *) ac_try_echo=$ac_try;;
1638: esac
1639: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640: $as_echo "$ac_try_echo"; } >&5
1641: (eval "$ac_compile") 2>conftest.err
1642: ac_status=$?
1643: if test -s conftest.err; then
1644: grep -v '^ *+' conftest.err >conftest.er1
1645: cat conftest.er1 >&5
1646: mv -f conftest.er1 conftest.err
1647: fi
1648: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649: test $ac_status = 0; } && {
1650: test -z "$ac_cxx_werror_flag" ||
1651: test ! -s conftest.err
1652: } && test -s conftest.$ac_objext; then :
1653: ac_retval=0
1654: else
1655: $as_echo "$as_me: failed program was:" >&5
1656: sed 's/^/| /' conftest.$ac_ext >&5
1657:
1658: ac_retval=1
1659: fi
1660: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661: as_fn_set_status $ac_retval
1662:
1663: } # ac_fn_cxx_try_compile
1664:
1665: # ac_fn_f77_try_compile LINENO
1666: # ----------------------------
1667: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668: ac_fn_f77_try_compile ()
1669: {
1670: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671: rm -f conftest.$ac_objext
1672: if { { ac_try="$ac_compile"
1673: case "(($ac_try" in
1674: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675: *) ac_try_echo=$ac_try;;
1676: esac
1677: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678: $as_echo "$ac_try_echo"; } >&5
1679: (eval "$ac_compile") 2>conftest.err
1680: ac_status=$?
1681: if test -s conftest.err; then
1682: grep -v '^ *+' conftest.err >conftest.er1
1683: cat conftest.er1 >&5
1684: mv -f conftest.er1 conftest.err
1685: fi
1686: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687: test $ac_status = 0; } && {
1688: test -z "$ac_f77_werror_flag" ||
1689: test ! -s conftest.err
1690: } && test -s conftest.$ac_objext; then :
1691: ac_retval=0
1692: else
1693: $as_echo "$as_me: failed program was:" >&5
1694: sed 's/^/| /' conftest.$ac_ext >&5
1695:
1696: ac_retval=1
1697: fi
1698: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699: as_fn_set_status $ac_retval
1700:
1701: } # ac_fn_f77_try_compile
1702:
1703: # ac_fn_fc_try_compile LINENO
1704: # ---------------------------
1705: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706: ac_fn_fc_try_compile ()
1707: {
1708: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709: rm -f conftest.$ac_objext
1710: if { { ac_try="$ac_compile"
1711: case "(($ac_try" in
1712: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713: *) ac_try_echo=$ac_try;;
1714: esac
1715: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716: $as_echo "$ac_try_echo"; } >&5
1717: (eval "$ac_compile") 2>conftest.err
1718: ac_status=$?
1719: if test -s conftest.err; then
1720: grep -v '^ *+' conftest.err >conftest.er1
1721: cat conftest.er1 >&5
1722: mv -f conftest.er1 conftest.err
1723: fi
1724: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725: test $ac_status = 0; } && {
1726: test -z "$ac_fc_werror_flag" ||
1727: test ! -s conftest.err
1728: } && test -s conftest.$ac_objext; then :
1729: ac_retval=0
1730: else
1731: $as_echo "$as_me: failed program was:" >&5
1732: sed 's/^/| /' conftest.$ac_ext >&5
1733:
1734: ac_retval=1
1735: fi
1736: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737: as_fn_set_status $ac_retval
1738:
1739: } # ac_fn_fc_try_compile
1740:
1741: # ac_fn_c_try_cpp LINENO
1742: # ----------------------
1743: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744: ac_fn_c_try_cpp ()
1745: {
1746: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747: if { { ac_try="$ac_cpp conftest.$ac_ext"
1748: case "(($ac_try" in
1749: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750: *) ac_try_echo=$ac_try;;
1751: esac
1752: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753: $as_echo "$ac_try_echo"; } >&5
1754: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755: ac_status=$?
1756: if test -s conftest.err; then
1757: grep -v '^ *+' conftest.err >conftest.er1
1758: cat conftest.er1 >&5
1759: mv -f conftest.er1 conftest.err
1760: fi
1761: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762: test $ac_status = 0; } > conftest.i && {
1763: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764: test ! -s conftest.err
1765: }; then :
1766: ac_retval=0
1767: else
1768: $as_echo "$as_me: failed program was:" >&5
1769: sed 's/^/| /' conftest.$ac_ext >&5
1770:
1771: ac_retval=1
1772: fi
1773: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774: as_fn_set_status $ac_retval
1775:
1776: } # ac_fn_c_try_cpp
1777:
1778: # ac_fn_c_try_link LINENO
1779: # -----------------------
1780: # Try to link conftest.$ac_ext, and return whether this succeeded.
1781: ac_fn_c_try_link ()
1782: {
1783: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784: rm -f conftest.$ac_objext conftest$ac_exeext
1785: if { { ac_try="$ac_link"
1786: case "(($ac_try" in
1787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788: *) ac_try_echo=$ac_try;;
1789: esac
1790: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791: $as_echo "$ac_try_echo"; } >&5
1792: (eval "$ac_link") 2>conftest.err
1793: ac_status=$?
1794: if test -s conftest.err; then
1795: grep -v '^ *+' conftest.err >conftest.er1
1796: cat conftest.er1 >&5
1797: mv -f conftest.er1 conftest.err
1798: fi
1799: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800: test $ac_status = 0; } && {
1801: test -z "$ac_c_werror_flag" ||
1802: test ! -s conftest.err
1803: } && test -s conftest$ac_exeext && {
1804: test "$cross_compiling" = yes ||
1805: $as_test_x conftest$ac_exeext
1806: }; then :
1807: ac_retval=0
1808: else
1809: $as_echo "$as_me: failed program was:" >&5
1810: sed 's/^/| /' conftest.$ac_ext >&5
1811:
1812: ac_retval=1
1813: fi
1814: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816: # interfere with the next link command; also delete a directory that is
1817: # left behind by Apple's compiler. We do this before executing the actions.
1818: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820: as_fn_set_status $ac_retval
1821:
1822: } # ac_fn_c_try_link
1823:
1824: # ac_fn_c_check_func LINENO FUNC VAR
1825: # ----------------------------------
1826: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827: ac_fn_c_check_func ()
1828: {
1829: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831: $as_echo_n "checking for $2... " >&6; }
1832: if eval \${$3+:} false; then :
1833: $as_echo_n "(cached) " >&6
1834: else
1835: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836: /* end confdefs.h. */
1837: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839: #define $2 innocuous_$2
1840:
1841: /* System header to define __stub macros and hopefully few prototypes,
1842: which can conflict with char $2 (); below.
1843: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844: <limits.h> exists even on freestanding compilers. */
1845:
1846: #ifdef __STDC__
1847: # include <limits.h>
1848: #else
1849: # include <assert.h>
1850: #endif
1851:
1852: #undef $2
1853:
1854: /* Override any GCC internal prototype to avoid an error.
1855: Use char because int might match the return type of a GCC
1856: builtin and then its argument prototype would still apply. */
1857: #ifdef __cplusplus
1858: extern "C"
1859: #endif
1860: char $2 ();
1861: /* The GNU C library defines this for functions which it implements
1862: to always fail with ENOSYS. Some functions are actually named
1863: something starting with __ and the normal name is an alias. */
1864: #if defined __stub_$2 || defined __stub___$2
1865: choke me
1866: #endif
1867:
1868: int
1869: main ()
1870: {
1871: return $2 ();
1872: ;
1873: return 0;
1874: }
1875: _ACEOF
1876: if ac_fn_c_try_link "$LINENO"; then :
1877: eval "$3=yes"
1878: else
1879: eval "$3=no"
1880: fi
1881: rm -f core conftest.err conftest.$ac_objext \
1882: conftest$ac_exeext conftest.$ac_ext
1883: fi
1884: eval ac_res=\$$3
1885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886: $as_echo "$ac_res" >&6; }
1887: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888:
1889: } # ac_fn_c_check_func
1890:
1891: # ac_fn_c_try_run LINENO
1892: # ----------------------
1893: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1894: # that executables *can* be run.
1895: ac_fn_c_try_run ()
1896: {
1897: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898: if { { ac_try="$ac_link"
1899: case "(($ac_try" in
1900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901: *) ac_try_echo=$ac_try;;
1902: esac
1903: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904: $as_echo "$ac_try_echo"; } >&5
1905: (eval "$ac_link") 2>&5
1906: ac_status=$?
1907: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909: { { case "(($ac_try" in
1910: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911: *) ac_try_echo=$ac_try;;
1912: esac
1913: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914: $as_echo "$ac_try_echo"; } >&5
1915: (eval "$ac_try") 2>&5
1916: ac_status=$?
1917: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918: test $ac_status = 0; }; }; then :
1919: ac_retval=0
1920: else
1921: $as_echo "$as_me: program exited with status $ac_status" >&5
1922: $as_echo "$as_me: failed program was:" >&5
1923: sed 's/^/| /' conftest.$ac_ext >&5
1924:
1925: ac_retval=$ac_status
1926: fi
1927: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929: as_fn_set_status $ac_retval
1930:
1931: } # ac_fn_c_try_run
1932:
1933: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934: # -------------------------------------------
1935: # Tests whether TYPE exists after having included INCLUDES, setting cache
1936: # variable VAR accordingly.
1937: ac_fn_c_check_type ()
1938: {
1939: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941: $as_echo_n "checking for $2... " >&6; }
1942: if eval \${$3+:} false; then :
1943: $as_echo_n "(cached) " >&6
1944: else
1945: eval "$3=no"
1946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947: /* end confdefs.h. */
1948: $4
1949: int
1950: main ()
1951: {
1952: if (sizeof ($2))
1953: return 0;
1954: ;
1955: return 0;
1956: }
1957: _ACEOF
1958: if ac_fn_c_try_compile "$LINENO"; then :
1959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960: /* end confdefs.h. */
1961: $4
1962: int
1963: main ()
1964: {
1965: if (sizeof (($2)))
1966: return 0;
1967: ;
1968: return 0;
1969: }
1970: _ACEOF
1971: if ac_fn_c_try_compile "$LINENO"; then :
1972:
1973: else
1974: eval "$3=yes"
1975: fi
1976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977: fi
1978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979: fi
1980: eval ac_res=\$$3
1981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982: $as_echo "$ac_res" >&6; }
1983: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984:
1985: } # ac_fn_c_check_type
1986:
1987: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988: # --------------------------------------------
1989: # Tries to find the compile-time value of EXPR in a program that includes
1990: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1991: # computed
1992: ac_fn_c_compute_int ()
1993: {
1994: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995: if test "$cross_compiling" = yes; then
1996: # Depending upon the size, compute the lo and hi bounds.
1997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998: /* end confdefs.h. */
1999: $4
2000: int
2001: main ()
2002: {
2003: static int test_array [1 - 2 * !(($2) >= 0)];
2004: test_array [0] = 0
2005:
2006: ;
2007: return 0;
2008: }
2009: _ACEOF
2010: if ac_fn_c_try_compile "$LINENO"; then :
2011: ac_lo=0 ac_mid=0
2012: while :; do
2013: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014: /* end confdefs.h. */
2015: $4
2016: int
2017: main ()
2018: {
2019: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020: test_array [0] = 0
2021:
2022: ;
2023: return 0;
2024: }
2025: _ACEOF
2026: if ac_fn_c_try_compile "$LINENO"; then :
2027: ac_hi=$ac_mid; break
2028: else
2029: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030: if test $ac_lo -le $ac_mid; then
2031: ac_lo= ac_hi=
2032: break
2033: fi
2034: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035: fi
2036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037: done
2038: else
2039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040: /* end confdefs.h. */
2041: $4
2042: int
2043: main ()
2044: {
2045: static int test_array [1 - 2 * !(($2) < 0)];
2046: test_array [0] = 0
2047:
2048: ;
2049: return 0;
2050: }
2051: _ACEOF
2052: if ac_fn_c_try_compile "$LINENO"; then :
2053: ac_hi=-1 ac_mid=-1
2054: while :; do
2055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056: /* end confdefs.h. */
2057: $4
2058: int
2059: main ()
2060: {
2061: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2062: test_array [0] = 0
2063:
2064: ;
2065: return 0;
2066: }
2067: _ACEOF
2068: if ac_fn_c_try_compile "$LINENO"; then :
2069: ac_lo=$ac_mid; break
2070: else
2071: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072: if test $ac_mid -le $ac_hi; then
2073: ac_lo= ac_hi=
2074: break
2075: fi
2076: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077: fi
2078: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079: done
2080: else
2081: ac_lo= ac_hi=
2082: fi
2083: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084: fi
2085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086: # Binary search between lo and hi bounds.
2087: while test "x$ac_lo" != "x$ac_hi"; do
2088: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090: /* end confdefs.h. */
2091: $4
2092: int
2093: main ()
2094: {
2095: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096: test_array [0] = 0
2097:
2098: ;
2099: return 0;
2100: }
2101: _ACEOF
2102: if ac_fn_c_try_compile "$LINENO"; then :
2103: ac_hi=$ac_mid
2104: else
2105: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106: fi
2107: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108: done
2109: case $ac_lo in #((
2110: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2111: '') ac_retval=1 ;;
2112: esac
2113: else
2114: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115: /* end confdefs.h. */
2116: $4
2117: static long int longval () { return $2; }
2118: static unsigned long int ulongval () { return $2; }
2119: #include <stdio.h>
2120: #include <stdlib.h>
2121: int
2122: main ()
2123: {
2124:
2125: FILE *f = fopen ("conftest.val", "w");
2126: if (! f)
2127: return 1;
2128: if (($2) < 0)
2129: {
2130: long int i = longval ();
2131: if (i != ($2))
2132: return 1;
2133: fprintf (f, "%ld", i);
2134: }
2135: else
2136: {
2137: unsigned long int i = ulongval ();
2138: if (i != ($2))
2139: return 1;
2140: fprintf (f, "%lu", i);
2141: }
2142: /* Do not output a trailing newline, as this causes \r\n confusion
2143: on some platforms. */
2144: return ferror (f) || fclose (f) != 0;
2145:
2146: ;
2147: return 0;
2148: }
2149: _ACEOF
2150: if ac_fn_c_try_run "$LINENO"; then :
2151: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2152: else
2153: ac_retval=1
2154: fi
2155: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156: conftest.$ac_objext conftest.beam conftest.$ac_ext
2157: rm -f conftest.val
2158:
2159: fi
2160: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161: as_fn_set_status $ac_retval
2162:
2163: } # ac_fn_c_compute_int
2164:
2165: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2166: # -------------------------------------------------------
2167: # Tests whether HEADER exists and can be compiled using the include files in
2168: # INCLUDES, setting the cache variable VAR accordingly.
2169: ac_fn_c_check_header_compile ()
2170: {
2171: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2173: $as_echo_n "checking for $2... " >&6; }
2174: if eval \${$3+:} false; then :
2175: $as_echo_n "(cached) " >&6
2176: else
2177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178: /* end confdefs.h. */
2179: $4
2180: #include <$2>
2181: _ACEOF
2182: if ac_fn_c_try_compile "$LINENO"; then :
2183: eval "$3=yes"
2184: else
2185: eval "$3=no"
2186: fi
2187: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188: fi
2189: eval ac_res=\$$3
2190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191: $as_echo "$ac_res" >&6; }
2192: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193:
2194: } # ac_fn_c_check_header_compile
2195:
2196: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2197: # -------------------------------------------------------
2198: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2199: # the include files in INCLUDES and setting the cache variable VAR
2200: # accordingly.
2201: ac_fn_c_check_header_mongrel ()
2202: {
2203: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204: if eval \${$3+:} false; then :
2205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206: $as_echo_n "checking for $2... " >&6; }
2207: if eval \${$3+:} false; then :
2208: $as_echo_n "(cached) " >&6
2209: fi
2210: eval ac_res=\$$3
2211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212: $as_echo "$ac_res" >&6; }
2213: else
2214: # Is the header compilable?
2215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2216: $as_echo_n "checking $2 usability... " >&6; }
2217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218: /* end confdefs.h. */
2219: $4
2220: #include <$2>
2221: _ACEOF
2222: if ac_fn_c_try_compile "$LINENO"; then :
2223: ac_header_compiler=yes
2224: else
2225: ac_header_compiler=no
2226: fi
2227: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2229: $as_echo "$ac_header_compiler" >&6; }
2230:
2231: # Is the header present?
2232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2233: $as_echo_n "checking $2 presence... " >&6; }
2234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235: /* end confdefs.h. */
2236: #include <$2>
2237: _ACEOF
2238: if ac_fn_c_try_cpp "$LINENO"; then :
2239: ac_header_preproc=yes
2240: else
2241: ac_header_preproc=no
2242: fi
2243: rm -f conftest.err conftest.i conftest.$ac_ext
2244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2245: $as_echo "$ac_header_preproc" >&6; }
2246:
2247: # So? What about this header?
2248: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2249: yes:no: )
2250: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2251: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2252: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2253: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2254: ;;
2255: no:yes:* )
2256: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2257: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2258: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2259: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2260: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2261: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2262: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2263: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2264: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266: ;;
2267: esac
2268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269: $as_echo_n "checking for $2... " >&6; }
2270: if eval \${$3+:} false; then :
2271: $as_echo_n "(cached) " >&6
2272: else
2273: eval "$3=\$ac_header_compiler"
2274: fi
2275: eval ac_res=\$$3
2276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277: $as_echo "$ac_res" >&6; }
2278: fi
2279: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280:
2281: } # ac_fn_c_check_header_mongrel
2282: cat >config.log <<_ACEOF
2283: This file contains any messages produced by compilers while
2284: running configure, to aid debugging if configure makes a mistake.
2285:
2286: It was created by rpl $as_me 4.1.3, which was
2287: generated by GNU Autoconf 2.68. Invocation command line was
2288:
2289: $ $0 $@
2290:
2291: _ACEOF
2292: exec 5>>config.log
2293: {
2294: cat <<_ASUNAME
2295: ## --------- ##
2296: ## Platform. ##
2297: ## --------- ##
2298:
2299: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304:
2305: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2307:
2308: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2309: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2310: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2312: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2313: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2314: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315:
2316: _ASUNAME
2317:
2318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319: for as_dir in $PATH
2320: do
2321: IFS=$as_save_IFS
2322: test -z "$as_dir" && as_dir=.
2323: $as_echo "PATH: $as_dir"
2324: done
2325: IFS=$as_save_IFS
2326:
2327: } >&5
2328:
2329: cat >&5 <<_ACEOF
2330:
2331:
2332: ## ----------- ##
2333: ## Core tests. ##
2334: ## ----------- ##
2335:
2336: _ACEOF
2337:
2338:
2339: # Keep a trace of the command line.
2340: # Strip out --no-create and --no-recursion so they do not pile up.
2341: # Strip out --silent because we don't want to record it for future runs.
2342: # Also quote any args containing shell meta-characters.
2343: # Make two passes to allow for proper duplicate-argument suppression.
2344: ac_configure_args=
2345: ac_configure_args0=
2346: ac_configure_args1=
2347: ac_must_keep_next=false
2348: for ac_pass in 1 2
2349: do
2350: for ac_arg
2351: do
2352: case $ac_arg in
2353: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355: | -silent | --silent | --silen | --sile | --sil)
2356: continue ;;
2357: *\'*)
2358: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359: esac
2360: case $ac_pass in
2361: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362: 2)
2363: as_fn_append ac_configure_args1 " '$ac_arg'"
2364: if test $ac_must_keep_next = true; then
2365: ac_must_keep_next=false # Got value, back to normal.
2366: else
2367: case $ac_arg in
2368: *=* | --config-cache | -C | -disable-* | --disable-* \
2369: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371: | -with-* | --with-* | -without-* | --without-* | --x)
2372: case "$ac_configure_args0 " in
2373: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374: esac
2375: ;;
2376: -* ) ac_must_keep_next=true ;;
2377: esac
2378: fi
2379: as_fn_append ac_configure_args " '$ac_arg'"
2380: ;;
2381: esac
2382: done
2383: done
2384: { ac_configure_args0=; unset ac_configure_args0;}
2385: { ac_configure_args1=; unset ac_configure_args1;}
2386:
2387: # When interrupted or exit'd, cleanup temporary files, and complete
2388: # config.log. We remove comments because anyway the quotes in there
2389: # would cause problems or look ugly.
2390: # WARNING: Use '\'' to represent an apostrophe within the trap.
2391: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392: trap 'exit_status=$?
2393: # Save into config.log some information that might help in debugging.
2394: {
2395: echo
2396:
2397: $as_echo "## ---------------- ##
2398: ## Cache variables. ##
2399: ## ---------------- ##"
2400: echo
2401: # The following way of writing the cache mishandles newlines in values,
2402: (
2403: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404: eval ac_val=\$$ac_var
2405: case $ac_val in #(
2406: *${as_nl}*)
2407: case $ac_var in #(
2408: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410: esac
2411: case $ac_var in #(
2412: _ | IFS | as_nl) ;; #(
2413: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414: *) { eval $ac_var=; unset $ac_var;} ;;
2415: esac ;;
2416: esac
2417: done
2418: (set) 2>&1 |
2419: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420: *${as_nl}ac_space=\ *)
2421: sed -n \
2422: "s/'\''/'\''\\\\'\'''\''/g;
2423: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424: ;; #(
2425: *)
2426: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427: ;;
2428: esac |
2429: sort
2430: )
2431: echo
2432:
2433: $as_echo "## ----------------- ##
2434: ## Output variables. ##
2435: ## ----------------- ##"
2436: echo
2437: for ac_var in $ac_subst_vars
2438: do
2439: eval ac_val=\$$ac_var
2440: case $ac_val in
2441: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442: esac
2443: $as_echo "$ac_var='\''$ac_val'\''"
2444: done | sort
2445: echo
2446:
2447: if test -n "$ac_subst_files"; then
2448: $as_echo "## ------------------- ##
2449: ## File substitutions. ##
2450: ## ------------------- ##"
2451: echo
2452: for ac_var in $ac_subst_files
2453: do
2454: eval ac_val=\$$ac_var
2455: case $ac_val in
2456: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457: esac
2458: $as_echo "$ac_var='\''$ac_val'\''"
2459: done | sort
2460: echo
2461: fi
2462:
2463: if test -s confdefs.h; then
2464: $as_echo "## ----------- ##
2465: ## confdefs.h. ##
2466: ## ----------- ##"
2467: echo
2468: cat confdefs.h
2469: echo
2470: fi
2471: test "$ac_signal" != 0 &&
2472: $as_echo "$as_me: caught signal $ac_signal"
2473: $as_echo "$as_me: exit $exit_status"
2474: } >&5
2475: rm -f core *.core core.conftest.* &&
2476: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477: exit $exit_status
2478: ' 0
2479: for ac_signal in 1 2 13 15; do
2480: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481: done
2482: ac_signal=0
2483:
2484: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485: rm -f -r conftest* confdefs.h
2486:
2487: $as_echo "/* confdefs.h */" > confdefs.h
2488:
2489: # Predefined preprocessor variables.
2490:
2491: cat >>confdefs.h <<_ACEOF
2492: #define PACKAGE_NAME "$PACKAGE_NAME"
2493: _ACEOF
2494:
2495: cat >>confdefs.h <<_ACEOF
2496: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497: _ACEOF
2498:
2499: cat >>confdefs.h <<_ACEOF
2500: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501: _ACEOF
2502:
2503: cat >>confdefs.h <<_ACEOF
2504: #define PACKAGE_STRING "$PACKAGE_STRING"
2505: _ACEOF
2506:
2507: cat >>confdefs.h <<_ACEOF
2508: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509: _ACEOF
2510:
2511: cat >>confdefs.h <<_ACEOF
2512: #define PACKAGE_URL "$PACKAGE_URL"
2513: _ACEOF
2514:
2515:
2516: # Let the site file select an alternate cache file if it wants to.
2517: # Prefer an explicitly selected file to automatically selected ones.
2518: ac_site_file1=NONE
2519: ac_site_file2=NONE
2520: if test -n "$CONFIG_SITE"; then
2521: # We do not want a PATH search for config.site.
2522: case $CONFIG_SITE in #((
2523: -*) ac_site_file1=./$CONFIG_SITE;;
2524: */*) ac_site_file1=$CONFIG_SITE;;
2525: *) ac_site_file1=./$CONFIG_SITE;;
2526: esac
2527: elif test "x$prefix" != xNONE; then
2528: ac_site_file1=$prefix/share/config.site
2529: ac_site_file2=$prefix/etc/config.site
2530: else
2531: ac_site_file1=$ac_default_prefix/share/config.site
2532: ac_site_file2=$ac_default_prefix/etc/config.site
2533: fi
2534: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535: do
2536: test "x$ac_site_file" = xNONE && continue
2537: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540: sed 's/^/| /' "$ac_site_file" >&5
2541: . "$ac_site_file" \
2542: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544: as_fn_error $? "failed to load site script $ac_site_file
2545: See \`config.log' for more details" "$LINENO" 5; }
2546: fi
2547: done
2548:
2549: if test -r "$cache_file"; then
2550: # Some versions of bash will fail to source /dev/null (special files
2551: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554: $as_echo "$as_me: loading cache $cache_file" >&6;}
2555: case $cache_file in
2556: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557: *) . "./$cache_file";;
2558: esac
2559: fi
2560: else
2561: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562: $as_echo "$as_me: creating cache $cache_file" >&6;}
2563: >$cache_file
2564: fi
2565:
2566: # Check that the precious variables saved in the cache have kept the same
2567: # value.
2568: ac_cache_corrupted=false
2569: for ac_var in $ac_precious_vars; do
2570: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571: eval ac_new_set=\$ac_env_${ac_var}_set
2572: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573: eval ac_new_val=\$ac_env_${ac_var}_value
2574: case $ac_old_set,$ac_new_set in
2575: set,)
2576: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578: ac_cache_corrupted=: ;;
2579: ,set)
2580: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582: ac_cache_corrupted=: ;;
2583: ,);;
2584: *)
2585: if test "x$ac_old_val" != "x$ac_new_val"; then
2586: # differences in whitespace do not lead to failure.
2587: ac_old_val_w=`echo x $ac_old_val`
2588: ac_new_val_w=`echo x $ac_new_val`
2589: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592: ac_cache_corrupted=:
2593: else
2594: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596: eval $ac_var=\$ac_old_val
2597: fi
2598: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2602: fi;;
2603: esac
2604: # Pass precious variables to config.status.
2605: if test "$ac_new_set" = set; then
2606: case $ac_new_val in
2607: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608: *) ac_arg=$ac_var=$ac_new_val ;;
2609: esac
2610: case " $ac_configure_args " in
2611: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613: esac
2614: fi
2615: done
2616: if $ac_cache_corrupted; then
2617: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622: fi
2623: ## -------------------- ##
2624: ## Main body of script. ##
2625: ## -------------------- ##
2626:
2627: ac_ext=c
2628: ac_cpp='$CPP $CPPFLAGS'
2629: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632:
2633:
2634: ac_aux_dir=
2635: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2636: if test -f "$ac_dir/install-sh"; then
2637: ac_aux_dir=$ac_dir
2638: ac_install_sh="$ac_aux_dir/install-sh -c"
2639: break
2640: elif test -f "$ac_dir/install.sh"; then
2641: ac_aux_dir=$ac_dir
2642: ac_install_sh="$ac_aux_dir/install.sh -c"
2643: break
2644: elif test -f "$ac_dir/shtool"; then
2645: ac_aux_dir=$ac_dir
2646: ac_install_sh="$ac_aux_dir/shtool install -c"
2647: break
2648: fi
2649: done
2650: if test -z "$ac_aux_dir"; then
2651: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2652: fi
2653:
2654: # These three variables are undocumented and unsupported,
2655: # and are intended to be withdrawn in a future Autoconf release.
2656: # They can cause serious problems if a builder's source tree is in a directory
2657: # whose full name contains unusual characters.
2658: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2659: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2660: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2661:
2662:
2663: # Make sure we can run config.sub.
2664: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2665: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2666:
2667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2668: $as_echo_n "checking build system type... " >&6; }
2669: if ${ac_cv_build+:} false; then :
2670: $as_echo_n "(cached) " >&6
2671: else
2672: ac_build_alias=$build_alias
2673: test "x$ac_build_alias" = x &&
2674: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2675: test "x$ac_build_alias" = x &&
2676: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2677: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2678: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2679:
2680: fi
2681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2682: $as_echo "$ac_cv_build" >&6; }
2683: case $ac_cv_build in
2684: *-*-*) ;;
2685: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2686: esac
2687: build=$ac_cv_build
2688: ac_save_IFS=$IFS; IFS='-'
2689: set x $ac_cv_build
2690: shift
2691: build_cpu=$1
2692: build_vendor=$2
2693: shift; shift
2694: # Remember, the first character of IFS is used to create $*,
2695: # except with old shells:
2696: build_os=$*
2697: IFS=$ac_save_IFS
2698: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2699:
2700:
2701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2702: $as_echo_n "checking host system type... " >&6; }
2703: if ${ac_cv_host+:} false; then :
2704: $as_echo_n "(cached) " >&6
2705: else
2706: if test "x$host_alias" = x; then
2707: ac_cv_host=$ac_cv_build
2708: else
2709: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2710: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2711: fi
2712:
2713: fi
2714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2715: $as_echo "$ac_cv_host" >&6; }
2716: case $ac_cv_host in
2717: *-*-*) ;;
2718: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2719: esac
2720: host=$ac_cv_host
2721: ac_save_IFS=$IFS; IFS='-'
2722: set x $ac_cv_host
2723: shift
2724: host_cpu=$1
2725: host_vendor=$2
2726: shift; shift
2727: # Remember, the first character of IFS is used to create $*,
2728: # except with old shells:
2729: host_os=$*
2730: IFS=$ac_save_IFS
2731: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2732:
2733:
2734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2735: $as_echo_n "checking target system type... " >&6; }
2736: if ${ac_cv_target+:} false; then :
2737: $as_echo_n "(cached) " >&6
2738: else
2739: if test "x$target_alias" = x; then
2740: ac_cv_target=$ac_cv_host
2741: else
2742: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2743: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2744: fi
2745:
2746: fi
2747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2748: $as_echo "$ac_cv_target" >&6; }
2749: case $ac_cv_target in
2750: *-*-*) ;;
2751: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2752: esac
2753: target=$ac_cv_target
2754: ac_save_IFS=$IFS; IFS='-'
2755: set x $ac_cv_target
2756: shift
2757: target_cpu=$1
2758: target_vendor=$2
2759: shift; shift
2760: # Remember, the first character of IFS is used to create $*,
2761: # except with old shells:
2762: target_os=$*
2763: IFS=$ac_save_IFS
2764: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2765:
2766:
2767: # The aliases save the names the user supplied, while $host etc.
2768: # will get canonicalized.
2769: test -n "$target_alias" &&
2770: test "$program_prefix$program_suffix$program_transform_name" = \
2771: NONENONEs,x,x, &&
2772: program_prefix=${target_alias}-
2773:
2774: am__api_version='1.11'
2775:
2776: # Find a good install program. We prefer a C program (faster),
2777: # so one script is as good as another. But avoid the broken or
2778: # incompatible versions:
2779: # SysV /etc/install, /usr/sbin/install
2780: # SunOS /usr/etc/install
2781: # IRIX /sbin/install
2782: # AIX /bin/install
2783: # AmigaOS /C/install, which installs bootblocks on floppy discs
2784: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787: # OS/2's system install, which has a completely different semantic
2788: # ./install, which can be erroneously created by make from ./install.sh.
2789: # Reject install programs that cannot install multiple files.
2790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2792: if test -z "$INSTALL"; then
2793: if ${ac_cv_path_install+:} false; then :
2794: $as_echo_n "(cached) " >&6
2795: else
2796: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797: for as_dir in $PATH
2798: do
2799: IFS=$as_save_IFS
2800: test -z "$as_dir" && as_dir=.
2801: # Account for people who put trailing slashes in PATH elements.
2802: case $as_dir/ in #((
2803: ./ | .// | /[cC]/* | \
2804: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806: /usr/ucb/* ) ;;
2807: *)
2808: # OSF1 and SCO ODT 3.0 have their own names for install.
2809: # Don't use installbsd from OSF since it installs stuff as root
2810: # by default.
2811: for ac_prog in ginstall scoinst install; do
2812: for ac_exec_ext in '' $ac_executable_extensions; do
2813: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2814: if test $ac_prog = install &&
2815: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816: # AIX install. It has an incompatible calling convention.
2817: :
2818: elif test $ac_prog = install &&
2819: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820: # program-specific install script used by HP pwplus--don't use.
2821: :
2822: else
2823: rm -rf conftest.one conftest.two conftest.dir
2824: echo one > conftest.one
2825: echo two > conftest.two
2826: mkdir conftest.dir
2827: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828: test -s conftest.one && test -s conftest.two &&
2829: test -s conftest.dir/conftest.one &&
2830: test -s conftest.dir/conftest.two
2831: then
2832: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2833: break 3
2834: fi
2835: fi
2836: fi
2837: done
2838: done
2839: ;;
2840: esac
2841:
2842: done
2843: IFS=$as_save_IFS
2844:
2845: rm -rf conftest.one conftest.two conftest.dir
2846:
2847: fi
2848: if test "${ac_cv_path_install+set}" = set; then
2849: INSTALL=$ac_cv_path_install
2850: else
2851: # As a last resort, use the slow shell script. Don't cache a
2852: # value for INSTALL within a source directory, because that will
2853: # break other packages using the cache if that directory is
2854: # removed, or if the value is a relative name.
2855: INSTALL=$ac_install_sh
2856: fi
2857: fi
2858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859: $as_echo "$INSTALL" >&6; }
2860:
2861: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862: # It thinks the first close brace ends the variable substitution.
2863: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864:
2865: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866:
2867: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868:
2869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870: $as_echo_n "checking whether build environment is sane... " >&6; }
2871: # Just in case
2872: sleep 1
2873: echo timestamp > conftest.file
2874: # Reject unsafe characters in $srcdir or the absolute working directory
2875: # name. Accept space and tab only in the latter.
2876: am_lf='
2877: '
2878: case `pwd` in
2879: *[\\\"\#\$\&\'\`$am_lf]*)
2880: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2881: esac
2882: case $srcdir in
2883: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2884: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2885: esac
2886:
2887: # Do `set' in a subshell so we don't clobber the current shell's
2888: # arguments. Must try -L first in case configure is actually a
2889: # symlink; some systems play weird games with the mod time of symlinks
2890: # (eg FreeBSD returns the mod time of the symlink's containing
2891: # directory).
2892: if (
2893: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894: if test "$*" = "X"; then
2895: # -L didn't work.
2896: set X `ls -t "$srcdir/configure" conftest.file`
2897: fi
2898: rm -f conftest.file
2899: if test "$*" != "X $srcdir/configure conftest.file" \
2900: && test "$*" != "X conftest.file $srcdir/configure"; then
2901:
2902: # If neither matched, then we have a broken ls. This can happen
2903: # if, for instance, CONFIG_SHELL is bash and it inherits a
2904: # broken ls alias from the environment. This has actually
2905: # happened. Such a system could not be considered "sane".
2906: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2907: alias in your environment" "$LINENO" 5
2908: fi
2909:
2910: test "$2" = conftest.file
2911: )
2912: then
2913: # Ok.
2914: :
2915: else
2916: as_fn_error $? "newly created file is older than distributed files!
2917: Check your system clock" "$LINENO" 5
2918: fi
2919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920: $as_echo "yes" >&6; }
2921: test "$program_prefix" != NONE &&
2922: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2923: # Use a double $ so make ignores it.
2924: test "$program_suffix" != NONE &&
2925: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2926: # Double any \ or $.
2927: # By default was `s,x,x', remove it if useless.
2928: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2929: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930:
2931: # expand $ac_aux_dir to an absolute path
2932: am_aux_dir=`cd $ac_aux_dir && pwd`
2933:
2934: if test x"${MISSING+set}" != xset; then
2935: case $am_aux_dir in
2936: *\ * | *\ *)
2937: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938: *)
2939: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2940: esac
2941: fi
2942: # Use eval to expand $SHELL
2943: if eval "$MISSING --run true"; then
2944: am_missing_run="$MISSING --run "
2945: else
2946: am_missing_run=
2947: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2948: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2949: fi
2950:
2951: if test x"${install_sh}" != xset; then
2952: case $am_aux_dir in
2953: *\ * | *\ *)
2954: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955: *)
2956: install_sh="\${SHELL} $am_aux_dir/install-sh"
2957: esac
2958: fi
2959:
2960: # Installed binaries are usually stripped using `strip' when the user
2961: # run `make install-strip'. However `strip' might not be the right
2962: # tool to use in cross-compilation environments, therefore Automake
2963: # will honor the `STRIP' environment variable to overrule this program.
2964: if test "$cross_compiling" != no; then
2965: if test -n "$ac_tool_prefix"; then
2966: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2967: set dummy ${ac_tool_prefix}strip; ac_word=$2
2968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969: $as_echo_n "checking for $ac_word... " >&6; }
2970: if ${ac_cv_prog_STRIP+:} false; then :
2971: $as_echo_n "(cached) " >&6
2972: else
2973: if test -n "$STRIP"; then
2974: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2975: else
2976: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977: for as_dir in $PATH
2978: do
2979: IFS=$as_save_IFS
2980: test -z "$as_dir" && as_dir=.
2981: for ac_exec_ext in '' $ac_executable_extensions; do
2982: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2984: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985: break 2
2986: fi
2987: done
2988: done
2989: IFS=$as_save_IFS
2990:
2991: fi
2992: fi
2993: STRIP=$ac_cv_prog_STRIP
2994: if test -n "$STRIP"; then
2995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2996: $as_echo "$STRIP" >&6; }
2997: else
2998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999: $as_echo "no" >&6; }
3000: fi
3001:
3002:
3003: fi
3004: if test -z "$ac_cv_prog_STRIP"; then
3005: ac_ct_STRIP=$STRIP
3006: # Extract the first word of "strip", so it can be a program name with args.
3007: set dummy strip; ac_word=$2
3008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009: $as_echo_n "checking for $ac_word... " >&6; }
3010: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3011: $as_echo_n "(cached) " >&6
3012: else
3013: if test -n "$ac_ct_STRIP"; then
3014: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3015: else
3016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017: for as_dir in $PATH
3018: do
3019: IFS=$as_save_IFS
3020: test -z "$as_dir" && as_dir=.
3021: for ac_exec_ext in '' $ac_executable_extensions; do
3022: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023: ac_cv_prog_ac_ct_STRIP="strip"
3024: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025: break 2
3026: fi
3027: done
3028: done
3029: IFS=$as_save_IFS
3030:
3031: fi
3032: fi
3033: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3034: if test -n "$ac_ct_STRIP"; then
3035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3036: $as_echo "$ac_ct_STRIP" >&6; }
3037: else
3038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039: $as_echo "no" >&6; }
3040: fi
3041:
3042: if test "x$ac_ct_STRIP" = x; then
3043: STRIP=":"
3044: else
3045: case $cross_compiling:$ac_tool_warned in
3046: yes:)
3047: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049: ac_tool_warned=yes ;;
3050: esac
3051: STRIP=$ac_ct_STRIP
3052: fi
3053: else
3054: STRIP="$ac_cv_prog_STRIP"
3055: fi
3056:
3057: fi
3058: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3059:
3060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3061: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3062: if test -z "$MKDIR_P"; then
3063: if ${ac_cv_path_mkdir+:} false; then :
3064: $as_echo_n "(cached) " >&6
3065: else
3066: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3068: do
3069: IFS=$as_save_IFS
3070: test -z "$as_dir" && as_dir=.
3071: for ac_prog in mkdir gmkdir; do
3072: for ac_exec_ext in '' $ac_executable_extensions; do
3073: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3074: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3075: 'mkdir (GNU coreutils) '* | \
3076: 'mkdir (coreutils) '* | \
3077: 'mkdir (fileutils) '4.1*)
3078: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3079: break 3;;
3080: esac
3081: done
3082: done
3083: done
3084: IFS=$as_save_IFS
3085:
3086: fi
3087:
3088: test -d ./--version && rmdir ./--version
3089: if test "${ac_cv_path_mkdir+set}" = set; then
3090: MKDIR_P="$ac_cv_path_mkdir -p"
3091: else
3092: # As a last resort, use the slow shell script. Don't cache a
3093: # value for MKDIR_P within a source directory, because that will
3094: # break other packages using the cache if that directory is
3095: # removed, or if the value is a relative name.
3096: MKDIR_P="$ac_install_sh -d"
3097: fi
3098: fi
3099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3100: $as_echo "$MKDIR_P" >&6; }
3101:
3102: mkdir_p="$MKDIR_P"
3103: case $mkdir_p in
3104: [\\/$]* | ?:[\\/]*) ;;
3105: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3106: esac
3107:
3108: for ac_prog in gawk mawk nawk awk
3109: do
3110: # Extract the first word of "$ac_prog", so it can be a program name with args.
3111: set dummy $ac_prog; ac_word=$2
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113: $as_echo_n "checking for $ac_word... " >&6; }
3114: if ${ac_cv_prog_AWK+:} false; then :
3115: $as_echo_n "(cached) " >&6
3116: else
3117: if test -n "$AWK"; then
3118: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119: else
3120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121: for as_dir in $PATH
3122: do
3123: IFS=$as_save_IFS
3124: test -z "$as_dir" && as_dir=.
3125: for ac_exec_ext in '' $ac_executable_extensions; do
3126: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127: ac_cv_prog_AWK="$ac_prog"
3128: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129: break 2
3130: fi
3131: done
3132: done
3133: IFS=$as_save_IFS
3134:
3135: fi
3136: fi
3137: AWK=$ac_cv_prog_AWK
3138: if test -n "$AWK"; then
3139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3140: $as_echo "$AWK" >&6; }
3141: else
3142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143: $as_echo "no" >&6; }
3144: fi
3145:
3146:
3147: test -n "$AWK" && break
3148: done
3149:
3150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3151: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152: set x ${MAKE-make}
3153: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3154: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3155: $as_echo_n "(cached) " >&6
3156: else
3157: cat >conftest.make <<\_ACEOF
3158: SHELL = /bin/sh
3159: all:
3160: @echo '@@@%%%=$(MAKE)=@@@%%%'
3161: _ACEOF
3162: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3163: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164: *@@@%%%=?*=@@@%%%*)
3165: eval ac_cv_prog_make_${ac_make}_set=yes;;
3166: *)
3167: eval ac_cv_prog_make_${ac_make}_set=no;;
3168: esac
3169: rm -f conftest.make
3170: fi
3171: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173: $as_echo "yes" >&6; }
3174: SET_MAKE=
3175: else
3176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177: $as_echo "no" >&6; }
3178: SET_MAKE="MAKE=${MAKE-make}"
3179: fi
3180:
3181: rm -rf .tst 2>/dev/null
3182: mkdir .tst 2>/dev/null
3183: if test -d .tst; then
3184: am__leading_dot=.
3185: else
3186: am__leading_dot=_
3187: fi
3188: rmdir .tst 2>/dev/null
3189:
3190: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3191: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3192: # is not polluted with repeated "-I."
3193: am__isrc=' -I$(srcdir)'
3194: # test to see if srcdir already configured
3195: if test -f $srcdir/config.status; then
3196: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197: fi
3198: fi
3199:
3200: # test whether we have cygpath
3201: if test -z "$CYGPATH_W"; then
3202: if (cygpath --version) >/dev/null 2>/dev/null; then
3203: CYGPATH_W='cygpath -w'
3204: else
3205: CYGPATH_W=echo
3206: fi
3207: fi
3208:
3209:
3210: # Define the identity of the package.
3211: PACKAGE='rpl'
3212: VERSION='4.1.3'
3213:
3214:
3215: cat >>confdefs.h <<_ACEOF
3216: #define PACKAGE "$PACKAGE"
3217: _ACEOF
3218:
3219:
3220: cat >>confdefs.h <<_ACEOF
3221: #define VERSION "$VERSION"
3222: _ACEOF
3223:
3224: # Some tools Automake needs.
3225:
3226: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3227:
3228:
3229: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3230:
3231:
3232: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3233:
3234:
3235: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3236:
3237:
3238: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3239:
3240: # We need awk for the "check" target. The system "awk" is bad on
3241: # some platforms.
3242: # Always define AMTAR for backward compatibility.
3243:
3244: AMTAR=${AMTAR-"${am_missing_run}tar"}
3245:
3246: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3247:
3248:
3249:
3250:
3251:
3252:
3253: ac_config_headers="$ac_config_headers rplconfig.h"
3254:
3255:
3256: NCURSES=ncurses-5.9
3257: READLINE=readline-6.2
3258: UNITS=units-1.88
3259: GSL=gsl-1.15
3260: GPP=gpp-3.0
3261: GNUPLOT=gnuplot-4.4.3
3262: FILE=file-5.03
3263: ICONV=libiconv-1.13.1
3264: SQLITE=sqlite-3.7.7.1
3265: OPENSSL=openssl-1.0.0e
3266: OPENMOTIF=openmotif-2.3.3
3267: LIBXPM=libXpm-3.5.9
3268: SIGSEGV=libsigsegv-2.6
3269:
3270: GMP=gmp-5.0.2
3271: MPFR=mpfr-3.0.1
3272: NTL=ntl-5.5.2
3273: COCOA=CoCoALib-0.9943
3274: PARI=pari-2.5.0
3275: GIAC=giac-0.9.3
3276:
3277: ac_ext=c
3278: ac_cpp='$CPP $CPPFLAGS'
3279: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282: if test -n "$ac_tool_prefix"; then
3283: for ac_prog in gcc
3284: do
3285: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288: $as_echo_n "checking for $ac_word... " >&6; }
3289: if ${ac_cv_prog_CC+:} false; then :
3290: $as_echo_n "(cached) " >&6
3291: else
3292: if test -n "$CC"; then
3293: ac_cv_prog_CC="$CC" # Let the user override the test.
3294: else
3295: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296: for as_dir in $PATH
3297: do
3298: IFS=$as_save_IFS
3299: test -z "$as_dir" && as_dir=.
3300: for ac_exec_ext in '' $ac_executable_extensions; do
3301: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304: break 2
3305: fi
3306: done
3307: done
3308: IFS=$as_save_IFS
3309:
3310: fi
3311: fi
3312: CC=$ac_cv_prog_CC
3313: if test -n "$CC"; then
3314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315: $as_echo "$CC" >&6; }
3316: else
3317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318: $as_echo "no" >&6; }
3319: fi
3320:
3321:
3322: test -n "$CC" && break
3323: done
3324: fi
3325: if test -z "$CC"; then
3326: ac_ct_CC=$CC
3327: for ac_prog in gcc
3328: do
3329: # Extract the first word of "$ac_prog", so it can be a program name with args.
3330: set dummy $ac_prog; ac_word=$2
3331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332: $as_echo_n "checking for $ac_word... " >&6; }
3333: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334: $as_echo_n "(cached) " >&6
3335: else
3336: if test -n "$ac_ct_CC"; then
3337: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338: else
3339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340: for as_dir in $PATH
3341: do
3342: IFS=$as_save_IFS
3343: test -z "$as_dir" && as_dir=.
3344: for ac_exec_ext in '' $ac_executable_extensions; do
3345: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346: ac_cv_prog_ac_ct_CC="$ac_prog"
3347: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348: break 2
3349: fi
3350: done
3351: done
3352: IFS=$as_save_IFS
3353:
3354: fi
3355: fi
3356: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357: if test -n "$ac_ct_CC"; then
3358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359: $as_echo "$ac_ct_CC" >&6; }
3360: else
3361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362: $as_echo "no" >&6; }
3363: fi
3364:
3365:
3366: test -n "$ac_ct_CC" && break
3367: done
3368:
3369: if test "x$ac_ct_CC" = x; then
3370: CC=""
3371: else
3372: case $cross_compiling:$ac_tool_warned in
3373: yes:)
3374: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376: ac_tool_warned=yes ;;
3377: esac
3378: CC=$ac_ct_CC
3379: fi
3380: fi
3381:
3382:
3383: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385: as_fn_error $? "no acceptable C compiler found in \$PATH
3386: See \`config.log' for more details" "$LINENO" 5; }
3387:
3388: # Provide some information about the compiler.
3389: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3390: set X $ac_compile
3391: ac_compiler=$2
3392: for ac_option in --version -v -V -qversion; do
3393: { { ac_try="$ac_compiler $ac_option >&5"
3394: case "(($ac_try" in
3395: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396: *) ac_try_echo=$ac_try;;
3397: esac
3398: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399: $as_echo "$ac_try_echo"; } >&5
3400: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3401: ac_status=$?
3402: if test -s conftest.err; then
3403: sed '10a\
3404: ... rest of stderr output deleted ...
3405: 10q' conftest.err >conftest.er1
3406: cat conftest.er1 >&5
3407: fi
3408: rm -f conftest.er1 conftest.err
3409: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410: test $ac_status = 0; }
3411: done
3412:
3413: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414: /* end confdefs.h. */
3415:
3416: int
3417: main ()
3418: {
3419:
3420: ;
3421: return 0;
3422: }
3423: _ACEOF
3424: ac_clean_files_save=$ac_clean_files
3425: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3426: # Try to create an executable without -o first, disregard a.out.
3427: # It will help us diagnose broken compilers, and finding out an intuition
3428: # of exeext.
3429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3430: $as_echo_n "checking whether the C compiler works... " >&6; }
3431: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3432:
3433: # The possible output files:
3434: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3435:
3436: ac_rmfiles=
3437: for ac_file in $ac_files
3438: do
3439: case $ac_file in
3440: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3442: esac
3443: done
3444: rm -f $ac_rmfiles
3445:
3446: if { { ac_try="$ac_link_default"
3447: case "(($ac_try" in
3448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449: *) ac_try_echo=$ac_try;;
3450: esac
3451: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452: $as_echo "$ac_try_echo"; } >&5
3453: (eval "$ac_link_default") 2>&5
3454: ac_status=$?
3455: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456: test $ac_status = 0; }; then :
3457: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3458: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3459: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3460: # so that the user can short-circuit this test for compilers unknown to
3461: # Autoconf.
3462: for ac_file in $ac_files ''
3463: do
3464: test -f "$ac_file" || continue
3465: case $ac_file in
3466: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3467: ;;
3468: [ab].out )
3469: # We found the default executable, but exeext='' is most
3470: # certainly right.
3471: break;;
3472: *.* )
3473: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3474: then :; else
3475: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476: fi
3477: # We set ac_cv_exeext here because the later test for it is not
3478: # safe: cross compilers may not add the suffix if given an `-o'
3479: # argument, so we may need to know it at that point already.
3480: # Even if this section looks crufty: it has the advantage of
3481: # actually working.
3482: break;;
3483: * )
3484: break;;
3485: esac
3486: done
3487: test "$ac_cv_exeext" = no && ac_cv_exeext=
3488:
3489: else
3490: ac_file=''
3491: fi
3492: if test -z "$ac_file"; then :
3493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494: $as_echo "no" >&6; }
3495: $as_echo "$as_me: failed program was:" >&5
3496: sed 's/^/| /' conftest.$ac_ext >&5
3497:
3498: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500: as_fn_error 77 "C compiler cannot create executables
3501: See \`config.log' for more details" "$LINENO" 5; }
3502: else
3503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504: $as_echo "yes" >&6; }
3505: fi
3506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3507: $as_echo_n "checking for C compiler default output file name... " >&6; }
3508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3509: $as_echo "$ac_file" >&6; }
3510: ac_exeext=$ac_cv_exeext
3511:
3512: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3513: ac_clean_files=$ac_clean_files_save
3514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3515: $as_echo_n "checking for suffix of executables... " >&6; }
3516: if { { ac_try="$ac_link"
3517: case "(($ac_try" in
3518: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519: *) ac_try_echo=$ac_try;;
3520: esac
3521: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522: $as_echo "$ac_try_echo"; } >&5
3523: (eval "$ac_link") 2>&5
3524: ac_status=$?
3525: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526: test $ac_status = 0; }; then :
3527: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529: # work properly (i.e., refer to `conftest.exe'), while it won't with
3530: # `rm'.
3531: for ac_file in conftest.exe conftest conftest.*; do
3532: test -f "$ac_file" || continue
3533: case $ac_file in
3534: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536: break;;
3537: * ) break;;
3538: esac
3539: done
3540: else
3541: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3544: See \`config.log' for more details" "$LINENO" 5; }
3545: fi
3546: rm -f conftest conftest$ac_cv_exeext
3547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3548: $as_echo "$ac_cv_exeext" >&6; }
3549:
3550: rm -f conftest.$ac_ext
3551: EXEEXT=$ac_cv_exeext
3552: ac_exeext=$EXEEXT
3553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554: /* end confdefs.h. */
3555: #include <stdio.h>
3556: int
3557: main ()
3558: {
3559: FILE *f = fopen ("conftest.out", "w");
3560: return ferror (f) || fclose (f) != 0;
3561:
3562: ;
3563: return 0;
3564: }
3565: _ACEOF
3566: ac_clean_files="$ac_clean_files conftest.out"
3567: # Check that the compiler produces executables we can run. If not, either
3568: # the compiler is broken, or we cross compile.
3569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3570: $as_echo_n "checking whether we are cross compiling... " >&6; }
3571: if test "$cross_compiling" != yes; then
3572: { { ac_try="$ac_link"
3573: case "(($ac_try" in
3574: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575: *) ac_try_echo=$ac_try;;
3576: esac
3577: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578: $as_echo "$ac_try_echo"; } >&5
3579: (eval "$ac_link") 2>&5
3580: ac_status=$?
3581: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582: test $ac_status = 0; }
3583: if { ac_try='./conftest$ac_cv_exeext'
3584: { { case "(($ac_try" in
3585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586: *) ac_try_echo=$ac_try;;
3587: esac
3588: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589: $as_echo "$ac_try_echo"; } >&5
3590: (eval "$ac_try") 2>&5
3591: ac_status=$?
3592: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593: test $ac_status = 0; }; }; then
3594: cross_compiling=no
3595: else
3596: if test "$cross_compiling" = maybe; then
3597: cross_compiling=yes
3598: else
3599: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601: as_fn_error $? "cannot run C compiled programs.
3602: If you meant to cross compile, use \`--host'.
3603: See \`config.log' for more details" "$LINENO" 5; }
3604: fi
3605: fi
3606: fi
3607: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3608: $as_echo "$cross_compiling" >&6; }
3609:
3610: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3611: ac_clean_files=$ac_clean_files_save
3612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3613: $as_echo_n "checking for suffix of object files... " >&6; }
3614: if ${ac_cv_objext+:} false; then :
3615: $as_echo_n "(cached) " >&6
3616: else
3617: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618: /* end confdefs.h. */
3619:
3620: int
3621: main ()
3622: {
3623:
3624: ;
3625: return 0;
3626: }
3627: _ACEOF
3628: rm -f conftest.o conftest.obj
3629: if { { ac_try="$ac_compile"
3630: case "(($ac_try" in
3631: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632: *) ac_try_echo=$ac_try;;
3633: esac
3634: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635: $as_echo "$ac_try_echo"; } >&5
3636: (eval "$ac_compile") 2>&5
3637: ac_status=$?
3638: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639: test $ac_status = 0; }; then :
3640: for ac_file in conftest.o conftest.obj conftest.*; do
3641: test -f "$ac_file" || continue;
3642: case $ac_file in
3643: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3644: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3645: break;;
3646: esac
3647: done
3648: else
3649: $as_echo "$as_me: failed program was:" >&5
3650: sed 's/^/| /' conftest.$ac_ext >&5
3651:
3652: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654: as_fn_error $? "cannot compute suffix of object files: cannot compile
3655: See \`config.log' for more details" "$LINENO" 5; }
3656: fi
3657: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3658: fi
3659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3660: $as_echo "$ac_cv_objext" >&6; }
3661: OBJEXT=$ac_cv_objext
3662: ac_objext=$OBJEXT
3663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3664: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3665: if ${ac_cv_c_compiler_gnu+:} false; then :
3666: $as_echo_n "(cached) " >&6
3667: else
3668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669: /* end confdefs.h. */
3670:
3671: int
3672: main ()
3673: {
3674: #ifndef __GNUC__
3675: choke me
3676: #endif
3677:
3678: ;
3679: return 0;
3680: }
3681: _ACEOF
3682: if ac_fn_c_try_compile "$LINENO"; then :
3683: ac_compiler_gnu=yes
3684: else
3685: ac_compiler_gnu=no
3686: fi
3687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3689:
3690: fi
3691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3692: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3693: if test $ac_compiler_gnu = yes; then
3694: GCC=yes
3695: else
3696: GCC=
3697: fi
3698: ac_test_CFLAGS=${CFLAGS+set}
3699: ac_save_CFLAGS=$CFLAGS
3700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3701: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3702: if ${ac_cv_prog_cc_g+:} false; then :
3703: $as_echo_n "(cached) " >&6
3704: else
3705: ac_save_c_werror_flag=$ac_c_werror_flag
3706: ac_c_werror_flag=yes
3707: ac_cv_prog_cc_g=no
3708: CFLAGS="-g"
3709: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710: /* end confdefs.h. */
3711:
3712: int
3713: main ()
3714: {
3715:
3716: ;
3717: return 0;
3718: }
3719: _ACEOF
3720: if ac_fn_c_try_compile "$LINENO"; then :
3721: ac_cv_prog_cc_g=yes
3722: else
3723: CFLAGS=""
3724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725: /* end confdefs.h. */
3726:
3727: int
3728: main ()
3729: {
3730:
3731: ;
3732: return 0;
3733: }
3734: _ACEOF
3735: if ac_fn_c_try_compile "$LINENO"; then :
3736:
3737: else
3738: ac_c_werror_flag=$ac_save_c_werror_flag
3739: CFLAGS="-g"
3740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741: /* end confdefs.h. */
3742:
3743: int
3744: main ()
3745: {
3746:
3747: ;
3748: return 0;
3749: }
3750: _ACEOF
3751: if ac_fn_c_try_compile "$LINENO"; then :
3752: ac_cv_prog_cc_g=yes
3753: fi
3754: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755: fi
3756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757: fi
3758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759: ac_c_werror_flag=$ac_save_c_werror_flag
3760: fi
3761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3762: $as_echo "$ac_cv_prog_cc_g" >&6; }
3763: if test "$ac_test_CFLAGS" = set; then
3764: CFLAGS=$ac_save_CFLAGS
3765: elif test $ac_cv_prog_cc_g = yes; then
3766: if test "$GCC" = yes; then
3767: CFLAGS="-g -O2"
3768: else
3769: CFLAGS="-g"
3770: fi
3771: else
3772: if test "$GCC" = yes; then
3773: CFLAGS="-O2"
3774: else
3775: CFLAGS=
3776: fi
3777: fi
3778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3779: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3780: if ${ac_cv_prog_cc_c89+:} false; then :
3781: $as_echo_n "(cached) " >&6
3782: else
3783: ac_cv_prog_cc_c89=no
3784: ac_save_CC=$CC
3785: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786: /* end confdefs.h. */
3787: #include <stdarg.h>
3788: #include <stdio.h>
3789: #include <sys/types.h>
3790: #include <sys/stat.h>
3791: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3792: struct buf { int x; };
3793: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3794: static char *e (p, i)
3795: char **p;
3796: int i;
3797: {
3798: return p[i];
3799: }
3800: static char *f (char * (*g) (char **, int), char **p, ...)
3801: {
3802: char *s;
3803: va_list v;
3804: va_start (v,p);
3805: s = g (p, va_arg (v,int));
3806: va_end (v);
3807: return s;
3808: }
3809:
3810: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3811: function prototypes and stuff, but not '\xHH' hex character constants.
3812: These don't provoke an error unfortunately, instead are silently treated
3813: as 'x'. The following induces an error, until -std is added to get
3814: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3815: array size at least. It's necessary to write '\x00'==0 to get something
3816: that's true only with -std. */
3817: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3818:
3819: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3820: inside strings and character constants. */
3821: #define FOO(x) 'x'
3822: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3823:
3824: int test (int i, double x);
3825: struct s1 {int (*f) (int a);};
3826: struct s2 {int (*f) (double a);};
3827: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828: int argc;
3829: char **argv;
3830: int
3831: main ()
3832: {
3833: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3834: ;
3835: return 0;
3836: }
3837: _ACEOF
3838: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3839: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3840: do
3841: CC="$ac_save_CC $ac_arg"
3842: if ac_fn_c_try_compile "$LINENO"; then :
3843: ac_cv_prog_cc_c89=$ac_arg
3844: fi
3845: rm -f core conftest.err conftest.$ac_objext
3846: test "x$ac_cv_prog_cc_c89" != "xno" && break
3847: done
3848: rm -f conftest.$ac_ext
3849: CC=$ac_save_CC
3850:
3851: fi
3852: # AC_CACHE_VAL
3853: case "x$ac_cv_prog_cc_c89" in
3854: x)
3855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3856: $as_echo "none needed" >&6; } ;;
3857: xno)
3858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3859: $as_echo "unsupported" >&6; } ;;
3860: *)
3861: CC="$CC $ac_cv_prog_cc_c89"
3862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3863: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3864: esac
3865: if test "x$ac_cv_prog_cc_c89" != xno; then :
3866:
3867: fi
3868:
3869: ac_ext=c
3870: ac_cpp='$CPP $CPPFLAGS'
3871: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874: DEPDIR="${am__leading_dot}deps"
3875:
3876: ac_config_commands="$ac_config_commands depfiles"
3877:
3878:
3879: am_make=${MAKE-make}
3880: cat > confinc << 'END'
3881: am__doit:
3882: @echo this is the am__doit target
3883: .PHONY: am__doit
3884: END
3885: # If we don't find an include directive, just comment out the code.
3886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3887: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3888: am__include="#"
3889: am__quote=
3890: _am_result=none
3891: # First try GNU make style include.
3892: echo "include confinc" > confmf
3893: # Ignore all kinds of additional output from `make'.
3894: case `$am_make -s -f confmf 2> /dev/null` in #(
3895: *the\ am__doit\ target*)
3896: am__include=include
3897: am__quote=
3898: _am_result=GNU
3899: ;;
3900: esac
3901: # Now try BSD make style include.
3902: if test "$am__include" = "#"; then
3903: echo '.include "confinc"' > confmf
3904: case `$am_make -s -f confmf 2> /dev/null` in #(
3905: *the\ am__doit\ target*)
3906: am__include=.include
3907: am__quote="\""
3908: _am_result=BSD
3909: ;;
3910: esac
3911: fi
3912:
3913:
3914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3915: $as_echo "$_am_result" >&6; }
3916: rm -f confinc confmf
3917:
3918: # Check whether --enable-dependency-tracking was given.
3919: if test "${enable_dependency_tracking+set}" = set; then :
3920: enableval=$enable_dependency_tracking;
3921: fi
3922:
3923: if test "x$enable_dependency_tracking" != xno; then
3924: am_depcomp="$ac_aux_dir/depcomp"
3925: AMDEPBACKSLASH='\'
3926: fi
3927: if test "x$enable_dependency_tracking" != xno; then
3928: AMDEP_TRUE=
3929: AMDEP_FALSE='#'
3930: else
3931: AMDEP_TRUE='#'
3932: AMDEP_FALSE=
3933: fi
3934:
3935:
3936:
3937: depcc="$CC" am_compiler_list=
3938:
3939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3940: $as_echo_n "checking dependency style of $depcc... " >&6; }
3941: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3942: $as_echo_n "(cached) " >&6
3943: else
3944: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3945: # We make a subdir and do the tests there. Otherwise we can end up
3946: # making bogus files that we don't know about and never remove. For
3947: # instance it was reported that on HP-UX the gcc test will end up
3948: # making a dummy file named `D' -- because `-MD' means `put the output
3949: # in D'.
3950: mkdir conftest.dir
3951: # Copy depcomp to subdir because otherwise we won't find it if we're
3952: # using a relative directory.
3953: cp "$am_depcomp" conftest.dir
3954: cd conftest.dir
3955: # We will build objects and dependencies in a subdirectory because
3956: # it helps to detect inapplicable dependency modes. For instance
3957: # both Tru64's cc and ICC support -MD to output dependencies as a
3958: # side effect of compilation, but ICC will put the dependencies in
3959: # the current directory while Tru64 will put them in the object
3960: # directory.
3961: mkdir sub
3962:
3963: am_cv_CC_dependencies_compiler_type=none
3964: if test "$am_compiler_list" = ""; then
3965: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3966: fi
3967: am__universal=false
3968: case " $depcc " in #(
3969: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3970: esac
3971:
3972: for depmode in $am_compiler_list; do
3973: # Setup a source with many dependencies, because some compilers
3974: # like to wrap large dependency lists on column 80 (with \), and
3975: # we should not choose a depcomp mode which is confused by this.
3976: #
3977: # We need to recreate these files for each test, as the compiler may
3978: # overwrite some of them when testing with obscure command lines.
3979: # This happens at least with the AIX C compiler.
3980: : > sub/conftest.c
3981: for i in 1 2 3 4 5 6; do
3982: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3983: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3984: # Solaris 8's {/usr,}/bin/sh.
3985: touch sub/conftst$i.h
3986: done
3987: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3988:
3989: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990: # mode. It turns out that the SunPro C++ compiler does not properly
3991: # handle `-M -o', and we need to detect this. Also, some Intel
3992: # versions had trouble with output in subdirs
3993: am__obj=sub/conftest.${OBJEXT-o}
3994: am__minus_obj="-o $am__obj"
3995: case $depmode in
3996: gcc)
3997: # This depmode causes a compiler race in universal mode.
3998: test "$am__universal" = false || continue
3999: ;;
4000: nosideeffect)
4001: # after this tag, mechanisms are not by side-effect, so they'll
4002: # only be used when explicitly requested
4003: if test "x$enable_dependency_tracking" = xyes; then
4004: continue
4005: else
4006: break
4007: fi
4008: ;;
4009: msvisualcpp | msvcmsys)
4010: # This compiler won't grok `-c -o', but also, the minuso test has
4011: # not run yet. These depmodes are late enough in the game, and
4012: # so weak that their functioning should not be impacted.
4013: am__obj=conftest.${OBJEXT-o}
4014: am__minus_obj=
4015: ;;
4016: none) break ;;
4017: esac
4018: if depmode=$depmode \
4019: source=sub/conftest.c object=$am__obj \
4020: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4021: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4022: >/dev/null 2>conftest.err &&
4023: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4024: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4025: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4026: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4027: # icc doesn't choke on unknown options, it will just issue warnings
4028: # or remarks (even with -Werror). So we grep stderr for any message
4029: # that says an option was ignored or not supported.
4030: # When given -MP, icc 7.0 and 7.1 complain thusly:
4031: # icc: Command line warning: ignoring option '-M'; no argument required
4032: # The diagnosis changed in icc 8.0:
4033: # icc: Command line remark: option '-MP' not supported
4034: if (grep 'ignoring option' conftest.err ||
4035: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4036: am_cv_CC_dependencies_compiler_type=$depmode
4037: break
4038: fi
4039: fi
4040: done
4041:
4042: cd ..
4043: rm -rf conftest.dir
4044: else
4045: am_cv_CC_dependencies_compiler_type=none
4046: fi
4047:
4048: fi
4049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4050: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4051: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4052:
4053: if
4054: test "x$enable_dependency_tracking" != xno \
4055: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4056: am__fastdepCC_TRUE=
4057: am__fastdepCC_FALSE='#'
4058: else
4059: am__fastdepCC_TRUE='#'
4060: am__fastdepCC_FALSE=
4061: fi
4062:
4063:
4064:
4065: EXT_SQL=
4066:
4067: if test x"$CC" != x""; then
4068: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4069: awk -F. '{ printf("%s", $1);}'`
4070: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4071: awk -F. '{ printf("%s", $2);}'`
4072: if test $GCC_VERSION_MAJEURE -ge 5; then
4073: OPTIMISATION_C=-O3
4074: else
4075: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4076: then
4077: OPTIMISATION_C=-O3
4078: else
4079: if test $GCC_VERSION_MAJEURE -ge 2; then
4080: OPTIMISATION_C=-O2
4081: else
4082: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
4083: fi
4084: fi
4085: fi
4086: fi
4087:
4088: if test "x$CC" != xcc; then
4089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4090: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4091: else
4092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4093: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4094: fi
4095: set dummy $CC; ac_cc=`$as_echo "$2" |
4096: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4097: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4098: $as_echo_n "(cached) " >&6
4099: else
4100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101: /* end confdefs.h. */
4102:
4103: int
4104: main ()
4105: {
4106:
4107: ;
4108: return 0;
4109: }
4110: _ACEOF
4111: # Make sure it works both with $CC and with simple cc.
4112: # We do the test twice because some compilers refuse to overwrite an
4113: # existing .o file with -o, though they will create one.
4114: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4115: rm -f conftest2.*
4116: if { { case "(($ac_try" in
4117: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118: *) ac_try_echo=$ac_try;;
4119: esac
4120: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121: $as_echo "$ac_try_echo"; } >&5
4122: (eval "$ac_try") 2>&5
4123: ac_status=$?
4124: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125: test $ac_status = 0; } &&
4126: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4127: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128: *) ac_try_echo=$ac_try;;
4129: esac
4130: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131: $as_echo "$ac_try_echo"; } >&5
4132: (eval "$ac_try") 2>&5
4133: ac_status=$?
4134: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135: test $ac_status = 0; };
4136: then
4137: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4138: if test "x$CC" != xcc; then
4139: # Test first that cc exists at all.
4140: if { ac_try='cc -c conftest.$ac_ext >&5'
4141: { { case "(($ac_try" in
4142: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143: *) ac_try_echo=$ac_try;;
4144: esac
4145: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146: $as_echo "$ac_try_echo"; } >&5
4147: (eval "$ac_try") 2>&5
4148: ac_status=$?
4149: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150: test $ac_status = 0; }; }; then
4151: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4152: rm -f conftest2.*
4153: if { { case "(($ac_try" in
4154: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155: *) ac_try_echo=$ac_try;;
4156: esac
4157: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4158: $as_echo "$ac_try_echo"; } >&5
4159: (eval "$ac_try") 2>&5
4160: ac_status=$?
4161: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162: test $ac_status = 0; } &&
4163: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165: *) ac_try_echo=$ac_try;;
4166: esac
4167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4168: $as_echo "$ac_try_echo"; } >&5
4169: (eval "$ac_try") 2>&5
4170: ac_status=$?
4171: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172: test $ac_status = 0; };
4173: then
4174: # cc works too.
4175: :
4176: else
4177: # cc exists but doesn't like -o.
4178: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4179: fi
4180: fi
4181: fi
4182: else
4183: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4184: fi
4185: rm -f core conftest*
4186:
4187: fi
4188: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4190: $as_echo "yes" >&6; }
4191: else
4192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193: $as_echo "no" >&6; }
4194:
4195: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4196:
4197: fi
4198:
4199: # FIXME: we rely on the cache variable name because
4200: # there is no other way.
4201: set dummy $CC
4202: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4203: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4204: if test "$am_t" != yes; then
4205: # Losing compiler, so override with the script.
4206: # FIXME: It is wrong to rewrite CC.
4207: # But if we don't then we get into trouble of one sort or another.
4208: # A longer-term fix would be to have automake use am__CC in this case,
4209: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4210: CC="$am_aux_dir/compile $CC"
4211: fi
4212:
4213:
4214:
4215: if test "$GCC" != yes; then
4216: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
4217: fi
4218:
4219: ac_ext=cpp
4220: ac_cpp='$CXXCPP $CPPFLAGS'
4221: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4224: if test -z "$CXX"; then
4225: if test -n "$CCC"; then
4226: CXX=$CCC
4227: else
4228: if test -n "$ac_tool_prefix"; then
4229: for ac_prog in g++
4230: do
4231: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4232: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234: $as_echo_n "checking for $ac_word... " >&6; }
4235: if ${ac_cv_prog_CXX+:} false; then :
4236: $as_echo_n "(cached) " >&6
4237: else
4238: if test -n "$CXX"; then
4239: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4240: else
4241: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242: for as_dir in $PATH
4243: do
4244: IFS=$as_save_IFS
4245: test -z "$as_dir" && as_dir=.
4246: for ac_exec_ext in '' $ac_executable_extensions; do
4247: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4249: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250: break 2
4251: fi
4252: done
4253: done
4254: IFS=$as_save_IFS
4255:
4256: fi
4257: fi
4258: CXX=$ac_cv_prog_CXX
4259: if test -n "$CXX"; then
4260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4261: $as_echo "$CXX" >&6; }
4262: else
4263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264: $as_echo "no" >&6; }
4265: fi
4266:
4267:
4268: test -n "$CXX" && break
4269: done
4270: fi
4271: if test -z "$CXX"; then
4272: ac_ct_CXX=$CXX
4273: for ac_prog in g++
4274: do
4275: # Extract the first word of "$ac_prog", so it can be a program name with args.
4276: set dummy $ac_prog; ac_word=$2
4277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278: $as_echo_n "checking for $ac_word... " >&6; }
4279: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4280: $as_echo_n "(cached) " >&6
4281: else
4282: if test -n "$ac_ct_CXX"; then
4283: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4284: else
4285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286: for as_dir in $PATH
4287: do
4288: IFS=$as_save_IFS
4289: test -z "$as_dir" && as_dir=.
4290: for ac_exec_ext in '' $ac_executable_extensions; do
4291: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292: ac_cv_prog_ac_ct_CXX="$ac_prog"
4293: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294: break 2
4295: fi
4296: done
4297: done
4298: IFS=$as_save_IFS
4299:
4300: fi
4301: fi
4302: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4303: if test -n "$ac_ct_CXX"; then
4304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4305: $as_echo "$ac_ct_CXX" >&6; }
4306: else
4307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308: $as_echo "no" >&6; }
4309: fi
4310:
4311:
4312: test -n "$ac_ct_CXX" && break
4313: done
4314:
4315: if test "x$ac_ct_CXX" = x; then
4316: CXX="g++"
4317: else
4318: case $cross_compiling:$ac_tool_warned in
4319: yes:)
4320: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4321: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4322: ac_tool_warned=yes ;;
4323: esac
4324: CXX=$ac_ct_CXX
4325: fi
4326: fi
4327:
4328: fi
4329: fi
4330: # Provide some information about the compiler.
4331: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4332: set X $ac_compile
4333: ac_compiler=$2
4334: for ac_option in --version -v -V -qversion; do
4335: { { ac_try="$ac_compiler $ac_option >&5"
4336: case "(($ac_try" in
4337: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338: *) ac_try_echo=$ac_try;;
4339: esac
4340: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341: $as_echo "$ac_try_echo"; } >&5
4342: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4343: ac_status=$?
4344: if test -s conftest.err; then
4345: sed '10a\
4346: ... rest of stderr output deleted ...
4347: 10q' conftest.err >conftest.er1
4348: cat conftest.er1 >&5
4349: fi
4350: rm -f conftest.er1 conftest.err
4351: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352: test $ac_status = 0; }
4353: done
4354:
4355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4356: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4357: if ${ac_cv_cxx_compiler_gnu+:} false; then :
4358: $as_echo_n "(cached) " >&6
4359: else
4360: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361: /* end confdefs.h. */
4362:
4363: int
4364: main ()
4365: {
4366: #ifndef __GNUC__
4367: choke me
4368: #endif
4369:
4370: ;
4371: return 0;
4372: }
4373: _ACEOF
4374: if ac_fn_cxx_try_compile "$LINENO"; then :
4375: ac_compiler_gnu=yes
4376: else
4377: ac_compiler_gnu=no
4378: fi
4379: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4381:
4382: fi
4383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4384: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4385: if test $ac_compiler_gnu = yes; then
4386: GXX=yes
4387: else
4388: GXX=
4389: fi
4390: ac_test_CXXFLAGS=${CXXFLAGS+set}
4391: ac_save_CXXFLAGS=$CXXFLAGS
4392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4393: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4394: if ${ac_cv_prog_cxx_g+:} false; then :
4395: $as_echo_n "(cached) " >&6
4396: else
4397: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4398: ac_cxx_werror_flag=yes
4399: ac_cv_prog_cxx_g=no
4400: CXXFLAGS="-g"
4401: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402: /* end confdefs.h. */
4403:
4404: int
4405: main ()
4406: {
4407:
4408: ;
4409: return 0;
4410: }
4411: _ACEOF
4412: if ac_fn_cxx_try_compile "$LINENO"; then :
4413: ac_cv_prog_cxx_g=yes
4414: else
4415: CXXFLAGS=""
4416: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417: /* end confdefs.h. */
4418:
4419: int
4420: main ()
4421: {
4422:
4423: ;
4424: return 0;
4425: }
4426: _ACEOF
4427: if ac_fn_cxx_try_compile "$LINENO"; then :
4428:
4429: else
4430: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4431: CXXFLAGS="-g"
4432: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433: /* end confdefs.h. */
4434:
4435: int
4436: main ()
4437: {
4438:
4439: ;
4440: return 0;
4441: }
4442: _ACEOF
4443: if ac_fn_cxx_try_compile "$LINENO"; then :
4444: ac_cv_prog_cxx_g=yes
4445: fi
4446: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447: fi
4448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449: fi
4450: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4452: fi
4453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4454: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4455: if test "$ac_test_CXXFLAGS" = set; then
4456: CXXFLAGS=$ac_save_CXXFLAGS
4457: elif test $ac_cv_prog_cxx_g = yes; then
4458: if test "$GXX" = yes; then
4459: CXXFLAGS="-g -O2"
4460: else
4461: CXXFLAGS="-g"
4462: fi
4463: else
4464: if test "$GXX" = yes; then
4465: CXXFLAGS="-O2"
4466: else
4467: CXXFLAGS=
4468: fi
4469: fi
4470: ac_ext=c
4471: ac_cpp='$CPP $CPPFLAGS'
4472: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475:
4476: depcc="$CXX" am_compiler_list=
4477:
4478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4479: $as_echo_n "checking dependency style of $depcc... " >&6; }
4480: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4481: $as_echo_n "(cached) " >&6
4482: else
4483: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4484: # We make a subdir and do the tests there. Otherwise we can end up
4485: # making bogus files that we don't know about and never remove. For
4486: # instance it was reported that on HP-UX the gcc test will end up
4487: # making a dummy file named `D' -- because `-MD' means `put the output
4488: # in D'.
4489: mkdir conftest.dir
4490: # Copy depcomp to subdir because otherwise we won't find it if we're
4491: # using a relative directory.
4492: cp "$am_depcomp" conftest.dir
4493: cd conftest.dir
4494: # We will build objects and dependencies in a subdirectory because
4495: # it helps to detect inapplicable dependency modes. For instance
4496: # both Tru64's cc and ICC support -MD to output dependencies as a
4497: # side effect of compilation, but ICC will put the dependencies in
4498: # the current directory while Tru64 will put them in the object
4499: # directory.
4500: mkdir sub
4501:
4502: am_cv_CXX_dependencies_compiler_type=none
4503: if test "$am_compiler_list" = ""; then
4504: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4505: fi
4506: am__universal=false
4507: case " $depcc " in #(
4508: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4509: esac
4510:
4511: for depmode in $am_compiler_list; do
4512: # Setup a source with many dependencies, because some compilers
4513: # like to wrap large dependency lists on column 80 (with \), and
4514: # we should not choose a depcomp mode which is confused by this.
4515: #
4516: # We need to recreate these files for each test, as the compiler may
4517: # overwrite some of them when testing with obscure command lines.
4518: # This happens at least with the AIX C compiler.
4519: : > sub/conftest.c
4520: for i in 1 2 3 4 5 6; do
4521: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4522: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4523: # Solaris 8's {/usr,}/bin/sh.
4524: touch sub/conftst$i.h
4525: done
4526: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4527:
4528: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4529: # mode. It turns out that the SunPro C++ compiler does not properly
4530: # handle `-M -o', and we need to detect this. Also, some Intel
4531: # versions had trouble with output in subdirs
4532: am__obj=sub/conftest.${OBJEXT-o}
4533: am__minus_obj="-o $am__obj"
4534: case $depmode in
4535: gcc)
4536: # This depmode causes a compiler race in universal mode.
4537: test "$am__universal" = false || continue
4538: ;;
4539: nosideeffect)
4540: # after this tag, mechanisms are not by side-effect, so they'll
4541: # only be used when explicitly requested
4542: if test "x$enable_dependency_tracking" = xyes; then
4543: continue
4544: else
4545: break
4546: fi
4547: ;;
4548: msvisualcpp | msvcmsys)
4549: # This compiler won't grok `-c -o', but also, the minuso test has
4550: # not run yet. These depmodes are late enough in the game, and
4551: # so weak that their functioning should not be impacted.
4552: am__obj=conftest.${OBJEXT-o}
4553: am__minus_obj=
4554: ;;
4555: none) break ;;
4556: esac
4557: if depmode=$depmode \
4558: source=sub/conftest.c object=$am__obj \
4559: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4560: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4561: >/dev/null 2>conftest.err &&
4562: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4563: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4564: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4565: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4566: # icc doesn't choke on unknown options, it will just issue warnings
4567: # or remarks (even with -Werror). So we grep stderr for any message
4568: # that says an option was ignored or not supported.
4569: # When given -MP, icc 7.0 and 7.1 complain thusly:
4570: # icc: Command line warning: ignoring option '-M'; no argument required
4571: # The diagnosis changed in icc 8.0:
4572: # icc: Command line remark: option '-MP' not supported
4573: if (grep 'ignoring option' conftest.err ||
4574: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4575: am_cv_CXX_dependencies_compiler_type=$depmode
4576: break
4577: fi
4578: fi
4579: done
4580:
4581: cd ..
4582: rm -rf conftest.dir
4583: else
4584: am_cv_CXX_dependencies_compiler_type=none
4585: fi
4586:
4587: fi
4588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4589: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4590: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4591:
4592: if
4593: test "x$enable_dependency_tracking" != xno \
4594: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4595: am__fastdepCXX_TRUE=
4596: am__fastdepCXX_FALSE='#'
4597: else
4598: am__fastdepCXX_TRUE='#'
4599: am__fastdepCXX_FALSE=
4600: fi
4601:
4602:
4603:
4604: if test "$CXX" != "g++"; then
4605: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
4606: fi
4607:
4608: if test x"$CXX" != x""; then
4609: GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4610: awk -F. '{ printf("%s", $1);}'`
4611: GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4612: awk -F. '{ printf("%s", $2);}'`
4613: if test $GCC_VERSION_MAJEURE -ge 5; then
4614: OPTIMISATION_GXX=-O3
4615: else
4616: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4617: OPTIMISATION_GXX=-O3
4618: else
4619: if test $GCC_VERSION_MAJEURE -ge 3; then
4620: OPTIMISATION_GXX=-O2
4621: else
4622: as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
4623: fi
4624: fi
4625: fi
4626: fi
4627:
4628: ac_ext=f
4629: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4630: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4632: if test -n "$ac_tool_prefix"; then
4633: for ac_prog in gfortran
4634: do
4635: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638: $as_echo_n "checking for $ac_word... " >&6; }
4639: if ${ac_cv_prog_F77+:} false; then :
4640: $as_echo_n "(cached) " >&6
4641: else
4642: if test -n "$F77"; then
4643: ac_cv_prog_F77="$F77" # Let the user override the test.
4644: else
4645: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646: for as_dir in $PATH
4647: do
4648: IFS=$as_save_IFS
4649: test -z "$as_dir" && as_dir=.
4650: for ac_exec_ext in '' $ac_executable_extensions; do
4651: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4653: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654: break 2
4655: fi
4656: done
4657: done
4658: IFS=$as_save_IFS
4659:
4660: fi
4661: fi
4662: F77=$ac_cv_prog_F77
4663: if test -n "$F77"; then
4664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4665: $as_echo "$F77" >&6; }
4666: else
4667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668: $as_echo "no" >&6; }
4669: fi
4670:
4671:
4672: test -n "$F77" && break
4673: done
4674: fi
4675: if test -z "$F77"; then
4676: ac_ct_F77=$F77
4677: for ac_prog in gfortran
4678: do
4679: # Extract the first word of "$ac_prog", so it can be a program name with args.
4680: set dummy $ac_prog; ac_word=$2
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682: $as_echo_n "checking for $ac_word... " >&6; }
4683: if ${ac_cv_prog_ac_ct_F77+:} false; then :
4684: $as_echo_n "(cached) " >&6
4685: else
4686: if test -n "$ac_ct_F77"; then
4687: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4688: else
4689: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690: for as_dir in $PATH
4691: do
4692: IFS=$as_save_IFS
4693: test -z "$as_dir" && as_dir=.
4694: for ac_exec_ext in '' $ac_executable_extensions; do
4695: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696: ac_cv_prog_ac_ct_F77="$ac_prog"
4697: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698: break 2
4699: fi
4700: done
4701: done
4702: IFS=$as_save_IFS
4703:
4704: fi
4705: fi
4706: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4707: if test -n "$ac_ct_F77"; then
4708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4709: $as_echo "$ac_ct_F77" >&6; }
4710: else
4711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712: $as_echo "no" >&6; }
4713: fi
4714:
4715:
4716: test -n "$ac_ct_F77" && break
4717: done
4718:
4719: if test "x$ac_ct_F77" = x; then
4720: F77=""
4721: else
4722: case $cross_compiling:$ac_tool_warned in
4723: yes:)
4724: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726: ac_tool_warned=yes ;;
4727: esac
4728: F77=$ac_ct_F77
4729: fi
4730: fi
4731:
4732:
4733: # Provide some information about the compiler.
4734: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4735: set X $ac_compile
4736: ac_compiler=$2
4737: for ac_option in --version -v -V -qversion; do
4738: { { ac_try="$ac_compiler $ac_option >&5"
4739: case "(($ac_try" in
4740: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741: *) ac_try_echo=$ac_try;;
4742: esac
4743: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4744: $as_echo "$ac_try_echo"; } >&5
4745: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4746: ac_status=$?
4747: if test -s conftest.err; then
4748: sed '10a\
4749: ... rest of stderr output deleted ...
4750: 10q' conftest.err >conftest.er1
4751: cat conftest.er1 >&5
4752: fi
4753: rm -f conftest.er1 conftest.err
4754: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4755: test $ac_status = 0; }
4756: done
4757: rm -f a.out
4758:
4759: # If we don't use `.F' as extension, the preprocessor is not run on the
4760: # input file. (Note that this only needs to work for GNU compilers.)
4761: ac_save_ext=$ac_ext
4762: ac_ext=F
4763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4764: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4765: if ${ac_cv_f77_compiler_gnu+:} false; then :
4766: $as_echo_n "(cached) " >&6
4767: else
4768: cat > conftest.$ac_ext <<_ACEOF
4769: program main
4770: #ifndef __GNUC__
4771: choke me
4772: #endif
4773:
4774: end
4775: _ACEOF
4776: if ac_fn_f77_try_compile "$LINENO"; then :
4777: ac_compiler_gnu=yes
4778: else
4779: ac_compiler_gnu=no
4780: fi
4781: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4783:
4784: fi
4785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4786: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4787: ac_ext=$ac_save_ext
4788: ac_test_FFLAGS=${FFLAGS+set}
4789: ac_save_FFLAGS=$FFLAGS
4790: FFLAGS=
4791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4792: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4793: if ${ac_cv_prog_f77_g+:} false; then :
4794: $as_echo_n "(cached) " >&6
4795: else
4796: FFLAGS=-g
4797: cat > conftest.$ac_ext <<_ACEOF
4798: program main
4799:
4800: end
4801: _ACEOF
4802: if ac_fn_f77_try_compile "$LINENO"; then :
4803: ac_cv_prog_f77_g=yes
4804: else
4805: ac_cv_prog_f77_g=no
4806: fi
4807: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808:
4809: fi
4810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4811: $as_echo "$ac_cv_prog_f77_g" >&6; }
4812: if test "$ac_test_FFLAGS" = set; then
4813: FFLAGS=$ac_save_FFLAGS
4814: elif test $ac_cv_prog_f77_g = yes; then
4815: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4816: FFLAGS="-g -O2"
4817: else
4818: FFLAGS="-g"
4819: fi
4820: else
4821: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4822: FFLAGS="-O2"
4823: else
4824: FFLAGS=
4825: fi
4826: fi
4827:
4828: if test $ac_compiler_gnu = yes; then
4829: G77=yes
4830: else
4831: G77=
4832: fi
4833: ac_ext=c
4834: ac_cpp='$CPP $CPPFLAGS'
4835: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838:
4839:
4840: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4841: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
4842: fi
4843:
4844: ac_ext=${ac_fc_srcext-f}
4845: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4846: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4847: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4848: if test -n "$ac_tool_prefix"; then
4849: for ac_prog in gfortran
4850: do
4851: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854: $as_echo_n "checking for $ac_word... " >&6; }
4855: if ${ac_cv_prog_FC+:} false; then :
4856: $as_echo_n "(cached) " >&6
4857: else
4858: if test -n "$FC"; then
4859: ac_cv_prog_FC="$FC" # Let the user override the test.
4860: else
4861: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862: for as_dir in $PATH
4863: do
4864: IFS=$as_save_IFS
4865: test -z "$as_dir" && as_dir=.
4866: for ac_exec_ext in '' $ac_executable_extensions; do
4867: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4869: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870: break 2
4871: fi
4872: done
4873: done
4874: IFS=$as_save_IFS
4875:
4876: fi
4877: fi
4878: FC=$ac_cv_prog_FC
4879: if test -n "$FC"; then
4880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4881: $as_echo "$FC" >&6; }
4882: else
4883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884: $as_echo "no" >&6; }
4885: fi
4886:
4887:
4888: test -n "$FC" && break
4889: done
4890: fi
4891: if test -z "$FC"; then
4892: ac_ct_FC=$FC
4893: for ac_prog in gfortran
4894: do
4895: # Extract the first word of "$ac_prog", so it can be a program name with args.
4896: set dummy $ac_prog; ac_word=$2
4897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898: $as_echo_n "checking for $ac_word... " >&6; }
4899: if ${ac_cv_prog_ac_ct_FC+:} false; then :
4900: $as_echo_n "(cached) " >&6
4901: else
4902: if test -n "$ac_ct_FC"; then
4903: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4904: else
4905: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906: for as_dir in $PATH
4907: do
4908: IFS=$as_save_IFS
4909: test -z "$as_dir" && as_dir=.
4910: for ac_exec_ext in '' $ac_executable_extensions; do
4911: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912: ac_cv_prog_ac_ct_FC="$ac_prog"
4913: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914: break 2
4915: fi
4916: done
4917: done
4918: IFS=$as_save_IFS
4919:
4920: fi
4921: fi
4922: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4923: if test -n "$ac_ct_FC"; then
4924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4925: $as_echo "$ac_ct_FC" >&6; }
4926: else
4927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928: $as_echo "no" >&6; }
4929: fi
4930:
4931:
4932: test -n "$ac_ct_FC" && break
4933: done
4934:
4935: if test "x$ac_ct_FC" = x; then
4936: FC=""
4937: else
4938: case $cross_compiling:$ac_tool_warned in
4939: yes:)
4940: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942: ac_tool_warned=yes ;;
4943: esac
4944: FC=$ac_ct_FC
4945: fi
4946: fi
4947:
4948:
4949: # Provide some information about the compiler.
4950: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4951: set X $ac_compile
4952: ac_compiler=$2
4953: for ac_option in --version -v -V -qversion; do
4954: { { ac_try="$ac_compiler $ac_option >&5"
4955: case "(($ac_try" in
4956: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957: *) ac_try_echo=$ac_try;;
4958: esac
4959: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960: $as_echo "$ac_try_echo"; } >&5
4961: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4962: ac_status=$?
4963: if test -s conftest.err; then
4964: sed '10a\
4965: ... rest of stderr output deleted ...
4966: 10q' conftest.err >conftest.er1
4967: cat conftest.er1 >&5
4968: fi
4969: rm -f conftest.er1 conftest.err
4970: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4971: test $ac_status = 0; }
4972: done
4973: rm -f a.out
4974:
4975: # If we don't use `.F' as extension, the preprocessor is not run on the
4976: # input file. (Note that this only needs to work for GNU compilers.)
4977: ac_save_ext=$ac_ext
4978: ac_ext=F
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4980: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4981: if ${ac_cv_fc_compiler_gnu+:} false; then :
4982: $as_echo_n "(cached) " >&6
4983: else
4984: cat > conftest.$ac_ext <<_ACEOF
4985: program main
4986: #ifndef __GNUC__
4987: choke me
4988: #endif
4989:
4990: end
4991: _ACEOF
4992: if ac_fn_fc_try_compile "$LINENO"; then :
4993: ac_compiler_gnu=yes
4994: else
4995: ac_compiler_gnu=no
4996: fi
4997: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4999:
5000: fi
5001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5002: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5003: ac_ext=$ac_save_ext
5004: ac_test_FCFLAGS=${FCFLAGS+set}
5005: ac_save_FCFLAGS=$FCFLAGS
5006: FCFLAGS=
5007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5008: $as_echo_n "checking whether $FC accepts -g... " >&6; }
5009: if ${ac_cv_prog_fc_g+:} false; then :
5010: $as_echo_n "(cached) " >&6
5011: else
5012: FCFLAGS=-g
5013: cat > conftest.$ac_ext <<_ACEOF
5014: program main
5015:
5016: end
5017: _ACEOF
5018: if ac_fn_fc_try_compile "$LINENO"; then :
5019: ac_cv_prog_fc_g=yes
5020: else
5021: ac_cv_prog_fc_g=no
5022: fi
5023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024:
5025: fi
5026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5027: $as_echo "$ac_cv_prog_fc_g" >&6; }
5028: if test "$ac_test_FCFLAGS" = set; then
5029: FCFLAGS=$ac_save_FCFLAGS
5030: elif test $ac_cv_prog_fc_g = yes; then
5031: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5032: FCFLAGS="-g -O2"
5033: else
5034: FCFLAGS="-g"
5035: fi
5036: else
5037: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5038: FCFLAGS="-O2"
5039: else
5040: FCFLAGS=
5041: fi
5042: fi
5043:
5044: ac_ext=c
5045: ac_cpp='$CPP $CPPFLAGS'
5046: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049:
5050:
5051: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
5052: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
5053: fi
5054:
5055: if test x"$FC" != x""; then
5056: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5057: awk -F. '{ printf("%s", $1);}'`
5058: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5059: awk -F. '{ printf("%s", $2);}'`
5060: if test $GCC_VERSION_MAJEURE -ge 5; then
5061: OPTIMISATION_F=-O3
5062: else
5063: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
5064: OPTIMISATION_F=-O3
5065: else
5066: if test $GCC_VERSION_MAJEURE -ge 3; then
5067: OPTIMISATION_F=-O2
5068: else
5069: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
5070: fi
5071: fi
5072: fi
5073: fi
5074:
5075:
5076: ac_ext=c
5077: ac_cpp='$CPP $CPPFLAGS'
5078: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5082: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5083: # On Suns, sometimes $CPP names a directory.
5084: if test -n "$CPP" && test -d "$CPP"; then
5085: CPP=
5086: fi
5087: if test -z "$CPP"; then
5088: if ${ac_cv_prog_CPP+:} false; then :
5089: $as_echo_n "(cached) " >&6
5090: else
5091: # Double quotes because CPP needs to be expanded
5092: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5093: do
5094: ac_preproc_ok=false
5095: for ac_c_preproc_warn_flag in '' yes
5096: do
5097: # Use a header file that comes with gcc, so configuring glibc
5098: # with a fresh cross-compiler works.
5099: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100: # <limits.h> exists even on freestanding compilers.
5101: # On the NeXT, cc -E runs the code through the compiler's parser,
5102: # not just through cpp. "Syntax error" is here to catch this case.
5103: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104: /* end confdefs.h. */
5105: #ifdef __STDC__
5106: # include <limits.h>
5107: #else
5108: # include <assert.h>
5109: #endif
5110: Syntax error
5111: _ACEOF
5112: if ac_fn_c_try_cpp "$LINENO"; then :
5113:
5114: else
5115: # Broken: fails on valid input.
5116: continue
5117: fi
5118: rm -f conftest.err conftest.i conftest.$ac_ext
5119:
5120: # OK, works on sane cases. Now check whether nonexistent headers
5121: # can be detected and how.
5122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123: /* end confdefs.h. */
5124: #include <ac_nonexistent.h>
5125: _ACEOF
5126: if ac_fn_c_try_cpp "$LINENO"; then :
5127: # Broken: success on invalid input.
5128: continue
5129: else
5130: # Passes both tests.
5131: ac_preproc_ok=:
5132: break
5133: fi
5134: rm -f conftest.err conftest.i conftest.$ac_ext
5135:
5136: done
5137: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138: rm -f conftest.i conftest.err conftest.$ac_ext
5139: if $ac_preproc_ok; then :
5140: break
5141: fi
5142:
5143: done
5144: ac_cv_prog_CPP=$CPP
5145:
5146: fi
5147: CPP=$ac_cv_prog_CPP
5148: else
5149: ac_cv_prog_CPP=$CPP
5150: fi
5151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5152: $as_echo "$CPP" >&6; }
5153: ac_preproc_ok=false
5154: for ac_c_preproc_warn_flag in '' yes
5155: do
5156: # Use a header file that comes with gcc, so configuring glibc
5157: # with a fresh cross-compiler works.
5158: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159: # <limits.h> exists even on freestanding compilers.
5160: # On the NeXT, cc -E runs the code through the compiler's parser,
5161: # not just through cpp. "Syntax error" is here to catch this case.
5162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163: /* end confdefs.h. */
5164: #ifdef __STDC__
5165: # include <limits.h>
5166: #else
5167: # include <assert.h>
5168: #endif
5169: Syntax error
5170: _ACEOF
5171: if ac_fn_c_try_cpp "$LINENO"; then :
5172:
5173: else
5174: # Broken: fails on valid input.
5175: continue
5176: fi
5177: rm -f conftest.err conftest.i conftest.$ac_ext
5178:
5179: # OK, works on sane cases. Now check whether nonexistent headers
5180: # can be detected and how.
5181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182: /* end confdefs.h. */
5183: #include <ac_nonexistent.h>
5184: _ACEOF
5185: if ac_fn_c_try_cpp "$LINENO"; then :
5186: # Broken: success on invalid input.
5187: continue
5188: else
5189: # Passes both tests.
5190: ac_preproc_ok=:
5191: break
5192: fi
5193: rm -f conftest.err conftest.i conftest.$ac_ext
5194:
5195: done
5196: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197: rm -f conftest.i conftest.err conftest.$ac_ext
5198: if $ac_preproc_ok; then :
5199:
5200: else
5201: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5202: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5203: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5204: See \`config.log' for more details" "$LINENO" 5; }
5205: fi
5206:
5207: ac_ext=c
5208: ac_cpp='$CPP $CPPFLAGS'
5209: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212:
5213:
5214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5215: $as_echo_n "checking for X... " >&6; }
5216:
5217:
5218: # Check whether --with-x was given.
5219: if test "${with_x+set}" = set; then :
5220: withval=$with_x;
5221: fi
5222:
5223: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5224: if test "x$with_x" = xno; then
5225: # The user explicitly disabled X.
5226: have_x=disabled
5227: else
5228: case $x_includes,$x_libraries in #(
5229: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5230: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5231: $as_echo_n "(cached) " >&6
5232: else
5233: # One or both of the vars are not set, and there is no cached value.
5234: ac_x_includes=no ac_x_libraries=no
5235: rm -f -r conftest.dir
5236: if mkdir conftest.dir; then
5237: cd conftest.dir
5238: cat >Imakefile <<'_ACEOF'
5239: incroot:
5240: @echo incroot='${INCROOT}'
5241: usrlibdir:
5242: @echo usrlibdir='${USRLIBDIR}'
5243: libdir:
5244: @echo libdir='${LIBDIR}'
5245: _ACEOF
5246: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5247: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5248: for ac_var in incroot usrlibdir libdir; do
5249: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5250: done
5251: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5252: for ac_extension in a so sl dylib la dll; do
5253: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5254: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5255: ac_im_usrlibdir=$ac_im_libdir; break
5256: fi
5257: done
5258: # Screen out bogus values from the imake configuration. They are
5259: # bogus both because they are the default anyway, and because
5260: # using them would break gcc on systems where it needs fixed includes.
5261: case $ac_im_incroot in
5262: /usr/include) ac_x_includes= ;;
5263: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5264: esac
5265: case $ac_im_usrlibdir in
5266: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5267: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5268: esac
5269: fi
5270: cd ..
5271: rm -f -r conftest.dir
5272: fi
5273:
5274: # Standard set of common directories for X headers.
5275: # Check X11 before X11Rn because it is often a symlink to the current release.
5276: ac_x_header_dirs='
5277: /usr/X11/include
5278: /usr/X11R7/include
5279: /usr/X11R6/include
5280: /usr/X11R5/include
5281: /usr/X11R4/include
5282:
5283: /usr/include/X11
5284: /usr/include/X11R7
5285: /usr/include/X11R6
5286: /usr/include/X11R5
5287: /usr/include/X11R4
5288:
5289: /usr/local/X11/include
5290: /usr/local/X11R7/include
5291: /usr/local/X11R6/include
5292: /usr/local/X11R5/include
5293: /usr/local/X11R4/include
5294:
5295: /usr/local/include/X11
5296: /usr/local/include/X11R7
5297: /usr/local/include/X11R6
5298: /usr/local/include/X11R5
5299: /usr/local/include/X11R4
5300:
5301: /usr/X386/include
5302: /usr/x386/include
5303: /usr/XFree86/include/X11
5304:
5305: /usr/include
5306: /usr/local/include
5307: /usr/unsupported/include
5308: /usr/athena/include
5309: /usr/local/x11r5/include
5310: /usr/lpp/Xamples/include
5311:
5312: /usr/openwin/include
5313: /usr/openwin/share/include'
5314:
5315: if test "$ac_x_includes" = no; then
5316: # Guess where to find include files, by looking for Xlib.h.
5317: # First, try using that file with no special directory specified.
5318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319: /* end confdefs.h. */
5320: #include <X11/Xlib.h>
5321: _ACEOF
5322: if ac_fn_c_try_cpp "$LINENO"; then :
5323: # We can compile using X headers with no special include directory.
5324: ac_x_includes=
5325: else
5326: for ac_dir in $ac_x_header_dirs; do
5327: if test -r "$ac_dir/X11/Xlib.h"; then
5328: ac_x_includes=$ac_dir
5329: break
5330: fi
5331: done
5332: fi
5333: rm -f conftest.err conftest.i conftest.$ac_ext
5334: fi # $ac_x_includes = no
5335:
5336: if test "$ac_x_libraries" = no; then
5337: # Check for the libraries.
5338: # See if we find them without any special options.
5339: # Don't add to $LIBS permanently.
5340: ac_save_LIBS=$LIBS
5341: LIBS="-lX11 $LIBS"
5342: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343: /* end confdefs.h. */
5344: #include <X11/Xlib.h>
5345: int
5346: main ()
5347: {
5348: XrmInitialize ()
5349: ;
5350: return 0;
5351: }
5352: _ACEOF
5353: if ac_fn_c_try_link "$LINENO"; then :
5354: LIBS=$ac_save_LIBS
5355: # We can link X programs with no special library path.
5356: ac_x_libraries=
5357: else
5358: LIBS=$ac_save_LIBS
5359: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5360: do
5361: # Don't even attempt the hair of trying to link an X program!
5362: for ac_extension in a so sl dylib la dll; do
5363: if test -r "$ac_dir/libX11.$ac_extension"; then
5364: ac_x_libraries=$ac_dir
5365: break 2
5366: fi
5367: done
5368: done
5369: fi
5370: rm -f core conftest.err conftest.$ac_objext \
5371: conftest$ac_exeext conftest.$ac_ext
5372: fi # $ac_x_libraries = no
5373:
5374: case $ac_x_includes,$ac_x_libraries in #(
5375: no,* | *,no | *\'*)
5376: # Didn't find X, or a directory has "'" in its name.
5377: ac_cv_have_x="have_x=no";; #(
5378: *)
5379: # Record where we found X for the cache.
5380: ac_cv_have_x="have_x=yes\
5381: ac_x_includes='$ac_x_includes'\
5382: ac_x_libraries='$ac_x_libraries'"
5383: esac
5384: fi
5385: ;; #(
5386: *) have_x=yes;;
5387: esac
5388: eval "$ac_cv_have_x"
5389: fi # $with_x != no
5390:
5391: if test "$have_x" != yes; then
5392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5393: $as_echo "$have_x" >&6; }
5394: no_x=yes
5395: else
5396: # If each of the values was on the command line, it overrides each guess.
5397: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5398: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5399: # Update the cache value to reflect the command line values.
5400: ac_cv_have_x="have_x=yes\
5401: ac_x_includes='$x_includes'\
5402: ac_x_libraries='$x_libraries'"
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5404: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5405: fi
5406:
5407: if test "$no_x" = yes; then
5408: # Not all programs may use this symbol, but it does not hurt to define it.
5409:
5410: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5411:
5412: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5413: else
5414: if test -n "$x_includes"; then
5415: X_CFLAGS="$X_CFLAGS -I$x_includes"
5416: fi
5417:
5418: # It would also be nice to do this for all -L options, not just this one.
5419: if test -n "$x_libraries"; then
5420: X_LIBS="$X_LIBS -L$x_libraries"
5421: # For Solaris; some versions of Sun CC require a space after -R and
5422: # others require no space. Words are not sufficient . . . .
5423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5424: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5425: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5426: ac_xsave_c_werror_flag=$ac_c_werror_flag
5427: ac_c_werror_flag=yes
5428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429: /* end confdefs.h. */
5430:
5431: int
5432: main ()
5433: {
5434:
5435: ;
5436: return 0;
5437: }
5438: _ACEOF
5439: if ac_fn_c_try_link "$LINENO"; then :
5440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441: $as_echo "no" >&6; }
5442: X_LIBS="$X_LIBS -R$x_libraries"
5443: else
5444: LIBS="$ac_xsave_LIBS -R $x_libraries"
5445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446: /* end confdefs.h. */
5447:
5448: int
5449: main ()
5450: {
5451:
5452: ;
5453: return 0;
5454: }
5455: _ACEOF
5456: if ac_fn_c_try_link "$LINENO"; then :
5457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458: $as_echo "yes" >&6; }
5459: X_LIBS="$X_LIBS -R $x_libraries"
5460: else
5461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5462: $as_echo "neither works" >&6; }
5463: fi
5464: rm -f core conftest.err conftest.$ac_objext \
5465: conftest$ac_exeext conftest.$ac_ext
5466: fi
5467: rm -f core conftest.err conftest.$ac_objext \
5468: conftest$ac_exeext conftest.$ac_ext
5469: ac_c_werror_flag=$ac_xsave_c_werror_flag
5470: LIBS=$ac_xsave_LIBS
5471: fi
5472:
5473: # Check for system-dependent libraries X programs must link with.
5474: # Do this before checking for the system-independent R6 libraries
5475: # (-lICE), since we may need -lsocket or whatever for X linking.
5476:
5477: if test "$ISC" = yes; then
5478: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5479: else
5480: # Martyn Johnson says this is needed for Ultrix, if the X
5481: # libraries were built with DECnet support. And Karl Berry says
5482: # the Alpha needs dnet_stub (dnet does not exist).
5483: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5484: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485: /* end confdefs.h. */
5486:
5487: /* Override any GCC internal prototype to avoid an error.
5488: Use char because int might match the return type of a GCC
5489: builtin and then its argument prototype would still apply. */
5490: #ifdef __cplusplus
5491: extern "C"
5492: #endif
5493: char XOpenDisplay ();
5494: int
5495: main ()
5496: {
5497: return XOpenDisplay ();
5498: ;
5499: return 0;
5500: }
5501: _ACEOF
5502: if ac_fn_c_try_link "$LINENO"; then :
5503:
5504: else
5505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5506: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5507: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5508: $as_echo_n "(cached) " >&6
5509: else
5510: ac_check_lib_save_LIBS=$LIBS
5511: LIBS="-ldnet $LIBS"
5512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513: /* end confdefs.h. */
5514:
5515: /* Override any GCC internal prototype to avoid an error.
5516: Use char because int might match the return type of a GCC
5517: builtin and then its argument prototype would still apply. */
5518: #ifdef __cplusplus
5519: extern "C"
5520: #endif
5521: char dnet_ntoa ();
5522: int
5523: main ()
5524: {
5525: return dnet_ntoa ();
5526: ;
5527: return 0;
5528: }
5529: _ACEOF
5530: if ac_fn_c_try_link "$LINENO"; then :
5531: ac_cv_lib_dnet_dnet_ntoa=yes
5532: else
5533: ac_cv_lib_dnet_dnet_ntoa=no
5534: fi
5535: rm -f core conftest.err conftest.$ac_objext \
5536: conftest$ac_exeext conftest.$ac_ext
5537: LIBS=$ac_check_lib_save_LIBS
5538: fi
5539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5540: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5541: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5542: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5543: fi
5544:
5545: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5547: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5548: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5549: $as_echo_n "(cached) " >&6
5550: else
5551: ac_check_lib_save_LIBS=$LIBS
5552: LIBS="-ldnet_stub $LIBS"
5553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554: /* end confdefs.h. */
5555:
5556: /* Override any GCC internal prototype to avoid an error.
5557: Use char because int might match the return type of a GCC
5558: builtin and then its argument prototype would still apply. */
5559: #ifdef __cplusplus
5560: extern "C"
5561: #endif
5562: char dnet_ntoa ();
5563: int
5564: main ()
5565: {
5566: return dnet_ntoa ();
5567: ;
5568: return 0;
5569: }
5570: _ACEOF
5571: if ac_fn_c_try_link "$LINENO"; then :
5572: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5573: else
5574: ac_cv_lib_dnet_stub_dnet_ntoa=no
5575: fi
5576: rm -f core conftest.err conftest.$ac_objext \
5577: conftest$ac_exeext conftest.$ac_ext
5578: LIBS=$ac_check_lib_save_LIBS
5579: fi
5580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5581: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5582: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5583: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5584: fi
5585:
5586: fi
5587: fi
5588: rm -f core conftest.err conftest.$ac_objext \
5589: conftest$ac_exeext conftest.$ac_ext
5590: LIBS="$ac_xsave_LIBS"
5591:
5592: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5593: # to get the SysV transport functions.
5594: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5595: # needs -lnsl.
5596: # The nsl library prevents programs from opening the X display
5597: # on Irix 5.2, according to T.E. Dickey.
5598: # The functions gethostbyname, getservbyname, and inet_addr are
5599: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5600: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5601: if test "x$ac_cv_func_gethostbyname" = xyes; then :
5602:
5603: fi
5604:
5605: if test $ac_cv_func_gethostbyname = no; then
5606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5607: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5608: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5609: $as_echo_n "(cached) " >&6
5610: else
5611: ac_check_lib_save_LIBS=$LIBS
5612: LIBS="-lnsl $LIBS"
5613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614: /* end confdefs.h. */
5615:
5616: /* Override any GCC internal prototype to avoid an error.
5617: Use char because int might match the return type of a GCC
5618: builtin and then its argument prototype would still apply. */
5619: #ifdef __cplusplus
5620: extern "C"
5621: #endif
5622: char gethostbyname ();
5623: int
5624: main ()
5625: {
5626: return gethostbyname ();
5627: ;
5628: return 0;
5629: }
5630: _ACEOF
5631: if ac_fn_c_try_link "$LINENO"; then :
5632: ac_cv_lib_nsl_gethostbyname=yes
5633: else
5634: ac_cv_lib_nsl_gethostbyname=no
5635: fi
5636: rm -f core conftest.err conftest.$ac_objext \
5637: conftest$ac_exeext conftest.$ac_ext
5638: LIBS=$ac_check_lib_save_LIBS
5639: fi
5640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5641: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5642: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5643: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5644: fi
5645:
5646: if test $ac_cv_lib_nsl_gethostbyname = no; then
5647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5648: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5649: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5650: $as_echo_n "(cached) " >&6
5651: else
5652: ac_check_lib_save_LIBS=$LIBS
5653: LIBS="-lbsd $LIBS"
5654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655: /* end confdefs.h. */
5656:
5657: /* Override any GCC internal prototype to avoid an error.
5658: Use char because int might match the return type of a GCC
5659: builtin and then its argument prototype would still apply. */
5660: #ifdef __cplusplus
5661: extern "C"
5662: #endif
5663: char gethostbyname ();
5664: int
5665: main ()
5666: {
5667: return gethostbyname ();
5668: ;
5669: return 0;
5670: }
5671: _ACEOF
5672: if ac_fn_c_try_link "$LINENO"; then :
5673: ac_cv_lib_bsd_gethostbyname=yes
5674: else
5675: ac_cv_lib_bsd_gethostbyname=no
5676: fi
5677: rm -f core conftest.err conftest.$ac_objext \
5678: conftest$ac_exeext conftest.$ac_ext
5679: LIBS=$ac_check_lib_save_LIBS
5680: fi
5681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5682: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5683: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5684: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5685: fi
5686:
5687: fi
5688: fi
5689:
5690: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5691: # socket/setsockopt and other routines are undefined under SCO ODT
5692: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5693: # on later versions), says Simon Leinen: it contains gethostby*
5694: # variants that don't use the name server (or something). -lsocket
5695: # must be given before -lnsl if both are needed. We assume that
5696: # if connect needs -lnsl, so does gethostbyname.
5697: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5698: if test "x$ac_cv_func_connect" = xyes; then :
5699:
5700: fi
5701:
5702: if test $ac_cv_func_connect = no; then
5703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5704: $as_echo_n "checking for connect in -lsocket... " >&6; }
5705: if ${ac_cv_lib_socket_connect+:} false; then :
5706: $as_echo_n "(cached) " >&6
5707: else
5708: ac_check_lib_save_LIBS=$LIBS
5709: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711: /* end confdefs.h. */
5712:
5713: /* Override any GCC internal prototype to avoid an error.
5714: Use char because int might match the return type of a GCC
5715: builtin and then its argument prototype would still apply. */
5716: #ifdef __cplusplus
5717: extern "C"
5718: #endif
5719: char connect ();
5720: int
5721: main ()
5722: {
5723: return connect ();
5724: ;
5725: return 0;
5726: }
5727: _ACEOF
5728: if ac_fn_c_try_link "$LINENO"; then :
5729: ac_cv_lib_socket_connect=yes
5730: else
5731: ac_cv_lib_socket_connect=no
5732: fi
5733: rm -f core conftest.err conftest.$ac_objext \
5734: conftest$ac_exeext conftest.$ac_ext
5735: LIBS=$ac_check_lib_save_LIBS
5736: fi
5737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5738: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5739: if test "x$ac_cv_lib_socket_connect" = xyes; then :
5740: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5741: fi
5742:
5743: fi
5744:
5745: # Guillermo Gomez says -lposix is necessary on A/UX.
5746: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5747: if test "x$ac_cv_func_remove" = xyes; then :
5748:
5749: fi
5750:
5751: if test $ac_cv_func_remove = no; then
5752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5753: $as_echo_n "checking for remove in -lposix... " >&6; }
5754: if ${ac_cv_lib_posix_remove+:} false; then :
5755: $as_echo_n "(cached) " >&6
5756: else
5757: ac_check_lib_save_LIBS=$LIBS
5758: LIBS="-lposix $LIBS"
5759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760: /* end confdefs.h. */
5761:
5762: /* Override any GCC internal prototype to avoid an error.
5763: Use char because int might match the return type of a GCC
5764: builtin and then its argument prototype would still apply. */
5765: #ifdef __cplusplus
5766: extern "C"
5767: #endif
5768: char remove ();
5769: int
5770: main ()
5771: {
5772: return remove ();
5773: ;
5774: return 0;
5775: }
5776: _ACEOF
5777: if ac_fn_c_try_link "$LINENO"; then :
5778: ac_cv_lib_posix_remove=yes
5779: else
5780: ac_cv_lib_posix_remove=no
5781: fi
5782: rm -f core conftest.err conftest.$ac_objext \
5783: conftest$ac_exeext conftest.$ac_ext
5784: LIBS=$ac_check_lib_save_LIBS
5785: fi
5786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5787: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5788: if test "x$ac_cv_lib_posix_remove" = xyes; then :
5789: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5790: fi
5791:
5792: fi
5793:
5794: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5795: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5796: if test "x$ac_cv_func_shmat" = xyes; then :
5797:
5798: fi
5799:
5800: if test $ac_cv_func_shmat = no; then
5801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5802: $as_echo_n "checking for shmat in -lipc... " >&6; }
5803: if ${ac_cv_lib_ipc_shmat+:} false; then :
5804: $as_echo_n "(cached) " >&6
5805: else
5806: ac_check_lib_save_LIBS=$LIBS
5807: LIBS="-lipc $LIBS"
5808: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809: /* end confdefs.h. */
5810:
5811: /* Override any GCC internal prototype to avoid an error.
5812: Use char because int might match the return type of a GCC
5813: builtin and then its argument prototype would still apply. */
5814: #ifdef __cplusplus
5815: extern "C"
5816: #endif
5817: char shmat ();
5818: int
5819: main ()
5820: {
5821: return shmat ();
5822: ;
5823: return 0;
5824: }
5825: _ACEOF
5826: if ac_fn_c_try_link "$LINENO"; then :
5827: ac_cv_lib_ipc_shmat=yes
5828: else
5829: ac_cv_lib_ipc_shmat=no
5830: fi
5831: rm -f core conftest.err conftest.$ac_objext \
5832: conftest$ac_exeext conftest.$ac_ext
5833: LIBS=$ac_check_lib_save_LIBS
5834: fi
5835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5836: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5837: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5838: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5839: fi
5840:
5841: fi
5842: fi
5843:
5844: # Check for libraries that X11R6 Xt/Xaw programs need.
5845: ac_save_LDFLAGS=$LDFLAGS
5846: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5847: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5848: # check for ICE first), but we must link in the order -lSM -lICE or
5849: # we get undefined symbols. So assume we have SM if we have ICE.
5850: # These have to be linked with before -lX11, unlike the other
5851: # libraries we check for below, so use a different variable.
5852: # John Interrante, Karl Berry
5853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5854: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5855: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5856: $as_echo_n "(cached) " >&6
5857: else
5858: ac_check_lib_save_LIBS=$LIBS
5859: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861: /* end confdefs.h. */
5862:
5863: /* Override any GCC internal prototype to avoid an error.
5864: Use char because int might match the return type of a GCC
5865: builtin and then its argument prototype would still apply. */
5866: #ifdef __cplusplus
5867: extern "C"
5868: #endif
5869: char IceConnectionNumber ();
5870: int
5871: main ()
5872: {
5873: return IceConnectionNumber ();
5874: ;
5875: return 0;
5876: }
5877: _ACEOF
5878: if ac_fn_c_try_link "$LINENO"; then :
5879: ac_cv_lib_ICE_IceConnectionNumber=yes
5880: else
5881: ac_cv_lib_ICE_IceConnectionNumber=no
5882: fi
5883: rm -f core conftest.err conftest.$ac_objext \
5884: conftest$ac_exeext conftest.$ac_ext
5885: LIBS=$ac_check_lib_save_LIBS
5886: fi
5887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5888: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5889: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5890: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5891: fi
5892:
5893: LDFLAGS=$ac_save_LDFLAGS
5894:
5895: fi
5896:
5897:
5898: if test "$ac_x_includes" != "no"; then
5899: if test x"$ac_x_includes" != x; then
5900: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5901: includeX="-I$ac_x_includes"
5902: fi
5903: fi
5904: if test "$ac_x_libraries" != "no"; then
5905: if test x"$ac_x_libraries" != x; then
5906: X_LIBS="$X_LIBS -L$ac_x_libraries"
5907: fi
5908: fi
5909:
5910:
5911: # Check whether --with-32bits-abi was given.
5912: if test "${with_32bits_abi+set}" = set; then :
5913: withval=$with_32bits_abi;
5914: if test "$with-32bits-abi" = "no"; then
5915: ABI=
5916: else
5917: ABI=-m32
5918: fi
5919: else
5920:
5921: ABI=
5922:
5923:
5924: fi
5925:
5926:
5927: if test x$ABI = x; then
5928:
5929: # Check whether --with-64bits-abi was given.
5930: if test "${with_64bits_abi+set}" = set; then :
5931: withval=$with_64bits_abi;
5932: if test "$with-64bits-abi" = "no"; then
5933: ABI=
5934: else
5935: ABI=-m64
5936: fi
5937: else
5938:
5939: ABI=
5940:
5941:
5942: fi
5943:
5944: fi
5945:
5946: LDFLAGS="$LDFLAGS $ABI"
5947:
5948:
5949: # Check whether --with-rplcas was given.
5950: if test "${with_rplcas+set}" = set; then :
5951: withval=$with_rplcas;
5952: if test "$with-rplcas" = "no"; then
5953: RPLCAS=-URPLCAS
5954: LIBRPLCAS=
5955: else
5956: RPLCAS=-DRPLCAS
5957: LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
5958: fi
5959: else
5960:
5961: RPLCAS=-URPLCAS
5962: LIBRPLCAS=
5963:
5964:
5965: fi
5966:
5967:
5968:
5969:
5970:
5971:
5972: # Check whether --enable-optimization was given.
5973: if test "${enable_optimization+set}" = set; then :
5974: enableval=$enable_optimization;
5975: if test "$enableval" = "no"; then
5976: CFLAGS=$ABI
5977: FFLAGS=$ABI
5978: CXXFLAGS=$ABI
5979: FCFLAGS=$ABI
5980: else
5981: CFLAGS="$CFLAGS $ABI $enable_optimization"
5982: FFLAGS="$FFLAGS $ABI $enable_optimization"
5983: CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
5984: FCFLAGS="$FCFLAGS $ABI $enable_optimization"
5985: fi
5986: else
5987:
5988: CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
5989: FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
5990: CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
5991: FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
5992:
5993:
5994: fi
5995:
5996:
5997: # Check whether --enable-sysv-semaphores was given.
5998: if test "${enable_sysv_semaphores+set}" = set; then :
5999: enableval=$enable_sysv_semaphores;
6000: if test "$enableval" = "no"; then
6001: IPCS_SYSV=no
6002: else
6003: IPCS_SYSV=yes
6004: fi
6005: else
6006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores" >&5
6007: $as_echo_n "checking for POSIX semaphores... " >&6; }
6008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009: /* end confdefs.h. */
6010: #include <sys/mman.h>
6011: #include <sys/stat.h>
6012: #include <fcntl.h>
6013: int
6014: main ()
6015: {
6016: int fd; char *sem = "/sem.test";
6017: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
6018: close(fd);
6019: shm_unlink(sem);
6020: return(0);
6021:
6022: ;
6023: return 0;
6024: }
6025: _ACEOF
6026: if ac_fn_c_try_compile "$LINENO"; then :
6027: IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6028: $as_echo "yes" >&6; }
6029: else
6030: IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031: $as_echo "no" >&6; }
6032:
6033: fi
6034: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035:
6036: fi
6037:
6038:
6039: if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then
6040: REG=$LDFLAGS
6041: LDFLAGS=-pthread
6042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
6043: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
6044: if test "$cross_compiling" = yes; then :
6045: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6046: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6047: as_fn_error $? "cannot run test program while cross compiling
6048: See \`config.log' for more details" "$LINENO" 5; }
6049: else
6050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051: /* end confdefs.h. */
6052: #include <semaphore.h>
6053:
6054: int
6055: main ()
6056: {
6057: sem_t sem;
6058: if (sem_init(&sem, 1, 0) != 0) return(1);
6059: sem_destroy(&sem);
6060: return(0);
6061:
6062: ;
6063: return 0;
6064: }
6065: _ACEOF
6066: if ac_fn_c_try_run "$LINENO"; then :
6067: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6068: $as_echo "yes" >&6; }
6069: else
6070: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071: $as_echo "no" >&6; }
6072: fi
6073: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6074: conftest.$ac_objext conftest.beam conftest.$ac_ext
6075: fi
6076: ]
6077: LDFLAGS=$REG
6078: REG=""
6079: else
6080: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
6081: fi
6082:
6083: # Check whether --enable-full-static was given.
6084: if test "${enable_full_static+set}" = set; then :
6085: enableval=$enable_full_static;
6086: if test "$enableval" = "no"; then
6087: STATIC=no
6088: else
6089: STATIC=yes
6090: fi
6091: else
6092: STATIC=no
6093: fi
6094:
6095:
6096: # Check whether --enable-final-encoding was given.
6097: if test "${enable_final_encoding+set}" = set; then :
6098: enableval=$enable_final_encoding;
6099: if test "$enableval" = "no"; then
6100: FINAL_ENCODING="\$(shell locale charmap | \
6101: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6102: FORCED_FINAL_ENCODING=0
6103: else
6104: FINAL_ENCODING="$enable_final_encoding"
6105: FORCED_FINAL_ENCODING=1
6106: fi
6107: else
6108:
6109: FORCED_FINAL_ENCODING=0
6110: FINAL_ENCODING="\$(shell locale charmap | \
6111: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6112: fi
6113:
6114:
6115: # Check whether --enable-tex was given.
6116: if test "${enable_tex+set}" = set; then :
6117: enableval=$enable_tex;
6118: if test "$enableval" = "no"; then
6119: TEX_SUPPORT=no
6120: else
6121: TEX_SUPPORT=yes
6122: fi
6123: else
6124: TEX_SUPPORT=guessed
6125: fi
6126:
6127:
6128: # Check whether --enable-vim was given.
6129: if test "${enable_vim+set}" = set; then :
6130: enableval=$enable_vim;
6131: if test "$enableval" = "no"; then
6132: VIM_SUPPORT=no
6133: else
6134: VIM_SUPPORT=yes
6135: fi
6136: else
6137: VIM_SUPPORT=guessed
6138: fi
6139:
6140:
6141: # Check whether --enable-embedded-gnuplot was given.
6142: if test "${enable_embedded_gnuplot+set}" = set; then :
6143: enableval=$enable_embedded_gnuplot;
6144: if test "$enableval" = "no"; then
6145: MYGNUPLOT=no
6146: else
6147: MYGNUPLOT=yes
6148: fi
6149: else
6150:
6151: MYGNUPLOT=yes
6152: fi
6153:
6154:
6155: # Check whether --enable-gnuplot was given.
6156: if test "${enable_gnuplot+set}" = set; then :
6157: enableval=$enable_gnuplot;
6158: if test "$enableval" = "no"; then
6159: GNUPLOT_SUPPORT=no
6160: MYGNUPLOT=no
6161: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6162: else
6163: GNUPLOT_SUPPORT=yes
6164: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6165: fi
6166: else
6167:
6168: if test "$MYGNUPLOT" = "yes"; then
6169: GNUPLOT_SUPPORT=yes
6170: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6171: else
6172: GNUPLOT_SUPPORT=guessed
6173: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6174: fi
6175: fi
6176:
6177:
6178: libX=""
6179: LIBMOTIF=""
6180: INCMOTIF=""
6181: BUILD_OPENMOTIF=""
6182:
6183: # Check whether --enable-motif was given.
6184: if test "${enable_motif+set}" = set; then :
6185: enableval=$enable_motif;
6186: if test "$enableval" = "no"; then
6187: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6188: else
6189: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6190: fi
6191: else
6192: if test "$have_x" == "yes"; then
6193: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6194: else
6195: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6196: fi
6197: fi
6198:
6199:
6200: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6201: libX="$X_LIBS -lXt -lX11"
6202: LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
6203: \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
6204: INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
6205: -I\$(top_builddir)/tools/$OPENMOTIF/lib \
6206: -I\$(top_builddir)/tools/$LIBXPM/include"
6207: BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
6208:
6209:
6210: subdirs="$subdirs tools/$LIBXPM"
6211:
6212: subdirs="$subdirs tools/$OPENMOTIF"
6213:
6214: fi
6215:
6216: # Check whether --enable-experimental was given.
6217: if test "${enable_experimental+set}" = set; then :
6218: enableval=$enable_experimental;
6219: if test "$enableval" = "no"; then
6220: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6221: else
6222: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6223: fi
6224: else
6225: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6226: fi
6227:
6228:
6229: # Check whether --enable-debug was given.
6230: if test "${enable_debug+set}" = set; then :
6231: enableval=$enable_debug;
6232: if test "$enableval" = "no"; then
6233: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6234: else
6235: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6236: fi
6237: else
6238: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6239: fi
6240:
6241:
6242: # Check whether --enable-profile was given.
6243: if test "${enable_profile+set}" = set; then :
6244: enableval=$enable_profile;
6245: if test "$enableval" = "no"; then
6246: PROFILAGE=""
6247: else
6248: PROFILAGE="-pg"
6249: fi
6250: else
6251: PROFILAGE=""
6252: fi
6253:
6254:
6255:
6256:
6257: if test ! -d tools; then
6258: mkdir tools
6259: fi
6260: if test ! -d "$srcdir"/tools/$NCURSES; then
6261: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6262: (cd "$srcdir/tools" && tar -xf -)
6263: (cd "$srcdir/tools/"$NCURSES && \
6264: for i in ../$NCURSES*.patch.gz;
6265: do gunzip -c $i | patch -p1;
6266: done);
6267: fi
6268: if test ! -d "$srcdir"/tools/$READLINE; then
6269: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6270: (cd "$srcdir/tools" && tar -xf -)
6271: fi
6272: if test ! -d "$srcdir"/tools/$UNITS; then
6273: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6274: (cd "$srcdir/tools" && tar -xf -)
6275: fi
6276: if test ! -d "$srcdir"/tools/$GSL; then
6277: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6278: (cd "$srcdir/tools" && tar -xf -)
6279: if test $(uname) = "OS/2"; then
6280: (cd "$srcdir"/tools/$GSL; \
6281: TMP=$(mktemp tmp.XXXXXXXXXX); \
6282: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6283: \mv -f $TMP ltmain.sh)
6284: fi
6285: fi
6286: if test ! -d "$srcdir"/tools/$GPP; then
6287: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6288: (cd "$srcdir/tools" && tar -xf -)
6289: fi
6290: if test ! -d "$srcdir"/tools/$FILE; then
6291: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6292: (cd "$srcdir/tools" && tar -xf - )
6293: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6294: fi
6295: if test ! -d "$srcdir"/tools/$ICONV; then
6296: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6297: (cd "$srcdir/tools" && tar -xf -)
6298: fi
6299: if test ! -d "$srcdir"/tools/$SQLITE; then
6300: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6301: (cd "$srcdir/tools" && tar -xf -)
6302: fi
6303: if test ! -d "$srcdir"/tools/$SIGSEGV; then
6304: gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
6305: (cd "$srcdir/tools" && tar -xf -)
6306: fi
6307: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
6308: gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
6309: (cd "$srcdir/tools" && tar -xf -)
6310: fi
6311: if test ! -d "$srcdir"/tools/$LIBXPM; then
6312: gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
6313: (cd "$srcdir/tools" && tar -xf -)
6314: fi
6315: if test ! -d tools/$OPENSSL; then
6316: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6317: (cd tools && tar -xf -)
6318: fi
6319: if test ! -d rplcas; then
6320: mkdir rplcas
6321: fi
6322: if test ! -d "$srcdir"/rplcas/$GMP; then
6323: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
6324: (cd "$srcdir/rplcas" && tar -xf -)
6325: fi
6326: if test ! -d "$srcdir"/rplcas/$MPFR; then
6327: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
6328: (cd "$srcdir/rplcas" && tar -xf -)
6329: fi
6330: if test ! -d rplcas/$NTL; then
6331: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
6332: (cd rplcas && tar -xf -)
6333: fi
6334: if test ! -d rplcas/$COCOA; then
6335: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
6336: (cd rplcas && tar -xf -)
6337: fi
6338: if test ! -d rplcas/$PARI; then
6339: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
6340: (cd rplcas && tar -xf -)
6341: fi
6342: if test ! -d "$srcdir"/rplcas/$GIAC; then
6343: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
6344: (cd "$srcdir/rplcas" && tar -xf -)
6345: fi
6346:
6347:
6348:
6349: # Check whether --enable-final-run-path was given.
6350: if test "${enable_final_run_path+set}" = set; then :
6351: enableval=$enable_final_run_path;
6352: if test "x$enable_final_run_path" = "x"; then
6353: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6354: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6355: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
6356: else
6357: RUNPATH="$enable_final_run_path"
6358: fi
6359:
6360: else
6361: RUNPATH="\${prefix}"
6362:
6363: fi
6364:
6365:
6366:
6367:
6368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6369: $as_echo_n "checking whether ln -s works... " >&6; }
6370: LN_S=$as_ln_s
6371: if test "$LN_S" = "ln -s"; then
6372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373: $as_echo "yes" >&6; }
6374: else
6375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6376: $as_echo "no, using $LN_S" >&6; }
6377: fi
6378:
6379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6380: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6381: set x ${MAKE-make}
6382: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6383: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6384: $as_echo_n "(cached) " >&6
6385: else
6386: cat >conftest.make <<\_ACEOF
6387: SHELL = /bin/sh
6388: all:
6389: @echo '@@@%%%=$(MAKE)=@@@%%%'
6390: _ACEOF
6391: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6392: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6393: *@@@%%%=?*=@@@%%%*)
6394: eval ac_cv_prog_make_${ac_make}_set=yes;;
6395: *)
6396: eval ac_cv_prog_make_${ac_make}_set=no;;
6397: esac
6398: rm -f conftest.make
6399: fi
6400: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6402: $as_echo "yes" >&6; }
6403: SET_MAKE=
6404: else
6405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406: $as_echo "no" >&6; }
6407: SET_MAKE="MAKE=${MAKE-make}"
6408: fi
6409:
6410: if test -n "$ac_tool_prefix"; then
6411: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6412: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414: $as_echo_n "checking for $ac_word... " >&6; }
6415: if ${ac_cv_prog_RANLIB+:} false; then :
6416: $as_echo_n "(cached) " >&6
6417: else
6418: if test -n "$RANLIB"; then
6419: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6420: else
6421: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422: for as_dir in $PATH
6423: do
6424: IFS=$as_save_IFS
6425: test -z "$as_dir" && as_dir=.
6426: for ac_exec_ext in '' $ac_executable_extensions; do
6427: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6429: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430: break 2
6431: fi
6432: done
6433: done
6434: IFS=$as_save_IFS
6435:
6436: fi
6437: fi
6438: RANLIB=$ac_cv_prog_RANLIB
6439: if test -n "$RANLIB"; then
6440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6441: $as_echo "$RANLIB" >&6; }
6442: else
6443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444: $as_echo "no" >&6; }
6445: fi
6446:
6447:
6448: fi
6449: if test -z "$ac_cv_prog_RANLIB"; then
6450: ac_ct_RANLIB=$RANLIB
6451: # Extract the first word of "ranlib", so it can be a program name with args.
6452: set dummy ranlib; ac_word=$2
6453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454: $as_echo_n "checking for $ac_word... " >&6; }
6455: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6456: $as_echo_n "(cached) " >&6
6457: else
6458: if test -n "$ac_ct_RANLIB"; then
6459: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6460: else
6461: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462: for as_dir in $PATH
6463: do
6464: IFS=$as_save_IFS
6465: test -z "$as_dir" && as_dir=.
6466: for ac_exec_ext in '' $ac_executable_extensions; do
6467: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468: ac_cv_prog_ac_ct_RANLIB="ranlib"
6469: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470: break 2
6471: fi
6472: done
6473: done
6474: IFS=$as_save_IFS
6475:
6476: fi
6477: fi
6478: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6479: if test -n "$ac_ct_RANLIB"; then
6480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6481: $as_echo "$ac_ct_RANLIB" >&6; }
6482: else
6483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484: $as_echo "no" >&6; }
6485: fi
6486:
6487: if test "x$ac_ct_RANLIB" = x; then
6488: RANLIB=":"
6489: else
6490: case $cross_compiling:$ac_tool_warned in
6491: yes:)
6492: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494: ac_tool_warned=yes ;;
6495: esac
6496: RANLIB=$ac_ct_RANLIB
6497: fi
6498: else
6499: RANLIB="$ac_cv_prog_RANLIB"
6500: fi
6501:
6502:
6503: # Extract the first word of "nawk", so it can be a program name with args.
6504: set dummy nawk; ac_word=$2
6505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506: $as_echo_n "checking for $ac_word... " >&6; }
6507: if ${ac_cv_prog_AWK+:} false; then :
6508: $as_echo_n "(cached) " >&6
6509: else
6510: if test -n "$AWK"; then
6511: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6512: else
6513: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514: for as_dir in $PATH
6515: do
6516: IFS=$as_save_IFS
6517: test -z "$as_dir" && as_dir=.
6518: for ac_exec_ext in '' $ac_executable_extensions; do
6519: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520: ac_cv_prog_AWK="yes"
6521: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522: break 2
6523: fi
6524: done
6525: done
6526: IFS=$as_save_IFS
6527:
6528: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6529: fi
6530: fi
6531: AWK=$ac_cv_prog_AWK
6532: if test -n "$AWK"; then
6533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6534: $as_echo "$AWK" >&6; }
6535: else
6536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537: $as_echo "no" >&6; }
6538: fi
6539:
6540:
6541: if test "$AWK" = no; then
6542: # Extract the first word of "gawk", so it can be a program name with args.
6543: set dummy gawk; ac_word=$2
6544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545: $as_echo_n "checking for $ac_word... " >&6; }
6546: if ${ac_cv_prog_AWK+:} false; then :
6547: $as_echo_n "(cached) " >&6
6548: else
6549: if test -n "$AWK"; then
6550: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6551: else
6552: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553: for as_dir in $PATH
6554: do
6555: IFS=$as_save_IFS
6556: test -z "$as_dir" && as_dir=.
6557: for ac_exec_ext in '' $ac_executable_extensions; do
6558: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559: ac_cv_prog_AWK="yes"
6560: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561: break 2
6562: fi
6563: done
6564: done
6565: IFS=$as_save_IFS
6566:
6567: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6568: fi
6569: fi
6570: AWK=$ac_cv_prog_AWK
6571: if test -n "$AWK"; then
6572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6573: $as_echo "$AWK" >&6; }
6574: else
6575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576: $as_echo "no" >&6; }
6577: fi
6578:
6579:
6580: if test "$AWK" = no; then
6581: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6582: fi
6583: fi
6584:
6585: # Extract the first word of "sed", so it can be a program name with args.
6586: set dummy sed; ac_word=$2
6587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588: $as_echo_n "checking for $ac_word... " >&6; }
6589: if ${ac_cv_prog_SED+:} false; then :
6590: $as_echo_n "(cached) " >&6
6591: else
6592: if test -n "$SED"; then
6593: ac_cv_prog_SED="$SED" # Let the user override the test.
6594: else
6595: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596: for as_dir in $PATH
6597: do
6598: IFS=$as_save_IFS
6599: test -z "$as_dir" && as_dir=.
6600: for ac_exec_ext in '' $ac_executable_extensions; do
6601: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602: ac_cv_prog_SED="yes"
6603: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604: break 2
6605: fi
6606: done
6607: done
6608: IFS=$as_save_IFS
6609:
6610: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6611: fi
6612: fi
6613: SED=$ac_cv_prog_SED
6614: if test -n "$SED"; then
6615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6616: $as_echo "$SED" >&6; }
6617: else
6618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619: $as_echo "no" >&6; }
6620: fi
6621:
6622:
6623: if test "$SED" = no; then
6624: as_fn_error $? "Can not find sed !" "$LINENO" 5
6625: fi
6626:
6627: if test "$TEX_SUPPORT" = guessed; then
6628: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6629:
6630: # Extract the first word of "tex", so it can be a program name with args.
6631: set dummy tex; ac_word=$2
6632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633: $as_echo_n "checking for $ac_word... " >&6; }
6634: if ${ac_cv_prog_TEX+:} false; then :
6635: $as_echo_n "(cached) " >&6
6636: else
6637: if test -n "$TEX"; then
6638: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6639: else
6640: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641: for as_dir in $PATH
6642: do
6643: IFS=$as_save_IFS
6644: test -z "$as_dir" && as_dir=.
6645: for ac_exec_ext in '' $ac_executable_extensions; do
6646: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647: ac_cv_prog_TEX="yes"
6648: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649: break 2
6650: fi
6651: done
6652: done
6653: IFS=$as_save_IFS
6654:
6655: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6656: fi
6657: fi
6658: TEX=$ac_cv_prog_TEX
6659: if test -n "$TEX"; then
6660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6661: $as_echo "$TEX" >&6; }
6662: else
6663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664: $as_echo "no" >&6; }
6665: fi
6666:
6667:
6668: if test "$TEX" = no; then
6669: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6670: Download at http://tex.loria.fr/
6671: " >&5
6672: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6673: Download at http://tex.loria.fr/
6674: " >&2;}
6675: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6676: fi
6677:
6678: # Extract the first word of "latex", so it can be a program name with args.
6679: set dummy latex; ac_word=$2
6680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681: $as_echo_n "checking for $ac_word... " >&6; }
6682: if ${ac_cv_prog_LATEX+:} false; then :
6683: $as_echo_n "(cached) " >&6
6684: else
6685: if test -n "$LATEX"; then
6686: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6687: else
6688: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689: for as_dir in $PATH
6690: do
6691: IFS=$as_save_IFS
6692: test -z "$as_dir" && as_dir=.
6693: for ac_exec_ext in '' $ac_executable_extensions; do
6694: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695: ac_cv_prog_LATEX="yes"
6696: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697: break 2
6698: fi
6699: done
6700: done
6701: IFS=$as_save_IFS
6702:
6703: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6704: fi
6705: fi
6706: LATEX=$ac_cv_prog_LATEX
6707: if test -n "$LATEX"; then
6708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6709: $as_echo "$LATEX" >&6; }
6710: else
6711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712: $as_echo "no" >&6; }
6713: fi
6714:
6715:
6716: if test "$LATEX" = no; then
6717: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6718: Download at http://tex.loria.fr/
6719: " >&5
6720: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6721: Download at http://tex.loria.fr/
6722: " >&2;}
6723: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6724: fi
6725:
6726: # Extract the first word of "dvips", so it can be a program name with args.
6727: set dummy dvips; ac_word=$2
6728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729: $as_echo_n "checking for $ac_word... " >&6; }
6730: if ${ac_cv_prog_DVIPS+:} false; then :
6731: $as_echo_n "(cached) " >&6
6732: else
6733: if test -n "$DVIPS"; then
6734: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6735: else
6736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737: for as_dir in $PATH
6738: do
6739: IFS=$as_save_IFS
6740: test -z "$as_dir" && as_dir=.
6741: for ac_exec_ext in '' $ac_executable_extensions; do
6742: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743: ac_cv_prog_DVIPS="yes"
6744: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745: break 2
6746: fi
6747: done
6748: done
6749: IFS=$as_save_IFS
6750:
6751: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6752: fi
6753: fi
6754: DVIPS=$ac_cv_prog_DVIPS
6755: if test -n "$DVIPS"; then
6756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6757: $as_echo "$DVIPS" >&6; }
6758: else
6759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760: $as_echo "no" >&6; }
6761: fi
6762:
6763:
6764: if test "$DVIPS" = no; then
6765: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6766: Download at http://tex.loria.fr/
6767: " >&5
6768: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6769: Download at http://tex.loria.fr/
6770: " >&2;}
6771: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6772: fi
6773:
6774: # Extract the first word of "gs", so it can be a program name with args.
6775: set dummy gs; ac_word=$2
6776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777: $as_echo_n "checking for $ac_word... " >&6; }
6778: if ${ac_cv_prog_GS+:} false; then :
6779: $as_echo_n "(cached) " >&6
6780: else
6781: if test -n "$GS"; then
6782: ac_cv_prog_GS="$GS" # Let the user override the test.
6783: else
6784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785: for as_dir in $PATH
6786: do
6787: IFS=$as_save_IFS
6788: test -z "$as_dir" && as_dir=.
6789: for ac_exec_ext in '' $ac_executable_extensions; do
6790: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791: ac_cv_prog_GS="yes"
6792: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793: break 2
6794: fi
6795: done
6796: done
6797: IFS=$as_save_IFS
6798:
6799: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6800: fi
6801: fi
6802: GS=$ac_cv_prog_GS
6803: if test -n "$GS"; then
6804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6805: $as_echo "$GS" >&6; }
6806: else
6807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808: $as_echo "no" >&6; }
6809: fi
6810:
6811:
6812: if test "$GS" = no; then
6813: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6814: Download at http://ftp.lip6.fr/
6815: " >&5
6816: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6817: Download at http://ftp.lip6.fr/
6818: " >&2;}
6819: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6820: fi
6821:
6822: # Extract the first word of "gv", so it can be a program name with args.
6823: set dummy gv; ac_word=$2
6824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825: $as_echo_n "checking for $ac_word... " >&6; }
6826: if ${ac_cv_prog_GV+:} false; then :
6827: $as_echo_n "(cached) " >&6
6828: else
6829: if test -n "$GV"; then
6830: ac_cv_prog_GV="$GV" # Let the user override the test.
6831: else
6832: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833: for as_dir in $PATH
6834: do
6835: IFS=$as_save_IFS
6836: test -z "$as_dir" && as_dir=.
6837: for ac_exec_ext in '' $ac_executable_extensions; do
6838: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839: ac_cv_prog_GV="yes"
6840: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841: break 2
6842: fi
6843: done
6844: done
6845: IFS=$as_save_IFS
6846:
6847: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6848: fi
6849: fi
6850: GV=$ac_cv_prog_GV
6851: if test -n "$GV"; then
6852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6853: $as_echo "$GV" >&6; }
6854: else
6855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856: $as_echo "no" >&6; }
6857: fi
6858:
6859:
6860: if test "$GV" = no; then
6861: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6862: Download at http://ftp.lip6.fr/
6863: " >&5
6864: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6865: Download at http://ftp.lip6.fr/
6866: " >&2;}
6867: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6868: fi
6869: else
6870: if test "$TEX_SUPPORT" = no; then
6871: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6872: else
6873: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6874: fi
6875: fi
6876:
6877: if test "$GNUPLOT_SUPPORT" = guessed; then
6878: # Extract the first word of "gnuplot", so it can be a program name with args.
6879: set dummy gnuplot; ac_word=$2
6880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881: $as_echo_n "checking for $ac_word... " >&6; }
6882: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
6883: $as_echo_n "(cached) " >&6
6884: else
6885: if test -n "$GNUPLOT_P"; then
6886: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6887: else
6888: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889: for as_dir in $PATH
6890: do
6891: IFS=$as_save_IFS
6892: test -z "$as_dir" && as_dir=.
6893: for ac_exec_ext in '' $ac_executable_extensions; do
6894: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895: ac_cv_prog_GNUPLOT_P="yes"
6896: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897: break 2
6898: fi
6899: done
6900: done
6901: IFS=$as_save_IFS
6902:
6903: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6904: fi
6905: fi
6906: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6907: if test -n "$GNUPLOT_P"; then
6908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6909: $as_echo "$GNUPLOT_P" >&6; }
6910: else
6911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912: $as_echo "no" >&6; }
6913: fi
6914:
6915:
6916: if test "$GNUPLOT_P" = no; then
6917: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6918: Download at http://www.gnuplot.vt.edu/
6919: " >&5
6920: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6921: Download at http://www.gnuplot.vt.edu/
6922: " >&2;}
6923: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6924: else
6925: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6926: fi
6927: else
6928: if test "$GNUPLOT_SUPPORT" = no; then
6929: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6930: else
6931: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6932: fi
6933: fi
6934:
6935: if test "$VIM_SUPPORT" = guessed; then
6936: # Extract the first word of "vim", so it can be a program name with args.
6937: set dummy vim; ac_word=$2
6938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939: $as_echo_n "checking for $ac_word... " >&6; }
6940: if ${ac_cv_prog_VIM+:} false; then :
6941: $as_echo_n "(cached) " >&6
6942: else
6943: if test -n "$VIM"; then
6944: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6945: else
6946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947: for as_dir in $PATH
6948: do
6949: IFS=$as_save_IFS
6950: test -z "$as_dir" && as_dir=.
6951: for ac_exec_ext in '' $ac_executable_extensions; do
6952: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953: ac_cv_prog_VIM="yes"
6954: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955: break 2
6956: fi
6957: done
6958: done
6959: IFS=$as_save_IFS
6960:
6961: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6962: fi
6963: fi
6964: VIM=$ac_cv_prog_VIM
6965: if test -n "$VIM"; then
6966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6967: $as_echo "$VIM" >&6; }
6968: else
6969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970: $as_echo "no" >&6; }
6971: fi
6972:
6973:
6974: if test "$VIM" = no; then
6975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6976: Download at http://www.vim.org/
6977: " >&5
6978: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6979: Download at http://www.vim.org/
6980: " >&2;}
6981: VIM_SUPPORT="-UVIM_SUPPORT"
6982: else
6983: VIM_SUPPORT="-DVIM_SUPPORT"
6984: fi
6985: else
6986: if test "$VIM_SUPPORT" = no; then
6987: VIM_SUPPORT="-UVIM_SUPPORT"
6988: else
6989: VIM_SUPPORT="-DVIM_SUPPORT"
6990: fi
6991: fi
6992:
6993:
6994:
6995:
6996:
6997:
6998:
6999:
7000:
7001:
7002:
7003: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7004:
7005:
7006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7007: $as_echo_n "checking for main in -lm... " >&6; }
7008: if ${ac_cv_lib_m_main+:} false; then :
7009: $as_echo_n "(cached) " >&6
7010: else
7011: ac_check_lib_save_LIBS=$LIBS
7012: LIBS="-lm $LIBS"
7013: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014: /* end confdefs.h. */
7015:
7016:
7017: int
7018: main ()
7019: {
7020: return main ();
7021: ;
7022: return 0;
7023: }
7024: _ACEOF
7025: if ac_fn_c_try_link "$LINENO"; then :
7026: ac_cv_lib_m_main=yes
7027: else
7028: ac_cv_lib_m_main=no
7029: fi
7030: rm -f core conftest.err conftest.$ac_objext \
7031: conftest$ac_exeext conftest.$ac_ext
7032: LIBS=$ac_check_lib_save_LIBS
7033: fi
7034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7035: $as_echo "$ac_cv_lib_m_main" >&6; }
7036: if test "x$ac_cv_lib_m_main" = xyes; then :
7037: cat >>confdefs.h <<_ACEOF
7038: #define HAVE_LIBM 1
7039: _ACEOF
7040:
7041: LIBS="-lm $LIBS"
7042:
7043: else
7044: as_fn_error $? "Can not find libm !" "$LINENO" 5
7045: fi
7046:
7047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7048: $as_echo_n "checking for main in -lpthread... " >&6; }
7049: if ${ac_cv_lib_pthread_main+:} false; then :
7050: $as_echo_n "(cached) " >&6
7051: else
7052: ac_check_lib_save_LIBS=$LIBS
7053: LIBS="-lpthread $LIBS"
7054: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055: /* end confdefs.h. */
7056:
7057:
7058: int
7059: main ()
7060: {
7061: return main ();
7062: ;
7063: return 0;
7064: }
7065: _ACEOF
7066: if ac_fn_c_try_link "$LINENO"; then :
7067: ac_cv_lib_pthread_main=yes
7068: else
7069: ac_cv_lib_pthread_main=no
7070: fi
7071: rm -f core conftest.err conftest.$ac_objext \
7072: conftest$ac_exeext conftest.$ac_ext
7073: LIBS=$ac_check_lib_save_LIBS
7074: fi
7075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7076: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7077: if test "x$ac_cv_lib_pthread_main" = xyes; then :
7078: cat >>confdefs.h <<_ACEOF
7079: #define HAVE_LIBPTHREAD 1
7080: _ACEOF
7081:
7082: LIBS="-lpthread $LIBS"
7083:
7084: else
7085: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
7086: fi
7087:
7088:
7089: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
7090: #include <sys/sem.h>
7091:
7092: "
7093: if test "x$ac_cv_type_union_semun" = xyes; then :
7094: SEMUN=-DUNION_SEMUN
7095: else
7096: SEMUN=-UUNION_SEMUN
7097: fi
7098:
7099:
7100: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7101: #include <sys/types.h>
7102: #include <netinet/in.h>
7103:
7104: "
7105: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7106: IPV6=-DIPV6
7107: else
7108: IPV6=-UIPV6
7109: fi
7110:
7111:
7112: if test "$CYGWIN" != yes; then
7113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7114: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7115: if ${ac_cv_lib_dl_dlopen+:} false; then :
7116: $as_echo_n "(cached) " >&6
7117: else
7118: ac_check_lib_save_LIBS=$LIBS
7119: LIBS="-ldl $LIBS"
7120: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121: /* end confdefs.h. */
7122:
7123: /* Override any GCC internal prototype to avoid an error.
7124: Use char because int might match the return type of a GCC
7125: builtin and then its argument prototype would still apply. */
7126: #ifdef __cplusplus
7127: extern "C"
7128: #endif
7129: char dlopen ();
7130: int
7131: main ()
7132: {
7133: return dlopen ();
7134: ;
7135: return 0;
7136: }
7137: _ACEOF
7138: if ac_fn_c_try_link "$LINENO"; then :
7139: ac_cv_lib_dl_dlopen=yes
7140: else
7141: ac_cv_lib_dl_dlopen=no
7142: fi
7143: rm -f core conftest.err conftest.$ac_objext \
7144: conftest$ac_exeext conftest.$ac_ext
7145: LIBS=$ac_check_lib_save_LIBS
7146: fi
7147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7148: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7149: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7150: LIBS="$LIBS -ldl"
7151: else
7152: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7153: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7154: fi
7155:
7156: fi
7157:
7158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7159: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7160: if ${ac_cv_lib_rt_nanosleep+:} false; then :
7161: $as_echo_n "(cached) " >&6
7162: else
7163: ac_check_lib_save_LIBS=$LIBS
7164: LIBS="-lrt $LIBS"
7165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166: /* end confdefs.h. */
7167:
7168: /* Override any GCC internal prototype to avoid an error.
7169: Use char because int might match the return type of a GCC
7170: builtin and then its argument prototype would still apply. */
7171: #ifdef __cplusplus
7172: extern "C"
7173: #endif
7174: char nanosleep ();
7175: int
7176: main ()
7177: {
7178: return nanosleep ();
7179: ;
7180: return 0;
7181: }
7182: _ACEOF
7183: if ac_fn_c_try_link "$LINENO"; then :
7184: ac_cv_lib_rt_nanosleep=yes
7185: else
7186: ac_cv_lib_rt_nanosleep=no
7187: fi
7188: rm -f core conftest.err conftest.$ac_objext \
7189: conftest$ac_exeext conftest.$ac_ext
7190: LIBS=$ac_check_lib_save_LIBS
7191: fi
7192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7193: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7194: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
7195: LIBS="$LIBS -lrt"
7196: else
7197: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7198: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7199: fi
7200:
7201:
7202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7203: $as_echo_n "checking for bind in -lsocket... " >&6; }
7204: if ${ac_cv_lib_socket_bind+:} false; then :
7205: $as_echo_n "(cached) " >&6
7206: else
7207: ac_check_lib_save_LIBS=$LIBS
7208: LIBS="-lsocket $LIBS"
7209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210: /* end confdefs.h. */
7211:
7212: /* Override any GCC internal prototype to avoid an error.
7213: Use char because int might match the return type of a GCC
7214: builtin and then its argument prototype would still apply. */
7215: #ifdef __cplusplus
7216: extern "C"
7217: #endif
7218: char bind ();
7219: int
7220: main ()
7221: {
7222: return bind ();
7223: ;
7224: return 0;
7225: }
7226: _ACEOF
7227: if ac_fn_c_try_link "$LINENO"; then :
7228: ac_cv_lib_socket_bind=yes
7229: else
7230: ac_cv_lib_socket_bind=no
7231: fi
7232: rm -f core conftest.err conftest.$ac_objext \
7233: conftest$ac_exeext conftest.$ac_ext
7234: LIBS=$ac_check_lib_save_LIBS
7235: fi
7236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7237: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7238: if test "x$ac_cv_lib_socket_bind" = xyes; then :
7239: LIBS="$LIBS -lsocket"
7240: else
7241: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7242: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7243: fi
7244:
7245:
7246: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7247:
7248: # Check whether --with-mysql was given.
7249: if test "${with_mysql+set}" = set; then :
7250: withval=$with_mysql;
7251: else
7252: with_mysql=check
7253: fi
7254:
7255:
7256: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7257: libMySQLinc="-I/usr/include"
7258: libMySQLlib="/usr/lib"
7259:
7260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7261: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7262: saved_CFLAGS="$CFLAGS"
7263: CFLAGS="$CFLAGS -L/$libMySQLinc"
7264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265: /* end confdefs.h. */
7266: #include "mysql.h"
7267: int
7268: main ()
7269: {
7270:
7271: ;
7272: return 0;
7273: }
7274: _ACEOF
7275: if ac_fn_c_try_compile "$LINENO"; then :
7276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7278: libMySQLinc=$libMySQLinc/mysql
7279: else
7280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7282: fi
7283: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284: CFLAGS=$saved_CFLAGS
7285:
7286: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7288: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7289: saved_CFLAGS="$CFLAGS"
7290: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292: /* end confdefs.h. */
7293: #include "mysql.h"
7294: int
7295: main ()
7296: {
7297:
7298: ;
7299: return 0;
7300: }
7301: _ACEOF
7302: if ac_fn_c_try_compile "$LINENO"; then :
7303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7304: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7305: libMySQLinc=$libMySQLinc
7306: else
7307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7309: fi
7310: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311: CFLAGS=$saved_CFLAGS
7312: libMySQLinc=$libMySQLinc/mysql
7313: fi
7314:
7315: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7317: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7318: saved_CFLAGS="$CFLAGS"
7319: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7320: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321: /* end confdefs.h. */
7322: #include "mysql.h"
7323: int
7324: main ()
7325: {
7326:
7327: ;
7328: return 0;
7329: }
7330: _ACEOF
7331: if ac_fn_c_try_compile "$LINENO"; then :
7332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7333: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7334: libMySQLinc=$libMySQLinc/mysql
7335: else
7336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7338: fi
7339: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340: CFLAGS=$saved_CFLAGS
7341: libMySQLinc=$libMySQLinc/../local/include
7342: libMySQLlib=$libMySQLlib/../local/lib
7343: fi
7344:
7345: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7347: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7348: saved_CFLAGS="$CFLAGS"
7349: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7350: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351: /* end confdefs.h. */
7352: #include "mysql.h"
7353: int
7354: main ()
7355: {
7356:
7357: ;
7358: return 0;
7359: }
7360: _ACEOF
7361: if ac_fn_c_try_compile "$LINENO"; then :
7362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7363: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7364: libMySQLinc=$libMySQLinc/mysql
7365: else
7366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7368: fi
7369: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370: CFLAGS=$saved_CFLAGS
7371: libMySQLinc=$libMySQLinc/../local/include/mysql
7372: libMySQLlib=$libMySQLlib/../local/lib
7373: fi
7374: else
7375: if test "x$with_mysql" != xno; then
7376: libMySQLinc="-I$with_mysql/include"
7377: libMySQLlib="$with_mysql/lib"
7378:
7379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7380: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7381: saved_CFLAGS="$CFLAGS"
7382: CFLAGS="$CFLAGS $libMySQLinc"
7383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384: /* end confdefs.h. */
7385: #include "mysql.h"
7386: int
7387: main ()
7388: {
7389:
7390: ;
7391: return 0;
7392: }
7393: _ACEOF
7394: if ac_fn_c_try_compile "$LINENO"; then :
7395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7397: libMySQLinc=$libMySQLinc/mysql
7398: else
7399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7401: fi
7402: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403: CFLAGS=$saved_CFLAGS
7404:
7405: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7407: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7408: saved_CFLAGS="$CFLAGS"
7409: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411: /* end confdefs.h. */
7412: #include "mysql.h"
7413: int
7414: main ()
7415: {
7416:
7417: ;
7418: return 0;
7419: }
7420: _ACEOF
7421: if ac_fn_c_try_compile "$LINENO"; then :
7422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7423: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7424: libMySQLinc=$libMySQLinc
7425: else
7426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7428: fi
7429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430: CFLAGS=$saved_CFLAGS
7431: libMySQLinc=$libMySQLinc/mysql
7432: fi
7433: else
7434: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7435: fi
7436: fi
7437:
7438: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7439: MYSQL_LIB=no
7440:
7441: if test $MYSQL_LIB = no; then
7442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7443: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7444: saved_LIBS="$LIBS"
7445: if test $STATIC = no; then
7446: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7447: else
7448: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7449: fi
7450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451: /* end confdefs.h. */
7452: #include "mysql.h"
7453: int
7454: main ()
7455: {
7456: MYSQL mysql; mysql_init(&mysql);
7457: ;
7458: return 0;
7459: }
7460: _ACEOF
7461: if ac_fn_c_try_link "$LINENO"; then :
7462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7464: else
7465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466: $as_echo "no" >&6; }; MYSQL_LIB="no"
7467: fi
7468: rm -f core conftest.err conftest.$ac_objext \
7469: conftest$ac_exeext conftest.$ac_ext
7470: LIBS=$saved_LIBS;
7471: if test $STATIC = no; then
7472: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7473: else
7474: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7475: EXT_SQL="$EXT_SQL $libMySQLlib"
7476: fi
7477: fi
7478:
7479: if test $MYSQL_LIB = no; then
7480: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7481: fi
7482: fi
7483:
7484: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7485: libMySQLinc=
7486: libMySQLlib=
7487: fi
7488:
7489:
7490:
7491:
7492:
7493: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7494:
7495: # Check whether --with-postgresql was given.
7496: if test "${with_postgresql+set}" = set; then :
7497: withval=$with_postgresql;
7498: else
7499: with_postgresql=check
7500: fi
7501:
7502:
7503: # with_postgresql : check [pas défini], yes [uniquement --with],
7504: # no [--without], valeur [--with=valeur].
7505:
7506: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7507: libPgSQLinc="-I/usr/include"
7508: libPgSQLlib="/usr/lib"
7509:
7510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7511: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7512: saved_CFLAGS="$CFLAGS"
7513: CFLAGS="$CFLAGS $libPgSQLinc"
7514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515: /* end confdefs.h. */
7516: #include "libpq-fe.h"
7517: int
7518: main ()
7519: {
7520:
7521: ;
7522: return 0;
7523: }
7524: _ACEOF
7525: if ac_fn_c_try_compile "$LINENO"; then :
7526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7527: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7528: else
7529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7531: fi
7532: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533: CFLAGS=$saved_CFLAGS
7534:
7535: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7537: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7538: saved_CFLAGS="$CFLAGS"
7539: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7540: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541: /* end confdefs.h. */
7542: #include "libpq-fe.h"
7543: int
7544: main ()
7545: {
7546:
7547: ;
7548: return 0;
7549: }
7550: _ACEOF
7551: if ac_fn_c_try_compile "$LINENO"; then :
7552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7553: $as_echo "yes" >&6; };
7554: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7555: else
7556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557: $as_echo "no" >&6; };
7558: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7559: fi
7560: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561: CFLAGS=$saved_CFLAGS
7562: libPgSQLinc=$libPgSQLinc/postgresql
7563: fi
7564:
7565: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7567: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7568: saved_CFLAGS="$CFLAGS"
7569: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571: /* end confdefs.h. */
7572: #include "libpq-fe.h"
7573: int
7574: main ()
7575: {
7576:
7577: ;
7578: return 0;
7579: }
7580: _ACEOF
7581: if ac_fn_c_try_compile "$LINENO"; then :
7582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7583: $as_echo "yes" >&6; };
7584: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7585: else
7586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587: $as_echo "no" >&6; };
7588: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7589: fi
7590: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591: CFLAGS=$saved_CFLAGS
7592: libPgSQLinc=$libPgSQLinc/pgsql
7593: fi
7594:
7595: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7597: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7598: saved_CFLAGS="$CFLAGS"
7599: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7600: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601: /* end confdefs.h. */
7602: #include "libpq-fe.h"
7603: int
7604: main ()
7605: {
7606:
7607: ;
7608: return 0;
7609: }
7610: _ACEOF
7611: if ac_fn_c_try_compile "$LINENO"; then :
7612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7613: $as_echo "yes" >&6; };
7614: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7615: else
7616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617: $as_echo "no" >&6; };
7618: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7619: fi
7620: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621: CFLAGS=$saved_CFLAGS
7622: libPgSQLinc=$libPgSQLinc/../local/include
7623: libPgSQLlib=$libPgSQLlib/../local/lib
7624: fi
7625:
7626: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7628: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7629: saved_CFLAGS="$CFLAGS"
7630: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7631: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632: /* end confdefs.h. */
7633: #include "libpq-fe.h"
7634: int
7635: main ()
7636: {
7637:
7638: ;
7639: return 0;
7640: }
7641: _ACEOF
7642: if ac_fn_c_try_compile "$LINENO"; then :
7643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7644: $as_echo "yes" >&6; };
7645: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7646: else
7647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648: $as_echo "no" >&6; };
7649: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7650: fi
7651: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652: CFLAGS=$saved_CFLAGS
7653: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7654: libPgSQLlib=$libPgSQLlib/../local/lib
7655: fi
7656:
7657: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7659: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7660: saved_CFLAGS="$CFLAGS"
7661: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7662: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663: /* end confdefs.h. */
7664: #include "libpq-fe.h"
7665: int
7666: main ()
7667: {
7668:
7669: ;
7670: return 0;
7671: }
7672: _ACEOF
7673: if ac_fn_c_try_compile "$LINENO"; then :
7674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675: $as_echo "yes" >&6; };
7676: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7677: else
7678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679: $as_echo "no" >&6; };
7680: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7681: fi
7682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683: CFLAGS=$saved_CFLAGS
7684: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7685: libPgSQLlib=$libPgSQLlib/../local/lib
7686: fi
7687: else
7688: if test "x$with_postgresql" != xno; then
7689: libPgSQLinc="-I$with_postgresql/include"
7690: libPgSQLlib="$with_postgresql/lib"
7691:
7692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7693: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7694: saved_CFLAGS="$CFLAGS"
7695: CFLAGS="$CFLAGS $libPgSQLinc"
7696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697: /* end confdefs.h. */
7698: #include "libpq-fe.h"
7699: int
7700: main ()
7701: {
7702:
7703: ;
7704: return 0;
7705: }
7706: _ACEOF
7707: if ac_fn_c_try_compile "$LINENO"; then :
7708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7709: $as_echo "yes" >&6; };
7710: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7711: else
7712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713: $as_echo "no" >&6; };
7714: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7715: fi
7716: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717: CFLAGS=$saved_CFLAGS
7718:
7719: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7721: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7722: saved_CFLAGS="$CFLAGS"
7723: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725: /* end confdefs.h. */
7726: #include "libpq-fe.h"
7727: int
7728: main ()
7729: {
7730:
7731: ;
7732: return 0;
7733: }
7734: _ACEOF
7735: if ac_fn_c_try_compile "$LINENO"; then :
7736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7737: $as_echo "yes" >&6; };
7738: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7739: else
7740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741: $as_echo "no" >&6; };
7742: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7743: fi
7744: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745: CFLAGS=$saved_CFLAGS
7746: libPgSQLinc=$libPgSQLinc/postgresql
7747: fi
7748:
7749: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7751: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7752: saved_CFLAGS="$CFLAGS"
7753: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755: /* end confdefs.h. */
7756: #include "libpq-fe.h"
7757: int
7758: main ()
7759: {
7760:
7761: ;
7762: return 0;
7763: }
7764: _ACEOF
7765: if ac_fn_c_try_compile "$LINENO"; then :
7766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7767: $as_echo "yes" >&6; };
7768: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7769: else
7770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771: $as_echo "no" >&6; };
7772: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7773: fi
7774: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775: CFLAGS=$saved_CFLAGS
7776: libPgSQLinc=$libPgSQLinc/pgsql
7777: fi
7778: else
7779: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7780: fi
7781: fi
7782:
7783: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7784: POSTGRESQL_LIB=no
7785:
7786: if test $POSTGRESQL_LIB = no; then
7787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7788: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7789: saved_LIBS="$LIBS"
7790: if test $STATIC = no; then
7791: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7792: else
7793: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7794: fi
7795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796: /* end confdefs.h. */
7797: #include "libpq-fe.h"
7798: int
7799: main ()
7800: {
7801: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7802: PQconnectdb(conninfo);
7803: ;
7804: return 0;
7805: }
7806: _ACEOF
7807: if ac_fn_c_try_link "$LINENO"; then :
7808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7809: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7810: else
7811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7813: fi
7814: rm -f core conftest.err conftest.$ac_objext \
7815: conftest$ac_exeext conftest.$ac_ext
7816: LIBS=$saved_LIBS;
7817: if test $STATIC = no; then
7818: libPgSQLlib="-L/$libPgSQLlib -lpq"
7819: else
7820: libPgSQLlib="$libPgSQLlib/libpq.a"
7821: EXT_SQL="$EXT_SQL $libPgSQLlib"
7822: fi
7823: fi
7824: fi
7825:
7826: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7827: libPgSQLinc=
7828: libPgSQLlib=
7829: fi
7830:
7831:
7832:
7833:
7834:
7835: # with_postgresql : check [pas défini], yes [uniquement --with],
7836: # no [--without], valeur [--with=valeur].
7837:
7838: # Check whether --with-bourne_shell was given.
7839: if test "${with_bourne_shell+set}" = set; then :
7840: withval=$with_bourne_shell;
7841: else
7842: with_bourne_shell=no
7843: fi
7844:
7845:
7846: if test "x$with_bourne_shell" = xyes; then
7847: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
7848: fi
7849:
7850: if test "x$with_bourne_shell" = xno; then
7851: if test $(uname) = "OS/2"; then
7852: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
7853: fi
7854:
7855: BSH_PATH=
7856: else
7857: if test ! -x $with_bourne_shell; then
7858: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
7859: fi
7860:
7861: if test $(uname) = "OS/2"; then
7862: with_os2_bourne_shell=$(echo $with_bourne_shell | \
7863: sed -e '1,$s/\//\\\\\\\\/g')
7864: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
7865: else
7866: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
7867: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
7868: BSH_PATH=
7869: fi
7870: fi
7871:
7872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7873: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7874: if ${ac_cv_path_GREP+:} false; then :
7875: $as_echo_n "(cached) " >&6
7876: else
7877: if test -z "$GREP"; then
7878: ac_path_GREP_found=false
7879: # Loop through the user's path and test for each of PROGNAME-LIST
7880: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7882: do
7883: IFS=$as_save_IFS
7884: test -z "$as_dir" && as_dir=.
7885: for ac_prog in grep ggrep; do
7886: for ac_exec_ext in '' $ac_executable_extensions; do
7887: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7888: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7889: # Check for GNU ac_path_GREP and select it if it is found.
7890: # Check for GNU $ac_path_GREP
7891: case `"$ac_path_GREP" --version 2>&1` in
7892: *GNU*)
7893: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7894: *)
7895: ac_count=0
7896: $as_echo_n 0123456789 >"conftest.in"
7897: while :
7898: do
7899: cat "conftest.in" "conftest.in" >"conftest.tmp"
7900: mv "conftest.tmp" "conftest.in"
7901: cp "conftest.in" "conftest.nl"
7902: $as_echo 'GREP' >> "conftest.nl"
7903: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7904: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7905: as_fn_arith $ac_count + 1 && ac_count=$as_val
7906: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7907: # Best one so far, save it but keep looking for a better one
7908: ac_cv_path_GREP="$ac_path_GREP"
7909: ac_path_GREP_max=$ac_count
7910: fi
7911: # 10*(2^10) chars as input seems more than enough
7912: test $ac_count -gt 10 && break
7913: done
7914: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7915: esac
7916:
7917: $ac_path_GREP_found && break 3
7918: done
7919: done
7920: done
7921: IFS=$as_save_IFS
7922: if test -z "$ac_cv_path_GREP"; then
7923: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7924: fi
7925: else
7926: ac_cv_path_GREP=$GREP
7927: fi
7928:
7929: fi
7930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7931: $as_echo "$ac_cv_path_GREP" >&6; }
7932: GREP="$ac_cv_path_GREP"
7933:
7934:
7935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7936: $as_echo_n "checking for egrep... " >&6; }
7937: if ${ac_cv_path_EGREP+:} false; then :
7938: $as_echo_n "(cached) " >&6
7939: else
7940: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7941: then ac_cv_path_EGREP="$GREP -E"
7942: else
7943: if test -z "$EGREP"; then
7944: ac_path_EGREP_found=false
7945: # Loop through the user's path and test for each of PROGNAME-LIST
7946: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7948: do
7949: IFS=$as_save_IFS
7950: test -z "$as_dir" && as_dir=.
7951: for ac_prog in egrep; do
7952: for ac_exec_ext in '' $ac_executable_extensions; do
7953: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7954: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7955: # Check for GNU ac_path_EGREP and select it if it is found.
7956: # Check for GNU $ac_path_EGREP
7957: case `"$ac_path_EGREP" --version 2>&1` in
7958: *GNU*)
7959: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7960: *)
7961: ac_count=0
7962: $as_echo_n 0123456789 >"conftest.in"
7963: while :
7964: do
7965: cat "conftest.in" "conftest.in" >"conftest.tmp"
7966: mv "conftest.tmp" "conftest.in"
7967: cp "conftest.in" "conftest.nl"
7968: $as_echo 'EGREP' >> "conftest.nl"
7969: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7970: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7971: as_fn_arith $ac_count + 1 && ac_count=$as_val
7972: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7973: # Best one so far, save it but keep looking for a better one
7974: ac_cv_path_EGREP="$ac_path_EGREP"
7975: ac_path_EGREP_max=$ac_count
7976: fi
7977: # 10*(2^10) chars as input seems more than enough
7978: test $ac_count -gt 10 && break
7979: done
7980: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7981: esac
7982:
7983: $ac_path_EGREP_found && break 3
7984: done
7985: done
7986: done
7987: IFS=$as_save_IFS
7988: if test -z "$ac_cv_path_EGREP"; then
7989: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7990: fi
7991: else
7992: ac_cv_path_EGREP=$EGREP
7993: fi
7994:
7995: fi
7996: fi
7997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7998: $as_echo "$ac_cv_path_EGREP" >&6; }
7999: EGREP="$ac_cv_path_EGREP"
8000:
8001:
8002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8003: $as_echo_n "checking for ANSI C header files... " >&6; }
8004: if ${ac_cv_header_stdc+:} false; then :
8005: $as_echo_n "(cached) " >&6
8006: else
8007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008: /* end confdefs.h. */
8009: #include <stdlib.h>
8010: #include <stdarg.h>
8011: #include <string.h>
8012: #include <float.h>
8013:
8014: int
8015: main ()
8016: {
8017:
8018: ;
8019: return 0;
8020: }
8021: _ACEOF
8022: if ac_fn_c_try_compile "$LINENO"; then :
8023: ac_cv_header_stdc=yes
8024: else
8025: ac_cv_header_stdc=no
8026: fi
8027: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028:
8029: if test $ac_cv_header_stdc = yes; then
8030: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032: /* end confdefs.h. */
8033: #include <string.h>
8034:
8035: _ACEOF
8036: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037: $EGREP "memchr" >/dev/null 2>&1; then :
8038:
8039: else
8040: ac_cv_header_stdc=no
8041: fi
8042: rm -f conftest*
8043:
8044: fi
8045:
8046: if test $ac_cv_header_stdc = yes; then
8047: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049: /* end confdefs.h. */
8050: #include <stdlib.h>
8051:
8052: _ACEOF
8053: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054: $EGREP "free" >/dev/null 2>&1; then :
8055:
8056: else
8057: ac_cv_header_stdc=no
8058: fi
8059: rm -f conftest*
8060:
8061: fi
8062:
8063: if test $ac_cv_header_stdc = yes; then
8064: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8065: if test "$cross_compiling" = yes; then :
8066: :
8067: else
8068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069: /* end confdefs.h. */
8070: #include <ctype.h>
8071: #include <stdlib.h>
8072: #if ((' ' & 0x0FF) == 0x020)
8073: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8074: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8075: #else
8076: # define ISLOWER(c) \
8077: (('a' <= (c) && (c) <= 'i') \
8078: || ('j' <= (c) && (c) <= 'r') \
8079: || ('s' <= (c) && (c) <= 'z'))
8080: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8081: #endif
8082:
8083: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8084: int
8085: main ()
8086: {
8087: int i;
8088: for (i = 0; i < 256; i++)
8089: if (XOR (islower (i), ISLOWER (i))
8090: || toupper (i) != TOUPPER (i))
8091: return 2;
8092: return 0;
8093: }
8094: _ACEOF
8095: if ac_fn_c_try_run "$LINENO"; then :
8096:
8097: else
8098: ac_cv_header_stdc=no
8099: fi
8100: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101: conftest.$ac_objext conftest.beam conftest.$ac_ext
8102: fi
8103:
8104: fi
8105: fi
8106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8107: $as_echo "$ac_cv_header_stdc" >&6; }
8108: if test $ac_cv_header_stdc = yes; then
8109:
8110: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8111:
8112: fi
8113:
8114: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8115: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8116: inttypes.h stdint.h unistd.h
8117: do :
8118: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8119: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8120: "
8121: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8122: cat >>confdefs.h <<_ACEOF
8123: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8124: _ACEOF
8125:
8126: fi
8127:
8128: done
8129:
8130:
8131: # The cast to long int works around a bug in the HP C Compiler
8132: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8133: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8134: # This bug is HP SR number 8606223364.
8135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8136: $as_echo_n "checking size of void *... " >&6; }
8137: if ${ac_cv_sizeof_void_p+:} false; then :
8138: $as_echo_n "(cached) " >&6
8139: else
8140: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8141:
8142: else
8143: if test "$ac_cv_type_void_p" = yes; then
8144: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8145: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8146: as_fn_error 77 "cannot compute sizeof (void *)
8147: See \`config.log' for more details" "$LINENO" 5; }
8148: else
8149: ac_cv_sizeof_void_p=0
8150: fi
8151: fi
8152:
8153: fi
8154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8155: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8156:
8157:
8158:
8159: cat >>confdefs.h <<_ACEOF
8160: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8161: _ACEOF
8162:
8163:
8164: # The cast to long int works around a bug in the HP C Compiler
8165: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8166: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8167: # This bug is HP SR number 8606223364.
8168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8169: $as_echo_n "checking size of char... " >&6; }
8170: if ${ac_cv_sizeof_char+:} false; then :
8171: $as_echo_n "(cached) " >&6
8172: else
8173: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8174:
8175: else
8176: if test "$ac_cv_type_char" = yes; then
8177: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8178: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8179: as_fn_error 77 "cannot compute sizeof (char)
8180: See \`config.log' for more details" "$LINENO" 5; }
8181: else
8182: ac_cv_sizeof_char=0
8183: fi
8184: fi
8185:
8186: fi
8187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8188: $as_echo "$ac_cv_sizeof_char" >&6; }
8189:
8190:
8191:
8192: cat >>confdefs.h <<_ACEOF
8193: #define SIZEOF_CHAR $ac_cv_sizeof_char
8194: _ACEOF
8195:
8196:
8197: # The cast to long int works around a bug in the HP C Compiler
8198: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8199: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8200: # This bug is HP SR number 8606223364.
8201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8202: $as_echo_n "checking size of short int... " >&6; }
8203: if ${ac_cv_sizeof_short_int+:} false; then :
8204: $as_echo_n "(cached) " >&6
8205: else
8206: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8207:
8208: else
8209: if test "$ac_cv_type_short_int" = yes; then
8210: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8211: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8212: as_fn_error 77 "cannot compute sizeof (short int)
8213: See \`config.log' for more details" "$LINENO" 5; }
8214: else
8215: ac_cv_sizeof_short_int=0
8216: fi
8217: fi
8218:
8219: fi
8220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8221: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8222:
8223:
8224:
8225: cat >>confdefs.h <<_ACEOF
8226: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8227: _ACEOF
8228:
8229:
8230: # The cast to long int works around a bug in the HP C Compiler
8231: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8232: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8233: # This bug is HP SR number 8606223364.
8234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8235: $as_echo_n "checking size of int... " >&6; }
8236: if ${ac_cv_sizeof_int+:} false; then :
8237: $as_echo_n "(cached) " >&6
8238: else
8239: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8240:
8241: else
8242: if test "$ac_cv_type_int" = yes; then
8243: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8244: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8245: as_fn_error 77 "cannot compute sizeof (int)
8246: See \`config.log' for more details" "$LINENO" 5; }
8247: else
8248: ac_cv_sizeof_int=0
8249: fi
8250: fi
8251:
8252: fi
8253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8254: $as_echo "$ac_cv_sizeof_int" >&6; }
8255:
8256:
8257:
8258: cat >>confdefs.h <<_ACEOF
8259: #define SIZEOF_INT $ac_cv_sizeof_int
8260: _ACEOF
8261:
8262:
8263: # The cast to long int works around a bug in the HP C Compiler
8264: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8265: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8266: # This bug is HP SR number 8606223364.
8267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8268: $as_echo_n "checking size of long int... " >&6; }
8269: if ${ac_cv_sizeof_long_int+:} false; then :
8270: $as_echo_n "(cached) " >&6
8271: else
8272: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8273:
8274: else
8275: if test "$ac_cv_type_long_int" = yes; then
8276: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8277: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8278: as_fn_error 77 "cannot compute sizeof (long int)
8279: See \`config.log' for more details" "$LINENO" 5; }
8280: else
8281: ac_cv_sizeof_long_int=0
8282: fi
8283: fi
8284:
8285: fi
8286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8287: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8288:
8289:
8290:
8291: cat >>confdefs.h <<_ACEOF
8292: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8293: _ACEOF
8294:
8295:
8296: # The cast to long int works around a bug in the HP C Compiler
8297: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8298: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8299: # This bug is HP SR number 8606223364.
8300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8301: $as_echo_n "checking size of long long int... " >&6; }
8302: if ${ac_cv_sizeof_long_long_int+:} false; then :
8303: $as_echo_n "(cached) " >&6
8304: else
8305: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8306:
8307: else
8308: if test "$ac_cv_type_long_long_int" = yes; then
8309: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8310: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8311: as_fn_error 77 "cannot compute sizeof (long long int)
8312: See \`config.log' for more details" "$LINENO" 5; }
8313: else
8314: ac_cv_sizeof_long_long_int=0
8315: fi
8316: fi
8317:
8318: fi
8319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8320: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8321:
8322:
8323:
8324: cat >>confdefs.h <<_ACEOF
8325: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8326: _ACEOF
8327:
8328:
8329: # The cast to long int works around a bug in the HP C Compiler
8330: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8331: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8332: # This bug is HP SR number 8606223364.
8333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8334: $as_echo_n "checking size of float... " >&6; }
8335: if ${ac_cv_sizeof_float+:} false; then :
8336: $as_echo_n "(cached) " >&6
8337: else
8338: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8339:
8340: else
8341: if test "$ac_cv_type_float" = yes; then
8342: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8343: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8344: as_fn_error 77 "cannot compute sizeof (float)
8345: See \`config.log' for more details" "$LINENO" 5; }
8346: else
8347: ac_cv_sizeof_float=0
8348: fi
8349: fi
8350:
8351: fi
8352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8353: $as_echo "$ac_cv_sizeof_float" >&6; }
8354:
8355:
8356:
8357: cat >>confdefs.h <<_ACEOF
8358: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8359: _ACEOF
8360:
8361:
8362: # The cast to long int works around a bug in the HP C Compiler
8363: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8364: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8365: # This bug is HP SR number 8606223364.
8366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8367: $as_echo_n "checking size of double... " >&6; }
8368: if ${ac_cv_sizeof_double+:} false; then :
8369: $as_echo_n "(cached) " >&6
8370: else
8371: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8372:
8373: else
8374: if test "$ac_cv_type_double" = yes; then
8375: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8376: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8377: as_fn_error 77 "cannot compute sizeof (double)
8378: See \`config.log' for more details" "$LINENO" 5; }
8379: else
8380: ac_cv_sizeof_double=0
8381: fi
8382: fi
8383:
8384: fi
8385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8386: $as_echo "$ac_cv_sizeof_double" >&6; }
8387:
8388:
8389:
8390: cat >>confdefs.h <<_ACEOF
8391: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8392: _ACEOF
8393:
8394:
8395: # The cast to long int works around a bug in the HP C Compiler
8396: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8397: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8398: # This bug is HP SR number 8606223364.
8399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8400: $as_echo_n "checking size of long double... " >&6; }
8401: if ${ac_cv_sizeof_long_double+:} false; then :
8402: $as_echo_n "(cached) " >&6
8403: else
8404: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8405:
8406: else
8407: if test "$ac_cv_type_long_double" = yes; then
8408: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8409: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8410: as_fn_error 77 "cannot compute sizeof (long double)
8411: See \`config.log' for more details" "$LINENO" 5; }
8412: else
8413: ac_cv_sizeof_long_double=0
8414: fi
8415: fi
8416:
8417: fi
8418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8419: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8420:
8421:
8422:
8423: cat >>confdefs.h <<_ACEOF
8424: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8425: _ACEOF
8426:
8427:
8428:
8429: ac_header_dirent=no
8430: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8431: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8433: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8434: if eval \${$as_ac_Header+:} false; then :
8435: $as_echo_n "(cached) " >&6
8436: else
8437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438: /* end confdefs.h. */
8439: #include <sys/types.h>
8440: #include <$ac_hdr>
8441:
8442: int
8443: main ()
8444: {
8445: if ((DIR *) 0)
8446: return 0;
8447: ;
8448: return 0;
8449: }
8450: _ACEOF
8451: if ac_fn_c_try_compile "$LINENO"; then :
8452: eval "$as_ac_Header=yes"
8453: else
8454: eval "$as_ac_Header=no"
8455: fi
8456: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457: fi
8458: eval ac_res=\$$as_ac_Header
8459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8460: $as_echo "$ac_res" >&6; }
8461: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8462: cat >>confdefs.h <<_ACEOF
8463: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8464: _ACEOF
8465:
8466: ac_header_dirent=$ac_hdr; break
8467: fi
8468:
8469: done
8470: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8471: if test $ac_header_dirent = dirent.h; then
8472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8473: $as_echo_n "checking for library containing opendir... " >&6; }
8474: if ${ac_cv_search_opendir+:} false; then :
8475: $as_echo_n "(cached) " >&6
8476: else
8477: ac_func_search_save_LIBS=$LIBS
8478: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479: /* end confdefs.h. */
8480:
8481: /* Override any GCC internal prototype to avoid an error.
8482: Use char because int might match the return type of a GCC
8483: builtin and then its argument prototype would still apply. */
8484: #ifdef __cplusplus
8485: extern "C"
8486: #endif
8487: char opendir ();
8488: int
8489: main ()
8490: {
8491: return opendir ();
8492: ;
8493: return 0;
8494: }
8495: _ACEOF
8496: for ac_lib in '' dir; do
8497: if test -z "$ac_lib"; then
8498: ac_res="none required"
8499: else
8500: ac_res=-l$ac_lib
8501: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8502: fi
8503: if ac_fn_c_try_link "$LINENO"; then :
8504: ac_cv_search_opendir=$ac_res
8505: fi
8506: rm -f core conftest.err conftest.$ac_objext \
8507: conftest$ac_exeext
8508: if ${ac_cv_search_opendir+:} false; then :
8509: break
8510: fi
8511: done
8512: if ${ac_cv_search_opendir+:} false; then :
8513:
8514: else
8515: ac_cv_search_opendir=no
8516: fi
8517: rm conftest.$ac_ext
8518: LIBS=$ac_func_search_save_LIBS
8519: fi
8520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8521: $as_echo "$ac_cv_search_opendir" >&6; }
8522: ac_res=$ac_cv_search_opendir
8523: if test "$ac_res" != no; then :
8524: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8525:
8526: fi
8527:
8528: else
8529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8530: $as_echo_n "checking for library containing opendir... " >&6; }
8531: if ${ac_cv_search_opendir+:} false; then :
8532: $as_echo_n "(cached) " >&6
8533: else
8534: ac_func_search_save_LIBS=$LIBS
8535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536: /* end confdefs.h. */
8537:
8538: /* Override any GCC internal prototype to avoid an error.
8539: Use char because int might match the return type of a GCC
8540: builtin and then its argument prototype would still apply. */
8541: #ifdef __cplusplus
8542: extern "C"
8543: #endif
8544: char opendir ();
8545: int
8546: main ()
8547: {
8548: return opendir ();
8549: ;
8550: return 0;
8551: }
8552: _ACEOF
8553: for ac_lib in '' x; do
8554: if test -z "$ac_lib"; then
8555: ac_res="none required"
8556: else
8557: ac_res=-l$ac_lib
8558: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8559: fi
8560: if ac_fn_c_try_link "$LINENO"; then :
8561: ac_cv_search_opendir=$ac_res
8562: fi
8563: rm -f core conftest.err conftest.$ac_objext \
8564: conftest$ac_exeext
8565: if ${ac_cv_search_opendir+:} false; then :
8566: break
8567: fi
8568: done
8569: if ${ac_cv_search_opendir+:} false; then :
8570:
8571: else
8572: ac_cv_search_opendir=no
8573: fi
8574: rm conftest.$ac_ext
8575: LIBS=$ac_func_search_save_LIBS
8576: fi
8577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8578: $as_echo "$ac_cv_search_opendir" >&6; }
8579: ac_res=$ac_cv_search_opendir
8580: if test "$ac_res" != no; then :
8581: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8582:
8583: fi
8584:
8585: fi
8586:
8587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8588: $as_echo_n "checking for ANSI C header files... " >&6; }
8589: if ${ac_cv_header_stdc+:} false; then :
8590: $as_echo_n "(cached) " >&6
8591: else
8592: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593: /* end confdefs.h. */
8594: #include <stdlib.h>
8595: #include <stdarg.h>
8596: #include <string.h>
8597: #include <float.h>
8598:
8599: int
8600: main ()
8601: {
8602:
8603: ;
8604: return 0;
8605: }
8606: _ACEOF
8607: if ac_fn_c_try_compile "$LINENO"; then :
8608: ac_cv_header_stdc=yes
8609: else
8610: ac_cv_header_stdc=no
8611: fi
8612: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613:
8614: if test $ac_cv_header_stdc = yes; then
8615: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617: /* end confdefs.h. */
8618: #include <string.h>
8619:
8620: _ACEOF
8621: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8622: $EGREP "memchr" >/dev/null 2>&1; then :
8623:
8624: else
8625: ac_cv_header_stdc=no
8626: fi
8627: rm -f conftest*
8628:
8629: fi
8630:
8631: if test $ac_cv_header_stdc = yes; then
8632: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634: /* end confdefs.h. */
8635: #include <stdlib.h>
8636:
8637: _ACEOF
8638: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8639: $EGREP "free" >/dev/null 2>&1; then :
8640:
8641: else
8642: ac_cv_header_stdc=no
8643: fi
8644: rm -f conftest*
8645:
8646: fi
8647:
8648: if test $ac_cv_header_stdc = yes; then
8649: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8650: if test "$cross_compiling" = yes; then :
8651: :
8652: else
8653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654: /* end confdefs.h. */
8655: #include <ctype.h>
8656: #include <stdlib.h>
8657: #if ((' ' & 0x0FF) == 0x020)
8658: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8659: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8660: #else
8661: # define ISLOWER(c) \
8662: (('a' <= (c) && (c) <= 'i') \
8663: || ('j' <= (c) && (c) <= 'r') \
8664: || ('s' <= (c) && (c) <= 'z'))
8665: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8666: #endif
8667:
8668: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8669: int
8670: main ()
8671: {
8672: int i;
8673: for (i = 0; i < 256; i++)
8674: if (XOR (islower (i), ISLOWER (i))
8675: || toupper (i) != TOUPPER (i))
8676: return 2;
8677: return 0;
8678: }
8679: _ACEOF
8680: if ac_fn_c_try_run "$LINENO"; then :
8681:
8682: else
8683: ac_cv_header_stdc=no
8684: fi
8685: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8686: conftest.$ac_objext conftest.beam conftest.$ac_ext
8687: fi
8688:
8689: fi
8690: fi
8691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8692: $as_echo "$ac_cv_header_stdc" >&6; }
8693: if test $ac_cv_header_stdc = yes; then
8694:
8695: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8696:
8697: fi
8698:
8699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8700: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8701: if ${ac_cv_header_sys_wait_h+:} false; then :
8702: $as_echo_n "(cached) " >&6
8703: else
8704: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705: /* end confdefs.h. */
8706: #include <sys/types.h>
8707: #include <sys/wait.h>
8708: #ifndef WEXITSTATUS
8709: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8710: #endif
8711: #ifndef WIFEXITED
8712: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8713: #endif
8714:
8715: int
8716: main ()
8717: {
8718: int s;
8719: wait (&s);
8720: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8721: ;
8722: return 0;
8723: }
8724: _ACEOF
8725: if ac_fn_c_try_compile "$LINENO"; then :
8726: ac_cv_header_sys_wait_h=yes
8727: else
8728: ac_cv_header_sys_wait_h=no
8729: fi
8730: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731: fi
8732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8733: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8734: if test $ac_cv_header_sys_wait_h = yes; then
8735:
8736: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8737:
8738: fi
8739:
8740: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8741: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8742: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8743: do :
8744: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8745: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8746: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8747: cat >>confdefs.h <<_ACEOF
8748: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749: _ACEOF
8750:
8751: fi
8752:
8753: done
8754:
8755:
8756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8757: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8758: if ${ac_cv_c_const+:} false; then :
8759: $as_echo_n "(cached) " >&6
8760: else
8761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762: /* end confdefs.h. */
8763:
8764: int
8765: main ()
8766: {
8767: /* FIXME: Include the comments suggested by Paul. */
8768: #ifndef __cplusplus
8769: /* Ultrix mips cc rejects this. */
8770: typedef int charset[2];
8771: const charset cs;
8772: /* SunOS 4.1.1 cc rejects this. */
8773: char const *const *pcpcc;
8774: char **ppc;
8775: /* NEC SVR4.0.2 mips cc rejects this. */
8776: struct point {int x, y;};
8777: static struct point const zero = {0,0};
8778: /* AIX XL C 1.02.0.0 rejects this.
8779: It does not let you subtract one const X* pointer from another in
8780: an arm of an if-expression whose if-part is not a constant
8781: expression */
8782: const char *g = "string";
8783: pcpcc = &g + (g ? g-g : 0);
8784: /* HPUX 7.0 cc rejects these. */
8785: ++pcpcc;
8786: ppc = (char**) pcpcc;
8787: pcpcc = (char const *const *) ppc;
8788: { /* SCO 3.2v4 cc rejects this. */
8789: char *t;
8790: char const *s = 0 ? (char *) 0 : (char const *) 0;
8791:
8792: *t++ = 0;
8793: if (s) return 0;
8794: }
8795: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8796: int x[] = {25, 17};
8797: const int *foo = &x[0];
8798: ++foo;
8799: }
8800: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8801: typedef const int *iptr;
8802: iptr p = 0;
8803: ++p;
8804: }
8805: { /* AIX XL C 1.02.0.0 rejects this saying
8806: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8807: struct s { int j; const int *ap[3]; };
8808: struct s *b; b->j = 5;
8809: }
8810: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8811: const int foo = 10;
8812: if (!foo) return 0;
8813: }
8814: return !cs[0] && !zero.x;
8815: #endif
8816:
8817: ;
8818: return 0;
8819: }
8820: _ACEOF
8821: if ac_fn_c_try_compile "$LINENO"; then :
8822: ac_cv_c_const=yes
8823: else
8824: ac_cv_c_const=no
8825: fi
8826: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827: fi
8828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8829: $as_echo "$ac_cv_c_const" >&6; }
8830: if test $ac_cv_c_const = no; then
8831:
8832: $as_echo "#define const /**/" >>confdefs.h
8833:
8834: fi
8835:
8836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8837: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8838: if ${ac_cv_type_uid_t+:} false; then :
8839: $as_echo_n "(cached) " >&6
8840: else
8841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842: /* end confdefs.h. */
8843: #include <sys/types.h>
8844:
8845: _ACEOF
8846: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847: $EGREP "uid_t" >/dev/null 2>&1; then :
8848: ac_cv_type_uid_t=yes
8849: else
8850: ac_cv_type_uid_t=no
8851: fi
8852: rm -f conftest*
8853:
8854: fi
8855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8856: $as_echo "$ac_cv_type_uid_t" >&6; }
8857: if test $ac_cv_type_uid_t = no; then
8858:
8859: $as_echo "#define uid_t int" >>confdefs.h
8860:
8861:
8862: $as_echo "#define gid_t int" >>confdefs.h
8863:
8864: fi
8865:
8866: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8867: if test "x$ac_cv_type_pid_t" = xyes; then :
8868:
8869: else
8870:
8871: cat >>confdefs.h <<_ACEOF
8872: #define pid_t int
8873: _ACEOF
8874:
8875: fi
8876:
8877: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8878: if test "x$ac_cv_type_size_t" = xyes; then :
8879:
8880: else
8881:
8882: cat >>confdefs.h <<_ACEOF
8883: #define size_t unsigned int
8884: _ACEOF
8885:
8886: fi
8887:
8888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8889: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8890: if ${ac_cv_header_time+:} false; then :
8891: $as_echo_n "(cached) " >&6
8892: else
8893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894: /* end confdefs.h. */
8895: #include <sys/types.h>
8896: #include <sys/time.h>
8897: #include <time.h>
8898:
8899: int
8900: main ()
8901: {
8902: if ((struct tm *) 0)
8903: return 0;
8904: ;
8905: return 0;
8906: }
8907: _ACEOF
8908: if ac_fn_c_try_compile "$LINENO"; then :
8909: ac_cv_header_time=yes
8910: else
8911: ac_cv_header_time=no
8912: fi
8913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914: fi
8915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8916: $as_echo "$ac_cv_header_time" >&6; }
8917: if test $ac_cv_header_time = yes; then
8918:
8919: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8920:
8921: fi
8922:
8923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8924: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8925: if ${ac_cv_struct_tm+:} false; then :
8926: $as_echo_n "(cached) " >&6
8927: else
8928: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929: /* end confdefs.h. */
8930: #include <sys/types.h>
8931: #include <time.h>
8932:
8933: int
8934: main ()
8935: {
8936: struct tm tm;
8937: int *p = &tm.tm_sec;
8938: return !p;
8939: ;
8940: return 0;
8941: }
8942: _ACEOF
8943: if ac_fn_c_try_compile "$LINENO"; then :
8944: ac_cv_struct_tm=time.h
8945: else
8946: ac_cv_struct_tm=sys/time.h
8947: fi
8948: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949: fi
8950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8951: $as_echo "$ac_cv_struct_tm" >&6; }
8952: if test $ac_cv_struct_tm = sys/time.h; then
8953:
8954: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8955:
8956: fi
8957:
8958:
8959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8960: $as_echo_n "checking return type of signal handlers... " >&6; }
8961: if ${ac_cv_type_signal+:} false; then :
8962: $as_echo_n "(cached) " >&6
8963: else
8964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965: /* end confdefs.h. */
8966: #include <sys/types.h>
8967: #include <signal.h>
8968:
8969: int
8970: main ()
8971: {
8972: return *(signal (0, 0)) (0) == 1;
8973: ;
8974: return 0;
8975: }
8976: _ACEOF
8977: if ac_fn_c_try_compile "$LINENO"; then :
8978: ac_cv_type_signal=int
8979: else
8980: ac_cv_type_signal=void
8981: fi
8982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983: fi
8984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8985: $as_echo "$ac_cv_type_signal" >&6; }
8986:
8987: cat >>confdefs.h <<_ACEOF
8988: #define RETSIGTYPE $ac_cv_type_signal
8989: _ACEOF
8990:
8991:
8992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8993: $as_echo_n "checking for working strcoll... " >&6; }
8994: if ${ac_cv_func_strcoll_works+:} false; then :
8995: $as_echo_n "(cached) " >&6
8996: else
8997: if test "$cross_compiling" = yes; then :
8998: ac_cv_func_strcoll_works=no
8999: else
9000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001: /* end confdefs.h. */
9002: $ac_includes_default
9003: int
9004: main ()
9005: {
9006: return (strcoll ("abc", "def") >= 0 ||
9007: strcoll ("ABC", "DEF") >= 0 ||
9008: strcoll ("123", "456") >= 0)
9009: ;
9010: return 0;
9011: }
9012: _ACEOF
9013: if ac_fn_c_try_run "$LINENO"; then :
9014: ac_cv_func_strcoll_works=yes
9015: else
9016: ac_cv_func_strcoll_works=no
9017: fi
9018: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9019: conftest.$ac_objext conftest.beam conftest.$ac_ext
9020: fi
9021:
9022: fi
9023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9024: $as_echo "$ac_cv_func_strcoll_works" >&6; }
9025: if test $ac_cv_func_strcoll_works = yes; then
9026:
9027: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9028:
9029: fi
9030:
9031: for ac_func in strftime
9032: do :
9033: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9034: if test "x$ac_cv_func_strftime" = xyes; then :
9035: cat >>confdefs.h <<_ACEOF
9036: #define HAVE_STRFTIME 1
9037: _ACEOF
9038:
9039: else
9040: # strftime is in -lintl on SCO UNIX.
9041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9042: $as_echo_n "checking for strftime in -lintl... " >&6; }
9043: if ${ac_cv_lib_intl_strftime+:} false; then :
9044: $as_echo_n "(cached) " >&6
9045: else
9046: ac_check_lib_save_LIBS=$LIBS
9047: LIBS="-lintl $LIBS"
9048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049: /* end confdefs.h. */
9050:
9051: /* Override any GCC internal prototype to avoid an error.
9052: Use char because int might match the return type of a GCC
9053: builtin and then its argument prototype would still apply. */
9054: #ifdef __cplusplus
9055: extern "C"
9056: #endif
9057: char strftime ();
9058: int
9059: main ()
9060: {
9061: return strftime ();
9062: ;
9063: return 0;
9064: }
9065: _ACEOF
9066: if ac_fn_c_try_link "$LINENO"; then :
9067: ac_cv_lib_intl_strftime=yes
9068: else
9069: ac_cv_lib_intl_strftime=no
9070: fi
9071: rm -f core conftest.err conftest.$ac_objext \
9072: conftest$ac_exeext conftest.$ac_ext
9073: LIBS=$ac_check_lib_save_LIBS
9074: fi
9075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9076: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9077: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9078: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9079:
9080: LIBS="-lintl $LIBS"
9081: fi
9082:
9083: fi
9084: done
9085:
9086: for ac_func in vprintf
9087: do :
9088: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9089: if test "x$ac_cv_func_vprintf" = xyes; then :
9090: cat >>confdefs.h <<_ACEOF
9091: #define HAVE_VPRINTF 1
9092: _ACEOF
9093:
9094: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9095: if test "x$ac_cv_func__doprnt" = xyes; then :
9096:
9097: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9098:
9099: fi
9100:
9101: fi
9102: done
9103:
9104:
9105: for ac_func in ftime getcwd putenv select strcspn strdup \
9106: strerror strspn strstr strtod
9107: do :
9108: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9109: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9110: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9111: cat >>confdefs.h <<_ACEOF
9112: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9113: _ACEOF
9114:
9115: fi
9116: done
9117:
9118:
9119:
9120: # Check whether --with-openssl_arch was given.
9121: if test "${with_openssl_arch+set}" = set; then :
9122: withval=$with_openssl_arch;
9123: else
9124: with_openssl_arch=none
9125: fi
9126:
9127:
9128: if test $(uname) = "OS/2"; then
9129: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
9130: else
9131: if test "x$with_openssl_arch" = xnone; then
9132: (cd tools/$OPENSSL && ./config no-asm)
9133: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9134: (cd tools/$OPENSSL && ./Configure)
9135: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
9136: elif test "x$with_openssl_arch" = xlist; then
9137: (cd tools/$OPENSSL && ./Configure)
9138: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
9139: else
9140: (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
9141: fi
9142: fi
9143:
9144: if test "$MYGNUPLOT" = "yes"; then
9145: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9146: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9147: (cd "$srcdir/tools" && tar -xf -)
9148: fi
9149: subdirs="$subdirs tools/$GNUPLOT"
9150:
9151: GNUPLOT_COMPILATION=$GNUPLOT
9152: else
9153: GNUPLOT_COMPILATION=
9154: fi
9155:
9156:
9157:
9158: HOST=$host
9159:
9160:
9161: case $host_cpu in
9162:
9163: i?86)
9164: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9165: -Wno-pointer-sign"
9166: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9167: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9168: break ;;
9169:
9170: x86_64*)
9171: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9172: -Wno-pointer-sign"
9173: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9174: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9175: break ;;
9176:
9177: alpha*)
9178: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9179: -Wno-pointer-sign"
9180: FFLAGS="$FFLAGS -mieee -Wall"
9181: FCFLAGS="$FCFLAGS -mieee -Wall"
9182: break ;;
9183:
9184: sparc*)
9185: CFLAGS="$CFLAGS -Wall -funsigned-char \
9186: -Wno-pointer-sign"
9187: FFLAGS="$FFLAGS -Wall"
9188: FCFLAGS="$FCFLAGS -Wall"
9189: break ;;
9190:
9191: esac
9192:
9193: case $host_os in
9194:
9195: cygwin*)
9196: OS=Cygwin
9197: break ;;
9198:
9199: interix*)
9200: OS=Interix
9201: break ;;
9202:
9203: *)
9204: OS=$(uname)
9205: break ;;
9206:
9207: esac
9208:
9209:
9210:
9211: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9212: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9213: MALLOC=
9214:
9215: case $OS in
9216:
9217: Darwin)
9218: EXPORT_DYNAMIC=-Wl,-flat_namespace
9219: NESTED_FUNCTIONS=-fnested-functions
9220: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
9221: ac_configure_args="$ac_configure_args --with-readline=builtin \
9222: --disable-shared --enable-static --enable-threads \
9223: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9224: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9225: LDFLAGS=\"$LDFLAGS\""
9226: C_STANDARD=-std=gnu99
9227: ELF=
9228: break ;;
9229:
9230: Cygwin)
9231: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9232: NESTED_FUNCTIONS=
9233: ac_configure_args="$ac_configure_args --with-readline=builtin \
9234: --disable-shared --enable-static --enable-threads \
9235: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9236: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9237: LDFLAGS=\"$LDFLAGS\""
9238: C_STANDARD=-std=gnu99
9239: ELF=
9240: break ;;
9241:
9242: Interix)
9243: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9244: NESTED_FUNCTIONS=
9245: ac_configure_args="$ac_configure_args --with-readline=builtin \
9246: --disable-shared --enable-static --enable-threads \
9247: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9248: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9249: LDFLAGS=\"$LDFLAGS\""
9250: C_STANDARD=-std=gnu99
9251: ELF=
9252: break;;
9253:
9254: AIX)
9255: EXPORT_DYNAMIC=-Wl,--export-dynamic
9256: NESTED_FUNCTIONS=
9257: ac_configure_args="$ac_configure_args --with-readline=builtin \
9258: --disable-shared --enable-static --enable-threads \
9259: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9260: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9261: LDFLAGS=\"$LDFLAGS\""
9262: C_STANDARD=-std=gnu99
9263: ELF=
9264: break ;;
9265:
9266: OS/2)
9267: if test $FORCED_FINAL_ENCODING -eq 0; then \
9268: FINAL_ENCODING=CP850; \
9269: fi;
9270: OS=OS2
9271: NESTED_FUNCTIONS=
9272: EXPORT_DYNAMIC=-Zmap
9273: ac_configure_args="$ac_configure_args --without-readline \
9274: --without-cairo --disable-shared --enable-static \
9275: --enable-threads \
9276: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9277: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9278: LDFLAGS=\"$LDFLAGS\""
9279: C_STANDARD=
9280: ELF=
9281: break;;
9282:
9283: OpenBSD)
9284: if test $FORCED_FINAL_ENCODING -eq 0; then \
9285: FINAL_ENCODING=UTF-8; \
9286: fi;
9287: EXPORT_DYNAMIC=-Wl,--export-dynamic
9288: NESTED_FUNCTIONS=
9289: ac_configure_args="$ac_configure_args --with-readline=builtin \
9290: --disable-shared --enable-static --enable-threads \
9291: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9292: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9293: LDFLAGS=\"$LDFLAGS\""
9294: C_STANDARD=-std=gnu99
9295: ELF=
9296: break;;
9297:
9298: SunOS)
9299: EXPORT_DYNAMIC=-Wl,--export-dynamic
9300: NESTED_FUNCTIONS=
9301:
9302: ac_configure_args="$ac_configure_args --with-readline=builtin \
9303: --disable-shared --enable-static --enable-threads \
9304: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9305: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9306: LDFLAGS=\"$LDFLAGS\""
9307: C_STANDARD=-std=gnu99
9308: MALLOC=-lumem
9309: ELF=
9310: break ;;
9311:
9312: NetBSD)
9313: EXPORT_DYNAMIC=-Wl,--export-dynamic
9314: NESTED_FUNCTIONS=
9315:
9316: ac_configure_args="$ac_configure_args --with-readline=builtin \
9317: --disable-shared --enable-static --enable-threads \
9318: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9319: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9320: LDFLAGS=\"$LDFLAGS\""
9321: C_STANDARD=-std=gnu99
9322: GCCBIN=`which gcc`
9323: GCCLIB=`dirname $GCCBIN`/../lib
9324: ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
9325: break ;;
9326:
9327: *)
9328: EXPORT_DYNAMIC=-Wl,--export-dynamic
9329: NESTED_FUNCTIONS=
9330:
9331: ac_configure_args="$ac_configure_args --with-readline=builtin \
9332: --disable-shared --enable-static --enable-threads \
9333: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9334: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9335: LDFLAGS=\"$LDFLAGS\""
9336: C_STANDARD=-std=gnu99
9337: ELF=
9338: break ;;
9339:
9340: esac
9341:
9342:
9343:
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368:
9369:
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379:
9380:
9381:
9382:
9383:
9384:
9385: subdirs="$subdirs tools/$NCURSES"
9386:
9387: subdirs="$subdirs tools/$READLINE"
9388:
9389: subdirs="$subdirs tools/$GSL"
9390:
9391: subdirs="$subdirs tools/$GPP"
9392:
9393: subdirs="$subdirs tools/$FILE"
9394:
9395: subdirs="$subdirs tools/$ICONV"
9396:
9397: subdirs="$subdirs tools/$SQLITE"
9398:
9399: subdirs="$subdirs tools/$UNITS"
9400:
9401: subdirs="$subdirs tools/$SIGSEGV"
9402:
9403:
9404: ac_config_files="$ac_config_files Makefile"
9405:
9406: ac_config_files="$ac_config_files COPYING"
9407:
9408: ac_config_files="$ac_config_files tools/Makefile"
9409:
9410: ac_config_files="$ac_config_files src/Makefile"
9411:
9412: ac_config_files="$ac_config_files man/Makefile"
9413:
9414: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9415:
9416: ac_config_files="$ac_config_files doc/Makefile"
9417:
9418: ac_config_files="$ac_config_files scripts/Makefile"
9419:
9420: ac_config_files="$ac_config_files scripts/mkrplso"
9421:
9422: ac_config_files="$ac_config_files scripts/rplcc"
9423:
9424: ac_config_files="$ac_config_files scripts/rpllink"
9425:
9426: ac_config_files="$ac_config_files rpltags/Makefile"
9427:
9428: ac_config_files="$ac_config_files rpliconv/Makefile"
9429:
9430: ac_config_files="$ac_config_files rplsums/Makefile"
9431:
9432: ac_config_files="$ac_config_files rplcas/Makefile"
9433:
9434: ac_config_files="$ac_config_files rplawk/Makefile"
9435:
9436: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9437:
9438: ac_config_files="$ac_config_files lapack/blas/Makefile"
9439:
9440:
9441: ac_config_files="$ac_config_files man/rpl.1"
9442:
9443: ac_config_files="$ac_config_files man/rplcc.1"
9444:
9445: ac_config_files="$ac_config_files man/rpllink.1"
9446:
9447: ac_config_files="$ac_config_files man/rpltags.1"
9448:
9449: ac_config_files="$ac_config_files man/mkrplso.1"
9450:
9451: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9452:
9453: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9454:
9455: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9456:
9457: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9458:
9459: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9460:
9461:
9462: cat >confcache <<\_ACEOF
9463: # This file is a shell script that caches the results of configure
9464: # tests run on this system so they can be shared between configure
9465: # scripts and configure runs, see configure's option --config-cache.
9466: # It is not useful on other systems. If it contains results you don't
9467: # want to keep, you may remove or edit it.
9468: #
9469: # config.status only pays attention to the cache file if you give it
9470: # the --recheck option to rerun configure.
9471: #
9472: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9473: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9474: # following values.
9475:
9476: _ACEOF
9477:
9478: # The following way of writing the cache mishandles newlines in values,
9479: # but we know of no workaround that is simple, portable, and efficient.
9480: # So, we kill variables containing newlines.
9481: # Ultrix sh set writes to stderr and can't be redirected directly,
9482: # and sets the high bit in the cache file unless we assign to the vars.
9483: (
9484: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9485: eval ac_val=\$$ac_var
9486: case $ac_val in #(
9487: *${as_nl}*)
9488: case $ac_var in #(
9489: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9490: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9491: esac
9492: case $ac_var in #(
9493: _ | IFS | as_nl) ;; #(
9494: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9495: *) { eval $ac_var=; unset $ac_var;} ;;
9496: esac ;;
9497: esac
9498: done
9499:
9500: (set) 2>&1 |
9501: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9502: *${as_nl}ac_space=\ *)
9503: # `set' does not quote correctly, so add quotes: double-quote
9504: # substitution turns \\\\ into \\, and sed turns \\ into \.
9505: sed -n \
9506: "s/'/'\\\\''/g;
9507: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9508: ;; #(
9509: *)
9510: # `set' quotes correctly as required by POSIX, so do not add quotes.
9511: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9512: ;;
9513: esac |
9514: sort
9515: ) |
9516: sed '
9517: /^ac_cv_env_/b end
9518: t clear
9519: :clear
9520: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9521: t end
9522: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9523: :end' >>confcache
9524: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9525: if test -w "$cache_file"; then
9526: if test "x$cache_file" != "x/dev/null"; then
9527: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9528: $as_echo "$as_me: updating cache $cache_file" >&6;}
9529: if test ! -f "$cache_file" || test -h "$cache_file"; then
9530: cat confcache >"$cache_file"
9531: else
9532: case $cache_file in #(
9533: */* | ?:*)
9534: mv -f confcache "$cache_file"$$ &&
9535: mv -f "$cache_file"$$ "$cache_file" ;; #(
9536: *)
9537: mv -f confcache "$cache_file" ;;
9538: esac
9539: fi
9540: fi
9541: else
9542: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9543: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9544: fi
9545: fi
9546: rm -f confcache
9547:
9548: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9549: # Let make expand exec_prefix.
9550: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9551:
9552: DEFS=-DHAVE_CONFIG_H
9553:
9554: ac_libobjs=
9555: ac_ltlibobjs=
9556: U=
9557: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9558: # 1. Remove the extension, and $U if already installed.
9559: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9560: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9561: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9562: # will be set to the directory where LIBOBJS objects are built.
9563: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9564: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9565: done
9566: LIBOBJS=$ac_libobjs
9567:
9568: LTLIBOBJS=$ac_ltlibobjs
9569:
9570:
9571: if test -n "$EXEEXT"; then
9572: am__EXEEXT_TRUE=
9573: am__EXEEXT_FALSE='#'
9574: else
9575: am__EXEEXT_TRUE='#'
9576: am__EXEEXT_FALSE=
9577: fi
9578:
9579: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9580: as_fn_error $? "conditional \"AMDEP\" was never defined.
9581: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9582: fi
9583: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9584: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9585: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9586: fi
9587: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9588: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9589: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9590: fi
9591:
9592: : "${CONFIG_STATUS=./config.status}"
9593: ac_write_fail=0
9594: ac_clean_files_save=$ac_clean_files
9595: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9596: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9597: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9598: as_write_fail=0
9599: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9600: #! $SHELL
9601: # Generated by $as_me.
9602: # Run this file to recreate the current configuration.
9603: # Compiler output produced by configure, useful for debugging
9604: # configure, is in config.log if it exists.
9605:
9606: debug=false
9607: ac_cs_recheck=false
9608: ac_cs_silent=false
9609:
9610: SHELL=\${CONFIG_SHELL-$SHELL}
9611: export SHELL
9612: _ASEOF
9613: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9614: ## -------------------- ##
9615: ## M4sh Initialization. ##
9616: ## -------------------- ##
9617:
9618: # Be more Bourne compatible
9619: DUALCASE=1; export DUALCASE # for MKS sh
9620: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9621: emulate sh
9622: NULLCMD=:
9623: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9624: # is contrary to our usage. Disable this feature.
9625: alias -g '${1+"$@"}'='"$@"'
9626: setopt NO_GLOB_SUBST
9627: else
9628: case `(set -o) 2>/dev/null` in #(
9629: *posix*) :
9630: set -o posix ;; #(
9631: *) :
9632: ;;
9633: esac
9634: fi
9635:
9636:
9637: as_nl='
9638: '
9639: export as_nl
9640: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9641: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9642: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9643: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9644: # Prefer a ksh shell builtin over an external printf program on Solaris,
9645: # but without wasting forks for bash or zsh.
9646: if test -z "$BASH_VERSION$ZSH_VERSION" \
9647: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9648: as_echo='print -r --'
9649: as_echo_n='print -rn --'
9650: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9651: as_echo='printf %s\n'
9652: as_echo_n='printf %s'
9653: else
9654: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9655: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9656: as_echo_n='/usr/ucb/echo -n'
9657: else
9658: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9659: as_echo_n_body='eval
9660: arg=$1;
9661: case $arg in #(
9662: *"$as_nl"*)
9663: expr "X$arg" : "X\\(.*\\)$as_nl";
9664: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9665: esac;
9666: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9667: '
9668: export as_echo_n_body
9669: as_echo_n='sh -c $as_echo_n_body as_echo'
9670: fi
9671: export as_echo_body
9672: as_echo='sh -c $as_echo_body as_echo'
9673: fi
9674:
9675: # The user is always right.
9676: if test "${PATH_SEPARATOR+set}" != set; then
9677: PATH_SEPARATOR=:
9678: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9679: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9680: PATH_SEPARATOR=';'
9681: }
9682: fi
9683:
9684:
9685: # IFS
9686: # We need space, tab and new line, in precisely that order. Quoting is
9687: # there to prevent editors from complaining about space-tab.
9688: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9689: # splitting by setting IFS to empty value.)
9690: IFS=" "" $as_nl"
9691:
9692: # Find who we are. Look in the path if we contain no directory separator.
9693: as_myself=
9694: case $0 in #((
9695: *[\\/]* ) as_myself=$0 ;;
9696: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697: for as_dir in $PATH
9698: do
9699: IFS=$as_save_IFS
9700: test -z "$as_dir" && as_dir=.
9701: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9702: done
9703: IFS=$as_save_IFS
9704:
9705: ;;
9706: esac
9707: # We did not find ourselves, most probably we were run as `sh COMMAND'
9708: # in which case we are not to be found in the path.
9709: if test "x$as_myself" = x; then
9710: as_myself=$0
9711: fi
9712: if test ! -f "$as_myself"; then
9713: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9714: exit 1
9715: fi
9716:
9717: # Unset variables that we do not need and which cause bugs (e.g. in
9718: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9719: # suppresses any "Segmentation fault" message there. '((' could
9720: # trigger a bug in pdksh 5.2.14.
9721: for as_var in BASH_ENV ENV MAIL MAILPATH
9722: do eval test x\${$as_var+set} = xset \
9723: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9724: done
9725: PS1='$ '
9726: PS2='> '
9727: PS4='+ '
9728:
9729: # NLS nuisances.
9730: LC_ALL=C
9731: export LC_ALL
9732: LANGUAGE=C
9733: export LANGUAGE
9734:
9735: # CDPATH.
9736: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9737:
9738:
9739: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9740: # ----------------------------------------
9741: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9742: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9743: # script with STATUS, using 1 if that was 0.
9744: as_fn_error ()
9745: {
9746: as_status=$1; test $as_status -eq 0 && as_status=1
9747: if test "$4"; then
9748: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9749: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9750: fi
9751: $as_echo "$as_me: error: $2" >&2
9752: as_fn_exit $as_status
9753: } # as_fn_error
9754:
9755:
9756: # as_fn_set_status STATUS
9757: # -----------------------
9758: # Set $? to STATUS, without forking.
9759: as_fn_set_status ()
9760: {
9761: return $1
9762: } # as_fn_set_status
9763:
9764: # as_fn_exit STATUS
9765: # -----------------
9766: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9767: as_fn_exit ()
9768: {
9769: set +e
9770: as_fn_set_status $1
9771: exit $1
9772: } # as_fn_exit
9773:
9774: # as_fn_unset VAR
9775: # ---------------
9776: # Portably unset VAR.
9777: as_fn_unset ()
9778: {
9779: { eval $1=; unset $1;}
9780: }
9781: as_unset=as_fn_unset
9782: # as_fn_append VAR VALUE
9783: # ----------------------
9784: # Append the text in VALUE to the end of the definition contained in VAR. Take
9785: # advantage of any shell optimizations that allow amortized linear growth over
9786: # repeated appends, instead of the typical quadratic growth present in naive
9787: # implementations.
9788: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9789: eval 'as_fn_append ()
9790: {
9791: eval $1+=\$2
9792: }'
9793: else
9794: as_fn_append ()
9795: {
9796: eval $1=\$$1\$2
9797: }
9798: fi # as_fn_append
9799:
9800: # as_fn_arith ARG...
9801: # ------------------
9802: # Perform arithmetic evaluation on the ARGs, and store the result in the
9803: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9804: # must be portable across $(()) and expr.
9805: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9806: eval 'as_fn_arith ()
9807: {
9808: as_val=$(( $* ))
9809: }'
9810: else
9811: as_fn_arith ()
9812: {
9813: as_val=`expr "$@" || test $? -eq 1`
9814: }
9815: fi # as_fn_arith
9816:
9817:
9818: if expr a : '\(a\)' >/dev/null 2>&1 &&
9819: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9820: as_expr=expr
9821: else
9822: as_expr=false
9823: fi
9824:
9825: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9826: as_basename=basename
9827: else
9828: as_basename=false
9829: fi
9830:
9831: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9832: as_dirname=dirname
9833: else
9834: as_dirname=false
9835: fi
9836:
9837: as_me=`$as_basename -- "$0" ||
9838: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9839: X"$0" : 'X\(//\)$' \| \
9840: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9841: $as_echo X/"$0" |
9842: sed '/^.*\/\([^/][^/]*\)\/*$/{
9843: s//\1/
9844: q
9845: }
9846: /^X\/\(\/\/\)$/{
9847: s//\1/
9848: q
9849: }
9850: /^X\/\(\/\).*/{
9851: s//\1/
9852: q
9853: }
9854: s/.*/./; q'`
9855:
9856: # Avoid depending upon Character Ranges.
9857: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9858: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9859: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9860: as_cr_digits='0123456789'
9861: as_cr_alnum=$as_cr_Letters$as_cr_digits
9862:
9863: ECHO_C= ECHO_N= ECHO_T=
9864: case `echo -n x` in #(((((
9865: -n*)
9866: case `echo 'xy\c'` in
9867: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9868: xy) ECHO_C='\c';;
9869: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9870: ECHO_T=' ';;
9871: esac;;
9872: *)
9873: ECHO_N='-n';;
9874: esac
9875:
9876: rm -f conf$$ conf$$.exe conf$$.file
9877: if test -d conf$$.dir; then
9878: rm -f conf$$.dir/conf$$.file
9879: else
9880: rm -f conf$$.dir
9881: mkdir conf$$.dir 2>/dev/null
9882: fi
9883: if (echo >conf$$.file) 2>/dev/null; then
9884: if ln -s conf$$.file conf$$ 2>/dev/null; then
9885: as_ln_s='ln -s'
9886: # ... but there are two gotchas:
9887: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9888: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9889: # In both cases, we have to default to `cp -p'.
9890: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9891: as_ln_s='cp -p'
9892: elif ln conf$$.file conf$$ 2>/dev/null; then
9893: as_ln_s=ln
9894: else
9895: as_ln_s='cp -p'
9896: fi
9897: else
9898: as_ln_s='cp -p'
9899: fi
9900: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9901: rmdir conf$$.dir 2>/dev/null
9902:
9903:
9904: # as_fn_mkdir_p
9905: # -------------
9906: # Create "$as_dir" as a directory, including parents if necessary.
9907: as_fn_mkdir_p ()
9908: {
9909:
9910: case $as_dir in #(
9911: -*) as_dir=./$as_dir;;
9912: esac
9913: test -d "$as_dir" || eval $as_mkdir_p || {
9914: as_dirs=
9915: while :; do
9916: case $as_dir in #(
9917: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9918: *) as_qdir=$as_dir;;
9919: esac
9920: as_dirs="'$as_qdir' $as_dirs"
9921: as_dir=`$as_dirname -- "$as_dir" ||
9922: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9923: X"$as_dir" : 'X\(//\)[^/]' \| \
9924: X"$as_dir" : 'X\(//\)$' \| \
9925: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9926: $as_echo X"$as_dir" |
9927: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9928: s//\1/
9929: q
9930: }
9931: /^X\(\/\/\)[^/].*/{
9932: s//\1/
9933: q
9934: }
9935: /^X\(\/\/\)$/{
9936: s//\1/
9937: q
9938: }
9939: /^X\(\/\).*/{
9940: s//\1/
9941: q
9942: }
9943: s/.*/./; q'`
9944: test -d "$as_dir" && break
9945: done
9946: test -z "$as_dirs" || eval "mkdir $as_dirs"
9947: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9948:
9949:
9950: } # as_fn_mkdir_p
9951: if mkdir -p . 2>/dev/null; then
9952: as_mkdir_p='mkdir -p "$as_dir"'
9953: else
9954: test -d ./-p && rmdir ./-p
9955: as_mkdir_p=false
9956: fi
9957:
9958: if test -x / >/dev/null 2>&1; then
9959: as_test_x='test -x'
9960: else
9961: if ls -dL / >/dev/null 2>&1; then
9962: as_ls_L_option=L
9963: else
9964: as_ls_L_option=
9965: fi
9966: as_test_x='
9967: eval sh -c '\''
9968: if test -d "$1"; then
9969: test -d "$1/.";
9970: else
9971: case $1 in #(
9972: -*)set "./$1";;
9973: esac;
9974: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9975: ???[sx]*):;;*)false;;esac;fi
9976: '\'' sh
9977: '
9978: fi
9979: as_executable_p=$as_test_x
9980:
9981: # Sed expression to map a string onto a valid CPP name.
9982: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9983:
9984: # Sed expression to map a string onto a valid variable name.
9985: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9986:
9987:
9988: exec 6>&1
9989: ## ----------------------------------- ##
9990: ## Main body of $CONFIG_STATUS script. ##
9991: ## ----------------------------------- ##
9992: _ASEOF
9993: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9994:
9995: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9996: # Save the log message, to keep $0 and so on meaningful, and to
9997: # report actual input values of CONFIG_FILES etc. instead of their
9998: # values after options handling.
9999: ac_log="
10000: This file was extended by rpl $as_me 4.1.3, which was
10001: generated by GNU Autoconf 2.68. Invocation command line was
10002:
10003: CONFIG_FILES = $CONFIG_FILES
10004: CONFIG_HEADERS = $CONFIG_HEADERS
10005: CONFIG_LINKS = $CONFIG_LINKS
10006: CONFIG_COMMANDS = $CONFIG_COMMANDS
10007: $ $0 $@
10008:
10009: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10010: "
10011:
10012: _ACEOF
10013:
10014: case $ac_config_files in *"
10015: "*) set x $ac_config_files; shift; ac_config_files=$*;;
10016: esac
10017:
10018: case $ac_config_headers in *"
10019: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10020: esac
10021:
10022:
10023: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10024: # Files that config.status was made for.
10025: config_files="$ac_config_files"
10026: config_headers="$ac_config_headers"
10027: config_commands="$ac_config_commands"
10028:
10029: _ACEOF
10030:
10031: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10032: ac_cs_usage="\
10033: \`$as_me' instantiates files and other configuration actions
10034: from templates according to the current configuration. Unless the files
10035: and actions are specified as TAGs, all are instantiated by default.
10036:
10037: Usage: $0 [OPTION]... [TAG]...
10038:
10039: -h, --help print this help, then exit
10040: -V, --version print version number and configuration settings, then exit
10041: --config print configuration, then exit
10042: -q, --quiet, --silent
10043: do not print progress messages
10044: -d, --debug don't remove temporary files
10045: --recheck update $as_me by reconfiguring in the same conditions
10046: --file=FILE[:TEMPLATE]
10047: instantiate the configuration file FILE
10048: --header=FILE[:TEMPLATE]
10049: instantiate the configuration header FILE
10050:
10051: Configuration files:
10052: $config_files
10053:
10054: Configuration headers:
10055: $config_headers
10056:
10057: Configuration commands:
10058: $config_commands
10059:
10060: Report bugs to the package provider."
10061:
10062: _ACEOF
10063: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10064: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10065: ac_cs_version="\\
10066: rpl config.status 4.1.3
10067: configured by $0, generated by GNU Autoconf 2.68,
10068: with options \\"\$ac_cs_config\\"
10069:
10070: Copyright (C) 2010 Free Software Foundation, Inc.
10071: This config.status script is free software; the Free Software Foundation
10072: gives unlimited permission to copy, distribute and modify it."
10073:
10074: ac_pwd='$ac_pwd'
10075: srcdir='$srcdir'
10076: INSTALL='$INSTALL'
10077: MKDIR_P='$MKDIR_P'
10078: AWK='$AWK'
10079: test -n "\$AWK" || AWK=awk
10080: _ACEOF
10081:
10082: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10083: # The default lists apply if the user does not specify any file.
10084: ac_need_defaults=:
10085: while test $# != 0
10086: do
10087: case $1 in
10088: --*=?*)
10089: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10090: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10091: ac_shift=:
10092: ;;
10093: --*=)
10094: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10095: ac_optarg=
10096: ac_shift=:
10097: ;;
10098: *)
10099: ac_option=$1
10100: ac_optarg=$2
10101: ac_shift=shift
10102: ;;
10103: esac
10104:
10105: case $ac_option in
10106: # Handling of the options.
10107: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10108: ac_cs_recheck=: ;;
10109: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10110: $as_echo "$ac_cs_version"; exit ;;
10111: --config | --confi | --conf | --con | --co | --c )
10112: $as_echo "$ac_cs_config"; exit ;;
10113: --debug | --debu | --deb | --de | --d | -d )
10114: debug=: ;;
10115: --file | --fil | --fi | --f )
10116: $ac_shift
10117: case $ac_optarg in
10118: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10119: '') as_fn_error $? "missing file argument" ;;
10120: esac
10121: as_fn_append CONFIG_FILES " '$ac_optarg'"
10122: ac_need_defaults=false;;
10123: --header | --heade | --head | --hea )
10124: $ac_shift
10125: case $ac_optarg in
10126: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10127: esac
10128: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10129: ac_need_defaults=false;;
10130: --he | --h)
10131: # Conflict between --help and --header
10132: as_fn_error $? "ambiguous option: \`$1'
10133: Try \`$0 --help' for more information.";;
10134: --help | --hel | -h )
10135: $as_echo "$ac_cs_usage"; exit ;;
10136: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10137: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10138: ac_cs_silent=: ;;
10139:
10140: # This is an error.
10141: -*) as_fn_error $? "unrecognized option: \`$1'
10142: Try \`$0 --help' for more information." ;;
10143:
10144: *) as_fn_append ac_config_targets " $1"
10145: ac_need_defaults=false ;;
10146:
10147: esac
10148: shift
10149: done
10150:
10151: ac_configure_extra_args=
10152:
10153: if $ac_cs_silent; then
10154: exec 6>/dev/null
10155: ac_configure_extra_args="$ac_configure_extra_args --silent"
10156: fi
10157:
10158: _ACEOF
10159: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10160: if \$ac_cs_recheck; then
10161: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10162: shift
10163: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10164: CONFIG_SHELL='$SHELL'
10165: export CONFIG_SHELL
10166: exec "\$@"
10167: fi
10168:
10169: _ACEOF
10170: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10171: exec 5>>config.log
10172: {
10173: echo
10174: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10175: ## Running $as_me. ##
10176: _ASBOX
10177: $as_echo "$ac_log"
10178: } >&5
10179:
10180: _ACEOF
10181: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10182: #
10183: # INIT-COMMANDS
10184: #
10185: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10186:
10187: _ACEOF
10188:
10189: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10190:
10191: # Handling of arguments.
10192: for ac_config_target in $ac_config_targets
10193: do
10194: case $ac_config_target in
10195: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10196: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10197: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10198: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10199: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10200: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10201: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10202: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10203: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10204: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10205: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10206: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10207: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10208: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10209: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
10210: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
10211: "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
10212: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
10213: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10214: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10215: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10216: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10217: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10218: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10219: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10220: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10221: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10222: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10223: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10224: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10225:
10226: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10227: esac
10228: done
10229:
10230:
10231: # If the user did not use the arguments to specify the items to instantiate,
10232: # then the envvar interface is used. Set only those that are not.
10233: # We use the long form for the default assignment because of an extremely
10234: # bizarre bug on SunOS 4.1.3.
10235: if $ac_need_defaults; then
10236: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10237: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10238: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10239: fi
10240:
10241: # Have a temporary directory for convenience. Make it in the build tree
10242: # simply because there is no reason against having it here, and in addition,
10243: # creating and moving files from /tmp can sometimes cause problems.
10244: # Hook for its removal unless debugging.
10245: # Note that there is a small window in which the directory will not be cleaned:
10246: # after its creation but before its name has been assigned to `$tmp'.
10247: $debug ||
10248: {
10249: tmp= ac_tmp=
10250: trap 'exit_status=$?
10251: : "${ac_tmp:=$tmp}"
10252: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10253: ' 0
10254: trap 'as_fn_exit 1' 1 2 13 15
10255: }
10256: # Create a (secure) tmp directory for tmp files.
10257:
10258: {
10259: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10260: test -d "$tmp"
10261: } ||
10262: {
10263: tmp=./conf$$-$RANDOM
10264: (umask 077 && mkdir "$tmp")
10265: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10266: ac_tmp=$tmp
10267:
10268: # Set up the scripts for CONFIG_FILES section.
10269: # No need to generate them if there are no CONFIG_FILES.
10270: # This happens for instance with `./config.status config.h'.
10271: if test -n "$CONFIG_FILES"; then
10272:
10273:
10274: ac_cr=`echo X | tr X '\015'`
10275: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10276: # But we know of no other shell where ac_cr would be empty at this
10277: # point, so we can use a bashism as a fallback.
10278: if test "x$ac_cr" = x; then
10279: eval ac_cr=\$\'\\r\'
10280: fi
10281: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10282: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10283: ac_cs_awk_cr='\\r'
10284: else
10285: ac_cs_awk_cr=$ac_cr
10286: fi
10287:
10288: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10289: _ACEOF
10290:
10291:
10292: {
10293: echo "cat >conf$$subs.awk <<_ACEOF" &&
10294: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10295: echo "_ACEOF"
10296: } >conf$$subs.sh ||
10297: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10298: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10299: ac_delim='%!_!# '
10300: for ac_last_try in false false false false false :; do
10301: . ./conf$$subs.sh ||
10302: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10303:
10304: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10305: if test $ac_delim_n = $ac_delim_num; then
10306: break
10307: elif $ac_last_try; then
10308: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10309: else
10310: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10311: fi
10312: done
10313: rm -f conf$$subs.sh
10314:
10315: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10316: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10317: _ACEOF
10318: sed -n '
10319: h
10320: s/^/S["/; s/!.*/"]=/
10321: p
10322: g
10323: s/^[^!]*!//
10324: :repl
10325: t repl
10326: s/'"$ac_delim"'$//
10327: t delim
10328: :nl
10329: h
10330: s/\(.\{148\}\)..*/\1/
10331: t more1
10332: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10333: p
10334: n
10335: b repl
10336: :more1
10337: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10338: p
10339: g
10340: s/.\{148\}//
10341: t nl
10342: :delim
10343: h
10344: s/\(.\{148\}\)..*/\1/
10345: t more2
10346: s/["\\]/\\&/g; s/^/"/; s/$/"/
10347: p
10348: b
10349: :more2
10350: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10351: p
10352: g
10353: s/.\{148\}//
10354: t delim
10355: ' <conf$$subs.awk | sed '
10356: /^[^""]/{
10357: N
10358: s/\n//
10359: }
10360: ' >>$CONFIG_STATUS || ac_write_fail=1
10361: rm -f conf$$subs.awk
10362: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10363: _ACAWK
10364: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10365: for (key in S) S_is_set[key] = 1
10366: FS = ""
10367:
10368: }
10369: {
10370: line = $ 0
10371: nfields = split(line, field, "@")
10372: substed = 0
10373: len = length(field[1])
10374: for (i = 2; i < nfields; i++) {
10375: key = field[i]
10376: keylen = length(key)
10377: if (S_is_set[key]) {
10378: value = S[key]
10379: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10380: len += length(value) + length(field[++i])
10381: substed = 1
10382: } else
10383: len += 1 + keylen
10384: }
10385:
10386: print line
10387: }
10388:
10389: _ACAWK
10390: _ACEOF
10391: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10392: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10393: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10394: else
10395: cat
10396: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10397: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10398: _ACEOF
10399:
10400: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10401: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10402: # trailing colons and then remove the whole line if VPATH becomes empty
10403: # (actually we leave an empty line to preserve line numbers).
10404: if test "x$srcdir" = x.; then
10405: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10406: h
10407: s///
10408: s/^/:/
10409: s/[ ]*$/:/
10410: s/:\$(srcdir):/:/g
10411: s/:\${srcdir}:/:/g
10412: s/:@srcdir@:/:/g
10413: s/^:*//
10414: s/:*$//
10415: x
10416: s/\(=[ ]*\).*/\1/
10417: G
10418: s/\n//
10419: s/^[^=]*=[ ]*$//
10420: }'
10421: fi
10422:
10423: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10424: fi # test -n "$CONFIG_FILES"
10425:
10426: # Set up the scripts for CONFIG_HEADERS section.
10427: # No need to generate them if there are no CONFIG_HEADERS.
10428: # This happens for instance with `./config.status Makefile'.
10429: if test -n "$CONFIG_HEADERS"; then
10430: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10431: BEGIN {
10432: _ACEOF
10433:
10434: # Transform confdefs.h into an awk script `defines.awk', embedded as
10435: # here-document in config.status, that substitutes the proper values into
10436: # config.h.in to produce config.h.
10437:
10438: # Create a delimiter string that does not exist in confdefs.h, to ease
10439: # handling of long lines.
10440: ac_delim='%!_!# '
10441: for ac_last_try in false false :; do
10442: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10443: if test -z "$ac_tt"; then
10444: break
10445: elif $ac_last_try; then
10446: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10447: else
10448: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10449: fi
10450: done
10451:
10452: # For the awk script, D is an array of macro values keyed by name,
10453: # likewise P contains macro parameters if any. Preserve backslash
10454: # newline sequences.
10455:
10456: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10457: sed -n '
10458: s/.\{148\}/&'"$ac_delim"'/g
10459: t rset
10460: :rset
10461: s/^[ ]*#[ ]*define[ ][ ]*/ /
10462: t def
10463: d
10464: :def
10465: s/\\$//
10466: t bsnl
10467: s/["\\]/\\&/g
10468: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10469: D["\1"]=" \3"/p
10470: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10471: d
10472: :bsnl
10473: s/["\\]/\\&/g
10474: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10475: D["\1"]=" \3\\\\\\n"\\/p
10476: t cont
10477: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10478: t cont
10479: d
10480: :cont
10481: n
10482: s/.\{148\}/&'"$ac_delim"'/g
10483: t clear
10484: :clear
10485: s/\\$//
10486: t bsnlc
10487: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10488: d
10489: :bsnlc
10490: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10491: b cont
10492: ' <confdefs.h | sed '
10493: s/'"$ac_delim"'/"\\\
10494: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10495:
10496: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10497: for (key in D) D_is_set[key] = 1
10498: FS = ""
10499: }
10500: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10501: line = \$ 0
10502: split(line, arg, " ")
10503: if (arg[1] == "#") {
10504: defundef = arg[2]
10505: mac1 = arg[3]
10506: } else {
10507: defundef = substr(arg[1], 2)
10508: mac1 = arg[2]
10509: }
10510: split(mac1, mac2, "(") #)
10511: macro = mac2[1]
10512: prefix = substr(line, 1, index(line, defundef) - 1)
10513: if (D_is_set[macro]) {
10514: # Preserve the white space surrounding the "#".
10515: print prefix "define", macro P[macro] D[macro]
10516: next
10517: } else {
10518: # Replace #undef with comments. This is necessary, for example,
10519: # in the case of _POSIX_SOURCE, which is predefined and required
10520: # on some systems where configure will not decide to define it.
10521: if (defundef == "undef") {
10522: print "/*", prefix defundef, macro, "*/"
10523: next
10524: }
10525: }
10526: }
10527: { print }
10528: _ACAWK
10529: _ACEOF
10530: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10531: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10532: fi # test -n "$CONFIG_HEADERS"
10533:
10534:
10535: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10536: shift
10537: for ac_tag
10538: do
10539: case $ac_tag in
10540: :[FHLC]) ac_mode=$ac_tag; continue;;
10541: esac
10542: case $ac_mode$ac_tag in
10543: :[FHL]*:*);;
10544: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10545: :[FH]-) ac_tag=-:-;;
10546: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10547: esac
10548: ac_save_IFS=$IFS
10549: IFS=:
10550: set x $ac_tag
10551: IFS=$ac_save_IFS
10552: shift
10553: ac_file=$1
10554: shift
10555:
10556: case $ac_mode in
10557: :L) ac_source=$1;;
10558: :[FH])
10559: ac_file_inputs=
10560: for ac_f
10561: do
10562: case $ac_f in
10563: -) ac_f="$ac_tmp/stdin";;
10564: *) # Look for the file first in the build tree, then in the source tree
10565: # (if the path is not absolute). The absolute path cannot be DOS-style,
10566: # because $ac_f cannot contain `:'.
10567: test -f "$ac_f" ||
10568: case $ac_f in
10569: [\\/$]*) false;;
10570: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10571: esac ||
10572: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10573: esac
10574: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10575: as_fn_append ac_file_inputs " '$ac_f'"
10576: done
10577:
10578: # Let's still pretend it is `configure' which instantiates (i.e., don't
10579: # use $as_me), people would be surprised to read:
10580: # /* config.h. Generated by config.status. */
10581: configure_input='Generated from '`
10582: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10583: `' by configure.'
10584: if test x"$ac_file" != x-; then
10585: configure_input="$ac_file. $configure_input"
10586: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10587: $as_echo "$as_me: creating $ac_file" >&6;}
10588: fi
10589: # Neutralize special characters interpreted by sed in replacement strings.
10590: case $configure_input in #(
10591: *\&* | *\|* | *\\* )
10592: ac_sed_conf_input=`$as_echo "$configure_input" |
10593: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10594: *) ac_sed_conf_input=$configure_input;;
10595: esac
10596:
10597: case $ac_tag in
10598: *:-:* | *:-) cat >"$ac_tmp/stdin" \
10599: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10600: esac
10601: ;;
10602: esac
10603:
10604: ac_dir=`$as_dirname -- "$ac_file" ||
10605: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10606: X"$ac_file" : 'X\(//\)[^/]' \| \
10607: X"$ac_file" : 'X\(//\)$' \| \
10608: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10609: $as_echo X"$ac_file" |
10610: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10611: s//\1/
10612: q
10613: }
10614: /^X\(\/\/\)[^/].*/{
10615: s//\1/
10616: q
10617: }
10618: /^X\(\/\/\)$/{
10619: s//\1/
10620: q
10621: }
10622: /^X\(\/\).*/{
10623: s//\1/
10624: q
10625: }
10626: s/.*/./; q'`
10627: as_dir="$ac_dir"; as_fn_mkdir_p
10628: ac_builddir=.
10629:
10630: case "$ac_dir" in
10631: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10632: *)
10633: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10634: # A ".." for each directory in $ac_dir_suffix.
10635: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10636: case $ac_top_builddir_sub in
10637: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10638: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10639: esac ;;
10640: esac
10641: ac_abs_top_builddir=$ac_pwd
10642: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10643: # for backward compatibility:
10644: ac_top_builddir=$ac_top_build_prefix
10645:
10646: case $srcdir in
10647: .) # We are building in place.
10648: ac_srcdir=.
10649: ac_top_srcdir=$ac_top_builddir_sub
10650: ac_abs_top_srcdir=$ac_pwd ;;
10651: [\\/]* | ?:[\\/]* ) # Absolute name.
10652: ac_srcdir=$srcdir$ac_dir_suffix;
10653: ac_top_srcdir=$srcdir
10654: ac_abs_top_srcdir=$srcdir ;;
10655: *) # Relative name.
10656: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10657: ac_top_srcdir=$ac_top_build_prefix$srcdir
10658: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10659: esac
10660: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10661:
10662:
10663: case $ac_mode in
10664: :F)
10665: #
10666: # CONFIG_FILE
10667: #
10668:
10669: case $INSTALL in
10670: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10671: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10672: esac
10673: ac_MKDIR_P=$MKDIR_P
10674: case $MKDIR_P in
10675: [\\/$]* | ?:[\\/]* ) ;;
10676: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10677: esac
10678: _ACEOF
10679:
10680: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10681: # If the template does not know about datarootdir, expand it.
10682: # FIXME: This hack should be removed a few years after 2.60.
10683: ac_datarootdir_hack=; ac_datarootdir_seen=
10684: ac_sed_dataroot='
10685: /datarootdir/ {
10686: p
10687: q
10688: }
10689: /@datadir@/p
10690: /@docdir@/p
10691: /@infodir@/p
10692: /@localedir@/p
10693: /@mandir@/p'
10694: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10695: *datarootdir*) ac_datarootdir_seen=yes;;
10696: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10698: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10699: _ACEOF
10700: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10701: ac_datarootdir_hack='
10702: s&@datadir@&$datadir&g
10703: s&@docdir@&$docdir&g
10704: s&@infodir@&$infodir&g
10705: s&@localedir@&$localedir&g
10706: s&@mandir@&$mandir&g
10707: s&\\\${datarootdir}&$datarootdir&g' ;;
10708: esac
10709: _ACEOF
10710:
10711: # Neutralize VPATH when `$srcdir' = `.'.
10712: # Shell code in configure.ac might set extrasub.
10713: # FIXME: do we really want to maintain this feature?
10714: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10715: ac_sed_extra="$ac_vpsub
10716: $extrasub
10717: _ACEOF
10718: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10719: :t
10720: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10721: s|@configure_input@|$ac_sed_conf_input|;t t
10722: s&@top_builddir@&$ac_top_builddir_sub&;t t
10723: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10724: s&@srcdir@&$ac_srcdir&;t t
10725: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10726: s&@top_srcdir@&$ac_top_srcdir&;t t
10727: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10728: s&@builddir@&$ac_builddir&;t t
10729: s&@abs_builddir@&$ac_abs_builddir&;t t
10730: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10731: s&@INSTALL@&$ac_INSTALL&;t t
10732: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10733: $ac_datarootdir_hack
10734: "
10735: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10736: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10737:
10738: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10739: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10740: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10741: "$ac_tmp/out"`; test -z "$ac_out"; } &&
10742: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10743: which seems to be undefined. Please make sure it is defined" >&5
10744: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10745: which seems to be undefined. Please make sure it is defined" >&2;}
10746:
10747: rm -f "$ac_tmp/stdin"
10748: case $ac_file in
10749: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10750: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10751: esac \
10752: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10753: ;;
10754: :H)
10755: #
10756: # CONFIG_HEADER
10757: #
10758: if test x"$ac_file" != x-; then
10759: {
10760: $as_echo "/* $configure_input */" \
10761: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10762: } >"$ac_tmp/config.h" \
10763: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10764: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10765: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10766: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10767: else
10768: rm -f "$ac_file"
10769: mv "$ac_tmp/config.h" "$ac_file" \
10770: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10771: fi
10772: else
10773: $as_echo "/* $configure_input */" \
10774: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10775: || as_fn_error $? "could not create -" "$LINENO" 5
10776: fi
10777: # Compute "$ac_file"'s index in $config_headers.
10778: _am_arg="$ac_file"
10779: _am_stamp_count=1
10780: for _am_header in $config_headers :; do
10781: case $_am_header in
10782: $_am_arg | $_am_arg:* )
10783: break ;;
10784: * )
10785: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10786: esac
10787: done
10788: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10789: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10790: X"$_am_arg" : 'X\(//\)[^/]' \| \
10791: X"$_am_arg" : 'X\(//\)$' \| \
10792: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10793: $as_echo X"$_am_arg" |
10794: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10795: s//\1/
10796: q
10797: }
10798: /^X\(\/\/\)[^/].*/{
10799: s//\1/
10800: q
10801: }
10802: /^X\(\/\/\)$/{
10803: s//\1/
10804: q
10805: }
10806: /^X\(\/\).*/{
10807: s//\1/
10808: q
10809: }
10810: s/.*/./; q'`/stamp-h$_am_stamp_count
10811: ;;
10812:
10813: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10814: $as_echo "$as_me: executing $ac_file commands" >&6;}
10815: ;;
10816: esac
10817:
10818:
10819: case $ac_file$ac_mode in
10820: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10821: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10822: # are listed without --file. Let's play safe and only enable the eval
10823: # if we detect the quoting.
10824: case $CONFIG_FILES in
10825: *\'*) eval set x "$CONFIG_FILES" ;;
10826: *) set x $CONFIG_FILES ;;
10827: esac
10828: shift
10829: for mf
10830: do
10831: # Strip MF so we end up with the name of the file.
10832: mf=`echo "$mf" | sed -e 's/:.*$//'`
10833: # Check whether this is an Automake generated Makefile or not.
10834: # We used to match only the files named `Makefile.in', but
10835: # some people rename them; so instead we look at the file content.
10836: # Grep'ing the first line is not enough: some people post-process
10837: # each Makefile.in and add a new line on top of each file to say so.
10838: # Grep'ing the whole file is not good either: AIX grep has a line
10839: # limit of 2048, but all sed's we know have understand at least 4000.
10840: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10841: dirpart=`$as_dirname -- "$mf" ||
10842: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10843: X"$mf" : 'X\(//\)[^/]' \| \
10844: X"$mf" : 'X\(//\)$' \| \
10845: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10846: $as_echo X"$mf" |
10847: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10848: s//\1/
10849: q
10850: }
10851: /^X\(\/\/\)[^/].*/{
10852: s//\1/
10853: q
10854: }
10855: /^X\(\/\/\)$/{
10856: s//\1/
10857: q
10858: }
10859: /^X\(\/\).*/{
10860: s//\1/
10861: q
10862: }
10863: s/.*/./; q'`
10864: else
10865: continue
10866: fi
10867: # Extract the definition of DEPDIR, am__include, and am__quote
10868: # from the Makefile without running `make'.
10869: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10870: test -z "$DEPDIR" && continue
10871: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10872: test -z "am__include" && continue
10873: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10874: # When using ansi2knr, U may be empty or an underscore; expand it
10875: U=`sed -n 's/^U = //p' < "$mf"`
10876: # Find all dependency output files, they are included files with
10877: # $(DEPDIR) in their names. We invoke sed twice because it is the
10878: # simplest approach to changing $(DEPDIR) to its actual value in the
10879: # expansion.
10880: for file in `sed -n "
10881: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10882: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10883: # Make sure the directory exists.
10884: test -f "$dirpart/$file" && continue
10885: fdir=`$as_dirname -- "$file" ||
10886: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10887: X"$file" : 'X\(//\)[^/]' \| \
10888: X"$file" : 'X\(//\)$' \| \
10889: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10890: $as_echo X"$file" |
10891: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10892: s//\1/
10893: q
10894: }
10895: /^X\(\/\/\)[^/].*/{
10896: s//\1/
10897: q
10898: }
10899: /^X\(\/\/\)$/{
10900: s//\1/
10901: q
10902: }
10903: /^X\(\/\).*/{
10904: s//\1/
10905: q
10906: }
10907: s/.*/./; q'`
10908: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10909: # echo "creating $dirpart/$file"
10910: echo '# dummy' > "$dirpart/$file"
10911: done
10912: done
10913: }
10914: ;;
10915:
10916: esac
10917: done # for ac_tag
10918:
10919:
10920: as_fn_exit 0
10921: _ACEOF
10922: ac_clean_files=$ac_clean_files_save
10923:
10924: test $ac_write_fail = 0 ||
10925: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10926:
10927:
10928: # configure is writing to config.log, and then calls config.status.
10929: # config.status does its own redirection, appending to config.log.
10930: # Unfortunately, on DOS this fails, as config.log is still kept open
10931: # by configure, so config.status won't be able to write to it; its
10932: # output is simply discarded. So we exec the FD to /dev/null,
10933: # effectively closing config.log, so it can be properly (re)opened and
10934: # appended to by config.status. When coming back to configure, we
10935: # need to make the FD available again.
10936: if test "$no_create" != yes; then
10937: ac_cs_success=:
10938: ac_config_status_args=
10939: test "$silent" = yes &&
10940: ac_config_status_args="$ac_config_status_args --quiet"
10941: exec 5>/dev/null
10942: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10943: exec 5>>config.log
10944: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10945: # would make configure fail if this is the last instruction.
10946: $ac_cs_success || as_fn_exit 1
10947: fi
10948:
10949: #
10950: # CONFIG_SUBDIRS section.
10951: #
10952: if test "$no_recursion" != yes; then
10953:
10954: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10955: # so they do not pile up.
10956: ac_sub_configure_args=
10957: ac_prev=
10958: eval "set x $ac_configure_args"
10959: shift
10960: for ac_arg
10961: do
10962: if test -n "$ac_prev"; then
10963: ac_prev=
10964: continue
10965: fi
10966: case $ac_arg in
10967: -cache-file | --cache-file | --cache-fil | --cache-fi \
10968: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10969: ac_prev=cache_file ;;
10970: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10971: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10972: | --c=*)
10973: ;;
10974: --config-cache | -C)
10975: ;;
10976: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10977: ac_prev=srcdir ;;
10978: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10979: ;;
10980: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10981: ac_prev=prefix ;;
10982: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10983: ;;
10984: --disable-option-checking)
10985: ;;
10986: *)
10987: case $ac_arg in
10988: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10989: esac
10990: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10991: esac
10992: done
10993:
10994: # Always prepend --prefix to ensure using the same prefix
10995: # in subdir configurations.
10996: ac_arg="--prefix=$prefix"
10997: case $ac_arg in
10998: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10999: esac
11000: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11001:
11002: # Pass --silent
11003: if test "$silent" = yes; then
11004: ac_sub_configure_args="--silent $ac_sub_configure_args"
11005: fi
11006:
11007: # Always prepend --disable-option-checking to silence warnings, since
11008: # different subdirs can have different --enable and --with options.
11009: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11010:
11011: ac_popdir=`pwd`
11012: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11013:
11014: # Do not complain, so a configure script can configure whichever
11015: # parts of a large source tree are present.
11016: test -d "$srcdir/$ac_dir" || continue
11017:
11018: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11019: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11020: $as_echo "$ac_msg" >&6
11021: as_dir="$ac_dir"; as_fn_mkdir_p
11022: ac_builddir=.
11023:
11024: case "$ac_dir" in
11025: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11026: *)
11027: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11028: # A ".." for each directory in $ac_dir_suffix.
11029: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11030: case $ac_top_builddir_sub in
11031: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11032: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11033: esac ;;
11034: esac
11035: ac_abs_top_builddir=$ac_pwd
11036: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11037: # for backward compatibility:
11038: ac_top_builddir=$ac_top_build_prefix
11039:
11040: case $srcdir in
11041: .) # We are building in place.
11042: ac_srcdir=.
11043: ac_top_srcdir=$ac_top_builddir_sub
11044: ac_abs_top_srcdir=$ac_pwd ;;
11045: [\\/]* | ?:[\\/]* ) # Absolute name.
11046: ac_srcdir=$srcdir$ac_dir_suffix;
11047: ac_top_srcdir=$srcdir
11048: ac_abs_top_srcdir=$srcdir ;;
11049: *) # Relative name.
11050: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11051: ac_top_srcdir=$ac_top_build_prefix$srcdir
11052: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11053: esac
11054: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11055:
11056:
11057: cd "$ac_dir"
11058:
11059: # Check for guested configure; otherwise get Cygnus style configure.
11060: if test -f "$ac_srcdir/configure.gnu"; then
11061: ac_sub_configure=$ac_srcdir/configure.gnu
11062: elif test -f "$ac_srcdir/configure"; then
11063: ac_sub_configure=$ac_srcdir/configure
11064: elif test -f "$ac_srcdir/configure.in"; then
11065: # This should be Cygnus configure.
11066: ac_sub_configure=$ac_aux_dir/configure
11067: else
11068: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11069: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11070: ac_sub_configure=
11071: fi
11072:
11073: # The recursion is here.
11074: if test -n "$ac_sub_configure"; then
11075: # Make the cache file name correct relative to the subdirectory.
11076: case $cache_file in
11077: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11078: *) # Relative name.
11079: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11080: esac
11081:
11082: { $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
11083: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11084: # The eval makes quoting arguments work.
11085: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11086: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11087: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11088: fi
11089:
11090: cd "$ac_popdir"
11091: done
11092: fi
11093: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11095: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11096: fi
11097:
CVSweb interface <joel.bertrand@systella.fr>