1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.67 for rpl 4.1.6.
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: case $0 in #((
93: *[\\/]* ) as_myself=$0 ;;
94: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95: for as_dir in $PATH
96: do
97: IFS=$as_save_IFS
98: test -z "$as_dir" && as_dir=.
99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100: done
101: IFS=$as_save_IFS
102:
103: ;;
104: esac
105: # We did not find ourselves, most probably we were run as `sh COMMAND'
106: # in which case we are not to be found in the path.
107: if test "x$as_myself" = x; then
108: as_myself=$0
109: fi
110: if test ! -f "$as_myself"; then
111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112: exit 1
113: fi
114:
115: # Unset variables that we do not need and which cause bugs (e.g. in
116: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117: # suppresses any "Segmentation fault" message there. '((' could
118: # trigger a bug in pdksh 5.2.14.
119: for as_var in BASH_ENV ENV MAIL MAILPATH
120: do eval test x\${$as_var+set} = xset \
121: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122: done
123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
128: LC_ALL=C
129: export LC_ALL
130: LANGUAGE=C
131: export LANGUAGE
132:
133: # CDPATH.
134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135:
136: if test "x$CONFIG_SHELL" = x; then
137: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138: emulate sh
139: NULLCMD=:
140: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141: # is contrary to our usage. Disable this feature.
142: alias -g '\${1+\"\$@\"}'='\"\$@\"'
143: setopt NO_GLOB_SUBST
144: else
145: case \`(set -o) 2>/dev/null\` in #(
146: *posix*) :
147: set -o posix ;; #(
148: *) :
149: ;;
150: esac
151: fi
152: "
153: as_required="as_fn_return () { (exit \$1); }
154: as_fn_success () { as_fn_return 0; }
155: as_fn_failure () { as_fn_return 1; }
156: as_fn_ret_success () { return 0; }
157: as_fn_ret_failure () { return 1; }
158:
159: exitcode=0
160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165:
166: else
167: exitcode=1; echo positional parameters were not saved.
168: fi
169: test x\$exitcode = x0 || exit 1"
170: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174: test \$(( 1 + 1 )) = 2 || exit 1"
175: if (eval "$as_required") 2>/dev/null; then :
176: as_have_required=yes
177: else
178: as_have_required=no
179: fi
180: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181:
182: else
183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184: as_found=false
185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186: do
187: IFS=$as_save_IFS
188: test -z "$as_dir" && as_dir=.
189: as_found=:
190: case $as_dir in #(
191: /*)
192: for as_base in sh bash ksh sh5; do
193: # Try only shells that exist, to save several forks.
194: as_shell=$as_dir/$as_base
195: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197: CONFIG_SHELL=$as_shell as_have_required=yes
198: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199: break 2
200: fi
201: fi
202: done;;
203: esac
204: as_found=false
205: done
206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208: CONFIG_SHELL=$SHELL as_have_required=yes
209: fi; }
210: IFS=$as_save_IFS
211:
212:
213: if test "x$CONFIG_SHELL" != x; then :
214: # We cannot yet assume a decent shell, so we have to provide a
215: # neutralization value for shells without unset; and this also
216: # works around shells that cannot unset nonexistent variables.
217: BASH_ENV=/dev/null
218: ENV=/dev/null
219: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220: export CONFIG_SHELL
221: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222: fi
223:
224: if test x$as_have_required = xno; then :
225: $as_echo "$0: This script requires a shell more modern than all"
226: $as_echo "$0: the shells that I found on your system."
227: if test x${ZSH_VERSION+set} = xset ; then
228: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230: else
231: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232: $0: including any error possibly output before this
233: $0: message. Then install a modern shell, or manually run
234: $0: the script under such a shell if you do have one."
235: fi
236: exit 1
237: fi
238: fi
239: fi
240: SHELL=${CONFIG_SHELL-/bin/sh}
241: export SHELL
242: # Unset more variables known to interfere with behavior of common tools.
243: CLICOLOR_FORCE= GREP_OPTIONS=
244: unset CLICOLOR_FORCE GREP_OPTIONS
245:
246: ## --------------------- ##
247: ## M4sh Shell Functions. ##
248: ## --------------------- ##
249: # as_fn_unset VAR
250: # ---------------
251: # Portably unset VAR.
252: as_fn_unset ()
253: {
254: { eval $1=; unset $1;}
255: }
256: as_unset=as_fn_unset
257:
258: # as_fn_set_status STATUS
259: # -----------------------
260: # Set $? to STATUS, without forking.
261: as_fn_set_status ()
262: {
263: return $1
264: } # as_fn_set_status
265:
266: # as_fn_exit STATUS
267: # -----------------
268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269: as_fn_exit ()
270: {
271: set +e
272: as_fn_set_status $1
273: exit $1
274: } # as_fn_exit
275:
276: # as_fn_mkdir_p
277: # -------------
278: # Create "$as_dir" as a directory, including parents if necessary.
279: as_fn_mkdir_p ()
280: {
281:
282: case $as_dir in #(
283: -*) as_dir=./$as_dir;;
284: esac
285: test -d "$as_dir" || eval $as_mkdir_p || {
286: as_dirs=
287: while :; do
288: case $as_dir in #(
289: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290: *) as_qdir=$as_dir;;
291: esac
292: as_dirs="'$as_qdir' $as_dirs"
293: as_dir=`$as_dirname -- "$as_dir" ||
294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295: X"$as_dir" : 'X\(//\)[^/]' \| \
296: X"$as_dir" : 'X\(//\)$' \| \
297: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298: $as_echo X"$as_dir" |
299: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300: s//\1/
301: q
302: }
303: /^X\(\/\/\)[^/].*/{
304: s//\1/
305: q
306: }
307: /^X\(\/\/\)$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\).*/{
312: s//\1/
313: q
314: }
315: s/.*/./; q'`
316: test -d "$as_dir" && break
317: done
318: test -z "$as_dirs" || eval "mkdir $as_dirs"
319: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320:
321:
322: } # as_fn_mkdir_p
323: # as_fn_append VAR VALUE
324: # ----------------------
325: # Append the text in VALUE to the end of the definition contained in VAR. Take
326: # advantage of any shell optimizations that allow amortized linear growth over
327: # repeated appends, instead of the typical quadratic growth present in naive
328: # implementations.
329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330: eval 'as_fn_append ()
331: {
332: eval $1+=\$2
333: }'
334: else
335: as_fn_append ()
336: {
337: eval $1=\$$1\$2
338: }
339: fi # as_fn_append
340:
341: # as_fn_arith ARG...
342: # ------------------
343: # Perform arithmetic evaluation on the ARGs, and store the result in the
344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
345: # must be portable across $(()) and expr.
346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347: eval 'as_fn_arith ()
348: {
349: as_val=$(( $* ))
350: }'
351: else
352: as_fn_arith ()
353: {
354: as_val=`expr "$@" || test $? -eq 1`
355: }
356: fi # as_fn_arith
357:
358:
359: # as_fn_error STATUS ERROR [LINENO LOG_FD]
360: # ----------------------------------------
361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363: # script with STATUS, using 1 if that was 0.
364: as_fn_error ()
365: {
366: as_status=$1; test $as_status -eq 0 && as_status=1
367: if test "$4"; then
368: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370: fi
371: $as_echo "$as_me: error: $2" >&2
372: as_fn_exit $as_status
373: } # as_fn_error
374:
375: if expr a : '\(a\)' >/dev/null 2>&1 &&
376: test "X`expr 00001 : '.*\(...\)'`" = X001; then
377: as_expr=expr
378: else
379: as_expr=false
380: fi
381:
382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383: as_basename=basename
384: else
385: as_basename=false
386: fi
387:
388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389: as_dirname=dirname
390: else
391: as_dirname=false
392: fi
393:
394: as_me=`$as_basename -- "$0" ||
395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396: X"$0" : 'X\(//\)$' \| \
397: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398: $as_echo X/"$0" |
399: sed '/^.*\/\([^/][^/]*\)\/*$/{
400: s//\1/
401: q
402: }
403: /^X\/\(\/\/\)$/{
404: s//\1/
405: q
406: }
407: /^X\/\(\/\).*/{
408: s//\1/
409: q
410: }
411: s/.*/./; q'`
412:
413: # Avoid depending upon Character Ranges.
414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417: as_cr_digits='0123456789'
418: as_cr_alnum=$as_cr_Letters$as_cr_digits
419:
420:
421: as_lineno_1=$LINENO as_lineno_1a=$LINENO
422: as_lineno_2=$LINENO as_lineno_2a=$LINENO
423: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426: sed -n '
427: p
428: /[$]LINENO/=
429: ' <$as_myself |
430: sed '
431: s/[$]LINENO.*/&-/
432: t lineno
433: b
434: :lineno
435: N
436: :loop
437: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438: t loop
439: s/-\n.*//
440: ' >$as_me.lineno &&
441: chmod +x "$as_me.lineno" ||
442: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443:
444: # Don't try to exec as it changes $[0], causing all sort of problems
445: # (the dirname of $[0] is not the place where we might find the
446: # original and so on. Autoconf is especially sensitive to this).
447: . "./$as_me.lineno"
448: # Exit status is that of the last command.
449: exit
450: }
451:
452: ECHO_C= ECHO_N= ECHO_T=
453: case `echo -n x` in #(((((
454: -n*)
455: case `echo 'xy\c'` in
456: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457: xy) ECHO_C='\c';;
458: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459: ECHO_T=' ';;
460: esac;;
461: *)
462: ECHO_N='-n';;
463: esac
464:
465: rm -f conf$$ conf$$.exe conf$$.file
466: if test -d conf$$.dir; then
467: rm -f conf$$.dir/conf$$.file
468: else
469: rm -f conf$$.dir
470: mkdir conf$$.dir 2>/dev/null
471: fi
472: if (echo >conf$$.file) 2>/dev/null; then
473: if ln -s conf$$.file conf$$ 2>/dev/null; then
474: as_ln_s='ln -s'
475: # ... but there are two gotchas:
476: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478: # In both cases, we have to default to `cp -p'.
479: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480: as_ln_s='cp -p'
481: elif ln conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s=ln
483: else
484: as_ln_s='cp -p'
485: fi
486: else
487: as_ln_s='cp -p'
488: fi
489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490: rmdir conf$$.dir 2>/dev/null
491:
492: if mkdir -p . 2>/dev/null; then
493: as_mkdir_p='mkdir -p "$as_dir"'
494: else
495: test -d ./-p && rmdir ./-p
496: as_mkdir_p=false
497: fi
498:
499: if test -x / >/dev/null 2>&1; then
500: as_test_x='test -x'
501: else
502: if ls -dL / >/dev/null 2>&1; then
503: as_ls_L_option=L
504: else
505: as_ls_L_option=
506: fi
507: as_test_x='
508: eval sh -c '\''
509: if test -d "$1"; then
510: test -d "$1/.";
511: else
512: case $1 in #(
513: -*)set "./$1";;
514: esac;
515: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516: ???[sx]*):;;*)false;;esac;fi
517: '\'' sh
518: '
519: fi
520: as_executable_p=$as_test_x
521:
522: # Sed expression to map a string onto a valid CPP name.
523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524:
525: # Sed expression to map a string onto a valid variable name.
526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527:
528:
529: test -n "$DJDIR" || exec 7<&0 </dev/null
530: exec 6>&1
531:
532: # Name of the host.
533: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534: # so uname gets run too.
535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536:
537: #
538: # Initializations.
539: #
540: ac_default_prefix=/usr/local
541: ac_clean_files=
542: ac_config_libobj_dir=.
543: LIBOBJS=
544: cross_compiling=no
545: subdirs=
546: MFLAGS=
547: MAKEFLAGS=
548:
549: # Identity of this package.
550: PACKAGE_NAME='rpl'
551: PACKAGE_TARNAME='rpl'
552: PACKAGE_VERSION='4.1.6'
553: PACKAGE_STRING='rpl 4.1.6'
554: PACKAGE_BUGREPORT=''
555: PACKAGE_URL=''
556:
557: enable_option_checking=no
558: ac_default_prefix=/usr/local
559: # Factoring default headers for most tests.
560: ac_includes_default="\
561: #include <stdio.h>
562: #ifdef HAVE_SYS_TYPES_H
563: # include <sys/types.h>
564: #endif
565: #ifdef HAVE_SYS_STAT_H
566: # include <sys/stat.h>
567: #endif
568: #ifdef STDC_HEADERS
569: # include <stdlib.h>
570: # include <stddef.h>
571: #else
572: # ifdef HAVE_STDLIB_H
573: # include <stdlib.h>
574: # endif
575: #endif
576: #ifdef HAVE_STRING_H
577: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578: # include <memory.h>
579: # endif
580: # include <string.h>
581: #endif
582: #ifdef HAVE_STRINGS_H
583: # include <strings.h>
584: #endif
585: #ifdef HAVE_INTTYPES_H
586: # include <inttypes.h>
587: #endif
588: #ifdef HAVE_STDINT_H
589: # include <stdint.h>
590: #endif
591: #ifdef HAVE_UNISTD_H
592: # include <unistd.h>
593: #endif"
594:
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
599: LIBMOTIF
600: INCMOTIF
601: GIAC
602: PARI
603: COCOA
604: NTL
605: MPFR
606: GMP
607: MALLOC
608: EXT_SQL
609: DATE_FR
610: FINAL_ENCODING
611: SIGSEGV
612: BUILD_OPENMOTIF
613: OPENMOTIF
614: LIBXPM
615: OPENSSL
616: SQLITE
617: ICONV
618: FILE
619: GNUPLOT
620: GPP
621: GSL
622: UNITS
623: READLINE
624: NCURSES
625: ARCH
626: ELF
627: BSH_PATH
628: IPV6
629: SEMUN
630: IPCS_SYSV
631: SEMAPHORES_NOMMES
632: NESTED_FUNCTIONS
633: EXPORT_DYNAMIC
634: C_STANDARD
635: LIB_PREFIX
636: WHOLE_LIB2
637: WHOLE_LIB1
638: OS
639: HOST
640: GNUPLOT_COMPILATION
641: EGREP
642: GREP
643: libPgSQLlib
644: libPgSQLinc
645: POSTGRESQL_SUPPORT
646: libMySQLlib
647: libMySQLinc
648: MYSQL_SUPPORT
649: DATE
650: includeX
651: libX
652: MOTIF_SUPPORT
653: DEBUG
654: EXPERIMENTAL_CODE
655: VIM_SUPPORT
656: POSTSCRIPT_SUPPORT
657: FORCE_GNUPLOT_PATH
658: GNUPLOT_SUPPORT
659: VIM
660: GNUPLOT_P
661: GV
662: GS
663: DVIPS
664: LATEX
665: TEX
666: SED
667: RANLIB
668: LN_S
669: RUNPATH
670: PROFILAGE
671: subdirs
672: PSELECT
673: SHARED_MEMORY
674: LIBRPLCAS
675: RPLCAS
676: ABI
677: RPLTOOLS
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_BACKSLASH
713: AM_DEFAULT_VERBOSITY
714: am__untar
715: am__tar
716: AMTAR
717: am__leading_dot
718: SET_MAKE
719: AWK
720: mkdir_p
721: MKDIR_P
722: INSTALL_STRIP_PROGRAM
723: STRIP
724: install_sh
725: MAKEINFO
726: AUTOHEADER
727: AUTOMAKE
728: AUTOCONF
729: ACLOCAL
730: VERSION
731: PACKAGE
732: CYGPATH_W
733: am__isrc
734: INSTALL_DATA
735: INSTALL_SCRIPT
736: INSTALL_PROGRAM
737: target_os
738: target_vendor
739: target_cpu
740: target
741: host_os
742: host_vendor
743: host_cpu
744: host
745: build_os
746: build_vendor
747: build_cpu
748: build
749: target_alias
750: host_alias
751: build_alias
752: LIBS
753: ECHO_T
754: ECHO_N
755: ECHO_C
756: DEFS
757: mandir
758: localedir
759: libdir
760: psdir
761: pdfdir
762: dvidir
763: htmldir
764: infodir
765: docdir
766: oldincludedir
767: includedir
768: localstatedir
769: sharedstatedir
770: sysconfdir
771: datadir
772: datarootdir
773: libexecdir
774: sbindir
775: bindir
776: program_transform_name
777: prefix
778: exec_prefix
779: PACKAGE_URL
780: PACKAGE_BUGREPORT
781: PACKAGE_STRING
782: PACKAGE_VERSION
783: PACKAGE_TARNAME
784: PACKAGE_NAME
785: PATH_SEPARATOR
786: SHELL'
787: ac_subst_files=''
788: ac_user_opts='
789: enable_option_checking
790: enable_silent_rules
791: enable_dependency_tracking
792: with_x
793: with_32bits_abi
794: with_64bits_abi
795: enable_recursive
796: with_rpltools
797: enable_rplcas
798: enable_optimization
799: enable_sysv_ipcs
800: enable_full_static
801: enable_final_encoding
802: enable_tex
803: enable_vim
804: enable_embedded_gnuplot
805: enable_gnuplot
806: enable_motif
807: enable_experimental
808: enable_debug
809: enable_profile
810: enable_final_run_path
811: with_mysql
812: with_postgresql
813: with_bourne_shell
814: with_openssl_arch
815: '
816: ac_precious_vars='build_alias
817: host_alias
818: target_alias
819: CC
820: CFLAGS
821: LDFLAGS
822: LIBS
823: CPPFLAGS
824: CXX
825: CXXFLAGS
826: CCC
827: F77
828: FFLAGS
829: FC
830: FCFLAGS
831: XMKMF
832: CPP'
833: ac_subdirs_all='tools/$LIBXPM
834: tools/$OPENMOTIF
835: tools/$GNUPLOT
836: tools/$NCURSES
837: tools/$READLINE
838: tools/$GSL
839: tools/$GPP
840: tools/$FILE
841: tools/$ICONV
842: tools/$SQLITE
843: tools/$UNITS
844: tools/$SIGSEGV'
845:
846: # Initialize some variables set by options.
847: ac_init_help=
848: ac_init_version=false
849: ac_unrecognized_opts=
850: ac_unrecognized_sep=
851: # The variables have the same names as the options, with
852: # dashes changed to underlines.
853: cache_file=/dev/null
854: exec_prefix=NONE
855: no_create=
856: no_recursion=
857: prefix=NONE
858: program_prefix=NONE
859: program_suffix=NONE
860: program_transform_name=s,x,x,
861: silent=
862: site=
863: srcdir=
864: verbose=
865: x_includes=NONE
866: x_libraries=NONE
867:
868: # Installation directory options.
869: # These are left unexpanded so users can "make install exec_prefix=/foo"
870: # and all the variables that are supposed to be based on exec_prefix
871: # by default will actually change.
872: # Use braces instead of parens because sh, perl, etc. also accept them.
873: # (The list follows the same order as the GNU Coding Standards.)
874: bindir='${exec_prefix}/bin'
875: sbindir='${exec_prefix}/sbin'
876: libexecdir='${exec_prefix}/libexec'
877: datarootdir='${prefix}/share'
878: datadir='${datarootdir}'
879: sysconfdir='${prefix}/etc'
880: sharedstatedir='${prefix}/com'
881: localstatedir='${prefix}/var'
882: includedir='${prefix}/include'
883: oldincludedir='/usr/include'
884: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885: infodir='${datarootdir}/info'
886: htmldir='${docdir}'
887: dvidir='${docdir}'
888: pdfdir='${docdir}'
889: psdir='${docdir}'
890: libdir='${exec_prefix}/lib'
891: localedir='${datarootdir}/locale'
892: mandir='${datarootdir}/man'
893:
894: ac_prev=
895: ac_dashdash=
896: for ac_option
897: do
898: # If the previous option needs an argument, assign it.
899: if test -n "$ac_prev"; then
900: eval $ac_prev=\$ac_option
901: ac_prev=
902: continue
903: fi
904:
905: case $ac_option in
906: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907: *=) ac_optarg= ;;
908: *) ac_optarg=yes ;;
909: esac
910:
911: # Accept the important Cygnus configure options, so we can diagnose typos.
912:
913: case $ac_dashdash$ac_option in
914: --)
915: ac_dashdash=yes ;;
916:
917: -bindir | --bindir | --bindi | --bind | --bin | --bi)
918: ac_prev=bindir ;;
919: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920: bindir=$ac_optarg ;;
921:
922: -build | --build | --buil | --bui | --bu)
923: ac_prev=build_alias ;;
924: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925: build_alias=$ac_optarg ;;
926:
927: -cache-file | --cache-file | --cache-fil | --cache-fi \
928: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929: ac_prev=cache_file ;;
930: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932: cache_file=$ac_optarg ;;
933:
934: --config-cache | -C)
935: cache_file=config.cache ;;
936:
937: -datadir | --datadir | --datadi | --datad)
938: ac_prev=datadir ;;
939: -datadir=* | --datadir=* | --datadi=* | --datad=*)
940: datadir=$ac_optarg ;;
941:
942: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943: | --dataroo | --dataro | --datar)
944: ac_prev=datarootdir ;;
945: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947: datarootdir=$ac_optarg ;;
948:
949: -disable-* | --disable-*)
950: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951: # Reject names that are not valid shell variable names.
952: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953: as_fn_error $? "invalid feature name: $ac_useropt"
954: ac_useropt_orig=$ac_useropt
955: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956: case $ac_user_opts in
957: *"
958: "enable_$ac_useropt"
959: "*) ;;
960: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961: ac_unrecognized_sep=', ';;
962: esac
963: eval enable_$ac_useropt=no ;;
964:
965: -docdir | --docdir | --docdi | --doc | --do)
966: ac_prev=docdir ;;
967: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968: docdir=$ac_optarg ;;
969:
970: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971: ac_prev=dvidir ;;
972: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973: dvidir=$ac_optarg ;;
974:
975: -enable-* | --enable-*)
976: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977: # Reject names that are not valid shell variable names.
978: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979: as_fn_error $? "invalid feature name: $ac_useropt"
980: ac_useropt_orig=$ac_useropt
981: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982: case $ac_user_opts in
983: *"
984: "enable_$ac_useropt"
985: "*) ;;
986: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987: ac_unrecognized_sep=', ';;
988: esac
989: eval enable_$ac_useropt=\$ac_optarg ;;
990:
991: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993: | --exec | --exe | --ex)
994: ac_prev=exec_prefix ;;
995: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997: | --exec=* | --exe=* | --ex=*)
998: exec_prefix=$ac_optarg ;;
999:
1000: -gas | --gas | --ga | --g)
1001: # Obsolete; use --with-gas.
1002: with_gas=yes ;;
1003:
1004: -help | --help | --hel | --he | -h)
1005: ac_init_help=long ;;
1006: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007: ac_init_help=recursive ;;
1008: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009: ac_init_help=short ;;
1010:
1011: -host | --host | --hos | --ho)
1012: ac_prev=host_alias ;;
1013: -host=* | --host=* | --hos=* | --ho=*)
1014: host_alias=$ac_optarg ;;
1015:
1016: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017: ac_prev=htmldir ;;
1018: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019: | --ht=*)
1020: htmldir=$ac_optarg ;;
1021:
1022: -includedir | --includedir | --includedi | --included | --include \
1023: | --includ | --inclu | --incl | --inc)
1024: ac_prev=includedir ;;
1025: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026: | --includ=* | --inclu=* | --incl=* | --inc=*)
1027: includedir=$ac_optarg ;;
1028:
1029: -infodir | --infodir | --infodi | --infod | --info | --inf)
1030: ac_prev=infodir ;;
1031: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032: infodir=$ac_optarg ;;
1033:
1034: -libdir | --libdir | --libdi | --libd)
1035: ac_prev=libdir ;;
1036: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037: libdir=$ac_optarg ;;
1038:
1039: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040: | --libexe | --libex | --libe)
1041: ac_prev=libexecdir ;;
1042: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043: | --libexe=* | --libex=* | --libe=*)
1044: libexecdir=$ac_optarg ;;
1045:
1046: -localedir | --localedir | --localedi | --localed | --locale)
1047: ac_prev=localedir ;;
1048: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049: localedir=$ac_optarg ;;
1050:
1051: -localstatedir | --localstatedir | --localstatedi | --localstated \
1052: | --localstate | --localstat | --localsta | --localst | --locals)
1053: ac_prev=localstatedir ;;
1054: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056: localstatedir=$ac_optarg ;;
1057:
1058: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059: ac_prev=mandir ;;
1060: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061: mandir=$ac_optarg ;;
1062:
1063: -nfp | --nfp | --nf)
1064: # Obsolete; use --without-fp.
1065: with_fp=no ;;
1066:
1067: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068: | --no-cr | --no-c | -n)
1069: no_create=yes ;;
1070:
1071: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073: no_recursion=yes ;;
1074:
1075: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077: | --oldin | --oldi | --old | --ol | --o)
1078: ac_prev=oldincludedir ;;
1079: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082: oldincludedir=$ac_optarg ;;
1083:
1084: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085: ac_prev=prefix ;;
1086: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087: prefix=$ac_optarg ;;
1088:
1089: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090: | --program-pre | --program-pr | --program-p)
1091: ac_prev=program_prefix ;;
1092: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094: program_prefix=$ac_optarg ;;
1095:
1096: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097: | --program-suf | --program-su | --program-s)
1098: ac_prev=program_suffix ;;
1099: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101: program_suffix=$ac_optarg ;;
1102:
1103: -program-transform-name | --program-transform-name \
1104: | --program-transform-nam | --program-transform-na \
1105: | --program-transform-n | --program-transform- \
1106: | --program-transform | --program-transfor \
1107: | --program-transfo | --program-transf \
1108: | --program-trans | --program-tran \
1109: | --progr-tra | --program-tr | --program-t)
1110: ac_prev=program_transform_name ;;
1111: -program-transform-name=* | --program-transform-name=* \
1112: | --program-transform-nam=* | --program-transform-na=* \
1113: | --program-transform-n=* | --program-transform-=* \
1114: | --program-transform=* | --program-transfor=* \
1115: | --program-transfo=* | --program-transf=* \
1116: | --program-trans=* | --program-tran=* \
1117: | --progr-tra=* | --program-tr=* | --program-t=*)
1118: program_transform_name=$ac_optarg ;;
1119:
1120: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121: ac_prev=pdfdir ;;
1122: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123: pdfdir=$ac_optarg ;;
1124:
1125: -psdir | --psdir | --psdi | --psd | --ps)
1126: ac_prev=psdir ;;
1127: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128: psdir=$ac_optarg ;;
1129:
1130: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131: | -silent | --silent | --silen | --sile | --sil)
1132: silent=yes ;;
1133:
1134: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135: ac_prev=sbindir ;;
1136: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137: | --sbi=* | --sb=*)
1138: sbindir=$ac_optarg ;;
1139:
1140: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142: | --sharedst | --shareds | --shared | --share | --shar \
1143: | --sha | --sh)
1144: ac_prev=sharedstatedir ;;
1145: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148: | --sha=* | --sh=*)
1149: sharedstatedir=$ac_optarg ;;
1150:
1151: -site | --site | --sit)
1152: ac_prev=site ;;
1153: -site=* | --site=* | --sit=*)
1154: site=$ac_optarg ;;
1155:
1156: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157: ac_prev=srcdir ;;
1158: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159: srcdir=$ac_optarg ;;
1160:
1161: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162: | --syscon | --sysco | --sysc | --sys | --sy)
1163: ac_prev=sysconfdir ;;
1164: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166: sysconfdir=$ac_optarg ;;
1167:
1168: -target | --target | --targe | --targ | --tar | --ta | --t)
1169: ac_prev=target_alias ;;
1170: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171: target_alias=$ac_optarg ;;
1172:
1173: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174: verbose=yes ;;
1175:
1176: -version | --version | --versio | --versi | --vers | -V)
1177: ac_init_version=: ;;
1178:
1179: -with-* | --with-*)
1180: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181: # Reject names that are not valid shell variable names.
1182: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183: as_fn_error $? "invalid package name: $ac_useropt"
1184: ac_useropt_orig=$ac_useropt
1185: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186: case $ac_user_opts in
1187: *"
1188: "with_$ac_useropt"
1189: "*) ;;
1190: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191: ac_unrecognized_sep=', ';;
1192: esac
1193: eval with_$ac_useropt=\$ac_optarg ;;
1194:
1195: -without-* | --without-*)
1196: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197: # Reject names that are not valid shell variable names.
1198: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199: as_fn_error $? "invalid package name: $ac_useropt"
1200: ac_useropt_orig=$ac_useropt
1201: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202: case $ac_user_opts in
1203: *"
1204: "with_$ac_useropt"
1205: "*) ;;
1206: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207: ac_unrecognized_sep=', ';;
1208: esac
1209: eval with_$ac_useropt=no ;;
1210:
1211: --x)
1212: # Obsolete; use --with-x.
1213: with_x=yes ;;
1214:
1215: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216: | --x-incl | --x-inc | --x-in | --x-i)
1217: ac_prev=x_includes ;;
1218: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220: x_includes=$ac_optarg ;;
1221:
1222: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224: ac_prev=x_libraries ;;
1225: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227: x_libraries=$ac_optarg ;;
1228:
1229: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230: Try \`$0 --help' for more information"
1231: ;;
1232:
1233: *=*)
1234: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235: # Reject names that are not valid shell variable names.
1236: case $ac_envvar in #(
1237: '' | [0-9]* | *[!_$as_cr_alnum]* )
1238: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239: esac
1240: eval $ac_envvar=\$ac_optarg
1241: export $ac_envvar ;;
1242:
1243: *)
1244: # FIXME: should be removed in autoconf 3.0.
1245: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249: ;;
1250:
1251: esac
1252: done
1253:
1254: if test -n "$ac_prev"; then
1255: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256: as_fn_error $? "missing argument to $ac_option"
1257: fi
1258:
1259: if test -n "$ac_unrecognized_opts"; then
1260: case $enable_option_checking in
1261: no) ;;
1262: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264: esac
1265: fi
1266:
1267: # Check all directory arguments for consistency.
1268: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269: datadir sysconfdir sharedstatedir localstatedir includedir \
1270: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271: libdir localedir mandir
1272: do
1273: eval ac_val=\$$ac_var
1274: # Remove trailing slashes.
1275: case $ac_val in
1276: */ )
1277: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278: eval $ac_var=\$ac_val;;
1279: esac
1280: # Be sure to have absolute directory names.
1281: case $ac_val in
1282: [\\/$]* | ?:[\\/]* ) continue;;
1283: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284: esac
1285: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286: done
1287:
1288: # There might be people who depend on the old broken behavior: `$host'
1289: # used to hold the argument of --host etc.
1290: # FIXME: To remove some day.
1291: build=$build_alias
1292: host=$host_alias
1293: target=$target_alias
1294:
1295: # FIXME: To remove some day.
1296: if test "x$host_alias" != x; then
1297: if test "x$build_alias" = x; then
1298: cross_compiling=maybe
1299: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300: If a cross compiler is detected then cross compile mode will be used" >&2
1301: elif test "x$build_alias" != "x$host_alias"; then
1302: cross_compiling=yes
1303: fi
1304: fi
1305:
1306: ac_tool_prefix=
1307: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308:
1309: test "$silent" = yes && exec 6>/dev/null
1310:
1311:
1312: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313: ac_ls_di=`ls -di .` &&
1314: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315: as_fn_error $? "working directory cannot be determined"
1316: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317: as_fn_error $? "pwd does not report name of working directory"
1318:
1319:
1320: # Find the source files, if location was not specified.
1321: if test -z "$srcdir"; then
1322: ac_srcdir_defaulted=yes
1323: # Try the directory containing this script, then the parent directory.
1324: ac_confdir=`$as_dirname -- "$as_myself" ||
1325: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326: X"$as_myself" : 'X\(//\)[^/]' \| \
1327: X"$as_myself" : 'X\(//\)$' \| \
1328: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329: $as_echo X"$as_myself" |
1330: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331: s//\1/
1332: q
1333: }
1334: /^X\(\/\/\)[^/].*/{
1335: s//\1/
1336: q
1337: }
1338: /^X\(\/\/\)$/{
1339: s//\1/
1340: q
1341: }
1342: /^X\(\/\).*/{
1343: s//\1/
1344: q
1345: }
1346: s/.*/./; q'`
1347: srcdir=$ac_confdir
1348: if test ! -r "$srcdir/$ac_unique_file"; then
1349: srcdir=..
1350: fi
1351: else
1352: ac_srcdir_defaulted=no
1353: fi
1354: if test ! -r "$srcdir/$ac_unique_file"; then
1355: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357: fi
1358: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359: ac_abs_confdir=`(
1360: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361: pwd)`
1362: # When building in place, set srcdir=.
1363: if test "$ac_abs_confdir" = "$ac_pwd"; then
1364: srcdir=.
1365: fi
1366: # Remove unnecessary trailing slashes from srcdir.
1367: # Double slashes in file names in object file debugging info
1368: # mess up M-x gdb in Emacs.
1369: case $srcdir in
1370: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371: esac
1372: for ac_var in $ac_precious_vars; do
1373: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374: eval ac_env_${ac_var}_value=\$${ac_var}
1375: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377: done
1378:
1379: #
1380: # Report the --help message.
1381: #
1382: if test "$ac_init_help" = "long"; then
1383: # Omit some internal or obsolete options to make the list less imposing.
1384: # This message is too long to be a string in the A/UX 3.1 sh.
1385: cat <<_ACEOF
1386: \`configure' configures rpl 4.1.6 to adapt to many kinds of systems.
1387:
1388: Usage: $0 [OPTION]... [VAR=VALUE]...
1389:
1390: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391: VAR=VALUE. See below for descriptions of some of the useful variables.
1392:
1393: Defaults for the options are specified in brackets.
1394:
1395: Configuration:
1396: -h, --help display this help and exit
1397: --help=short display options specific to this package
1398: --help=recursive display the short help of all the included packages
1399: -V, --version display version information and exit
1400: -q, --quiet, --silent do not print \`checking ...' messages
1401: --cache-file=FILE cache test results in FILE [disabled]
1402: -C, --config-cache alias for \`--cache-file=config.cache'
1403: -n, --no-create do not create output files
1404: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405:
1406: Installation directories:
1407: --prefix=PREFIX install architecture-independent files in PREFIX
1408: [$ac_default_prefix]
1409: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410: [PREFIX]
1411:
1412: By default, \`make install' will install all the files in
1413: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415: for instance \`--prefix=\$HOME'.
1416:
1417: For better control, use the options below.
1418:
1419: Fine tuning of the installation directories:
1420: --bindir=DIR user executables [EPREFIX/bin]
1421: --sbindir=DIR system admin executables [EPREFIX/sbin]
1422: --libexecdir=DIR program executables [EPREFIX/libexec]
1423: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426: --libdir=DIR object code libraries [EPREFIX/lib]
1427: --includedir=DIR C header files [PREFIX/include]
1428: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431: --infodir=DIR info documentation [DATAROOTDIR/info]
1432: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433: --mandir=DIR man documentation [DATAROOTDIR/man]
1434: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1435: --htmldir=DIR html documentation [DOCDIR]
1436: --dvidir=DIR dvi documentation [DOCDIR]
1437: --pdfdir=DIR pdf documentation [DOCDIR]
1438: --psdir=DIR ps documentation [DOCDIR]
1439: _ACEOF
1440:
1441: cat <<\_ACEOF
1442:
1443: Program names:
1444: --program-prefix=PREFIX prepend PREFIX to installed program names
1445: --program-suffix=SUFFIX append SUFFIX to installed program names
1446: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447:
1448: X features:
1449: --x-includes=DIR X include files are in DIR
1450: --x-libraries=DIR X library files are in DIR
1451:
1452: System types:
1453: --build=BUILD configure for building on BUILD [guessed]
1454: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455: --target=TARGET configure for building compilers for TARGET [HOST]
1456: _ACEOF
1457: fi
1458:
1459: if test -n "$ac_init_help"; then
1460: case $ac_init_help in
1461: short | recursive ) echo "Configuration of rpl 4.1.6:";;
1462: esac
1463: cat <<\_ACEOF
1464:
1465: Optional Features:
1466: --disable-option-checking ignore unrecognized --enable/--with options
1467: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469: --enable-silent-rules less verbose build output (undo: `make V=1')
1470: --disable-silent-rules verbose build output (undo: `make V=0')
1471: --disable-dependency-tracking speeds up one-time build
1472: --enable-dependency-tracking do not reject slow dependency extractors
1473: --enable-recursive recursive configuration (default=yes)
1474: --enable-rplcas compile rplcas (default=no)
1475: --enable-optimization set compiler flags [default=environment variables -O3]
1476: --enable-sysv-ipcs use SystemV IPC functions [default=guessed]
1477: --enable-full-static build static RPL/2 engine [default=shared]
1478: --enable-final-encoding force final encoding [default=guessed]
1479: --enable-tex provide the TeX support [default=guessed]
1480: --enable-vim provide the vim support [default=guessed]
1481: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1482: --enable-gnuplot provide the GnuPlot support [default=guessed]
1483: --enable-motif provide the Motif support [default=guessed]
1484: --enable-experimental enable experimental code [default=no]
1485: --enable-debug enable debug code [default=no]
1486: --enable-profile enable profile code [default=no]
1487: --enable-final-run-path=PATH enable another final run path than PREFIX
1488:
1489: Optional Packages:
1490: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492: --with-x use the X Window System
1493: --with-32bits-abi force 32bits ABI (multilib)
1494: --with-64bits-abi force 64bits ABI (multilib)
1495: --with-rpltools specify rpltools path used for cross compilation
1496: --with-mysql=PATH specify directory for installed mysql
1497: --with-postgresql=PATH specify directory for installed postgresql
1498: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1499: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1500:
1501: Some influential environment variables:
1502: CC C compiler command
1503: CFLAGS C compiler flags
1504: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505: nonstandard directory <lib dir>
1506: LIBS libraries to pass to the linker, e.g. -l<library>
1507: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508: you have headers in a nonstandard directory <include dir>
1509: CXX C++ compiler command
1510: CXXFLAGS C++ compiler flags
1511: F77 Fortran 77 compiler command
1512: FFLAGS Fortran 77 compiler flags
1513: FC Fortran compiler command
1514: FCFLAGS Fortran compiler flags
1515: XMKMF Path to xmkmf, Makefile generator for X Window System
1516: CPP C preprocessor
1517:
1518: Use these variables to override the choices made by `configure' or to help
1519: it to find libraries and programs with nonstandard names/locations.
1520:
1521: Report bugs to the package provider.
1522: _ACEOF
1523: ac_status=$?
1524: fi
1525:
1526: if test "$ac_init_help" = "recursive"; then
1527: # If there are subdirs, report their specific --help.
1528: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529: test -d "$ac_dir" ||
1530: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531: continue
1532: ac_builddir=.
1533:
1534: case "$ac_dir" in
1535: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536: *)
1537: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538: # A ".." for each directory in $ac_dir_suffix.
1539: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540: case $ac_top_builddir_sub in
1541: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543: esac ;;
1544: esac
1545: ac_abs_top_builddir=$ac_pwd
1546: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547: # for backward compatibility:
1548: ac_top_builddir=$ac_top_build_prefix
1549:
1550: case $srcdir in
1551: .) # We are building in place.
1552: ac_srcdir=.
1553: ac_top_srcdir=$ac_top_builddir_sub
1554: ac_abs_top_srcdir=$ac_pwd ;;
1555: [\\/]* | ?:[\\/]* ) # Absolute name.
1556: ac_srcdir=$srcdir$ac_dir_suffix;
1557: ac_top_srcdir=$srcdir
1558: ac_abs_top_srcdir=$srcdir ;;
1559: *) # Relative name.
1560: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561: ac_top_srcdir=$ac_top_build_prefix$srcdir
1562: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563: esac
1564: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565:
1566: cd "$ac_dir" || { ac_status=$?; continue; }
1567: # Check for guested configure.
1568: if test -f "$ac_srcdir/configure.gnu"; then
1569: echo &&
1570: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571: elif test -f "$ac_srcdir/configure"; then
1572: echo &&
1573: $SHELL "$ac_srcdir/configure" --help=recursive
1574: else
1575: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576: fi || ac_status=$?
1577: cd "$ac_pwd" || { ac_status=$?; break; }
1578: done
1579: fi
1580:
1581: test -n "$ac_init_help" && exit $ac_status
1582: if $ac_init_version; then
1583: cat <<\_ACEOF
1584: rpl configure 4.1.6
1585: generated by GNU Autoconf 2.67
1586:
1587: Copyright (C) 2010 Free Software Foundation, Inc.
1588: This configure script is free software; the Free Software Foundation
1589: gives unlimited permission to copy, distribute and modify it.
1590: _ACEOF
1591: exit
1592: fi
1593:
1594: ## ------------------------ ##
1595: ## Autoconf initialization. ##
1596: ## ------------------------ ##
1597:
1598: # ac_fn_c_try_compile LINENO
1599: # --------------------------
1600: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601: ac_fn_c_try_compile ()
1602: {
1603: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604: rm -f conftest.$ac_objext
1605: if { { ac_try="$ac_compile"
1606: case "(($ac_try" in
1607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608: *) ac_try_echo=$ac_try;;
1609: esac
1610: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611: $as_echo "$ac_try_echo"; } >&5
1612: (eval "$ac_compile") 2>conftest.err
1613: ac_status=$?
1614: if test -s conftest.err; then
1615: grep -v '^ *+' conftest.err >conftest.er1
1616: cat conftest.er1 >&5
1617: mv -f conftest.er1 conftest.err
1618: fi
1619: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620: test $ac_status = 0; } && {
1621: test -z "$ac_c_werror_flag" ||
1622: test ! -s conftest.err
1623: } && test -s conftest.$ac_objext; then :
1624: ac_retval=0
1625: else
1626: $as_echo "$as_me: failed program was:" >&5
1627: sed 's/^/| /' conftest.$ac_ext >&5
1628:
1629: ac_retval=1
1630: fi
1631: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632: as_fn_set_status $ac_retval
1633:
1634: } # ac_fn_c_try_compile
1635:
1636: # ac_fn_cxx_try_compile LINENO
1637: # ----------------------------
1638: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639: ac_fn_cxx_try_compile ()
1640: {
1641: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642: rm -f conftest.$ac_objext
1643: if { { ac_try="$ac_compile"
1644: case "(($ac_try" in
1645: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646: *) ac_try_echo=$ac_try;;
1647: esac
1648: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649: $as_echo "$ac_try_echo"; } >&5
1650: (eval "$ac_compile") 2>conftest.err
1651: ac_status=$?
1652: if test -s conftest.err; then
1653: grep -v '^ *+' conftest.err >conftest.er1
1654: cat conftest.er1 >&5
1655: mv -f conftest.er1 conftest.err
1656: fi
1657: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658: test $ac_status = 0; } && {
1659: test -z "$ac_cxx_werror_flag" ||
1660: test ! -s conftest.err
1661: } && test -s conftest.$ac_objext; then :
1662: ac_retval=0
1663: else
1664: $as_echo "$as_me: failed program was:" >&5
1665: sed 's/^/| /' conftest.$ac_ext >&5
1666:
1667: ac_retval=1
1668: fi
1669: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670: as_fn_set_status $ac_retval
1671:
1672: } # ac_fn_cxx_try_compile
1673:
1674: # ac_fn_f77_try_compile LINENO
1675: # ----------------------------
1676: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677: ac_fn_f77_try_compile ()
1678: {
1679: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680: rm -f conftest.$ac_objext
1681: if { { ac_try="$ac_compile"
1682: case "(($ac_try" in
1683: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684: *) ac_try_echo=$ac_try;;
1685: esac
1686: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687: $as_echo "$ac_try_echo"; } >&5
1688: (eval "$ac_compile") 2>conftest.err
1689: ac_status=$?
1690: if test -s conftest.err; then
1691: grep -v '^ *+' conftest.err >conftest.er1
1692: cat conftest.er1 >&5
1693: mv -f conftest.er1 conftest.err
1694: fi
1695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696: test $ac_status = 0; } && {
1697: test -z "$ac_f77_werror_flag" ||
1698: test ! -s conftest.err
1699: } && test -s conftest.$ac_objext; then :
1700: ac_retval=0
1701: else
1702: $as_echo "$as_me: failed program was:" >&5
1703: sed 's/^/| /' conftest.$ac_ext >&5
1704:
1705: ac_retval=1
1706: fi
1707: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708: as_fn_set_status $ac_retval
1709:
1710: } # ac_fn_f77_try_compile
1711:
1712: # ac_fn_fc_try_compile LINENO
1713: # ---------------------------
1714: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715: ac_fn_fc_try_compile ()
1716: {
1717: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718: rm -f conftest.$ac_objext
1719: if { { ac_try="$ac_compile"
1720: case "(($ac_try" in
1721: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722: *) ac_try_echo=$ac_try;;
1723: esac
1724: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725: $as_echo "$ac_try_echo"; } >&5
1726: (eval "$ac_compile") 2>conftest.err
1727: ac_status=$?
1728: if test -s conftest.err; then
1729: grep -v '^ *+' conftest.err >conftest.er1
1730: cat conftest.er1 >&5
1731: mv -f conftest.er1 conftest.err
1732: fi
1733: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734: test $ac_status = 0; } && {
1735: test -z "$ac_fc_werror_flag" ||
1736: test ! -s conftest.err
1737: } && test -s conftest.$ac_objext; then :
1738: ac_retval=0
1739: else
1740: $as_echo "$as_me: failed program was:" >&5
1741: sed 's/^/| /' conftest.$ac_ext >&5
1742:
1743: ac_retval=1
1744: fi
1745: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746: as_fn_set_status $ac_retval
1747:
1748: } # ac_fn_fc_try_compile
1749:
1750: # ac_fn_c_try_cpp LINENO
1751: # ----------------------
1752: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753: ac_fn_c_try_cpp ()
1754: {
1755: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756: if { { ac_try="$ac_cpp conftest.$ac_ext"
1757: case "(($ac_try" in
1758: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759: *) ac_try_echo=$ac_try;;
1760: esac
1761: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762: $as_echo "$ac_try_echo"; } >&5
1763: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764: ac_status=$?
1765: if test -s conftest.err; then
1766: grep -v '^ *+' conftest.err >conftest.er1
1767: cat conftest.er1 >&5
1768: mv -f conftest.er1 conftest.err
1769: fi
1770: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771: test $ac_status = 0; } > conftest.i && {
1772: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773: test ! -s conftest.err
1774: }; then :
1775: ac_retval=0
1776: else
1777: $as_echo "$as_me: failed program was:" >&5
1778: sed 's/^/| /' conftest.$ac_ext >&5
1779:
1780: ac_retval=1
1781: fi
1782: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783: as_fn_set_status $ac_retval
1784:
1785: } # ac_fn_c_try_cpp
1786:
1787: # ac_fn_c_try_link LINENO
1788: # -----------------------
1789: # Try to link conftest.$ac_ext, and return whether this succeeded.
1790: ac_fn_c_try_link ()
1791: {
1792: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793: rm -f conftest.$ac_objext conftest$ac_exeext
1794: if { { ac_try="$ac_link"
1795: case "(($ac_try" in
1796: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797: *) ac_try_echo=$ac_try;;
1798: esac
1799: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800: $as_echo "$ac_try_echo"; } >&5
1801: (eval "$ac_link") 2>conftest.err
1802: ac_status=$?
1803: if test -s conftest.err; then
1804: grep -v '^ *+' conftest.err >conftest.er1
1805: cat conftest.er1 >&5
1806: mv -f conftest.er1 conftest.err
1807: fi
1808: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809: test $ac_status = 0; } && {
1810: test -z "$ac_c_werror_flag" ||
1811: test ! -s conftest.err
1812: } && test -s conftest$ac_exeext && {
1813: test "$cross_compiling" = yes ||
1814: $as_test_x conftest$ac_exeext
1815: }; then :
1816: ac_retval=0
1817: else
1818: $as_echo "$as_me: failed program was:" >&5
1819: sed 's/^/| /' conftest.$ac_ext >&5
1820:
1821: ac_retval=1
1822: fi
1823: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825: # interfere with the next link command; also delete a directory that is
1826: # left behind by Apple's compiler. We do this before executing the actions.
1827: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829: as_fn_set_status $ac_retval
1830:
1831: } # ac_fn_c_try_link
1832:
1833: # ac_fn_c_check_func LINENO FUNC VAR
1834: # ----------------------------------
1835: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836: ac_fn_c_check_func ()
1837: {
1838: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840: $as_echo_n "checking for $2... " >&6; }
1841: if eval "test \"\${$3+set}\"" = set; then :
1842: $as_echo_n "(cached) " >&6
1843: else
1844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845: /* end confdefs.h. */
1846: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848: #define $2 innocuous_$2
1849:
1850: /* System header to define __stub macros and hopefully few prototypes,
1851: which can conflict with char $2 (); below.
1852: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853: <limits.h> exists even on freestanding compilers. */
1854:
1855: #ifdef __STDC__
1856: # include <limits.h>
1857: #else
1858: # include <assert.h>
1859: #endif
1860:
1861: #undef $2
1862:
1863: /* Override any GCC internal prototype to avoid an error.
1864: Use char because int might match the return type of a GCC
1865: builtin and then its argument prototype would still apply. */
1866: #ifdef __cplusplus
1867: extern "C"
1868: #endif
1869: char $2 ();
1870: /* The GNU C library defines this for functions which it implements
1871: to always fail with ENOSYS. Some functions are actually named
1872: something starting with __ and the normal name is an alias. */
1873: #if defined __stub_$2 || defined __stub___$2
1874: choke me
1875: #endif
1876:
1877: int
1878: main ()
1879: {
1880: return $2 ();
1881: ;
1882: return 0;
1883: }
1884: _ACEOF
1885: if ac_fn_c_try_link "$LINENO"; then :
1886: eval "$3=yes"
1887: else
1888: eval "$3=no"
1889: fi
1890: rm -f core conftest.err conftest.$ac_objext \
1891: conftest$ac_exeext conftest.$ac_ext
1892: fi
1893: eval ac_res=\$$3
1894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895: $as_echo "$ac_res" >&6; }
1896: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897:
1898: } # ac_fn_c_check_func
1899:
1900: # ac_fn_c_try_run LINENO
1901: # ----------------------
1902: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1903: # that executables *can* be run.
1904: ac_fn_c_try_run ()
1905: {
1906: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907: if { { ac_try="$ac_link"
1908: case "(($ac_try" in
1909: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910: *) ac_try_echo=$ac_try;;
1911: esac
1912: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913: $as_echo "$ac_try_echo"; } >&5
1914: (eval "$ac_link") 2>&5
1915: ac_status=$?
1916: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1918: { { case "(($ac_try" in
1919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920: *) ac_try_echo=$ac_try;;
1921: esac
1922: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923: $as_echo "$ac_try_echo"; } >&5
1924: (eval "$ac_try") 2>&5
1925: ac_status=$?
1926: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927: test $ac_status = 0; }; }; then :
1928: ac_retval=0
1929: else
1930: $as_echo "$as_me: program exited with status $ac_status" >&5
1931: $as_echo "$as_me: failed program was:" >&5
1932: sed 's/^/| /' conftest.$ac_ext >&5
1933:
1934: ac_retval=$ac_status
1935: fi
1936: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938: as_fn_set_status $ac_retval
1939:
1940: } # ac_fn_c_try_run
1941:
1942: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1943: # -------------------------------------------
1944: # Tests whether TYPE exists after having included INCLUDES, setting cache
1945: # variable VAR accordingly.
1946: ac_fn_c_check_type ()
1947: {
1948: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950: $as_echo_n "checking for $2... " >&6; }
1951: if eval "test \"\${$3+set}\"" = set; then :
1952: $as_echo_n "(cached) " >&6
1953: else
1954: eval "$3=no"
1955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956: /* end confdefs.h. */
1957: $4
1958: int
1959: main ()
1960: {
1961: if (sizeof ($2))
1962: return 0;
1963: ;
1964: return 0;
1965: }
1966: _ACEOF
1967: if ac_fn_c_try_compile "$LINENO"; then :
1968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969: /* end confdefs.h. */
1970: $4
1971: int
1972: main ()
1973: {
1974: if (sizeof (($2)))
1975: return 0;
1976: ;
1977: return 0;
1978: }
1979: _ACEOF
1980: if ac_fn_c_try_compile "$LINENO"; then :
1981:
1982: else
1983: eval "$3=yes"
1984: fi
1985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986: fi
1987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988: fi
1989: eval ac_res=\$$3
1990: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991: $as_echo "$ac_res" >&6; }
1992: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993:
1994: } # ac_fn_c_check_type
1995:
1996: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1997: # --------------------------------------------
1998: # Tries to find the compile-time value of EXPR in a program that includes
1999: # INCLUDES, setting VAR accordingly. Returns whether the value could be
2000: # computed
2001: ac_fn_c_compute_int ()
2002: {
2003: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004: if test "$cross_compiling" = yes; then
2005: # Depending upon the size, compute the lo and hi bounds.
2006: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007: /* end confdefs.h. */
2008: $4
2009: int
2010: main ()
2011: {
2012: static int test_array [1 - 2 * !(($2) >= 0)];
2013: test_array [0] = 0
2014:
2015: ;
2016: return 0;
2017: }
2018: _ACEOF
2019: if ac_fn_c_try_compile "$LINENO"; then :
2020: ac_lo=0 ac_mid=0
2021: while :; do
2022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023: /* end confdefs.h. */
2024: $4
2025: int
2026: main ()
2027: {
2028: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029: test_array [0] = 0
2030:
2031: ;
2032: return 0;
2033: }
2034: _ACEOF
2035: if ac_fn_c_try_compile "$LINENO"; then :
2036: ac_hi=$ac_mid; break
2037: else
2038: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2039: if test $ac_lo -le $ac_mid; then
2040: ac_lo= ac_hi=
2041: break
2042: fi
2043: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2044: fi
2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046: done
2047: else
2048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049: /* end confdefs.h. */
2050: $4
2051: int
2052: main ()
2053: {
2054: static int test_array [1 - 2 * !(($2) < 0)];
2055: test_array [0] = 0
2056:
2057: ;
2058: return 0;
2059: }
2060: _ACEOF
2061: if ac_fn_c_try_compile "$LINENO"; then :
2062: ac_hi=-1 ac_mid=-1
2063: while :; do
2064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065: /* end confdefs.h. */
2066: $4
2067: int
2068: main ()
2069: {
2070: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2071: test_array [0] = 0
2072:
2073: ;
2074: return 0;
2075: }
2076: _ACEOF
2077: if ac_fn_c_try_compile "$LINENO"; then :
2078: ac_lo=$ac_mid; break
2079: else
2080: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2081: if test $ac_mid -le $ac_hi; then
2082: ac_lo= ac_hi=
2083: break
2084: fi
2085: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2086: fi
2087: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088: done
2089: else
2090: ac_lo= ac_hi=
2091: fi
2092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093: fi
2094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095: # Binary search between lo and hi bounds.
2096: while test "x$ac_lo" != "x$ac_hi"; do
2097: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099: /* end confdefs.h. */
2100: $4
2101: int
2102: main ()
2103: {
2104: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105: test_array [0] = 0
2106:
2107: ;
2108: return 0;
2109: }
2110: _ACEOF
2111: if ac_fn_c_try_compile "$LINENO"; then :
2112: ac_hi=$ac_mid
2113: else
2114: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2115: fi
2116: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117: done
2118: case $ac_lo in #((
2119: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2120: '') ac_retval=1 ;;
2121: esac
2122: else
2123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124: /* end confdefs.h. */
2125: $4
2126: static long int longval () { return $2; }
2127: static unsigned long int ulongval () { return $2; }
2128: #include <stdio.h>
2129: #include <stdlib.h>
2130: int
2131: main ()
2132: {
2133:
2134: FILE *f = fopen ("conftest.val", "w");
2135: if (! f)
2136: return 1;
2137: if (($2) < 0)
2138: {
2139: long int i = longval ();
2140: if (i != ($2))
2141: return 1;
2142: fprintf (f, "%ld", i);
2143: }
2144: else
2145: {
2146: unsigned long int i = ulongval ();
2147: if (i != ($2))
2148: return 1;
2149: fprintf (f, "%lu", i);
2150: }
2151: /* Do not output a trailing newline, as this causes \r\n confusion
2152: on some platforms. */
2153: return ferror (f) || fclose (f) != 0;
2154:
2155: ;
2156: return 0;
2157: }
2158: _ACEOF
2159: if ac_fn_c_try_run "$LINENO"; then :
2160: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2161: else
2162: ac_retval=1
2163: fi
2164: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2165: conftest.$ac_objext conftest.beam conftest.$ac_ext
2166: rm -f conftest.val
2167:
2168: fi
2169: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170: as_fn_set_status $ac_retval
2171:
2172: } # ac_fn_c_compute_int
2173:
2174: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2175: # -------------------------------------------------------
2176: # Tests whether HEADER exists and can be compiled using the include files in
2177: # INCLUDES, setting the cache variable VAR accordingly.
2178: ac_fn_c_check_header_compile ()
2179: {
2180: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182: $as_echo_n "checking for $2... " >&6; }
2183: if eval "test \"\${$3+set}\"" = set; then :
2184: $as_echo_n "(cached) " >&6
2185: else
2186: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187: /* end confdefs.h. */
2188: $4
2189: #include <$2>
2190: _ACEOF
2191: if ac_fn_c_try_compile "$LINENO"; then :
2192: eval "$3=yes"
2193: else
2194: eval "$3=no"
2195: fi
2196: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197: fi
2198: eval ac_res=\$$3
2199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200: $as_echo "$ac_res" >&6; }
2201: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202:
2203: } # ac_fn_c_check_header_compile
2204:
2205: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2206: # -------------------------------------------------------
2207: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2208: # the include files in INCLUDES and setting the cache variable VAR
2209: # accordingly.
2210: ac_fn_c_check_header_mongrel ()
2211: {
2212: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213: if eval "test \"\${$3+set}\"" = set; then :
2214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215: $as_echo_n "checking for $2... " >&6; }
2216: if eval "test \"\${$3+set}\"" = set; then :
2217: $as_echo_n "(cached) " >&6
2218: fi
2219: eval ac_res=\$$3
2220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221: $as_echo "$ac_res" >&6; }
2222: else
2223: # Is the header compilable?
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2225: $as_echo_n "checking $2 usability... " >&6; }
2226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227: /* end confdefs.h. */
2228: $4
2229: #include <$2>
2230: _ACEOF
2231: if ac_fn_c_try_compile "$LINENO"; then :
2232: ac_header_compiler=yes
2233: else
2234: ac_header_compiler=no
2235: fi
2236: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2238: $as_echo "$ac_header_compiler" >&6; }
2239:
2240: # Is the header present?
2241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2242: $as_echo_n "checking $2 presence... " >&6; }
2243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244: /* end confdefs.h. */
2245: #include <$2>
2246: _ACEOF
2247: if ac_fn_c_try_cpp "$LINENO"; then :
2248: ac_header_preproc=yes
2249: else
2250: ac_header_preproc=no
2251: fi
2252: rm -f conftest.err conftest.i conftest.$ac_ext
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2254: $as_echo "$ac_header_preproc" >&6; }
2255:
2256: # So? What about this header?
2257: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2258: yes:no: )
2259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2260: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2262: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2263: ;;
2264: no:yes:* )
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2266: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2268: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2270: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2272: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2274: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275: ;;
2276: esac
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278: $as_echo_n "checking for $2... " >&6; }
2279: if eval "test \"\${$3+set}\"" = set; then :
2280: $as_echo_n "(cached) " >&6
2281: else
2282: eval "$3=\$ac_header_compiler"
2283: fi
2284: eval ac_res=\$$3
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286: $as_echo "$ac_res" >&6; }
2287: fi
2288: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289:
2290: } # ac_fn_c_check_header_mongrel
2291: cat >config.log <<_ACEOF
2292: This file contains any messages produced by compilers while
2293: running configure, to aid debugging if configure makes a mistake.
2294:
2295: It was created by rpl $as_me 4.1.6, which was
2296: generated by GNU Autoconf 2.67. Invocation command line was
2297:
2298: $ $0 $@
2299:
2300: _ACEOF
2301: exec 5>>config.log
2302: {
2303: cat <<_ASUNAME
2304: ## --------- ##
2305: ## Platform. ##
2306: ## --------- ##
2307:
2308: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2309: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2310: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2311: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2312: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313:
2314: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2315: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316:
2317: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2318: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2319: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2320: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2321: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2322: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2323: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324:
2325: _ASUNAME
2326:
2327: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328: for as_dir in $PATH
2329: do
2330: IFS=$as_save_IFS
2331: test -z "$as_dir" && as_dir=.
2332: $as_echo "PATH: $as_dir"
2333: done
2334: IFS=$as_save_IFS
2335:
2336: } >&5
2337:
2338: cat >&5 <<_ACEOF
2339:
2340:
2341: ## ----------- ##
2342: ## Core tests. ##
2343: ## ----------- ##
2344:
2345: _ACEOF
2346:
2347:
2348: # Keep a trace of the command line.
2349: # Strip out --no-create and --no-recursion so they do not pile up.
2350: # Strip out --silent because we don't want to record it for future runs.
2351: # Also quote any args containing shell meta-characters.
2352: # Make two passes to allow for proper duplicate-argument suppression.
2353: ac_configure_args=
2354: ac_configure_args0=
2355: ac_configure_args1=
2356: ac_must_keep_next=false
2357: for ac_pass in 1 2
2358: do
2359: for ac_arg
2360: do
2361: case $ac_arg in
2362: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2363: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2364: | -silent | --silent | --silen | --sile | --sil)
2365: continue ;;
2366: *\'*)
2367: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2368: esac
2369: case $ac_pass in
2370: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371: 2)
2372: as_fn_append ac_configure_args1 " '$ac_arg'"
2373: if test $ac_must_keep_next = true; then
2374: ac_must_keep_next=false # Got value, back to normal.
2375: else
2376: case $ac_arg in
2377: *=* | --config-cache | -C | -disable-* | --disable-* \
2378: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2379: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2380: | -with-* | --with-* | -without-* | --without-* | --x)
2381: case "$ac_configure_args0 " in
2382: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2383: esac
2384: ;;
2385: -* ) ac_must_keep_next=true ;;
2386: esac
2387: fi
2388: as_fn_append ac_configure_args " '$ac_arg'"
2389: ;;
2390: esac
2391: done
2392: done
2393: { ac_configure_args0=; unset ac_configure_args0;}
2394: { ac_configure_args1=; unset ac_configure_args1;}
2395:
2396: # When interrupted or exit'd, cleanup temporary files, and complete
2397: # config.log. We remove comments because anyway the quotes in there
2398: # would cause problems or look ugly.
2399: # WARNING: Use '\'' to represent an apostrophe within the trap.
2400: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2401: trap 'exit_status=$?
2402: # Save into config.log some information that might help in debugging.
2403: {
2404: echo
2405:
2406: $as_echo "## ---------------- ##
2407: ## Cache variables. ##
2408: ## ---------------- ##"
2409: echo
2410: # The following way of writing the cache mishandles newlines in values,
2411: (
2412: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2413: eval ac_val=\$$ac_var
2414: case $ac_val in #(
2415: *${as_nl}*)
2416: case $ac_var in #(
2417: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2418: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2419: esac
2420: case $ac_var in #(
2421: _ | IFS | as_nl) ;; #(
2422: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2423: *) { eval $ac_var=; unset $ac_var;} ;;
2424: esac ;;
2425: esac
2426: done
2427: (set) 2>&1 |
2428: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2429: *${as_nl}ac_space=\ *)
2430: sed -n \
2431: "s/'\''/'\''\\\\'\'''\''/g;
2432: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2433: ;; #(
2434: *)
2435: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436: ;;
2437: esac |
2438: sort
2439: )
2440: echo
2441:
2442: $as_echo "## ----------------- ##
2443: ## Output variables. ##
2444: ## ----------------- ##"
2445: echo
2446: for ac_var in $ac_subst_vars
2447: do
2448: eval ac_val=\$$ac_var
2449: case $ac_val in
2450: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451: esac
2452: $as_echo "$ac_var='\''$ac_val'\''"
2453: done | sort
2454: echo
2455:
2456: if test -n "$ac_subst_files"; then
2457: $as_echo "## ------------------- ##
2458: ## File substitutions. ##
2459: ## ------------------- ##"
2460: echo
2461: for ac_var in $ac_subst_files
2462: do
2463: eval ac_val=\$$ac_var
2464: case $ac_val in
2465: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466: esac
2467: $as_echo "$ac_var='\''$ac_val'\''"
2468: done | sort
2469: echo
2470: fi
2471:
2472: if test -s confdefs.h; then
2473: $as_echo "## ----------- ##
2474: ## confdefs.h. ##
2475: ## ----------- ##"
2476: echo
2477: cat confdefs.h
2478: echo
2479: fi
2480: test "$ac_signal" != 0 &&
2481: $as_echo "$as_me: caught signal $ac_signal"
2482: $as_echo "$as_me: exit $exit_status"
2483: } >&5
2484: rm -f core *.core core.conftest.* &&
2485: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486: exit $exit_status
2487: ' 0
2488: for ac_signal in 1 2 13 15; do
2489: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490: done
2491: ac_signal=0
2492:
2493: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494: rm -f -r conftest* confdefs.h
2495:
2496: $as_echo "/* confdefs.h */" > confdefs.h
2497:
2498: # Predefined preprocessor variables.
2499:
2500: cat >>confdefs.h <<_ACEOF
2501: #define PACKAGE_NAME "$PACKAGE_NAME"
2502: _ACEOF
2503:
2504: cat >>confdefs.h <<_ACEOF
2505: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506: _ACEOF
2507:
2508: cat >>confdefs.h <<_ACEOF
2509: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510: _ACEOF
2511:
2512: cat >>confdefs.h <<_ACEOF
2513: #define PACKAGE_STRING "$PACKAGE_STRING"
2514: _ACEOF
2515:
2516: cat >>confdefs.h <<_ACEOF
2517: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518: _ACEOF
2519:
2520: cat >>confdefs.h <<_ACEOF
2521: #define PACKAGE_URL "$PACKAGE_URL"
2522: _ACEOF
2523:
2524:
2525: # Let the site file select an alternate cache file if it wants to.
2526: # Prefer an explicitly selected file to automatically selected ones.
2527: ac_site_file1=NONE
2528: ac_site_file2=NONE
2529: if test -n "$CONFIG_SITE"; then
2530: # We do not want a PATH search for config.site.
2531: case $CONFIG_SITE in #((
2532: -*) ac_site_file1=./$CONFIG_SITE;;
2533: */*) ac_site_file1=$CONFIG_SITE;;
2534: *) ac_site_file1=./$CONFIG_SITE;;
2535: esac
2536: elif test "x$prefix" != xNONE; then
2537: ac_site_file1=$prefix/share/config.site
2538: ac_site_file2=$prefix/etc/config.site
2539: else
2540: ac_site_file1=$ac_default_prefix/share/config.site
2541: ac_site_file2=$ac_default_prefix/etc/config.site
2542: fi
2543: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544: do
2545: test "x$ac_site_file" = xNONE && continue
2546: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2547: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2548: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2549: sed 's/^/| /' "$ac_site_file" >&5
2550: . "$ac_site_file" \
2551: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553: as_fn_error $? "failed to load site script $ac_site_file
2554: See \`config.log' for more details" "$LINENO" 5 ; }
2555: fi
2556: done
2557:
2558: if test -r "$cache_file"; then
2559: # Some versions of bash will fail to source /dev/null (special files
2560: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2561: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2562: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2563: $as_echo "$as_me: loading cache $cache_file" >&6;}
2564: case $cache_file in
2565: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2566: *) . "./$cache_file";;
2567: esac
2568: fi
2569: else
2570: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2571: $as_echo "$as_me: creating cache $cache_file" >&6;}
2572: >$cache_file
2573: fi
2574:
2575: # Check that the precious variables saved in the cache have kept the same
2576: # value.
2577: ac_cache_corrupted=false
2578: for ac_var in $ac_precious_vars; do
2579: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580: eval ac_new_set=\$ac_env_${ac_var}_set
2581: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582: eval ac_new_val=\$ac_env_${ac_var}_value
2583: case $ac_old_set,$ac_new_set in
2584: set,)
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2587: ac_cache_corrupted=: ;;
2588: ,set)
2589: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2591: ac_cache_corrupted=: ;;
2592: ,);;
2593: *)
2594: if test "x$ac_old_val" != "x$ac_new_val"; then
2595: # differences in whitespace do not lead to failure.
2596: ac_old_val_w=`echo x $ac_old_val`
2597: ac_new_val_w=`echo x $ac_new_val`
2598: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601: ac_cache_corrupted=:
2602: else
2603: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605: eval $ac_var=\$ac_old_val
2606: fi
2607: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2608: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2609: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2610: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2611: fi;;
2612: esac
2613: # Pass precious variables to config.status.
2614: if test "$ac_new_set" = set; then
2615: case $ac_new_val in
2616: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2617: *) ac_arg=$ac_var=$ac_new_val ;;
2618: esac
2619: case " $ac_configure_args " in
2620: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2621: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2622: esac
2623: fi
2624: done
2625: if $ac_cache_corrupted; then
2626: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2630: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631: fi
2632: ## -------------------- ##
2633: ## Main body of script. ##
2634: ## -------------------- ##
2635:
2636: ac_ext=c
2637: ac_cpp='$CPP $CPPFLAGS'
2638: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641:
2642:
2643: ac_aux_dir=
2644: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2645: if test -f "$ac_dir/install-sh"; then
2646: ac_aux_dir=$ac_dir
2647: ac_install_sh="$ac_aux_dir/install-sh -c"
2648: break
2649: elif test -f "$ac_dir/install.sh"; then
2650: ac_aux_dir=$ac_dir
2651: ac_install_sh="$ac_aux_dir/install.sh -c"
2652: break
2653: elif test -f "$ac_dir/shtool"; then
2654: ac_aux_dir=$ac_dir
2655: ac_install_sh="$ac_aux_dir/shtool install -c"
2656: break
2657: fi
2658: done
2659: if test -z "$ac_aux_dir"; then
2660: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2661: fi
2662:
2663: # These three variables are undocumented and unsupported,
2664: # and are intended to be withdrawn in a future Autoconf release.
2665: # They can cause serious problems if a builder's source tree is in a directory
2666: # whose full name contains unusual characters.
2667: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2668: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2669: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2670:
2671:
2672: # Make sure we can run config.sub.
2673: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2674: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2675:
2676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2677: $as_echo_n "checking build system type... " >&6; }
2678: if test "${ac_cv_build+set}" = set; then :
2679: $as_echo_n "(cached) " >&6
2680: else
2681: ac_build_alias=$build_alias
2682: test "x$ac_build_alias" = x &&
2683: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684: test "x$ac_build_alias" = x &&
2685: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2686: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2687: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688:
2689: fi
2690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2691: $as_echo "$ac_cv_build" >&6; }
2692: case $ac_cv_build in
2693: *-*-*) ;;
2694: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2695: esac
2696: build=$ac_cv_build
2697: ac_save_IFS=$IFS; IFS='-'
2698: set x $ac_cv_build
2699: shift
2700: build_cpu=$1
2701: build_vendor=$2
2702: shift; shift
2703: # Remember, the first character of IFS is used to create $*,
2704: # except with old shells:
2705: build_os=$*
2706: IFS=$ac_save_IFS
2707: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708:
2709:
2710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2711: $as_echo_n "checking host system type... " >&6; }
2712: if test "${ac_cv_host+set}" = set; then :
2713: $as_echo_n "(cached) " >&6
2714: else
2715: if test "x$host_alias" = x; then
2716: ac_cv_host=$ac_cv_build
2717: else
2718: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2719: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2720: fi
2721:
2722: fi
2723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2724: $as_echo "$ac_cv_host" >&6; }
2725: case $ac_cv_host in
2726: *-*-*) ;;
2727: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2728: esac
2729: host=$ac_cv_host
2730: ac_save_IFS=$IFS; IFS='-'
2731: set x $ac_cv_host
2732: shift
2733: host_cpu=$1
2734: host_vendor=$2
2735: shift; shift
2736: # Remember, the first character of IFS is used to create $*,
2737: # except with old shells:
2738: host_os=$*
2739: IFS=$ac_save_IFS
2740: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2741:
2742:
2743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2744: $as_echo_n "checking target system type... " >&6; }
2745: if test "${ac_cv_target+set}" = set; then :
2746: $as_echo_n "(cached) " >&6
2747: else
2748: if test "x$target_alias" = x; then
2749: ac_cv_target=$ac_cv_host
2750: else
2751: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2752: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2753: fi
2754:
2755: fi
2756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2757: $as_echo "$ac_cv_target" >&6; }
2758: case $ac_cv_target in
2759: *-*-*) ;;
2760: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2761: esac
2762: target=$ac_cv_target
2763: ac_save_IFS=$IFS; IFS='-'
2764: set x $ac_cv_target
2765: shift
2766: target_cpu=$1
2767: target_vendor=$2
2768: shift; shift
2769: # Remember, the first character of IFS is used to create $*,
2770: # except with old shells:
2771: target_os=$*
2772: IFS=$ac_save_IFS
2773: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2774:
2775:
2776: # The aliases save the names the user supplied, while $host etc.
2777: # will get canonicalized.
2778: test -n "$target_alias" &&
2779: test "$program_prefix$program_suffix$program_transform_name" = \
2780: NONENONEs,x,x, &&
2781: program_prefix=${target_alias}-
2782:
2783: am__api_version='1.11'
2784:
2785: # Find a good install program. We prefer a C program (faster),
2786: # so one script is as good as another. But avoid the broken or
2787: # incompatible versions:
2788: # SysV /etc/install, /usr/sbin/install
2789: # SunOS /usr/etc/install
2790: # IRIX /sbin/install
2791: # AIX /bin/install
2792: # AmigaOS /C/install, which installs bootblocks on floppy discs
2793: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2794: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2795: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2796: # OS/2's system install, which has a completely different semantic
2797: # ./install, which can be erroneously created by make from ./install.sh.
2798: # Reject install programs that cannot install multiple files.
2799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2800: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2801: if test -z "$INSTALL"; then
2802: if test "${ac_cv_path_install+set}" = set; then :
2803: $as_echo_n "(cached) " >&6
2804: else
2805: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806: for as_dir in $PATH
2807: do
2808: IFS=$as_save_IFS
2809: test -z "$as_dir" && as_dir=.
2810: # Account for people who put trailing slashes in PATH elements.
2811: case $as_dir/ in #((
2812: ./ | .// | /[cC]/* | \
2813: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2814: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2815: /usr/ucb/* ) ;;
2816: *)
2817: # OSF1 and SCO ODT 3.0 have their own names for install.
2818: # Don't use installbsd from OSF since it installs stuff as root
2819: # by default.
2820: for ac_prog in ginstall scoinst install; do
2821: for ac_exec_ext in '' $ac_executable_extensions; do
2822: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2823: if test $ac_prog = install &&
2824: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2825: # AIX install. It has an incompatible calling convention.
2826: :
2827: elif test $ac_prog = install &&
2828: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2829: # program-specific install script used by HP pwplus--don't use.
2830: :
2831: else
2832: rm -rf conftest.one conftest.two conftest.dir
2833: echo one > conftest.one
2834: echo two > conftest.two
2835: mkdir conftest.dir
2836: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2837: test -s conftest.one && test -s conftest.two &&
2838: test -s conftest.dir/conftest.one &&
2839: test -s conftest.dir/conftest.two
2840: then
2841: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2842: break 3
2843: fi
2844: fi
2845: fi
2846: done
2847: done
2848: ;;
2849: esac
2850:
2851: done
2852: IFS=$as_save_IFS
2853:
2854: rm -rf conftest.one conftest.two conftest.dir
2855:
2856: fi
2857: if test "${ac_cv_path_install+set}" = set; then
2858: INSTALL=$ac_cv_path_install
2859: else
2860: # As a last resort, use the slow shell script. Don't cache a
2861: # value for INSTALL within a source directory, because that will
2862: # break other packages using the cache if that directory is
2863: # removed, or if the value is a relative name.
2864: INSTALL=$ac_install_sh
2865: fi
2866: fi
2867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2868: $as_echo "$INSTALL" >&6; }
2869:
2870: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2871: # It thinks the first close brace ends the variable substitution.
2872: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2873:
2874: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2875:
2876: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2877:
2878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2879: $as_echo_n "checking whether build environment is sane... " >&6; }
2880: # Just in case
2881: sleep 1
2882: echo timestamp > conftest.file
2883: # Reject unsafe characters in $srcdir or the absolute working directory
2884: # name. Accept space and tab only in the latter.
2885: am_lf='
2886: '
2887: case `pwd` in
2888: *[\\\"\#\$\&\'\`$am_lf]*)
2889: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2890: esac
2891: case $srcdir in
2892: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2893: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2894: esac
2895:
2896: # Do `set' in a subshell so we don't clobber the current shell's
2897: # arguments. Must try -L first in case configure is actually a
2898: # symlink; some systems play weird games with the mod time of symlinks
2899: # (eg FreeBSD returns the mod time of the symlink's containing
2900: # directory).
2901: if (
2902: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2903: if test "$*" = "X"; then
2904: # -L didn't work.
2905: set X `ls -t "$srcdir/configure" conftest.file`
2906: fi
2907: rm -f conftest.file
2908: if test "$*" != "X $srcdir/configure conftest.file" \
2909: && test "$*" != "X conftest.file $srcdir/configure"; then
2910:
2911: # If neither matched, then we have a broken ls. This can happen
2912: # if, for instance, CONFIG_SHELL is bash and it inherits a
2913: # broken ls alias from the environment. This has actually
2914: # happened. Such a system could not be considered "sane".
2915: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2916: alias in your environment" "$LINENO" 5
2917: fi
2918:
2919: test "$2" = conftest.file
2920: )
2921: then
2922: # Ok.
2923: :
2924: else
2925: as_fn_error $? "newly created file is older than distributed files!
2926: Check your system clock" "$LINENO" 5
2927: fi
2928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2929: $as_echo "yes" >&6; }
2930: test "$program_prefix" != NONE &&
2931: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2932: # Use a double $ so make ignores it.
2933: test "$program_suffix" != NONE &&
2934: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2935: # Double any \ or $.
2936: # By default was `s,x,x', remove it if useless.
2937: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2938: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2939:
2940: # expand $ac_aux_dir to an absolute path
2941: am_aux_dir=`cd $ac_aux_dir && pwd`
2942:
2943: if test x"${MISSING+set}" != xset; then
2944: case $am_aux_dir in
2945: *\ * | *\ *)
2946: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2947: *)
2948: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2949: esac
2950: fi
2951: # Use eval to expand $SHELL
2952: if eval "$MISSING --run true"; then
2953: am_missing_run="$MISSING --run "
2954: else
2955: am_missing_run=
2956: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2957: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2958: fi
2959:
2960: if test x"${install_sh}" != xset; then
2961: case $am_aux_dir in
2962: *\ * | *\ *)
2963: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2964: *)
2965: install_sh="\${SHELL} $am_aux_dir/install-sh"
2966: esac
2967: fi
2968:
2969: # Installed binaries are usually stripped using `strip' when the user
2970: # run `make install-strip'. However `strip' might not be the right
2971: # tool to use in cross-compilation environments, therefore Automake
2972: # will honor the `STRIP' environment variable to overrule this program.
2973: if test "$cross_compiling" != no; then
2974: if test -n "$ac_tool_prefix"; then
2975: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2976: set dummy ${ac_tool_prefix}strip; ac_word=$2
2977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978: $as_echo_n "checking for $ac_word... " >&6; }
2979: if test "${ac_cv_prog_STRIP+set}" = set; then :
2980: $as_echo_n "(cached) " >&6
2981: else
2982: if test -n "$STRIP"; then
2983: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2984: else
2985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986: for as_dir in $PATH
2987: do
2988: IFS=$as_save_IFS
2989: test -z "$as_dir" && as_dir=.
2990: for ac_exec_ext in '' $ac_executable_extensions; do
2991: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2993: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994: break 2
2995: fi
2996: done
2997: done
2998: IFS=$as_save_IFS
2999:
3000: fi
3001: fi
3002: STRIP=$ac_cv_prog_STRIP
3003: if test -n "$STRIP"; then
3004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3005: $as_echo "$STRIP" >&6; }
3006: else
3007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008: $as_echo "no" >&6; }
3009: fi
3010:
3011:
3012: fi
3013: if test -z "$ac_cv_prog_STRIP"; then
3014: ac_ct_STRIP=$STRIP
3015: # Extract the first word of "strip", so it can be a program name with args.
3016: set dummy strip; ac_word=$2
3017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018: $as_echo_n "checking for $ac_word... " >&6; }
3019: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3020: $as_echo_n "(cached) " >&6
3021: else
3022: if test -n "$ac_ct_STRIP"; then
3023: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3024: else
3025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026: for as_dir in $PATH
3027: do
3028: IFS=$as_save_IFS
3029: test -z "$as_dir" && as_dir=.
3030: for ac_exec_ext in '' $ac_executable_extensions; do
3031: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032: ac_cv_prog_ac_ct_STRIP="strip"
3033: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034: break 2
3035: fi
3036: done
3037: done
3038: IFS=$as_save_IFS
3039:
3040: fi
3041: fi
3042: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3043: if test -n "$ac_ct_STRIP"; then
3044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3045: $as_echo "$ac_ct_STRIP" >&6; }
3046: else
3047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048: $as_echo "no" >&6; }
3049: fi
3050:
3051: if test "x$ac_ct_STRIP" = x; then
3052: STRIP=":"
3053: else
3054: case $cross_compiling:$ac_tool_warned in
3055: yes:)
3056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058: ac_tool_warned=yes ;;
3059: esac
3060: STRIP=$ac_ct_STRIP
3061: fi
3062: else
3063: STRIP="$ac_cv_prog_STRIP"
3064: fi
3065:
3066: fi
3067: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3068:
3069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3070: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3071: if test -z "$MKDIR_P"; then
3072: if test "${ac_cv_path_mkdir+set}" = set; then :
3073: $as_echo_n "(cached) " >&6
3074: else
3075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3077: do
3078: IFS=$as_save_IFS
3079: test -z "$as_dir" && as_dir=.
3080: for ac_prog in mkdir gmkdir; do
3081: for ac_exec_ext in '' $ac_executable_extensions; do
3082: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3083: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3084: 'mkdir (GNU coreutils) '* | \
3085: 'mkdir (coreutils) '* | \
3086: 'mkdir (fileutils) '4.1*)
3087: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3088: break 3;;
3089: esac
3090: done
3091: done
3092: done
3093: IFS=$as_save_IFS
3094:
3095: fi
3096:
3097: test -d ./--version && rmdir ./--version
3098: if test "${ac_cv_path_mkdir+set}" = set; then
3099: MKDIR_P="$ac_cv_path_mkdir -p"
3100: else
3101: # As a last resort, use the slow shell script. Don't cache a
3102: # value for MKDIR_P within a source directory, because that will
3103: # break other packages using the cache if that directory is
3104: # removed, or if the value is a relative name.
3105: MKDIR_P="$ac_install_sh -d"
3106: fi
3107: fi
3108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3109: $as_echo "$MKDIR_P" >&6; }
3110:
3111: mkdir_p="$MKDIR_P"
3112: case $mkdir_p in
3113: [\\/$]* | ?:[\\/]*) ;;
3114: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3115: esac
3116:
3117: for ac_prog in gawk mawk nawk awk
3118: do
3119: # Extract the first word of "$ac_prog", so it can be a program name with args.
3120: set dummy $ac_prog; ac_word=$2
3121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122: $as_echo_n "checking for $ac_word... " >&6; }
3123: if test "${ac_cv_prog_AWK+set}" = set; then :
3124: $as_echo_n "(cached) " >&6
3125: else
3126: if test -n "$AWK"; then
3127: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3128: else
3129: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130: for as_dir in $PATH
3131: do
3132: IFS=$as_save_IFS
3133: test -z "$as_dir" && as_dir=.
3134: for ac_exec_ext in '' $ac_executable_extensions; do
3135: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136: ac_cv_prog_AWK="$ac_prog"
3137: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138: break 2
3139: fi
3140: done
3141: done
3142: IFS=$as_save_IFS
3143:
3144: fi
3145: fi
3146: AWK=$ac_cv_prog_AWK
3147: if test -n "$AWK"; then
3148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3149: $as_echo "$AWK" >&6; }
3150: else
3151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152: $as_echo "no" >&6; }
3153: fi
3154:
3155:
3156: test -n "$AWK" && break
3157: done
3158:
3159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3160: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3161: set x ${MAKE-make}
3162: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3163: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3164: $as_echo_n "(cached) " >&6
3165: else
3166: cat >conftest.make <<\_ACEOF
3167: SHELL = /bin/sh
3168: all:
3169: @echo '@@@%%%=$(MAKE)=@@@%%%'
3170: _ACEOF
3171: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3172: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3173: *@@@%%%=?*=@@@%%%*)
3174: eval ac_cv_prog_make_${ac_make}_set=yes;;
3175: *)
3176: eval ac_cv_prog_make_${ac_make}_set=no;;
3177: esac
3178: rm -f conftest.make
3179: fi
3180: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182: $as_echo "yes" >&6; }
3183: SET_MAKE=
3184: else
3185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186: $as_echo "no" >&6; }
3187: SET_MAKE="MAKE=${MAKE-make}"
3188: fi
3189:
3190: rm -rf .tst 2>/dev/null
3191: mkdir .tst 2>/dev/null
3192: if test -d .tst; then
3193: am__leading_dot=.
3194: else
3195: am__leading_dot=_
3196: fi
3197: rmdir .tst 2>/dev/null
3198:
3199: # Check whether --enable-silent-rules was given.
3200: if test "${enable_silent_rules+set}" = set; then :
3201: enableval=$enable_silent_rules;
3202: fi
3203:
3204: case $enable_silent_rules in
3205: yes) AM_DEFAULT_VERBOSITY=0;;
3206: no) AM_DEFAULT_VERBOSITY=1;;
3207: *) AM_DEFAULT_VERBOSITY=1;;
3208: esac
3209: AM_BACKSLASH='\'
3210:
3211: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3212: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3213: # is not polluted with repeated "-I."
3214: am__isrc=' -I$(srcdir)'
3215: # test to see if srcdir already configured
3216: if test -f $srcdir/config.status; then
3217: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3218: fi
3219: fi
3220:
3221: # test whether we have cygpath
3222: if test -z "$CYGPATH_W"; then
3223: if (cygpath --version) >/dev/null 2>/dev/null; then
3224: CYGPATH_W='cygpath -w'
3225: else
3226: CYGPATH_W=echo
3227: fi
3228: fi
3229:
3230:
3231: # Define the identity of the package.
3232: PACKAGE='rpl'
3233: VERSION='4.1.6'
3234:
3235:
3236: cat >>confdefs.h <<_ACEOF
3237: #define PACKAGE "$PACKAGE"
3238: _ACEOF
3239:
3240:
3241: cat >>confdefs.h <<_ACEOF
3242: #define VERSION "$VERSION"
3243: _ACEOF
3244:
3245: # Some tools Automake needs.
3246:
3247: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3248:
3249:
3250: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3251:
3252:
3253: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3254:
3255:
3256: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3257:
3258:
3259: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3260:
3261: # We need awk for the "check" target. The system "awk" is bad on
3262: # some platforms.
3263: # Always define AMTAR for backward compatibility.
3264:
3265: AMTAR=${AMTAR-"${am_missing_run}tar"}
3266:
3267: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3268:
3269:
3270:
3271:
3272:
3273: # Check whether --enable-silent-rules was given.
3274: if test "${enable_silent_rules+set}" = set; then :
3275: enableval=$enable_silent_rules;
3276: fi
3277:
3278: case $enable_silent_rules in
3279: yes) AM_DEFAULT_VERBOSITY=0;;
3280: no) AM_DEFAULT_VERBOSITY=1;;
3281: *) AM_DEFAULT_VERBOSITY=0;;
3282: esac
3283: AM_BACKSLASH='\'
3284:
3285:
3286: ac_config_headers="$ac_config_headers rplconfig.h"
3287:
3288:
3289: NCURSES=ncurses-5.9
3290: READLINE=readline-6.2
3291: UNITS=units-1.88
3292: GSL=gsl-1.15
3293: GPP=gpp-3.0
3294: GNUPLOT=gnuplot-4.4.3
3295: FILE=file-5.03
3296: ICONV=libiconv-1.13.1
3297: SQLITE=sqlite-3.7.10
3298: OPENSSL=openssl-1.0.0f
3299: OPENMOTIF=openmotif-2.3.3
3300: LIBXPM=libXpm-3.5.9
3301: SIGSEGV=libsigsegv-2.6
3302:
3303: GMP=gmp-5.0.2
3304: MPFR=mpfr-3.0.1
3305: NTL=ntl-5.5.2
3306: COCOA=CoCoALib-0.9943
3307: PARI=pari-2.5.0
3308: GIAC=giac-0.9.5
3309:
3310: ac_ext=c
3311: ac_cpp='$CPP $CPPFLAGS'
3312: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315: if test -n "$ac_tool_prefix"; then
3316: for ac_prog in gcc
3317: do
3318: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321: $as_echo_n "checking for $ac_word... " >&6; }
3322: if test "${ac_cv_prog_CC+set}" = set; then :
3323: $as_echo_n "(cached) " >&6
3324: else
3325: if test -n "$CC"; then
3326: ac_cv_prog_CC="$CC" # Let the user override the test.
3327: else
3328: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329: for as_dir in $PATH
3330: do
3331: IFS=$as_save_IFS
3332: test -z "$as_dir" && as_dir=.
3333: for ac_exec_ext in '' $ac_executable_extensions; do
3334: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3336: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337: break 2
3338: fi
3339: done
3340: done
3341: IFS=$as_save_IFS
3342:
3343: fi
3344: fi
3345: CC=$ac_cv_prog_CC
3346: if test -n "$CC"; then
3347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348: $as_echo "$CC" >&6; }
3349: else
3350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351: $as_echo "no" >&6; }
3352: fi
3353:
3354:
3355: test -n "$CC" && break
3356: done
3357: fi
3358: if test -z "$CC"; then
3359: ac_ct_CC=$CC
3360: for ac_prog in gcc
3361: do
3362: # Extract the first word of "$ac_prog", so it can be a program name with args.
3363: set dummy $ac_prog; ac_word=$2
3364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365: $as_echo_n "checking for $ac_word... " >&6; }
3366: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3367: $as_echo_n "(cached) " >&6
3368: else
3369: if test -n "$ac_ct_CC"; then
3370: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371: else
3372: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373: for as_dir in $PATH
3374: do
3375: IFS=$as_save_IFS
3376: test -z "$as_dir" && as_dir=.
3377: for ac_exec_ext in '' $ac_executable_extensions; do
3378: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379: ac_cv_prog_ac_ct_CC="$ac_prog"
3380: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381: break 2
3382: fi
3383: done
3384: done
3385: IFS=$as_save_IFS
3386:
3387: fi
3388: fi
3389: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390: if test -n "$ac_ct_CC"; then
3391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392: $as_echo "$ac_ct_CC" >&6; }
3393: else
3394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395: $as_echo "no" >&6; }
3396: fi
3397:
3398:
3399: test -n "$ac_ct_CC" && break
3400: done
3401:
3402: if test "x$ac_ct_CC" = x; then
3403: CC=""
3404: else
3405: case $cross_compiling:$ac_tool_warned in
3406: yes:)
3407: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409: ac_tool_warned=yes ;;
3410: esac
3411: CC=$ac_ct_CC
3412: fi
3413: fi
3414:
3415:
3416: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418: as_fn_error $? "no acceptable C compiler found in \$PATH
3419: See \`config.log' for more details" "$LINENO" 5 ; }
3420:
3421: # Provide some information about the compiler.
3422: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3423: set X $ac_compile
3424: ac_compiler=$2
3425: for ac_option in --version -v -V -qversion; do
3426: { { ac_try="$ac_compiler $ac_option >&5"
3427: case "(($ac_try" in
3428: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429: *) ac_try_echo=$ac_try;;
3430: esac
3431: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432: $as_echo "$ac_try_echo"; } >&5
3433: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434: ac_status=$?
3435: if test -s conftest.err; then
3436: sed '10a\
3437: ... rest of stderr output deleted ...
3438: 10q' conftest.err >conftest.er1
3439: cat conftest.er1 >&5
3440: fi
3441: rm -f conftest.er1 conftest.err
3442: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443: test $ac_status = 0; }
3444: done
3445:
3446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447: /* end confdefs.h. */
3448:
3449: int
3450: main ()
3451: {
3452:
3453: ;
3454: return 0;
3455: }
3456: _ACEOF
3457: ac_clean_files_save=$ac_clean_files
3458: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459: # Try to create an executable without -o first, disregard a.out.
3460: # It will help us diagnose broken compilers, and finding out an intuition
3461: # of exeext.
3462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3463: $as_echo_n "checking whether the C compiler works... " >&6; }
3464: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465:
3466: # The possible output files:
3467: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468:
3469: ac_rmfiles=
3470: for ac_file in $ac_files
3471: do
3472: case $ac_file in
3473: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475: esac
3476: done
3477: rm -f $ac_rmfiles
3478:
3479: if { { ac_try="$ac_link_default"
3480: case "(($ac_try" in
3481: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482: *) ac_try_echo=$ac_try;;
3483: esac
3484: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485: $as_echo "$ac_try_echo"; } >&5
3486: (eval "$ac_link_default") 2>&5
3487: ac_status=$?
3488: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489: test $ac_status = 0; }; then :
3490: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3493: # so that the user can short-circuit this test for compilers unknown to
3494: # Autoconf.
3495: for ac_file in $ac_files ''
3496: do
3497: test -f "$ac_file" || continue
3498: case $ac_file in
3499: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3500: ;;
3501: [ab].out )
3502: # We found the default executable, but exeext='' is most
3503: # certainly right.
3504: break;;
3505: *.* )
3506: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507: then :; else
3508: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509: fi
3510: # We set ac_cv_exeext here because the later test for it is not
3511: # safe: cross compilers may not add the suffix if given an `-o'
3512: # argument, so we may need to know it at that point already.
3513: # Even if this section looks crufty: it has the advantage of
3514: # actually working.
3515: break;;
3516: * )
3517: break;;
3518: esac
3519: done
3520: test "$ac_cv_exeext" = no && ac_cv_exeext=
3521:
3522: else
3523: ac_file=''
3524: fi
3525: if test -z "$ac_file"; then :
3526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527: $as_echo "no" >&6; }
3528: $as_echo "$as_me: failed program was:" >&5
3529: sed 's/^/| /' conftest.$ac_ext >&5
3530:
3531: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533: as_fn_error 77 "C compiler cannot create executables
3534: See \`config.log' for more details" "$LINENO" 5 ; }
3535: else
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3537: $as_echo "yes" >&6; }
3538: fi
3539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3540: $as_echo_n "checking for C compiler default output file name... " >&6; }
3541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3542: $as_echo "$ac_file" >&6; }
3543: ac_exeext=$ac_cv_exeext
3544:
3545: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3546: ac_clean_files=$ac_clean_files_save
3547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3548: $as_echo_n "checking for suffix of executables... " >&6; }
3549: if { { ac_try="$ac_link"
3550: case "(($ac_try" in
3551: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552: *) ac_try_echo=$ac_try;;
3553: esac
3554: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555: $as_echo "$ac_try_echo"; } >&5
3556: (eval "$ac_link") 2>&5
3557: ac_status=$?
3558: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559: test $ac_status = 0; }; then :
3560: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3561: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3562: # work properly (i.e., refer to `conftest.exe'), while it won't with
3563: # `rm'.
3564: for ac_file in conftest.exe conftest conftest.*; do
3565: test -f "$ac_file" || continue
3566: case $ac_file in
3567: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3568: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569: break;;
3570: * ) break;;
3571: esac
3572: done
3573: else
3574: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3577: See \`config.log' for more details" "$LINENO" 5 ; }
3578: fi
3579: rm -f conftest conftest$ac_cv_exeext
3580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3581: $as_echo "$ac_cv_exeext" >&6; }
3582:
3583: rm -f conftest.$ac_ext
3584: EXEEXT=$ac_cv_exeext
3585: ac_exeext=$EXEEXT
3586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587: /* end confdefs.h. */
3588: #include <stdio.h>
3589: int
3590: main ()
3591: {
3592: FILE *f = fopen ("conftest.out", "w");
3593: return ferror (f) || fclose (f) != 0;
3594:
3595: ;
3596: return 0;
3597: }
3598: _ACEOF
3599: ac_clean_files="$ac_clean_files conftest.out"
3600: # Check that the compiler produces executables we can run. If not, either
3601: # the compiler is broken, or we cross compile.
3602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603: $as_echo_n "checking whether we are cross compiling... " >&6; }
3604: if test "$cross_compiling" != yes; then
3605: { { ac_try="$ac_link"
3606: case "(($ac_try" in
3607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608: *) ac_try_echo=$ac_try;;
3609: esac
3610: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611: $as_echo "$ac_try_echo"; } >&5
3612: (eval "$ac_link") 2>&5
3613: ac_status=$?
3614: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615: test $ac_status = 0; }
3616: if { ac_try='./conftest$ac_cv_exeext'
3617: { { case "(($ac_try" in
3618: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619: *) ac_try_echo=$ac_try;;
3620: esac
3621: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622: $as_echo "$ac_try_echo"; } >&5
3623: (eval "$ac_try") 2>&5
3624: ac_status=$?
3625: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626: test $ac_status = 0; }; }; then
3627: cross_compiling=no
3628: else
3629: if test "$cross_compiling" = maybe; then
3630: cross_compiling=yes
3631: else
3632: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634: as_fn_error $? "cannot run C compiled programs.
3635: If you meant to cross compile, use \`--host'.
3636: See \`config.log' for more details" "$LINENO" 5 ; }
3637: fi
3638: fi
3639: fi
3640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3641: $as_echo "$cross_compiling" >&6; }
3642:
3643: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3644: ac_clean_files=$ac_clean_files_save
3645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3646: $as_echo_n "checking for suffix of object files... " >&6; }
3647: if test "${ac_cv_objext+set}" = set; then :
3648: $as_echo_n "(cached) " >&6
3649: else
3650: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651: /* end confdefs.h. */
3652:
3653: int
3654: main ()
3655: {
3656:
3657: ;
3658: return 0;
3659: }
3660: _ACEOF
3661: rm -f conftest.o conftest.obj
3662: if { { ac_try="$ac_compile"
3663: case "(($ac_try" in
3664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665: *) ac_try_echo=$ac_try;;
3666: esac
3667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668: $as_echo "$ac_try_echo"; } >&5
3669: (eval "$ac_compile") 2>&5
3670: ac_status=$?
3671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672: test $ac_status = 0; }; then :
3673: for ac_file in conftest.o conftest.obj conftest.*; do
3674: test -f "$ac_file" || continue;
3675: case $ac_file in
3676: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678: break;;
3679: esac
3680: done
3681: else
3682: $as_echo "$as_me: failed program was:" >&5
3683: sed 's/^/| /' conftest.$ac_ext >&5
3684:
3685: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687: as_fn_error $? "cannot compute suffix of object files: cannot compile
3688: See \`config.log' for more details" "$LINENO" 5 ; }
3689: fi
3690: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691: fi
3692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3693: $as_echo "$ac_cv_objext" >&6; }
3694: OBJEXT=$ac_cv_objext
3695: ac_objext=$OBJEXT
3696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3697: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3698: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3699: $as_echo_n "(cached) " >&6
3700: else
3701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702: /* end confdefs.h. */
3703:
3704: int
3705: main ()
3706: {
3707: #ifndef __GNUC__
3708: choke me
3709: #endif
3710:
3711: ;
3712: return 0;
3713: }
3714: _ACEOF
3715: if ac_fn_c_try_compile "$LINENO"; then :
3716: ac_compiler_gnu=yes
3717: else
3718: ac_compiler_gnu=no
3719: fi
3720: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3722:
3723: fi
3724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3725: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3726: if test $ac_compiler_gnu = yes; then
3727: GCC=yes
3728: else
3729: GCC=
3730: fi
3731: ac_test_CFLAGS=${CFLAGS+set}
3732: ac_save_CFLAGS=$CFLAGS
3733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3734: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3735: if test "${ac_cv_prog_cc_g+set}" = set; then :
3736: $as_echo_n "(cached) " >&6
3737: else
3738: ac_save_c_werror_flag=$ac_c_werror_flag
3739: ac_c_werror_flag=yes
3740: ac_cv_prog_cc_g=no
3741: CFLAGS="-g"
3742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743: /* end confdefs.h. */
3744:
3745: int
3746: main ()
3747: {
3748:
3749: ;
3750: return 0;
3751: }
3752: _ACEOF
3753: if ac_fn_c_try_compile "$LINENO"; then :
3754: ac_cv_prog_cc_g=yes
3755: else
3756: CFLAGS=""
3757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758: /* end confdefs.h. */
3759:
3760: int
3761: main ()
3762: {
3763:
3764: ;
3765: return 0;
3766: }
3767: _ACEOF
3768: if ac_fn_c_try_compile "$LINENO"; then :
3769:
3770: else
3771: ac_c_werror_flag=$ac_save_c_werror_flag
3772: CFLAGS="-g"
3773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774: /* end confdefs.h. */
3775:
3776: int
3777: main ()
3778: {
3779:
3780: ;
3781: return 0;
3782: }
3783: _ACEOF
3784: if ac_fn_c_try_compile "$LINENO"; then :
3785: ac_cv_prog_cc_g=yes
3786: fi
3787: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788: fi
3789: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790: fi
3791: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792: ac_c_werror_flag=$ac_save_c_werror_flag
3793: fi
3794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3795: $as_echo "$ac_cv_prog_cc_g" >&6; }
3796: if test "$ac_test_CFLAGS" = set; then
3797: CFLAGS=$ac_save_CFLAGS
3798: elif test $ac_cv_prog_cc_g = yes; then
3799: if test "$GCC" = yes; then
3800: CFLAGS="-g -O2"
3801: else
3802: CFLAGS="-g"
3803: fi
3804: else
3805: if test "$GCC" = yes; then
3806: CFLAGS="-O2"
3807: else
3808: CFLAGS=
3809: fi
3810: fi
3811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3812: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3813: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3814: $as_echo_n "(cached) " >&6
3815: else
3816: ac_cv_prog_cc_c89=no
3817: ac_save_CC=$CC
3818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819: /* end confdefs.h. */
3820: #include <stdarg.h>
3821: #include <stdio.h>
3822: #include <sys/types.h>
3823: #include <sys/stat.h>
3824: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3825: struct buf { int x; };
3826: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827: static char *e (p, i)
3828: char **p;
3829: int i;
3830: {
3831: return p[i];
3832: }
3833: static char *f (char * (*g) (char **, int), char **p, ...)
3834: {
3835: char *s;
3836: va_list v;
3837: va_start (v,p);
3838: s = g (p, va_arg (v,int));
3839: va_end (v);
3840: return s;
3841: }
3842:
3843: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3844: function prototypes and stuff, but not '\xHH' hex character constants.
3845: These don't provoke an error unfortunately, instead are silently treated
3846: as 'x'. The following induces an error, until -std is added to get
3847: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3848: array size at least. It's necessary to write '\x00'==0 to get something
3849: that's true only with -std. */
3850: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851:
3852: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853: inside strings and character constants. */
3854: #define FOO(x) 'x'
3855: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856:
3857: int test (int i, double x);
3858: struct s1 {int (*f) (int a);};
3859: struct s2 {int (*f) (double a);};
3860: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861: int argc;
3862: char **argv;
3863: int
3864: main ()
3865: {
3866: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3867: ;
3868: return 0;
3869: }
3870: _ACEOF
3871: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873: do
3874: CC="$ac_save_CC $ac_arg"
3875: if ac_fn_c_try_compile "$LINENO"; then :
3876: ac_cv_prog_cc_c89=$ac_arg
3877: fi
3878: rm -f core conftest.err conftest.$ac_objext
3879: test "x$ac_cv_prog_cc_c89" != "xno" && break
3880: done
3881: rm -f conftest.$ac_ext
3882: CC=$ac_save_CC
3883:
3884: fi
3885: # AC_CACHE_VAL
3886: case "x$ac_cv_prog_cc_c89" in
3887: x)
3888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3889: $as_echo "none needed" >&6; } ;;
3890: xno)
3891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3892: $as_echo "unsupported" >&6; } ;;
3893: *)
3894: CC="$CC $ac_cv_prog_cc_c89"
3895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3896: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3897: esac
3898: if test "x$ac_cv_prog_cc_c89" != xno; then :
3899:
3900: fi
3901:
3902: ac_ext=c
3903: ac_cpp='$CPP $CPPFLAGS'
3904: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907: DEPDIR="${am__leading_dot}deps"
3908:
3909: ac_config_commands="$ac_config_commands depfiles"
3910:
3911:
3912: am_make=${MAKE-make}
3913: cat > confinc << 'END'
3914: am__doit:
3915: @echo this is the am__doit target
3916: .PHONY: am__doit
3917: END
3918: # If we don't find an include directive, just comment out the code.
3919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3920: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3921: am__include="#"
3922: am__quote=
3923: _am_result=none
3924: # First try GNU make style include.
3925: echo "include confinc" > confmf
3926: # Ignore all kinds of additional output from `make'.
3927: case `$am_make -s -f confmf 2> /dev/null` in #(
3928: *the\ am__doit\ target*)
3929: am__include=include
3930: am__quote=
3931: _am_result=GNU
3932: ;;
3933: esac
3934: # Now try BSD make style include.
3935: if test "$am__include" = "#"; then
3936: echo '.include "confinc"' > confmf
3937: case `$am_make -s -f confmf 2> /dev/null` in #(
3938: *the\ am__doit\ target*)
3939: am__include=.include
3940: am__quote="\""
3941: _am_result=BSD
3942: ;;
3943: esac
3944: fi
3945:
3946:
3947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3948: $as_echo "$_am_result" >&6; }
3949: rm -f confinc confmf
3950:
3951: # Check whether --enable-dependency-tracking was given.
3952: if test "${enable_dependency_tracking+set}" = set; then :
3953: enableval=$enable_dependency_tracking;
3954: fi
3955:
3956: if test "x$enable_dependency_tracking" != xno; then
3957: am_depcomp="$ac_aux_dir/depcomp"
3958: AMDEPBACKSLASH='\'
3959: fi
3960: if test "x$enable_dependency_tracking" != xno; then
3961: AMDEP_TRUE=
3962: AMDEP_FALSE='#'
3963: else
3964: AMDEP_TRUE='#'
3965: AMDEP_FALSE=
3966: fi
3967:
3968:
3969:
3970: depcc="$CC" am_compiler_list=
3971:
3972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3973: $as_echo_n "checking dependency style of $depcc... " >&6; }
3974: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3975: $as_echo_n "(cached) " >&6
3976: else
3977: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3978: # We make a subdir and do the tests there. Otherwise we can end up
3979: # making bogus files that we don't know about and never remove. For
3980: # instance it was reported that on HP-UX the gcc test will end up
3981: # making a dummy file named `D' -- because `-MD' means `put the output
3982: # in D'.
3983: mkdir conftest.dir
3984: # Copy depcomp to subdir because otherwise we won't find it if we're
3985: # using a relative directory.
3986: cp "$am_depcomp" conftest.dir
3987: cd conftest.dir
3988: # We will build objects and dependencies in a subdirectory because
3989: # it helps to detect inapplicable dependency modes. For instance
3990: # both Tru64's cc and ICC support -MD to output dependencies as a
3991: # side effect of compilation, but ICC will put the dependencies in
3992: # the current directory while Tru64 will put them in the object
3993: # directory.
3994: mkdir sub
3995:
3996: am_cv_CC_dependencies_compiler_type=none
3997: if test "$am_compiler_list" = ""; then
3998: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3999: fi
4000: am__universal=false
4001: case " $depcc " in #(
4002: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4003: esac
4004:
4005: for depmode in $am_compiler_list; do
4006: # Setup a source with many dependencies, because some compilers
4007: # like to wrap large dependency lists on column 80 (with \), and
4008: # we should not choose a depcomp mode which is confused by this.
4009: #
4010: # We need to recreate these files for each test, as the compiler may
4011: # overwrite some of them when testing with obscure command lines.
4012: # This happens at least with the AIX C compiler.
4013: : > sub/conftest.c
4014: for i in 1 2 3 4 5 6; do
4015: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4016: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4017: # Solaris 8's {/usr,}/bin/sh.
4018: touch sub/conftst$i.h
4019: done
4020: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4021:
4022: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4023: # mode. It turns out that the SunPro C++ compiler does not properly
4024: # handle `-M -o', and we need to detect this. Also, some Intel
4025: # versions had trouble with output in subdirs
4026: am__obj=sub/conftest.${OBJEXT-o}
4027: am__minus_obj="-o $am__obj"
4028: case $depmode in
4029: gcc)
4030: # This depmode causes a compiler race in universal mode.
4031: test "$am__universal" = false || continue
4032: ;;
4033: nosideeffect)
4034: # after this tag, mechanisms are not by side-effect, so they'll
4035: # only be used when explicitly requested
4036: if test "x$enable_dependency_tracking" = xyes; then
4037: continue
4038: else
4039: break
4040: fi
4041: ;;
4042: msvisualcpp | msvcmsys)
4043: # This compiler won't grok `-c -o', but also, the minuso test has
4044: # not run yet. These depmodes are late enough in the game, and
4045: # so weak that their functioning should not be impacted.
4046: am__obj=conftest.${OBJEXT-o}
4047: am__minus_obj=
4048: ;;
4049: none) break ;;
4050: esac
4051: if depmode=$depmode \
4052: source=sub/conftest.c object=$am__obj \
4053: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4055: >/dev/null 2>conftest.err &&
4056: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4057: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4058: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4059: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4060: # icc doesn't choke on unknown options, it will just issue warnings
4061: # or remarks (even with -Werror). So we grep stderr for any message
4062: # that says an option was ignored or not supported.
4063: # When given -MP, icc 7.0 and 7.1 complain thusly:
4064: # icc: Command line warning: ignoring option '-M'; no argument required
4065: # The diagnosis changed in icc 8.0:
4066: # icc: Command line remark: option '-MP' not supported
4067: if (grep 'ignoring option' conftest.err ||
4068: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4069: am_cv_CC_dependencies_compiler_type=$depmode
4070: break
4071: fi
4072: fi
4073: done
4074:
4075: cd ..
4076: rm -rf conftest.dir
4077: else
4078: am_cv_CC_dependencies_compiler_type=none
4079: fi
4080:
4081: fi
4082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4083: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4084: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4085:
4086: if
4087: test "x$enable_dependency_tracking" != xno \
4088: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4089: am__fastdepCC_TRUE=
4090: am__fastdepCC_FALSE='#'
4091: else
4092: am__fastdepCC_TRUE='#'
4093: am__fastdepCC_FALSE=
4094: fi
4095:
4096:
4097:
4098: EXT_SQL=
4099:
4100: if test x"$CC" != x""; then
4101: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4102: awk -F. '{ printf("%s", $1);}'`
4103: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4104: awk -F. '{ printf("%s", $2);}'`
4105: if test $GCC_VERSION_MAJEURE -ge 5; then
4106: OPTIMISATION_C=-O3
4107: else
4108: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4109: then
4110: OPTIMISATION_C=-O3
4111: else
4112: if test $GCC_VERSION_MAJEURE -ge 2; then
4113: OPTIMISATION_C=-O2
4114: else
4115: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
4116: fi
4117: fi
4118: fi
4119: fi
4120:
4121: if test "x$CC" != xcc; then
4122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4123: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4124: else
4125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4126: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4127: fi
4128: set dummy $CC; ac_cc=`$as_echo "$2" |
4129: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4130: if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4131: $as_echo_n "(cached) " >&6
4132: else
4133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134: /* end confdefs.h. */
4135:
4136: int
4137: main ()
4138: {
4139:
4140: ;
4141: return 0;
4142: }
4143: _ACEOF
4144: # Make sure it works both with $CC and with simple cc.
4145: # We do the test twice because some compilers refuse to overwrite an
4146: # existing .o file with -o, though they will create one.
4147: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4148: rm -f conftest2.*
4149: if { { case "(($ac_try" in
4150: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151: *) ac_try_echo=$ac_try;;
4152: esac
4153: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154: $as_echo "$ac_try_echo"; } >&5
4155: (eval "$ac_try") 2>&5
4156: ac_status=$?
4157: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158: test $ac_status = 0; } &&
4159: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4160: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161: *) ac_try_echo=$ac_try;;
4162: esac
4163: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164: $as_echo "$ac_try_echo"; } >&5
4165: (eval "$ac_try") 2>&5
4166: ac_status=$?
4167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168: test $ac_status = 0; };
4169: then
4170: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4171: if test "x$CC" != xcc; then
4172: # Test first that cc exists at all.
4173: if { ac_try='cc -c conftest.$ac_ext >&5'
4174: { { case "(($ac_try" in
4175: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176: *) ac_try_echo=$ac_try;;
4177: esac
4178: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179: $as_echo "$ac_try_echo"; } >&5
4180: (eval "$ac_try") 2>&5
4181: ac_status=$?
4182: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183: test $ac_status = 0; }; }; then
4184: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4185: rm -f conftest2.*
4186: if { { case "(($ac_try" in
4187: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188: *) ac_try_echo=$ac_try;;
4189: esac
4190: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191: $as_echo "$ac_try_echo"; } >&5
4192: (eval "$ac_try") 2>&5
4193: ac_status=$?
4194: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195: test $ac_status = 0; } &&
4196: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4197: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198: *) ac_try_echo=$ac_try;;
4199: esac
4200: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201: $as_echo "$ac_try_echo"; } >&5
4202: (eval "$ac_try") 2>&5
4203: ac_status=$?
4204: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205: test $ac_status = 0; };
4206: then
4207: # cc works too.
4208: :
4209: else
4210: # cc exists but doesn't like -o.
4211: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4212: fi
4213: fi
4214: fi
4215: else
4216: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4217: fi
4218: rm -f core conftest*
4219:
4220: fi
4221: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4223: $as_echo "yes" >&6; }
4224: else
4225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226: $as_echo "no" >&6; }
4227:
4228: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4229:
4230: fi
4231:
4232: # FIXME: we rely on the cache variable name because
4233: # there is no other way.
4234: set dummy $CC
4235: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4236: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4237: if test "$am_t" != yes; then
4238: # Losing compiler, so override with the script.
4239: # FIXME: It is wrong to rewrite CC.
4240: # But if we don't then we get into trouble of one sort or another.
4241: # A longer-term fix would be to have automake use am__CC in this case,
4242: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4243: CC="$am_aux_dir/compile $CC"
4244: fi
4245:
4246:
4247:
4248: if test "$GCC" != yes; then
4249: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
4250: fi
4251:
4252: ac_ext=cpp
4253: ac_cpp='$CXXCPP $CPPFLAGS'
4254: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4257: if test -z "$CXX"; then
4258: if test -n "$CCC"; then
4259: CXX=$CCC
4260: else
4261: if test -n "$ac_tool_prefix"; then
4262: for ac_prog in g++
4263: do
4264: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4265: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267: $as_echo_n "checking for $ac_word... " >&6; }
4268: if test "${ac_cv_prog_CXX+set}" = set; then :
4269: $as_echo_n "(cached) " >&6
4270: else
4271: if test -n "$CXX"; then
4272: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4273: else
4274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275: for as_dir in $PATH
4276: do
4277: IFS=$as_save_IFS
4278: test -z "$as_dir" && as_dir=.
4279: for ac_exec_ext in '' $ac_executable_extensions; do
4280: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4282: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283: break 2
4284: fi
4285: done
4286: done
4287: IFS=$as_save_IFS
4288:
4289: fi
4290: fi
4291: CXX=$ac_cv_prog_CXX
4292: if test -n "$CXX"; then
4293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4294: $as_echo "$CXX" >&6; }
4295: else
4296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297: $as_echo "no" >&6; }
4298: fi
4299:
4300:
4301: test -n "$CXX" && break
4302: done
4303: fi
4304: if test -z "$CXX"; then
4305: ac_ct_CXX=$CXX
4306: for ac_prog in g++
4307: do
4308: # Extract the first word of "$ac_prog", so it can be a program name with args.
4309: set dummy $ac_prog; ac_word=$2
4310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311: $as_echo_n "checking for $ac_word... " >&6; }
4312: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4313: $as_echo_n "(cached) " >&6
4314: else
4315: if test -n "$ac_ct_CXX"; then
4316: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4317: else
4318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319: for as_dir in $PATH
4320: do
4321: IFS=$as_save_IFS
4322: test -z "$as_dir" && as_dir=.
4323: for ac_exec_ext in '' $ac_executable_extensions; do
4324: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325: ac_cv_prog_ac_ct_CXX="$ac_prog"
4326: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327: break 2
4328: fi
4329: done
4330: done
4331: IFS=$as_save_IFS
4332:
4333: fi
4334: fi
4335: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4336: if test -n "$ac_ct_CXX"; then
4337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4338: $as_echo "$ac_ct_CXX" >&6; }
4339: else
4340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341: $as_echo "no" >&6; }
4342: fi
4343:
4344:
4345: test -n "$ac_ct_CXX" && break
4346: done
4347:
4348: if test "x$ac_ct_CXX" = x; then
4349: CXX="g++"
4350: else
4351: case $cross_compiling:$ac_tool_warned in
4352: yes:)
4353: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355: ac_tool_warned=yes ;;
4356: esac
4357: CXX=$ac_ct_CXX
4358: fi
4359: fi
4360:
4361: fi
4362: fi
4363: # Provide some information about the compiler.
4364: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4365: set X $ac_compile
4366: ac_compiler=$2
4367: for ac_option in --version -v -V -qversion; do
4368: { { ac_try="$ac_compiler $ac_option >&5"
4369: case "(($ac_try" in
4370: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371: *) ac_try_echo=$ac_try;;
4372: esac
4373: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374: $as_echo "$ac_try_echo"; } >&5
4375: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4376: ac_status=$?
4377: if test -s conftest.err; then
4378: sed '10a\
4379: ... rest of stderr output deleted ...
4380: 10q' conftest.err >conftest.er1
4381: cat conftest.er1 >&5
4382: fi
4383: rm -f conftest.er1 conftest.err
4384: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385: test $ac_status = 0; }
4386: done
4387:
4388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4389: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4390: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4391: $as_echo_n "(cached) " >&6
4392: else
4393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394: /* end confdefs.h. */
4395:
4396: int
4397: main ()
4398: {
4399: #ifndef __GNUC__
4400: choke me
4401: #endif
4402:
4403: ;
4404: return 0;
4405: }
4406: _ACEOF
4407: if ac_fn_cxx_try_compile "$LINENO"; then :
4408: ac_compiler_gnu=yes
4409: else
4410: ac_compiler_gnu=no
4411: fi
4412: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4414:
4415: fi
4416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4417: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4418: if test $ac_compiler_gnu = yes; then
4419: GXX=yes
4420: else
4421: GXX=
4422: fi
4423: ac_test_CXXFLAGS=${CXXFLAGS+set}
4424: ac_save_CXXFLAGS=$CXXFLAGS
4425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4426: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4427: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4428: $as_echo_n "(cached) " >&6
4429: else
4430: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4431: ac_cxx_werror_flag=yes
4432: ac_cv_prog_cxx_g=no
4433: CXXFLAGS="-g"
4434: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435: /* end confdefs.h. */
4436:
4437: int
4438: main ()
4439: {
4440:
4441: ;
4442: return 0;
4443: }
4444: _ACEOF
4445: if ac_fn_cxx_try_compile "$LINENO"; then :
4446: ac_cv_prog_cxx_g=yes
4447: else
4448: CXXFLAGS=""
4449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450: /* end confdefs.h. */
4451:
4452: int
4453: main ()
4454: {
4455:
4456: ;
4457: return 0;
4458: }
4459: _ACEOF
4460: if ac_fn_cxx_try_compile "$LINENO"; then :
4461:
4462: else
4463: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4464: CXXFLAGS="-g"
4465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466: /* end confdefs.h. */
4467:
4468: int
4469: main ()
4470: {
4471:
4472: ;
4473: return 0;
4474: }
4475: _ACEOF
4476: if ac_fn_cxx_try_compile "$LINENO"; then :
4477: ac_cv_prog_cxx_g=yes
4478: fi
4479: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480: fi
4481: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482: fi
4483: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4485: fi
4486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4487: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4488: if test "$ac_test_CXXFLAGS" = set; then
4489: CXXFLAGS=$ac_save_CXXFLAGS
4490: elif test $ac_cv_prog_cxx_g = yes; then
4491: if test "$GXX" = yes; then
4492: CXXFLAGS="-g -O2"
4493: else
4494: CXXFLAGS="-g"
4495: fi
4496: else
4497: if test "$GXX" = yes; then
4498: CXXFLAGS="-O2"
4499: else
4500: CXXFLAGS=
4501: fi
4502: fi
4503: ac_ext=c
4504: ac_cpp='$CPP $CPPFLAGS'
4505: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508:
4509: depcc="$CXX" am_compiler_list=
4510:
4511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4512: $as_echo_n "checking dependency style of $depcc... " >&6; }
4513: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4514: $as_echo_n "(cached) " >&6
4515: else
4516: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4517: # We make a subdir and do the tests there. Otherwise we can end up
4518: # making bogus files that we don't know about and never remove. For
4519: # instance it was reported that on HP-UX the gcc test will end up
4520: # making a dummy file named `D' -- because `-MD' means `put the output
4521: # in D'.
4522: mkdir conftest.dir
4523: # Copy depcomp to subdir because otherwise we won't find it if we're
4524: # using a relative directory.
4525: cp "$am_depcomp" conftest.dir
4526: cd conftest.dir
4527: # We will build objects and dependencies in a subdirectory because
4528: # it helps to detect inapplicable dependency modes. For instance
4529: # both Tru64's cc and ICC support -MD to output dependencies as a
4530: # side effect of compilation, but ICC will put the dependencies in
4531: # the current directory while Tru64 will put them in the object
4532: # directory.
4533: mkdir sub
4534:
4535: am_cv_CXX_dependencies_compiler_type=none
4536: if test "$am_compiler_list" = ""; then
4537: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4538: fi
4539: am__universal=false
4540: case " $depcc " in #(
4541: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4542: esac
4543:
4544: for depmode in $am_compiler_list; do
4545: # Setup a source with many dependencies, because some compilers
4546: # like to wrap large dependency lists on column 80 (with \), and
4547: # we should not choose a depcomp mode which is confused by this.
4548: #
4549: # We need to recreate these files for each test, as the compiler may
4550: # overwrite some of them when testing with obscure command lines.
4551: # This happens at least with the AIX C compiler.
4552: : > sub/conftest.c
4553: for i in 1 2 3 4 5 6; do
4554: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4555: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4556: # Solaris 8's {/usr,}/bin/sh.
4557: touch sub/conftst$i.h
4558: done
4559: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4560:
4561: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4562: # mode. It turns out that the SunPro C++ compiler does not properly
4563: # handle `-M -o', and we need to detect this. Also, some Intel
4564: # versions had trouble with output in subdirs
4565: am__obj=sub/conftest.${OBJEXT-o}
4566: am__minus_obj="-o $am__obj"
4567: case $depmode in
4568: gcc)
4569: # This depmode causes a compiler race in universal mode.
4570: test "$am__universal" = false || continue
4571: ;;
4572: nosideeffect)
4573: # after this tag, mechanisms are not by side-effect, so they'll
4574: # only be used when explicitly requested
4575: if test "x$enable_dependency_tracking" = xyes; then
4576: continue
4577: else
4578: break
4579: fi
4580: ;;
4581: msvisualcpp | msvcmsys)
4582: # This compiler won't grok `-c -o', but also, the minuso test has
4583: # not run yet. These depmodes are late enough in the game, and
4584: # so weak that their functioning should not be impacted.
4585: am__obj=conftest.${OBJEXT-o}
4586: am__minus_obj=
4587: ;;
4588: none) break ;;
4589: esac
4590: if depmode=$depmode \
4591: source=sub/conftest.c object=$am__obj \
4592: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4593: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4594: >/dev/null 2>conftest.err &&
4595: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4596: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4597: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4598: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4599: # icc doesn't choke on unknown options, it will just issue warnings
4600: # or remarks (even with -Werror). So we grep stderr for any message
4601: # that says an option was ignored or not supported.
4602: # When given -MP, icc 7.0 and 7.1 complain thusly:
4603: # icc: Command line warning: ignoring option '-M'; no argument required
4604: # The diagnosis changed in icc 8.0:
4605: # icc: Command line remark: option '-MP' not supported
4606: if (grep 'ignoring option' conftest.err ||
4607: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4608: am_cv_CXX_dependencies_compiler_type=$depmode
4609: break
4610: fi
4611: fi
4612: done
4613:
4614: cd ..
4615: rm -rf conftest.dir
4616: else
4617: am_cv_CXX_dependencies_compiler_type=none
4618: fi
4619:
4620: fi
4621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4622: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4623: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4624:
4625: if
4626: test "x$enable_dependency_tracking" != xno \
4627: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4628: am__fastdepCXX_TRUE=
4629: am__fastdepCXX_FALSE='#'
4630: else
4631: am__fastdepCXX_TRUE='#'
4632: am__fastdepCXX_FALSE=
4633: fi
4634:
4635:
4636:
4637: if test "$GXX" != yes; then
4638: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
4639: fi
4640:
4641: if test x"$CXX" != x""; then
4642: GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4643: awk -F. '{ printf("%s", $1);}'`
4644: GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4645: awk -F. '{ printf("%s", $2);}'`
4646: if test $GCC_VERSION_MAJEURE -ge 5; then
4647: OPTIMISATION_GXX=-O3
4648: else
4649: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4650: OPTIMISATION_GXX=-O3
4651: else
4652: if test $GCC_VERSION_MAJEURE -ge 3; then
4653: OPTIMISATION_GXX=-O2
4654: else
4655: as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
4656: fi
4657: fi
4658: fi
4659: fi
4660:
4661: ac_ext=f
4662: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4663: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4665: if test -n "$ac_tool_prefix"; then
4666: for ac_prog in gfortran
4667: do
4668: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4669: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671: $as_echo_n "checking for $ac_word... " >&6; }
4672: if test "${ac_cv_prog_F77+set}" = set; then :
4673: $as_echo_n "(cached) " >&6
4674: else
4675: if test -n "$F77"; then
4676: ac_cv_prog_F77="$F77" # Let the user override the test.
4677: else
4678: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679: for as_dir in $PATH
4680: do
4681: IFS=$as_save_IFS
4682: test -z "$as_dir" && as_dir=.
4683: for ac_exec_ext in '' $ac_executable_extensions; do
4684: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4686: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687: break 2
4688: fi
4689: done
4690: done
4691: IFS=$as_save_IFS
4692:
4693: fi
4694: fi
4695: F77=$ac_cv_prog_F77
4696: if test -n "$F77"; then
4697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4698: $as_echo "$F77" >&6; }
4699: else
4700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701: $as_echo "no" >&6; }
4702: fi
4703:
4704:
4705: test -n "$F77" && break
4706: done
4707: fi
4708: if test -z "$F77"; then
4709: ac_ct_F77=$F77
4710: for ac_prog in gfortran
4711: do
4712: # Extract the first word of "$ac_prog", so it can be a program name with args.
4713: set dummy $ac_prog; ac_word=$2
4714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715: $as_echo_n "checking for $ac_word... " >&6; }
4716: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4717: $as_echo_n "(cached) " >&6
4718: else
4719: if test -n "$ac_ct_F77"; then
4720: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4721: else
4722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723: for as_dir in $PATH
4724: do
4725: IFS=$as_save_IFS
4726: test -z "$as_dir" && as_dir=.
4727: for ac_exec_ext in '' $ac_executable_extensions; do
4728: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729: ac_cv_prog_ac_ct_F77="$ac_prog"
4730: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731: break 2
4732: fi
4733: done
4734: done
4735: IFS=$as_save_IFS
4736:
4737: fi
4738: fi
4739: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4740: if test -n "$ac_ct_F77"; then
4741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4742: $as_echo "$ac_ct_F77" >&6; }
4743: else
4744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745: $as_echo "no" >&6; }
4746: fi
4747:
4748:
4749: test -n "$ac_ct_F77" && break
4750: done
4751:
4752: if test "x$ac_ct_F77" = x; then
4753: F77=""
4754: else
4755: case $cross_compiling:$ac_tool_warned in
4756: yes:)
4757: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759: ac_tool_warned=yes ;;
4760: esac
4761: F77=$ac_ct_F77
4762: fi
4763: fi
4764:
4765:
4766: # Provide some information about the compiler.
4767: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4768: set X $ac_compile
4769: ac_compiler=$2
4770: for ac_option in --version -v -V -qversion; do
4771: { { ac_try="$ac_compiler $ac_option >&5"
4772: case "(($ac_try" in
4773: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774: *) ac_try_echo=$ac_try;;
4775: esac
4776: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4777: $as_echo "$ac_try_echo"; } >&5
4778: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4779: ac_status=$?
4780: if test -s conftest.err; then
4781: sed '10a\
4782: ... rest of stderr output deleted ...
4783: 10q' conftest.err >conftest.er1
4784: cat conftest.er1 >&5
4785: fi
4786: rm -f conftest.er1 conftest.err
4787: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4788: test $ac_status = 0; }
4789: done
4790: rm -f a.out
4791:
4792: # If we don't use `.F' as extension, the preprocessor is not run on the
4793: # input file. (Note that this only needs to work for GNU compilers.)
4794: ac_save_ext=$ac_ext
4795: ac_ext=F
4796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4797: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4798: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4799: $as_echo_n "(cached) " >&6
4800: else
4801: cat > conftest.$ac_ext <<_ACEOF
4802: program main
4803: #ifndef __GNUC__
4804: choke me
4805: #endif
4806:
4807: end
4808: _ACEOF
4809: if ac_fn_f77_try_compile "$LINENO"; then :
4810: ac_compiler_gnu=yes
4811: else
4812: ac_compiler_gnu=no
4813: fi
4814: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4816:
4817: fi
4818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4819: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4820: ac_ext=$ac_save_ext
4821: ac_test_FFLAGS=${FFLAGS+set}
4822: ac_save_FFLAGS=$FFLAGS
4823: FFLAGS=
4824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4825: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4826: if test "${ac_cv_prog_f77_g+set}" = set; then :
4827: $as_echo_n "(cached) " >&6
4828: else
4829: FFLAGS=-g
4830: cat > conftest.$ac_ext <<_ACEOF
4831: program main
4832:
4833: end
4834: _ACEOF
4835: if ac_fn_f77_try_compile "$LINENO"; then :
4836: ac_cv_prog_f77_g=yes
4837: else
4838: ac_cv_prog_f77_g=no
4839: fi
4840: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841:
4842: fi
4843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4844: $as_echo "$ac_cv_prog_f77_g" >&6; }
4845: if test "$ac_test_FFLAGS" = set; then
4846: FFLAGS=$ac_save_FFLAGS
4847: elif test $ac_cv_prog_f77_g = yes; then
4848: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4849: FFLAGS="-g -O2"
4850: else
4851: FFLAGS="-g"
4852: fi
4853: else
4854: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4855: FFLAGS="-O2"
4856: else
4857: FFLAGS=
4858: fi
4859: fi
4860:
4861: if test $ac_compiler_gnu = yes; then
4862: G77=yes
4863: else
4864: G77=
4865: fi
4866: ac_ext=c
4867: ac_cpp='$CPP $CPPFLAGS'
4868: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871:
4872:
4873: ac_ext=${ac_fc_srcext-f}
4874: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4875: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4876: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4877: if test -n "$ac_tool_prefix"; then
4878: for ac_prog in gfortran
4879: do
4880: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4881: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883: $as_echo_n "checking for $ac_word... " >&6; }
4884: if test "${ac_cv_prog_FC+set}" = set; then :
4885: $as_echo_n "(cached) " >&6
4886: else
4887: if test -n "$FC"; then
4888: ac_cv_prog_FC="$FC" # Let the user override the test.
4889: else
4890: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891: for as_dir in $PATH
4892: do
4893: IFS=$as_save_IFS
4894: test -z "$as_dir" && as_dir=.
4895: for ac_exec_ext in '' $ac_executable_extensions; do
4896: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4898: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899: break 2
4900: fi
4901: done
4902: done
4903: IFS=$as_save_IFS
4904:
4905: fi
4906: fi
4907: FC=$ac_cv_prog_FC
4908: if test -n "$FC"; then
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4910: $as_echo "$FC" >&6; }
4911: else
4912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913: $as_echo "no" >&6; }
4914: fi
4915:
4916:
4917: test -n "$FC" && break
4918: done
4919: fi
4920: if test -z "$FC"; then
4921: ac_ct_FC=$FC
4922: for ac_prog in gfortran
4923: do
4924: # Extract the first word of "$ac_prog", so it can be a program name with args.
4925: set dummy $ac_prog; ac_word=$2
4926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927: $as_echo_n "checking for $ac_word... " >&6; }
4928: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4929: $as_echo_n "(cached) " >&6
4930: else
4931: if test -n "$ac_ct_FC"; then
4932: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4933: else
4934: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935: for as_dir in $PATH
4936: do
4937: IFS=$as_save_IFS
4938: test -z "$as_dir" && as_dir=.
4939: for ac_exec_ext in '' $ac_executable_extensions; do
4940: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941: ac_cv_prog_ac_ct_FC="$ac_prog"
4942: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943: break 2
4944: fi
4945: done
4946: done
4947: IFS=$as_save_IFS
4948:
4949: fi
4950: fi
4951: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4952: if test -n "$ac_ct_FC"; then
4953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4954: $as_echo "$ac_ct_FC" >&6; }
4955: else
4956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957: $as_echo "no" >&6; }
4958: fi
4959:
4960:
4961: test -n "$ac_ct_FC" && break
4962: done
4963:
4964: if test "x$ac_ct_FC" = x; then
4965: FC=""
4966: else
4967: case $cross_compiling:$ac_tool_warned in
4968: yes:)
4969: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971: ac_tool_warned=yes ;;
4972: esac
4973: FC=$ac_ct_FC
4974: fi
4975: fi
4976:
4977:
4978: # Provide some information about the compiler.
4979: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4980: set X $ac_compile
4981: ac_compiler=$2
4982: for ac_option in --version -v -V -qversion; do
4983: { { ac_try="$ac_compiler $ac_option >&5"
4984: case "(($ac_try" in
4985: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986: *) ac_try_echo=$ac_try;;
4987: esac
4988: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989: $as_echo "$ac_try_echo"; } >&5
4990: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4991: ac_status=$?
4992: if test -s conftest.err; then
4993: sed '10a\
4994: ... rest of stderr output deleted ...
4995: 10q' conftest.err >conftest.er1
4996: cat conftest.er1 >&5
4997: fi
4998: rm -f conftest.er1 conftest.err
4999: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000: test $ac_status = 0; }
5001: done
5002: rm -f a.out
5003:
5004: # If we don't use `.F' as extension, the preprocessor is not run on the
5005: # input file. (Note that this only needs to work for GNU compilers.)
5006: ac_save_ext=$ac_ext
5007: ac_ext=F
5008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
5009: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
5010: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
5011: $as_echo_n "(cached) " >&6
5012: else
5013: cat > conftest.$ac_ext <<_ACEOF
5014: program main
5015: #ifndef __GNUC__
5016: choke me
5017: #endif
5018:
5019: end
5020: _ACEOF
5021: if ac_fn_fc_try_compile "$LINENO"; then :
5022: ac_compiler_gnu=yes
5023: else
5024: ac_compiler_gnu=no
5025: fi
5026: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5028:
5029: fi
5030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5031: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5032: ac_ext=$ac_save_ext
5033: ac_test_FCFLAGS=${FCFLAGS+set}
5034: ac_save_FCFLAGS=$FCFLAGS
5035: FCFLAGS=
5036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5037: $as_echo_n "checking whether $FC accepts -g... " >&6; }
5038: if test "${ac_cv_prog_fc_g+set}" = set; then :
5039: $as_echo_n "(cached) " >&6
5040: else
5041: FCFLAGS=-g
5042: cat > conftest.$ac_ext <<_ACEOF
5043: program main
5044:
5045: end
5046: _ACEOF
5047: if ac_fn_fc_try_compile "$LINENO"; then :
5048: ac_cv_prog_fc_g=yes
5049: else
5050: ac_cv_prog_fc_g=no
5051: fi
5052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053:
5054: fi
5055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5056: $as_echo "$ac_cv_prog_fc_g" >&6; }
5057: if test "$ac_test_FCFLAGS" = set; then
5058: FCFLAGS=$ac_save_FCFLAGS
5059: elif test $ac_cv_prog_fc_g = yes; then
5060: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5061: FCFLAGS="-g -O2"
5062: else
5063: FCFLAGS="-g"
5064: fi
5065: else
5066: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5067: FCFLAGS="-O2"
5068: else
5069: FCFLAGS=
5070: fi
5071: fi
5072:
5073: ac_ext=c
5074: ac_cpp='$CPP $CPPFLAGS'
5075: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078:
5079:
5080: if test x"$F77" == x; then
5081: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
5082: fi
5083:
5084: if test x"$FC" == x; then
5085: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
5086: fi
5087:
5088: if test x"$FC" != x""; then
5089: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5090: awk -F. '{ printf("%s", $1);}'`
5091: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5092: awk -F. '{ printf("%s", $2);}'`
5093: if test $GCC_VERSION_MAJEURE -ge 5; then
5094: OPTIMISATION_F=-O3
5095: else
5096: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
5097: OPTIMISATION_F=-O3
5098: else
5099: if test $GCC_VERSION_MAJEURE -ge 3; then
5100: OPTIMISATION_F=-O2
5101: else
5102: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
5103: fi
5104: fi
5105: fi
5106: fi
5107:
5108:
5109: ac_ext=c
5110: ac_cpp='$CPP $CPPFLAGS'
5111: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5115: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5116: # On Suns, sometimes $CPP names a directory.
5117: if test -n "$CPP" && test -d "$CPP"; then
5118: CPP=
5119: fi
5120: if test -z "$CPP"; then
5121: if test "${ac_cv_prog_CPP+set}" = set; then :
5122: $as_echo_n "(cached) " >&6
5123: else
5124: # Double quotes because CPP needs to be expanded
5125: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5126: do
5127: ac_preproc_ok=false
5128: for ac_c_preproc_warn_flag in '' yes
5129: do
5130: # Use a header file that comes with gcc, so configuring glibc
5131: # with a fresh cross-compiler works.
5132: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133: # <limits.h> exists even on freestanding compilers.
5134: # On the NeXT, cc -E runs the code through the compiler's parser,
5135: # not just through cpp. "Syntax error" is here to catch this case.
5136: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137: /* end confdefs.h. */
5138: #ifdef __STDC__
5139: # include <limits.h>
5140: #else
5141: # include <assert.h>
5142: #endif
5143: Syntax error
5144: _ACEOF
5145: if ac_fn_c_try_cpp "$LINENO"; then :
5146:
5147: else
5148: # Broken: fails on valid input.
5149: continue
5150: fi
5151: rm -f conftest.err conftest.i conftest.$ac_ext
5152:
5153: # OK, works on sane cases. Now check whether nonexistent headers
5154: # can be detected and how.
5155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156: /* end confdefs.h. */
5157: #include <ac_nonexistent.h>
5158: _ACEOF
5159: if ac_fn_c_try_cpp "$LINENO"; then :
5160: # Broken: success on invalid input.
5161: continue
5162: else
5163: # Passes both tests.
5164: ac_preproc_ok=:
5165: break
5166: fi
5167: rm -f conftest.err conftest.i conftest.$ac_ext
5168:
5169: done
5170: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171: rm -f conftest.i conftest.err conftest.$ac_ext
5172: if $ac_preproc_ok; then :
5173: break
5174: fi
5175:
5176: done
5177: ac_cv_prog_CPP=$CPP
5178:
5179: fi
5180: CPP=$ac_cv_prog_CPP
5181: else
5182: ac_cv_prog_CPP=$CPP
5183: fi
5184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5185: $as_echo "$CPP" >&6; }
5186: ac_preproc_ok=false
5187: for ac_c_preproc_warn_flag in '' yes
5188: do
5189: # Use a header file that comes with gcc, so configuring glibc
5190: # with a fresh cross-compiler works.
5191: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192: # <limits.h> exists even on freestanding compilers.
5193: # On the NeXT, cc -E runs the code through the compiler's parser,
5194: # not just through cpp. "Syntax error" is here to catch this case.
5195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196: /* end confdefs.h. */
5197: #ifdef __STDC__
5198: # include <limits.h>
5199: #else
5200: # include <assert.h>
5201: #endif
5202: Syntax error
5203: _ACEOF
5204: if ac_fn_c_try_cpp "$LINENO"; then :
5205:
5206: else
5207: # Broken: fails on valid input.
5208: continue
5209: fi
5210: rm -f conftest.err conftest.i conftest.$ac_ext
5211:
5212: # OK, works on sane cases. Now check whether nonexistent headers
5213: # can be detected and how.
5214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215: /* end confdefs.h. */
5216: #include <ac_nonexistent.h>
5217: _ACEOF
5218: if ac_fn_c_try_cpp "$LINENO"; then :
5219: # Broken: success on invalid input.
5220: continue
5221: else
5222: # Passes both tests.
5223: ac_preproc_ok=:
5224: break
5225: fi
5226: rm -f conftest.err conftest.i conftest.$ac_ext
5227:
5228: done
5229: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5230: rm -f conftest.i conftest.err conftest.$ac_ext
5231: if $ac_preproc_ok; then :
5232:
5233: else
5234: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5235: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5236: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5237: See \`config.log' for more details" "$LINENO" 5 ; }
5238: fi
5239:
5240: ac_ext=c
5241: ac_cpp='$CPP $CPPFLAGS'
5242: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245:
5246:
5247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5248: $as_echo_n "checking for X... " >&6; }
5249:
5250:
5251: # Check whether --with-x was given.
5252: if test "${with_x+set}" = set; then :
5253: withval=$with_x;
5254: fi
5255:
5256: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5257: if test "x$with_x" = xno; then
5258: # The user explicitly disabled X.
5259: have_x=disabled
5260: else
5261: case $x_includes,$x_libraries in #(
5262: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
5263: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5264: $as_echo_n "(cached) " >&6
5265: else
5266: # One or both of the vars are not set, and there is no cached value.
5267: ac_x_includes=no ac_x_libraries=no
5268: rm -f -r conftest.dir
5269: if mkdir conftest.dir; then
5270: cd conftest.dir
5271: cat >Imakefile <<'_ACEOF'
5272: incroot:
5273: @echo incroot='${INCROOT}'
5274: usrlibdir:
5275: @echo usrlibdir='${USRLIBDIR}'
5276: libdir:
5277: @echo libdir='${LIBDIR}'
5278: _ACEOF
5279: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5280: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5281: for ac_var in incroot usrlibdir libdir; do
5282: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5283: done
5284: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5285: for ac_extension in a so sl dylib la dll; do
5286: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5287: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5288: ac_im_usrlibdir=$ac_im_libdir; break
5289: fi
5290: done
5291: # Screen out bogus values from the imake configuration. They are
5292: # bogus both because they are the default anyway, and because
5293: # using them would break gcc on systems where it needs fixed includes.
5294: case $ac_im_incroot in
5295: /usr/include) ac_x_includes= ;;
5296: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5297: esac
5298: case $ac_im_usrlibdir in
5299: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5300: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5301: esac
5302: fi
5303: cd ..
5304: rm -f -r conftest.dir
5305: fi
5306:
5307: # Standard set of common directories for X headers.
5308: # Check X11 before X11Rn because it is often a symlink to the current release.
5309: ac_x_header_dirs='
5310: /usr/X11/include
5311: /usr/X11R7/include
5312: /usr/X11R6/include
5313: /usr/X11R5/include
5314: /usr/X11R4/include
5315:
5316: /usr/include/X11
5317: /usr/include/X11R7
5318: /usr/include/X11R6
5319: /usr/include/X11R5
5320: /usr/include/X11R4
5321:
5322: /usr/local/X11/include
5323: /usr/local/X11R7/include
5324: /usr/local/X11R6/include
5325: /usr/local/X11R5/include
5326: /usr/local/X11R4/include
5327:
5328: /usr/local/include/X11
5329: /usr/local/include/X11R7
5330: /usr/local/include/X11R6
5331: /usr/local/include/X11R5
5332: /usr/local/include/X11R4
5333:
5334: /usr/X386/include
5335: /usr/x386/include
5336: /usr/XFree86/include/X11
5337:
5338: /usr/include
5339: /usr/local/include
5340: /usr/unsupported/include
5341: /usr/athena/include
5342: /usr/local/x11r5/include
5343: /usr/lpp/Xamples/include
5344:
5345: /usr/openwin/include
5346: /usr/openwin/share/include'
5347:
5348: if test "$ac_x_includes" = no; then
5349: # Guess where to find include files, by looking for Xlib.h.
5350: # First, try using that file with no special directory specified.
5351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352: /* end confdefs.h. */
5353: #include <X11/Xlib.h>
5354: _ACEOF
5355: if ac_fn_c_try_cpp "$LINENO"; then :
5356: # We can compile using X headers with no special include directory.
5357: ac_x_includes=
5358: else
5359: for ac_dir in $ac_x_header_dirs; do
5360: if test -r "$ac_dir/X11/Xlib.h"; then
5361: ac_x_includes=$ac_dir
5362: break
5363: fi
5364: done
5365: fi
5366: rm -f conftest.err conftest.i conftest.$ac_ext
5367: fi # $ac_x_includes = no
5368:
5369: if test "$ac_x_libraries" = no; then
5370: # Check for the libraries.
5371: # See if we find them without any special options.
5372: # Don't add to $LIBS permanently.
5373: ac_save_LIBS=$LIBS
5374: LIBS="-lX11 $LIBS"
5375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376: /* end confdefs.h. */
5377: #include <X11/Xlib.h>
5378: int
5379: main ()
5380: {
5381: XrmInitialize ()
5382: ;
5383: return 0;
5384: }
5385: _ACEOF
5386: if ac_fn_c_try_link "$LINENO"; then :
5387: LIBS=$ac_save_LIBS
5388: # We can link X programs with no special library path.
5389: ac_x_libraries=
5390: else
5391: LIBS=$ac_save_LIBS
5392: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5393: do
5394: # Don't even attempt the hair of trying to link an X program!
5395: for ac_extension in a so sl dylib la dll; do
5396: if test -r "$ac_dir/libX11.$ac_extension"; then
5397: ac_x_libraries=$ac_dir
5398: break 2
5399: fi
5400: done
5401: done
5402: fi
5403: rm -f core conftest.err conftest.$ac_objext \
5404: conftest$ac_exeext conftest.$ac_ext
5405: fi # $ac_x_libraries = no
5406:
5407: case $ac_x_includes,$ac_x_libraries in #(
5408: no,* | *,no | *\'*)
5409: # Didn't find X, or a directory has "'" in its name.
5410: ac_cv_have_x="have_x=no";; #(
5411: *)
5412: # Record where we found X for the cache.
5413: ac_cv_have_x="have_x=yes\
5414: ac_x_includes='$ac_x_includes'\
5415: ac_x_libraries='$ac_x_libraries'"
5416: esac
5417: fi
5418: ;; #(
5419: *) have_x=yes;;
5420: esac
5421: eval "$ac_cv_have_x"
5422: fi # $with_x != no
5423:
5424: if test "$have_x" != yes; then
5425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5426: $as_echo "$have_x" >&6; }
5427: no_x=yes
5428: else
5429: # If each of the values was on the command line, it overrides each guess.
5430: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5431: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5432: # Update the cache value to reflect the command line values.
5433: ac_cv_have_x="have_x=yes\
5434: ac_x_includes='$x_includes'\
5435: ac_x_libraries='$x_libraries'"
5436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5437: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5438: fi
5439:
5440: if test "$no_x" = yes; then
5441: # Not all programs may use this symbol, but it does not hurt to define it.
5442:
5443: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5444:
5445: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5446: else
5447: if test -n "$x_includes"; then
5448: X_CFLAGS="$X_CFLAGS -I$x_includes"
5449: fi
5450:
5451: # It would also be nice to do this for all -L options, not just this one.
5452: if test -n "$x_libraries"; then
5453: X_LIBS="$X_LIBS -L$x_libraries"
5454: # For Solaris; some versions of Sun CC require a space after -R and
5455: # others require no space. Words are not sufficient . . . .
5456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5457: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5458: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5459: ac_xsave_c_werror_flag=$ac_c_werror_flag
5460: ac_c_werror_flag=yes
5461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462: /* end confdefs.h. */
5463:
5464: int
5465: main ()
5466: {
5467:
5468: ;
5469: return 0;
5470: }
5471: _ACEOF
5472: if ac_fn_c_try_link "$LINENO"; then :
5473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474: $as_echo "no" >&6; }
5475: X_LIBS="$X_LIBS -R$x_libraries"
5476: else
5477: LIBS="$ac_xsave_LIBS -R $x_libraries"
5478: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479: /* end confdefs.h. */
5480:
5481: int
5482: main ()
5483: {
5484:
5485: ;
5486: return 0;
5487: }
5488: _ACEOF
5489: if ac_fn_c_try_link "$LINENO"; then :
5490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491: $as_echo "yes" >&6; }
5492: X_LIBS="$X_LIBS -R $x_libraries"
5493: else
5494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5495: $as_echo "neither works" >&6; }
5496: fi
5497: rm -f core conftest.err conftest.$ac_objext \
5498: conftest$ac_exeext conftest.$ac_ext
5499: fi
5500: rm -f core conftest.err conftest.$ac_objext \
5501: conftest$ac_exeext conftest.$ac_ext
5502: ac_c_werror_flag=$ac_xsave_c_werror_flag
5503: LIBS=$ac_xsave_LIBS
5504: fi
5505:
5506: # Check for system-dependent libraries X programs must link with.
5507: # Do this before checking for the system-independent R6 libraries
5508: # (-lICE), since we may need -lsocket or whatever for X linking.
5509:
5510: if test "$ISC" = yes; then
5511: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5512: else
5513: # Martyn Johnson says this is needed for Ultrix, if the X
5514: # libraries were built with DECnet support. And Karl Berry says
5515: # the Alpha needs dnet_stub (dnet does not exist).
5516: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518: /* end confdefs.h. */
5519:
5520: /* Override any GCC internal prototype to avoid an error.
5521: Use char because int might match the return type of a GCC
5522: builtin and then its argument prototype would still apply. */
5523: #ifdef __cplusplus
5524: extern "C"
5525: #endif
5526: char XOpenDisplay ();
5527: int
5528: main ()
5529: {
5530: return XOpenDisplay ();
5531: ;
5532: return 0;
5533: }
5534: _ACEOF
5535: if ac_fn_c_try_link "$LINENO"; then :
5536:
5537: else
5538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5539: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5540: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5541: $as_echo_n "(cached) " >&6
5542: else
5543: ac_check_lib_save_LIBS=$LIBS
5544: LIBS="-ldnet $LIBS"
5545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546: /* end confdefs.h. */
5547:
5548: /* Override any GCC internal prototype to avoid an error.
5549: Use char because int might match the return type of a GCC
5550: builtin and then its argument prototype would still apply. */
5551: #ifdef __cplusplus
5552: extern "C"
5553: #endif
5554: char dnet_ntoa ();
5555: int
5556: main ()
5557: {
5558: return dnet_ntoa ();
5559: ;
5560: return 0;
5561: }
5562: _ACEOF
5563: if ac_fn_c_try_link "$LINENO"; then :
5564: ac_cv_lib_dnet_dnet_ntoa=yes
5565: else
5566: ac_cv_lib_dnet_dnet_ntoa=no
5567: fi
5568: rm -f core conftest.err conftest.$ac_objext \
5569: conftest$ac_exeext conftest.$ac_ext
5570: LIBS=$ac_check_lib_save_LIBS
5571: fi
5572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5573: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5574: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5575: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5576: fi
5577:
5578: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5580: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5581: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5582: $as_echo_n "(cached) " >&6
5583: else
5584: ac_check_lib_save_LIBS=$LIBS
5585: LIBS="-ldnet_stub $LIBS"
5586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587: /* end confdefs.h. */
5588:
5589: /* Override any GCC internal prototype to avoid an error.
5590: Use char because int might match the return type of a GCC
5591: builtin and then its argument prototype would still apply. */
5592: #ifdef __cplusplus
5593: extern "C"
5594: #endif
5595: char dnet_ntoa ();
5596: int
5597: main ()
5598: {
5599: return dnet_ntoa ();
5600: ;
5601: return 0;
5602: }
5603: _ACEOF
5604: if ac_fn_c_try_link "$LINENO"; then :
5605: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5606: else
5607: ac_cv_lib_dnet_stub_dnet_ntoa=no
5608: fi
5609: rm -f core conftest.err conftest.$ac_objext \
5610: conftest$ac_exeext conftest.$ac_ext
5611: LIBS=$ac_check_lib_save_LIBS
5612: fi
5613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5614: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5615: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5616: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5617: fi
5618:
5619: fi
5620: fi
5621: rm -f core conftest.err conftest.$ac_objext \
5622: conftest$ac_exeext conftest.$ac_ext
5623: LIBS="$ac_xsave_LIBS"
5624:
5625: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5626: # to get the SysV transport functions.
5627: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5628: # needs -lnsl.
5629: # The nsl library prevents programs from opening the X display
5630: # on Irix 5.2, according to T.E. Dickey.
5631: # The functions gethostbyname, getservbyname, and inet_addr are
5632: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5633: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5634: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5635:
5636: fi
5637:
5638: if test $ac_cv_func_gethostbyname = no; then
5639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5640: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5641: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5642: $as_echo_n "(cached) " >&6
5643: else
5644: ac_check_lib_save_LIBS=$LIBS
5645: LIBS="-lnsl $LIBS"
5646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647: /* end confdefs.h. */
5648:
5649: /* Override any GCC internal prototype to avoid an error.
5650: Use char because int might match the return type of a GCC
5651: builtin and then its argument prototype would still apply. */
5652: #ifdef __cplusplus
5653: extern "C"
5654: #endif
5655: char gethostbyname ();
5656: int
5657: main ()
5658: {
5659: return gethostbyname ();
5660: ;
5661: return 0;
5662: }
5663: _ACEOF
5664: if ac_fn_c_try_link "$LINENO"; then :
5665: ac_cv_lib_nsl_gethostbyname=yes
5666: else
5667: ac_cv_lib_nsl_gethostbyname=no
5668: fi
5669: rm -f core conftest.err conftest.$ac_objext \
5670: conftest$ac_exeext conftest.$ac_ext
5671: LIBS=$ac_check_lib_save_LIBS
5672: fi
5673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5674: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5675: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5676: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5677: fi
5678:
5679: if test $ac_cv_lib_nsl_gethostbyname = no; then
5680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5681: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5682: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5683: $as_echo_n "(cached) " >&6
5684: else
5685: ac_check_lib_save_LIBS=$LIBS
5686: LIBS="-lbsd $LIBS"
5687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688: /* end confdefs.h. */
5689:
5690: /* Override any GCC internal prototype to avoid an error.
5691: Use char because int might match the return type of a GCC
5692: builtin and then its argument prototype would still apply. */
5693: #ifdef __cplusplus
5694: extern "C"
5695: #endif
5696: char gethostbyname ();
5697: int
5698: main ()
5699: {
5700: return gethostbyname ();
5701: ;
5702: return 0;
5703: }
5704: _ACEOF
5705: if ac_fn_c_try_link "$LINENO"; then :
5706: ac_cv_lib_bsd_gethostbyname=yes
5707: else
5708: ac_cv_lib_bsd_gethostbyname=no
5709: fi
5710: rm -f core conftest.err conftest.$ac_objext \
5711: conftest$ac_exeext conftest.$ac_ext
5712: LIBS=$ac_check_lib_save_LIBS
5713: fi
5714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5715: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5716: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5717: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5718: fi
5719:
5720: fi
5721: fi
5722:
5723: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5724: # socket/setsockopt and other routines are undefined under SCO ODT
5725: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5726: # on later versions), says Simon Leinen: it contains gethostby*
5727: # variants that don't use the name server (or something). -lsocket
5728: # must be given before -lnsl if both are needed. We assume that
5729: # if connect needs -lnsl, so does gethostbyname.
5730: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5731: if test "x$ac_cv_func_connect" = x""yes; then :
5732:
5733: fi
5734:
5735: if test $ac_cv_func_connect = no; then
5736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5737: $as_echo_n "checking for connect in -lsocket... " >&6; }
5738: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5739: $as_echo_n "(cached) " >&6
5740: else
5741: ac_check_lib_save_LIBS=$LIBS
5742: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744: /* end confdefs.h. */
5745:
5746: /* Override any GCC internal prototype to avoid an error.
5747: Use char because int might match the return type of a GCC
5748: builtin and then its argument prototype would still apply. */
5749: #ifdef __cplusplus
5750: extern "C"
5751: #endif
5752: char connect ();
5753: int
5754: main ()
5755: {
5756: return connect ();
5757: ;
5758: return 0;
5759: }
5760: _ACEOF
5761: if ac_fn_c_try_link "$LINENO"; then :
5762: ac_cv_lib_socket_connect=yes
5763: else
5764: ac_cv_lib_socket_connect=no
5765: fi
5766: rm -f core conftest.err conftest.$ac_objext \
5767: conftest$ac_exeext conftest.$ac_ext
5768: LIBS=$ac_check_lib_save_LIBS
5769: fi
5770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5771: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5772: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5773: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5774: fi
5775:
5776: fi
5777:
5778: # Guillermo Gomez says -lposix is necessary on A/UX.
5779: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5780: if test "x$ac_cv_func_remove" = x""yes; then :
5781:
5782: fi
5783:
5784: if test $ac_cv_func_remove = no; then
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5786: $as_echo_n "checking for remove in -lposix... " >&6; }
5787: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5788: $as_echo_n "(cached) " >&6
5789: else
5790: ac_check_lib_save_LIBS=$LIBS
5791: LIBS="-lposix $LIBS"
5792: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793: /* end confdefs.h. */
5794:
5795: /* Override any GCC internal prototype to avoid an error.
5796: Use char because int might match the return type of a GCC
5797: builtin and then its argument prototype would still apply. */
5798: #ifdef __cplusplus
5799: extern "C"
5800: #endif
5801: char remove ();
5802: int
5803: main ()
5804: {
5805: return remove ();
5806: ;
5807: return 0;
5808: }
5809: _ACEOF
5810: if ac_fn_c_try_link "$LINENO"; then :
5811: ac_cv_lib_posix_remove=yes
5812: else
5813: ac_cv_lib_posix_remove=no
5814: fi
5815: rm -f core conftest.err conftest.$ac_objext \
5816: conftest$ac_exeext conftest.$ac_ext
5817: LIBS=$ac_check_lib_save_LIBS
5818: fi
5819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5820: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5821: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5822: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5823: fi
5824:
5825: fi
5826:
5827: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5828: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5829: if test "x$ac_cv_func_shmat" = x""yes; then :
5830:
5831: fi
5832:
5833: if test $ac_cv_func_shmat = no; then
5834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5835: $as_echo_n "checking for shmat in -lipc... " >&6; }
5836: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5837: $as_echo_n "(cached) " >&6
5838: else
5839: ac_check_lib_save_LIBS=$LIBS
5840: LIBS="-lipc $LIBS"
5841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842: /* end confdefs.h. */
5843:
5844: /* Override any GCC internal prototype to avoid an error.
5845: Use char because int might match the return type of a GCC
5846: builtin and then its argument prototype would still apply. */
5847: #ifdef __cplusplus
5848: extern "C"
5849: #endif
5850: char shmat ();
5851: int
5852: main ()
5853: {
5854: return shmat ();
5855: ;
5856: return 0;
5857: }
5858: _ACEOF
5859: if ac_fn_c_try_link "$LINENO"; then :
5860: ac_cv_lib_ipc_shmat=yes
5861: else
5862: ac_cv_lib_ipc_shmat=no
5863: fi
5864: rm -f core conftest.err conftest.$ac_objext \
5865: conftest$ac_exeext conftest.$ac_ext
5866: LIBS=$ac_check_lib_save_LIBS
5867: fi
5868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5869: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5870: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5871: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5872: fi
5873:
5874: fi
5875: fi
5876:
5877: # Check for libraries that X11R6 Xt/Xaw programs need.
5878: ac_save_LDFLAGS=$LDFLAGS
5879: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5880: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5881: # check for ICE first), but we must link in the order -lSM -lICE or
5882: # we get undefined symbols. So assume we have SM if we have ICE.
5883: # These have to be linked with before -lX11, unlike the other
5884: # libraries we check for below, so use a different variable.
5885: # John Interrante, Karl Berry
5886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5887: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5888: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5889: $as_echo_n "(cached) " >&6
5890: else
5891: ac_check_lib_save_LIBS=$LIBS
5892: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894: /* end confdefs.h. */
5895:
5896: /* Override any GCC internal prototype to avoid an error.
5897: Use char because int might match the return type of a GCC
5898: builtin and then its argument prototype would still apply. */
5899: #ifdef __cplusplus
5900: extern "C"
5901: #endif
5902: char IceConnectionNumber ();
5903: int
5904: main ()
5905: {
5906: return IceConnectionNumber ();
5907: ;
5908: return 0;
5909: }
5910: _ACEOF
5911: if ac_fn_c_try_link "$LINENO"; then :
5912: ac_cv_lib_ICE_IceConnectionNumber=yes
5913: else
5914: ac_cv_lib_ICE_IceConnectionNumber=no
5915: fi
5916: rm -f core conftest.err conftest.$ac_objext \
5917: conftest$ac_exeext conftest.$ac_ext
5918: LIBS=$ac_check_lib_save_LIBS
5919: fi
5920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5921: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5922: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5923: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5924: fi
5925:
5926: LDFLAGS=$ac_save_LDFLAGS
5927:
5928: fi
5929:
5930:
5931: if test "$ac_x_includes" != "no"; then
5932: if test x"$ac_x_includes" != x; then
5933: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5934: includeX="-I$ac_x_includes"
5935: fi
5936: fi
5937: if test "$ac_x_libraries" != "no"; then
5938: if test x"$ac_x_libraries" != x; then
5939: X_LIBS="$X_LIBS -L$ac_x_libraries"
5940: fi
5941: fi
5942:
5943:
5944: # Check whether --with-32bits-abi was given.
5945: if test "${with_32bits_abi+set}" = set; then :
5946: withval=$with_32bits_abi;
5947: if test "$with-32bits-abi" = "no"; then
5948: ABI=
5949: else
5950: ABI=-m32
5951: fi
5952: else
5953:
5954: ABI=
5955:
5956:
5957: fi
5958:
5959:
5960: if test x$ABI = x; then
5961:
5962: # Check whether --with-64bits-abi was given.
5963: if test "${with_64bits_abi+set}" = set; then :
5964: withval=$with_64bits_abi;
5965: if test "$with-64bits-abi" = "no"; then
5966: ABI=
5967: else
5968: ABI=-m64
5969: fi
5970: else
5971:
5972: ABI=
5973:
5974:
5975: fi
5976:
5977: fi
5978:
5979: LDFLAGS="$LDFLAGS $ABI"
5980:
5981: # Check whether --enable-recursive was given.
5982: if test "${enable_recursive+set}" = set; then :
5983: enableval=$enable_recursive;
5984: if test "$enableval" = "yes"; then
5985: RECURSIVE=yes
5986: else
5987: RECURSIVE=no
5988: fi
5989: else
5990:
5991: RECURSIVE=yes
5992:
5993:
5994: fi
5995:
5996:
5997:
5998: # Check whether --with-rpltools was given.
5999: if test "${with_rpltools+set}" = set; then :
6000: withval=$with_rpltools;
6001: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
6002: as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
6003: else
6004: RPLTOOLS=$with_rpltools
6005: fi
6006: else
6007:
6008: RPLTOOLS=\$\(top_builddir\)
6009:
6010:
6011: fi
6012:
6013:
6014:
6015:
6016: # Check whether --enable-rplcas was given.
6017: if test "${enable_rplcas+set}" = set; then :
6018: enableval=$enable_rplcas;
6019: if test "$enableval" = "no"; then
6020: RPLCAS=-URPLCAS
6021: LIBRPLCAS=
6022: else
6023: RPLCAS=-DRPLCAS
6024: LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
6025: fi
6026: else
6027:
6028: RPLCAS=-URPLCAS
6029: LIBRPLCAS=
6030:
6031:
6032: fi
6033:
6034:
6035:
6036:
6037:
6038:
6039: # Check whether --enable-optimization was given.
6040: if test "${enable_optimization+set}" = set; then :
6041: enableval=$enable_optimization;
6042: if test "$enableval" = "no"; then
6043: CFLAGS=$ABI
6044: FFLAGS=$ABI
6045: CXXFLAGS=$ABI
6046: FCFLAGS=$ABI
6047: else
6048: CFLAGS="$CFLAGS $ABI $enable_optimization"
6049: FFLAGS="$FFLAGS $ABI $enable_optimization"
6050: CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
6051: FCFLAGS="$FCFLAGS $ABI $enable_optimization"
6052: fi
6053: else
6054:
6055: CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
6056: FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
6057: CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
6058: FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
6059:
6060:
6061: fi
6062:
6063:
6064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable shared memory" >&5
6065: $as_echo_n "checking for usable shared memory... " >&6; }
6066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067: /* end confdefs.h. */
6068: #include <sys/shm.h>
6069:
6070: int
6071: main ()
6072: {
6073: return(0);
6074: ;
6075: return 0;
6076: }
6077: _ACEOF
6078: if ac_fn_c_try_compile "$LINENO"; then :
6079: SHARED_MEMORY=-DSHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6080: $as_echo "yes" >&6; }
6081: else
6082: SHARED_MEMORY=-USHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083: $as_echo "no" >&6; }
6084:
6085: fi
6086: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087:
6088:
6089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
6090: $as_echo_n "checking for pselect... " >&6; }
6091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092: /* end confdefs.h. */
6093: #include <sys/select.h>
6094: #include <unistd.h>
6095: #include <sys/time.h>
6096: #include <sys/types.h>
6097:
6098: int
6099: main ()
6100: {
6101:
6102: struct timespec tv;
6103: fd_set s1, s2, s3;
6104: tv.tv_sec=1;
6105: tv.tv_nsec=0;
6106: FD_SET(1, &s1); FD_SET(2, &s2); FD_SET(3, &s3);
6107: pselect(5, &s1, &s2, &s3, &tv, NULL);
6108: return(0);
6109:
6110: ;
6111: return 0;
6112: }
6113: _ACEOF
6114: if ac_fn_c_try_compile "$LINENO"; then :
6115: PSELECT=-DPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6116: $as_echo "yes" >&6; }
6117: else
6118: PSELECT=-UPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119: $as_echo "no" >&6; }
6120:
6121: fi
6122: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123:
6124:
6125: # Check whether --enable-sysv-ipcs was given.
6126: if test "${enable_sysv_ipcs+set}" = set; then :
6127: enableval=$enable_sysv_ipcs;
6128: if test "$enableval" = "no"; then
6129: IPCS_SYSV=-UIPCS_SYSV
6130: POSIX_IPCS=no
6131: else
6132: IPCS_SYSV=-DIPCS_SYSV
6133: POSIX_IPCS=yes
6134: fi
6135: else
6136: REG=$LDFLAGS
6137: POSIX_IPCS=guessed
6138: LDFLAGS=-lrt
6139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
6140: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
6141: if test "$cross_compiling" = yes; then :
6142: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144: as_fn_error $? "cannot run test program while cross compiling
6145: See \`config.log' for more details" "$LINENO" 5 ; }
6146: else
6147: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148: /* end confdefs.h. */
6149: #include <sys/mman.h>
6150: #include <sys/stat.h>
6151: #include <fcntl.h>
6152:
6153: int
6154: main ()
6155: {
6156: int fd; char *sem = "/test";
6157: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
6158: close(fd);
6159: shm_unlink(sem);
6160: fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
6161: close(fd);
6162: sem_unlink(sem);
6163: return(0);
6164:
6165: ;
6166: return 0;
6167: }
6168: _ACEOF
6169: if ac_fn_c_try_run "$LINENO"; then :
6170: IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6171: $as_echo "yes" >&6; }
6172: else
6173: IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174: $as_echo "no" >&6; }
6175:
6176: fi
6177: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6178: conftest.$ac_objext conftest.beam conftest.$ac_ext
6179: fi
6180:
6181: LDFLAGS=$REG
6182:
6183: fi
6184:
6185:
6186: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
6187: REG=$LDFLAGS
6188: LDFLAGS=-pthread
6189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
6190: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
6191: if test "$cross_compiling" = yes; then :
6192: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6193: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6194: as_fn_error $? "cannot run test program while cross compiling
6195: See \`config.log' for more details" "$LINENO" 5 ; }
6196: else
6197: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198: /* end confdefs.h. */
6199: #include <semaphore.h>
6200:
6201: int
6202: main ()
6203: {
6204: sem_t sem;
6205: if (sem_init(&sem, 1, 0) != 0) return(1);
6206: sem_destroy(&sem);
6207: return(0);
6208:
6209: ;
6210: return 0;
6211: }
6212: _ACEOF
6213: if ac_fn_c_try_run "$LINENO"; then :
6214: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6215: $as_echo "yes" >&6; }
6216: else
6217: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218: $as_echo "no" >&6; }
6219:
6220: fi
6221: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6222: conftest.$ac_objext conftest.beam conftest.$ac_ext
6223: fi
6224:
6225: LDFLAGS=$REG
6226: REG=""
6227: else
6228: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
6229: fi
6230:
6231: # Check whether --enable-full-static was given.
6232: if test "${enable_full_static+set}" = set; then :
6233: enableval=$enable_full_static;
6234: if test "$enableval" = "no"; then
6235: STATIC=no
6236: else
6237: STATIC=yes
6238: fi
6239: else
6240: STATIC=no
6241: fi
6242:
6243:
6244: # Check whether --enable-final-encoding was given.
6245: if test "${enable_final_encoding+set}" = set; then :
6246: enableval=$enable_final_encoding;
6247: if test "$enableval" = "no"; then
6248: FINAL_ENCODING="\$(shell locale charmap | \
6249: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6250: FORCED_FINAL_ENCODING=0
6251: else
6252: FINAL_ENCODING="$enable_final_encoding"
6253: FORCED_FINAL_ENCODING=1
6254: fi
6255: else
6256:
6257: FORCED_FINAL_ENCODING=0
6258: FINAL_ENCODING="\$(shell locale charmap | \
6259: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6260: fi
6261:
6262:
6263: # Check whether --enable-tex was given.
6264: if test "${enable_tex+set}" = set; then :
6265: enableval=$enable_tex;
6266: if test "$enableval" = "no"; then
6267: TEX_SUPPORT=no
6268: else
6269: TEX_SUPPORT=yes
6270: fi
6271: else
6272: TEX_SUPPORT=guessed
6273: fi
6274:
6275:
6276: # Check whether --enable-vim was given.
6277: if test "${enable_vim+set}" = set; then :
6278: enableval=$enable_vim;
6279: if test "$enableval" = "no"; then
6280: VIM_SUPPORT=no
6281: else
6282: VIM_SUPPORT=yes
6283: fi
6284: else
6285: VIM_SUPPORT=guessed
6286: fi
6287:
6288:
6289: # Check whether --enable-embedded-gnuplot was given.
6290: if test "${enable_embedded_gnuplot+set}" = set; then :
6291: enableval=$enable_embedded_gnuplot;
6292: if test "$enableval" = "no"; then
6293: MYGNUPLOT=no
6294: else
6295: MYGNUPLOT=yes
6296: fi
6297: else
6298:
6299: MYGNUPLOT=yes
6300: fi
6301:
6302:
6303: # Check whether --enable-gnuplot was given.
6304: if test "${enable_gnuplot+set}" = set; then :
6305: enableval=$enable_gnuplot;
6306: if test "$enableval" = "no"; then
6307: GNUPLOT_SUPPORT=no
6308: MYGNUPLOT=no
6309: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6310: else
6311: GNUPLOT_SUPPORT=yes
6312: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6313: fi
6314: else
6315:
6316: if test "$MYGNUPLOT" = "yes"; then
6317: GNUPLOT_SUPPORT=yes
6318: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6319: else
6320: GNUPLOT_SUPPORT=guessed
6321: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6322: fi
6323: fi
6324:
6325:
6326: libX=""
6327: LIBMOTIF=""
6328: INCMOTIF=""
6329: BUILD_OPENMOTIF=""
6330:
6331: # Check whether --enable-motif was given.
6332: if test "${enable_motif+set}" = set; then :
6333: enableval=$enable_motif;
6334: if test "$enableval" = "no"; then
6335: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6336: else
6337: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6338: fi
6339: else
6340: if test "$have_x" == "yes"; then
6341: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6342: else
6343: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6344: fi
6345: fi
6346:
6347:
6348: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6349: libX="$X_LIBS -lXt -lX11"
6350: LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
6351: \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
6352: INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
6353: -I\$(top_builddir)/tools/$OPENMOTIF/lib \
6354: -I\$(top_srcdir)/tools/$LIBXPM/include"
6355: BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
6356:
6357: if test $RECURSIVE = yes; then
6358:
6359:
6360: subdirs="$subdirs tools/$LIBXPM"
6361:
6362: subdirs="$subdirs tools/$OPENMOTIF"
6363:
6364: fi;
6365: fi
6366:
6367: # Check whether --enable-experimental was given.
6368: if test "${enable_experimental+set}" = set; then :
6369: enableval=$enable_experimental;
6370: if test "$enableval" = "no"; then
6371: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6372: else
6373: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6374: fi
6375: else
6376: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6377: fi
6378:
6379:
6380: # Check whether --enable-debug was given.
6381: if test "${enable_debug+set}" = set; then :
6382: enableval=$enable_debug;
6383: if test "$enableval" = "no"; then
6384: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6385: else
6386: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6387: fi
6388: else
6389: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6390: fi
6391:
6392:
6393: # Check whether --enable-profile was given.
6394: if test "${enable_profile+set}" = set; then :
6395: enableval=$enable_profile;
6396: if test "$enableval" = "no"; then
6397: PROFILAGE=""
6398: else
6399: PROFILAGE="-pg"
6400: fi
6401: else
6402: PROFILAGE=""
6403: fi
6404:
6405:
6406:
6407:
6408: if test ! -d tools; then
6409: mkdir tools
6410: fi
6411: if test ! -d "$srcdir"/tools/$NCURSES; then
6412: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6413: (cd "$srcdir/tools" && tar -xf -)
6414: (cd "$srcdir/tools/"$NCURSES && \
6415: for i in ../$NCURSES*.sh.gz;
6416: do TMP=$i; gunzip -c $i > ${TMP%.*};
6417: done;
6418: for i in ../$NCURSES*.sh;
6419: do chmod 775 $i && ./$i;
6420: done;
6421: for i in ../$NCURSES*.patch.gz;
6422: do gunzip -c $i | patch -p1;
6423: done);
6424: fi
6425: if test ! -d "$srcdir"/tools/$READLINE; then
6426: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6427: (cd "$srcdir/tools" && tar -xf -)
6428: fi
6429: if test ! -d "$srcdir"/tools/$UNITS; then
6430: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6431: (cd "$srcdir/tools" && tar -xf -)
6432: fi
6433: if test ! -d "$srcdir"/tools/$GSL; then
6434: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6435: (cd "$srcdir/tools" && tar -xf -)
6436: if test $(uname) = "OS/2"; then
6437: (cd "$srcdir"/tools/$GSL; \
6438: TMP=$(mktemp tmp.XXXXXXXXXX); \
6439: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6440: \mv -f $TMP ltmain.sh)
6441: fi
6442: fi
6443: if test ! -d "$srcdir"/tools/$GPP; then
6444: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6445: (cd "$srcdir/tools" && tar -xf -)
6446: fi
6447: if test ! -d "$srcdir"/tools/$FILE; then
6448: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6449: (cd "$srcdir/tools" && tar -xf - )
6450: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6451: fi
6452: if test ! -d "$srcdir"/tools/$ICONV; then
6453: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6454: (cd "$srcdir/tools" && tar -xf -)
6455: fi
6456: if test ! -d "$srcdir"/tools/$SQLITE; then
6457: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6458: (cd "$srcdir/tools" && tar -xf -)
6459: fi
6460: if test ! -d "$srcdir"/tools/$SIGSEGV; then
6461: gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
6462: (cd "$srcdir/tools" && tar -xf -)
6463: fi
6464: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
6465: gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
6466: (cd "$srcdir/tools" && tar -xf -)
6467: fi
6468: if test ! -d "$srcdir"/tools/$LIBXPM; then
6469: gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
6470: (cd "$srcdir/tools" && tar -xf -)
6471: fi
6472: if test ! -d tools/$OPENSSL; then
6473: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6474: (cd tools && tar -xf -)
6475: fi
6476: if test ! -d rplcas; then
6477: mkdir rplcas
6478: fi
6479: if test ! -d "$srcdir"/rplcas/$GMP; then
6480: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
6481: (cd "$srcdir/rplcas" && tar -xf -)
6482: fi
6483: if test ! -d "$srcdir"/rplcas/$MPFR; then
6484: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
6485: (cd "$srcdir/rplcas" && tar -xf -)
6486: fi
6487: if test ! -d rplcas/$NTL; then
6488: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
6489: (cd rplcas && tar -xf -)
6490: fi
6491: if test ! -d rplcas/$COCOA; then
6492: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
6493: (cd rplcas && tar -xf -)
6494: fi
6495: if test ! -d rplcas/$PARI; then
6496: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
6497: (cd rplcas && tar -xf -)
6498: fi
6499: if test ! -d "$srcdir"/rplcas/$GIAC; then
6500: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
6501: (cd "$srcdir/rplcas" && tar -xf -)
6502: fi
6503:
6504: touch tools/openmotif.lib
6505:
6506:
6507:
6508: # Check whether --enable-final-run-path was given.
6509: if test "${enable_final_run_path+set}" = set; then :
6510: enableval=$enable_final_run_path;
6511: if test "x$enable_final_run_path" = "x"; then
6512: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6513: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6514: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
6515: else
6516: RUNPATH="$enable_final_run_path"
6517: fi
6518:
6519: else
6520: RUNPATH="\${prefix}"
6521:
6522: fi
6523:
6524:
6525:
6526:
6527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6528: $as_echo_n "checking whether ln -s works... " >&6; }
6529: LN_S=$as_ln_s
6530: if test "$LN_S" = "ln -s"; then
6531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532: $as_echo "yes" >&6; }
6533: else
6534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6535: $as_echo "no, using $LN_S" >&6; }
6536: fi
6537:
6538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6539: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6540: set x ${MAKE-make}
6541: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6542: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6543: $as_echo_n "(cached) " >&6
6544: else
6545: cat >conftest.make <<\_ACEOF
6546: SHELL = /bin/sh
6547: all:
6548: @echo '@@@%%%=$(MAKE)=@@@%%%'
6549: _ACEOF
6550: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6551: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6552: *@@@%%%=?*=@@@%%%*)
6553: eval ac_cv_prog_make_${ac_make}_set=yes;;
6554: *)
6555: eval ac_cv_prog_make_${ac_make}_set=no;;
6556: esac
6557: rm -f conftest.make
6558: fi
6559: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6561: $as_echo "yes" >&6; }
6562: SET_MAKE=
6563: else
6564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565: $as_echo "no" >&6; }
6566: SET_MAKE="MAKE=${MAKE-make}"
6567: fi
6568:
6569: if test -n "$ac_tool_prefix"; then
6570: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6571: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573: $as_echo_n "checking for $ac_word... " >&6; }
6574: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6575: $as_echo_n "(cached) " >&6
6576: else
6577: if test -n "$RANLIB"; then
6578: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6579: else
6580: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581: for as_dir in $PATH
6582: do
6583: IFS=$as_save_IFS
6584: test -z "$as_dir" && as_dir=.
6585: for ac_exec_ext in '' $ac_executable_extensions; do
6586: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6588: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589: break 2
6590: fi
6591: done
6592: done
6593: IFS=$as_save_IFS
6594:
6595: fi
6596: fi
6597: RANLIB=$ac_cv_prog_RANLIB
6598: if test -n "$RANLIB"; then
6599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6600: $as_echo "$RANLIB" >&6; }
6601: else
6602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603: $as_echo "no" >&6; }
6604: fi
6605:
6606:
6607: fi
6608: if test -z "$ac_cv_prog_RANLIB"; then
6609: ac_ct_RANLIB=$RANLIB
6610: # Extract the first word of "ranlib", so it can be a program name with args.
6611: set dummy ranlib; ac_word=$2
6612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613: $as_echo_n "checking for $ac_word... " >&6; }
6614: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6615: $as_echo_n "(cached) " >&6
6616: else
6617: if test -n "$ac_ct_RANLIB"; then
6618: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619: else
6620: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621: for as_dir in $PATH
6622: do
6623: IFS=$as_save_IFS
6624: test -z "$as_dir" && as_dir=.
6625: for ac_exec_ext in '' $ac_executable_extensions; do
6626: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627: ac_cv_prog_ac_ct_RANLIB="ranlib"
6628: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629: break 2
6630: fi
6631: done
6632: done
6633: IFS=$as_save_IFS
6634:
6635: fi
6636: fi
6637: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638: if test -n "$ac_ct_RANLIB"; then
6639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6640: $as_echo "$ac_ct_RANLIB" >&6; }
6641: else
6642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643: $as_echo "no" >&6; }
6644: fi
6645:
6646: if test "x$ac_ct_RANLIB" = x; then
6647: RANLIB=":"
6648: else
6649: case $cross_compiling:$ac_tool_warned in
6650: yes:)
6651: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653: ac_tool_warned=yes ;;
6654: esac
6655: RANLIB=$ac_ct_RANLIB
6656: fi
6657: else
6658: RANLIB="$ac_cv_prog_RANLIB"
6659: fi
6660:
6661:
6662: # Extract the first word of "nawk", so it can be a program name with args.
6663: set dummy nawk; ac_word=$2
6664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665: $as_echo_n "checking for $ac_word... " >&6; }
6666: if test "${ac_cv_prog_AWK+set}" = set; then :
6667: $as_echo_n "(cached) " >&6
6668: else
6669: if test -n "$AWK"; then
6670: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6671: else
6672: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673: for as_dir in $PATH
6674: do
6675: IFS=$as_save_IFS
6676: test -z "$as_dir" && as_dir=.
6677: for ac_exec_ext in '' $ac_executable_extensions; do
6678: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679: ac_cv_prog_AWK="yes"
6680: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681: break 2
6682: fi
6683: done
6684: done
6685: IFS=$as_save_IFS
6686:
6687: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6688: fi
6689: fi
6690: AWK=$ac_cv_prog_AWK
6691: if test -n "$AWK"; then
6692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6693: $as_echo "$AWK" >&6; }
6694: else
6695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696: $as_echo "no" >&6; }
6697: fi
6698:
6699:
6700: if test "$AWK" = no; then
6701: # Extract the first word of "gawk", so it can be a program name with args.
6702: set dummy gawk; ac_word=$2
6703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704: $as_echo_n "checking for $ac_word... " >&6; }
6705: if test "${ac_cv_prog_AWK+set}" = set; then :
6706: $as_echo_n "(cached) " >&6
6707: else
6708: if test -n "$AWK"; then
6709: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6710: else
6711: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712: for as_dir in $PATH
6713: do
6714: IFS=$as_save_IFS
6715: test -z "$as_dir" && as_dir=.
6716: for ac_exec_ext in '' $ac_executable_extensions; do
6717: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718: ac_cv_prog_AWK="yes"
6719: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720: break 2
6721: fi
6722: done
6723: done
6724: IFS=$as_save_IFS
6725:
6726: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6727: fi
6728: fi
6729: AWK=$ac_cv_prog_AWK
6730: if test -n "$AWK"; then
6731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6732: $as_echo "$AWK" >&6; }
6733: else
6734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735: $as_echo "no" >&6; }
6736: fi
6737:
6738:
6739: if test "$AWK" = no; then
6740: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6741: fi
6742: fi
6743:
6744: # Extract the first word of "sed", so it can be a program name with args.
6745: set dummy sed; ac_word=$2
6746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747: $as_echo_n "checking for $ac_word... " >&6; }
6748: if test "${ac_cv_prog_SED+set}" = set; then :
6749: $as_echo_n "(cached) " >&6
6750: else
6751: if test -n "$SED"; then
6752: ac_cv_prog_SED="$SED" # Let the user override the test.
6753: else
6754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755: for as_dir in $PATH
6756: do
6757: IFS=$as_save_IFS
6758: test -z "$as_dir" && as_dir=.
6759: for ac_exec_ext in '' $ac_executable_extensions; do
6760: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761: ac_cv_prog_SED="yes"
6762: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763: break 2
6764: fi
6765: done
6766: done
6767: IFS=$as_save_IFS
6768:
6769: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6770: fi
6771: fi
6772: SED=$ac_cv_prog_SED
6773: if test -n "$SED"; then
6774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6775: $as_echo "$SED" >&6; }
6776: else
6777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778: $as_echo "no" >&6; }
6779: fi
6780:
6781:
6782: if test "$SED" = no; then
6783: as_fn_error $? "Can not find sed !" "$LINENO" 5
6784: fi
6785:
6786: if test "$TEX_SUPPORT" = guessed; then
6787: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6788:
6789: # Extract the first word of "tex", so it can be a program name with args.
6790: set dummy tex; ac_word=$2
6791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792: $as_echo_n "checking for $ac_word... " >&6; }
6793: if test "${ac_cv_prog_TEX+set}" = set; then :
6794: $as_echo_n "(cached) " >&6
6795: else
6796: if test -n "$TEX"; then
6797: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6798: else
6799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800: for as_dir in $PATH
6801: do
6802: IFS=$as_save_IFS
6803: test -z "$as_dir" && as_dir=.
6804: for ac_exec_ext in '' $ac_executable_extensions; do
6805: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806: ac_cv_prog_TEX="yes"
6807: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808: break 2
6809: fi
6810: done
6811: done
6812: IFS=$as_save_IFS
6813:
6814: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6815: fi
6816: fi
6817: TEX=$ac_cv_prog_TEX
6818: if test -n "$TEX"; then
6819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6820: $as_echo "$TEX" >&6; }
6821: else
6822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823: $as_echo "no" >&6; }
6824: fi
6825:
6826:
6827: if test "$TEX" = no; then
6828: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6829: Download at http://tex.loria.fr/
6830: " >&5
6831: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6832: Download at http://tex.loria.fr/
6833: " >&2;}
6834: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6835: fi
6836:
6837: # Extract the first word of "latex", so it can be a program name with args.
6838: set dummy latex; ac_word=$2
6839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840: $as_echo_n "checking for $ac_word... " >&6; }
6841: if test "${ac_cv_prog_LATEX+set}" = set; then :
6842: $as_echo_n "(cached) " >&6
6843: else
6844: if test -n "$LATEX"; then
6845: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6846: else
6847: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848: for as_dir in $PATH
6849: do
6850: IFS=$as_save_IFS
6851: test -z "$as_dir" && as_dir=.
6852: for ac_exec_ext in '' $ac_executable_extensions; do
6853: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854: ac_cv_prog_LATEX="yes"
6855: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856: break 2
6857: fi
6858: done
6859: done
6860: IFS=$as_save_IFS
6861:
6862: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6863: fi
6864: fi
6865: LATEX=$ac_cv_prog_LATEX
6866: if test -n "$LATEX"; then
6867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6868: $as_echo "$LATEX" >&6; }
6869: else
6870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871: $as_echo "no" >&6; }
6872: fi
6873:
6874:
6875: if test "$LATEX" = no; then
6876: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6877: Download at http://tex.loria.fr/
6878: " >&5
6879: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6880: Download at http://tex.loria.fr/
6881: " >&2;}
6882: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6883: fi
6884:
6885: # Extract the first word of "dvips", so it can be a program name with args.
6886: set dummy dvips; ac_word=$2
6887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888: $as_echo_n "checking for $ac_word... " >&6; }
6889: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6890: $as_echo_n "(cached) " >&6
6891: else
6892: if test -n "$DVIPS"; then
6893: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6894: else
6895: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896: for as_dir in $PATH
6897: do
6898: IFS=$as_save_IFS
6899: test -z "$as_dir" && as_dir=.
6900: for ac_exec_ext in '' $ac_executable_extensions; do
6901: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902: ac_cv_prog_DVIPS="yes"
6903: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904: break 2
6905: fi
6906: done
6907: done
6908: IFS=$as_save_IFS
6909:
6910: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6911: fi
6912: fi
6913: DVIPS=$ac_cv_prog_DVIPS
6914: if test -n "$DVIPS"; then
6915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6916: $as_echo "$DVIPS" >&6; }
6917: else
6918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919: $as_echo "no" >&6; }
6920: fi
6921:
6922:
6923: if test "$DVIPS" = no; then
6924: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6925: Download at http://tex.loria.fr/
6926: " >&5
6927: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6928: Download at http://tex.loria.fr/
6929: " >&2;}
6930: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6931: fi
6932:
6933: # Extract the first word of "gs", so it can be a program name with args.
6934: set dummy gs; ac_word=$2
6935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936: $as_echo_n "checking for $ac_word... " >&6; }
6937: if test "${ac_cv_prog_GS+set}" = set; then :
6938: $as_echo_n "(cached) " >&6
6939: else
6940: if test -n "$GS"; then
6941: ac_cv_prog_GS="$GS" # Let the user override the test.
6942: else
6943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944: for as_dir in $PATH
6945: do
6946: IFS=$as_save_IFS
6947: test -z "$as_dir" && as_dir=.
6948: for ac_exec_ext in '' $ac_executable_extensions; do
6949: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950: ac_cv_prog_GS="yes"
6951: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952: break 2
6953: fi
6954: done
6955: done
6956: IFS=$as_save_IFS
6957:
6958: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6959: fi
6960: fi
6961: GS=$ac_cv_prog_GS
6962: if test -n "$GS"; then
6963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6964: $as_echo "$GS" >&6; }
6965: else
6966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967: $as_echo "no" >&6; }
6968: fi
6969:
6970:
6971: if test "$GS" = no; then
6972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6973: Download at http://ftp.lip6.fr/
6974: " >&5
6975: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6976: Download at http://ftp.lip6.fr/
6977: " >&2;}
6978: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6979: fi
6980:
6981: # Extract the first word of "gv", so it can be a program name with args.
6982: set dummy gv; ac_word=$2
6983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984: $as_echo_n "checking for $ac_word... " >&6; }
6985: if test "${ac_cv_prog_GV+set}" = set; then :
6986: $as_echo_n "(cached) " >&6
6987: else
6988: if test -n "$GV"; then
6989: ac_cv_prog_GV="$GV" # Let the user override the test.
6990: else
6991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992: for as_dir in $PATH
6993: do
6994: IFS=$as_save_IFS
6995: test -z "$as_dir" && as_dir=.
6996: for ac_exec_ext in '' $ac_executable_extensions; do
6997: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998: ac_cv_prog_GV="yes"
6999: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000: break 2
7001: fi
7002: done
7003: done
7004: IFS=$as_save_IFS
7005:
7006: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
7007: fi
7008: fi
7009: GV=$ac_cv_prog_GV
7010: if test -n "$GV"; then
7011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
7012: $as_echo "$GV" >&6; }
7013: else
7014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015: $as_echo "no" >&6; }
7016: fi
7017:
7018:
7019: if test "$GV" = no; then
7020: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
7021: Download at http://ftp.lip6.fr/
7022: " >&5
7023: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
7024: Download at http://ftp.lip6.fr/
7025: " >&2;}
7026: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
7027: fi
7028: else
7029: if test "$TEX_SUPPORT" = no; then
7030: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
7031: else
7032: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
7033: fi
7034: fi
7035:
7036: if test "$GNUPLOT_SUPPORT" = guessed; then
7037: # Extract the first word of "gnuplot", so it can be a program name with args.
7038: set dummy gnuplot; ac_word=$2
7039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040: $as_echo_n "checking for $ac_word... " >&6; }
7041: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
7042: $as_echo_n "(cached) " >&6
7043: else
7044: if test -n "$GNUPLOT_P"; then
7045: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
7046: else
7047: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048: for as_dir in $PATH
7049: do
7050: IFS=$as_save_IFS
7051: test -z "$as_dir" && as_dir=.
7052: for ac_exec_ext in '' $ac_executable_extensions; do
7053: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054: ac_cv_prog_GNUPLOT_P="yes"
7055: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056: break 2
7057: fi
7058: done
7059: done
7060: IFS=$as_save_IFS
7061:
7062: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
7063: fi
7064: fi
7065: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
7066: if test -n "$GNUPLOT_P"; then
7067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
7068: $as_echo "$GNUPLOT_P" >&6; }
7069: else
7070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071: $as_echo "no" >&6; }
7072: fi
7073:
7074:
7075: if test "$GNUPLOT_P" = no; then
7076: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
7077: Download at http://www.gnuplot.vt.edu/
7078: " >&5
7079: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
7080: Download at http://www.gnuplot.vt.edu/
7081: " >&2;}
7082: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
7083: else
7084: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
7085: fi
7086: else
7087: if test "$GNUPLOT_SUPPORT" = no; then
7088: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
7089: else
7090: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
7091: fi
7092: fi
7093:
7094: if test "$VIM_SUPPORT" = guessed; then
7095: # Extract the first word of "vim", so it can be a program name with args.
7096: set dummy vim; ac_word=$2
7097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098: $as_echo_n "checking for $ac_word... " >&6; }
7099: if test "${ac_cv_prog_VIM+set}" = set; then :
7100: $as_echo_n "(cached) " >&6
7101: else
7102: if test -n "$VIM"; then
7103: ac_cv_prog_VIM="$VIM" # Let the user override the test.
7104: else
7105: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106: for as_dir in $PATH
7107: do
7108: IFS=$as_save_IFS
7109: test -z "$as_dir" && as_dir=.
7110: for ac_exec_ext in '' $ac_executable_extensions; do
7111: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112: ac_cv_prog_VIM="yes"
7113: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114: break 2
7115: fi
7116: done
7117: done
7118: IFS=$as_save_IFS
7119:
7120: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
7121: fi
7122: fi
7123: VIM=$ac_cv_prog_VIM
7124: if test -n "$VIM"; then
7125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
7126: $as_echo "$VIM" >&6; }
7127: else
7128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129: $as_echo "no" >&6; }
7130: fi
7131:
7132:
7133: if test "$VIM" = no; then
7134: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
7135: Download at http://www.vim.org/
7136: " >&5
7137: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
7138: Download at http://www.vim.org/
7139: " >&2;}
7140: VIM_SUPPORT="-UVIM_SUPPORT"
7141: else
7142: VIM_SUPPORT="-DVIM_SUPPORT"
7143: fi
7144: else
7145: if test "$VIM_SUPPORT" = no; then
7146: VIM_SUPPORT="-UVIM_SUPPORT"
7147: else
7148: VIM_SUPPORT="-DVIM_SUPPORT"
7149: fi
7150: fi
7151:
7152:
7153:
7154:
7155:
7156:
7157:
7158:
7159:
7160:
7161:
7162: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7163:
7164:
7165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7166: $as_echo_n "checking for main in -lm... " >&6; }
7167: if test "${ac_cv_lib_m_main+set}" = set; then :
7168: $as_echo_n "(cached) " >&6
7169: else
7170: ac_check_lib_save_LIBS=$LIBS
7171: LIBS="-lm $LIBS"
7172: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173: /* end confdefs.h. */
7174:
7175:
7176: int
7177: main ()
7178: {
7179: return main ();
7180: ;
7181: return 0;
7182: }
7183: _ACEOF
7184: if ac_fn_c_try_link "$LINENO"; then :
7185: ac_cv_lib_m_main=yes
7186: else
7187: ac_cv_lib_m_main=no
7188: fi
7189: rm -f core conftest.err conftest.$ac_objext \
7190: conftest$ac_exeext conftest.$ac_ext
7191: LIBS=$ac_check_lib_save_LIBS
7192: fi
7193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7194: $as_echo "$ac_cv_lib_m_main" >&6; }
7195: if test "x$ac_cv_lib_m_main" = x""yes; then :
7196: cat >>confdefs.h <<_ACEOF
7197: #define HAVE_LIBM 1
7198: _ACEOF
7199:
7200: LIBS="-lm $LIBS"
7201:
7202: else
7203: as_fn_error $? "Can not find libm !" "$LINENO" 5
7204: fi
7205:
7206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
7207: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
7208: if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then :
7209: $as_echo_n "(cached) " >&6
7210: else
7211: ac_check_lib_save_LIBS=$LIBS
7212: LIBS="-lc $LIBS"
7213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214: /* end confdefs.h. */
7215:
7216: /* Override any GCC internal prototype to avoid an error.
7217: Use char because int might match the return type of a GCC
7218: builtin and then its argument prototype would still apply. */
7219: #ifdef __cplusplus
7220: extern "C"
7221: #endif
7222: char pthread_mutex_init ();
7223: int
7224: main ()
7225: {
7226: return pthread_mutex_init ();
7227: ;
7228: return 0;
7229: }
7230: _ACEOF
7231: if ac_fn_c_try_link "$LINENO"; then :
7232: ac_cv_lib_c_pthread_mutex_init=yes
7233: else
7234: ac_cv_lib_c_pthread_mutex_init=no
7235: fi
7236: rm -f core conftest.err conftest.$ac_objext \
7237: conftest$ac_exeext conftest.$ac_ext
7238: LIBS=$ac_check_lib_save_LIBS
7239: fi
7240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
7241: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
7242: if test "x$ac_cv_lib_c_pthread_mutex_init" = x""yes; then :
7243: cat >>confdefs.h <<_ACEOF
7244: #define HAVE_LIBC 1
7245: _ACEOF
7246:
7247: LIBS="-lc $LIBS"
7248:
7249: else
7250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7251: $as_echo_n "checking for main in -lpthread... " >&6; }
7252: if test "${ac_cv_lib_pthread_main+set}" = set; then :
7253: $as_echo_n "(cached) " >&6
7254: else
7255: ac_check_lib_save_LIBS=$LIBS
7256: LIBS="-lpthread $LIBS"
7257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258: /* end confdefs.h. */
7259:
7260:
7261: int
7262: main ()
7263: {
7264: return main ();
7265: ;
7266: return 0;
7267: }
7268: _ACEOF
7269: if ac_fn_c_try_link "$LINENO"; then :
7270: ac_cv_lib_pthread_main=yes
7271: else
7272: ac_cv_lib_pthread_main=no
7273: fi
7274: rm -f core conftest.err conftest.$ac_objext \
7275: conftest$ac_exeext conftest.$ac_ext
7276: LIBS=$ac_check_lib_save_LIBS
7277: fi
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7279: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7280: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7281: cat >>confdefs.h <<_ACEOF
7282: #define HAVE_LIBPTHREAD 1
7283: _ACEOF
7284:
7285: LIBS="-lpthread $LIBS"
7286:
7287: else
7288: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
7289: fi
7290:
7291: fi
7292:
7293:
7294: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
7295: #include <sys/sem.h>
7296:
7297: "
7298: if test "x$ac_cv_type_union_semun" = x""yes; then :
7299: SEMUN=-DUNION_SEMUN
7300: else
7301: SEMUN=-UUNION_SEMUN
7302: fi
7303:
7304:
7305: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7306: #include <sys/types.h>
7307: #include <netinet/in.h>
7308:
7309: "
7310: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
7311: IPV6=-DIPV6
7312: else
7313: IPV6=-UIPV6
7314: fi
7315:
7316:
7317: if test "$CYGWIN" != yes; then
7318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7319: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7320: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7321: $as_echo_n "(cached) " >&6
7322: else
7323: ac_check_lib_save_LIBS=$LIBS
7324: LIBS="-ldl $LIBS"
7325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326: /* end confdefs.h. */
7327:
7328: /* Override any GCC internal prototype to avoid an error.
7329: Use char because int might match the return type of a GCC
7330: builtin and then its argument prototype would still apply. */
7331: #ifdef __cplusplus
7332: extern "C"
7333: #endif
7334: char dlopen ();
7335: int
7336: main ()
7337: {
7338: return dlopen ();
7339: ;
7340: return 0;
7341: }
7342: _ACEOF
7343: if ac_fn_c_try_link "$LINENO"; then :
7344: ac_cv_lib_dl_dlopen=yes
7345: else
7346: ac_cv_lib_dl_dlopen=no
7347: fi
7348: rm -f core conftest.err conftest.$ac_objext \
7349: conftest$ac_exeext conftest.$ac_ext
7350: LIBS=$ac_check_lib_save_LIBS
7351: fi
7352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7353: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7354: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7355: LIBS="$LIBS -ldl"
7356: else
7357: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7358: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7359: fi
7360:
7361: fi
7362:
7363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7364: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7365: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7366: $as_echo_n "(cached) " >&6
7367: else
7368: ac_check_lib_save_LIBS=$LIBS
7369: LIBS="-lrt $LIBS"
7370: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371: /* end confdefs.h. */
7372:
7373: /* Override any GCC internal prototype to avoid an error.
7374: Use char because int might match the return type of a GCC
7375: builtin and then its argument prototype would still apply. */
7376: #ifdef __cplusplus
7377: extern "C"
7378: #endif
7379: char nanosleep ();
7380: int
7381: main ()
7382: {
7383: return nanosleep ();
7384: ;
7385: return 0;
7386: }
7387: _ACEOF
7388: if ac_fn_c_try_link "$LINENO"; then :
7389: ac_cv_lib_rt_nanosleep=yes
7390: else
7391: ac_cv_lib_rt_nanosleep=no
7392: fi
7393: rm -f core conftest.err conftest.$ac_objext \
7394: conftest$ac_exeext conftest.$ac_ext
7395: LIBS=$ac_check_lib_save_LIBS
7396: fi
7397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7398: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7399: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7400: LIBS="$LIBS -lrt"
7401: else
7402: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7403: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7404: fi
7405:
7406:
7407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7408: $as_echo_n "checking for bind in -lsocket... " >&6; }
7409: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7410: $as_echo_n "(cached) " >&6
7411: else
7412: ac_check_lib_save_LIBS=$LIBS
7413: LIBS="-lsocket $LIBS"
7414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415: /* end confdefs.h. */
7416:
7417: /* Override any GCC internal prototype to avoid an error.
7418: Use char because int might match the return type of a GCC
7419: builtin and then its argument prototype would still apply. */
7420: #ifdef __cplusplus
7421: extern "C"
7422: #endif
7423: char bind ();
7424: int
7425: main ()
7426: {
7427: return bind ();
7428: ;
7429: return 0;
7430: }
7431: _ACEOF
7432: if ac_fn_c_try_link "$LINENO"; then :
7433: ac_cv_lib_socket_bind=yes
7434: else
7435: ac_cv_lib_socket_bind=no
7436: fi
7437: rm -f core conftest.err conftest.$ac_objext \
7438: conftest$ac_exeext conftest.$ac_ext
7439: LIBS=$ac_check_lib_save_LIBS
7440: fi
7441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7442: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7443: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7444: LIBS="$LIBS -lsocket"
7445: else
7446: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7447: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7448: fi
7449:
7450:
7451: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7452:
7453: # Check whether --with-mysql was given.
7454: if test "${with_mysql+set}" = set; then :
7455: withval=$with_mysql;
7456: else
7457: with_mysql=check
7458: fi
7459:
7460:
7461: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7462: libMySQLinc="-I/usr/include"
7463: libMySQLlib="/usr/lib"
7464:
7465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7466: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7467: saved_CFLAGS="$CFLAGS"
7468: CFLAGS="$CFLAGS -L/$libMySQLinc"
7469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470: /* end confdefs.h. */
7471: #include "mysql.h"
7472: int
7473: main ()
7474: {
7475:
7476: ;
7477: return 0;
7478: }
7479: _ACEOF
7480: if ac_fn_c_try_compile "$LINENO"; then :
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7482: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7483: libMySQLinc=$libMySQLinc/mysql
7484: else
7485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7487: fi
7488: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489: CFLAGS=$saved_CFLAGS
7490:
7491: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7493: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7494: saved_CFLAGS="$CFLAGS"
7495: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497: /* end confdefs.h. */
7498: #include "mysql.h"
7499: int
7500: main ()
7501: {
7502:
7503: ;
7504: return 0;
7505: }
7506: _ACEOF
7507: if ac_fn_c_try_compile "$LINENO"; then :
7508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7509: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7510: libMySQLinc=$libMySQLinc
7511: else
7512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7514: fi
7515: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516: CFLAGS=$saved_CFLAGS
7517: libMySQLinc=$libMySQLinc/mysql
7518: fi
7519:
7520: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7522: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7523: saved_CFLAGS="$CFLAGS"
7524: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526: /* end confdefs.h. */
7527: #include "mysql.h"
7528: int
7529: main ()
7530: {
7531:
7532: ;
7533: return 0;
7534: }
7535: _ACEOF
7536: if ac_fn_c_try_compile "$LINENO"; then :
7537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7538: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7539: libMySQLinc=$libMySQLinc/mysql
7540: else
7541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7543: fi
7544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545: CFLAGS=$saved_CFLAGS
7546: libMySQLinc=$libMySQLinc/../local/include
7547: libMySQLlib=$libMySQLlib/../local/lib
7548: fi
7549:
7550: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7552: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7553: saved_CFLAGS="$CFLAGS"
7554: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556: /* end confdefs.h. */
7557: #include "mysql.h"
7558: int
7559: main ()
7560: {
7561:
7562: ;
7563: return 0;
7564: }
7565: _ACEOF
7566: if ac_fn_c_try_compile "$LINENO"; then :
7567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7569: libMySQLinc=$libMySQLinc/mysql
7570: else
7571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7573: fi
7574: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575: CFLAGS=$saved_CFLAGS
7576: libMySQLinc=$libMySQLinc/../local/include/mysql
7577: libMySQLlib=$libMySQLlib/../local/lib
7578: fi
7579: else
7580: if test "x$with_mysql" != xno; then
7581: libMySQLinc="-I$with_mysql/include"
7582: libMySQLlib="$with_mysql/lib"
7583:
7584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7585: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7586: saved_CFLAGS="$CFLAGS"
7587: CFLAGS="$CFLAGS $libMySQLinc"
7588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589: /* end confdefs.h. */
7590: #include "mysql.h"
7591: int
7592: main ()
7593: {
7594:
7595: ;
7596: return 0;
7597: }
7598: _ACEOF
7599: if ac_fn_c_try_compile "$LINENO"; then :
7600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7602: libMySQLinc=$libMySQLinc/mysql
7603: else
7604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7606: fi
7607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608: CFLAGS=$saved_CFLAGS
7609:
7610: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7612: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7613: saved_CFLAGS="$CFLAGS"
7614: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616: /* end confdefs.h. */
7617: #include "mysql.h"
7618: int
7619: main ()
7620: {
7621:
7622: ;
7623: return 0;
7624: }
7625: _ACEOF
7626: if ac_fn_c_try_compile "$LINENO"; then :
7627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7628: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7629: libMySQLinc=$libMySQLinc
7630: else
7631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7633: fi
7634: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635: CFLAGS=$saved_CFLAGS
7636: libMySQLinc=$libMySQLinc/mysql
7637: fi
7638: else
7639: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7640: fi
7641: fi
7642:
7643: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7644: MYSQL_LIB=no
7645:
7646: if test $MYSQL_LIB = no; then
7647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7648: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7649: saved_LIBS="$LIBS"
7650: if test $STATIC = no; then
7651: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7652: else
7653: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7654: fi
7655: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656: /* end confdefs.h. */
7657: #include "mysql.h"
7658: int
7659: main ()
7660: {
7661: MYSQL mysql; mysql_init(&mysql);
7662: ;
7663: return 0;
7664: }
7665: _ACEOF
7666: if ac_fn_c_try_link "$LINENO"; then :
7667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7669: else
7670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671: $as_echo "no" >&6; }; MYSQL_LIB="no"
7672: fi
7673: rm -f core conftest.err conftest.$ac_objext \
7674: conftest$ac_exeext conftest.$ac_ext
7675: LIBS=$saved_LIBS;
7676: if test $STATIC = no; then
7677: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7678: else
7679: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7680: EXT_SQL="$EXT_SQL $libMySQLlib"
7681: fi
7682: fi
7683:
7684: if test $MYSQL_LIB = no; then
7685: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7686: fi
7687: fi
7688:
7689: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7690: libMySQLinc=
7691: libMySQLlib=
7692: fi
7693:
7694:
7695:
7696:
7697:
7698: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7699:
7700: # Check whether --with-postgresql was given.
7701: if test "${with_postgresql+set}" = set; then :
7702: withval=$with_postgresql;
7703: else
7704: with_postgresql=check
7705: fi
7706:
7707:
7708: # with_postgresql : check [pas défini], yes [uniquement --with],
7709: # no [--without], valeur [--with=valeur].
7710:
7711: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7712: libPgSQLinc="-I/usr/include"
7713: libPgSQLlib="/usr/lib"
7714:
7715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7716: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7717: saved_CFLAGS="$CFLAGS"
7718: CFLAGS="$CFLAGS $libPgSQLinc"
7719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720: /* end confdefs.h. */
7721: #include "libpq-fe.h"
7722: int
7723: main ()
7724: {
7725:
7726: ;
7727: return 0;
7728: }
7729: _ACEOF
7730: if ac_fn_c_try_compile "$LINENO"; then :
7731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7732: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7733: else
7734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7736: fi
7737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738: CFLAGS=$saved_CFLAGS
7739:
7740: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7742: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7743: saved_CFLAGS="$CFLAGS"
7744: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746: /* end confdefs.h. */
7747: #include "libpq-fe.h"
7748: int
7749: main ()
7750: {
7751:
7752: ;
7753: return 0;
7754: }
7755: _ACEOF
7756: if ac_fn_c_try_compile "$LINENO"; then :
7757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7758: $as_echo "yes" >&6; };
7759: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7760: else
7761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762: $as_echo "no" >&6; };
7763: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7764: fi
7765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766: CFLAGS=$saved_CFLAGS
7767: libPgSQLinc=$libPgSQLinc/postgresql
7768: fi
7769:
7770: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7772: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7773: saved_CFLAGS="$CFLAGS"
7774: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776: /* end confdefs.h. */
7777: #include "libpq-fe.h"
7778: int
7779: main ()
7780: {
7781:
7782: ;
7783: return 0;
7784: }
7785: _ACEOF
7786: if ac_fn_c_try_compile "$LINENO"; then :
7787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7788: $as_echo "yes" >&6; };
7789: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7790: else
7791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792: $as_echo "no" >&6; };
7793: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7794: fi
7795: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796: CFLAGS=$saved_CFLAGS
7797: libPgSQLinc=$libPgSQLinc/pgsql
7798: fi
7799:
7800: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7802: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7803: saved_CFLAGS="$CFLAGS"
7804: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806: /* end confdefs.h. */
7807: #include "libpq-fe.h"
7808: int
7809: main ()
7810: {
7811:
7812: ;
7813: return 0;
7814: }
7815: _ACEOF
7816: if ac_fn_c_try_compile "$LINENO"; then :
7817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7818: $as_echo "yes" >&6; };
7819: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7820: else
7821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822: $as_echo "no" >&6; };
7823: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7824: fi
7825: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826: CFLAGS=$saved_CFLAGS
7827: libPgSQLinc=$libPgSQLinc/../local/include
7828: libPgSQLlib=$libPgSQLlib/../local/lib
7829: fi
7830:
7831: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7833: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7834: saved_CFLAGS="$CFLAGS"
7835: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837: /* end confdefs.h. */
7838: #include "libpq-fe.h"
7839: int
7840: main ()
7841: {
7842:
7843: ;
7844: return 0;
7845: }
7846: _ACEOF
7847: if ac_fn_c_try_compile "$LINENO"; then :
7848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849: $as_echo "yes" >&6; };
7850: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7851: else
7852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853: $as_echo "no" >&6; };
7854: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7855: fi
7856: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857: CFLAGS=$saved_CFLAGS
7858: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7859: libPgSQLlib=$libPgSQLlib/../local/lib
7860: fi
7861:
7862: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7864: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7865: saved_CFLAGS="$CFLAGS"
7866: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868: /* end confdefs.h. */
7869: #include "libpq-fe.h"
7870: int
7871: main ()
7872: {
7873:
7874: ;
7875: return 0;
7876: }
7877: _ACEOF
7878: if ac_fn_c_try_compile "$LINENO"; then :
7879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7880: $as_echo "yes" >&6; };
7881: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7882: else
7883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884: $as_echo "no" >&6; };
7885: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7886: fi
7887: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888: CFLAGS=$saved_CFLAGS
7889: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7890: libPgSQLlib=$libPgSQLlib/../local/lib
7891: fi
7892: else
7893: if test "x$with_postgresql" != xno; then
7894: libPgSQLinc="-I$with_postgresql/include"
7895: libPgSQLlib="$with_postgresql/lib"
7896:
7897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7898: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7899: saved_CFLAGS="$CFLAGS"
7900: CFLAGS="$CFLAGS $libPgSQLinc"
7901: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902: /* end confdefs.h. */
7903: #include "libpq-fe.h"
7904: int
7905: main ()
7906: {
7907:
7908: ;
7909: return 0;
7910: }
7911: _ACEOF
7912: if ac_fn_c_try_compile "$LINENO"; then :
7913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914: $as_echo "yes" >&6; };
7915: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7916: else
7917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918: $as_echo "no" >&6; };
7919: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7920: fi
7921: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922: CFLAGS=$saved_CFLAGS
7923:
7924: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7926: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7927: saved_CFLAGS="$CFLAGS"
7928: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7929: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930: /* end confdefs.h. */
7931: #include "libpq-fe.h"
7932: int
7933: main ()
7934: {
7935:
7936: ;
7937: return 0;
7938: }
7939: _ACEOF
7940: if ac_fn_c_try_compile "$LINENO"; then :
7941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942: $as_echo "yes" >&6; };
7943: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7944: else
7945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946: $as_echo "no" >&6; };
7947: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7948: fi
7949: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950: CFLAGS=$saved_CFLAGS
7951: libPgSQLinc=$libPgSQLinc/postgresql
7952: fi
7953:
7954: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7956: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7957: saved_CFLAGS="$CFLAGS"
7958: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960: /* end confdefs.h. */
7961: #include "libpq-fe.h"
7962: int
7963: main ()
7964: {
7965:
7966: ;
7967: return 0;
7968: }
7969: _ACEOF
7970: if ac_fn_c_try_compile "$LINENO"; then :
7971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7972: $as_echo "yes" >&6; };
7973: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7974: else
7975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976: $as_echo "no" >&6; };
7977: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7978: fi
7979: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980: CFLAGS=$saved_CFLAGS
7981: libPgSQLinc=$libPgSQLinc/pgsql
7982: fi
7983: else
7984: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7985: fi
7986: fi
7987:
7988: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7989: POSTGRESQL_LIB=no
7990:
7991: if test $POSTGRESQL_LIB = no; then
7992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7993: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7994: saved_LIBS="$LIBS"
7995: if test $STATIC = no; then
7996: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7997: else
7998: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7999: fi
8000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001: /* end confdefs.h. */
8002: #include "libpq-fe.h"
8003: int
8004: main ()
8005: {
8006: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
8007: PQconnectdb(conninfo);
8008: ;
8009: return 0;
8010: }
8011: _ACEOF
8012: if ac_fn_c_try_link "$LINENO"; then :
8013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8014: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
8015: else
8016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
8018: fi
8019: rm -f core conftest.err conftest.$ac_objext \
8020: conftest$ac_exeext conftest.$ac_ext
8021: LIBS=$saved_LIBS;
8022: if test $STATIC = no; then
8023: libPgSQLlib="-L/$libPgSQLlib -lpq"
8024: else
8025: libPgSQLlib="$libPgSQLlib/libpq.a"
8026: EXT_SQL="$EXT_SQL $libPgSQLlib"
8027: fi
8028: fi
8029: fi
8030:
8031: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
8032: libPgSQLinc=
8033: libPgSQLlib=
8034: fi
8035:
8036:
8037:
8038:
8039:
8040: # with_postgresql : check [pas défini], yes [uniquement --with],
8041: # no [--without], valeur [--with=valeur].
8042:
8043: # Check whether --with-bourne_shell was given.
8044: if test "${with_bourne_shell+set}" = set; then :
8045: withval=$with_bourne_shell;
8046: else
8047: with_bourne_shell=no
8048: fi
8049:
8050:
8051: if test "x$with_bourne_shell" = xyes; then
8052: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
8053: fi
8054:
8055: if test "x$with_bourne_shell" = xno; then
8056: if test $(uname) = "OS/2"; then
8057: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
8058: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
8059: fi
8060:
8061: BSH_PATH=
8062: else
8063: if test ! -x $with_bourne_shell; then
8064: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
8065: fi
8066:
8067: if test $(uname) = "OS/2"; then
8068: with_os2_bourne_shell=$(echo $with_bourne_shell | \
8069: sed -e '1,$s/\//\\\\\\\\/g')
8070: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
8071: else
8072: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
8073: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
8074: BSH_PATH=
8075: fi
8076: fi
8077:
8078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8079: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8080: if test "${ac_cv_path_GREP+set}" = set; then :
8081: $as_echo_n "(cached) " >&6
8082: else
8083: if test -z "$GREP"; then
8084: ac_path_GREP_found=false
8085: # Loop through the user's path and test for each of PROGNAME-LIST
8086: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8088: do
8089: IFS=$as_save_IFS
8090: test -z "$as_dir" && as_dir=.
8091: for ac_prog in grep ggrep; do
8092: for ac_exec_ext in '' $ac_executable_extensions; do
8093: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8094: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8095: # Check for GNU ac_path_GREP and select it if it is found.
8096: # Check for GNU $ac_path_GREP
8097: case `"$ac_path_GREP" --version 2>&1` in
8098: *GNU*)
8099: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8100: *)
8101: ac_count=0
8102: $as_echo_n 0123456789 >"conftest.in"
8103: while :
8104: do
8105: cat "conftest.in" "conftest.in" >"conftest.tmp"
8106: mv "conftest.tmp" "conftest.in"
8107: cp "conftest.in" "conftest.nl"
8108: $as_echo 'GREP' >> "conftest.nl"
8109: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8110: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8111: as_fn_arith $ac_count + 1 && ac_count=$as_val
8112: if test $ac_count -gt ${ac_path_GREP_max-0}; then
8113: # Best one so far, save it but keep looking for a better one
8114: ac_cv_path_GREP="$ac_path_GREP"
8115: ac_path_GREP_max=$ac_count
8116: fi
8117: # 10*(2^10) chars as input seems more than enough
8118: test $ac_count -gt 10 && break
8119: done
8120: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8121: esac
8122:
8123: $ac_path_GREP_found && break 3
8124: done
8125: done
8126: done
8127: IFS=$as_save_IFS
8128: if test -z "$ac_cv_path_GREP"; then
8129: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8130: fi
8131: else
8132: ac_cv_path_GREP=$GREP
8133: fi
8134:
8135: fi
8136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8137: $as_echo "$ac_cv_path_GREP" >&6; }
8138: GREP="$ac_cv_path_GREP"
8139:
8140:
8141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8142: $as_echo_n "checking for egrep... " >&6; }
8143: if test "${ac_cv_path_EGREP+set}" = set; then :
8144: $as_echo_n "(cached) " >&6
8145: else
8146: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8147: then ac_cv_path_EGREP="$GREP -E"
8148: else
8149: if test -z "$EGREP"; then
8150: ac_path_EGREP_found=false
8151: # Loop through the user's path and test for each of PROGNAME-LIST
8152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8154: do
8155: IFS=$as_save_IFS
8156: test -z "$as_dir" && as_dir=.
8157: for ac_prog in egrep; do
8158: for ac_exec_ext in '' $ac_executable_extensions; do
8159: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8160: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8161: # Check for GNU ac_path_EGREP and select it if it is found.
8162: # Check for GNU $ac_path_EGREP
8163: case `"$ac_path_EGREP" --version 2>&1` in
8164: *GNU*)
8165: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8166: *)
8167: ac_count=0
8168: $as_echo_n 0123456789 >"conftest.in"
8169: while :
8170: do
8171: cat "conftest.in" "conftest.in" >"conftest.tmp"
8172: mv "conftest.tmp" "conftest.in"
8173: cp "conftest.in" "conftest.nl"
8174: $as_echo 'EGREP' >> "conftest.nl"
8175: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8176: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8177: as_fn_arith $ac_count + 1 && ac_count=$as_val
8178: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8179: # Best one so far, save it but keep looking for a better one
8180: ac_cv_path_EGREP="$ac_path_EGREP"
8181: ac_path_EGREP_max=$ac_count
8182: fi
8183: # 10*(2^10) chars as input seems more than enough
8184: test $ac_count -gt 10 && break
8185: done
8186: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8187: esac
8188:
8189: $ac_path_EGREP_found && break 3
8190: done
8191: done
8192: done
8193: IFS=$as_save_IFS
8194: if test -z "$ac_cv_path_EGREP"; then
8195: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8196: fi
8197: else
8198: ac_cv_path_EGREP=$EGREP
8199: fi
8200:
8201: fi
8202: fi
8203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8204: $as_echo "$ac_cv_path_EGREP" >&6; }
8205: EGREP="$ac_cv_path_EGREP"
8206:
8207:
8208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8209: $as_echo_n "checking for ANSI C header files... " >&6; }
8210: if test "${ac_cv_header_stdc+set}" = set; then :
8211: $as_echo_n "(cached) " >&6
8212: else
8213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214: /* end confdefs.h. */
8215: #include <stdlib.h>
8216: #include <stdarg.h>
8217: #include <string.h>
8218: #include <float.h>
8219:
8220: int
8221: main ()
8222: {
8223:
8224: ;
8225: return 0;
8226: }
8227: _ACEOF
8228: if ac_fn_c_try_compile "$LINENO"; then :
8229: ac_cv_header_stdc=yes
8230: else
8231: ac_cv_header_stdc=no
8232: fi
8233: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234:
8235: if test $ac_cv_header_stdc = yes; then
8236: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238: /* end confdefs.h. */
8239: #include <string.h>
8240:
8241: _ACEOF
8242: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243: $EGREP "memchr" >/dev/null 2>&1; then :
8244:
8245: else
8246: ac_cv_header_stdc=no
8247: fi
8248: rm -f conftest*
8249:
8250: fi
8251:
8252: if test $ac_cv_header_stdc = yes; then
8253: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8254: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255: /* end confdefs.h. */
8256: #include <stdlib.h>
8257:
8258: _ACEOF
8259: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8260: $EGREP "free" >/dev/null 2>&1; then :
8261:
8262: else
8263: ac_cv_header_stdc=no
8264: fi
8265: rm -f conftest*
8266:
8267: fi
8268:
8269: if test $ac_cv_header_stdc = yes; then
8270: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8271: if test "$cross_compiling" = yes; then :
8272: :
8273: else
8274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275: /* end confdefs.h. */
8276: #include <ctype.h>
8277: #include <stdlib.h>
8278: #if ((' ' & 0x0FF) == 0x020)
8279: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8280: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8281: #else
8282: # define ISLOWER(c) \
8283: (('a' <= (c) && (c) <= 'i') \
8284: || ('j' <= (c) && (c) <= 'r') \
8285: || ('s' <= (c) && (c) <= 'z'))
8286: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8287: #endif
8288:
8289: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8290: int
8291: main ()
8292: {
8293: int i;
8294: for (i = 0; i < 256; i++)
8295: if (XOR (islower (i), ISLOWER (i))
8296: || toupper (i) != TOUPPER (i))
8297: return 2;
8298: return 0;
8299: }
8300: _ACEOF
8301: if ac_fn_c_try_run "$LINENO"; then :
8302:
8303: else
8304: ac_cv_header_stdc=no
8305: fi
8306: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8307: conftest.$ac_objext conftest.beam conftest.$ac_ext
8308: fi
8309:
8310: fi
8311: fi
8312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8313: $as_echo "$ac_cv_header_stdc" >&6; }
8314: if test $ac_cv_header_stdc = yes; then
8315:
8316: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8317:
8318: fi
8319:
8320: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8321: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8322: inttypes.h stdint.h unistd.h
8323: do :
8324: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8326: "
8327: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8328: cat >>confdefs.h <<_ACEOF
8329: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330: _ACEOF
8331:
8332: fi
8333:
8334: done
8335:
8336:
8337: # The cast to long int works around a bug in the HP C Compiler
8338: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8339: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8340: # This bug is HP SR number 8606223364.
8341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8342: $as_echo_n "checking size of void *... " >&6; }
8343: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8344: $as_echo_n "(cached) " >&6
8345: else
8346: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8347:
8348: else
8349: if test "$ac_cv_type_void_p" = yes; then
8350: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8351: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8352: as_fn_error 77 "cannot compute sizeof (void *)
8353: See \`config.log' for more details" "$LINENO" 5 ; }
8354: else
8355: ac_cv_sizeof_void_p=0
8356: fi
8357: fi
8358:
8359: fi
8360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8361: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8362:
8363:
8364:
8365: cat >>confdefs.h <<_ACEOF
8366: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8367: _ACEOF
8368:
8369:
8370: # The cast to long int works around a bug in the HP C Compiler
8371: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8372: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8373: # This bug is HP SR number 8606223364.
8374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8375: $as_echo_n "checking size of char... " >&6; }
8376: if test "${ac_cv_sizeof_char+set}" = set; then :
8377: $as_echo_n "(cached) " >&6
8378: else
8379: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8380:
8381: else
8382: if test "$ac_cv_type_char" = yes; then
8383: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8384: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8385: as_fn_error 77 "cannot compute sizeof (char)
8386: See \`config.log' for more details" "$LINENO" 5 ; }
8387: else
8388: ac_cv_sizeof_char=0
8389: fi
8390: fi
8391:
8392: fi
8393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8394: $as_echo "$ac_cv_sizeof_char" >&6; }
8395:
8396:
8397:
8398: cat >>confdefs.h <<_ACEOF
8399: #define SIZEOF_CHAR $ac_cv_sizeof_char
8400: _ACEOF
8401:
8402:
8403: # The cast to long int works around a bug in the HP C Compiler
8404: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8405: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8406: # This bug is HP SR number 8606223364.
8407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8408: $as_echo_n "checking size of short int... " >&6; }
8409: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8410: $as_echo_n "(cached) " >&6
8411: else
8412: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8413:
8414: else
8415: if test "$ac_cv_type_short_int" = yes; then
8416: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8417: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8418: as_fn_error 77 "cannot compute sizeof (short int)
8419: See \`config.log' for more details" "$LINENO" 5 ; }
8420: else
8421: ac_cv_sizeof_short_int=0
8422: fi
8423: fi
8424:
8425: fi
8426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8427: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8428:
8429:
8430:
8431: cat >>confdefs.h <<_ACEOF
8432: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8433: _ACEOF
8434:
8435:
8436: # The cast to long int works around a bug in the HP C Compiler
8437: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8438: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8439: # This bug is HP SR number 8606223364.
8440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8441: $as_echo_n "checking size of int... " >&6; }
8442: if test "${ac_cv_sizeof_int+set}" = set; then :
8443: $as_echo_n "(cached) " >&6
8444: else
8445: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8446:
8447: else
8448: if test "$ac_cv_type_int" = yes; then
8449: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8450: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8451: as_fn_error 77 "cannot compute sizeof (int)
8452: See \`config.log' for more details" "$LINENO" 5 ; }
8453: else
8454: ac_cv_sizeof_int=0
8455: fi
8456: fi
8457:
8458: fi
8459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8460: $as_echo "$ac_cv_sizeof_int" >&6; }
8461:
8462:
8463:
8464: cat >>confdefs.h <<_ACEOF
8465: #define SIZEOF_INT $ac_cv_sizeof_int
8466: _ACEOF
8467:
8468:
8469: # The cast to long int works around a bug in the HP C Compiler
8470: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8471: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8472: # This bug is HP SR number 8606223364.
8473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8474: $as_echo_n "checking size of long int... " >&6; }
8475: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8476: $as_echo_n "(cached) " >&6
8477: else
8478: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8479:
8480: else
8481: if test "$ac_cv_type_long_int" = yes; then
8482: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8483: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8484: as_fn_error 77 "cannot compute sizeof (long int)
8485: See \`config.log' for more details" "$LINENO" 5 ; }
8486: else
8487: ac_cv_sizeof_long_int=0
8488: fi
8489: fi
8490:
8491: fi
8492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8493: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8494:
8495:
8496:
8497: cat >>confdefs.h <<_ACEOF
8498: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8499: _ACEOF
8500:
8501:
8502: # The cast to long int works around a bug in the HP C Compiler
8503: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8504: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8505: # This bug is HP SR number 8606223364.
8506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8507: $as_echo_n "checking size of long long int... " >&6; }
8508: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8509: $as_echo_n "(cached) " >&6
8510: else
8511: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8512:
8513: else
8514: if test "$ac_cv_type_long_long_int" = yes; then
8515: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8516: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8517: as_fn_error 77 "cannot compute sizeof (long long int)
8518: See \`config.log' for more details" "$LINENO" 5 ; }
8519: else
8520: ac_cv_sizeof_long_long_int=0
8521: fi
8522: fi
8523:
8524: fi
8525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8526: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8527:
8528:
8529:
8530: cat >>confdefs.h <<_ACEOF
8531: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8532: _ACEOF
8533:
8534:
8535: # The cast to long int works around a bug in the HP C Compiler
8536: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8537: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8538: # This bug is HP SR number 8606223364.
8539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8540: $as_echo_n "checking size of float... " >&6; }
8541: if test "${ac_cv_sizeof_float+set}" = set; then :
8542: $as_echo_n "(cached) " >&6
8543: else
8544: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8545:
8546: else
8547: if test "$ac_cv_type_float" = yes; then
8548: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8549: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8550: as_fn_error 77 "cannot compute sizeof (float)
8551: See \`config.log' for more details" "$LINENO" 5 ; }
8552: else
8553: ac_cv_sizeof_float=0
8554: fi
8555: fi
8556:
8557: fi
8558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8559: $as_echo "$ac_cv_sizeof_float" >&6; }
8560:
8561:
8562:
8563: cat >>confdefs.h <<_ACEOF
8564: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8565: _ACEOF
8566:
8567:
8568: # The cast to long int works around a bug in the HP C Compiler
8569: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8570: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8571: # This bug is HP SR number 8606223364.
8572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8573: $as_echo_n "checking size of double... " >&6; }
8574: if test "${ac_cv_sizeof_double+set}" = set; then :
8575: $as_echo_n "(cached) " >&6
8576: else
8577: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8578:
8579: else
8580: if test "$ac_cv_type_double" = yes; then
8581: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8583: as_fn_error 77 "cannot compute sizeof (double)
8584: See \`config.log' for more details" "$LINENO" 5 ; }
8585: else
8586: ac_cv_sizeof_double=0
8587: fi
8588: fi
8589:
8590: fi
8591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8592: $as_echo "$ac_cv_sizeof_double" >&6; }
8593:
8594:
8595:
8596: cat >>confdefs.h <<_ACEOF
8597: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8598: _ACEOF
8599:
8600:
8601: # The cast to long int works around a bug in the HP C Compiler
8602: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8603: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8604: # This bug is HP SR number 8606223364.
8605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8606: $as_echo_n "checking size of long double... " >&6; }
8607: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8608: $as_echo_n "(cached) " >&6
8609: else
8610: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8611:
8612: else
8613: if test "$ac_cv_type_long_double" = yes; then
8614: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8615: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8616: as_fn_error 77 "cannot compute sizeof (long double)
8617: See \`config.log' for more details" "$LINENO" 5 ; }
8618: else
8619: ac_cv_sizeof_long_double=0
8620: fi
8621: fi
8622:
8623: fi
8624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8625: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8626:
8627:
8628:
8629: cat >>confdefs.h <<_ACEOF
8630: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8631: _ACEOF
8632:
8633:
8634:
8635: ac_header_dirent=no
8636: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8637: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8639: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8640: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
8641: $as_echo_n "(cached) " >&6
8642: else
8643: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644: /* end confdefs.h. */
8645: #include <sys/types.h>
8646: #include <$ac_hdr>
8647:
8648: int
8649: main ()
8650: {
8651: if ((DIR *) 0)
8652: return 0;
8653: ;
8654: return 0;
8655: }
8656: _ACEOF
8657: if ac_fn_c_try_compile "$LINENO"; then :
8658: eval "$as_ac_Header=yes"
8659: else
8660: eval "$as_ac_Header=no"
8661: fi
8662: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663: fi
8664: eval ac_res=\$$as_ac_Header
8665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8666: $as_echo "$ac_res" >&6; }
8667: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8668: cat >>confdefs.h <<_ACEOF
8669: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8670: _ACEOF
8671:
8672: ac_header_dirent=$ac_hdr; break
8673: fi
8674:
8675: done
8676: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8677: if test $ac_header_dirent = dirent.h; then
8678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8679: $as_echo_n "checking for library containing opendir... " >&6; }
8680: if test "${ac_cv_search_opendir+set}" = set; then :
8681: $as_echo_n "(cached) " >&6
8682: else
8683: ac_func_search_save_LIBS=$LIBS
8684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685: /* end confdefs.h. */
8686:
8687: /* Override any GCC internal prototype to avoid an error.
8688: Use char because int might match the return type of a GCC
8689: builtin and then its argument prototype would still apply. */
8690: #ifdef __cplusplus
8691: extern "C"
8692: #endif
8693: char opendir ();
8694: int
8695: main ()
8696: {
8697: return opendir ();
8698: ;
8699: return 0;
8700: }
8701: _ACEOF
8702: for ac_lib in '' dir; do
8703: if test -z "$ac_lib"; then
8704: ac_res="none required"
8705: else
8706: ac_res=-l$ac_lib
8707: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8708: fi
8709: if ac_fn_c_try_link "$LINENO"; then :
8710: ac_cv_search_opendir=$ac_res
8711: fi
8712: rm -f core conftest.err conftest.$ac_objext \
8713: conftest$ac_exeext
8714: if test "${ac_cv_search_opendir+set}" = set; then :
8715: break
8716: fi
8717: done
8718: if test "${ac_cv_search_opendir+set}" = set; then :
8719:
8720: else
8721: ac_cv_search_opendir=no
8722: fi
8723: rm conftest.$ac_ext
8724: LIBS=$ac_func_search_save_LIBS
8725: fi
8726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8727: $as_echo "$ac_cv_search_opendir" >&6; }
8728: ac_res=$ac_cv_search_opendir
8729: if test "$ac_res" != no; then :
8730: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8731:
8732: fi
8733:
8734: else
8735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8736: $as_echo_n "checking for library containing opendir... " >&6; }
8737: if test "${ac_cv_search_opendir+set}" = set; then :
8738: $as_echo_n "(cached) " >&6
8739: else
8740: ac_func_search_save_LIBS=$LIBS
8741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742: /* end confdefs.h. */
8743:
8744: /* Override any GCC internal prototype to avoid an error.
8745: Use char because int might match the return type of a GCC
8746: builtin and then its argument prototype would still apply. */
8747: #ifdef __cplusplus
8748: extern "C"
8749: #endif
8750: char opendir ();
8751: int
8752: main ()
8753: {
8754: return opendir ();
8755: ;
8756: return 0;
8757: }
8758: _ACEOF
8759: for ac_lib in '' x; do
8760: if test -z "$ac_lib"; then
8761: ac_res="none required"
8762: else
8763: ac_res=-l$ac_lib
8764: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8765: fi
8766: if ac_fn_c_try_link "$LINENO"; then :
8767: ac_cv_search_opendir=$ac_res
8768: fi
8769: rm -f core conftest.err conftest.$ac_objext \
8770: conftest$ac_exeext
8771: if test "${ac_cv_search_opendir+set}" = set; then :
8772: break
8773: fi
8774: done
8775: if test "${ac_cv_search_opendir+set}" = set; then :
8776:
8777: else
8778: ac_cv_search_opendir=no
8779: fi
8780: rm conftest.$ac_ext
8781: LIBS=$ac_func_search_save_LIBS
8782: fi
8783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8784: $as_echo "$ac_cv_search_opendir" >&6; }
8785: ac_res=$ac_cv_search_opendir
8786: if test "$ac_res" != no; then :
8787: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8788:
8789: fi
8790:
8791: fi
8792:
8793: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8794: $as_echo_n "checking for ANSI C header files... " >&6; }
8795: if test "${ac_cv_header_stdc+set}" = set; then :
8796: $as_echo_n "(cached) " >&6
8797: else
8798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799: /* end confdefs.h. */
8800: #include <stdlib.h>
8801: #include <stdarg.h>
8802: #include <string.h>
8803: #include <float.h>
8804:
8805: int
8806: main ()
8807: {
8808:
8809: ;
8810: return 0;
8811: }
8812: _ACEOF
8813: if ac_fn_c_try_compile "$LINENO"; then :
8814: ac_cv_header_stdc=yes
8815: else
8816: ac_cv_header_stdc=no
8817: fi
8818: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819:
8820: if test $ac_cv_header_stdc = yes; then
8821: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823: /* end confdefs.h. */
8824: #include <string.h>
8825:
8826: _ACEOF
8827: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828: $EGREP "memchr" >/dev/null 2>&1; then :
8829:
8830: else
8831: ac_cv_header_stdc=no
8832: fi
8833: rm -f conftest*
8834:
8835: fi
8836:
8837: if test $ac_cv_header_stdc = yes; then
8838: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840: /* end confdefs.h. */
8841: #include <stdlib.h>
8842:
8843: _ACEOF
8844: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8845: $EGREP "free" >/dev/null 2>&1; then :
8846:
8847: else
8848: ac_cv_header_stdc=no
8849: fi
8850: rm -f conftest*
8851:
8852: fi
8853:
8854: if test $ac_cv_header_stdc = yes; then
8855: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8856: if test "$cross_compiling" = yes; then :
8857: :
8858: else
8859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860: /* end confdefs.h. */
8861: #include <ctype.h>
8862: #include <stdlib.h>
8863: #if ((' ' & 0x0FF) == 0x020)
8864: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8865: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8866: #else
8867: # define ISLOWER(c) \
8868: (('a' <= (c) && (c) <= 'i') \
8869: || ('j' <= (c) && (c) <= 'r') \
8870: || ('s' <= (c) && (c) <= 'z'))
8871: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8872: #endif
8873:
8874: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8875: int
8876: main ()
8877: {
8878: int i;
8879: for (i = 0; i < 256; i++)
8880: if (XOR (islower (i), ISLOWER (i))
8881: || toupper (i) != TOUPPER (i))
8882: return 2;
8883: return 0;
8884: }
8885: _ACEOF
8886: if ac_fn_c_try_run "$LINENO"; then :
8887:
8888: else
8889: ac_cv_header_stdc=no
8890: fi
8891: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8892: conftest.$ac_objext conftest.beam conftest.$ac_ext
8893: fi
8894:
8895: fi
8896: fi
8897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8898: $as_echo "$ac_cv_header_stdc" >&6; }
8899: if test $ac_cv_header_stdc = yes; then
8900:
8901: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8902:
8903: fi
8904:
8905: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8906: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8907: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8908: $as_echo_n "(cached) " >&6
8909: else
8910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911: /* end confdefs.h. */
8912: #include <sys/types.h>
8913: #include <sys/wait.h>
8914: #ifndef WEXITSTATUS
8915: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8916: #endif
8917: #ifndef WIFEXITED
8918: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8919: #endif
8920:
8921: int
8922: main ()
8923: {
8924: int s;
8925: wait (&s);
8926: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8927: ;
8928: return 0;
8929: }
8930: _ACEOF
8931: if ac_fn_c_try_compile "$LINENO"; then :
8932: ac_cv_header_sys_wait_h=yes
8933: else
8934: ac_cv_header_sys_wait_h=no
8935: fi
8936: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937: fi
8938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8939: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8940: if test $ac_cv_header_sys_wait_h = yes; then
8941:
8942: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8943:
8944: fi
8945:
8946: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8947: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8948: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8949: do :
8950: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8951: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8952: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8953: cat >>confdefs.h <<_ACEOF
8954: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8955: _ACEOF
8956:
8957: fi
8958:
8959: done
8960:
8961:
8962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8963: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8964: if test "${ac_cv_c_const+set}" = set; then :
8965: $as_echo_n "(cached) " >&6
8966: else
8967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968: /* end confdefs.h. */
8969:
8970: int
8971: main ()
8972: {
8973: /* FIXME: Include the comments suggested by Paul. */
8974: #ifndef __cplusplus
8975: /* Ultrix mips cc rejects this. */
8976: typedef int charset[2];
8977: const charset cs;
8978: /* SunOS 4.1.1 cc rejects this. */
8979: char const *const *pcpcc;
8980: char **ppc;
8981: /* NEC SVR4.0.2 mips cc rejects this. */
8982: struct point {int x, y;};
8983: static struct point const zero = {0,0};
8984: /* AIX XL C 1.02.0.0 rejects this.
8985: It does not let you subtract one const X* pointer from another in
8986: an arm of an if-expression whose if-part is not a constant
8987: expression */
8988: const char *g = "string";
8989: pcpcc = &g + (g ? g-g : 0);
8990: /* HPUX 7.0 cc rejects these. */
8991: ++pcpcc;
8992: ppc = (char**) pcpcc;
8993: pcpcc = (char const *const *) ppc;
8994: { /* SCO 3.2v4 cc rejects this. */
8995: char *t;
8996: char const *s = 0 ? (char *) 0 : (char const *) 0;
8997:
8998: *t++ = 0;
8999: if (s) return 0;
9000: }
9001: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9002: int x[] = {25, 17};
9003: const int *foo = &x[0];
9004: ++foo;
9005: }
9006: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9007: typedef const int *iptr;
9008: iptr p = 0;
9009: ++p;
9010: }
9011: { /* AIX XL C 1.02.0.0 rejects this saying
9012: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9013: struct s { int j; const int *ap[3]; };
9014: struct s *b; b->j = 5;
9015: }
9016: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9017: const int foo = 10;
9018: if (!foo) return 0;
9019: }
9020: return !cs[0] && !zero.x;
9021: #endif
9022:
9023: ;
9024: return 0;
9025: }
9026: _ACEOF
9027: if ac_fn_c_try_compile "$LINENO"; then :
9028: ac_cv_c_const=yes
9029: else
9030: ac_cv_c_const=no
9031: fi
9032: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033: fi
9034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9035: $as_echo "$ac_cv_c_const" >&6; }
9036: if test $ac_cv_c_const = no; then
9037:
9038: $as_echo "#define const /**/" >>confdefs.h
9039:
9040: fi
9041:
9042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9043: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9044: if test "${ac_cv_type_uid_t+set}" = set; then :
9045: $as_echo_n "(cached) " >&6
9046: else
9047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048: /* end confdefs.h. */
9049: #include <sys/types.h>
9050:
9051: _ACEOF
9052: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053: $EGREP "uid_t" >/dev/null 2>&1; then :
9054: ac_cv_type_uid_t=yes
9055: else
9056: ac_cv_type_uid_t=no
9057: fi
9058: rm -f conftest*
9059:
9060: fi
9061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9062: $as_echo "$ac_cv_type_uid_t" >&6; }
9063: if test $ac_cv_type_uid_t = no; then
9064:
9065: $as_echo "#define uid_t int" >>confdefs.h
9066:
9067:
9068: $as_echo "#define gid_t int" >>confdefs.h
9069:
9070: fi
9071:
9072: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9073: if test "x$ac_cv_type_pid_t" = x""yes; then :
9074:
9075: else
9076:
9077: cat >>confdefs.h <<_ACEOF
9078: #define pid_t int
9079: _ACEOF
9080:
9081: fi
9082:
9083: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9084: if test "x$ac_cv_type_size_t" = x""yes; then :
9085:
9086: else
9087:
9088: cat >>confdefs.h <<_ACEOF
9089: #define size_t unsigned int
9090: _ACEOF
9091:
9092: fi
9093:
9094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9095: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9096: if test "${ac_cv_header_time+set}" = set; then :
9097: $as_echo_n "(cached) " >&6
9098: else
9099: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100: /* end confdefs.h. */
9101: #include <sys/types.h>
9102: #include <sys/time.h>
9103: #include <time.h>
9104:
9105: int
9106: main ()
9107: {
9108: if ((struct tm *) 0)
9109: return 0;
9110: ;
9111: return 0;
9112: }
9113: _ACEOF
9114: if ac_fn_c_try_compile "$LINENO"; then :
9115: ac_cv_header_time=yes
9116: else
9117: ac_cv_header_time=no
9118: fi
9119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120: fi
9121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9122: $as_echo "$ac_cv_header_time" >&6; }
9123: if test $ac_cv_header_time = yes; then
9124:
9125: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9126:
9127: fi
9128:
9129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9130: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9131: if test "${ac_cv_struct_tm+set}" = set; then :
9132: $as_echo_n "(cached) " >&6
9133: else
9134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135: /* end confdefs.h. */
9136: #include <sys/types.h>
9137: #include <time.h>
9138:
9139: int
9140: main ()
9141: {
9142: struct tm tm;
9143: int *p = &tm.tm_sec;
9144: return !p;
9145: ;
9146: return 0;
9147: }
9148: _ACEOF
9149: if ac_fn_c_try_compile "$LINENO"; then :
9150: ac_cv_struct_tm=time.h
9151: else
9152: ac_cv_struct_tm=sys/time.h
9153: fi
9154: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155: fi
9156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9157: $as_echo "$ac_cv_struct_tm" >&6; }
9158: if test $ac_cv_struct_tm = sys/time.h; then
9159:
9160: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9161:
9162: fi
9163:
9164:
9165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9166: $as_echo_n "checking return type of signal handlers... " >&6; }
9167: if test "${ac_cv_type_signal+set}" = set; then :
9168: $as_echo_n "(cached) " >&6
9169: else
9170: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171: /* end confdefs.h. */
9172: #include <sys/types.h>
9173: #include <signal.h>
9174:
9175: int
9176: main ()
9177: {
9178: return *(signal (0, 0)) (0) == 1;
9179: ;
9180: return 0;
9181: }
9182: _ACEOF
9183: if ac_fn_c_try_compile "$LINENO"; then :
9184: ac_cv_type_signal=int
9185: else
9186: ac_cv_type_signal=void
9187: fi
9188: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189: fi
9190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9191: $as_echo "$ac_cv_type_signal" >&6; }
9192:
9193: cat >>confdefs.h <<_ACEOF
9194: #define RETSIGTYPE $ac_cv_type_signal
9195: _ACEOF
9196:
9197:
9198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9199: $as_echo_n "checking for working strcoll... " >&6; }
9200: if test "${ac_cv_func_strcoll_works+set}" = set; then :
9201: $as_echo_n "(cached) " >&6
9202: else
9203: if test "$cross_compiling" = yes; then :
9204: ac_cv_func_strcoll_works=no
9205: else
9206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207: /* end confdefs.h. */
9208: $ac_includes_default
9209: int
9210: main ()
9211: {
9212: return (strcoll ("abc", "def") >= 0 ||
9213: strcoll ("ABC", "DEF") >= 0 ||
9214: strcoll ("123", "456") >= 0)
9215: ;
9216: return 0;
9217: }
9218: _ACEOF
9219: if ac_fn_c_try_run "$LINENO"; then :
9220: ac_cv_func_strcoll_works=yes
9221: else
9222: ac_cv_func_strcoll_works=no
9223: fi
9224: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9225: conftest.$ac_objext conftest.beam conftest.$ac_ext
9226: fi
9227:
9228: fi
9229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9230: $as_echo "$ac_cv_func_strcoll_works" >&6; }
9231: if test $ac_cv_func_strcoll_works = yes; then
9232:
9233: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9234:
9235: fi
9236:
9237: for ac_func in strftime
9238: do :
9239: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9240: if test "x$ac_cv_func_strftime" = x""yes; then :
9241: cat >>confdefs.h <<_ACEOF
9242: #define HAVE_STRFTIME 1
9243: _ACEOF
9244:
9245: else
9246: # strftime is in -lintl on SCO UNIX.
9247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9248: $as_echo_n "checking for strftime in -lintl... " >&6; }
9249: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
9250: $as_echo_n "(cached) " >&6
9251: else
9252: ac_check_lib_save_LIBS=$LIBS
9253: LIBS="-lintl $LIBS"
9254: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255: /* end confdefs.h. */
9256:
9257: /* Override any GCC internal prototype to avoid an error.
9258: Use char because int might match the return type of a GCC
9259: builtin and then its argument prototype would still apply. */
9260: #ifdef __cplusplus
9261: extern "C"
9262: #endif
9263: char strftime ();
9264: int
9265: main ()
9266: {
9267: return strftime ();
9268: ;
9269: return 0;
9270: }
9271: _ACEOF
9272: if ac_fn_c_try_link "$LINENO"; then :
9273: ac_cv_lib_intl_strftime=yes
9274: else
9275: ac_cv_lib_intl_strftime=no
9276: fi
9277: rm -f core conftest.err conftest.$ac_objext \
9278: conftest$ac_exeext conftest.$ac_ext
9279: LIBS=$ac_check_lib_save_LIBS
9280: fi
9281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9282: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9283: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9284: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9285:
9286: LIBS="-lintl $LIBS"
9287: fi
9288:
9289: fi
9290: done
9291:
9292: for ac_func in vprintf
9293: do :
9294: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9295: if test "x$ac_cv_func_vprintf" = x""yes; then :
9296: cat >>confdefs.h <<_ACEOF
9297: #define HAVE_VPRINTF 1
9298: _ACEOF
9299:
9300: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9301: if test "x$ac_cv_func__doprnt" = x""yes; then :
9302:
9303: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9304:
9305: fi
9306:
9307: fi
9308: done
9309:
9310:
9311: for ac_func in ftime getcwd putenv select strcspn strdup \
9312: strerror strspn strstr strtod
9313: do :
9314: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9315: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9316: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9317: cat >>confdefs.h <<_ACEOF
9318: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9319: _ACEOF
9320:
9321: fi
9322: done
9323:
9324:
9325:
9326: # Check whether --with-openssl_arch was given.
9327: if test "${with_openssl_arch+set}" = set; then :
9328: withval=$with_openssl_arch;
9329: else
9330: with_openssl_arch=none
9331: fi
9332:
9333:
9334: if test $(uname) = "OS/2"; then
9335: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
9336: else
9337: if test "x$with_openssl_arch" = xnone; then
9338: (cd tools/$OPENSSL && ./config no-asm)
9339: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9340: (cd tools/$OPENSSL && ./Configure)
9341: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
9342: elif test "x$with_openssl_arch" = xlist; then
9343: (cd tools/$OPENSSL && ./Configure)
9344: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
9345: else
9346: (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
9347: fi
9348: fi
9349:
9350: if test "$MYGNUPLOT" = "yes"; then
9351: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9352: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9353: (cd "$srcdir/tools" && tar -xf -)
9354: fi
9355:
9356: if test $RECURSIVE = yes; then
9357: subdirs="$subdirs tools/$GNUPLOT"
9358:
9359: fi
9360:
9361: GNUPLOT_COMPILATION=$GNUPLOT
9362: else
9363: GNUPLOT_COMPILATION=
9364: fi
9365:
9366:
9367:
9368: HOST=$target
9369:
9370:
9371: my_save_cflags="$CFLAGS"
9372: FPCFLAGS=""
9373:
9374: CFLAGS=-malign-double
9375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
9376: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
9377: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378: /* end confdefs.h. */
9379:
9380: int
9381: main ()
9382: {
9383:
9384: ;
9385: return 0;
9386: }
9387: _ACEOF
9388: if ac_fn_c_try_compile "$LINENO"; then :
9389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9390: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
9391: else
9392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393: $as_echo "no" >&6; }
9394: fi
9395: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396: CFLAGS=-mieee-fp
9397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
9398: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
9399: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400: /* end confdefs.h. */
9401:
9402: int
9403: main ()
9404: {
9405:
9406: ;
9407: return 0;
9408: }
9409: _ACEOF
9410: if ac_fn_c_try_compile "$LINENO"; then :
9411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9412: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
9413: else
9414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415: $as_echo "no" >&6; }
9416: fi
9417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418: CFLAGS=-mieee
9419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
9420: $as_echo_n "checking whether CC supports -mieee... " >&6; }
9421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422: /* end confdefs.h. */
9423:
9424: int
9425: main ()
9426: {
9427:
9428: ;
9429: return 0;
9430: }
9431: _ACEOF
9432: if ac_fn_c_try_compile "$LINENO"; then :
9433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9434: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
9435: else
9436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437: $as_echo "no" >&6; }
9438: fi
9439: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440: CFLAGS=$my_save_cflags
9441:
9442: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
9443: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
9444: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
9445: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
9446:
9447: case $target_os in
9448:
9449: cygwin*)
9450: OS=Cygwin
9451: break ;;
9452:
9453: interix*)
9454: OS=Interix
9455: break ;;
9456:
9457: *)
9458: OS=$(uname)
9459: break ;;
9460:
9461: esac
9462:
9463:
9464:
9465: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9466: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9467: MALLOC=
9468:
9469: case $OS in
9470: Darwin)
9471: EXPORT_DYNAMIC=-Wl,-flat_namespace
9472: NESTED_FUNCTIONS=-fnested-functions
9473: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
9474: ac_configure_args="$ac_configure_args --with-readline=builtin \
9475: --disable-shared --enable-static --enable-threads \
9476: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9477: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9478: LDFLAGS=\"$LDFLAGS\""
9479: C_STANDARD=-std=gnu99
9480: ELF=
9481: break ;;
9482:
9483: Cygwin)
9484: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9485: NESTED_FUNCTIONS=
9486: ac_configure_args="$ac_configure_args --with-readline=builtin \
9487: --disable-shared --enable-static --enable-threads \
9488: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9489: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9490: LDFLAGS=\"$LDFLAGS\""
9491: C_STANDARD=-std=gnu99
9492: ELF=
9493: break ;;
9494:
9495: Interix)
9496: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9497: NESTED_FUNCTIONS=
9498: ac_configure_args="$ac_configure_args --with-readline=builtin \
9499: --disable-shared --enable-static --enable-threads \
9500: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9501: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9502: LDFLAGS=\"$LDFLAGS\""
9503: C_STANDARD=-std=gnu99
9504: ELF=
9505: break;;
9506:
9507: AIX)
9508: EXPORT_DYNAMIC=-Wl,--export-dynamic
9509: NESTED_FUNCTIONS=
9510: ac_configure_args="$ac_configure_args --with-readline=builtin \
9511: --disable-shared --enable-static --enable-threads \
9512: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9513: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9514: LDFLAGS=\"$LDFLAGS\""
9515: C_STANDARD=-std=gnu99
9516: ELF=
9517: break ;;
9518:
9519: OS/2)
9520: if test $FORCED_FINAL_ENCODING -eq 0; then \
9521: FINAL_ENCODING=CP850; \
9522: fi;
9523: OS=OS2
9524: NESTED_FUNCTIONS=
9525: EXPORT_DYNAMIC=-Zmap
9526: ac_configure_args="$ac_configure_args --without-readline \
9527: --without-cairo --disable-shared --enable-static \
9528: --enable-threads \
9529: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9530: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9531: LDFLAGS=\"$LDFLAGS\""
9532: C_STANDARD=
9533: ELF=
9534: break;;
9535:
9536: OpenBSD)
9537: if test $FORCED_FINAL_ENCODING -eq 0; then \
9538: FINAL_ENCODING=UTF-8; \
9539: fi;
9540: EXPORT_DYNAMIC=-Wl,--export-dynamic
9541: NESTED_FUNCTIONS=
9542: ac_configure_args="$ac_configure_args --with-readline=builtin \
9543: --disable-shared --enable-static --enable-threads \
9544: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9545: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9546: LDFLAGS=\"$LDFLAGS\""
9547: C_STANDARD=-std=gnu99
9548: ELF=
9549: break;;
9550:
9551: SunOS)
9552: EXPORT_DYNAMIC=-Wl,--export-dynamic
9553: NESTED_FUNCTIONS=
9554:
9555: ac_configure_args="$ac_configure_args --with-readline=builtin \
9556: --disable-shared --enable-static --enable-threads \
9557: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9558: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9559: LDFLAGS=\"$LDFLAGS\""
9560: C_STANDARD=-std=gnu99
9561: MALLOC=-lumem
9562: ELF=
9563: break ;;
9564:
9565: NetBSD)
9566: EXPORT_DYNAMIC=-Wl,--export-dynamic
9567: NESTED_FUNCTIONS=
9568:
9569: ac_configure_args="$ac_configure_args --with-readline=builtin \
9570: --disable-shared --enable-static --enable-threads \
9571: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9572: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9573: LDFLAGS=\"$LDFLAGS\""
9574: C_STANDARD=-std=gnu99
9575: GCCBIN=`which gcc`
9576: GCCLIB=`dirname $GCCBIN`/../lib
9577: ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
9578: break ;;
9579:
9580: *)
9581: EXPORT_DYNAMIC=-Wl,--export-dynamic
9582: NESTED_FUNCTIONS=
9583:
9584: ac_configure_args="$ac_configure_args --with-readline=builtin \
9585: --disable-shared --enable-static --enable-threads \
9586: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9587: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9588: LDFLAGS=\"$LDFLAGS\""
9589: C_STANDARD=-std=gnu99
9590: ELF=
9591: break ;;
9592: esac
9593:
9594: case $OS in
9595: OS2)
9596: WHOLE_LIB1=""
9597: WHOLE_LIB2=""
9598: LIB_PREFIX=""
9599: break ;;
9600:
9601: *)
9602: WHOLE_LIB1="-Wl,-whole-archive"
9603: WHOLE_LIB2="-Wl,-no-whole-archive"
9604: LIB_PREFIX="lib"
9605: break ;;
9606: esac
9607:
9608: case $HOST in
9609: x86_64-unknown-linux-gnu)
9610: ARCH=amd64
9611: break ;;
9612:
9613: i?86-unknown-linux-gnu)
9614: ARCH=i386
9615: break ;;
9616:
9617: *)
9618: ARCH=unknown
9619: break ;;
9620: esac
9621:
9622:
9623:
9624:
9625:
9626:
9627:
9628:
9629:
9630:
9631:
9632:
9633:
9634:
9635:
9636:
9637:
9638:
9639:
9640:
9641:
9642:
9643:
9644:
9645:
9646:
9647:
9648:
9649:
9650:
9651:
9652:
9653:
9654:
9655:
9656:
9657:
9658:
9659:
9660:
9661:
9662:
9663:
9664:
9665:
9666:
9667:
9668:
9669:
9670:
9671: if test $RECURSIVE = yes; then
9672: subdirs="$subdirs tools/$NCURSES"
9673:
9674: subdirs="$subdirs tools/$READLINE"
9675:
9676: subdirs="$subdirs tools/$GSL"
9677:
9678: subdirs="$subdirs tools/$GPP"
9679:
9680: subdirs="$subdirs tools/$FILE"
9681:
9682: subdirs="$subdirs tools/$ICONV"
9683:
9684: subdirs="$subdirs tools/$SQLITE"
9685:
9686: subdirs="$subdirs tools/$UNITS"
9687:
9688: subdirs="$subdirs tools/$SIGSEGV"
9689:
9690: fi
9691:
9692: ac_config_files="$ac_config_files Makefile"
9693:
9694: ac_config_files="$ac_config_files COPYING"
9695:
9696: ac_config_files="$ac_config_files tools/Makefile"
9697:
9698: ac_config_files="$ac_config_files src/Makefile"
9699:
9700: ac_config_files="$ac_config_files man/Makefile"
9701:
9702: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9703:
9704: ac_config_files="$ac_config_files doc/Makefile"
9705:
9706: ac_config_files="$ac_config_files scripts/Makefile"
9707:
9708: ac_config_files="$ac_config_files scripts/mkrplso"
9709:
9710: ac_config_files="$ac_config_files scripts/rplcc"
9711:
9712: ac_config_files="$ac_config_files scripts/rpllink"
9713:
9714: ac_config_files="$ac_config_files rpltags/Makefile"
9715:
9716: ac_config_files="$ac_config_files rpliconv/Makefile"
9717:
9718: ac_config_files="$ac_config_files rplsums/Makefile"
9719:
9720: ac_config_files="$ac_config_files rplcas/Makefile"
9721:
9722: ac_config_files="$ac_config_files rplawk/Makefile"
9723:
9724: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9725:
9726: ac_config_files="$ac_config_files lapack/blas/Makefile"
9727:
9728:
9729: ac_config_files="$ac_config_files man/rpl.1"
9730:
9731: ac_config_files="$ac_config_files man/rplcc.1"
9732:
9733: ac_config_files="$ac_config_files man/rpllink.1"
9734:
9735: ac_config_files="$ac_config_files man/rpltags.1"
9736:
9737: ac_config_files="$ac_config_files man/mkrplso.1"
9738:
9739: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9740:
9741: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9742:
9743: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9744:
9745: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9746:
9747: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9748:
9749:
9750: ac_config_files="$ac_config_files DEBIAN/control"
9751:
9752:
9753: cat >confcache <<\_ACEOF
9754: # This file is a shell script that caches the results of configure
9755: # tests run on this system so they can be shared between configure
9756: # scripts and configure runs, see configure's option --config-cache.
9757: # It is not useful on other systems. If it contains results you don't
9758: # want to keep, you may remove or edit it.
9759: #
9760: # config.status only pays attention to the cache file if you give it
9761: # the --recheck option to rerun configure.
9762: #
9763: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9764: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9765: # following values.
9766:
9767: _ACEOF
9768:
9769: # The following way of writing the cache mishandles newlines in values,
9770: # but we know of no workaround that is simple, portable, and efficient.
9771: # So, we kill variables containing newlines.
9772: # Ultrix sh set writes to stderr and can't be redirected directly,
9773: # and sets the high bit in the cache file unless we assign to the vars.
9774: (
9775: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9776: eval ac_val=\$$ac_var
9777: case $ac_val in #(
9778: *${as_nl}*)
9779: case $ac_var in #(
9780: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9781: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9782: esac
9783: case $ac_var in #(
9784: _ | IFS | as_nl) ;; #(
9785: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9786: *) { eval $ac_var=; unset $ac_var;} ;;
9787: esac ;;
9788: esac
9789: done
9790:
9791: (set) 2>&1 |
9792: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9793: *${as_nl}ac_space=\ *)
9794: # `set' does not quote correctly, so add quotes: double-quote
9795: # substitution turns \\\\ into \\, and sed turns \\ into \.
9796: sed -n \
9797: "s/'/'\\\\''/g;
9798: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9799: ;; #(
9800: *)
9801: # `set' quotes correctly as required by POSIX, so do not add quotes.
9802: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9803: ;;
9804: esac |
9805: sort
9806: ) |
9807: sed '
9808: /^ac_cv_env_/b end
9809: t clear
9810: :clear
9811: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9812: t end
9813: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9814: :end' >>confcache
9815: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9816: if test -w "$cache_file"; then
9817: test "x$cache_file" != "x/dev/null" &&
9818: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9819: $as_echo "$as_me: updating cache $cache_file" >&6;}
9820: cat confcache >$cache_file
9821: else
9822: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9823: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9824: fi
9825: fi
9826: rm -f confcache
9827:
9828: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9829: # Let make expand exec_prefix.
9830: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9831:
9832: DEFS=-DHAVE_CONFIG_H
9833:
9834: ac_libobjs=
9835: ac_ltlibobjs=
9836: U=
9837: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9838: # 1. Remove the extension, and $U if already installed.
9839: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9840: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9841: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9842: # will be set to the directory where LIBOBJS objects are built.
9843: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9844: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9845: done
9846: LIBOBJS=$ac_libobjs
9847:
9848: LTLIBOBJS=$ac_ltlibobjs
9849:
9850:
9851: if test -n "$EXEEXT"; then
9852: am__EXEEXT_TRUE=
9853: am__EXEEXT_FALSE='#'
9854: else
9855: am__EXEEXT_TRUE='#'
9856: am__EXEEXT_FALSE=
9857: fi
9858:
9859: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9860: as_fn_error $? "conditional \"AMDEP\" was never defined.
9861: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9862: fi
9863: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9864: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9865: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9866: fi
9867: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9868: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9869: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9870: fi
9871:
9872: : ${CONFIG_STATUS=./config.status}
9873: ac_write_fail=0
9874: ac_clean_files_save=$ac_clean_files
9875: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9876: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9877: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9878: as_write_fail=0
9879: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9880: #! $SHELL
9881: # Generated by $as_me.
9882: # Run this file to recreate the current configuration.
9883: # Compiler output produced by configure, useful for debugging
9884: # configure, is in config.log if it exists.
9885:
9886: debug=false
9887: ac_cs_recheck=false
9888: ac_cs_silent=false
9889:
9890: SHELL=\${CONFIG_SHELL-$SHELL}
9891: export SHELL
9892: _ASEOF
9893: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9894: ## -------------------- ##
9895: ## M4sh Initialization. ##
9896: ## -------------------- ##
9897:
9898: # Be more Bourne compatible
9899: DUALCASE=1; export DUALCASE # for MKS sh
9900: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9901: emulate sh
9902: NULLCMD=:
9903: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9904: # is contrary to our usage. Disable this feature.
9905: alias -g '${1+"$@"}'='"$@"'
9906: setopt NO_GLOB_SUBST
9907: else
9908: case `(set -o) 2>/dev/null` in #(
9909: *posix*) :
9910: set -o posix ;; #(
9911: *) :
9912: ;;
9913: esac
9914: fi
9915:
9916:
9917: as_nl='
9918: '
9919: export as_nl
9920: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9921: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9922: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9923: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9924: # Prefer a ksh shell builtin over an external printf program on Solaris,
9925: # but without wasting forks for bash or zsh.
9926: if test -z "$BASH_VERSION$ZSH_VERSION" \
9927: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9928: as_echo='print -r --'
9929: as_echo_n='print -rn --'
9930: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9931: as_echo='printf %s\n'
9932: as_echo_n='printf %s'
9933: else
9934: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9935: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9936: as_echo_n='/usr/ucb/echo -n'
9937: else
9938: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9939: as_echo_n_body='eval
9940: arg=$1;
9941: case $arg in #(
9942: *"$as_nl"*)
9943: expr "X$arg" : "X\\(.*\\)$as_nl";
9944: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9945: esac;
9946: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9947: '
9948: export as_echo_n_body
9949: as_echo_n='sh -c $as_echo_n_body as_echo'
9950: fi
9951: export as_echo_body
9952: as_echo='sh -c $as_echo_body as_echo'
9953: fi
9954:
9955: # The user is always right.
9956: if test "${PATH_SEPARATOR+set}" != set; then
9957: PATH_SEPARATOR=:
9958: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9959: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9960: PATH_SEPARATOR=';'
9961: }
9962: fi
9963:
9964:
9965: # IFS
9966: # We need space, tab and new line, in precisely that order. Quoting is
9967: # there to prevent editors from complaining about space-tab.
9968: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9969: # splitting by setting IFS to empty value.)
9970: IFS=" "" $as_nl"
9971:
9972: # Find who we are. Look in the path if we contain no directory separator.
9973: case $0 in #((
9974: *[\\/]* ) as_myself=$0 ;;
9975: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976: for as_dir in $PATH
9977: do
9978: IFS=$as_save_IFS
9979: test -z "$as_dir" && as_dir=.
9980: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9981: done
9982: IFS=$as_save_IFS
9983:
9984: ;;
9985: esac
9986: # We did not find ourselves, most probably we were run as `sh COMMAND'
9987: # in which case we are not to be found in the path.
9988: if test "x$as_myself" = x; then
9989: as_myself=$0
9990: fi
9991: if test ! -f "$as_myself"; then
9992: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9993: exit 1
9994: fi
9995:
9996: # Unset variables that we do not need and which cause bugs (e.g. in
9997: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9998: # suppresses any "Segmentation fault" message there. '((' could
9999: # trigger a bug in pdksh 5.2.14.
10000: for as_var in BASH_ENV ENV MAIL MAILPATH
10001: do eval test x\${$as_var+set} = xset \
10002: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10003: done
10004: PS1='$ '
10005: PS2='> '
10006: PS4='+ '
10007:
10008: # NLS nuisances.
10009: LC_ALL=C
10010: export LC_ALL
10011: LANGUAGE=C
10012: export LANGUAGE
10013:
10014: # CDPATH.
10015: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10016:
10017:
10018: # as_fn_error STATUS ERROR [LINENO LOG_FD]
10019: # ----------------------------------------
10020: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10021: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10022: # script with STATUS, using 1 if that was 0.
10023: as_fn_error ()
10024: {
10025: as_status=$1; test $as_status -eq 0 && as_status=1
10026: if test "$4"; then
10027: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10028: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10029: fi
10030: $as_echo "$as_me: error: $2" >&2
10031: as_fn_exit $as_status
10032: } # as_fn_error
10033:
10034:
10035: # as_fn_set_status STATUS
10036: # -----------------------
10037: # Set $? to STATUS, without forking.
10038: as_fn_set_status ()
10039: {
10040: return $1
10041: } # as_fn_set_status
10042:
10043: # as_fn_exit STATUS
10044: # -----------------
10045: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10046: as_fn_exit ()
10047: {
10048: set +e
10049: as_fn_set_status $1
10050: exit $1
10051: } # as_fn_exit
10052:
10053: # as_fn_unset VAR
10054: # ---------------
10055: # Portably unset VAR.
10056: as_fn_unset ()
10057: {
10058: { eval $1=; unset $1;}
10059: }
10060: as_unset=as_fn_unset
10061: # as_fn_append VAR VALUE
10062: # ----------------------
10063: # Append the text in VALUE to the end of the definition contained in VAR. Take
10064: # advantage of any shell optimizations that allow amortized linear growth over
10065: # repeated appends, instead of the typical quadratic growth present in naive
10066: # implementations.
10067: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10068: eval 'as_fn_append ()
10069: {
10070: eval $1+=\$2
10071: }'
10072: else
10073: as_fn_append ()
10074: {
10075: eval $1=\$$1\$2
10076: }
10077: fi # as_fn_append
10078:
10079: # as_fn_arith ARG...
10080: # ------------------
10081: # Perform arithmetic evaluation on the ARGs, and store the result in the
10082: # global $as_val. Take advantage of shells that can avoid forks. The arguments
10083: # must be portable across $(()) and expr.
10084: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10085: eval 'as_fn_arith ()
10086: {
10087: as_val=$(( $* ))
10088: }'
10089: else
10090: as_fn_arith ()
10091: {
10092: as_val=`expr "$@" || test $? -eq 1`
10093: }
10094: fi # as_fn_arith
10095:
10096:
10097: if expr a : '\(a\)' >/dev/null 2>&1 &&
10098: test "X`expr 00001 : '.*\(...\)'`" = X001; then
10099: as_expr=expr
10100: else
10101: as_expr=false
10102: fi
10103:
10104: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10105: as_basename=basename
10106: else
10107: as_basename=false
10108: fi
10109:
10110: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10111: as_dirname=dirname
10112: else
10113: as_dirname=false
10114: fi
10115:
10116: as_me=`$as_basename -- "$0" ||
10117: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10118: X"$0" : 'X\(//\)$' \| \
10119: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10120: $as_echo X/"$0" |
10121: sed '/^.*\/\([^/][^/]*\)\/*$/{
10122: s//\1/
10123: q
10124: }
10125: /^X\/\(\/\/\)$/{
10126: s//\1/
10127: q
10128: }
10129: /^X\/\(\/\).*/{
10130: s//\1/
10131: q
10132: }
10133: s/.*/./; q'`
10134:
10135: # Avoid depending upon Character Ranges.
10136: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10137: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10138: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10139: as_cr_digits='0123456789'
10140: as_cr_alnum=$as_cr_Letters$as_cr_digits
10141:
10142: ECHO_C= ECHO_N= ECHO_T=
10143: case `echo -n x` in #(((((
10144: -n*)
10145: case `echo 'xy\c'` in
10146: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10147: xy) ECHO_C='\c';;
10148: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10149: ECHO_T=' ';;
10150: esac;;
10151: *)
10152: ECHO_N='-n';;
10153: esac
10154:
10155: rm -f conf$$ conf$$.exe conf$$.file
10156: if test -d conf$$.dir; then
10157: rm -f conf$$.dir/conf$$.file
10158: else
10159: rm -f conf$$.dir
10160: mkdir conf$$.dir 2>/dev/null
10161: fi
10162: if (echo >conf$$.file) 2>/dev/null; then
10163: if ln -s conf$$.file conf$$ 2>/dev/null; then
10164: as_ln_s='ln -s'
10165: # ... but there are two gotchas:
10166: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10167: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10168: # In both cases, we have to default to `cp -p'.
10169: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10170: as_ln_s='cp -p'
10171: elif ln conf$$.file conf$$ 2>/dev/null; then
10172: as_ln_s=ln
10173: else
10174: as_ln_s='cp -p'
10175: fi
10176: else
10177: as_ln_s='cp -p'
10178: fi
10179: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10180: rmdir conf$$.dir 2>/dev/null
10181:
10182:
10183: # as_fn_mkdir_p
10184: # -------------
10185: # Create "$as_dir" as a directory, including parents if necessary.
10186: as_fn_mkdir_p ()
10187: {
10188:
10189: case $as_dir in #(
10190: -*) as_dir=./$as_dir;;
10191: esac
10192: test -d "$as_dir" || eval $as_mkdir_p || {
10193: as_dirs=
10194: while :; do
10195: case $as_dir in #(
10196: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10197: *) as_qdir=$as_dir;;
10198: esac
10199: as_dirs="'$as_qdir' $as_dirs"
10200: as_dir=`$as_dirname -- "$as_dir" ||
10201: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10202: X"$as_dir" : 'X\(//\)[^/]' \| \
10203: X"$as_dir" : 'X\(//\)$' \| \
10204: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10205: $as_echo X"$as_dir" |
10206: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10207: s//\1/
10208: q
10209: }
10210: /^X\(\/\/\)[^/].*/{
10211: s//\1/
10212: q
10213: }
10214: /^X\(\/\/\)$/{
10215: s//\1/
10216: q
10217: }
10218: /^X\(\/\).*/{
10219: s//\1/
10220: q
10221: }
10222: s/.*/./; q'`
10223: test -d "$as_dir" && break
10224: done
10225: test -z "$as_dirs" || eval "mkdir $as_dirs"
10226: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10227:
10228:
10229: } # as_fn_mkdir_p
10230: if mkdir -p . 2>/dev/null; then
10231: as_mkdir_p='mkdir -p "$as_dir"'
10232: else
10233: test -d ./-p && rmdir ./-p
10234: as_mkdir_p=false
10235: fi
10236:
10237: if test -x / >/dev/null 2>&1; then
10238: as_test_x='test -x'
10239: else
10240: if ls -dL / >/dev/null 2>&1; then
10241: as_ls_L_option=L
10242: else
10243: as_ls_L_option=
10244: fi
10245: as_test_x='
10246: eval sh -c '\''
10247: if test -d "$1"; then
10248: test -d "$1/.";
10249: else
10250: case $1 in #(
10251: -*)set "./$1";;
10252: esac;
10253: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10254: ???[sx]*):;;*)false;;esac;fi
10255: '\'' sh
10256: '
10257: fi
10258: as_executable_p=$as_test_x
10259:
10260: # Sed expression to map a string onto a valid CPP name.
10261: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10262:
10263: # Sed expression to map a string onto a valid variable name.
10264: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10265:
10266:
10267: exec 6>&1
10268: ## ----------------------------------- ##
10269: ## Main body of $CONFIG_STATUS script. ##
10270: ## ----------------------------------- ##
10271: _ASEOF
10272: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10273:
10274: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10275: # Save the log message, to keep $0 and so on meaningful, and to
10276: # report actual input values of CONFIG_FILES etc. instead of their
10277: # values after options handling.
10278: ac_log="
10279: This file was extended by rpl $as_me 4.1.6, which was
10280: generated by GNU Autoconf 2.67. Invocation command line was
10281:
10282: CONFIG_FILES = $CONFIG_FILES
10283: CONFIG_HEADERS = $CONFIG_HEADERS
10284: CONFIG_LINKS = $CONFIG_LINKS
10285: CONFIG_COMMANDS = $CONFIG_COMMANDS
10286: $ $0 $@
10287:
10288: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10289: "
10290:
10291: _ACEOF
10292:
10293: case $ac_config_files in *"
10294: "*) set x $ac_config_files; shift; ac_config_files=$*;;
10295: esac
10296:
10297: case $ac_config_headers in *"
10298: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10299: esac
10300:
10301:
10302: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10303: # Files that config.status was made for.
10304: config_files="$ac_config_files"
10305: config_headers="$ac_config_headers"
10306: config_commands="$ac_config_commands"
10307:
10308: _ACEOF
10309:
10310: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10311: ac_cs_usage="\
10312: \`$as_me' instantiates files and other configuration actions
10313: from templates according to the current configuration. Unless the files
10314: and actions are specified as TAGs, all are instantiated by default.
10315:
10316: Usage: $0 [OPTION]... [TAG]...
10317:
10318: -h, --help print this help, then exit
10319: -V, --version print version number and configuration settings, then exit
10320: --config print configuration, then exit
10321: -q, --quiet, --silent
10322: do not print progress messages
10323: -d, --debug don't remove temporary files
10324: --recheck update $as_me by reconfiguring in the same conditions
10325: --file=FILE[:TEMPLATE]
10326: instantiate the configuration file FILE
10327: --header=FILE[:TEMPLATE]
10328: instantiate the configuration header FILE
10329:
10330: Configuration files:
10331: $config_files
10332:
10333: Configuration headers:
10334: $config_headers
10335:
10336: Configuration commands:
10337: $config_commands
10338:
10339: Report bugs to the package provider."
10340:
10341: _ACEOF
10342: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10343: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10344: ac_cs_version="\\
10345: rpl config.status 4.1.6
10346: configured by $0, generated by GNU Autoconf 2.67,
10347: with options \\"\$ac_cs_config\\"
10348:
10349: Copyright (C) 2010 Free Software Foundation, Inc.
10350: This config.status script is free software; the Free Software Foundation
10351: gives unlimited permission to copy, distribute and modify it."
10352:
10353: ac_pwd='$ac_pwd'
10354: srcdir='$srcdir'
10355: INSTALL='$INSTALL'
10356: MKDIR_P='$MKDIR_P'
10357: AWK='$AWK'
10358: test -n "\$AWK" || AWK=awk
10359: _ACEOF
10360:
10361: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10362: # The default lists apply if the user does not specify any file.
10363: ac_need_defaults=:
10364: while test $# != 0
10365: do
10366: case $1 in
10367: --*=?*)
10368: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10369: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10370: ac_shift=:
10371: ;;
10372: --*=)
10373: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10374: ac_optarg=
10375: ac_shift=:
10376: ;;
10377: *)
10378: ac_option=$1
10379: ac_optarg=$2
10380: ac_shift=shift
10381: ;;
10382: esac
10383:
10384: case $ac_option in
10385: # Handling of the options.
10386: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10387: ac_cs_recheck=: ;;
10388: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10389: $as_echo "$ac_cs_version"; exit ;;
10390: --config | --confi | --conf | --con | --co | --c )
10391: $as_echo "$ac_cs_config"; exit ;;
10392: --debug | --debu | --deb | --de | --d | -d )
10393: debug=: ;;
10394: --file | --fil | --fi | --f )
10395: $ac_shift
10396: case $ac_optarg in
10397: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10398: '') as_fn_error $? "missing file argument" ;;
10399: esac
10400: as_fn_append CONFIG_FILES " '$ac_optarg'"
10401: ac_need_defaults=false;;
10402: --header | --heade | --head | --hea )
10403: $ac_shift
10404: case $ac_optarg in
10405: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10406: esac
10407: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10408: ac_need_defaults=false;;
10409: --he | --h)
10410: # Conflict between --help and --header
10411: as_fn_error $? "ambiguous option: \`$1'
10412: Try \`$0 --help' for more information.";;
10413: --help | --hel | -h )
10414: $as_echo "$ac_cs_usage"; exit ;;
10415: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10416: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10417: ac_cs_silent=: ;;
10418:
10419: # This is an error.
10420: -*) as_fn_error $? "unrecognized option: \`$1'
10421: Try \`$0 --help' for more information." ;;
10422:
10423: *) as_fn_append ac_config_targets " $1"
10424: ac_need_defaults=false ;;
10425:
10426: esac
10427: shift
10428: done
10429:
10430: ac_configure_extra_args=
10431:
10432: if $ac_cs_silent; then
10433: exec 6>/dev/null
10434: ac_configure_extra_args="$ac_configure_extra_args --silent"
10435: fi
10436:
10437: _ACEOF
10438: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10439: if \$ac_cs_recheck; then
10440: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10441: shift
10442: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10443: CONFIG_SHELL='$SHELL'
10444: export CONFIG_SHELL
10445: exec "\$@"
10446: fi
10447:
10448: _ACEOF
10449: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10450: exec 5>>config.log
10451: {
10452: echo
10453: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10454: ## Running $as_me. ##
10455: _ASBOX
10456: $as_echo "$ac_log"
10457: } >&5
10458:
10459: _ACEOF
10460: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10461: #
10462: # INIT-COMMANDS
10463: #
10464: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10465:
10466: _ACEOF
10467:
10468: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10469:
10470: # Handling of arguments.
10471: for ac_config_target in $ac_config_targets
10472: do
10473: case $ac_config_target in
10474: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10475: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10476: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10477: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10478: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10479: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10480: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10481: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10482: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10483: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10484: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10485: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10486: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10487: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10488: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
10489: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
10490: "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
10491: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
10492: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10493: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10494: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10495: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10496: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10497: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10498: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10499: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10500: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10501: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10502: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10503: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10504: "DEBIAN/control") CONFIG_FILES="$CONFIG_FILES DEBIAN/control" ;;
10505:
10506: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
10507: esac
10508: done
10509:
10510:
10511: # If the user did not use the arguments to specify the items to instantiate,
10512: # then the envvar interface is used. Set only those that are not.
10513: # We use the long form for the default assignment because of an extremely
10514: # bizarre bug on SunOS 4.1.3.
10515: if $ac_need_defaults; then
10516: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10517: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10518: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10519: fi
10520:
10521: # Have a temporary directory for convenience. Make it in the build tree
10522: # simply because there is no reason against having it here, and in addition,
10523: # creating and moving files from /tmp can sometimes cause problems.
10524: # Hook for its removal unless debugging.
10525: # Note that there is a small window in which the directory will not be cleaned:
10526: # after its creation but before its name has been assigned to `$tmp'.
10527: $debug ||
10528: {
10529: tmp=
10530: trap 'exit_status=$?
10531: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10532: ' 0
10533: trap 'as_fn_exit 1' 1 2 13 15
10534: }
10535: # Create a (secure) tmp directory for tmp files.
10536:
10537: {
10538: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10539: test -n "$tmp" && test -d "$tmp"
10540: } ||
10541: {
10542: tmp=./conf$$-$RANDOM
10543: (umask 077 && mkdir "$tmp")
10544: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10545:
10546: # Set up the scripts for CONFIG_FILES section.
10547: # No need to generate them if there are no CONFIG_FILES.
10548: # This happens for instance with `./config.status config.h'.
10549: if test -n "$CONFIG_FILES"; then
10550:
10551:
10552: ac_cr=`echo X | tr X '\015'`
10553: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10554: # But we know of no other shell where ac_cr would be empty at this
10555: # point, so we can use a bashism as a fallback.
10556: if test "x$ac_cr" = x; then
10557: eval ac_cr=\$\'\\r\'
10558: fi
10559: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10560: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10561: ac_cs_awk_cr='\\r'
10562: else
10563: ac_cs_awk_cr=$ac_cr
10564: fi
10565:
10566: echo 'BEGIN {' >"$tmp/subs1.awk" &&
10567: _ACEOF
10568:
10569:
10570: {
10571: echo "cat >conf$$subs.awk <<_ACEOF" &&
10572: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10573: echo "_ACEOF"
10574: } >conf$$subs.sh ||
10575: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10576: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10577: ac_delim='%!_!# '
10578: for ac_last_try in false false false false false :; do
10579: . ./conf$$subs.sh ||
10580: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10581:
10582: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10583: if test $ac_delim_n = $ac_delim_num; then
10584: break
10585: elif $ac_last_try; then
10586: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10587: else
10588: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10589: fi
10590: done
10591: rm -f conf$$subs.sh
10592:
10593: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10594: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10595: _ACEOF
10596: sed -n '
10597: h
10598: s/^/S["/; s/!.*/"]=/
10599: p
10600: g
10601: s/^[^!]*!//
10602: :repl
10603: t repl
10604: s/'"$ac_delim"'$//
10605: t delim
10606: :nl
10607: h
10608: s/\(.\{148\}\)..*/\1/
10609: t more1
10610: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10611: p
10612: n
10613: b repl
10614: :more1
10615: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10616: p
10617: g
10618: s/.\{148\}//
10619: t nl
10620: :delim
10621: h
10622: s/\(.\{148\}\)..*/\1/
10623: t more2
10624: s/["\\]/\\&/g; s/^/"/; s/$/"/
10625: p
10626: b
10627: :more2
10628: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10629: p
10630: g
10631: s/.\{148\}//
10632: t delim
10633: ' <conf$$subs.awk | sed '
10634: /^[^""]/{
10635: N
10636: s/\n//
10637: }
10638: ' >>$CONFIG_STATUS || ac_write_fail=1
10639: rm -f conf$$subs.awk
10640: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10641: _ACAWK
10642: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10643: for (key in S) S_is_set[key] = 1
10644: FS = ""
10645:
10646: }
10647: {
10648: line = $ 0
10649: nfields = split(line, field, "@")
10650: substed = 0
10651: len = length(field[1])
10652: for (i = 2; i < nfields; i++) {
10653: key = field[i]
10654: keylen = length(key)
10655: if (S_is_set[key]) {
10656: value = S[key]
10657: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10658: len += length(value) + length(field[++i])
10659: substed = 1
10660: } else
10661: len += 1 + keylen
10662: }
10663:
10664: print line
10665: }
10666:
10667: _ACAWK
10668: _ACEOF
10669: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10670: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10671: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10672: else
10673: cat
10674: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10675: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10676: _ACEOF
10677:
10678: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10679: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10680: # trailing colons and then remove the whole line if VPATH becomes empty
10681: # (actually we leave an empty line to preserve line numbers).
10682: if test "x$srcdir" = x.; then
10683: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10684: h
10685: s///
10686: s/^/:/
10687: s/[ ]*$/:/
10688: s/:\$(srcdir):/:/g
10689: s/:\${srcdir}:/:/g
10690: s/:@srcdir@:/:/g
10691: s/^:*//
10692: s/:*$//
10693: x
10694: s/\(=[ ]*\).*/\1/
10695: G
10696: s/\n//
10697: s/^[^=]*=[ ]*$//
10698: }'
10699: fi
10700:
10701: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10702: fi # test -n "$CONFIG_FILES"
10703:
10704: # Set up the scripts for CONFIG_HEADERS section.
10705: # No need to generate them if there are no CONFIG_HEADERS.
10706: # This happens for instance with `./config.status Makefile'.
10707: if test -n "$CONFIG_HEADERS"; then
10708: cat >"$tmp/defines.awk" <<\_ACAWK ||
10709: BEGIN {
10710: _ACEOF
10711:
10712: # Transform confdefs.h into an awk script `defines.awk', embedded as
10713: # here-document in config.status, that substitutes the proper values into
10714: # config.h.in to produce config.h.
10715:
10716: # Create a delimiter string that does not exist in confdefs.h, to ease
10717: # handling of long lines.
10718: ac_delim='%!_!# '
10719: for ac_last_try in false false :; do
10720: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10721: if test -z "$ac_t"; then
10722: break
10723: elif $ac_last_try; then
10724: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10725: else
10726: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10727: fi
10728: done
10729:
10730: # For the awk script, D is an array of macro values keyed by name,
10731: # likewise P contains macro parameters if any. Preserve backslash
10732: # newline sequences.
10733:
10734: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10735: sed -n '
10736: s/.\{148\}/&'"$ac_delim"'/g
10737: t rset
10738: :rset
10739: s/^[ ]*#[ ]*define[ ][ ]*/ /
10740: t def
10741: d
10742: :def
10743: s/\\$//
10744: t bsnl
10745: s/["\\]/\\&/g
10746: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10747: D["\1"]=" \3"/p
10748: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10749: d
10750: :bsnl
10751: s/["\\]/\\&/g
10752: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10753: D["\1"]=" \3\\\\\\n"\\/p
10754: t cont
10755: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10756: t cont
10757: d
10758: :cont
10759: n
10760: s/.\{148\}/&'"$ac_delim"'/g
10761: t clear
10762: :clear
10763: s/\\$//
10764: t bsnlc
10765: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10766: d
10767: :bsnlc
10768: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10769: b cont
10770: ' <confdefs.h | sed '
10771: s/'"$ac_delim"'/"\\\
10772: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10773:
10774: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10775: for (key in D) D_is_set[key] = 1
10776: FS = ""
10777: }
10778: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10779: line = \$ 0
10780: split(line, arg, " ")
10781: if (arg[1] == "#") {
10782: defundef = arg[2]
10783: mac1 = arg[3]
10784: } else {
10785: defundef = substr(arg[1], 2)
10786: mac1 = arg[2]
10787: }
10788: split(mac1, mac2, "(") #)
10789: macro = mac2[1]
10790: prefix = substr(line, 1, index(line, defundef) - 1)
10791: if (D_is_set[macro]) {
10792: # Preserve the white space surrounding the "#".
10793: print prefix "define", macro P[macro] D[macro]
10794: next
10795: } else {
10796: # Replace #undef with comments. This is necessary, for example,
10797: # in the case of _POSIX_SOURCE, which is predefined and required
10798: # on some systems where configure will not decide to define it.
10799: if (defundef == "undef") {
10800: print "/*", prefix defundef, macro, "*/"
10801: next
10802: }
10803: }
10804: }
10805: { print }
10806: _ACAWK
10807: _ACEOF
10808: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10809: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10810: fi # test -n "$CONFIG_HEADERS"
10811:
10812:
10813: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10814: shift
10815: for ac_tag
10816: do
10817: case $ac_tag in
10818: :[FHLC]) ac_mode=$ac_tag; continue;;
10819: esac
10820: case $ac_mode$ac_tag in
10821: :[FHL]*:*);;
10822: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
10823: :[FH]-) ac_tag=-:-;;
10824: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10825: esac
10826: ac_save_IFS=$IFS
10827: IFS=:
10828: set x $ac_tag
10829: IFS=$ac_save_IFS
10830: shift
10831: ac_file=$1
10832: shift
10833:
10834: case $ac_mode in
10835: :L) ac_source=$1;;
10836: :[FH])
10837: ac_file_inputs=
10838: for ac_f
10839: do
10840: case $ac_f in
10841: -) ac_f="$tmp/stdin";;
10842: *) # Look for the file first in the build tree, then in the source tree
10843: # (if the path is not absolute). The absolute path cannot be DOS-style,
10844: # because $ac_f cannot contain `:'.
10845: test -f "$ac_f" ||
10846: case $ac_f in
10847: [\\/$]*) false;;
10848: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10849: esac ||
10850: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
10851: esac
10852: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10853: as_fn_append ac_file_inputs " '$ac_f'"
10854: done
10855:
10856: # Let's still pretend it is `configure' which instantiates (i.e., don't
10857: # use $as_me), people would be surprised to read:
10858: # /* config.h. Generated by config.status. */
10859: configure_input='Generated from '`
10860: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10861: `' by configure.'
10862: if test x"$ac_file" != x-; then
10863: configure_input="$ac_file. $configure_input"
10864: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10865: $as_echo "$as_me: creating $ac_file" >&6;}
10866: fi
10867: # Neutralize special characters interpreted by sed in replacement strings.
10868: case $configure_input in #(
10869: *\&* | *\|* | *\\* )
10870: ac_sed_conf_input=`$as_echo "$configure_input" |
10871: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10872: *) ac_sed_conf_input=$configure_input;;
10873: esac
10874:
10875: case $ac_tag in
10876: *:-:* | *:-) cat >"$tmp/stdin" \
10877: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10878: esac
10879: ;;
10880: esac
10881:
10882: ac_dir=`$as_dirname -- "$ac_file" ||
10883: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10884: X"$ac_file" : 'X\(//\)[^/]' \| \
10885: X"$ac_file" : 'X\(//\)$' \| \
10886: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10887: $as_echo X"$ac_file" |
10888: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10889: s//\1/
10890: q
10891: }
10892: /^X\(\/\/\)[^/].*/{
10893: s//\1/
10894: q
10895: }
10896: /^X\(\/\/\)$/{
10897: s//\1/
10898: q
10899: }
10900: /^X\(\/\).*/{
10901: s//\1/
10902: q
10903: }
10904: s/.*/./; q'`
10905: as_dir="$ac_dir"; as_fn_mkdir_p
10906: ac_builddir=.
10907:
10908: case "$ac_dir" in
10909: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10910: *)
10911: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10912: # A ".." for each directory in $ac_dir_suffix.
10913: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10914: case $ac_top_builddir_sub in
10915: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10916: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10917: esac ;;
10918: esac
10919: ac_abs_top_builddir=$ac_pwd
10920: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10921: # for backward compatibility:
10922: ac_top_builddir=$ac_top_build_prefix
10923:
10924: case $srcdir in
10925: .) # We are building in place.
10926: ac_srcdir=.
10927: ac_top_srcdir=$ac_top_builddir_sub
10928: ac_abs_top_srcdir=$ac_pwd ;;
10929: [\\/]* | ?:[\\/]* ) # Absolute name.
10930: ac_srcdir=$srcdir$ac_dir_suffix;
10931: ac_top_srcdir=$srcdir
10932: ac_abs_top_srcdir=$srcdir ;;
10933: *) # Relative name.
10934: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10935: ac_top_srcdir=$ac_top_build_prefix$srcdir
10936: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10937: esac
10938: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10939:
10940:
10941: case $ac_mode in
10942: :F)
10943: #
10944: # CONFIG_FILE
10945: #
10946:
10947: case $INSTALL in
10948: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10949: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10950: esac
10951: ac_MKDIR_P=$MKDIR_P
10952: case $MKDIR_P in
10953: [\\/$]* | ?:[\\/]* ) ;;
10954: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10955: esac
10956: _ACEOF
10957:
10958: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10959: # If the template does not know about datarootdir, expand it.
10960: # FIXME: This hack should be removed a few years after 2.60.
10961: ac_datarootdir_hack=; ac_datarootdir_seen=
10962: ac_sed_dataroot='
10963: /datarootdir/ {
10964: p
10965: q
10966: }
10967: /@datadir@/p
10968: /@docdir@/p
10969: /@infodir@/p
10970: /@localedir@/p
10971: /@mandir@/p'
10972: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10973: *datarootdir*) ac_datarootdir_seen=yes;;
10974: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10975: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10976: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10977: _ACEOF
10978: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10979: ac_datarootdir_hack='
10980: s&@datadir@&$datadir&g
10981: s&@docdir@&$docdir&g
10982: s&@infodir@&$infodir&g
10983: s&@localedir@&$localedir&g
10984: s&@mandir@&$mandir&g
10985: s&\\\${datarootdir}&$datarootdir&g' ;;
10986: esac
10987: _ACEOF
10988:
10989: # Neutralize VPATH when `$srcdir' = `.'.
10990: # Shell code in configure.ac might set extrasub.
10991: # FIXME: do we really want to maintain this feature?
10992: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10993: ac_sed_extra="$ac_vpsub
10994: $extrasub
10995: _ACEOF
10996: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10997: :t
10998: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10999: s|@configure_input@|$ac_sed_conf_input|;t t
11000: s&@top_builddir@&$ac_top_builddir_sub&;t t
11001: s&@top_build_prefix@&$ac_top_build_prefix&;t t
11002: s&@srcdir@&$ac_srcdir&;t t
11003: s&@abs_srcdir@&$ac_abs_srcdir&;t t
11004: s&@top_srcdir@&$ac_top_srcdir&;t t
11005: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11006: s&@builddir@&$ac_builddir&;t t
11007: s&@abs_builddir@&$ac_abs_builddir&;t t
11008: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11009: s&@INSTALL@&$ac_INSTALL&;t t
11010: s&@MKDIR_P@&$ac_MKDIR_P&;t t
11011: $ac_datarootdir_hack
11012: "
11013: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11014: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11015:
11016: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11017: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11018: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11019: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11020: which seems to be undefined. Please make sure it is defined" >&5
11021: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11022: which seems to be undefined. Please make sure it is defined" >&2;}
11023:
11024: rm -f "$tmp/stdin"
11025: case $ac_file in
11026: -) cat "$tmp/out" && rm -f "$tmp/out";;
11027: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11028: esac \
11029: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11030: ;;
11031: :H)
11032: #
11033: # CONFIG_HEADER
11034: #
11035: if test x"$ac_file" != x-; then
11036: {
11037: $as_echo "/* $configure_input */" \
11038: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11039: } >"$tmp/config.h" \
11040: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11041: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11042: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11043: $as_echo "$as_me: $ac_file is unchanged" >&6;}
11044: else
11045: rm -f "$ac_file"
11046: mv "$tmp/config.h" "$ac_file" \
11047: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11048: fi
11049: else
11050: $as_echo "/* $configure_input */" \
11051: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11052: || as_fn_error $? "could not create -" "$LINENO" 5
11053: fi
11054: # Compute "$ac_file"'s index in $config_headers.
11055: _am_arg="$ac_file"
11056: _am_stamp_count=1
11057: for _am_header in $config_headers :; do
11058: case $_am_header in
11059: $_am_arg | $_am_arg:* )
11060: break ;;
11061: * )
11062: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11063: esac
11064: done
11065: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11066: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11067: X"$_am_arg" : 'X\(//\)[^/]' \| \
11068: X"$_am_arg" : 'X\(//\)$' \| \
11069: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11070: $as_echo X"$_am_arg" |
11071: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11072: s//\1/
11073: q
11074: }
11075: /^X\(\/\/\)[^/].*/{
11076: s//\1/
11077: q
11078: }
11079: /^X\(\/\/\)$/{
11080: s//\1/
11081: q
11082: }
11083: /^X\(\/\).*/{
11084: s//\1/
11085: q
11086: }
11087: s/.*/./; q'`/stamp-h$_am_stamp_count
11088: ;;
11089:
11090: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11091: $as_echo "$as_me: executing $ac_file commands" >&6;}
11092: ;;
11093: esac
11094:
11095:
11096: case $ac_file$ac_mode in
11097: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11098: # Autoconf 2.62 quotes --file arguments for eval, but not when files
11099: # are listed without --file. Let's play safe and only enable the eval
11100: # if we detect the quoting.
11101: case $CONFIG_FILES in
11102: *\'*) eval set x "$CONFIG_FILES" ;;
11103: *) set x $CONFIG_FILES ;;
11104: esac
11105: shift
11106: for mf
11107: do
11108: # Strip MF so we end up with the name of the file.
11109: mf=`echo "$mf" | sed -e 's/:.*$//'`
11110: # Check whether this is an Automake generated Makefile or not.
11111: # We used to match only the files named `Makefile.in', but
11112: # some people rename them; so instead we look at the file content.
11113: # Grep'ing the first line is not enough: some people post-process
11114: # each Makefile.in and add a new line on top of each file to say so.
11115: # Grep'ing the whole file is not good either: AIX grep has a line
11116: # limit of 2048, but all sed's we know have understand at least 4000.
11117: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11118: dirpart=`$as_dirname -- "$mf" ||
11119: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11120: X"$mf" : 'X\(//\)[^/]' \| \
11121: X"$mf" : 'X\(//\)$' \| \
11122: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11123: $as_echo X"$mf" |
11124: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11125: s//\1/
11126: q
11127: }
11128: /^X\(\/\/\)[^/].*/{
11129: s//\1/
11130: q
11131: }
11132: /^X\(\/\/\)$/{
11133: s//\1/
11134: q
11135: }
11136: /^X\(\/\).*/{
11137: s//\1/
11138: q
11139: }
11140: s/.*/./; q'`
11141: else
11142: continue
11143: fi
11144: # Extract the definition of DEPDIR, am__include, and am__quote
11145: # from the Makefile without running `make'.
11146: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11147: test -z "$DEPDIR" && continue
11148: am__include=`sed -n 's/^am__include = //p' < "$mf"`
11149: test -z "am__include" && continue
11150: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11151: # When using ansi2knr, U may be empty or an underscore; expand it
11152: U=`sed -n 's/^U = //p' < "$mf"`
11153: # Find all dependency output files, they are included files with
11154: # $(DEPDIR) in their names. We invoke sed twice because it is the
11155: # simplest approach to changing $(DEPDIR) to its actual value in the
11156: # expansion.
11157: for file in `sed -n "
11158: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11159: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11160: # Make sure the directory exists.
11161: test -f "$dirpart/$file" && continue
11162: fdir=`$as_dirname -- "$file" ||
11163: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11164: X"$file" : 'X\(//\)[^/]' \| \
11165: X"$file" : 'X\(//\)$' \| \
11166: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11167: $as_echo X"$file" |
11168: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11169: s//\1/
11170: q
11171: }
11172: /^X\(\/\/\)[^/].*/{
11173: s//\1/
11174: q
11175: }
11176: /^X\(\/\/\)$/{
11177: s//\1/
11178: q
11179: }
11180: /^X\(\/\).*/{
11181: s//\1/
11182: q
11183: }
11184: s/.*/./; q'`
11185: as_dir=$dirpart/$fdir; as_fn_mkdir_p
11186: # echo "creating $dirpart/$file"
11187: echo '# dummy' > "$dirpart/$file"
11188: done
11189: done
11190: }
11191: ;;
11192:
11193: esac
11194: done # for ac_tag
11195:
11196:
11197: as_fn_exit 0
11198: _ACEOF
11199: ac_clean_files=$ac_clean_files_save
11200:
11201: test $ac_write_fail = 0 ||
11202: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11203:
11204:
11205: # configure is writing to config.log, and then calls config.status.
11206: # config.status does its own redirection, appending to config.log.
11207: # Unfortunately, on DOS this fails, as config.log is still kept open
11208: # by configure, so config.status won't be able to write to it; its
11209: # output is simply discarded. So we exec the FD to /dev/null,
11210: # effectively closing config.log, so it can be properly (re)opened and
11211: # appended to by config.status. When coming back to configure, we
11212: # need to make the FD available again.
11213: if test "$no_create" != yes; then
11214: ac_cs_success=:
11215: ac_config_status_args=
11216: test "$silent" = yes &&
11217: ac_config_status_args="$ac_config_status_args --quiet"
11218: exec 5>/dev/null
11219: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11220: exec 5>>config.log
11221: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11222: # would make configure fail if this is the last instruction.
11223: $ac_cs_success || as_fn_exit 1
11224: fi
11225:
11226: #
11227: # CONFIG_SUBDIRS section.
11228: #
11229: if test "$no_recursion" != yes; then
11230:
11231: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11232: # so they do not pile up.
11233: ac_sub_configure_args=
11234: ac_prev=
11235: eval "set x $ac_configure_args"
11236: shift
11237: for ac_arg
11238: do
11239: if test -n "$ac_prev"; then
11240: ac_prev=
11241: continue
11242: fi
11243: case $ac_arg in
11244: -cache-file | --cache-file | --cache-fil | --cache-fi \
11245: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11246: ac_prev=cache_file ;;
11247: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11248: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11249: | --c=*)
11250: ;;
11251: --config-cache | -C)
11252: ;;
11253: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11254: ac_prev=srcdir ;;
11255: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11256: ;;
11257: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11258: ac_prev=prefix ;;
11259: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11260: ;;
11261: --disable-option-checking)
11262: ;;
11263: *)
11264: case $ac_arg in
11265: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11266: esac
11267: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11268: esac
11269: done
11270:
11271: # Always prepend --prefix to ensure using the same prefix
11272: # in subdir configurations.
11273: ac_arg="--prefix=$prefix"
11274: case $ac_arg in
11275: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11276: esac
11277: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11278:
11279: # Pass --silent
11280: if test "$silent" = yes; then
11281: ac_sub_configure_args="--silent $ac_sub_configure_args"
11282: fi
11283:
11284: # Always prepend --disable-option-checking to silence warnings, since
11285: # different subdirs can have different --enable and --with options.
11286: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11287:
11288: ac_popdir=`pwd`
11289: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11290:
11291: # Do not complain, so a configure script can configure whichever
11292: # parts of a large source tree are present.
11293: test -d "$srcdir/$ac_dir" || continue
11294:
11295: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11296: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11297: $as_echo "$ac_msg" >&6
11298: as_dir="$ac_dir"; as_fn_mkdir_p
11299: ac_builddir=.
11300:
11301: case "$ac_dir" in
11302: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11303: *)
11304: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11305: # A ".." for each directory in $ac_dir_suffix.
11306: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11307: case $ac_top_builddir_sub in
11308: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11309: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11310: esac ;;
11311: esac
11312: ac_abs_top_builddir=$ac_pwd
11313: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11314: # for backward compatibility:
11315: ac_top_builddir=$ac_top_build_prefix
11316:
11317: case $srcdir in
11318: .) # We are building in place.
11319: ac_srcdir=.
11320: ac_top_srcdir=$ac_top_builddir_sub
11321: ac_abs_top_srcdir=$ac_pwd ;;
11322: [\\/]* | ?:[\\/]* ) # Absolute name.
11323: ac_srcdir=$srcdir$ac_dir_suffix;
11324: ac_top_srcdir=$srcdir
11325: ac_abs_top_srcdir=$srcdir ;;
11326: *) # Relative name.
11327: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11328: ac_top_srcdir=$ac_top_build_prefix$srcdir
11329: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11330: esac
11331: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11332:
11333:
11334: cd "$ac_dir"
11335:
11336: # Check for guested configure; otherwise get Cygnus style configure.
11337: if test -f "$ac_srcdir/configure.gnu"; then
11338: ac_sub_configure=$ac_srcdir/configure.gnu
11339: elif test -f "$ac_srcdir/configure"; then
11340: ac_sub_configure=$ac_srcdir/configure
11341: elif test -f "$ac_srcdir/configure.in"; then
11342: # This should be Cygnus configure.
11343: ac_sub_configure=$ac_aux_dir/configure
11344: else
11345: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11346: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11347: ac_sub_configure=
11348: fi
11349:
11350: # The recursion is here.
11351: if test -n "$ac_sub_configure"; then
11352: # Make the cache file name correct relative to the subdirectory.
11353: case $cache_file in
11354: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11355: *) # Relative name.
11356: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11357: esac
11358:
11359: { $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
11360: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11361: # The eval makes quoting arguments work.
11362: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11363: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11364: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11365: fi
11366:
11367: cd "$ac_popdir"
11368: done
11369: fi
11370: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11371: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11372: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11373: fi
11374:
CVSweb interface <joel.bertrand@systella.fr>