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