1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.65 for rpl 4.0.16.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8: # 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 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=$?; test $as_status -eq 0 && as_status=1
367: if test "$3"; then
368: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370: fi
371: $as_echo "$as_me: error: $1" >&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, 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.0.16'
553: PACKAGE_STRING='rpl 4.0.16'
554: PACKAGE_BUGREPORT=''
555: PACKAGE_URL=''
556:
557: ac_default_prefix=/usr/local
558: # Factoring default headers for most tests.
559: ac_includes_default="\
560: #include <stdio.h>
561: #ifdef HAVE_SYS_TYPES_H
562: # include <sys/types.h>
563: #endif
564: #ifdef HAVE_SYS_STAT_H
565: # include <sys/stat.h>
566: #endif
567: #ifdef STDC_HEADERS
568: # include <stdlib.h>
569: # include <stddef.h>
570: #else
571: # ifdef HAVE_STDLIB_H
572: # include <stdlib.h>
573: # endif
574: #endif
575: #ifdef HAVE_STRING_H
576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577: # include <memory.h>
578: # endif
579: # include <string.h>
580: #endif
581: #ifdef HAVE_STRINGS_H
582: # include <strings.h>
583: #endif
584: #ifdef HAVE_INTTYPES_H
585: # include <inttypes.h>
586: #endif
587: #ifdef HAVE_STDINT_H
588: # include <stdint.h>
589: #endif
590: #ifdef HAVE_UNISTD_H
591: # include <unistd.h>
592: #endif"
593:
594: enable_option_checking=no
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
599: MALLOC
600: DATE_FR
601: FINAL_ENCODING
602: OPENSSL
603: SQLITE
604: ICONV
605: FILE
606: GNUPLOT
607: GPP
608: GSL
609: UNITS
610: READLINE
611: NCURSES
612: SEMAPHORES_NOMMES
613: NESTED_FUNCTIONS
614: EXPORT_DYNAMIC
615: OS
616: GNUPLOT_COMPILATION
617: subdirs
618: EGREP
619: GREP
620: libPgSQLlib
621: libPgSQLinc
622: POSTGRESQL_SUPPORT
623: libMySQLlib
624: libMySQLinc
625: MYSQL_SUPPORT
626: DATE
627: includeX
628: libX
629: MOTIF_SUPPORT
630: DEBUG
631: EXPERIMENTAL_CODE
632: VIM_SUPPORT
633: POSTSCRIPT_SUPPORT
634: FORCE_GNUPLOT_PATH
635: GNUPLOT_SUPPORT
636: VIM
637: GNUPLOT_P
638: GV
639: GS
640: DVIPS
641: LATEX
642: TEX
643: SED
644: RANLIB
645: LN_S
646: RUNPATH
647: PROFILAGE
648: X_EXTRA_LIBS
649: X_LIBS
650: X_PRE_LIBS
651: X_CFLAGS
652: CPP
653: XMKMF
654: ac_ct_FC
655: FCFLAGS
656: FC
657: ac_ct_F77
658: FFLAGS
659: F77
660: am__fastdepCXX_FALSE
661: am__fastdepCXX_TRUE
662: CXXDEPMODE
663: ac_ct_CXX
664: CXXFLAGS
665: CXX
666: am__fastdepCC_FALSE
667: am__fastdepCC_TRUE
668: CCDEPMODE
669: AMDEPBACKSLASH
670: AMDEP_FALSE
671: AMDEP_TRUE
672: am__quote
673: am__include
674: DEPDIR
675: OBJEXT
676: EXEEXT
677: ac_ct_CC
678: CPPFLAGS
679: LDFLAGS
680: CFLAGS
681: CC
682: am__untar
683: am__tar
684: AMTAR
685: am__leading_dot
686: SET_MAKE
687: AWK
688: mkdir_p
689: MKDIR_P
690: INSTALL_STRIP_PROGRAM
691: STRIP
692: install_sh
693: MAKEINFO
694: AUTOHEADER
695: AUTOMAKE
696: AUTOCONF
697: ACLOCAL
698: VERSION
699: PACKAGE
700: CYGPATH_W
701: am__isrc
702: INSTALL_DATA
703: INSTALL_SCRIPT
704: INSTALL_PROGRAM
705: target_os
706: target_vendor
707: target_cpu
708: target
709: host_os
710: host_vendor
711: host_cpu
712: host
713: build_os
714: build_vendor
715: build_cpu
716: build
717: target_alias
718: host_alias
719: build_alias
720: LIBS
721: ECHO_T
722: ECHO_N
723: ECHO_C
724: DEFS
725: mandir
726: localedir
727: libdir
728: psdir
729: pdfdir
730: dvidir
731: htmldir
732: infodir
733: docdir
734: oldincludedir
735: includedir
736: localstatedir
737: sharedstatedir
738: sysconfdir
739: datadir
740: datarootdir
741: libexecdir
742: sbindir
743: bindir
744: program_transform_name
745: prefix
746: exec_prefix
747: PACKAGE_URL
748: PACKAGE_BUGREPORT
749: PACKAGE_STRING
750: PACKAGE_VERSION
751: PACKAGE_TARNAME
752: PACKAGE_NAME
753: PATH_SEPARATOR
754: SHELL'
755: ac_subst_files=''
756: ac_user_opts='
757: enable_option_checking
758: enable_dependency_tracking
759: with_x
760: enable_optimization
761: enable_final_encoding
762: enable_tex
763: enable_vim
764: enable_embedded_gnuplot
765: enable_gnuplot
766: enable_motif
767: enable_experimental
768: enable_debug
769: enable_profile
770: enable_final_run_path
771: with_mysql
772: with_postgresql
773: with_openssl_arch
774: '
775: ac_precious_vars='build_alias
776: host_alias
777: target_alias
778: CC
779: CFLAGS
780: LDFLAGS
781: LIBS
782: CPPFLAGS
783: CXX
784: CXXFLAGS
785: CCC
786: F77
787: FFLAGS
788: FC
789: FCFLAGS
790: XMKMF
791: CPP'
792: ac_subdirs_all='tools/$NCURSES
793: tools/$READLINE
794: tools/$GSL
795: tools/$GPP
796: tools/$FILE
797: tools/$ICONV
798: tools/$SQLITE
799: tools/$UNITS
800: tools/$GNUPLOT'
801:
802: # Initialize some variables set by options.
803: ac_init_help=
804: ac_init_version=false
805: ac_unrecognized_opts=
806: ac_unrecognized_sep=
807: # The variables have the same names as the options, with
808: # dashes changed to underlines.
809: cache_file=/dev/null
810: exec_prefix=NONE
811: no_create=
812: no_recursion=
813: prefix=NONE
814: program_prefix=NONE
815: program_suffix=NONE
816: program_transform_name=s,x,x,
817: silent=
818: site=
819: srcdir=
820: verbose=
821: x_includes=NONE
822: x_libraries=NONE
823:
824: # Installation directory options.
825: # These are left unexpanded so users can "make install exec_prefix=/foo"
826: # and all the variables that are supposed to be based on exec_prefix
827: # by default will actually change.
828: # Use braces instead of parens because sh, perl, etc. also accept them.
829: # (The list follows the same order as the GNU Coding Standards.)
830: bindir='${exec_prefix}/bin'
831: sbindir='${exec_prefix}/sbin'
832: libexecdir='${exec_prefix}/libexec'
833: datarootdir='${prefix}/share'
834: datadir='${datarootdir}'
835: sysconfdir='${prefix}/etc'
836: sharedstatedir='${prefix}/com'
837: localstatedir='${prefix}/var'
838: includedir='${prefix}/include'
839: oldincludedir='/usr/include'
840: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841: infodir='${datarootdir}/info'
842: htmldir='${docdir}'
843: dvidir='${docdir}'
844: pdfdir='${docdir}'
845: psdir='${docdir}'
846: libdir='${exec_prefix}/lib'
847: localedir='${datarootdir}/locale'
848: mandir='${datarootdir}/man'
849:
850: ac_prev=
851: ac_dashdash=
852: for ac_option
853: do
854: # If the previous option needs an argument, assign it.
855: if test -n "$ac_prev"; then
856: eval $ac_prev=\$ac_option
857: ac_prev=
858: continue
859: fi
860:
861: case $ac_option in
862: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863: *) ac_optarg=yes ;;
864: esac
865:
866: # Accept the important Cygnus configure options, so we can diagnose typos.
867:
868: case $ac_dashdash$ac_option in
869: --)
870: ac_dashdash=yes ;;
871:
872: -bindir | --bindir | --bindi | --bind | --bin | --bi)
873: ac_prev=bindir ;;
874: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875: bindir=$ac_optarg ;;
876:
877: -build | --build | --buil | --bui | --bu)
878: ac_prev=build_alias ;;
879: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880: build_alias=$ac_optarg ;;
881:
882: -cache-file | --cache-file | --cache-fil | --cache-fi \
883: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884: ac_prev=cache_file ;;
885: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887: cache_file=$ac_optarg ;;
888:
889: --config-cache | -C)
890: cache_file=config.cache ;;
891:
892: -datadir | --datadir | --datadi | --datad)
893: ac_prev=datadir ;;
894: -datadir=* | --datadir=* | --datadi=* | --datad=*)
895: datadir=$ac_optarg ;;
896:
897: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898: | --dataroo | --dataro | --datar)
899: ac_prev=datarootdir ;;
900: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902: datarootdir=$ac_optarg ;;
903:
904: -disable-* | --disable-*)
905: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906: # Reject names that are not valid shell variable names.
907: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908: as_fn_error "invalid feature name: $ac_useropt"
909: ac_useropt_orig=$ac_useropt
910: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911: case $ac_user_opts in
912: *"
913: "enable_$ac_useropt"
914: "*) ;;
915: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916: ac_unrecognized_sep=', ';;
917: esac
918: eval enable_$ac_useropt=no ;;
919:
920: -docdir | --docdir | --docdi | --doc | --do)
921: ac_prev=docdir ;;
922: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923: docdir=$ac_optarg ;;
924:
925: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926: ac_prev=dvidir ;;
927: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928: dvidir=$ac_optarg ;;
929:
930: -enable-* | --enable-*)
931: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932: # Reject names that are not valid shell variable names.
933: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934: as_fn_error "invalid feature name: $ac_useropt"
935: ac_useropt_orig=$ac_useropt
936: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937: case $ac_user_opts in
938: *"
939: "enable_$ac_useropt"
940: "*) ;;
941: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942: ac_unrecognized_sep=', ';;
943: esac
944: eval enable_$ac_useropt=\$ac_optarg ;;
945:
946: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948: | --exec | --exe | --ex)
949: ac_prev=exec_prefix ;;
950: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952: | --exec=* | --exe=* | --ex=*)
953: exec_prefix=$ac_optarg ;;
954:
955: -gas | --gas | --ga | --g)
956: # Obsolete; use --with-gas.
957: with_gas=yes ;;
958:
959: -help | --help | --hel | --he | -h)
960: ac_init_help=long ;;
961: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962: ac_init_help=recursive ;;
963: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964: ac_init_help=short ;;
965:
966: -host | --host | --hos | --ho)
967: ac_prev=host_alias ;;
968: -host=* | --host=* | --hos=* | --ho=*)
969: host_alias=$ac_optarg ;;
970:
971: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972: ac_prev=htmldir ;;
973: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974: | --ht=*)
975: htmldir=$ac_optarg ;;
976:
977: -includedir | --includedir | --includedi | --included | --include \
978: | --includ | --inclu | --incl | --inc)
979: ac_prev=includedir ;;
980: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981: | --includ=* | --inclu=* | --incl=* | --inc=*)
982: includedir=$ac_optarg ;;
983:
984: -infodir | --infodir | --infodi | --infod | --info | --inf)
985: ac_prev=infodir ;;
986: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987: infodir=$ac_optarg ;;
988:
989: -libdir | --libdir | --libdi | --libd)
990: ac_prev=libdir ;;
991: -libdir=* | --libdir=* | --libdi=* | --libd=*)
992: libdir=$ac_optarg ;;
993:
994: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995: | --libexe | --libex | --libe)
996: ac_prev=libexecdir ;;
997: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998: | --libexe=* | --libex=* | --libe=*)
999: libexecdir=$ac_optarg ;;
1000:
1001: -localedir | --localedir | --localedi | --localed | --locale)
1002: ac_prev=localedir ;;
1003: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004: localedir=$ac_optarg ;;
1005:
1006: -localstatedir | --localstatedir | --localstatedi | --localstated \
1007: | --localstate | --localstat | --localsta | --localst | --locals)
1008: ac_prev=localstatedir ;;
1009: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011: localstatedir=$ac_optarg ;;
1012:
1013: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014: ac_prev=mandir ;;
1015: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016: mandir=$ac_optarg ;;
1017:
1018: -nfp | --nfp | --nf)
1019: # Obsolete; use --without-fp.
1020: with_fp=no ;;
1021:
1022: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023: | --no-cr | --no-c | -n)
1024: no_create=yes ;;
1025:
1026: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028: no_recursion=yes ;;
1029:
1030: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032: | --oldin | --oldi | --old | --ol | --o)
1033: ac_prev=oldincludedir ;;
1034: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037: oldincludedir=$ac_optarg ;;
1038:
1039: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040: ac_prev=prefix ;;
1041: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042: prefix=$ac_optarg ;;
1043:
1044: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045: | --program-pre | --program-pr | --program-p)
1046: ac_prev=program_prefix ;;
1047: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049: program_prefix=$ac_optarg ;;
1050:
1051: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052: | --program-suf | --program-su | --program-s)
1053: ac_prev=program_suffix ;;
1054: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056: program_suffix=$ac_optarg ;;
1057:
1058: -program-transform-name | --program-transform-name \
1059: | --program-transform-nam | --program-transform-na \
1060: | --program-transform-n | --program-transform- \
1061: | --program-transform | --program-transfor \
1062: | --program-transfo | --program-transf \
1063: | --program-trans | --program-tran \
1064: | --progr-tra | --program-tr | --program-t)
1065: ac_prev=program_transform_name ;;
1066: -program-transform-name=* | --program-transform-name=* \
1067: | --program-transform-nam=* | --program-transform-na=* \
1068: | --program-transform-n=* | --program-transform-=* \
1069: | --program-transform=* | --program-transfor=* \
1070: | --program-transfo=* | --program-transf=* \
1071: | --program-trans=* | --program-tran=* \
1072: | --progr-tra=* | --program-tr=* | --program-t=*)
1073: program_transform_name=$ac_optarg ;;
1074:
1075: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076: ac_prev=pdfdir ;;
1077: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078: pdfdir=$ac_optarg ;;
1079:
1080: -psdir | --psdir | --psdi | --psd | --ps)
1081: ac_prev=psdir ;;
1082: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083: psdir=$ac_optarg ;;
1084:
1085: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086: | -silent | --silent | --silen | --sile | --sil)
1087: silent=yes ;;
1088:
1089: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090: ac_prev=sbindir ;;
1091: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092: | --sbi=* | --sb=*)
1093: sbindir=$ac_optarg ;;
1094:
1095: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097: | --sharedst | --shareds | --shared | --share | --shar \
1098: | --sha | --sh)
1099: ac_prev=sharedstatedir ;;
1100: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103: | --sha=* | --sh=*)
1104: sharedstatedir=$ac_optarg ;;
1105:
1106: -site | --site | --sit)
1107: ac_prev=site ;;
1108: -site=* | --site=* | --sit=*)
1109: site=$ac_optarg ;;
1110:
1111: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112: ac_prev=srcdir ;;
1113: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114: srcdir=$ac_optarg ;;
1115:
1116: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117: | --syscon | --sysco | --sysc | --sys | --sy)
1118: ac_prev=sysconfdir ;;
1119: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121: sysconfdir=$ac_optarg ;;
1122:
1123: -target | --target | --targe | --targ | --tar | --ta | --t)
1124: ac_prev=target_alias ;;
1125: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126: target_alias=$ac_optarg ;;
1127:
1128: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129: verbose=yes ;;
1130:
1131: -version | --version | --versio | --versi | --vers | -V)
1132: ac_init_version=: ;;
1133:
1134: -with-* | --with-*)
1135: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136: # Reject names that are not valid shell variable names.
1137: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138: as_fn_error "invalid package name: $ac_useropt"
1139: ac_useropt_orig=$ac_useropt
1140: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141: case $ac_user_opts in
1142: *"
1143: "with_$ac_useropt"
1144: "*) ;;
1145: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146: ac_unrecognized_sep=', ';;
1147: esac
1148: eval with_$ac_useropt=\$ac_optarg ;;
1149:
1150: -without-* | --without-*)
1151: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152: # Reject names that are not valid shell variable names.
1153: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154: as_fn_error "invalid package name: $ac_useropt"
1155: ac_useropt_orig=$ac_useropt
1156: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157: case $ac_user_opts in
1158: *"
1159: "with_$ac_useropt"
1160: "*) ;;
1161: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162: ac_unrecognized_sep=', ';;
1163: esac
1164: eval with_$ac_useropt=no ;;
1165:
1166: --x)
1167: # Obsolete; use --with-x.
1168: with_x=yes ;;
1169:
1170: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171: | --x-incl | --x-inc | --x-in | --x-i)
1172: ac_prev=x_includes ;;
1173: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175: x_includes=$ac_optarg ;;
1176:
1177: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179: ac_prev=x_libraries ;;
1180: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182: x_libraries=$ac_optarg ;;
1183:
1184: -*) as_fn_error "unrecognized option: \`$ac_option'
1185: Try \`$0 --help' for more information."
1186: ;;
1187:
1188: *=*)
1189: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190: # Reject names that are not valid shell variable names.
1191: case $ac_envvar in #(
1192: '' | [0-9]* | *[!_$as_cr_alnum]* )
1193: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1194: esac
1195: eval $ac_envvar=\$ac_optarg
1196: export $ac_envvar ;;
1197:
1198: *)
1199: # FIXME: should be removed in autoconf 3.0.
1200: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204: ;;
1205:
1206: esac
1207: done
1208:
1209: if test -n "$ac_prev"; then
1210: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211: as_fn_error "missing argument to $ac_option"
1212: fi
1213:
1214: if test -n "$ac_unrecognized_opts"; then
1215: case $enable_option_checking in
1216: no) ;;
1217: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1218: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219: esac
1220: fi
1221:
1222: # Check all directory arguments for consistency.
1223: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224: datadir sysconfdir sharedstatedir localstatedir includedir \
1225: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226: libdir localedir mandir
1227: do
1228: eval ac_val=\$$ac_var
1229: # Remove trailing slashes.
1230: case $ac_val in
1231: */ )
1232: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233: eval $ac_var=\$ac_val;;
1234: esac
1235: # Be sure to have absolute directory names.
1236: case $ac_val in
1237: [\\/$]* | ?:[\\/]* ) continue;;
1238: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239: esac
1240: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1241: done
1242:
1243: # There might be people who depend on the old broken behavior: `$host'
1244: # used to hold the argument of --host etc.
1245: # FIXME: To remove some day.
1246: build=$build_alias
1247: host=$host_alias
1248: target=$target_alias
1249:
1250: # FIXME: To remove some day.
1251: if test "x$host_alias" != x; then
1252: if test "x$build_alias" = x; then
1253: cross_compiling=maybe
1254: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255: If a cross compiler is detected then cross compile mode will be used." >&2
1256: elif test "x$build_alias" != "x$host_alias"; then
1257: cross_compiling=yes
1258: fi
1259: fi
1260:
1261: ac_tool_prefix=
1262: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263:
1264: test "$silent" = yes && exec 6>/dev/null
1265:
1266:
1267: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268: ac_ls_di=`ls -di .` &&
1269: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270: as_fn_error "working directory cannot be determined"
1271: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272: as_fn_error "pwd does not report name of working directory"
1273:
1274:
1275: # Find the source files, if location was not specified.
1276: if test -z "$srcdir"; then
1277: ac_srcdir_defaulted=yes
1278: # Try the directory containing this script, then the parent directory.
1279: ac_confdir=`$as_dirname -- "$as_myself" ||
1280: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281: X"$as_myself" : 'X\(//\)[^/]' \| \
1282: X"$as_myself" : 'X\(//\)$' \| \
1283: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284: $as_echo X"$as_myself" |
1285: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286: s//\1/
1287: q
1288: }
1289: /^X\(\/\/\)[^/].*/{
1290: s//\1/
1291: q
1292: }
1293: /^X\(\/\/\)$/{
1294: s//\1/
1295: q
1296: }
1297: /^X\(\/\).*/{
1298: s//\1/
1299: q
1300: }
1301: s/.*/./; q'`
1302: srcdir=$ac_confdir
1303: if test ! -r "$srcdir/$ac_unique_file"; then
1304: srcdir=..
1305: fi
1306: else
1307: ac_srcdir_defaulted=no
1308: fi
1309: if test ! -r "$srcdir/$ac_unique_file"; then
1310: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1312: fi
1313: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314: ac_abs_confdir=`(
1315: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1316: pwd)`
1317: # When building in place, set srcdir=.
1318: if test "$ac_abs_confdir" = "$ac_pwd"; then
1319: srcdir=.
1320: fi
1321: # Remove unnecessary trailing slashes from srcdir.
1322: # Double slashes in file names in object file debugging info
1323: # mess up M-x gdb in Emacs.
1324: case $srcdir in
1325: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326: esac
1327: for ac_var in $ac_precious_vars; do
1328: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329: eval ac_env_${ac_var}_value=\$${ac_var}
1330: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332: done
1333:
1334: #
1335: # Report the --help message.
1336: #
1337: if test "$ac_init_help" = "long"; then
1338: # Omit some internal or obsolete options to make the list less imposing.
1339: # This message is too long to be a string in the A/UX 3.1 sh.
1340: cat <<_ACEOF
1341: \`configure' configures rpl 4.0.16 to adapt to many kinds of systems.
1342:
1343: Usage: $0 [OPTION]... [VAR=VALUE]...
1344:
1345: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346: VAR=VALUE. See below for descriptions of some of the useful variables.
1347:
1348: Defaults for the options are specified in brackets.
1349:
1350: Configuration:
1351: -h, --help display this help and exit
1352: --help=short display options specific to this package
1353: --help=recursive display the short help of all the included packages
1354: -V, --version display version information and exit
1355: -q, --quiet, --silent do not print \`checking...' messages
1356: --cache-file=FILE cache test results in FILE [disabled]
1357: -C, --config-cache alias for \`--cache-file=config.cache'
1358: -n, --no-create do not create output files
1359: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360:
1361: Installation directories:
1362: --prefix=PREFIX install architecture-independent files in PREFIX
1363: [$ac_default_prefix]
1364: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365: [PREFIX]
1366:
1367: By default, \`make install' will install all the files in
1368: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370: for instance \`--prefix=\$HOME'.
1371:
1372: For better control, use the options below.
1373:
1374: Fine tuning of the installation directories:
1375: --bindir=DIR user executables [EPREFIX/bin]
1376: --sbindir=DIR system admin executables [EPREFIX/sbin]
1377: --libexecdir=DIR program executables [EPREFIX/libexec]
1378: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381: --libdir=DIR object code libraries [EPREFIX/lib]
1382: --includedir=DIR C header files [PREFIX/include]
1383: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386: --infodir=DIR info documentation [DATAROOTDIR/info]
1387: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388: --mandir=DIR man documentation [DATAROOTDIR/man]
1389: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1390: --htmldir=DIR html documentation [DOCDIR]
1391: --dvidir=DIR dvi documentation [DOCDIR]
1392: --pdfdir=DIR pdf documentation [DOCDIR]
1393: --psdir=DIR ps documentation [DOCDIR]
1394: _ACEOF
1395:
1396: cat <<\_ACEOF
1397:
1398: Program names:
1399: --program-prefix=PREFIX prepend PREFIX to installed program names
1400: --program-suffix=SUFFIX append SUFFIX to installed program names
1401: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402:
1403: X features:
1404: --x-includes=DIR X include files are in DIR
1405: --x-libraries=DIR X library files are in DIR
1406:
1407: System types:
1408: --build=BUILD configure for building on BUILD [guessed]
1409: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410: --target=TARGET configure for building compilers for TARGET [HOST]
1411: _ACEOF
1412: fi
1413:
1414: if test -n "$ac_init_help"; then
1415: case $ac_init_help in
1416: short | recursive ) echo "Configuration of rpl 4.0.16:";;
1417: esac
1418: cat <<\_ACEOF
1419:
1420: Optional Features:
1421: --disable-option-checking ignore unrecognized --enable/--with options
1422: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424: --disable-dependency-tracking speeds up one-time build
1425: --enable-dependency-tracking do not reject slow dependency extractors
1426: --enable-optimization set compiler flags [default=environment variables -O3]
1427: --enable-final-encoding force final encoding [default=guessed]
1428: --enable-tex provide the TeX support [default=guessed]
1429: --enable-vim provide the vim support [default=guessed]
1430: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1431: --enable-gnuplot provide the GnuPlot support [default=guessed]
1432: --enable-motif provide the Motif support [default=guessed]
1433: --enable-experimental enable experimental code [default=no]
1434: --enable-debug enable debug code [default=no]
1435: --enable-profile enable profile code [default=no]
1436: --enable-final-run-path=PATH enable another final run path than PREFIX
1437:
1438: Optional Packages:
1439: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441: --with-x use the X Window System
1442: --with-mysql=PATH specify directory for installed mysql
1443: --with-postgresql=PATH specify directory for installed postgresql
1444: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1445:
1446: Some influential environment variables:
1447: CC C compiler command
1448: CFLAGS C compiler flags
1449: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450: nonstandard directory <lib dir>
1451: LIBS libraries to pass to the linker, e.g. -l<library>
1452: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453: you have headers in a nonstandard directory <include dir>
1454: CXX C++ compiler command
1455: CXXFLAGS C++ compiler flags
1456: F77 Fortran 77 compiler command
1457: FFLAGS Fortran 77 compiler flags
1458: FC Fortran compiler command
1459: FCFLAGS Fortran compiler flags
1460: XMKMF Path to xmkmf, Makefile generator for X Window System
1461: CPP C preprocessor
1462:
1463: Use these variables to override the choices made by `configure' or to help
1464: it to find libraries and programs with nonstandard names/locations.
1465:
1466: Report bugs to the package provider.
1467: _ACEOF
1468: ac_status=$?
1469: fi
1470:
1471: if test "$ac_init_help" = "recursive"; then
1472: # If there are subdirs, report their specific --help.
1473: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474: test -d "$ac_dir" ||
1475: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476: continue
1477: ac_builddir=.
1478:
1479: case "$ac_dir" in
1480: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481: *)
1482: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483: # A ".." for each directory in $ac_dir_suffix.
1484: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485: case $ac_top_builddir_sub in
1486: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488: esac ;;
1489: esac
1490: ac_abs_top_builddir=$ac_pwd
1491: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492: # for backward compatibility:
1493: ac_top_builddir=$ac_top_build_prefix
1494:
1495: case $srcdir in
1496: .) # We are building in place.
1497: ac_srcdir=.
1498: ac_top_srcdir=$ac_top_builddir_sub
1499: ac_abs_top_srcdir=$ac_pwd ;;
1500: [\\/]* | ?:[\\/]* ) # Absolute name.
1501: ac_srcdir=$srcdir$ac_dir_suffix;
1502: ac_top_srcdir=$srcdir
1503: ac_abs_top_srcdir=$srcdir ;;
1504: *) # Relative name.
1505: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506: ac_top_srcdir=$ac_top_build_prefix$srcdir
1507: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508: esac
1509: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510:
1511: cd "$ac_dir" || { ac_status=$?; continue; }
1512: # Check for guested configure.
1513: if test -f "$ac_srcdir/configure.gnu"; then
1514: echo &&
1515: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516: elif test -f "$ac_srcdir/configure"; then
1517: echo &&
1518: $SHELL "$ac_srcdir/configure" --help=recursive
1519: else
1520: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521: fi || ac_status=$?
1522: cd "$ac_pwd" || { ac_status=$?; break; }
1523: done
1524: fi
1525:
1526: test -n "$ac_init_help" && exit $ac_status
1527: if $ac_init_version; then
1528: cat <<\_ACEOF
1529: rpl configure 4.0.16
1530: generated by GNU Autoconf 2.65
1531:
1532: Copyright (C) 2009 Free Software Foundation, Inc.
1533: This configure script is free software; the Free Software Foundation
1534: gives unlimited permission to copy, distribute and modify it.
1535: _ACEOF
1536: exit
1537: fi
1538:
1539: ## ------------------------ ##
1540: ## Autoconf initialization. ##
1541: ## ------------------------ ##
1542:
1543: # ac_fn_c_try_compile LINENO
1544: # --------------------------
1545: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546: ac_fn_c_try_compile ()
1547: {
1548: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549: rm -f conftest.$ac_objext
1550: if { { ac_try="$ac_compile"
1551: case "(($ac_try" in
1552: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553: *) ac_try_echo=$ac_try;;
1554: esac
1555: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556: $as_echo "$ac_try_echo"; } >&5
1557: (eval "$ac_compile") 2>conftest.err
1558: ac_status=$?
1559: if test -s conftest.err; then
1560: grep -v '^ *+' conftest.err >conftest.er1
1561: cat conftest.er1 >&5
1562: mv -f conftest.er1 conftest.err
1563: fi
1564: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565: test $ac_status = 0; } && {
1566: test -z "$ac_c_werror_flag" ||
1567: test ! -s conftest.err
1568: } && test -s conftest.$ac_objext; then :
1569: ac_retval=0
1570: else
1571: $as_echo "$as_me: failed program was:" >&5
1572: sed 's/^/| /' conftest.$ac_ext >&5
1573:
1574: ac_retval=1
1575: fi
1576: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577: as_fn_set_status $ac_retval
1578:
1579: } # ac_fn_c_try_compile
1580:
1581: # ac_fn_cxx_try_compile LINENO
1582: # ----------------------------
1583: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584: ac_fn_cxx_try_compile ()
1585: {
1586: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587: rm -f conftest.$ac_objext
1588: if { { ac_try="$ac_compile"
1589: case "(($ac_try" in
1590: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591: *) ac_try_echo=$ac_try;;
1592: esac
1593: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594: $as_echo "$ac_try_echo"; } >&5
1595: (eval "$ac_compile") 2>conftest.err
1596: ac_status=$?
1597: if test -s conftest.err; then
1598: grep -v '^ *+' conftest.err >conftest.er1
1599: cat conftest.er1 >&5
1600: mv -f conftest.er1 conftest.err
1601: fi
1602: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603: test $ac_status = 0; } && {
1604: test -z "$ac_cxx_werror_flag" ||
1605: test ! -s conftest.err
1606: } && test -s conftest.$ac_objext; then :
1607: ac_retval=0
1608: else
1609: $as_echo "$as_me: failed program was:" >&5
1610: sed 's/^/| /' conftest.$ac_ext >&5
1611:
1612: ac_retval=1
1613: fi
1614: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615: as_fn_set_status $ac_retval
1616:
1617: } # ac_fn_cxx_try_compile
1618:
1619: # ac_fn_f77_try_compile LINENO
1620: # ----------------------------
1621: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622: ac_fn_f77_try_compile ()
1623: {
1624: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625: rm -f conftest.$ac_objext
1626: if { { ac_try="$ac_compile"
1627: case "(($ac_try" in
1628: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629: *) ac_try_echo=$ac_try;;
1630: esac
1631: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632: $as_echo "$ac_try_echo"; } >&5
1633: (eval "$ac_compile") 2>conftest.err
1634: ac_status=$?
1635: if test -s conftest.err; then
1636: grep -v '^ *+' conftest.err >conftest.er1
1637: cat conftest.er1 >&5
1638: mv -f conftest.er1 conftest.err
1639: fi
1640: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641: test $ac_status = 0; } && {
1642: test -z "$ac_f77_werror_flag" ||
1643: test ! -s conftest.err
1644: } && test -s conftest.$ac_objext; then :
1645: ac_retval=0
1646: else
1647: $as_echo "$as_me: failed program was:" >&5
1648: sed 's/^/| /' conftest.$ac_ext >&5
1649:
1650: ac_retval=1
1651: fi
1652: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653: as_fn_set_status $ac_retval
1654:
1655: } # ac_fn_f77_try_compile
1656:
1657: # ac_fn_fc_try_compile LINENO
1658: # ---------------------------
1659: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660: ac_fn_fc_try_compile ()
1661: {
1662: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663: rm -f conftest.$ac_objext
1664: if { { ac_try="$ac_compile"
1665: case "(($ac_try" in
1666: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667: *) ac_try_echo=$ac_try;;
1668: esac
1669: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670: $as_echo "$ac_try_echo"; } >&5
1671: (eval "$ac_compile") 2>conftest.err
1672: ac_status=$?
1673: if test -s conftest.err; then
1674: grep -v '^ *+' conftest.err >conftest.er1
1675: cat conftest.er1 >&5
1676: mv -f conftest.er1 conftest.err
1677: fi
1678: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679: test $ac_status = 0; } && {
1680: test -z "$ac_fc_werror_flag" ||
1681: test ! -s conftest.err
1682: } && test -s conftest.$ac_objext; then :
1683: ac_retval=0
1684: else
1685: $as_echo "$as_me: failed program was:" >&5
1686: sed 's/^/| /' conftest.$ac_ext >&5
1687:
1688: ac_retval=1
1689: fi
1690: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691: as_fn_set_status $ac_retval
1692:
1693: } # ac_fn_fc_try_compile
1694:
1695: # ac_fn_c_try_cpp LINENO
1696: # ----------------------
1697: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698: ac_fn_c_try_cpp ()
1699: {
1700: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701: if { { ac_try="$ac_cpp conftest.$ac_ext"
1702: case "(($ac_try" in
1703: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704: *) ac_try_echo=$ac_try;;
1705: esac
1706: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707: $as_echo "$ac_try_echo"; } >&5
1708: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709: ac_status=$?
1710: if test -s conftest.err; then
1711: grep -v '^ *+' conftest.err >conftest.er1
1712: cat conftest.er1 >&5
1713: mv -f conftest.er1 conftest.err
1714: fi
1715: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716: test $ac_status = 0; } >/dev/null && {
1717: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718: test ! -s conftest.err
1719: }; then :
1720: ac_retval=0
1721: else
1722: $as_echo "$as_me: failed program was:" >&5
1723: sed 's/^/| /' conftest.$ac_ext >&5
1724:
1725: ac_retval=1
1726: fi
1727: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728: as_fn_set_status $ac_retval
1729:
1730: } # ac_fn_c_try_cpp
1731:
1732: # ac_fn_c_try_link LINENO
1733: # -----------------------
1734: # Try to link conftest.$ac_ext, and return whether this succeeded.
1735: ac_fn_c_try_link ()
1736: {
1737: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738: rm -f conftest.$ac_objext conftest$ac_exeext
1739: if { { ac_try="$ac_link"
1740: case "(($ac_try" in
1741: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742: *) ac_try_echo=$ac_try;;
1743: esac
1744: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745: $as_echo "$ac_try_echo"; } >&5
1746: (eval "$ac_link") 2>conftest.err
1747: ac_status=$?
1748: if test -s conftest.err; then
1749: grep -v '^ *+' conftest.err >conftest.er1
1750: cat conftest.er1 >&5
1751: mv -f conftest.er1 conftest.err
1752: fi
1753: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754: test $ac_status = 0; } && {
1755: test -z "$ac_c_werror_flag" ||
1756: test ! -s conftest.err
1757: } && test -s conftest$ac_exeext && {
1758: test "$cross_compiling" = yes ||
1759: $as_test_x conftest$ac_exeext
1760: }; then :
1761: ac_retval=0
1762: else
1763: $as_echo "$as_me: failed program was:" >&5
1764: sed 's/^/| /' conftest.$ac_ext >&5
1765:
1766: ac_retval=1
1767: fi
1768: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770: # interfere with the next link command; also delete a directory that is
1771: # left behind by Apple's compiler. We do this before executing the actions.
1772: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774: as_fn_set_status $ac_retval
1775:
1776: } # ac_fn_c_try_link
1777:
1778: # ac_fn_c_check_func LINENO FUNC VAR
1779: # ----------------------------------
1780: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781: ac_fn_c_check_func ()
1782: {
1783: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785: $as_echo_n "checking for $2... " >&6; }
1786: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787: $as_echo_n "(cached) " >&6
1788: else
1789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790: /* end confdefs.h. */
1791: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793: #define $2 innocuous_$2
1794:
1795: /* System header to define __stub macros and hopefully few prototypes,
1796: which can conflict with char $2 (); below.
1797: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798: <limits.h> exists even on freestanding compilers. */
1799:
1800: #ifdef __STDC__
1801: # include <limits.h>
1802: #else
1803: # include <assert.h>
1804: #endif
1805:
1806: #undef $2
1807:
1808: /* Override any GCC internal prototype to avoid an error.
1809: Use char because int might match the return type of a GCC
1810: builtin and then its argument prototype would still apply. */
1811: #ifdef __cplusplus
1812: extern "C"
1813: #endif
1814: char $2 ();
1815: /* The GNU C library defines this for functions which it implements
1816: to always fail with ENOSYS. Some functions are actually named
1817: something starting with __ and the normal name is an alias. */
1818: #if defined __stub_$2 || defined __stub___$2
1819: choke me
1820: #endif
1821:
1822: int
1823: main ()
1824: {
1825: return $2 ();
1826: ;
1827: return 0;
1828: }
1829: _ACEOF
1830: if ac_fn_c_try_link "$LINENO"; then :
1831: eval "$3=yes"
1832: else
1833: eval "$3=no"
1834: fi
1835: rm -f core conftest.err conftest.$ac_objext \
1836: conftest$ac_exeext conftest.$ac_ext
1837: fi
1838: eval ac_res=\$$3
1839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840: $as_echo "$ac_res" >&6; }
1841: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842:
1843: } # ac_fn_c_check_func
1844:
1845: # ac_fn_c_try_run LINENO
1846: # ----------------------
1847: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848: # that executables *can* be run.
1849: ac_fn_c_try_run ()
1850: {
1851: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852: if { { ac_try="$ac_link"
1853: case "(($ac_try" in
1854: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855: *) ac_try_echo=$ac_try;;
1856: esac
1857: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858: $as_echo "$ac_try_echo"; } >&5
1859: (eval "$ac_link") 2>&5
1860: ac_status=$?
1861: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863: { { case "(($ac_try" in
1864: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865: *) ac_try_echo=$ac_try;;
1866: esac
1867: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868: $as_echo "$ac_try_echo"; } >&5
1869: (eval "$ac_try") 2>&5
1870: ac_status=$?
1871: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872: test $ac_status = 0; }; }; then :
1873: ac_retval=0
1874: else
1875: $as_echo "$as_me: program exited with status $ac_status" >&5
1876: $as_echo "$as_me: failed program was:" >&5
1877: sed 's/^/| /' conftest.$ac_ext >&5
1878:
1879: ac_retval=$ac_status
1880: fi
1881: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883: as_fn_set_status $ac_retval
1884:
1885: } # ac_fn_c_try_run
1886:
1887: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1888: # --------------------------------------------
1889: # Tries to find the compile-time value of EXPR in a program that includes
1890: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1891: # computed
1892: ac_fn_c_compute_int ()
1893: {
1894: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895: if test "$cross_compiling" = yes; then
1896: # Depending upon the size, compute the lo and hi bounds.
1897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898: /* end confdefs.h. */
1899: $4
1900: int
1901: main ()
1902: {
1903: static int test_array [1 - 2 * !(($2) >= 0)];
1904: test_array [0] = 0
1905:
1906: ;
1907: return 0;
1908: }
1909: _ACEOF
1910: if ac_fn_c_try_compile "$LINENO"; then :
1911: ac_lo=0 ac_mid=0
1912: while :; do
1913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914: /* end confdefs.h. */
1915: $4
1916: int
1917: main ()
1918: {
1919: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1920: test_array [0] = 0
1921:
1922: ;
1923: return 0;
1924: }
1925: _ACEOF
1926: if ac_fn_c_try_compile "$LINENO"; then :
1927: ac_hi=$ac_mid; break
1928: else
1929: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1930: if test $ac_lo -le $ac_mid; then
1931: ac_lo= ac_hi=
1932: break
1933: fi
1934: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1935: fi
1936: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937: done
1938: else
1939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940: /* end confdefs.h. */
1941: $4
1942: int
1943: main ()
1944: {
1945: static int test_array [1 - 2 * !(($2) < 0)];
1946: test_array [0] = 0
1947:
1948: ;
1949: return 0;
1950: }
1951: _ACEOF
1952: if ac_fn_c_try_compile "$LINENO"; then :
1953: ac_hi=-1 ac_mid=-1
1954: while :; do
1955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956: /* end confdefs.h. */
1957: $4
1958: int
1959: main ()
1960: {
1961: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962: test_array [0] = 0
1963:
1964: ;
1965: return 0;
1966: }
1967: _ACEOF
1968: if ac_fn_c_try_compile "$LINENO"; then :
1969: ac_lo=$ac_mid; break
1970: else
1971: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1972: if test $ac_mid -le $ac_hi; then
1973: ac_lo= ac_hi=
1974: break
1975: fi
1976: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1977: fi
1978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979: done
1980: else
1981: ac_lo= ac_hi=
1982: fi
1983: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984: fi
1985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986: # Binary search between lo and hi bounds.
1987: while test "x$ac_lo" != "x$ac_hi"; do
1988: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1989: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990: /* end confdefs.h. */
1991: $4
1992: int
1993: main ()
1994: {
1995: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1996: test_array [0] = 0
1997:
1998: ;
1999: return 0;
2000: }
2001: _ACEOF
2002: if ac_fn_c_try_compile "$LINENO"; then :
2003: ac_hi=$ac_mid
2004: else
2005: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2006: fi
2007: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008: done
2009: case $ac_lo in #((
2010: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2011: '') ac_retval=1 ;;
2012: esac
2013: else
2014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015: /* end confdefs.h. */
2016: $4
2017: static long int longval () { return $2; }
2018: static unsigned long int ulongval () { return $2; }
2019: #include <stdio.h>
2020: #include <stdlib.h>
2021: int
2022: main ()
2023: {
2024:
2025: FILE *f = fopen ("conftest.val", "w");
2026: if (! f)
2027: return 1;
2028: if (($2) < 0)
2029: {
2030: long int i = longval ();
2031: if (i != ($2))
2032: return 1;
2033: fprintf (f, "%ld", i);
2034: }
2035: else
2036: {
2037: unsigned long int i = ulongval ();
2038: if (i != ($2))
2039: return 1;
2040: fprintf (f, "%lu", i);
2041: }
2042: /* Do not output a trailing newline, as this causes \r\n confusion
2043: on some platforms. */
2044: return ferror (f) || fclose (f) != 0;
2045:
2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: if ac_fn_c_try_run "$LINENO"; then :
2051: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2052: else
2053: ac_retval=1
2054: fi
2055: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2056: conftest.$ac_objext conftest.beam conftest.$ac_ext
2057: rm -f conftest.val
2058:
2059: fi
2060: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061: as_fn_set_status $ac_retval
2062:
2063: } # ac_fn_c_compute_int
2064:
2065: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2066: # -------------------------------------------------------
2067: # Tests whether HEADER exists and can be compiled using the include files in
2068: # INCLUDES, setting the cache variable VAR accordingly.
2069: ac_fn_c_check_header_compile ()
2070: {
2071: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073: $as_echo_n "checking for $2... " >&6; }
2074: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075: $as_echo_n "(cached) " >&6
2076: else
2077: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078: /* end confdefs.h. */
2079: $4
2080: #include <$2>
2081: _ACEOF
2082: if ac_fn_c_try_compile "$LINENO"; then :
2083: eval "$3=yes"
2084: else
2085: eval "$3=no"
2086: fi
2087: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088: fi
2089: eval ac_res=\$$3
2090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091: $as_echo "$ac_res" >&6; }
2092: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093:
2094: } # ac_fn_c_check_header_compile
2095:
2096: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2097: # -------------------------------------------------------
2098: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2099: # the include files in INCLUDES and setting the cache variable VAR
2100: # accordingly.
2101: ac_fn_c_check_header_mongrel ()
2102: {
2103: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106: $as_echo_n "checking for $2... " >&6; }
2107: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2108: $as_echo_n "(cached) " >&6
2109: fi
2110: eval ac_res=\$$3
2111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112: $as_echo "$ac_res" >&6; }
2113: else
2114: # Is the header compilable?
2115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2116: $as_echo_n "checking $2 usability... " >&6; }
2117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118: /* end confdefs.h. */
2119: $4
2120: #include <$2>
2121: _ACEOF
2122: if ac_fn_c_try_compile "$LINENO"; then :
2123: ac_header_compiler=yes
2124: else
2125: ac_header_compiler=no
2126: fi
2127: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2129: $as_echo "$ac_header_compiler" >&6; }
2130:
2131: # Is the header present?
2132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2133: $as_echo_n "checking $2 presence... " >&6; }
2134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135: /* end confdefs.h. */
2136: #include <$2>
2137: _ACEOF
2138: if ac_fn_c_try_cpp "$LINENO"; then :
2139: ac_header_preproc=yes
2140: else
2141: ac_header_preproc=no
2142: fi
2143: rm -f conftest.err conftest.$ac_ext
2144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2145: $as_echo "$ac_header_preproc" >&6; }
2146:
2147: # So? What about this header?
2148: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2149: yes:no: )
2150: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2151: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2152: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2153: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154: ;;
2155: no:yes:* )
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2157: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2158: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2159: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2160: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2161: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2162: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2163: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2164: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2165: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2166: ;;
2167: esac
2168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169: $as_echo_n "checking for $2... " >&6; }
2170: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2171: $as_echo_n "(cached) " >&6
2172: else
2173: eval "$3=\$ac_header_compiler"
2174: fi
2175: eval ac_res=\$$3
2176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177: $as_echo "$ac_res" >&6; }
2178: fi
2179: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180:
2181: } # ac_fn_c_check_header_mongrel
2182:
2183: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2184: # -------------------------------------------
2185: # Tests whether TYPE exists after having included INCLUDES, setting cache
2186: # variable VAR accordingly.
2187: ac_fn_c_check_type ()
2188: {
2189: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191: $as_echo_n "checking for $2... " >&6; }
2192: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2193: $as_echo_n "(cached) " >&6
2194: else
2195: eval "$3=no"
2196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197: /* end confdefs.h. */
2198: $4
2199: int
2200: main ()
2201: {
2202: if (sizeof ($2))
2203: return 0;
2204: ;
2205: return 0;
2206: }
2207: _ACEOF
2208: if ac_fn_c_try_compile "$LINENO"; then :
2209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210: /* end confdefs.h. */
2211: $4
2212: int
2213: main ()
2214: {
2215: if (sizeof (($2)))
2216: return 0;
2217: ;
2218: return 0;
2219: }
2220: _ACEOF
2221: if ac_fn_c_try_compile "$LINENO"; then :
2222:
2223: else
2224: eval "$3=yes"
2225: fi
2226: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227: fi
2228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229: fi
2230: eval ac_res=\$$3
2231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232: $as_echo "$ac_res" >&6; }
2233: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234:
2235: } # ac_fn_c_check_type
2236: cat >config.log <<_ACEOF
2237: This file contains any messages produced by compilers while
2238: running configure, to aid debugging if configure makes a mistake.
2239:
2240: It was created by rpl $as_me 4.0.16, which was
2241: generated by GNU Autoconf 2.65. Invocation command line was
2242:
2243: $ $0 $@
2244:
2245: _ACEOF
2246: exec 5>>config.log
2247: {
2248: cat <<_ASUNAME
2249: ## --------- ##
2250: ## Platform. ##
2251: ## --------- ##
2252:
2253: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258:
2259: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2261:
2262: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2263: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2264: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2266: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2267: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2268: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2269:
2270: _ASUNAME
2271:
2272: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273: for as_dir in $PATH
2274: do
2275: IFS=$as_save_IFS
2276: test -z "$as_dir" && as_dir=.
2277: $as_echo "PATH: $as_dir"
2278: done
2279: IFS=$as_save_IFS
2280:
2281: } >&5
2282:
2283: cat >&5 <<_ACEOF
2284:
2285:
2286: ## ----------- ##
2287: ## Core tests. ##
2288: ## ----------- ##
2289:
2290: _ACEOF
2291:
2292:
2293: # Keep a trace of the command line.
2294: # Strip out --no-create and --no-recursion so they do not pile up.
2295: # Strip out --silent because we don't want to record it for future runs.
2296: # Also quote any args containing shell meta-characters.
2297: # Make two passes to allow for proper duplicate-argument suppression.
2298: ac_configure_args=
2299: ac_configure_args0=
2300: ac_configure_args1=
2301: ac_must_keep_next=false
2302: for ac_pass in 1 2
2303: do
2304: for ac_arg
2305: do
2306: case $ac_arg in
2307: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309: | -silent | --silent | --silen | --sile | --sil)
2310: continue ;;
2311: *\'*)
2312: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313: esac
2314: case $ac_pass in
2315: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316: 2)
2317: as_fn_append ac_configure_args1 " '$ac_arg'"
2318: if test $ac_must_keep_next = true; then
2319: ac_must_keep_next=false # Got value, back to normal.
2320: else
2321: case $ac_arg in
2322: *=* | --config-cache | -C | -disable-* | --disable-* \
2323: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325: | -with-* | --with-* | -without-* | --without-* | --x)
2326: case "$ac_configure_args0 " in
2327: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328: esac
2329: ;;
2330: -* ) ac_must_keep_next=true ;;
2331: esac
2332: fi
2333: as_fn_append ac_configure_args " '$ac_arg'"
2334: ;;
2335: esac
2336: done
2337: done
2338: { ac_configure_args0=; unset ac_configure_args0;}
2339: { ac_configure_args1=; unset ac_configure_args1;}
2340:
2341: # When interrupted or exit'd, cleanup temporary files, and complete
2342: # config.log. We remove comments because anyway the quotes in there
2343: # would cause problems or look ugly.
2344: # WARNING: Use '\'' to represent an apostrophe within the trap.
2345: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346: trap 'exit_status=$?
2347: # Save into config.log some information that might help in debugging.
2348: {
2349: echo
2350:
2351: cat <<\_ASBOX
2352: ## ---------------- ##
2353: ## Cache variables. ##
2354: ## ---------------- ##
2355: _ASBOX
2356: echo
2357: # The following way of writing the cache mishandles newlines in values,
2358: (
2359: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2360: eval ac_val=\$$ac_var
2361: case $ac_val in #(
2362: *${as_nl}*)
2363: case $ac_var in #(
2364: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2365: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366: esac
2367: case $ac_var in #(
2368: _ | IFS | as_nl) ;; #(
2369: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2370: *) { eval $ac_var=; unset $ac_var;} ;;
2371: esac ;;
2372: esac
2373: done
2374: (set) 2>&1 |
2375: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2376: *${as_nl}ac_space=\ *)
2377: sed -n \
2378: "s/'\''/'\''\\\\'\'''\''/g;
2379: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380: ;; #(
2381: *)
2382: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2383: ;;
2384: esac |
2385: sort
2386: )
2387: echo
2388:
2389: cat <<\_ASBOX
2390: ## ----------------- ##
2391: ## Output variables. ##
2392: ## ----------------- ##
2393: _ASBOX
2394: echo
2395: for ac_var in $ac_subst_vars
2396: do
2397: eval ac_val=\$$ac_var
2398: case $ac_val in
2399: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400: esac
2401: $as_echo "$ac_var='\''$ac_val'\''"
2402: done | sort
2403: echo
2404:
2405: if test -n "$ac_subst_files"; then
2406: cat <<\_ASBOX
2407: ## ------------------- ##
2408: ## File substitutions. ##
2409: ## ------------------- ##
2410: _ASBOX
2411: echo
2412: for ac_var in $ac_subst_files
2413: do
2414: eval ac_val=\$$ac_var
2415: case $ac_val in
2416: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417: esac
2418: $as_echo "$ac_var='\''$ac_val'\''"
2419: done | sort
2420: echo
2421: fi
2422:
2423: if test -s confdefs.h; then
2424: cat <<\_ASBOX
2425: ## ----------- ##
2426: ## confdefs.h. ##
2427: ## ----------- ##
2428: _ASBOX
2429: echo
2430: cat confdefs.h
2431: echo
2432: fi
2433: test "$ac_signal" != 0 &&
2434: $as_echo "$as_me: caught signal $ac_signal"
2435: $as_echo "$as_me: exit $exit_status"
2436: } >&5
2437: rm -f core *.core core.conftest.* &&
2438: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2439: exit $exit_status
2440: ' 0
2441: for ac_signal in 1 2 13 15; do
2442: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2443: done
2444: ac_signal=0
2445:
2446: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2447: rm -f -r conftest* confdefs.h
2448:
2449: $as_echo "/* confdefs.h */" > confdefs.h
2450:
2451: # Predefined preprocessor variables.
2452:
2453: cat >>confdefs.h <<_ACEOF
2454: #define PACKAGE_NAME "$PACKAGE_NAME"
2455: _ACEOF
2456:
2457: cat >>confdefs.h <<_ACEOF
2458: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2459: _ACEOF
2460:
2461: cat >>confdefs.h <<_ACEOF
2462: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2463: _ACEOF
2464:
2465: cat >>confdefs.h <<_ACEOF
2466: #define PACKAGE_STRING "$PACKAGE_STRING"
2467: _ACEOF
2468:
2469: cat >>confdefs.h <<_ACEOF
2470: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2471: _ACEOF
2472:
2473: cat >>confdefs.h <<_ACEOF
2474: #define PACKAGE_URL "$PACKAGE_URL"
2475: _ACEOF
2476:
2477:
2478: # Let the site file select an alternate cache file if it wants to.
2479: # Prefer an explicitly selected file to automatically selected ones.
2480: ac_site_file1=NONE
2481: ac_site_file2=NONE
2482: if test -n "$CONFIG_SITE"; then
2483: ac_site_file1=$CONFIG_SITE
2484: elif test "x$prefix" != xNONE; then
2485: ac_site_file1=$prefix/share/config.site
2486: ac_site_file2=$prefix/etc/config.site
2487: else
2488: ac_site_file1=$ac_default_prefix/share/config.site
2489: ac_site_file2=$ac_default_prefix/etc/config.site
2490: fi
2491: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492: do
2493: test "x$ac_site_file" = xNONE && continue
2494: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497: sed 's/^/| /' "$ac_site_file" >&5
2498: . "$ac_site_file"
2499: fi
2500: done
2501:
2502: if test -r "$cache_file"; then
2503: # Some versions of bash will fail to source /dev/null (special files
2504: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2505: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2506: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507: $as_echo "$as_me: loading cache $cache_file" >&6;}
2508: case $cache_file in
2509: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2510: *) . "./$cache_file";;
2511: esac
2512: fi
2513: else
2514: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515: $as_echo "$as_me: creating cache $cache_file" >&6;}
2516: >$cache_file
2517: fi
2518:
2519: # Check that the precious variables saved in the cache have kept the same
2520: # value.
2521: ac_cache_corrupted=false
2522: for ac_var in $ac_precious_vars; do
2523: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2524: eval ac_new_set=\$ac_env_${ac_var}_set
2525: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2526: eval ac_new_val=\$ac_env_${ac_var}_value
2527: case $ac_old_set,$ac_new_set in
2528: set,)
2529: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2530: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2531: ac_cache_corrupted=: ;;
2532: ,set)
2533: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2534: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2535: ac_cache_corrupted=: ;;
2536: ,);;
2537: *)
2538: if test "x$ac_old_val" != "x$ac_new_val"; then
2539: # differences in whitespace do not lead to failure.
2540: ac_old_val_w=`echo x $ac_old_val`
2541: ac_new_val_w=`echo x $ac_new_val`
2542: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2543: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2544: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2545: ac_cache_corrupted=:
2546: else
2547: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2548: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2549: eval $ac_var=\$ac_old_val
2550: fi
2551: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2552: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2553: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2554: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2555: fi;;
2556: esac
2557: # Pass precious variables to config.status.
2558: if test "$ac_new_set" = set; then
2559: case $ac_new_val in
2560: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2561: *) ac_arg=$ac_var=$ac_new_val ;;
2562: esac
2563: case " $ac_configure_args " in
2564: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2565: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566: esac
2567: fi
2568: done
2569: if $ac_cache_corrupted; then
2570: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2573: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2574: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575: fi
2576: ## -------------------- ##
2577: ## Main body of script. ##
2578: ## -------------------- ##
2579:
2580: ac_ext=c
2581: ac_cpp='$CPP $CPPFLAGS'
2582: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585:
2586:
2587: ac_aux_dir=
2588: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2589: for ac_t in install-sh install.sh shtool; do
2590: if test -f "$ac_dir/$ac_t"; then
2591: ac_aux_dir=$ac_dir
2592: ac_install_sh="$ac_aux_dir/$ac_t -c"
2593: break 2
2594: fi
2595: done
2596: done
2597: if test -z "$ac_aux_dir"; then
2598: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2599: fi
2600:
2601: # These three variables are undocumented and unsupported,
2602: # and are intended to be withdrawn in a future Autoconf release.
2603: # They can cause serious problems if a builder's source tree is in a directory
2604: # whose full name contains unusual characters.
2605: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608:
2609:
2610: # Make sure we can run config.sub.
2611: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2612: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2613:
2614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2615: $as_echo_n "checking build system type... " >&6; }
2616: if test "${ac_cv_build+set}" = set; then :
2617: $as_echo_n "(cached) " >&6
2618: else
2619: ac_build_alias=$build_alias
2620: test "x$ac_build_alias" = x &&
2621: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622: test "x$ac_build_alias" = x &&
2623: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2624: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2626:
2627: fi
2628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2629: $as_echo "$ac_cv_build" >&6; }
2630: case $ac_cv_build in
2631: *-*-*) ;;
2632: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2633: esac
2634: build=$ac_cv_build
2635: ac_save_IFS=$IFS; IFS='-'
2636: set x $ac_cv_build
2637: shift
2638: build_cpu=$1
2639: build_vendor=$2
2640: shift; shift
2641: # Remember, the first character of IFS is used to create $*,
2642: # except with old shells:
2643: build_os=$*
2644: IFS=$ac_save_IFS
2645: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2646:
2647:
2648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2649: $as_echo_n "checking host system type... " >&6; }
2650: if test "${ac_cv_host+set}" = set; then :
2651: $as_echo_n "(cached) " >&6
2652: else
2653: if test "x$host_alias" = x; then
2654: ac_cv_host=$ac_cv_build
2655: else
2656: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2657: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2658: fi
2659:
2660: fi
2661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2662: $as_echo "$ac_cv_host" >&6; }
2663: case $ac_cv_host in
2664: *-*-*) ;;
2665: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2666: esac
2667: host=$ac_cv_host
2668: ac_save_IFS=$IFS; IFS='-'
2669: set x $ac_cv_host
2670: shift
2671: host_cpu=$1
2672: host_vendor=$2
2673: shift; shift
2674: # Remember, the first character of IFS is used to create $*,
2675: # except with old shells:
2676: host_os=$*
2677: IFS=$ac_save_IFS
2678: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2679:
2680:
2681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2682: $as_echo_n "checking target system type... " >&6; }
2683: if test "${ac_cv_target+set}" = set; then :
2684: $as_echo_n "(cached) " >&6
2685: else
2686: if test "x$target_alias" = x; then
2687: ac_cv_target=$ac_cv_host
2688: else
2689: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2690: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2691: fi
2692:
2693: fi
2694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2695: $as_echo "$ac_cv_target" >&6; }
2696: case $ac_cv_target in
2697: *-*-*) ;;
2698: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2699: esac
2700: target=$ac_cv_target
2701: ac_save_IFS=$IFS; IFS='-'
2702: set x $ac_cv_target
2703: shift
2704: target_cpu=$1
2705: target_vendor=$2
2706: shift; shift
2707: # Remember, the first character of IFS is used to create $*,
2708: # except with old shells:
2709: target_os=$*
2710: IFS=$ac_save_IFS
2711: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2712:
2713:
2714: # The aliases save the names the user supplied, while $host etc.
2715: # will get canonicalized.
2716: test -n "$target_alias" &&
2717: test "$program_prefix$program_suffix$program_transform_name" = \
2718: NONENONEs,x,x, &&
2719: program_prefix=${target_alias}-
2720:
2721: am__api_version='1.11'
2722:
2723: # Find a good install program. We prefer a C program (faster),
2724: # so one script is as good as another. But avoid the broken or
2725: # incompatible versions:
2726: # SysV /etc/install, /usr/sbin/install
2727: # SunOS /usr/etc/install
2728: # IRIX /sbin/install
2729: # AIX /bin/install
2730: # AmigaOS /C/install, which installs bootblocks on floppy discs
2731: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2732: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2733: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2734: # OS/2's system install, which has a completely different semantic
2735: # ./install, which can be erroneously created by make from ./install.sh.
2736: # Reject install programs that cannot install multiple files.
2737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2738: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2739: if test -z "$INSTALL"; then
2740: if test "${ac_cv_path_install+set}" = set; then :
2741: $as_echo_n "(cached) " >&6
2742: else
2743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744: for as_dir in $PATH
2745: do
2746: IFS=$as_save_IFS
2747: test -z "$as_dir" && as_dir=.
2748: # Account for people who put trailing slashes in PATH elements.
2749: case $as_dir/ in #((
2750: ./ | .// | /[cC]/* | \
2751: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2752: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2753: /usr/ucb/* ) ;;
2754: *)
2755: # OSF1 and SCO ODT 3.0 have their own names for install.
2756: # Don't use installbsd from OSF since it installs stuff as root
2757: # by default.
2758: for ac_prog in ginstall scoinst install; do
2759: for ac_exec_ext in '' $ac_executable_extensions; do
2760: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2761: if test $ac_prog = install &&
2762: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2763: # AIX install. It has an incompatible calling convention.
2764: :
2765: elif test $ac_prog = install &&
2766: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2767: # program-specific install script used by HP pwplus--don't use.
2768: :
2769: else
2770: rm -rf conftest.one conftest.two conftest.dir
2771: echo one > conftest.one
2772: echo two > conftest.two
2773: mkdir conftest.dir
2774: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2775: test -s conftest.one && test -s conftest.two &&
2776: test -s conftest.dir/conftest.one &&
2777: test -s conftest.dir/conftest.two
2778: then
2779: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2780: break 3
2781: fi
2782: fi
2783: fi
2784: done
2785: done
2786: ;;
2787: esac
2788:
2789: done
2790: IFS=$as_save_IFS
2791:
2792: rm -rf conftest.one conftest.two conftest.dir
2793:
2794: fi
2795: if test "${ac_cv_path_install+set}" = set; then
2796: INSTALL=$ac_cv_path_install
2797: else
2798: # As a last resort, use the slow shell script. Don't cache a
2799: # value for INSTALL within a source directory, because that will
2800: # break other packages using the cache if that directory is
2801: # removed, or if the value is a relative name.
2802: INSTALL=$ac_install_sh
2803: fi
2804: fi
2805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2806: $as_echo "$INSTALL" >&6; }
2807:
2808: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2809: # It thinks the first close brace ends the variable substitution.
2810: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2811:
2812: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2813:
2814: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2815:
2816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2817: $as_echo_n "checking whether build environment is sane... " >&6; }
2818: # Just in case
2819: sleep 1
2820: echo timestamp > conftest.file
2821: # Reject unsafe characters in $srcdir or the absolute working directory
2822: # name. Accept space and tab only in the latter.
2823: am_lf='
2824: '
2825: case `pwd` in
2826: *[\\\"\#\$\&\'\`$am_lf]*)
2827: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2828: esac
2829: case $srcdir in
2830: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2831: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2832: esac
2833:
2834: # Do `set' in a subshell so we don't clobber the current shell's
2835: # arguments. Must try -L first in case configure is actually a
2836: # symlink; some systems play weird games with the mod time of symlinks
2837: # (eg FreeBSD returns the mod time of the symlink's containing
2838: # directory).
2839: if (
2840: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2841: if test "$*" = "X"; then
2842: # -L didn't work.
2843: set X `ls -t "$srcdir/configure" conftest.file`
2844: fi
2845: rm -f conftest.file
2846: if test "$*" != "X $srcdir/configure conftest.file" \
2847: && test "$*" != "X conftest.file $srcdir/configure"; then
2848:
2849: # If neither matched, then we have a broken ls. This can happen
2850: # if, for instance, CONFIG_SHELL is bash and it inherits a
2851: # broken ls alias from the environment. This has actually
2852: # happened. Such a system could not be considered "sane".
2853: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2854: alias in your environment" "$LINENO" 5
2855: fi
2856:
2857: test "$2" = conftest.file
2858: )
2859: then
2860: # Ok.
2861: :
2862: else
2863: as_fn_error "newly created file is older than distributed files!
2864: Check your system clock" "$LINENO" 5
2865: fi
2866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2867: $as_echo "yes" >&6; }
2868: test "$program_prefix" != NONE &&
2869: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2870: # Use a double $ so make ignores it.
2871: test "$program_suffix" != NONE &&
2872: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2873: # Double any \ or $.
2874: # By default was `s,x,x', remove it if useless.
2875: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2876: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2877:
2878: # expand $ac_aux_dir to an absolute path
2879: am_aux_dir=`cd $ac_aux_dir && pwd`
2880:
2881: if test x"${MISSING+set}" != xset; then
2882: case $am_aux_dir in
2883: *\ * | *\ *)
2884: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2885: *)
2886: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2887: esac
2888: fi
2889: # Use eval to expand $SHELL
2890: if eval "$MISSING --run true"; then
2891: am_missing_run="$MISSING --run "
2892: else
2893: am_missing_run=
2894: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2895: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2896: fi
2897:
2898: if test x"${install_sh}" != xset; then
2899: case $am_aux_dir in
2900: *\ * | *\ *)
2901: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2902: *)
2903: install_sh="\${SHELL} $am_aux_dir/install-sh"
2904: esac
2905: fi
2906:
2907: # Installed binaries are usually stripped using `strip' when the user
2908: # run `make install-strip'. However `strip' might not be the right
2909: # tool to use in cross-compilation environments, therefore Automake
2910: # will honor the `STRIP' environment variable to overrule this program.
2911: if test "$cross_compiling" != no; then
2912: if test -n "$ac_tool_prefix"; then
2913: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2914: set dummy ${ac_tool_prefix}strip; ac_word=$2
2915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916: $as_echo_n "checking for $ac_word... " >&6; }
2917: if test "${ac_cv_prog_STRIP+set}" = set; then :
2918: $as_echo_n "(cached) " >&6
2919: else
2920: if test -n "$STRIP"; then
2921: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2922: else
2923: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924: for as_dir in $PATH
2925: do
2926: IFS=$as_save_IFS
2927: test -z "$as_dir" && as_dir=.
2928: for ac_exec_ext in '' $ac_executable_extensions; do
2929: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2931: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932: break 2
2933: fi
2934: done
2935: done
2936: IFS=$as_save_IFS
2937:
2938: fi
2939: fi
2940: STRIP=$ac_cv_prog_STRIP
2941: if test -n "$STRIP"; then
2942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2943: $as_echo "$STRIP" >&6; }
2944: else
2945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946: $as_echo "no" >&6; }
2947: fi
2948:
2949:
2950: fi
2951: if test -z "$ac_cv_prog_STRIP"; then
2952: ac_ct_STRIP=$STRIP
2953: # Extract the first word of "strip", so it can be a program name with args.
2954: set dummy strip; ac_word=$2
2955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956: $as_echo_n "checking for $ac_word... " >&6; }
2957: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2958: $as_echo_n "(cached) " >&6
2959: else
2960: if test -n "$ac_ct_STRIP"; then
2961: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2962: else
2963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964: for as_dir in $PATH
2965: do
2966: IFS=$as_save_IFS
2967: test -z "$as_dir" && as_dir=.
2968: for ac_exec_ext in '' $ac_executable_extensions; do
2969: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970: ac_cv_prog_ac_ct_STRIP="strip"
2971: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972: break 2
2973: fi
2974: done
2975: done
2976: IFS=$as_save_IFS
2977:
2978: fi
2979: fi
2980: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2981: if test -n "$ac_ct_STRIP"; then
2982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2983: $as_echo "$ac_ct_STRIP" >&6; }
2984: else
2985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986: $as_echo "no" >&6; }
2987: fi
2988:
2989: if test "x$ac_ct_STRIP" = x; then
2990: STRIP=":"
2991: else
2992: case $cross_compiling:$ac_tool_warned in
2993: yes:)
2994: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996: ac_tool_warned=yes ;;
2997: esac
2998: STRIP=$ac_ct_STRIP
2999: fi
3000: else
3001: STRIP="$ac_cv_prog_STRIP"
3002: fi
3003:
3004: fi
3005: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3006:
3007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3008: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3009: if test -z "$MKDIR_P"; then
3010: if test "${ac_cv_path_mkdir+set}" = set; then :
3011: $as_echo_n "(cached) " >&6
3012: else
3013: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3015: do
3016: IFS=$as_save_IFS
3017: test -z "$as_dir" && as_dir=.
3018: for ac_prog in mkdir gmkdir; do
3019: for ac_exec_ext in '' $ac_executable_extensions; do
3020: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3021: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3022: 'mkdir (GNU coreutils) '* | \
3023: 'mkdir (coreutils) '* | \
3024: 'mkdir (fileutils) '4.1*)
3025: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3026: break 3;;
3027: esac
3028: done
3029: done
3030: done
3031: IFS=$as_save_IFS
3032:
3033: fi
3034:
3035: test -d ./--version && rmdir ./--version
3036: if test "${ac_cv_path_mkdir+set}" = set; then
3037: MKDIR_P="$ac_cv_path_mkdir -p"
3038: else
3039: # As a last resort, use the slow shell script. Don't cache a
3040: # value for MKDIR_P within a source directory, because that will
3041: # break other packages using the cache if that directory is
3042: # removed, or if the value is a relative name.
3043: MKDIR_P="$ac_install_sh -d"
3044: fi
3045: fi
3046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3047: $as_echo "$MKDIR_P" >&6; }
3048:
3049: mkdir_p="$MKDIR_P"
3050: case $mkdir_p in
3051: [\\/$]* | ?:[\\/]*) ;;
3052: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3053: esac
3054:
3055: for ac_prog in gawk mawk nawk awk
3056: do
3057: # Extract the first word of "$ac_prog", so it can be a program name with args.
3058: set dummy $ac_prog; ac_word=$2
3059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060: $as_echo_n "checking for $ac_word... " >&6; }
3061: if test "${ac_cv_prog_AWK+set}" = set; then :
3062: $as_echo_n "(cached) " >&6
3063: else
3064: if test -n "$AWK"; then
3065: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066: else
3067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068: for as_dir in $PATH
3069: do
3070: IFS=$as_save_IFS
3071: test -z "$as_dir" && as_dir=.
3072: for ac_exec_ext in '' $ac_executable_extensions; do
3073: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074: ac_cv_prog_AWK="$ac_prog"
3075: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076: break 2
3077: fi
3078: done
3079: done
3080: IFS=$as_save_IFS
3081:
3082: fi
3083: fi
3084: AWK=$ac_cv_prog_AWK
3085: if test -n "$AWK"; then
3086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3087: $as_echo "$AWK" >&6; }
3088: else
3089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090: $as_echo "no" >&6; }
3091: fi
3092:
3093:
3094: test -n "$AWK" && break
3095: done
3096:
3097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3098: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3099: set x ${MAKE-make}
3100: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3101: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3102: $as_echo_n "(cached) " >&6
3103: else
3104: cat >conftest.make <<\_ACEOF
3105: SHELL = /bin/sh
3106: all:
3107: @echo '@@@%%%=$(MAKE)=@@@%%%'
3108: _ACEOF
3109: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3110: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3111: *@@@%%%=?*=@@@%%%*)
3112: eval ac_cv_prog_make_${ac_make}_set=yes;;
3113: *)
3114: eval ac_cv_prog_make_${ac_make}_set=no;;
3115: esac
3116: rm -f conftest.make
3117: fi
3118: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120: $as_echo "yes" >&6; }
3121: SET_MAKE=
3122: else
3123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124: $as_echo "no" >&6; }
3125: SET_MAKE="MAKE=${MAKE-make}"
3126: fi
3127:
3128: rm -rf .tst 2>/dev/null
3129: mkdir .tst 2>/dev/null
3130: if test -d .tst; then
3131: am__leading_dot=.
3132: else
3133: am__leading_dot=_
3134: fi
3135: rmdir .tst 2>/dev/null
3136:
3137: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3138: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3139: # is not polluted with repeated "-I."
3140: am__isrc=' -I$(srcdir)'
3141: # test to see if srcdir already configured
3142: if test -f $srcdir/config.status; then
3143: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3144: fi
3145: fi
3146:
3147: # test whether we have cygpath
3148: if test -z "$CYGPATH_W"; then
3149: if (cygpath --version) >/dev/null 2>/dev/null; then
3150: CYGPATH_W='cygpath -w'
3151: else
3152: CYGPATH_W=echo
3153: fi
3154: fi
3155:
3156:
3157: # Define the identity of the package.
3158: PACKAGE='rpl'
3159: VERSION='4.0.16'
3160:
3161:
3162: cat >>confdefs.h <<_ACEOF
3163: #define PACKAGE "$PACKAGE"
3164: _ACEOF
3165:
3166:
3167: cat >>confdefs.h <<_ACEOF
3168: #define VERSION "$VERSION"
3169: _ACEOF
3170:
3171: # Some tools Automake needs.
3172:
3173: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3174:
3175:
3176: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3177:
3178:
3179: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3180:
3181:
3182: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3183:
3184:
3185: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3186:
3187: # We need awk for the "check" target. The system "awk" is bad on
3188: # some platforms.
3189: # Always define AMTAR for backward compatibility.
3190:
3191: AMTAR=${AMTAR-"${am_missing_run}tar"}
3192:
3193: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3194:
3195:
3196:
3197:
3198:
3199:
3200: ac_config_headers="$ac_config_headers rplconfig.h"
3201:
3202:
3203: NCURSES=ncurses-5.7-20100501
3204: READLINE=readline-6.1
3205: UNITS=units-1.87
3206: GSL=gsl-1.14
3207: GPP=gpp-2.24
3208: GNUPLOT=gnuplot-4.4.0
3209: FILE=file-5.03
3210: ICONV=libiconv-1.13.1
3211: SQLITE=sqlite-3.6.23.1
3212: OPENSSL=openssl-1.0.0
3213:
3214: ac_ext=c
3215: ac_cpp='$CPP $CPPFLAGS'
3216: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219: if test -n "$ac_tool_prefix"; then
3220: for ac_prog in gcc
3221: do
3222: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3223: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225: $as_echo_n "checking for $ac_word... " >&6; }
3226: if test "${ac_cv_prog_CC+set}" = set; then :
3227: $as_echo_n "(cached) " >&6
3228: else
3229: if test -n "$CC"; then
3230: ac_cv_prog_CC="$CC" # Let the user override the test.
3231: else
3232: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233: for as_dir in $PATH
3234: do
3235: IFS=$as_save_IFS
3236: test -z "$as_dir" && as_dir=.
3237: for ac_exec_ext in '' $ac_executable_extensions; do
3238: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3240: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241: break 2
3242: fi
3243: done
3244: done
3245: IFS=$as_save_IFS
3246:
3247: fi
3248: fi
3249: CC=$ac_cv_prog_CC
3250: if test -n "$CC"; then
3251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252: $as_echo "$CC" >&6; }
3253: else
3254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255: $as_echo "no" >&6; }
3256: fi
3257:
3258:
3259: test -n "$CC" && break
3260: done
3261: fi
3262: if test -z "$CC"; then
3263: ac_ct_CC=$CC
3264: for ac_prog in gcc
3265: do
3266: # Extract the first word of "$ac_prog", so it can be a program name with args.
3267: set dummy $ac_prog; ac_word=$2
3268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269: $as_echo_n "checking for $ac_word... " >&6; }
3270: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3271: $as_echo_n "(cached) " >&6
3272: else
3273: if test -n "$ac_ct_CC"; then
3274: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275: else
3276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277: for as_dir in $PATH
3278: do
3279: IFS=$as_save_IFS
3280: test -z "$as_dir" && as_dir=.
3281: for ac_exec_ext in '' $ac_executable_extensions; do
3282: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283: ac_cv_prog_ac_ct_CC="$ac_prog"
3284: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285: break 2
3286: fi
3287: done
3288: done
3289: IFS=$as_save_IFS
3290:
3291: fi
3292: fi
3293: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294: if test -n "$ac_ct_CC"; then
3295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296: $as_echo "$ac_ct_CC" >&6; }
3297: else
3298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299: $as_echo "no" >&6; }
3300: fi
3301:
3302:
3303: test -n "$ac_ct_CC" && break
3304: done
3305:
3306: if test "x$ac_ct_CC" = x; then
3307: CC=""
3308: else
3309: case $cross_compiling:$ac_tool_warned in
3310: yes:)
3311: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313: ac_tool_warned=yes ;;
3314: esac
3315: CC=$ac_ct_CC
3316: fi
3317: fi
3318:
3319:
3320: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322: as_fn_error "no acceptable C compiler found in \$PATH
3323: See \`config.log' for more details." "$LINENO" 5; }
3324:
3325: # Provide some information about the compiler.
3326: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327: set X $ac_compile
3328: ac_compiler=$2
3329: for ac_option in --version -v -V -qversion; do
3330: { { ac_try="$ac_compiler $ac_option >&5"
3331: case "(($ac_try" in
3332: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333: *) ac_try_echo=$ac_try;;
3334: esac
3335: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336: $as_echo "$ac_try_echo"; } >&5
3337: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3338: ac_status=$?
3339: if test -s conftest.err; then
3340: sed '10a\
3341: ... rest of stderr output deleted ...
3342: 10q' conftest.err >conftest.er1
3343: cat conftest.er1 >&5
3344: fi
3345: rm -f conftest.er1 conftest.err
3346: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347: test $ac_status = 0; }
3348: done
3349:
3350: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351: /* end confdefs.h. */
3352:
3353: int
3354: main ()
3355: {
3356:
3357: ;
3358: return 0;
3359: }
3360: _ACEOF
3361: ac_clean_files_save=$ac_clean_files
3362: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3363: # Try to create an executable without -o first, disregard a.out.
3364: # It will help us diagnose broken compilers, and finding out an intuition
3365: # of exeext.
3366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367: $as_echo_n "checking whether the C compiler works... " >&6; }
3368: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3369:
3370: # The possible output files:
3371: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372:
3373: ac_rmfiles=
3374: for ac_file in $ac_files
3375: do
3376: case $ac_file in
3377: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379: esac
3380: done
3381: rm -f $ac_rmfiles
3382:
3383: if { { ac_try="$ac_link_default"
3384: case "(($ac_try" in
3385: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386: *) ac_try_echo=$ac_try;;
3387: esac
3388: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389: $as_echo "$ac_try_echo"; } >&5
3390: (eval "$ac_link_default") 2>&5
3391: ac_status=$?
3392: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393: test $ac_status = 0; }; then :
3394: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3397: # so that the user can short-circuit this test for compilers unknown to
3398: # Autoconf.
3399: for ac_file in $ac_files ''
3400: do
3401: test -f "$ac_file" || continue
3402: case $ac_file in
3403: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404: ;;
3405: [ab].out )
3406: # We found the default executable, but exeext='' is most
3407: # certainly right.
3408: break;;
3409: *.* )
3410: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3411: then :; else
3412: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413: fi
3414: # We set ac_cv_exeext here because the later test for it is not
3415: # safe: cross compilers may not add the suffix if given an `-o'
3416: # argument, so we may need to know it at that point already.
3417: # Even if this section looks crufty: it has the advantage of
3418: # actually working.
3419: break;;
3420: * )
3421: break;;
3422: esac
3423: done
3424: test "$ac_cv_exeext" = no && ac_cv_exeext=
3425:
3426: else
3427: ac_file=''
3428: fi
3429: if test -z "$ac_file"; then :
3430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431: $as_echo "no" >&6; }
3432: $as_echo "$as_me: failed program was:" >&5
3433: sed 's/^/| /' conftest.$ac_ext >&5
3434:
3435: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437: { as_fn_set_status 77
3438: as_fn_error "C compiler cannot create executables
3439: See \`config.log' for more details." "$LINENO" 5; }; }
3440: else
3441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442: $as_echo "yes" >&6; }
3443: fi
3444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445: $as_echo_n "checking for C compiler default output file name... " >&6; }
3446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3447: $as_echo "$ac_file" >&6; }
3448: ac_exeext=$ac_cv_exeext
3449:
3450: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3451: ac_clean_files=$ac_clean_files_save
3452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3453: $as_echo_n "checking for suffix of executables... " >&6; }
3454: if { { ac_try="$ac_link"
3455: case "(($ac_try" in
3456: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457: *) ac_try_echo=$ac_try;;
3458: esac
3459: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460: $as_echo "$ac_try_echo"; } >&5
3461: (eval "$ac_link") 2>&5
3462: ac_status=$?
3463: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464: test $ac_status = 0; }; then :
3465: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3466: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3467: # work properly (i.e., refer to `conftest.exe'), while it won't with
3468: # `rm'.
3469: for ac_file in conftest.exe conftest conftest.*; do
3470: test -f "$ac_file" || continue
3471: case $ac_file in
3472: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3474: break;;
3475: * ) break;;
3476: esac
3477: done
3478: else
3479: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481: as_fn_error "cannot compute suffix of executables: cannot compile and link
3482: See \`config.log' for more details." "$LINENO" 5; }
3483: fi
3484: rm -f conftest conftest$ac_cv_exeext
3485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3486: $as_echo "$ac_cv_exeext" >&6; }
3487:
3488: rm -f conftest.$ac_ext
3489: EXEEXT=$ac_cv_exeext
3490: ac_exeext=$EXEEXT
3491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492: /* end confdefs.h. */
3493: #include <stdio.h>
3494: int
3495: main ()
3496: {
3497: FILE *f = fopen ("conftest.out", "w");
3498: return ferror (f) || fclose (f) != 0;
3499:
3500: ;
3501: return 0;
3502: }
3503: _ACEOF
3504: ac_clean_files="$ac_clean_files conftest.out"
3505: # Check that the compiler produces executables we can run. If not, either
3506: # the compiler is broken, or we cross compile.
3507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508: $as_echo_n "checking whether we are cross compiling... " >&6; }
3509: if test "$cross_compiling" != yes; then
3510: { { ac_try="$ac_link"
3511: case "(($ac_try" in
3512: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513: *) ac_try_echo=$ac_try;;
3514: esac
3515: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516: $as_echo "$ac_try_echo"; } >&5
3517: (eval "$ac_link") 2>&5
3518: ac_status=$?
3519: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520: test $ac_status = 0; }
3521: if { ac_try='./conftest$ac_cv_exeext'
3522: { { case "(($ac_try" in
3523: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524: *) ac_try_echo=$ac_try;;
3525: esac
3526: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527: $as_echo "$ac_try_echo"; } >&5
3528: (eval "$ac_try") 2>&5
3529: ac_status=$?
3530: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531: test $ac_status = 0; }; }; then
3532: cross_compiling=no
3533: else
3534: if test "$cross_compiling" = maybe; then
3535: cross_compiling=yes
3536: else
3537: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539: as_fn_error "cannot run C compiled programs.
3540: If you meant to cross compile, use \`--host'.
3541: See \`config.log' for more details." "$LINENO" 5; }
3542: fi
3543: fi
3544: fi
3545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3546: $as_echo "$cross_compiling" >&6; }
3547:
3548: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3549: ac_clean_files=$ac_clean_files_save
3550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3551: $as_echo_n "checking for suffix of object files... " >&6; }
3552: if test "${ac_cv_objext+set}" = set; then :
3553: $as_echo_n "(cached) " >&6
3554: else
3555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556: /* end confdefs.h. */
3557:
3558: int
3559: main ()
3560: {
3561:
3562: ;
3563: return 0;
3564: }
3565: _ACEOF
3566: rm -f conftest.o conftest.obj
3567: if { { ac_try="$ac_compile"
3568: case "(($ac_try" in
3569: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570: *) ac_try_echo=$ac_try;;
3571: esac
3572: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573: $as_echo "$ac_try_echo"; } >&5
3574: (eval "$ac_compile") 2>&5
3575: ac_status=$?
3576: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577: test $ac_status = 0; }; then :
3578: for ac_file in conftest.o conftest.obj conftest.*; do
3579: test -f "$ac_file" || continue;
3580: case $ac_file in
3581: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3582: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3583: break;;
3584: esac
3585: done
3586: else
3587: $as_echo "$as_me: failed program was:" >&5
3588: sed 's/^/| /' conftest.$ac_ext >&5
3589:
3590: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592: as_fn_error "cannot compute suffix of object files: cannot compile
3593: See \`config.log' for more details." "$LINENO" 5; }
3594: fi
3595: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3596: fi
3597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3598: $as_echo "$ac_cv_objext" >&6; }
3599: OBJEXT=$ac_cv_objext
3600: ac_objext=$OBJEXT
3601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3602: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3603: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3604: $as_echo_n "(cached) " >&6
3605: else
3606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607: /* end confdefs.h. */
3608:
3609: int
3610: main ()
3611: {
3612: #ifndef __GNUC__
3613: choke me
3614: #endif
3615:
3616: ;
3617: return 0;
3618: }
3619: _ACEOF
3620: if ac_fn_c_try_compile "$LINENO"; then :
3621: ac_compiler_gnu=yes
3622: else
3623: ac_compiler_gnu=no
3624: fi
3625: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627:
3628: fi
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3630: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3631: if test $ac_compiler_gnu = yes; then
3632: GCC=yes
3633: else
3634: GCC=
3635: fi
3636: ac_test_CFLAGS=${CFLAGS+set}
3637: ac_save_CFLAGS=$CFLAGS
3638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3639: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3640: if test "${ac_cv_prog_cc_g+set}" = set; then :
3641: $as_echo_n "(cached) " >&6
3642: else
3643: ac_save_c_werror_flag=$ac_c_werror_flag
3644: ac_c_werror_flag=yes
3645: ac_cv_prog_cc_g=no
3646: CFLAGS="-g"
3647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648: /* end confdefs.h. */
3649:
3650: int
3651: main ()
3652: {
3653:
3654: ;
3655: return 0;
3656: }
3657: _ACEOF
3658: if ac_fn_c_try_compile "$LINENO"; then :
3659: ac_cv_prog_cc_g=yes
3660: else
3661: CFLAGS=""
3662: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663: /* end confdefs.h. */
3664:
3665: int
3666: main ()
3667: {
3668:
3669: ;
3670: return 0;
3671: }
3672: _ACEOF
3673: if ac_fn_c_try_compile "$LINENO"; then :
3674:
3675: else
3676: ac_c_werror_flag=$ac_save_c_werror_flag
3677: CFLAGS="-g"
3678: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679: /* end confdefs.h. */
3680:
3681: int
3682: main ()
3683: {
3684:
3685: ;
3686: return 0;
3687: }
3688: _ACEOF
3689: if ac_fn_c_try_compile "$LINENO"; then :
3690: ac_cv_prog_cc_g=yes
3691: fi
3692: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693: fi
3694: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695: fi
3696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697: ac_c_werror_flag=$ac_save_c_werror_flag
3698: fi
3699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3700: $as_echo "$ac_cv_prog_cc_g" >&6; }
3701: if test "$ac_test_CFLAGS" = set; then
3702: CFLAGS=$ac_save_CFLAGS
3703: elif test $ac_cv_prog_cc_g = yes; then
3704: if test "$GCC" = yes; then
3705: CFLAGS="-g -O2"
3706: else
3707: CFLAGS="-g"
3708: fi
3709: else
3710: if test "$GCC" = yes; then
3711: CFLAGS="-O2"
3712: else
3713: CFLAGS=
3714: fi
3715: fi
3716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3717: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3718: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3719: $as_echo_n "(cached) " >&6
3720: else
3721: ac_cv_prog_cc_c89=no
3722: ac_save_CC=$CC
3723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724: /* end confdefs.h. */
3725: #include <stdarg.h>
3726: #include <stdio.h>
3727: #include <sys/types.h>
3728: #include <sys/stat.h>
3729: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730: struct buf { int x; };
3731: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732: static char *e (p, i)
3733: char **p;
3734: int i;
3735: {
3736: return p[i];
3737: }
3738: static char *f (char * (*g) (char **, int), char **p, ...)
3739: {
3740: char *s;
3741: va_list v;
3742: va_start (v,p);
3743: s = g (p, va_arg (v,int));
3744: va_end (v);
3745: return s;
3746: }
3747:
3748: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749: function prototypes and stuff, but not '\xHH' hex character constants.
3750: These don't provoke an error unfortunately, instead are silently treated
3751: as 'x'. The following induces an error, until -std is added to get
3752: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753: array size at least. It's necessary to write '\x00'==0 to get something
3754: that's true only with -std. */
3755: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756:
3757: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758: inside strings and character constants. */
3759: #define FOO(x) 'x'
3760: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761:
3762: int test (int i, double x);
3763: struct s1 {int (*f) (int a);};
3764: struct s2 {int (*f) (double a);};
3765: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766: int argc;
3767: char **argv;
3768: int
3769: main ()
3770: {
3771: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772: ;
3773: return 0;
3774: }
3775: _ACEOF
3776: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778: do
3779: CC="$ac_save_CC $ac_arg"
3780: if ac_fn_c_try_compile "$LINENO"; then :
3781: ac_cv_prog_cc_c89=$ac_arg
3782: fi
3783: rm -f core conftest.err conftest.$ac_objext
3784: test "x$ac_cv_prog_cc_c89" != "xno" && break
3785: done
3786: rm -f conftest.$ac_ext
3787: CC=$ac_save_CC
3788:
3789: fi
3790: # AC_CACHE_VAL
3791: case "x$ac_cv_prog_cc_c89" in
3792: x)
3793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3794: $as_echo "none needed" >&6; } ;;
3795: xno)
3796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3797: $as_echo "unsupported" >&6; } ;;
3798: *)
3799: CC="$CC $ac_cv_prog_cc_c89"
3800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3801: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3802: esac
3803: if test "x$ac_cv_prog_cc_c89" != xno; then :
3804:
3805: fi
3806:
3807: ac_ext=c
3808: ac_cpp='$CPP $CPPFLAGS'
3809: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812: DEPDIR="${am__leading_dot}deps"
3813:
3814: ac_config_commands="$ac_config_commands depfiles"
3815:
3816:
3817: am_make=${MAKE-make}
3818: cat > confinc << 'END'
3819: am__doit:
3820: @echo this is the am__doit target
3821: .PHONY: am__doit
3822: END
3823: # If we don't find an include directive, just comment out the code.
3824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3825: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3826: am__include="#"
3827: am__quote=
3828: _am_result=none
3829: # First try GNU make style include.
3830: echo "include confinc" > confmf
3831: # Ignore all kinds of additional output from `make'.
3832: case `$am_make -s -f confmf 2> /dev/null` in #(
3833: *the\ am__doit\ target*)
3834: am__include=include
3835: am__quote=
3836: _am_result=GNU
3837: ;;
3838: esac
3839: # Now try BSD make style include.
3840: if test "$am__include" = "#"; then
3841: echo '.include "confinc"' > confmf
3842: case `$am_make -s -f confmf 2> /dev/null` in #(
3843: *the\ am__doit\ target*)
3844: am__include=.include
3845: am__quote="\""
3846: _am_result=BSD
3847: ;;
3848: esac
3849: fi
3850:
3851:
3852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3853: $as_echo "$_am_result" >&6; }
3854: rm -f confinc confmf
3855:
3856: # Check whether --enable-dependency-tracking was given.
3857: if test "${enable_dependency_tracking+set}" = set; then :
3858: enableval=$enable_dependency_tracking;
3859: fi
3860:
3861: if test "x$enable_dependency_tracking" != xno; then
3862: am_depcomp="$ac_aux_dir/depcomp"
3863: AMDEPBACKSLASH='\'
3864: fi
3865: if test "x$enable_dependency_tracking" != xno; then
3866: AMDEP_TRUE=
3867: AMDEP_FALSE='#'
3868: else
3869: AMDEP_TRUE='#'
3870: AMDEP_FALSE=
3871: fi
3872:
3873:
3874:
3875: depcc="$CC" am_compiler_list=
3876:
3877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3878: $as_echo_n "checking dependency style of $depcc... " >&6; }
3879: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3880: $as_echo_n "(cached) " >&6
3881: else
3882: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3883: # We make a subdir and do the tests there. Otherwise we can end up
3884: # making bogus files that we don't know about and never remove. For
3885: # instance it was reported that on HP-UX the gcc test will end up
3886: # making a dummy file named `D' -- because `-MD' means `put the output
3887: # in D'.
3888: mkdir conftest.dir
3889: # Copy depcomp to subdir because otherwise we won't find it if we're
3890: # using a relative directory.
3891: cp "$am_depcomp" conftest.dir
3892: cd conftest.dir
3893: # We will build objects and dependencies in a subdirectory because
3894: # it helps to detect inapplicable dependency modes. For instance
3895: # both Tru64's cc and ICC support -MD to output dependencies as a
3896: # side effect of compilation, but ICC will put the dependencies in
3897: # the current directory while Tru64 will put them in the object
3898: # directory.
3899: mkdir sub
3900:
3901: am_cv_CC_dependencies_compiler_type=none
3902: if test "$am_compiler_list" = ""; then
3903: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3904: fi
3905: am__universal=false
3906: case " $depcc " in #(
3907: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3908: esac
3909:
3910: for depmode in $am_compiler_list; do
3911: # Setup a source with many dependencies, because some compilers
3912: # like to wrap large dependency lists on column 80 (with \), and
3913: # we should not choose a depcomp mode which is confused by this.
3914: #
3915: # We need to recreate these files for each test, as the compiler may
3916: # overwrite some of them when testing with obscure command lines.
3917: # This happens at least with the AIX C compiler.
3918: : > sub/conftest.c
3919: for i in 1 2 3 4 5 6; do
3920: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3921: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3922: # Solaris 8's {/usr,}/bin/sh.
3923: touch sub/conftst$i.h
3924: done
3925: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3926:
3927: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3928: # mode. It turns out that the SunPro C++ compiler does not properly
3929: # handle `-M -o', and we need to detect this. Also, some Intel
3930: # versions had trouble with output in subdirs
3931: am__obj=sub/conftest.${OBJEXT-o}
3932: am__minus_obj="-o $am__obj"
3933: case $depmode in
3934: gcc)
3935: # This depmode causes a compiler race in universal mode.
3936: test "$am__universal" = false || continue
3937: ;;
3938: nosideeffect)
3939: # after this tag, mechanisms are not by side-effect, so they'll
3940: # only be used when explicitly requested
3941: if test "x$enable_dependency_tracking" = xyes; then
3942: continue
3943: else
3944: break
3945: fi
3946: ;;
3947: msvisualcpp | msvcmsys)
3948: # This compiler won't grok `-c -o', but also, the minuso test has
3949: # not run yet. These depmodes are late enough in the game, and
3950: # so weak that their functioning should not be impacted.
3951: am__obj=conftest.${OBJEXT-o}
3952: am__minus_obj=
3953: ;;
3954: none) break ;;
3955: esac
3956: if depmode=$depmode \
3957: source=sub/conftest.c object=$am__obj \
3958: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3959: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3960: >/dev/null 2>conftest.err &&
3961: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3962: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3963: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3964: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3965: # icc doesn't choke on unknown options, it will just issue warnings
3966: # or remarks (even with -Werror). So we grep stderr for any message
3967: # that says an option was ignored or not supported.
3968: # When given -MP, icc 7.0 and 7.1 complain thusly:
3969: # icc: Command line warning: ignoring option '-M'; no argument required
3970: # The diagnosis changed in icc 8.0:
3971: # icc: Command line remark: option '-MP' not supported
3972: if (grep 'ignoring option' conftest.err ||
3973: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3974: am_cv_CC_dependencies_compiler_type=$depmode
3975: break
3976: fi
3977: fi
3978: done
3979:
3980: cd ..
3981: rm -rf conftest.dir
3982: else
3983: am_cv_CC_dependencies_compiler_type=none
3984: fi
3985:
3986: fi
3987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3988: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3989: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3990:
3991: if
3992: test "x$enable_dependency_tracking" != xno \
3993: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3994: am__fastdepCC_TRUE=
3995: am__fastdepCC_FALSE='#'
3996: else
3997: am__fastdepCC_TRUE='#'
3998: am__fastdepCC_FALSE=
3999: fi
4000:
4001:
4002:
4003: if test x"$CC" != x""; then
4004: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4005: awk -F. '{ printf("%s", $1);}'`
4006: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4007: awk -F. '{ printf("%s", $2);}'`
4008: if test $GCC_VERSION_MAJEURE -ge 5; then
4009: OPTIMISATION_C=-O3
4010: else
4011: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4012: then
4013: OPTIMISATION_C=-O3
4014: else
4015: if test $GCC_VERSION_MAJEURE -ge 2; then
4016: OPTIMISATION_C=-O2
4017: else
4018: as_fn_error "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
4019: fi
4020: fi
4021: fi
4022: fi
4023:
4024: if test "x$CC" != xcc; then
4025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4026: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4027: else
4028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4029: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4030: fi
4031: set dummy $CC; ac_cc=`$as_echo "$2" |
4032: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4033: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4034: $as_echo_n "(cached) " >&6
4035: else
4036: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037: /* end confdefs.h. */
4038:
4039: int
4040: main ()
4041: {
4042:
4043: ;
4044: return 0;
4045: }
4046: _ACEOF
4047: # Make sure it works both with $CC and with simple cc.
4048: # We do the test twice because some compilers refuse to overwrite an
4049: # existing .o file with -o, though they will create one.
4050: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4051: rm -f conftest2.*
4052: if { { case "(($ac_try" in
4053: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054: *) ac_try_echo=$ac_try;;
4055: esac
4056: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057: $as_echo "$ac_try_echo"; } >&5
4058: (eval "$ac_try") 2>&5
4059: ac_status=$?
4060: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061: test $ac_status = 0; } &&
4062: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4063: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064: *) ac_try_echo=$ac_try;;
4065: esac
4066: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067: $as_echo "$ac_try_echo"; } >&5
4068: (eval "$ac_try") 2>&5
4069: ac_status=$?
4070: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071: test $ac_status = 0; };
4072: then
4073: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4074: if test "x$CC" != xcc; then
4075: # Test first that cc exists at all.
4076: if { ac_try='cc -c conftest.$ac_ext >&5'
4077: { { case "(($ac_try" in
4078: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079: *) ac_try_echo=$ac_try;;
4080: esac
4081: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082: $as_echo "$ac_try_echo"; } >&5
4083: (eval "$ac_try") 2>&5
4084: ac_status=$?
4085: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086: test $ac_status = 0; }; }; then
4087: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4088: rm -f conftest2.*
4089: if { { case "(($ac_try" in
4090: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091: *) ac_try_echo=$ac_try;;
4092: esac
4093: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094: $as_echo "$ac_try_echo"; } >&5
4095: (eval "$ac_try") 2>&5
4096: ac_status=$?
4097: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098: test $ac_status = 0; } &&
4099: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4100: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101: *) ac_try_echo=$ac_try;;
4102: esac
4103: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104: $as_echo "$ac_try_echo"; } >&5
4105: (eval "$ac_try") 2>&5
4106: ac_status=$?
4107: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108: test $ac_status = 0; };
4109: then
4110: # cc works too.
4111: :
4112: else
4113: # cc exists but doesn't like -o.
4114: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4115: fi
4116: fi
4117: fi
4118: else
4119: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4120: fi
4121: rm -f core conftest*
4122:
4123: fi
4124: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126: $as_echo "yes" >&6; }
4127: else
4128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129: $as_echo "no" >&6; }
4130:
4131: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4132:
4133: fi
4134:
4135: # FIXME: we rely on the cache variable name because
4136: # there is no other way.
4137: set dummy $CC
4138: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4139: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4140: if test "$am_t" != yes; then
4141: # Losing compiler, so override with the script.
4142: # FIXME: It is wrong to rewrite CC.
4143: # But if we don't then we get into trouble of one sort or another.
4144: # A longer-term fix would be to have automake use am__CC in this case,
4145: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4146: CC="$am_aux_dir/compile $CC"
4147: fi
4148:
4149:
4150:
4151: if test "$GCC" != yes; then
4152: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4153: fi
4154:
4155: ac_ext=cpp
4156: ac_cpp='$CXXCPP $CPPFLAGS'
4157: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4160: if test -z "$CXX"; then
4161: if test -n "$CCC"; then
4162: CXX=$CCC
4163: else
4164: if test -n "$ac_tool_prefix"; then
4165: for ac_prog in g++
4166: do
4167: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4168: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170: $as_echo_n "checking for $ac_word... " >&6; }
4171: if test "${ac_cv_prog_CXX+set}" = set; then :
4172: $as_echo_n "(cached) " >&6
4173: else
4174: if test -n "$CXX"; then
4175: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4176: else
4177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178: for as_dir in $PATH
4179: do
4180: IFS=$as_save_IFS
4181: test -z "$as_dir" && as_dir=.
4182: for ac_exec_ext in '' $ac_executable_extensions; do
4183: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4185: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186: break 2
4187: fi
4188: done
4189: done
4190: IFS=$as_save_IFS
4191:
4192: fi
4193: fi
4194: CXX=$ac_cv_prog_CXX
4195: if test -n "$CXX"; then
4196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4197: $as_echo "$CXX" >&6; }
4198: else
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200: $as_echo "no" >&6; }
4201: fi
4202:
4203:
4204: test -n "$CXX" && break
4205: done
4206: fi
4207: if test -z "$CXX"; then
4208: ac_ct_CXX=$CXX
4209: for ac_prog in g++
4210: do
4211: # Extract the first word of "$ac_prog", so it can be a program name with args.
4212: set dummy $ac_prog; ac_word=$2
4213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214: $as_echo_n "checking for $ac_word... " >&6; }
4215: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4216: $as_echo_n "(cached) " >&6
4217: else
4218: if test -n "$ac_ct_CXX"; then
4219: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4220: else
4221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222: for as_dir in $PATH
4223: do
4224: IFS=$as_save_IFS
4225: test -z "$as_dir" && as_dir=.
4226: for ac_exec_ext in '' $ac_executable_extensions; do
4227: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228: ac_cv_prog_ac_ct_CXX="$ac_prog"
4229: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230: break 2
4231: fi
4232: done
4233: done
4234: IFS=$as_save_IFS
4235:
4236: fi
4237: fi
4238: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4239: if test -n "$ac_ct_CXX"; then
4240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4241: $as_echo "$ac_ct_CXX" >&6; }
4242: else
4243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244: $as_echo "no" >&6; }
4245: fi
4246:
4247:
4248: test -n "$ac_ct_CXX" && break
4249: done
4250:
4251: if test "x$ac_ct_CXX" = x; then
4252: CXX="g++"
4253: else
4254: case $cross_compiling:$ac_tool_warned in
4255: yes:)
4256: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258: ac_tool_warned=yes ;;
4259: esac
4260: CXX=$ac_ct_CXX
4261: fi
4262: fi
4263:
4264: fi
4265: fi
4266: # Provide some information about the compiler.
4267: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4268: set X $ac_compile
4269: ac_compiler=$2
4270: for ac_option in --version -v -V -qversion; do
4271: { { ac_try="$ac_compiler $ac_option >&5"
4272: case "(($ac_try" in
4273: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274: *) ac_try_echo=$ac_try;;
4275: esac
4276: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4277: $as_echo "$ac_try_echo"; } >&5
4278: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4279: ac_status=$?
4280: if test -s conftest.err; then
4281: sed '10a\
4282: ... rest of stderr output deleted ...
4283: 10q' conftest.err >conftest.er1
4284: cat conftest.er1 >&5
4285: fi
4286: rm -f conftest.er1 conftest.err
4287: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288: test $ac_status = 0; }
4289: done
4290:
4291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4292: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4293: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4294: $as_echo_n "(cached) " >&6
4295: else
4296: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297: /* end confdefs.h. */
4298:
4299: int
4300: main ()
4301: {
4302: #ifndef __GNUC__
4303: choke me
4304: #endif
4305:
4306: ;
4307: return 0;
4308: }
4309: _ACEOF
4310: if ac_fn_cxx_try_compile "$LINENO"; then :
4311: ac_compiler_gnu=yes
4312: else
4313: ac_compiler_gnu=no
4314: fi
4315: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4317:
4318: fi
4319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4320: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4321: if test $ac_compiler_gnu = yes; then
4322: GXX=yes
4323: else
4324: GXX=
4325: fi
4326: ac_test_CXXFLAGS=${CXXFLAGS+set}
4327: ac_save_CXXFLAGS=$CXXFLAGS
4328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4329: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4330: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4331: $as_echo_n "(cached) " >&6
4332: else
4333: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4334: ac_cxx_werror_flag=yes
4335: ac_cv_prog_cxx_g=no
4336: CXXFLAGS="-g"
4337: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338: /* end confdefs.h. */
4339:
4340: int
4341: main ()
4342: {
4343:
4344: ;
4345: return 0;
4346: }
4347: _ACEOF
4348: if ac_fn_cxx_try_compile "$LINENO"; then :
4349: ac_cv_prog_cxx_g=yes
4350: else
4351: CXXFLAGS=""
4352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353: /* end confdefs.h. */
4354:
4355: int
4356: main ()
4357: {
4358:
4359: ;
4360: return 0;
4361: }
4362: _ACEOF
4363: if ac_fn_cxx_try_compile "$LINENO"; then :
4364:
4365: else
4366: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4367: CXXFLAGS="-g"
4368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369: /* end confdefs.h. */
4370:
4371: int
4372: main ()
4373: {
4374:
4375: ;
4376: return 0;
4377: }
4378: _ACEOF
4379: if ac_fn_cxx_try_compile "$LINENO"; then :
4380: ac_cv_prog_cxx_g=yes
4381: fi
4382: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383: fi
4384: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385: fi
4386: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4388: fi
4389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4390: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4391: if test "$ac_test_CXXFLAGS" = set; then
4392: CXXFLAGS=$ac_save_CXXFLAGS
4393: elif test $ac_cv_prog_cxx_g = yes; then
4394: if test "$GXX" = yes; then
4395: CXXFLAGS="-g -O2"
4396: else
4397: CXXFLAGS="-g"
4398: fi
4399: else
4400: if test "$GXX" = yes; then
4401: CXXFLAGS="-O2"
4402: else
4403: CXXFLAGS=
4404: fi
4405: fi
4406: ac_ext=c
4407: ac_cpp='$CPP $CPPFLAGS'
4408: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411:
4412: depcc="$CXX" am_compiler_list=
4413:
4414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4415: $as_echo_n "checking dependency style of $depcc... " >&6; }
4416: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4417: $as_echo_n "(cached) " >&6
4418: else
4419: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4420: # We make a subdir and do the tests there. Otherwise we can end up
4421: # making bogus files that we don't know about and never remove. For
4422: # instance it was reported that on HP-UX the gcc test will end up
4423: # making a dummy file named `D' -- because `-MD' means `put the output
4424: # in D'.
4425: mkdir conftest.dir
4426: # Copy depcomp to subdir because otherwise we won't find it if we're
4427: # using a relative directory.
4428: cp "$am_depcomp" conftest.dir
4429: cd conftest.dir
4430: # We will build objects and dependencies in a subdirectory because
4431: # it helps to detect inapplicable dependency modes. For instance
4432: # both Tru64's cc and ICC support -MD to output dependencies as a
4433: # side effect of compilation, but ICC will put the dependencies in
4434: # the current directory while Tru64 will put them in the object
4435: # directory.
4436: mkdir sub
4437:
4438: am_cv_CXX_dependencies_compiler_type=none
4439: if test "$am_compiler_list" = ""; then
4440: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4441: fi
4442: am__universal=false
4443: case " $depcc " in #(
4444: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4445: esac
4446:
4447: for depmode in $am_compiler_list; do
4448: # Setup a source with many dependencies, because some compilers
4449: # like to wrap large dependency lists on column 80 (with \), and
4450: # we should not choose a depcomp mode which is confused by this.
4451: #
4452: # We need to recreate these files for each test, as the compiler may
4453: # overwrite some of them when testing with obscure command lines.
4454: # This happens at least with the AIX C compiler.
4455: : > sub/conftest.c
4456: for i in 1 2 3 4 5 6; do
4457: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4458: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4459: # Solaris 8's {/usr,}/bin/sh.
4460: touch sub/conftst$i.h
4461: done
4462: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4463:
4464: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4465: # mode. It turns out that the SunPro C++ compiler does not properly
4466: # handle `-M -o', and we need to detect this. Also, some Intel
4467: # versions had trouble with output in subdirs
4468: am__obj=sub/conftest.${OBJEXT-o}
4469: am__minus_obj="-o $am__obj"
4470: case $depmode in
4471: gcc)
4472: # This depmode causes a compiler race in universal mode.
4473: test "$am__universal" = false || continue
4474: ;;
4475: nosideeffect)
4476: # after this tag, mechanisms are not by side-effect, so they'll
4477: # only be used when explicitly requested
4478: if test "x$enable_dependency_tracking" = xyes; then
4479: continue
4480: else
4481: break
4482: fi
4483: ;;
4484: msvisualcpp | msvcmsys)
4485: # This compiler won't grok `-c -o', but also, the minuso test has
4486: # not run yet. These depmodes are late enough in the game, and
4487: # so weak that their functioning should not be impacted.
4488: am__obj=conftest.${OBJEXT-o}
4489: am__minus_obj=
4490: ;;
4491: none) break ;;
4492: esac
4493: if depmode=$depmode \
4494: source=sub/conftest.c object=$am__obj \
4495: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4496: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4497: >/dev/null 2>conftest.err &&
4498: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4499: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4500: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4501: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4502: # icc doesn't choke on unknown options, it will just issue warnings
4503: # or remarks (even with -Werror). So we grep stderr for any message
4504: # that says an option was ignored or not supported.
4505: # When given -MP, icc 7.0 and 7.1 complain thusly:
4506: # icc: Command line warning: ignoring option '-M'; no argument required
4507: # The diagnosis changed in icc 8.0:
4508: # icc: Command line remark: option '-MP' not supported
4509: if (grep 'ignoring option' conftest.err ||
4510: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4511: am_cv_CXX_dependencies_compiler_type=$depmode
4512: break
4513: fi
4514: fi
4515: done
4516:
4517: cd ..
4518: rm -rf conftest.dir
4519: else
4520: am_cv_CXX_dependencies_compiler_type=none
4521: fi
4522:
4523: fi
4524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4525: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4526: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4527:
4528: if
4529: test "x$enable_dependency_tracking" != xno \
4530: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4531: am__fastdepCXX_TRUE=
4532: am__fastdepCXX_FALSE='#'
4533: else
4534: am__fastdepCXX_TRUE='#'
4535: am__fastdepCXX_FALSE=
4536: fi
4537:
4538:
4539:
4540: if test "$GXX" != yes; then
4541: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4542: fi
4543:
4544: ac_ext=f
4545: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4546: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4548: if test -n "$ac_tool_prefix"; then
4549: for ac_prog in gfortran
4550: do
4551: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4552: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554: $as_echo_n "checking for $ac_word... " >&6; }
4555: if test "${ac_cv_prog_F77+set}" = set; then :
4556: $as_echo_n "(cached) " >&6
4557: else
4558: if test -n "$F77"; then
4559: ac_cv_prog_F77="$F77" # Let the user override the test.
4560: else
4561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562: for as_dir in $PATH
4563: do
4564: IFS=$as_save_IFS
4565: test -z "$as_dir" && as_dir=.
4566: for ac_exec_ext in '' $ac_executable_extensions; do
4567: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4569: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570: break 2
4571: fi
4572: done
4573: done
4574: IFS=$as_save_IFS
4575:
4576: fi
4577: fi
4578: F77=$ac_cv_prog_F77
4579: if test -n "$F77"; then
4580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4581: $as_echo "$F77" >&6; }
4582: else
4583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584: $as_echo "no" >&6; }
4585: fi
4586:
4587:
4588: test -n "$F77" && break
4589: done
4590: fi
4591: if test -z "$F77"; then
4592: ac_ct_F77=$F77
4593: for ac_prog in gfortran
4594: do
4595: # Extract the first word of "$ac_prog", so it can be a program name with args.
4596: set dummy $ac_prog; ac_word=$2
4597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598: $as_echo_n "checking for $ac_word... " >&6; }
4599: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4600: $as_echo_n "(cached) " >&6
4601: else
4602: if test -n "$ac_ct_F77"; then
4603: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4604: else
4605: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606: for as_dir in $PATH
4607: do
4608: IFS=$as_save_IFS
4609: test -z "$as_dir" && as_dir=.
4610: for ac_exec_ext in '' $ac_executable_extensions; do
4611: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612: ac_cv_prog_ac_ct_F77="$ac_prog"
4613: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614: break 2
4615: fi
4616: done
4617: done
4618: IFS=$as_save_IFS
4619:
4620: fi
4621: fi
4622: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4623: if test -n "$ac_ct_F77"; then
4624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4625: $as_echo "$ac_ct_F77" >&6; }
4626: else
4627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628: $as_echo "no" >&6; }
4629: fi
4630:
4631:
4632: test -n "$ac_ct_F77" && break
4633: done
4634:
4635: if test "x$ac_ct_F77" = x; then
4636: F77=""
4637: else
4638: case $cross_compiling:$ac_tool_warned in
4639: yes:)
4640: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4641: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4642: ac_tool_warned=yes ;;
4643: esac
4644: F77=$ac_ct_F77
4645: fi
4646: fi
4647:
4648:
4649: # Provide some information about the compiler.
4650: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4651: set X $ac_compile
4652: ac_compiler=$2
4653: for ac_option in --version -v -V -qversion; do
4654: { { ac_try="$ac_compiler $ac_option >&5"
4655: case "(($ac_try" in
4656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657: *) ac_try_echo=$ac_try;;
4658: esac
4659: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660: $as_echo "$ac_try_echo"; } >&5
4661: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662: ac_status=$?
4663: if test -s conftest.err; then
4664: sed '10a\
4665: ... rest of stderr output deleted ...
4666: 10q' conftest.err >conftest.er1
4667: cat conftest.er1 >&5
4668: fi
4669: rm -f conftest.er1 conftest.err
4670: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671: test $ac_status = 0; }
4672: done
4673: rm -f a.out
4674:
4675: # If we don't use `.F' as extension, the preprocessor is not run on the
4676: # input file. (Note that this only needs to work for GNU compilers.)
4677: ac_save_ext=$ac_ext
4678: ac_ext=F
4679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4680: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4681: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4682: $as_echo_n "(cached) " >&6
4683: else
4684: cat > conftest.$ac_ext <<_ACEOF
4685: program main
4686: #ifndef __GNUC__
4687: choke me
4688: #endif
4689:
4690: end
4691: _ACEOF
4692: if ac_fn_f77_try_compile "$LINENO"; then :
4693: ac_compiler_gnu=yes
4694: else
4695: ac_compiler_gnu=no
4696: fi
4697: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4699:
4700: fi
4701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4702: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4703: ac_ext=$ac_save_ext
4704: ac_test_FFLAGS=${FFLAGS+set}
4705: ac_save_FFLAGS=$FFLAGS
4706: FFLAGS=
4707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4708: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4709: if test "${ac_cv_prog_f77_g+set}" = set; then :
4710: $as_echo_n "(cached) " >&6
4711: else
4712: FFLAGS=-g
4713: cat > conftest.$ac_ext <<_ACEOF
4714: program main
4715:
4716: end
4717: _ACEOF
4718: if ac_fn_f77_try_compile "$LINENO"; then :
4719: ac_cv_prog_f77_g=yes
4720: else
4721: ac_cv_prog_f77_g=no
4722: fi
4723: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724:
4725: fi
4726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4727: $as_echo "$ac_cv_prog_f77_g" >&6; }
4728: if test "$ac_test_FFLAGS" = set; then
4729: FFLAGS=$ac_save_FFLAGS
4730: elif test $ac_cv_prog_f77_g = yes; then
4731: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4732: FFLAGS="-g -O2"
4733: else
4734: FFLAGS="-g"
4735: fi
4736: else
4737: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4738: FFLAGS="-O2"
4739: else
4740: FFLAGS=
4741: fi
4742: fi
4743:
4744: if test $ac_compiler_gnu = yes; then
4745: G77=yes
4746: else
4747: G77=
4748: fi
4749: ac_ext=c
4750: ac_cpp='$CPP $CPPFLAGS'
4751: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754:
4755:
4756: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4757: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4758: fi
4759:
4760: ac_ext=${ac_fc_srcext-f}
4761: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4762: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4763: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4764: if test -n "$ac_tool_prefix"; then
4765: for ac_prog in gfortran
4766: do
4767: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4768: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770: $as_echo_n "checking for $ac_word... " >&6; }
4771: if test "${ac_cv_prog_FC+set}" = set; then :
4772: $as_echo_n "(cached) " >&6
4773: else
4774: if test -n "$FC"; then
4775: ac_cv_prog_FC="$FC" # Let the user override the test.
4776: else
4777: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778: for as_dir in $PATH
4779: do
4780: IFS=$as_save_IFS
4781: test -z "$as_dir" && as_dir=.
4782: for ac_exec_ext in '' $ac_executable_extensions; do
4783: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4785: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786: break 2
4787: fi
4788: done
4789: done
4790: IFS=$as_save_IFS
4791:
4792: fi
4793: fi
4794: FC=$ac_cv_prog_FC
4795: if test -n "$FC"; then
4796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4797: $as_echo "$FC" >&6; }
4798: else
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800: $as_echo "no" >&6; }
4801: fi
4802:
4803:
4804: test -n "$FC" && break
4805: done
4806: fi
4807: if test -z "$FC"; then
4808: ac_ct_FC=$FC
4809: for ac_prog in gfortran
4810: do
4811: # Extract the first word of "$ac_prog", so it can be a program name with args.
4812: set dummy $ac_prog; ac_word=$2
4813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814: $as_echo_n "checking for $ac_word... " >&6; }
4815: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4816: $as_echo_n "(cached) " >&6
4817: else
4818: if test -n "$ac_ct_FC"; then
4819: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4820: else
4821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822: for as_dir in $PATH
4823: do
4824: IFS=$as_save_IFS
4825: test -z "$as_dir" && as_dir=.
4826: for ac_exec_ext in '' $ac_executable_extensions; do
4827: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828: ac_cv_prog_ac_ct_FC="$ac_prog"
4829: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830: break 2
4831: fi
4832: done
4833: done
4834: IFS=$as_save_IFS
4835:
4836: fi
4837: fi
4838: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4839: if test -n "$ac_ct_FC"; then
4840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4841: $as_echo "$ac_ct_FC" >&6; }
4842: else
4843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844: $as_echo "no" >&6; }
4845: fi
4846:
4847:
4848: test -n "$ac_ct_FC" && break
4849: done
4850:
4851: if test "x$ac_ct_FC" = x; then
4852: FC=""
4853: else
4854: case $cross_compiling:$ac_tool_warned in
4855: yes:)
4856: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858: ac_tool_warned=yes ;;
4859: esac
4860: FC=$ac_ct_FC
4861: fi
4862: fi
4863:
4864:
4865: # Provide some information about the compiler.
4866: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4867: set X $ac_compile
4868: ac_compiler=$2
4869: for ac_option in --version -v -V -qversion; do
4870: { { ac_try="$ac_compiler $ac_option >&5"
4871: case "(($ac_try" in
4872: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873: *) ac_try_echo=$ac_try;;
4874: esac
4875: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4876: $as_echo "$ac_try_echo"; } >&5
4877: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4878: ac_status=$?
4879: if test -s conftest.err; then
4880: sed '10a\
4881: ... rest of stderr output deleted ...
4882: 10q' conftest.err >conftest.er1
4883: cat conftest.er1 >&5
4884: fi
4885: rm -f conftest.er1 conftest.err
4886: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887: test $ac_status = 0; }
4888: done
4889: rm -f a.out
4890:
4891: # If we don't use `.F' as extension, the preprocessor is not run on the
4892: # input file. (Note that this only needs to work for GNU compilers.)
4893: ac_save_ext=$ac_ext
4894: ac_ext=F
4895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4896: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4897: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4898: $as_echo_n "(cached) " >&6
4899: else
4900: cat > conftest.$ac_ext <<_ACEOF
4901: program main
4902: #ifndef __GNUC__
4903: choke me
4904: #endif
4905:
4906: end
4907: _ACEOF
4908: if ac_fn_fc_try_compile "$LINENO"; then :
4909: ac_compiler_gnu=yes
4910: else
4911: ac_compiler_gnu=no
4912: fi
4913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4915:
4916: fi
4917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4918: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4919: ac_ext=$ac_save_ext
4920: ac_test_FCFLAGS=${FCFLAGS+set}
4921: ac_save_FCFLAGS=$FCFLAGS
4922: FCFLAGS=
4923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4924: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4925: if test "${ac_cv_prog_fc_g+set}" = set; then :
4926: $as_echo_n "(cached) " >&6
4927: else
4928: FCFLAGS=-g
4929: cat > conftest.$ac_ext <<_ACEOF
4930: program main
4931:
4932: end
4933: _ACEOF
4934: if ac_fn_fc_try_compile "$LINENO"; then :
4935: ac_cv_prog_fc_g=yes
4936: else
4937: ac_cv_prog_fc_g=no
4938: fi
4939: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940:
4941: fi
4942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4943: $as_echo "$ac_cv_prog_fc_g" >&6; }
4944: if test "$ac_test_FCFLAGS" = set; then
4945: FCFLAGS=$ac_save_FCFLAGS
4946: elif test $ac_cv_prog_fc_g = yes; then
4947: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4948: FCFLAGS="-g -O2"
4949: else
4950: FCFLAGS="-g"
4951: fi
4952: else
4953: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4954: FCFLAGS="-O2"
4955: else
4956: FCFLAGS=
4957: fi
4958: fi
4959:
4960: ac_ext=c
4961: ac_cpp='$CPP $CPPFLAGS'
4962: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965:
4966:
4967: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4968: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4969: fi
4970:
4971: if test x"$FC" != x""; then
4972: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4973: awk -F. '{ printf("%s", $1);}'`
4974: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4975: awk -F. '{ printf("%s", $2);}'`
4976: if test $GCC_VERSION_MAJEURE -ge 5; then
4977: OPTIMISATION_F=-O3
4978: else
4979: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4980: OPTIMISATION_F=-O3
4981: else
4982: if test $GCC_VERSION_MAJEURE -ge 3; then
4983: OPTIMISATION_F=-O2
4984: else
4985: as_fn_error "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
4986: fi
4987: fi
4988: fi
4989: fi
4990:
4991:
4992: ac_ext=c
4993: ac_cpp='$CPP $CPPFLAGS'
4994: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4998: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4999: # On Suns, sometimes $CPP names a directory.
5000: if test -n "$CPP" && test -d "$CPP"; then
5001: CPP=
5002: fi
5003: if test -z "$CPP"; then
5004: if test "${ac_cv_prog_CPP+set}" = set; then :
5005: $as_echo_n "(cached) " >&6
5006: else
5007: # Double quotes because CPP needs to be expanded
5008: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5009: do
5010: ac_preproc_ok=false
5011: for ac_c_preproc_warn_flag in '' yes
5012: do
5013: # Use a header file that comes with gcc, so configuring glibc
5014: # with a fresh cross-compiler works.
5015: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016: # <limits.h> exists even on freestanding compilers.
5017: # On the NeXT, cc -E runs the code through the compiler's parser,
5018: # not just through cpp. "Syntax error" is here to catch this case.
5019: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020: /* end confdefs.h. */
5021: #ifdef __STDC__
5022: # include <limits.h>
5023: #else
5024: # include <assert.h>
5025: #endif
5026: Syntax error
5027: _ACEOF
5028: if ac_fn_c_try_cpp "$LINENO"; then :
5029:
5030: else
5031: # Broken: fails on valid input.
5032: continue
5033: fi
5034: rm -f conftest.err conftest.$ac_ext
5035:
5036: # OK, works on sane cases. Now check whether nonexistent headers
5037: # can be detected and how.
5038: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039: /* end confdefs.h. */
5040: #include <ac_nonexistent.h>
5041: _ACEOF
5042: if ac_fn_c_try_cpp "$LINENO"; then :
5043: # Broken: success on invalid input.
5044: continue
5045: else
5046: # Passes both tests.
5047: ac_preproc_ok=:
5048: break
5049: fi
5050: rm -f conftest.err conftest.$ac_ext
5051:
5052: done
5053: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5054: rm -f conftest.err conftest.$ac_ext
5055: if $ac_preproc_ok; then :
5056: break
5057: fi
5058:
5059: done
5060: ac_cv_prog_CPP=$CPP
5061:
5062: fi
5063: CPP=$ac_cv_prog_CPP
5064: else
5065: ac_cv_prog_CPP=$CPP
5066: fi
5067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5068: $as_echo "$CPP" >&6; }
5069: ac_preproc_ok=false
5070: for ac_c_preproc_warn_flag in '' yes
5071: do
5072: # Use a header file that comes with gcc, so configuring glibc
5073: # with a fresh cross-compiler works.
5074: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075: # <limits.h> exists even on freestanding compilers.
5076: # On the NeXT, cc -E runs the code through the compiler's parser,
5077: # not just through cpp. "Syntax error" is here to catch this case.
5078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079: /* end confdefs.h. */
5080: #ifdef __STDC__
5081: # include <limits.h>
5082: #else
5083: # include <assert.h>
5084: #endif
5085: Syntax error
5086: _ACEOF
5087: if ac_fn_c_try_cpp "$LINENO"; then :
5088:
5089: else
5090: # Broken: fails on valid input.
5091: continue
5092: fi
5093: rm -f conftest.err conftest.$ac_ext
5094:
5095: # OK, works on sane cases. Now check whether nonexistent headers
5096: # can be detected and how.
5097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098: /* end confdefs.h. */
5099: #include <ac_nonexistent.h>
5100: _ACEOF
5101: if ac_fn_c_try_cpp "$LINENO"; then :
5102: # Broken: success on invalid input.
5103: continue
5104: else
5105: # Passes both tests.
5106: ac_preproc_ok=:
5107: break
5108: fi
5109: rm -f conftest.err conftest.$ac_ext
5110:
5111: done
5112: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113: rm -f conftest.err conftest.$ac_ext
5114: if $ac_preproc_ok; then :
5115:
5116: else
5117: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5118: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5119: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5120: See \`config.log' for more details." "$LINENO" 5; }
5121: fi
5122:
5123: ac_ext=c
5124: ac_cpp='$CPP $CPPFLAGS'
5125: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128:
5129:
5130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5131: $as_echo_n "checking for X... " >&6; }
5132:
5133:
5134: # Check whether --with-x was given.
5135: if test "${with_x+set}" = set; then :
5136: withval=$with_x;
5137: fi
5138:
5139: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5140: if test "x$with_x" = xno; then
5141: # The user explicitly disabled X.
5142: have_x=disabled
5143: else
5144: case $x_includes,$x_libraries in #(
5145: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5146: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5147: $as_echo_n "(cached) " >&6
5148: else
5149: # One or both of the vars are not set, and there is no cached value.
5150: ac_x_includes=no ac_x_libraries=no
5151: rm -f -r conftest.dir
5152: if mkdir conftest.dir; then
5153: cd conftest.dir
5154: cat >Imakefile <<'_ACEOF'
5155: incroot:
5156: @echo incroot='${INCROOT}'
5157: usrlibdir:
5158: @echo usrlibdir='${USRLIBDIR}'
5159: libdir:
5160: @echo libdir='${LIBDIR}'
5161: _ACEOF
5162: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5163: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5164: for ac_var in incroot usrlibdir libdir; do
5165: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5166: done
5167: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5168: for ac_extension in a so sl dylib la dll; do
5169: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5170: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5171: ac_im_usrlibdir=$ac_im_libdir; break
5172: fi
5173: done
5174: # Screen out bogus values from the imake configuration. They are
5175: # bogus both because they are the default anyway, and because
5176: # using them would break gcc on systems where it needs fixed includes.
5177: case $ac_im_incroot in
5178: /usr/include) ac_x_includes= ;;
5179: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5180: esac
5181: case $ac_im_usrlibdir in
5182: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5183: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5184: esac
5185: fi
5186: cd ..
5187: rm -f -r conftest.dir
5188: fi
5189:
5190: # Standard set of common directories for X headers.
5191: # Check X11 before X11Rn because it is often a symlink to the current release.
5192: ac_x_header_dirs='
5193: /usr/X11/include
5194: /usr/X11R7/include
5195: /usr/X11R6/include
5196: /usr/X11R5/include
5197: /usr/X11R4/include
5198:
5199: /usr/include/X11
5200: /usr/include/X11R7
5201: /usr/include/X11R6
5202: /usr/include/X11R5
5203: /usr/include/X11R4
5204:
5205: /usr/local/X11/include
5206: /usr/local/X11R7/include
5207: /usr/local/X11R6/include
5208: /usr/local/X11R5/include
5209: /usr/local/X11R4/include
5210:
5211: /usr/local/include/X11
5212: /usr/local/include/X11R7
5213: /usr/local/include/X11R6
5214: /usr/local/include/X11R5
5215: /usr/local/include/X11R4
5216:
5217: /usr/X386/include
5218: /usr/x386/include
5219: /usr/XFree86/include/X11
5220:
5221: /usr/include
5222: /usr/local/include
5223: /usr/unsupported/include
5224: /usr/athena/include
5225: /usr/local/x11r5/include
5226: /usr/lpp/Xamples/include
5227:
5228: /usr/openwin/include
5229: /usr/openwin/share/include'
5230:
5231: if test "$ac_x_includes" = no; then
5232: # Guess where to find include files, by looking for Xlib.h.
5233: # First, try using that file with no special directory specified.
5234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235: /* end confdefs.h. */
5236: #include <X11/Xlib.h>
5237: _ACEOF
5238: if ac_fn_c_try_cpp "$LINENO"; then :
5239: # We can compile using X headers with no special include directory.
5240: ac_x_includes=
5241: else
5242: for ac_dir in $ac_x_header_dirs; do
5243: if test -r "$ac_dir/X11/Xlib.h"; then
5244: ac_x_includes=$ac_dir
5245: break
5246: fi
5247: done
5248: fi
5249: rm -f conftest.err conftest.$ac_ext
5250: fi # $ac_x_includes = no
5251:
5252: if test "$ac_x_libraries" = no; then
5253: # Check for the libraries.
5254: # See if we find them without any special options.
5255: # Don't add to $LIBS permanently.
5256: ac_save_LIBS=$LIBS
5257: LIBS="-lX11 $LIBS"
5258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259: /* end confdefs.h. */
5260: #include <X11/Xlib.h>
5261: int
5262: main ()
5263: {
5264: XrmInitialize ()
5265: ;
5266: return 0;
5267: }
5268: _ACEOF
5269: if ac_fn_c_try_link "$LINENO"; then :
5270: LIBS=$ac_save_LIBS
5271: # We can link X programs with no special library path.
5272: ac_x_libraries=
5273: else
5274: LIBS=$ac_save_LIBS
5275: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5276: do
5277: # Don't even attempt the hair of trying to link an X program!
5278: for ac_extension in a so sl dylib la dll; do
5279: if test -r "$ac_dir/libX11.$ac_extension"; then
5280: ac_x_libraries=$ac_dir
5281: break 2
5282: fi
5283: done
5284: done
5285: fi
5286: rm -f core conftest.err conftest.$ac_objext \
5287: conftest$ac_exeext conftest.$ac_ext
5288: fi # $ac_x_libraries = no
5289:
5290: case $ac_x_includes,$ac_x_libraries in #(
5291: no,* | *,no | *\'*)
5292: # Didn't find X, or a directory has "'" in its name.
5293: ac_cv_have_x="have_x=no";; #(
5294: *)
5295: # Record where we found X for the cache.
5296: ac_cv_have_x="have_x=yes\
5297: ac_x_includes='$ac_x_includes'\
5298: ac_x_libraries='$ac_x_libraries'"
5299: esac
5300: fi
5301: ;; #(
5302: *) have_x=yes;;
5303: esac
5304: eval "$ac_cv_have_x"
5305: fi # $with_x != no
5306:
5307: if test "$have_x" != yes; then
5308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5309: $as_echo "$have_x" >&6; }
5310: no_x=yes
5311: else
5312: # If each of the values was on the command line, it overrides each guess.
5313: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5314: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5315: # Update the cache value to reflect the command line values.
5316: ac_cv_have_x="have_x=yes\
5317: ac_x_includes='$x_includes'\
5318: ac_x_libraries='$x_libraries'"
5319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5320: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5321: fi
5322:
5323: if test "$no_x" = yes; then
5324: # Not all programs may use this symbol, but it does not hurt to define it.
5325:
5326: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5327:
5328: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5329: else
5330: if test -n "$x_includes"; then
5331: X_CFLAGS="$X_CFLAGS -I$x_includes"
5332: fi
5333:
5334: # It would also be nice to do this for all -L options, not just this one.
5335: if test -n "$x_libraries"; then
5336: X_LIBS="$X_LIBS -L$x_libraries"
5337: # For Solaris; some versions of Sun CC require a space after -R and
5338: # others require no space. Words are not sufficient . . . .
5339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5340: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5341: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5342: ac_xsave_c_werror_flag=$ac_c_werror_flag
5343: ac_c_werror_flag=yes
5344: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345: /* end confdefs.h. */
5346:
5347: int
5348: main ()
5349: {
5350:
5351: ;
5352: return 0;
5353: }
5354: _ACEOF
5355: if ac_fn_c_try_link "$LINENO"; then :
5356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357: $as_echo "no" >&6; }
5358: X_LIBS="$X_LIBS -R$x_libraries"
5359: else
5360: LIBS="$ac_xsave_LIBS -R $x_libraries"
5361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362: /* end confdefs.h. */
5363:
5364: int
5365: main ()
5366: {
5367:
5368: ;
5369: return 0;
5370: }
5371: _ACEOF
5372: if ac_fn_c_try_link "$LINENO"; then :
5373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374: $as_echo "yes" >&6; }
5375: X_LIBS="$X_LIBS -R $x_libraries"
5376: else
5377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5378: $as_echo "neither works" >&6; }
5379: fi
5380: rm -f core conftest.err conftest.$ac_objext \
5381: conftest$ac_exeext conftest.$ac_ext
5382: fi
5383: rm -f core conftest.err conftest.$ac_objext \
5384: conftest$ac_exeext conftest.$ac_ext
5385: ac_c_werror_flag=$ac_xsave_c_werror_flag
5386: LIBS=$ac_xsave_LIBS
5387: fi
5388:
5389: # Check for system-dependent libraries X programs must link with.
5390: # Do this before checking for the system-independent R6 libraries
5391: # (-lICE), since we may need -lsocket or whatever for X linking.
5392:
5393: if test "$ISC" = yes; then
5394: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5395: else
5396: # Martyn Johnson says this is needed for Ultrix, if the X
5397: # libraries were built with DECnet support. And Karl Berry says
5398: # the Alpha needs dnet_stub (dnet does not exist).
5399: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5400: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401: /* end confdefs.h. */
5402:
5403: /* Override any GCC internal prototype to avoid an error.
5404: Use char because int might match the return type of a GCC
5405: builtin and then its argument prototype would still apply. */
5406: #ifdef __cplusplus
5407: extern "C"
5408: #endif
5409: char XOpenDisplay ();
5410: int
5411: main ()
5412: {
5413: return XOpenDisplay ();
5414: ;
5415: return 0;
5416: }
5417: _ACEOF
5418: if ac_fn_c_try_link "$LINENO"; then :
5419:
5420: else
5421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5422: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5423: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5424: $as_echo_n "(cached) " >&6
5425: else
5426: ac_check_lib_save_LIBS=$LIBS
5427: LIBS="-ldnet $LIBS"
5428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429: /* end confdefs.h. */
5430:
5431: /* Override any GCC internal prototype to avoid an error.
5432: Use char because int might match the return type of a GCC
5433: builtin and then its argument prototype would still apply. */
5434: #ifdef __cplusplus
5435: extern "C"
5436: #endif
5437: char dnet_ntoa ();
5438: int
5439: main ()
5440: {
5441: return dnet_ntoa ();
5442: ;
5443: return 0;
5444: }
5445: _ACEOF
5446: if ac_fn_c_try_link "$LINENO"; then :
5447: ac_cv_lib_dnet_dnet_ntoa=yes
5448: else
5449: ac_cv_lib_dnet_dnet_ntoa=no
5450: fi
5451: rm -f core conftest.err conftest.$ac_objext \
5452: conftest$ac_exeext conftest.$ac_ext
5453: LIBS=$ac_check_lib_save_LIBS
5454: fi
5455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5456: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5457: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5458: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5459: fi
5460:
5461: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5463: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5464: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5465: $as_echo_n "(cached) " >&6
5466: else
5467: ac_check_lib_save_LIBS=$LIBS
5468: LIBS="-ldnet_stub $LIBS"
5469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470: /* end confdefs.h. */
5471:
5472: /* Override any GCC internal prototype to avoid an error.
5473: Use char because int might match the return type of a GCC
5474: builtin and then its argument prototype would still apply. */
5475: #ifdef __cplusplus
5476: extern "C"
5477: #endif
5478: char dnet_ntoa ();
5479: int
5480: main ()
5481: {
5482: return dnet_ntoa ();
5483: ;
5484: return 0;
5485: }
5486: _ACEOF
5487: if ac_fn_c_try_link "$LINENO"; then :
5488: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5489: else
5490: ac_cv_lib_dnet_stub_dnet_ntoa=no
5491: fi
5492: rm -f core conftest.err conftest.$ac_objext \
5493: conftest$ac_exeext conftest.$ac_ext
5494: LIBS=$ac_check_lib_save_LIBS
5495: fi
5496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5497: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5498: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5499: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5500: fi
5501:
5502: fi
5503: fi
5504: rm -f core conftest.err conftest.$ac_objext \
5505: conftest$ac_exeext conftest.$ac_ext
5506: LIBS="$ac_xsave_LIBS"
5507:
5508: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5509: # to get the SysV transport functions.
5510: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5511: # needs -lnsl.
5512: # The nsl library prevents programs from opening the X display
5513: # on Irix 5.2, according to T.E. Dickey.
5514: # The functions gethostbyname, getservbyname, and inet_addr are
5515: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5516: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5517: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5518:
5519: fi
5520:
5521: if test $ac_cv_func_gethostbyname = no; then
5522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5523: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5524: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5525: $as_echo_n "(cached) " >&6
5526: else
5527: ac_check_lib_save_LIBS=$LIBS
5528: LIBS="-lnsl $LIBS"
5529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530: /* end confdefs.h. */
5531:
5532: /* Override any GCC internal prototype to avoid an error.
5533: Use char because int might match the return type of a GCC
5534: builtin and then its argument prototype would still apply. */
5535: #ifdef __cplusplus
5536: extern "C"
5537: #endif
5538: char gethostbyname ();
5539: int
5540: main ()
5541: {
5542: return gethostbyname ();
5543: ;
5544: return 0;
5545: }
5546: _ACEOF
5547: if ac_fn_c_try_link "$LINENO"; then :
5548: ac_cv_lib_nsl_gethostbyname=yes
5549: else
5550: ac_cv_lib_nsl_gethostbyname=no
5551: fi
5552: rm -f core conftest.err conftest.$ac_objext \
5553: conftest$ac_exeext conftest.$ac_ext
5554: LIBS=$ac_check_lib_save_LIBS
5555: fi
5556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5557: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5558: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5559: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5560: fi
5561:
5562: if test $ac_cv_lib_nsl_gethostbyname = no; then
5563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5564: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5565: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5566: $as_echo_n "(cached) " >&6
5567: else
5568: ac_check_lib_save_LIBS=$LIBS
5569: LIBS="-lbsd $LIBS"
5570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571: /* end confdefs.h. */
5572:
5573: /* Override any GCC internal prototype to avoid an error.
5574: Use char because int might match the return type of a GCC
5575: builtin and then its argument prototype would still apply. */
5576: #ifdef __cplusplus
5577: extern "C"
5578: #endif
5579: char gethostbyname ();
5580: int
5581: main ()
5582: {
5583: return gethostbyname ();
5584: ;
5585: return 0;
5586: }
5587: _ACEOF
5588: if ac_fn_c_try_link "$LINENO"; then :
5589: ac_cv_lib_bsd_gethostbyname=yes
5590: else
5591: ac_cv_lib_bsd_gethostbyname=no
5592: fi
5593: rm -f core conftest.err conftest.$ac_objext \
5594: conftest$ac_exeext conftest.$ac_ext
5595: LIBS=$ac_check_lib_save_LIBS
5596: fi
5597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5598: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5599: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5600: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5601: fi
5602:
5603: fi
5604: fi
5605:
5606: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5607: # socket/setsockopt and other routines are undefined under SCO ODT
5608: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5609: # on later versions), says Simon Leinen: it contains gethostby*
5610: # variants that don't use the name server (or something). -lsocket
5611: # must be given before -lnsl if both are needed. We assume that
5612: # if connect needs -lnsl, so does gethostbyname.
5613: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5614: if test "x$ac_cv_func_connect" = x""yes; then :
5615:
5616: fi
5617:
5618: if test $ac_cv_func_connect = no; then
5619: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5620: $as_echo_n "checking for connect in -lsocket... " >&6; }
5621: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5622: $as_echo_n "(cached) " >&6
5623: else
5624: ac_check_lib_save_LIBS=$LIBS
5625: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627: /* end confdefs.h. */
5628:
5629: /* Override any GCC internal prototype to avoid an error.
5630: Use char because int might match the return type of a GCC
5631: builtin and then its argument prototype would still apply. */
5632: #ifdef __cplusplus
5633: extern "C"
5634: #endif
5635: char connect ();
5636: int
5637: main ()
5638: {
5639: return connect ();
5640: ;
5641: return 0;
5642: }
5643: _ACEOF
5644: if ac_fn_c_try_link "$LINENO"; then :
5645: ac_cv_lib_socket_connect=yes
5646: else
5647: ac_cv_lib_socket_connect=no
5648: fi
5649: rm -f core conftest.err conftest.$ac_objext \
5650: conftest$ac_exeext conftest.$ac_ext
5651: LIBS=$ac_check_lib_save_LIBS
5652: fi
5653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5654: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5655: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5656: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5657: fi
5658:
5659: fi
5660:
5661: # Guillermo Gomez says -lposix is necessary on A/UX.
5662: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5663: if test "x$ac_cv_func_remove" = x""yes; then :
5664:
5665: fi
5666:
5667: if test $ac_cv_func_remove = no; then
5668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5669: $as_echo_n "checking for remove in -lposix... " >&6; }
5670: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5671: $as_echo_n "(cached) " >&6
5672: else
5673: ac_check_lib_save_LIBS=$LIBS
5674: LIBS="-lposix $LIBS"
5675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676: /* end confdefs.h. */
5677:
5678: /* Override any GCC internal prototype to avoid an error.
5679: Use char because int might match the return type of a GCC
5680: builtin and then its argument prototype would still apply. */
5681: #ifdef __cplusplus
5682: extern "C"
5683: #endif
5684: char remove ();
5685: int
5686: main ()
5687: {
5688: return remove ();
5689: ;
5690: return 0;
5691: }
5692: _ACEOF
5693: if ac_fn_c_try_link "$LINENO"; then :
5694: ac_cv_lib_posix_remove=yes
5695: else
5696: ac_cv_lib_posix_remove=no
5697: fi
5698: rm -f core conftest.err conftest.$ac_objext \
5699: conftest$ac_exeext conftest.$ac_ext
5700: LIBS=$ac_check_lib_save_LIBS
5701: fi
5702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5703: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5704: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5705: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5706: fi
5707:
5708: fi
5709:
5710: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5711: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5712: if test "x$ac_cv_func_shmat" = x""yes; then :
5713:
5714: fi
5715:
5716: if test $ac_cv_func_shmat = no; then
5717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5718: $as_echo_n "checking for shmat in -lipc... " >&6; }
5719: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5720: $as_echo_n "(cached) " >&6
5721: else
5722: ac_check_lib_save_LIBS=$LIBS
5723: LIBS="-lipc $LIBS"
5724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725: /* end confdefs.h. */
5726:
5727: /* Override any GCC internal prototype to avoid an error.
5728: Use char because int might match the return type of a GCC
5729: builtin and then its argument prototype would still apply. */
5730: #ifdef __cplusplus
5731: extern "C"
5732: #endif
5733: char shmat ();
5734: int
5735: main ()
5736: {
5737: return shmat ();
5738: ;
5739: return 0;
5740: }
5741: _ACEOF
5742: if ac_fn_c_try_link "$LINENO"; then :
5743: ac_cv_lib_ipc_shmat=yes
5744: else
5745: ac_cv_lib_ipc_shmat=no
5746: fi
5747: rm -f core conftest.err conftest.$ac_objext \
5748: conftest$ac_exeext conftest.$ac_ext
5749: LIBS=$ac_check_lib_save_LIBS
5750: fi
5751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5752: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5753: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5754: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5755: fi
5756:
5757: fi
5758: fi
5759:
5760: # Check for libraries that X11R6 Xt/Xaw programs need.
5761: ac_save_LDFLAGS=$LDFLAGS
5762: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5763: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5764: # check for ICE first), but we must link in the order -lSM -lICE or
5765: # we get undefined symbols. So assume we have SM if we have ICE.
5766: # These have to be linked with before -lX11, unlike the other
5767: # libraries we check for below, so use a different variable.
5768: # John Interrante, Karl Berry
5769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5770: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5771: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5772: $as_echo_n "(cached) " >&6
5773: else
5774: ac_check_lib_save_LIBS=$LIBS
5775: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777: /* end confdefs.h. */
5778:
5779: /* Override any GCC internal prototype to avoid an error.
5780: Use char because int might match the return type of a GCC
5781: builtin and then its argument prototype would still apply. */
5782: #ifdef __cplusplus
5783: extern "C"
5784: #endif
5785: char IceConnectionNumber ();
5786: int
5787: main ()
5788: {
5789: return IceConnectionNumber ();
5790: ;
5791: return 0;
5792: }
5793: _ACEOF
5794: if ac_fn_c_try_link "$LINENO"; then :
5795: ac_cv_lib_ICE_IceConnectionNumber=yes
5796: else
5797: ac_cv_lib_ICE_IceConnectionNumber=no
5798: fi
5799: rm -f core conftest.err conftest.$ac_objext \
5800: conftest$ac_exeext conftest.$ac_ext
5801: LIBS=$ac_check_lib_save_LIBS
5802: fi
5803: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5804: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5805: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5806: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5807: fi
5808:
5809: LDFLAGS=$ac_save_LDFLAGS
5810:
5811: fi
5812:
5813:
5814: if test "$ac_x_includes" != "no"; then
5815: if test x"$ac_x_includes" != x; then
5816: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5817: includeX="-I$ac_x_includes"
5818: fi
5819: fi
5820: if test "$ac_x_libraries" != "no"; then
5821: if test x"$ac_x_libraries" != x; then
5822: X_LIBS="$X_LIBS -L$ac_x_libraries"
5823: fi
5824: fi
5825:
5826: # Check whether --enable-optimization was given.
5827: if test "${enable_optimization+set}" = set; then :
5828: enableval=$enable_optimization;
5829: if test "$enableval" = "no"; then
5830: CFLAGS=
5831: FFLAGS=
5832: CXXFLAGS=
5833: FCFLAGS=
5834: else
5835: CFLAGS="$CFLAGS $enable_optimization"
5836: FFLAGS="$FFLAGS $enable_optimization"
5837: FCFLAGS="$FCFLAGS $enable_optimization"
5838: fi
5839: else
5840:
5841: CFLAGS="$CFLAGS $OPTIMISATION_C"
5842: FFLAGS="$FFLAGS $OPTIMISATION_F"
5843: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5844:
5845:
5846: fi
5847:
5848:
5849: # Check whether --enable-final-encoding was given.
5850: if test "${enable_final_encoding+set}" = set; then :
5851: enableval=$enable_final_encoding;
5852: if test "$enableval" = "no"; then
5853: FINAL_ENCODING="\$(shell locale charmap | \
5854: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
5855: else
5856: FINAL_ENCODING="$enable_final_encoding"
5857: fi
5858: else
5859: FINAL_ENCODING="\$(shell locale charmap | \
5860: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
5861: fi
5862:
5863:
5864: # Check whether --enable-tex was given.
5865: if test "${enable_tex+set}" = set; then :
5866: enableval=$enable_tex;
5867: if test "$enableval" = "no"; then
5868: TEX_SUPPORT=no
5869: else
5870: TEX_SUPPORT=yes
5871: fi
5872: else
5873: TEX_SUPPORT=guessed
5874: fi
5875:
5876:
5877: # Check whether --enable-vim was given.
5878: if test "${enable_vim+set}" = set; then :
5879: enableval=$enable_vim;
5880: if test "$enableval" = "no"; then
5881: VIM_SUPPORT=no
5882: else
5883: VIM_SUPPORT=yes
5884: fi
5885: else
5886: VIM_SUPPORT=guessed
5887: fi
5888:
5889:
5890: # Check whether --enable-embedded-gnuplot was given.
5891: if test "${enable_embedded_gnuplot+set}" = set; then :
5892: enableval=$enable_embedded_gnuplot;
5893: if test "$enableval" = "no"; then
5894: MYGNUPLOT=no
5895: else
5896: MYGNUPLOT=yes
5897: fi
5898: else
5899:
5900: MYGNUPLOT=yes
5901: fi
5902:
5903:
5904: # Check whether --enable-gnuplot was given.
5905: if test "${enable_gnuplot+set}" = set; then :
5906: enableval=$enable_gnuplot;
5907: if test "$enableval" = "no"; then
5908: GNUPLOT_SUPPORT=no
5909: MYGNUPLOT=no
5910: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5911: else
5912: GNUPLOT_SUPPORT=yes
5913: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5914: fi
5915: else
5916:
5917: if test "$MYGNUPLOT" = "yes"; then
5918: GNUPLOT_SUPPORT=yes
5919: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5920: else
5921: GNUPLOT_SUPPORT=guessed
5922: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5923: fi
5924: fi
5925:
5926:
5927: # Check whether --enable-motif was given.
5928: if test "${enable_motif+set}" = set; then :
5929: enableval=$enable_motif;
5930: if test "$enableval" = "no"; then
5931: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5932: else
5933: CFLAGS_ORIG=$CFLAGS
5934: LIBS_ORIG=$LIBS
5935: CFLAGS="$CFLAGS $X_CFLAGS"
5936: LIBS="$LIB $X_LIBS"
5937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5938: $as_echo_n "checking for main in -lXm... " >&6; }
5939: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5940: $as_echo_n "(cached) " >&6
5941: else
5942: ac_check_lib_save_LIBS=$LIBS
5943: LIBS="-lXm $LIBS"
5944: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945: /* end confdefs.h. */
5946:
5947:
5948: int
5949: main ()
5950: {
5951: return main ();
5952: ;
5953: return 0;
5954: }
5955: _ACEOF
5956: if ac_fn_c_try_link "$LINENO"; then :
5957: ac_cv_lib_Xm_main=yes
5958: else
5959: ac_cv_lib_Xm_main=no
5960: fi
5961: rm -f core conftest.err conftest.$ac_objext \
5962: conftest$ac_exeext conftest.$ac_ext
5963: LIBS=$ac_check_lib_save_LIBS
5964: fi
5965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5966: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5967: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5968: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5969: else
5970: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5971: fi
5972:
5973: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5974: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5975: Motif flag is disabled.
5976: " >&5
5977: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5978: Motif flag is disabled.
5979: " >&2;}
5980: fi
5981: LIBS=$LIBS_ORIG
5982: CFLAGS=$CFLAGS_ORIG
5983: fi
5984: else
5985: MOTIF_SUPPORT=guessed
5986: fi
5987:
5988:
5989: # Check whether --enable-experimental was given.
5990: if test "${enable_experimental+set}" = set; then :
5991: enableval=$enable_experimental;
5992: if test "$enableval" = "no"; then
5993: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5994: else
5995: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5996: fi
5997: else
5998: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5999: fi
6000:
6001:
6002: # Check whether --enable-debug was given.
6003: if test "${enable_debug+set}" = set; then :
6004: enableval=$enable_debug;
6005: if test "$enableval" = "no"; then
6006: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6007: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
6008: else
6009: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6010: MALLOC=""
6011: fi
6012: else
6013: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6014: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
6015: fi
6016:
6017:
6018: # Check whether --enable-profile was given.
6019: if test "${enable_profile+set}" = set; then :
6020: enableval=$enable_profile;
6021: if test "$enableval" = "no"; then
6022: PROFILAGE=""
6023: else
6024: PROFILAGE="-pg"
6025: fi
6026: else
6027: PROFILAGE=""
6028: fi
6029:
6030:
6031:
6032:
6033: if test ! -d tools; then
6034: mkdir tools
6035: fi
6036: if test ! -d "$srcdir"/tools/$NCURSES; then
6037: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6038: (cd "$srcdir/tools" && tar -xf -)
6039: fi
6040: if test ! -d "$srcdir"/tools/$READLINE; then
6041: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6042: (cd "$srcdir/tools" && tar -xf -)
6043: fi
6044: if test ! -d "$srcdir"/tools/$UNITS; then
6045: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6046: (cd "$srcdir/tools" && tar -xf -)
6047: fi
6048: if test ! -d "$srcdir"/tools/$GSL; then
6049: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6050: (cd "$srcdir/tools" && tar -xf -)
6051: fi
6052: if test ! -d "$srcdir"/tools/$GPP; then
6053: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6054: (cd "$srcdir/tools" && tar -xf -)
6055: fi
6056: if test ! -d "$srcdir"/tools/$FILE; then
6057: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6058: (cd "$srcdir/tools" && tar -xf - )
6059: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6060: fi
6061: if test ! -d "$srcdir"/tools/$ICONV; then
6062: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6063: (cd "$srcdir/tools" && tar -xf -)
6064: fi
6065: if test ! -d "$srcdir"/tools/$SQLITE; then
6066: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6067: (cd "$srcdir/tools" && tar -xf -)
6068: fi
6069: if test ! -d tools/$OPENSSL; then
6070: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6071: (cd tools && tar -xf -)
6072: fi
6073:
6074:
6075:
6076: # Check whether --enable-final-run-path was given.
6077: if test "${enable_final_run_path+set}" = set; then :
6078: enableval=$enable_final_run_path;
6079: if test "x$enable_final_run_path" = "x"; then
6080: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6081: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6082: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6083: else
6084: RUNPATH="$enable_final_run_path"
6085: fi
6086:
6087: else
6088: RUNPATH="\${prefix}"
6089:
6090: fi
6091:
6092:
6093:
6094:
6095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6096: $as_echo_n "checking whether ln -s works... " >&6; }
6097: LN_S=$as_ln_s
6098: if test "$LN_S" = "ln -s"; then
6099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6100: $as_echo "yes" >&6; }
6101: else
6102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6103: $as_echo "no, using $LN_S" >&6; }
6104: fi
6105:
6106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6107: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6108: set x ${MAKE-make}
6109: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6110: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6111: $as_echo_n "(cached) " >&6
6112: else
6113: cat >conftest.make <<\_ACEOF
6114: SHELL = /bin/sh
6115: all:
6116: @echo '@@@%%%=$(MAKE)=@@@%%%'
6117: _ACEOF
6118: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6119: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6120: *@@@%%%=?*=@@@%%%*)
6121: eval ac_cv_prog_make_${ac_make}_set=yes;;
6122: *)
6123: eval ac_cv_prog_make_${ac_make}_set=no;;
6124: esac
6125: rm -f conftest.make
6126: fi
6127: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6129: $as_echo "yes" >&6; }
6130: SET_MAKE=
6131: else
6132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133: $as_echo "no" >&6; }
6134: SET_MAKE="MAKE=${MAKE-make}"
6135: fi
6136:
6137: if test -n "$ac_tool_prefix"; then
6138: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141: $as_echo_n "checking for $ac_word... " >&6; }
6142: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143: $as_echo_n "(cached) " >&6
6144: else
6145: if test -n "$RANLIB"; then
6146: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147: else
6148: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149: for as_dir in $PATH
6150: do
6151: IFS=$as_save_IFS
6152: test -z "$as_dir" && as_dir=.
6153: for ac_exec_ext in '' $ac_executable_extensions; do
6154: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6156: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157: break 2
6158: fi
6159: done
6160: done
6161: IFS=$as_save_IFS
6162:
6163: fi
6164: fi
6165: RANLIB=$ac_cv_prog_RANLIB
6166: if test -n "$RANLIB"; then
6167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168: $as_echo "$RANLIB" >&6; }
6169: else
6170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171: $as_echo "no" >&6; }
6172: fi
6173:
6174:
6175: fi
6176: if test -z "$ac_cv_prog_RANLIB"; then
6177: ac_ct_RANLIB=$RANLIB
6178: # Extract the first word of "ranlib", so it can be a program name with args.
6179: set dummy ranlib; ac_word=$2
6180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181: $as_echo_n "checking for $ac_word... " >&6; }
6182: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183: $as_echo_n "(cached) " >&6
6184: else
6185: if test -n "$ac_ct_RANLIB"; then
6186: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187: else
6188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189: for as_dir in $PATH
6190: do
6191: IFS=$as_save_IFS
6192: test -z "$as_dir" && as_dir=.
6193: for ac_exec_ext in '' $ac_executable_extensions; do
6194: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195: ac_cv_prog_ac_ct_RANLIB="ranlib"
6196: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197: break 2
6198: fi
6199: done
6200: done
6201: IFS=$as_save_IFS
6202:
6203: fi
6204: fi
6205: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6206: if test -n "$ac_ct_RANLIB"; then
6207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208: $as_echo "$ac_ct_RANLIB" >&6; }
6209: else
6210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211: $as_echo "no" >&6; }
6212: fi
6213:
6214: if test "x$ac_ct_RANLIB" = x; then
6215: RANLIB=":"
6216: else
6217: case $cross_compiling:$ac_tool_warned in
6218: yes:)
6219: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221: ac_tool_warned=yes ;;
6222: esac
6223: RANLIB=$ac_ct_RANLIB
6224: fi
6225: else
6226: RANLIB="$ac_cv_prog_RANLIB"
6227: fi
6228:
6229:
6230: # Extract the first word of "nawk", so it can be a program name with args.
6231: set dummy nawk; ac_word=$2
6232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233: $as_echo_n "checking for $ac_word... " >&6; }
6234: if test "${ac_cv_prog_AWK+set}" = set; then :
6235: $as_echo_n "(cached) " >&6
6236: else
6237: if test -n "$AWK"; then
6238: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6239: else
6240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241: for as_dir in $PATH
6242: do
6243: IFS=$as_save_IFS
6244: test -z "$as_dir" && as_dir=.
6245: for ac_exec_ext in '' $ac_executable_extensions; do
6246: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247: ac_cv_prog_AWK="yes"
6248: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249: break 2
6250: fi
6251: done
6252: done
6253: IFS=$as_save_IFS
6254:
6255: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6256: fi
6257: fi
6258: AWK=$ac_cv_prog_AWK
6259: if test -n "$AWK"; then
6260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6261: $as_echo "$AWK" >&6; }
6262: else
6263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264: $as_echo "no" >&6; }
6265: fi
6266:
6267:
6268: if test "$AWK" = no; then
6269: as_fn_error "Can not find nawk !" "$LINENO" 5
6270: fi
6271:
6272: # Extract the first word of "sed", so it can be a program name with args.
6273: set dummy sed; ac_word=$2
6274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275: $as_echo_n "checking for $ac_word... " >&6; }
6276: if test "${ac_cv_prog_SED+set}" = set; then :
6277: $as_echo_n "(cached) " >&6
6278: else
6279: if test -n "$SED"; then
6280: ac_cv_prog_SED="$SED" # Let the user override the test.
6281: else
6282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283: for as_dir in $PATH
6284: do
6285: IFS=$as_save_IFS
6286: test -z "$as_dir" && as_dir=.
6287: for ac_exec_ext in '' $ac_executable_extensions; do
6288: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289: ac_cv_prog_SED="yes"
6290: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291: break 2
6292: fi
6293: done
6294: done
6295: IFS=$as_save_IFS
6296:
6297: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6298: fi
6299: fi
6300: SED=$ac_cv_prog_SED
6301: if test -n "$SED"; then
6302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6303: $as_echo "$SED" >&6; }
6304: else
6305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306: $as_echo "no" >&6; }
6307: fi
6308:
6309:
6310: if test "$SED" = no; then
6311: as_fn_error "Can not find sed !" "$LINENO" 5
6312: fi
6313:
6314: if test "$TEX_SUPPORT" = guessed; then
6315: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6316:
6317: # Extract the first word of "tex", so it can be a program name with args.
6318: set dummy tex; ac_word=$2
6319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320: $as_echo_n "checking for $ac_word... " >&6; }
6321: if test "${ac_cv_prog_TEX+set}" = set; then :
6322: $as_echo_n "(cached) " >&6
6323: else
6324: if test -n "$TEX"; then
6325: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6326: else
6327: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328: for as_dir in $PATH
6329: do
6330: IFS=$as_save_IFS
6331: test -z "$as_dir" && as_dir=.
6332: for ac_exec_ext in '' $ac_executable_extensions; do
6333: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334: ac_cv_prog_TEX="yes"
6335: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336: break 2
6337: fi
6338: done
6339: done
6340: IFS=$as_save_IFS
6341:
6342: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6343: fi
6344: fi
6345: TEX=$ac_cv_prog_TEX
6346: if test -n "$TEX"; then
6347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6348: $as_echo "$TEX" >&6; }
6349: else
6350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351: $as_echo "no" >&6; }
6352: fi
6353:
6354:
6355: if test "$TEX" = no; then
6356: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6357: Download at http://tex.loria.fr/
6358: " >&5
6359: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6360: Download at http://tex.loria.fr/
6361: " >&2;}
6362: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6363: fi
6364:
6365: # Extract the first word of "latex", so it can be a program name with args.
6366: set dummy latex; ac_word=$2
6367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368: $as_echo_n "checking for $ac_word... " >&6; }
6369: if test "${ac_cv_prog_LATEX+set}" = set; then :
6370: $as_echo_n "(cached) " >&6
6371: else
6372: if test -n "$LATEX"; then
6373: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6374: else
6375: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376: for as_dir in $PATH
6377: do
6378: IFS=$as_save_IFS
6379: test -z "$as_dir" && as_dir=.
6380: for ac_exec_ext in '' $ac_executable_extensions; do
6381: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382: ac_cv_prog_LATEX="yes"
6383: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384: break 2
6385: fi
6386: done
6387: done
6388: IFS=$as_save_IFS
6389:
6390: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6391: fi
6392: fi
6393: LATEX=$ac_cv_prog_LATEX
6394: if test -n "$LATEX"; then
6395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6396: $as_echo "$LATEX" >&6; }
6397: else
6398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399: $as_echo "no" >&6; }
6400: fi
6401:
6402:
6403: if test "$LATEX" = no; then
6404: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6405: Download at http://tex.loria.fr/
6406: " >&5
6407: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6408: Download at http://tex.loria.fr/
6409: " >&2;}
6410: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6411: fi
6412:
6413: # Extract the first word of "dvips", so it can be a program name with args.
6414: set dummy dvips; ac_word=$2
6415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416: $as_echo_n "checking for $ac_word... " >&6; }
6417: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6418: $as_echo_n "(cached) " >&6
6419: else
6420: if test -n "$DVIPS"; then
6421: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6422: else
6423: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424: for as_dir in $PATH
6425: do
6426: IFS=$as_save_IFS
6427: test -z "$as_dir" && as_dir=.
6428: for ac_exec_ext in '' $ac_executable_extensions; do
6429: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430: ac_cv_prog_DVIPS="yes"
6431: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432: break 2
6433: fi
6434: done
6435: done
6436: IFS=$as_save_IFS
6437:
6438: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6439: fi
6440: fi
6441: DVIPS=$ac_cv_prog_DVIPS
6442: if test -n "$DVIPS"; then
6443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6444: $as_echo "$DVIPS" >&6; }
6445: else
6446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447: $as_echo "no" >&6; }
6448: fi
6449:
6450:
6451: if test "$DVIPS" = no; then
6452: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6453: Download at http://tex.loria.fr/
6454: " >&5
6455: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6456: Download at http://tex.loria.fr/
6457: " >&2;}
6458: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6459: fi
6460:
6461: # Extract the first word of "gs", so it can be a program name with args.
6462: set dummy gs; ac_word=$2
6463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464: $as_echo_n "checking for $ac_word... " >&6; }
6465: if test "${ac_cv_prog_GS+set}" = set; then :
6466: $as_echo_n "(cached) " >&6
6467: else
6468: if test -n "$GS"; then
6469: ac_cv_prog_GS="$GS" # Let the user override the test.
6470: else
6471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472: for as_dir in $PATH
6473: do
6474: IFS=$as_save_IFS
6475: test -z "$as_dir" && as_dir=.
6476: for ac_exec_ext in '' $ac_executable_extensions; do
6477: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478: ac_cv_prog_GS="yes"
6479: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480: break 2
6481: fi
6482: done
6483: done
6484: IFS=$as_save_IFS
6485:
6486: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6487: fi
6488: fi
6489: GS=$ac_cv_prog_GS
6490: if test -n "$GS"; then
6491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6492: $as_echo "$GS" >&6; }
6493: else
6494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495: $as_echo "no" >&6; }
6496: fi
6497:
6498:
6499: if test "$GS" = no; then
6500: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6501: Download at http://ftp.lip6.fr/
6502: " >&5
6503: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6504: Download at http://ftp.lip6.fr/
6505: " >&2;}
6506: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6507: fi
6508:
6509: # Extract the first word of "gv", so it can be a program name with args.
6510: set dummy gv; ac_word=$2
6511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512: $as_echo_n "checking for $ac_word... " >&6; }
6513: if test "${ac_cv_prog_GV+set}" = set; then :
6514: $as_echo_n "(cached) " >&6
6515: else
6516: if test -n "$GV"; then
6517: ac_cv_prog_GV="$GV" # Let the user override the test.
6518: else
6519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520: for as_dir in $PATH
6521: do
6522: IFS=$as_save_IFS
6523: test -z "$as_dir" && as_dir=.
6524: for ac_exec_ext in '' $ac_executable_extensions; do
6525: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526: ac_cv_prog_GV="yes"
6527: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528: break 2
6529: fi
6530: done
6531: done
6532: IFS=$as_save_IFS
6533:
6534: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6535: fi
6536: fi
6537: GV=$ac_cv_prog_GV
6538: if test -n "$GV"; then
6539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6540: $as_echo "$GV" >&6; }
6541: else
6542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543: $as_echo "no" >&6; }
6544: fi
6545:
6546:
6547: if test "$GV" = no; then
6548: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6549: Download at http://ftp.lip6.fr/
6550: " >&5
6551: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6552: Download at http://ftp.lip6.fr/
6553: " >&2;}
6554: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6555: fi
6556: else
6557: if test "$TEX_SUPPORT" = no; then
6558: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6559: else
6560: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6561: fi
6562: fi
6563:
6564: if test "$GNUPLOT_SUPPORT" = guessed; then
6565: # Extract the first word of "gnuplot", so it can be a program name with args.
6566: set dummy gnuplot; ac_word=$2
6567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568: $as_echo_n "checking for $ac_word... " >&6; }
6569: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6570: $as_echo_n "(cached) " >&6
6571: else
6572: if test -n "$GNUPLOT_P"; then
6573: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6574: else
6575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576: for as_dir in $PATH
6577: do
6578: IFS=$as_save_IFS
6579: test -z "$as_dir" && as_dir=.
6580: for ac_exec_ext in '' $ac_executable_extensions; do
6581: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582: ac_cv_prog_GNUPLOT_P="yes"
6583: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584: break 2
6585: fi
6586: done
6587: done
6588: IFS=$as_save_IFS
6589:
6590: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6591: fi
6592: fi
6593: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6594: if test -n "$GNUPLOT_P"; then
6595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6596: $as_echo "$GNUPLOT_P" >&6; }
6597: else
6598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599: $as_echo "no" >&6; }
6600: fi
6601:
6602:
6603: if test "$GNUPLOT_P" = no; then
6604: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6605: Download at http://www.gnuplot.vt.edu/
6606: " >&5
6607: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6608: Download at http://www.gnuplot.vt.edu/
6609: " >&2;}
6610: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6611: else
6612: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6613: fi
6614: else
6615: if test "$GNUPLOT_SUPPORT" = no; then
6616: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6617: else
6618: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6619: fi
6620: fi
6621:
6622: if test "$VIM_SUPPORT" = guessed; then
6623: # Extract the first word of "vim", so it can be a program name with args.
6624: set dummy vim; ac_word=$2
6625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626: $as_echo_n "checking for $ac_word... " >&6; }
6627: if test "${ac_cv_prog_VIM+set}" = set; then :
6628: $as_echo_n "(cached) " >&6
6629: else
6630: if test -n "$VIM"; then
6631: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6632: else
6633: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634: for as_dir in $PATH
6635: do
6636: IFS=$as_save_IFS
6637: test -z "$as_dir" && as_dir=.
6638: for ac_exec_ext in '' $ac_executable_extensions; do
6639: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640: ac_cv_prog_VIM="yes"
6641: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642: break 2
6643: fi
6644: done
6645: done
6646: IFS=$as_save_IFS
6647:
6648: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6649: fi
6650: fi
6651: VIM=$ac_cv_prog_VIM
6652: if test -n "$VIM"; then
6653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6654: $as_echo "$VIM" >&6; }
6655: else
6656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657: $as_echo "no" >&6; }
6658: fi
6659:
6660:
6661: if test "$VIM" = no; then
6662: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6663: Download at http://www.vim.org/
6664: " >&5
6665: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6666: Download at http://www.vim.org/
6667: " >&2;}
6668: VIM_SUPPORT="-UVIM_SUPPORT"
6669: else
6670: VIM_SUPPORT="-DVIM_SUPPORT"
6671: fi
6672: else
6673: if test "$VIM_SUPPORT" = no; then
6674: VIM_SUPPORT="-UVIM_SUPPORT"
6675: else
6676: VIM_SUPPORT="-DVIM_SUPPORT"
6677: fi
6678: fi
6679:
6680: if test "$MOTIF_SUPPORT" = guessed; then
6681: CFLAGS_ORIG=$CFLAGS
6682: LIBS_ORIG=$LIBS
6683: CFLAGS="$CFLAGS $X_CFLAGS"
6684: LIBS="$LIB $X_LIBS"
6685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6686: $as_echo_n "checking for main in -lXm... " >&6; }
6687: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6688: $as_echo_n "(cached) " >&6
6689: else
6690: ac_check_lib_save_LIBS=$LIBS
6691: LIBS="-lXm $LIBS"
6692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693: /* end confdefs.h. */
6694:
6695:
6696: int
6697: main ()
6698: {
6699: return main ();
6700: ;
6701: return 0;
6702: }
6703: _ACEOF
6704: if ac_fn_c_try_link "$LINENO"; then :
6705: ac_cv_lib_Xm_main=yes
6706: else
6707: ac_cv_lib_Xm_main=no
6708: fi
6709: rm -f core conftest.err conftest.$ac_objext \
6710: conftest$ac_exeext conftest.$ac_ext
6711: LIBS=$ac_check_lib_save_LIBS
6712: fi
6713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6714: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6715: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6716: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6717: else
6718: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6719: fi
6720:
6721: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6722: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6723: Motif flag is disabled.
6724: " >&5
6725: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6726: Motif flag is disabled.
6727: " >&2;}
6728: fi
6729: LIBS=$LIBS_ORIG
6730: CFLAGS=$CFLAGS_ORIG
6731: fi
6732:
6733: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6734: CFLAGS_ORIG=$CFLAGS
6735: LIBS_ORIG=$LIBS
6736: CFLAGS="$CFLAGS $X_CFLAGS"
6737: LIBS="$LIB $X_LIBS"
6738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6739: $as_echo_n "checking for main in -lXpm... " >&6; }
6740: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6741: $as_echo_n "(cached) " >&6
6742: else
6743: ac_check_lib_save_LIBS=$LIBS
6744: LIBS="-lXpm $LIBS"
6745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746: /* end confdefs.h. */
6747:
6748:
6749: int
6750: main ()
6751: {
6752: return main ();
6753: ;
6754: return 0;
6755: }
6756: _ACEOF
6757: if ac_fn_c_try_link "$LINENO"; then :
6758: ac_cv_lib_Xpm_main=yes
6759: else
6760: ac_cv_lib_Xpm_main=no
6761: fi
6762: rm -f core conftest.err conftest.$ac_objext \
6763: conftest$ac_exeext conftest.$ac_ext
6764: LIBS=$ac_check_lib_save_LIBS
6765: fi
6766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6767: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6768: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6769: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6770: else
6771: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6772: fi
6773:
6774: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6775: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6776: else
6777: libX=""
6778: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6779: Motif flag is disabled.
6780: " >&5
6781: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6782: Motif flag is disabled.
6783: " >&2;}
6784: fi
6785: LIBS=$LIBS_ORIG
6786: CFLAGS=$CFLAGS_ORIG
6787: else
6788: libX=""
6789: fi
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799:
6800:
6801: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6802:
6803:
6804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6805: $as_echo_n "checking for main in -lm... " >&6; }
6806: if test "${ac_cv_lib_m_main+set}" = set; then :
6807: $as_echo_n "(cached) " >&6
6808: else
6809: ac_check_lib_save_LIBS=$LIBS
6810: LIBS="-lm $LIBS"
6811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812: /* end confdefs.h. */
6813:
6814:
6815: int
6816: main ()
6817: {
6818: return main ();
6819: ;
6820: return 0;
6821: }
6822: _ACEOF
6823: if ac_fn_c_try_link "$LINENO"; then :
6824: ac_cv_lib_m_main=yes
6825: else
6826: ac_cv_lib_m_main=no
6827: fi
6828: rm -f core conftest.err conftest.$ac_objext \
6829: conftest$ac_exeext conftest.$ac_ext
6830: LIBS=$ac_check_lib_save_LIBS
6831: fi
6832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6833: $as_echo "$ac_cv_lib_m_main" >&6; }
6834: if test "x$ac_cv_lib_m_main" = x""yes; then :
6835: cat >>confdefs.h <<_ACEOF
6836: #define HAVE_LIBM 1
6837: _ACEOF
6838:
6839: LIBS="-lm $LIBS"
6840:
6841: else
6842: as_fn_error "Can not find libm !" "$LINENO" 5
6843: fi
6844:
6845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6846: $as_echo_n "checking for main in -lpthread... " >&6; }
6847: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6848: $as_echo_n "(cached) " >&6
6849: else
6850: ac_check_lib_save_LIBS=$LIBS
6851: LIBS="-lpthread $LIBS"
6852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853: /* end confdefs.h. */
6854:
6855:
6856: int
6857: main ()
6858: {
6859: return main ();
6860: ;
6861: return 0;
6862: }
6863: _ACEOF
6864: if ac_fn_c_try_link "$LINENO"; then :
6865: ac_cv_lib_pthread_main=yes
6866: else
6867: ac_cv_lib_pthread_main=no
6868: fi
6869: rm -f core conftest.err conftest.$ac_objext \
6870: conftest$ac_exeext conftest.$ac_ext
6871: LIBS=$ac_check_lib_save_LIBS
6872: fi
6873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6874: $as_echo "$ac_cv_lib_pthread_main" >&6; }
6875: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
6876: cat >>confdefs.h <<_ACEOF
6877: #define HAVE_LIBPTHREAD 1
6878: _ACEOF
6879:
6880: LIBS="-lpthread $LIBS"
6881:
6882: else
6883: as_fn_error "Can not find libpthread !" "$LINENO" 5
6884: fi
6885:
6886:
6887: if test "$CYGWIN" != yes; then
6888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6889: $as_echo_n "checking for dlopen in -ldl... " >&6; }
6890: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6891: $as_echo_n "(cached) " >&6
6892: else
6893: ac_check_lib_save_LIBS=$LIBS
6894: LIBS="-ldl $LIBS"
6895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896: /* end confdefs.h. */
6897:
6898: /* Override any GCC internal prototype to avoid an error.
6899: Use char because int might match the return type of a GCC
6900: builtin and then its argument prototype would still apply. */
6901: #ifdef __cplusplus
6902: extern "C"
6903: #endif
6904: char dlopen ();
6905: int
6906: main ()
6907: {
6908: return dlopen ();
6909: ;
6910: return 0;
6911: }
6912: _ACEOF
6913: if ac_fn_c_try_link "$LINENO"; then :
6914: ac_cv_lib_dl_dlopen=yes
6915: else
6916: ac_cv_lib_dl_dlopen=no
6917: fi
6918: rm -f core conftest.err conftest.$ac_objext \
6919: conftest$ac_exeext conftest.$ac_ext
6920: LIBS=$ac_check_lib_save_LIBS
6921: fi
6922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6923: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6924: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
6925: LIBS="$LIBS -ldl"
6926: else
6927: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
6928: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
6929: fi
6930:
6931: fi
6932:
6933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6934: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6935: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
6936: $as_echo_n "(cached) " >&6
6937: else
6938: ac_check_lib_save_LIBS=$LIBS
6939: LIBS="-lrt $LIBS"
6940: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941: /* end confdefs.h. */
6942:
6943: /* Override any GCC internal prototype to avoid an error.
6944: Use char because int might match the return type of a GCC
6945: builtin and then its argument prototype would still apply. */
6946: #ifdef __cplusplus
6947: extern "C"
6948: #endif
6949: char nanosleep ();
6950: int
6951: main ()
6952: {
6953: return nanosleep ();
6954: ;
6955: return 0;
6956: }
6957: _ACEOF
6958: if ac_fn_c_try_link "$LINENO"; then :
6959: ac_cv_lib_rt_nanosleep=yes
6960: else
6961: ac_cv_lib_rt_nanosleep=no
6962: fi
6963: rm -f core conftest.err conftest.$ac_objext \
6964: conftest$ac_exeext conftest.$ac_ext
6965: LIBS=$ac_check_lib_save_LIBS
6966: fi
6967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6968: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6969: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
6970: LIBS="$LIBS -lrt"
6971: else
6972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
6973: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
6974: fi
6975:
6976:
6977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
6978: $as_echo_n "checking for bind in -lsocket... " >&6; }
6979: if test "${ac_cv_lib_socket_bind+set}" = set; then :
6980: $as_echo_n "(cached) " >&6
6981: else
6982: ac_check_lib_save_LIBS=$LIBS
6983: LIBS="-lsocket $LIBS"
6984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985: /* end confdefs.h. */
6986:
6987: /* Override any GCC internal prototype to avoid an error.
6988: Use char because int might match the return type of a GCC
6989: builtin and then its argument prototype would still apply. */
6990: #ifdef __cplusplus
6991: extern "C"
6992: #endif
6993: char bind ();
6994: int
6995: main ()
6996: {
6997: return bind ();
6998: ;
6999: return 0;
7000: }
7001: _ACEOF
7002: if ac_fn_c_try_link "$LINENO"; then :
7003: ac_cv_lib_socket_bind=yes
7004: else
7005: ac_cv_lib_socket_bind=no
7006: fi
7007: rm -f core conftest.err conftest.$ac_objext \
7008: conftest$ac_exeext conftest.$ac_ext
7009: LIBS=$ac_check_lib_save_LIBS
7010: fi
7011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7012: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7013: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7014: LIBS="$LIBS -lsocket"
7015: else
7016: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7017: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7018: fi
7019:
7020:
7021: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7022:
7023: # Check whether --with-mysql was given.
7024: if test "${with_mysql+set}" = set; then :
7025: withval=$with_mysql;
7026: else
7027: with_mysql=check
7028: fi
7029:
7030:
7031: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7032: libMySQLinc="-I/usr/include"
7033: libMySQLlib="-L/usr/lib"
7034:
7035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7036: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7037: saved_CFLAGS="$CFLAGS"
7038: CFLAGS="$CFLAGS $libMySQLinc"
7039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040: /* end confdefs.h. */
7041: #include "mysql.h"
7042: int
7043: main ()
7044: {
7045:
7046: ;
7047: return 0;
7048: }
7049: _ACEOF
7050: if ac_fn_c_try_compile "$LINENO"; then :
7051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7052: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7053: libMySQLinc=$libMySQLinc/mysql
7054: else
7055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7057: fi
7058: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059: CFLAGS=$saved_CFLAGS
7060:
7061: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7062: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7063: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7064: saved_CFLAGS="$CFLAGS"
7065: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067: /* end confdefs.h. */
7068: #include "mysql.h"
7069: int
7070: main ()
7071: {
7072:
7073: ;
7074: return 0;
7075: }
7076: _ACEOF
7077: if ac_fn_c_try_compile "$LINENO"; then :
7078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7080: libMySQLinc=$libMySQLinc
7081: else
7082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7084: fi
7085: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086: CFLAGS=$saved_CFLAGS
7087: libMySQLinc=$libMySQLinc/mysql
7088: fi
7089:
7090: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7092: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7093: saved_CFLAGS="$CFLAGS"
7094: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096: /* end confdefs.h. */
7097: #include "mysql.h"
7098: int
7099: main ()
7100: {
7101:
7102: ;
7103: return 0;
7104: }
7105: _ACEOF
7106: if ac_fn_c_try_compile "$LINENO"; then :
7107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7108: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7109: libMySQLinc=$libMySQLinc/mysql
7110: else
7111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7113: fi
7114: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115: CFLAGS=$saved_CFLAGS
7116: libMySQLinc=$libMySQLinc/../local/include
7117: libMySQLlib=$libMySQLlib/../local/lib
7118: fi
7119:
7120: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7122: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7123: saved_CFLAGS="$CFLAGS"
7124: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126: /* end confdefs.h. */
7127: #include "mysql.h"
7128: int
7129: main ()
7130: {
7131:
7132: ;
7133: return 0;
7134: }
7135: _ACEOF
7136: if ac_fn_c_try_compile "$LINENO"; then :
7137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7138: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7139: libMySQLinc=$libMySQLinc/mysql
7140: else
7141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7143: fi
7144: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145: CFLAGS=$saved_CFLAGS
7146: libMySQLinc=$libMySQLinc/../local/include/mysql
7147: libMySQLlib=$libMySQLlib/../local/lib
7148: fi
7149: else
7150: if test "x$with_mysql" != xno; then
7151: libMySQLinc="-I$with_mysql/include"
7152: libMySQLlib="-L$with_mysql/lib"
7153:
7154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7155: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7156: saved_CFLAGS="$CFLAGS"
7157: CFLAGS="$CFLAGS $libMySQLinc"
7158: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159: /* end confdefs.h. */
7160: #include "mysql.h"
7161: int
7162: main ()
7163: {
7164:
7165: ;
7166: return 0;
7167: }
7168: _ACEOF
7169: if ac_fn_c_try_compile "$LINENO"; then :
7170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7171: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7172: libMySQLinc=$libMySQLinc/mysql
7173: else
7174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7176: fi
7177: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178: CFLAGS=$saved_CFLAGS
7179:
7180: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7182: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7183: saved_CFLAGS="$CFLAGS"
7184: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186: /* end confdefs.h. */
7187: #include "mysql.h"
7188: int
7189: main ()
7190: {
7191:
7192: ;
7193: return 0;
7194: }
7195: _ACEOF
7196: if ac_fn_c_try_compile "$LINENO"; then :
7197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7198: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7199: libMySQLinc=$libMySQLinc
7200: else
7201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7203: fi
7204: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205: CFLAGS=$saved_CFLAGS
7206: libMySQLinc=$libMySQLinc/mysql
7207: fi
7208: else
7209: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7210: fi
7211: fi
7212:
7213: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7214: MYSQL_LIB=no
7215:
7216: if test $MYSQL_LIB = no; then
7217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7218: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7219: saved_LIBS="$LIBS"
7220: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222: /* end confdefs.h. */
7223: #include "mysql.h"
7224: int
7225: main ()
7226: {
7227: MYSQL mysql; mysql_init(&mysql);
7228: ;
7229: return 0;
7230: }
7231: _ACEOF
7232: if ac_fn_c_try_link "$LINENO"; then :
7233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7235: else
7236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237: $as_echo "no" >&6; }; MYSQL_LIB="no"
7238: fi
7239: rm -f core conftest.err conftest.$ac_objext \
7240: conftest$ac_exeext conftest.$ac_ext
7241: LIBS=$saved_LIBS;
7242: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7243: fi
7244:
7245: if test $MYSQL_LIB = no; then
7246: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7247: fi
7248: fi
7249:
7250: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7251: libMySQLinc=
7252: libMySQLlib=
7253: fi
7254:
7255:
7256:
7257:
7258:
7259: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7260:
7261: # Check whether --with-postgresql was given.
7262: if test "${with_postgresql+set}" = set; then :
7263: withval=$with_postgresql;
7264: else
7265: with_postgresql=check
7266: fi
7267:
7268:
7269: # with_postgresql : check [pas défini], yes [uniquement --with],
7270: # no [--without], valeur [--with=valeur].
7271:
7272: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7273: libPgSQLinc="-I/usr/include"
7274: libPgSQLlib="-L/usr/lib"
7275:
7276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7277: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7278: saved_CFLAGS="$CFLAGS"
7279: CFLAGS="$CFLAGS $libPgSQLinc"
7280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281: /* end confdefs.h. */
7282: #include "libpq-fe.h"
7283: int
7284: main ()
7285: {
7286:
7287: ;
7288: return 0;
7289: }
7290: _ACEOF
7291: if ac_fn_c_try_compile "$LINENO"; then :
7292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7294: else
7295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7297: fi
7298: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299: CFLAGS=$saved_CFLAGS
7300:
7301: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7303: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7304: saved_CFLAGS="$CFLAGS"
7305: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7306: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307: /* end confdefs.h. */
7308: #include "libpq-fe.h"
7309: int
7310: main ()
7311: {
7312:
7313: ;
7314: return 0;
7315: }
7316: _ACEOF
7317: if ac_fn_c_try_compile "$LINENO"; then :
7318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7319: $as_echo "yes" >&6; };
7320: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7321: else
7322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323: $as_echo "no" >&6; };
7324: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7325: fi
7326: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327: CFLAGS=$saved_CFLAGS
7328: libPgSQLinc=$libPgSQLinc/postgresql
7329: fi
7330:
7331: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7333: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7334: saved_CFLAGS="$CFLAGS"
7335: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7336: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337: /* end confdefs.h. */
7338: #include "libpq-fe.h"
7339: int
7340: main ()
7341: {
7342:
7343: ;
7344: return 0;
7345: }
7346: _ACEOF
7347: if ac_fn_c_try_compile "$LINENO"; then :
7348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349: $as_echo "yes" >&6; };
7350: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7351: else
7352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353: $as_echo "no" >&6; };
7354: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7355: fi
7356: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357: CFLAGS=$saved_CFLAGS
7358: libPgSQLinc=$libPgSQLinc/pgsql
7359: fi
7360:
7361: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7363: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7364: saved_CFLAGS="$CFLAGS"
7365: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367: /* end confdefs.h. */
7368: #include "libpq-fe.h"
7369: int
7370: main ()
7371: {
7372:
7373: ;
7374: return 0;
7375: }
7376: _ACEOF
7377: if ac_fn_c_try_compile "$LINENO"; then :
7378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7379: $as_echo "yes" >&6; };
7380: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7381: else
7382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383: $as_echo "no" >&6; };
7384: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7385: fi
7386: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387: CFLAGS=$saved_CFLAGS
7388: libPgSQLinc=$libPgSQLinc/../local/include
7389: libPgSQLlib=$libPgSQLlib/../local/lib
7390: fi
7391:
7392: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7394: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7395: saved_CFLAGS="$CFLAGS"
7396: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7397: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398: /* end confdefs.h. */
7399: #include "libpq-fe.h"
7400: int
7401: main ()
7402: {
7403:
7404: ;
7405: return 0;
7406: }
7407: _ACEOF
7408: if ac_fn_c_try_compile "$LINENO"; then :
7409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7410: $as_echo "yes" >&6; };
7411: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7412: else
7413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414: $as_echo "no" >&6; };
7415: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7416: fi
7417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418: CFLAGS=$saved_CFLAGS
7419: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7420: libPgSQLlib=$libPgSQLlib/../local/lib
7421: fi
7422:
7423: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7425: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7426: saved_CFLAGS="$CFLAGS"
7427: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429: /* end confdefs.h. */
7430: #include "libpq-fe.h"
7431: int
7432: main ()
7433: {
7434:
7435: ;
7436: return 0;
7437: }
7438: _ACEOF
7439: if ac_fn_c_try_compile "$LINENO"; then :
7440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441: $as_echo "yes" >&6; };
7442: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7443: else
7444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445: $as_echo "no" >&6; };
7446: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7447: fi
7448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449: CFLAGS=$saved_CFLAGS
7450: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7451: libPgSQLlib=$libPgSQLlib/../local/lib
7452: fi
7453: else
7454: if test "x$with_postgresql" != xno; then
7455: libPgSQLinc="-I$with_postgresql/include"
7456: libPgSQLlib="-L$with_postgresql/lib"
7457:
7458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7459: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7460: saved_CFLAGS="$CFLAGS"
7461: CFLAGS="$CFLAGS $libPgSQLinc"
7462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463: /* end confdefs.h. */
7464: #include "libpq-fe.h"
7465: int
7466: main ()
7467: {
7468:
7469: ;
7470: return 0;
7471: }
7472: _ACEOF
7473: if ac_fn_c_try_compile "$LINENO"; then :
7474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475: $as_echo "yes" >&6; };
7476: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7477: else
7478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479: $as_echo "no" >&6; };
7480: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7481: fi
7482: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483: CFLAGS=$saved_CFLAGS
7484:
7485: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7487: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7488: saved_CFLAGS="$CFLAGS"
7489: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491: /* end confdefs.h. */
7492: #include "libpq-fe.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; };
7504: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7505: else
7506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507: $as_echo "no" >&6; };
7508: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7509: fi
7510: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511: CFLAGS=$saved_CFLAGS
7512: libPgSQLinc=$libPgSQLinc/postgresql
7513: fi
7514:
7515: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7517: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7518: saved_CFLAGS="$CFLAGS"
7519: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7520: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521: /* end confdefs.h. */
7522: #include "libpq-fe.h"
7523: int
7524: main ()
7525: {
7526:
7527: ;
7528: return 0;
7529: }
7530: _ACEOF
7531: if ac_fn_c_try_compile "$LINENO"; then :
7532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7533: $as_echo "yes" >&6; };
7534: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7535: else
7536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537: $as_echo "no" >&6; };
7538: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7539: fi
7540: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541: CFLAGS=$saved_CFLAGS
7542: libPgSQLinc=$libPgSQLinc/pgsql
7543: fi
7544: else
7545: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7546: fi
7547: fi
7548:
7549: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7550: POSTGRESQL_LIB=no
7551:
7552: if test $POSTGRESQL_LIB = no; then
7553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7554: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7555: saved_LIBS="$LIBS"
7556: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7557: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558: /* end confdefs.h. */
7559: #include "libpq-fe.h"
7560: int
7561: main ()
7562: {
7563: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7564: PQconnectdb(conninfo);
7565: ;
7566: return 0;
7567: }
7568: _ACEOF
7569: if ac_fn_c_try_link "$LINENO"; then :
7570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7571: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7572: else
7573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7575: fi
7576: rm -f core conftest.err conftest.$ac_objext \
7577: conftest$ac_exeext conftest.$ac_ext
7578: LIBS=$saved_LIBS;
7579: libPgSQLlib="$libPgSQLlib -lpq"
7580: fi
7581: fi
7582:
7583: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7584: libPgSQLinc=
7585: libPgSQLlib=
7586: fi
7587:
7588:
7589:
7590:
7591:
7592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7593: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7594: if test "${ac_cv_path_GREP+set}" = set; then :
7595: $as_echo_n "(cached) " >&6
7596: else
7597: if test -z "$GREP"; then
7598: ac_path_GREP_found=false
7599: # Loop through the user's path and test for each of PROGNAME-LIST
7600: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7602: do
7603: IFS=$as_save_IFS
7604: test -z "$as_dir" && as_dir=.
7605: for ac_prog in grep ggrep; do
7606: for ac_exec_ext in '' $ac_executable_extensions; do
7607: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7608: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7609: # Check for GNU ac_path_GREP and select it if it is found.
7610: # Check for GNU $ac_path_GREP
7611: case `"$ac_path_GREP" --version 2>&1` in
7612: *GNU*)
7613: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7614: *)
7615: ac_count=0
7616: $as_echo_n 0123456789 >"conftest.in"
7617: while :
7618: do
7619: cat "conftest.in" "conftest.in" >"conftest.tmp"
7620: mv "conftest.tmp" "conftest.in"
7621: cp "conftest.in" "conftest.nl"
7622: $as_echo 'GREP' >> "conftest.nl"
7623: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7624: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7625: as_fn_arith $ac_count + 1 && ac_count=$as_val
7626: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7627: # Best one so far, save it but keep looking for a better one
7628: ac_cv_path_GREP="$ac_path_GREP"
7629: ac_path_GREP_max=$ac_count
7630: fi
7631: # 10*(2^10) chars as input seems more than enough
7632: test $ac_count -gt 10 && break
7633: done
7634: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7635: esac
7636:
7637: $ac_path_GREP_found && break 3
7638: done
7639: done
7640: done
7641: IFS=$as_save_IFS
7642: if test -z "$ac_cv_path_GREP"; then
7643: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7644: fi
7645: else
7646: ac_cv_path_GREP=$GREP
7647: fi
7648:
7649: fi
7650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7651: $as_echo "$ac_cv_path_GREP" >&6; }
7652: GREP="$ac_cv_path_GREP"
7653:
7654:
7655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7656: $as_echo_n "checking for egrep... " >&6; }
7657: if test "${ac_cv_path_EGREP+set}" = set; then :
7658: $as_echo_n "(cached) " >&6
7659: else
7660: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7661: then ac_cv_path_EGREP="$GREP -E"
7662: else
7663: if test -z "$EGREP"; then
7664: ac_path_EGREP_found=false
7665: # Loop through the user's path and test for each of PROGNAME-LIST
7666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7668: do
7669: IFS=$as_save_IFS
7670: test -z "$as_dir" && as_dir=.
7671: for ac_prog in egrep; do
7672: for ac_exec_ext in '' $ac_executable_extensions; do
7673: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7674: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7675: # Check for GNU ac_path_EGREP and select it if it is found.
7676: # Check for GNU $ac_path_EGREP
7677: case `"$ac_path_EGREP" --version 2>&1` in
7678: *GNU*)
7679: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7680: *)
7681: ac_count=0
7682: $as_echo_n 0123456789 >"conftest.in"
7683: while :
7684: do
7685: cat "conftest.in" "conftest.in" >"conftest.tmp"
7686: mv "conftest.tmp" "conftest.in"
7687: cp "conftest.in" "conftest.nl"
7688: $as_echo 'EGREP' >> "conftest.nl"
7689: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7690: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7691: as_fn_arith $ac_count + 1 && ac_count=$as_val
7692: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7693: # Best one so far, save it but keep looking for a better one
7694: ac_cv_path_EGREP="$ac_path_EGREP"
7695: ac_path_EGREP_max=$ac_count
7696: fi
7697: # 10*(2^10) chars as input seems more than enough
7698: test $ac_count -gt 10 && break
7699: done
7700: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7701: esac
7702:
7703: $ac_path_EGREP_found && break 3
7704: done
7705: done
7706: done
7707: IFS=$as_save_IFS
7708: if test -z "$ac_cv_path_EGREP"; then
7709: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7710: fi
7711: else
7712: ac_cv_path_EGREP=$EGREP
7713: fi
7714:
7715: fi
7716: fi
7717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7718: $as_echo "$ac_cv_path_EGREP" >&6; }
7719: EGREP="$ac_cv_path_EGREP"
7720:
7721:
7722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7723: $as_echo_n "checking for ANSI C header files... " >&6; }
7724: if test "${ac_cv_header_stdc+set}" = set; then :
7725: $as_echo_n "(cached) " >&6
7726: else
7727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728: /* end confdefs.h. */
7729: #include <stdlib.h>
7730: #include <stdarg.h>
7731: #include <string.h>
7732: #include <float.h>
7733:
7734: int
7735: main ()
7736: {
7737:
7738: ;
7739: return 0;
7740: }
7741: _ACEOF
7742: if ac_fn_c_try_compile "$LINENO"; then :
7743: ac_cv_header_stdc=yes
7744: else
7745: ac_cv_header_stdc=no
7746: fi
7747: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748:
7749: if test $ac_cv_header_stdc = yes; then
7750: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752: /* end confdefs.h. */
7753: #include <string.h>
7754:
7755: _ACEOF
7756: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7757: $EGREP "memchr" >/dev/null 2>&1; then :
7758:
7759: else
7760: ac_cv_header_stdc=no
7761: fi
7762: rm -f conftest*
7763:
7764: fi
7765:
7766: if test $ac_cv_header_stdc = yes; then
7767: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769: /* end confdefs.h. */
7770: #include <stdlib.h>
7771:
7772: _ACEOF
7773: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7774: $EGREP "free" >/dev/null 2>&1; then :
7775:
7776: else
7777: ac_cv_header_stdc=no
7778: fi
7779: rm -f conftest*
7780:
7781: fi
7782:
7783: if test $ac_cv_header_stdc = yes; then
7784: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7785: if test "$cross_compiling" = yes; then :
7786: :
7787: else
7788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789: /* end confdefs.h. */
7790: #include <ctype.h>
7791: #include <stdlib.h>
7792: #if ((' ' & 0x0FF) == 0x020)
7793: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7794: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7795: #else
7796: # define ISLOWER(c) \
7797: (('a' <= (c) && (c) <= 'i') \
7798: || ('j' <= (c) && (c) <= 'r') \
7799: || ('s' <= (c) && (c) <= 'z'))
7800: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7801: #endif
7802:
7803: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7804: int
7805: main ()
7806: {
7807: int i;
7808: for (i = 0; i < 256; i++)
7809: if (XOR (islower (i), ISLOWER (i))
7810: || toupper (i) != TOUPPER (i))
7811: return 2;
7812: return 0;
7813: }
7814: _ACEOF
7815: if ac_fn_c_try_run "$LINENO"; then :
7816:
7817: else
7818: ac_cv_header_stdc=no
7819: fi
7820: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821: conftest.$ac_objext conftest.beam conftest.$ac_ext
7822: fi
7823:
7824: fi
7825: fi
7826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7827: $as_echo "$ac_cv_header_stdc" >&6; }
7828: if test $ac_cv_header_stdc = yes; then
7829:
7830: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7831:
7832: fi
7833:
7834: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7835: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7836: inttypes.h stdint.h unistd.h
7837: do :
7838: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7840: "
7841: eval as_val=\$$as_ac_Header
7842: if test "x$as_val" = x""yes; then :
7843: cat >>confdefs.h <<_ACEOF
7844: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7845: _ACEOF
7846:
7847: fi
7848:
7849: done
7850:
7851:
7852: # The cast to long int works around a bug in the HP C Compiler
7853: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7854: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7855: # This bug is HP SR number 8606223364.
7856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7857: $as_echo_n "checking size of void *... " >&6; }
7858: if test "${ac_cv_sizeof_void_p+set}" = set; then :
7859: $as_echo_n "(cached) " >&6
7860: else
7861: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7862:
7863: else
7864: if test "$ac_cv_type_void_p" = yes; then
7865: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7866: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7867: { as_fn_set_status 77
7868: as_fn_error "cannot compute sizeof (void *)
7869: See \`config.log' for more details." "$LINENO" 5; }; }
7870: else
7871: ac_cv_sizeof_void_p=0
7872: fi
7873: fi
7874:
7875: fi
7876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7877: $as_echo "$ac_cv_sizeof_void_p" >&6; }
7878:
7879:
7880:
7881: cat >>confdefs.h <<_ACEOF
7882: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7883: _ACEOF
7884:
7885:
7886: # The cast to long int works around a bug in the HP C Compiler
7887: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7888: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7889: # This bug is HP SR number 8606223364.
7890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7891: $as_echo_n "checking size of char... " >&6; }
7892: if test "${ac_cv_sizeof_char+set}" = set; then :
7893: $as_echo_n "(cached) " >&6
7894: else
7895: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
7896:
7897: else
7898: if test "$ac_cv_type_char" = yes; then
7899: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7900: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7901: { as_fn_set_status 77
7902: as_fn_error "cannot compute sizeof (char)
7903: See \`config.log' for more details." "$LINENO" 5; }; }
7904: else
7905: ac_cv_sizeof_char=0
7906: fi
7907: fi
7908:
7909: fi
7910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7911: $as_echo "$ac_cv_sizeof_char" >&6; }
7912:
7913:
7914:
7915: cat >>confdefs.h <<_ACEOF
7916: #define SIZEOF_CHAR $ac_cv_sizeof_char
7917: _ACEOF
7918:
7919:
7920: # The cast to long int works around a bug in the HP C Compiler
7921: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7922: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7923: # This bug is HP SR number 8606223364.
7924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
7925: $as_echo_n "checking size of short int... " >&6; }
7926: if test "${ac_cv_sizeof_short_int+set}" = set; then :
7927: $as_echo_n "(cached) " >&6
7928: else
7929: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
7930:
7931: else
7932: if test "$ac_cv_type_short_int" = yes; then
7933: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7934: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7935: { as_fn_set_status 77
7936: as_fn_error "cannot compute sizeof (short int)
7937: See \`config.log' for more details." "$LINENO" 5; }; }
7938: else
7939: ac_cv_sizeof_short_int=0
7940: fi
7941: fi
7942:
7943: fi
7944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
7945: $as_echo "$ac_cv_sizeof_short_int" >&6; }
7946:
7947:
7948:
7949: cat >>confdefs.h <<_ACEOF
7950: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
7951: _ACEOF
7952:
7953:
7954: # The cast to long int works around a bug in the HP C Compiler
7955: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7956: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7957: # This bug is HP SR number 8606223364.
7958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7959: $as_echo_n "checking size of int... " >&6; }
7960: if test "${ac_cv_sizeof_int+set}" = set; then :
7961: $as_echo_n "(cached) " >&6
7962: else
7963: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7964:
7965: else
7966: if test "$ac_cv_type_int" = yes; then
7967: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7968: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7969: { as_fn_set_status 77
7970: as_fn_error "cannot compute sizeof (int)
7971: See \`config.log' for more details." "$LINENO" 5; }; }
7972: else
7973: ac_cv_sizeof_int=0
7974: fi
7975: fi
7976:
7977: fi
7978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7979: $as_echo "$ac_cv_sizeof_int" >&6; }
7980:
7981:
7982:
7983: cat >>confdefs.h <<_ACEOF
7984: #define SIZEOF_INT $ac_cv_sizeof_int
7985: _ACEOF
7986:
7987:
7988: # The cast to long int works around a bug in the HP C Compiler
7989: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7990: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7991: # This bug is HP SR number 8606223364.
7992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
7993: $as_echo_n "checking size of long int... " >&6; }
7994: if test "${ac_cv_sizeof_long_int+set}" = set; then :
7995: $as_echo_n "(cached) " >&6
7996: else
7997: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
7998:
7999: else
8000: if test "$ac_cv_type_long_int" = yes; then
8001: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8002: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8003: { as_fn_set_status 77
8004: as_fn_error "cannot compute sizeof (long int)
8005: See \`config.log' for more details." "$LINENO" 5; }; }
8006: else
8007: ac_cv_sizeof_long_int=0
8008: fi
8009: fi
8010:
8011: fi
8012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8013: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8014:
8015:
8016:
8017: cat >>confdefs.h <<_ACEOF
8018: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8019: _ACEOF
8020:
8021:
8022: # The cast to long int works around a bug in the HP C Compiler
8023: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8024: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8025: # This bug is HP SR number 8606223364.
8026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8027: $as_echo_n "checking size of long long int... " >&6; }
8028: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8029: $as_echo_n "(cached) " >&6
8030: else
8031: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8032:
8033: else
8034: if test "$ac_cv_type_long_long_int" = yes; then
8035: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8036: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8037: { as_fn_set_status 77
8038: as_fn_error "cannot compute sizeof (long long int)
8039: See \`config.log' for more details." "$LINENO" 5; }; }
8040: else
8041: ac_cv_sizeof_long_long_int=0
8042: fi
8043: fi
8044:
8045: fi
8046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8047: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8048:
8049:
8050:
8051: cat >>confdefs.h <<_ACEOF
8052: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8053: _ACEOF
8054:
8055:
8056: # The cast to long int works around a bug in the HP C Compiler
8057: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8058: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8059: # This bug is HP SR number 8606223364.
8060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8061: $as_echo_n "checking size of float... " >&6; }
8062: if test "${ac_cv_sizeof_float+set}" = set; then :
8063: $as_echo_n "(cached) " >&6
8064: else
8065: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8066:
8067: else
8068: if test "$ac_cv_type_float" = yes; then
8069: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8070: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8071: { as_fn_set_status 77
8072: as_fn_error "cannot compute sizeof (float)
8073: See \`config.log' for more details." "$LINENO" 5; }; }
8074: else
8075: ac_cv_sizeof_float=0
8076: fi
8077: fi
8078:
8079: fi
8080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8081: $as_echo "$ac_cv_sizeof_float" >&6; }
8082:
8083:
8084:
8085: cat >>confdefs.h <<_ACEOF
8086: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8087: _ACEOF
8088:
8089:
8090: # The cast to long int works around a bug in the HP C Compiler
8091: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8092: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8093: # This bug is HP SR number 8606223364.
8094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8095: $as_echo_n "checking size of double... " >&6; }
8096: if test "${ac_cv_sizeof_double+set}" = set; then :
8097: $as_echo_n "(cached) " >&6
8098: else
8099: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8100:
8101: else
8102: if test "$ac_cv_type_double" = yes; then
8103: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8104: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8105: { as_fn_set_status 77
8106: as_fn_error "cannot compute sizeof (double)
8107: See \`config.log' for more details." "$LINENO" 5; }; }
8108: else
8109: ac_cv_sizeof_double=0
8110: fi
8111: fi
8112:
8113: fi
8114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8115: $as_echo "$ac_cv_sizeof_double" >&6; }
8116:
8117:
8118:
8119: cat >>confdefs.h <<_ACEOF
8120: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8121: _ACEOF
8122:
8123:
8124: # The cast to long int works around a bug in the HP C Compiler
8125: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8126: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8127: # This bug is HP SR number 8606223364.
8128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8129: $as_echo_n "checking size of long double... " >&6; }
8130: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8131: $as_echo_n "(cached) " >&6
8132: else
8133: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8134:
8135: else
8136: if test "$ac_cv_type_long_double" = yes; then
8137: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8138: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8139: { as_fn_set_status 77
8140: as_fn_error "cannot compute sizeof (long double)
8141: See \`config.log' for more details." "$LINENO" 5; }; }
8142: else
8143: ac_cv_sizeof_long_double=0
8144: fi
8145: fi
8146:
8147: fi
8148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8149: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8150:
8151:
8152:
8153: cat >>confdefs.h <<_ACEOF
8154: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8155: _ACEOF
8156:
8157:
8158:
8159: ac_header_dirent=no
8160: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8161: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8163: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8164: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8165: $as_echo_n "(cached) " >&6
8166: else
8167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168: /* end confdefs.h. */
8169: #include <sys/types.h>
8170: #include <$ac_hdr>
8171:
8172: int
8173: main ()
8174: {
8175: if ((DIR *) 0)
8176: return 0;
8177: ;
8178: return 0;
8179: }
8180: _ACEOF
8181: if ac_fn_c_try_compile "$LINENO"; then :
8182: eval "$as_ac_Header=yes"
8183: else
8184: eval "$as_ac_Header=no"
8185: fi
8186: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187: fi
8188: eval ac_res=\$$as_ac_Header
8189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8190: $as_echo "$ac_res" >&6; }
8191: eval as_val=\$$as_ac_Header
8192: if test "x$as_val" = x""yes; then :
8193: cat >>confdefs.h <<_ACEOF
8194: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8195: _ACEOF
8196:
8197: ac_header_dirent=$ac_hdr; break
8198: fi
8199:
8200: done
8201: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8202: if test $ac_header_dirent = dirent.h; then
8203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8204: $as_echo_n "checking for library containing opendir... " >&6; }
8205: if test "${ac_cv_search_opendir+set}" = set; then :
8206: $as_echo_n "(cached) " >&6
8207: else
8208: ac_func_search_save_LIBS=$LIBS
8209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210: /* end confdefs.h. */
8211:
8212: /* Override any GCC internal prototype to avoid an error.
8213: Use char because int might match the return type of a GCC
8214: builtin and then its argument prototype would still apply. */
8215: #ifdef __cplusplus
8216: extern "C"
8217: #endif
8218: char opendir ();
8219: int
8220: main ()
8221: {
8222: return opendir ();
8223: ;
8224: return 0;
8225: }
8226: _ACEOF
8227: for ac_lib in '' dir; do
8228: if test -z "$ac_lib"; then
8229: ac_res="none required"
8230: else
8231: ac_res=-l$ac_lib
8232: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8233: fi
8234: if ac_fn_c_try_link "$LINENO"; then :
8235: ac_cv_search_opendir=$ac_res
8236: fi
8237: rm -f core conftest.err conftest.$ac_objext \
8238: conftest$ac_exeext
8239: if test "${ac_cv_search_opendir+set}" = set; then :
8240: break
8241: fi
8242: done
8243: if test "${ac_cv_search_opendir+set}" = set; then :
8244:
8245: else
8246: ac_cv_search_opendir=no
8247: fi
8248: rm conftest.$ac_ext
8249: LIBS=$ac_func_search_save_LIBS
8250: fi
8251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8252: $as_echo "$ac_cv_search_opendir" >&6; }
8253: ac_res=$ac_cv_search_opendir
8254: if test "$ac_res" != no; then :
8255: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8256:
8257: fi
8258:
8259: else
8260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8261: $as_echo_n "checking for library containing opendir... " >&6; }
8262: if test "${ac_cv_search_opendir+set}" = set; then :
8263: $as_echo_n "(cached) " >&6
8264: else
8265: ac_func_search_save_LIBS=$LIBS
8266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267: /* end confdefs.h. */
8268:
8269: /* Override any GCC internal prototype to avoid an error.
8270: Use char because int might match the return type of a GCC
8271: builtin and then its argument prototype would still apply. */
8272: #ifdef __cplusplus
8273: extern "C"
8274: #endif
8275: char opendir ();
8276: int
8277: main ()
8278: {
8279: return opendir ();
8280: ;
8281: return 0;
8282: }
8283: _ACEOF
8284: for ac_lib in '' x; do
8285: if test -z "$ac_lib"; then
8286: ac_res="none required"
8287: else
8288: ac_res=-l$ac_lib
8289: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8290: fi
8291: if ac_fn_c_try_link "$LINENO"; then :
8292: ac_cv_search_opendir=$ac_res
8293: fi
8294: rm -f core conftest.err conftest.$ac_objext \
8295: conftest$ac_exeext
8296: if test "${ac_cv_search_opendir+set}" = set; then :
8297: break
8298: fi
8299: done
8300: if test "${ac_cv_search_opendir+set}" = set; then :
8301:
8302: else
8303: ac_cv_search_opendir=no
8304: fi
8305: rm conftest.$ac_ext
8306: LIBS=$ac_func_search_save_LIBS
8307: fi
8308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8309: $as_echo "$ac_cv_search_opendir" >&6; }
8310: ac_res=$ac_cv_search_opendir
8311: if test "$ac_res" != no; then :
8312: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313:
8314: fi
8315:
8316: fi
8317:
8318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8319: $as_echo_n "checking for ANSI C header files... " >&6; }
8320: if test "${ac_cv_header_stdc+set}" = set; then :
8321: $as_echo_n "(cached) " >&6
8322: else
8323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324: /* end confdefs.h. */
8325: #include <stdlib.h>
8326: #include <stdarg.h>
8327: #include <string.h>
8328: #include <float.h>
8329:
8330: int
8331: main ()
8332: {
8333:
8334: ;
8335: return 0;
8336: }
8337: _ACEOF
8338: if ac_fn_c_try_compile "$LINENO"; then :
8339: ac_cv_header_stdc=yes
8340: else
8341: ac_cv_header_stdc=no
8342: fi
8343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344:
8345: if test $ac_cv_header_stdc = yes; then
8346: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348: /* end confdefs.h. */
8349: #include <string.h>
8350:
8351: _ACEOF
8352: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8353: $EGREP "memchr" >/dev/null 2>&1; then :
8354:
8355: else
8356: ac_cv_header_stdc=no
8357: fi
8358: rm -f conftest*
8359:
8360: fi
8361:
8362: if test $ac_cv_header_stdc = yes; then
8363: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8364: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365: /* end confdefs.h. */
8366: #include <stdlib.h>
8367:
8368: _ACEOF
8369: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370: $EGREP "free" >/dev/null 2>&1; then :
8371:
8372: else
8373: ac_cv_header_stdc=no
8374: fi
8375: rm -f conftest*
8376:
8377: fi
8378:
8379: if test $ac_cv_header_stdc = yes; then
8380: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8381: if test "$cross_compiling" = yes; then :
8382: :
8383: else
8384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385: /* end confdefs.h. */
8386: #include <ctype.h>
8387: #include <stdlib.h>
8388: #if ((' ' & 0x0FF) == 0x020)
8389: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8390: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8391: #else
8392: # define ISLOWER(c) \
8393: (('a' <= (c) && (c) <= 'i') \
8394: || ('j' <= (c) && (c) <= 'r') \
8395: || ('s' <= (c) && (c) <= 'z'))
8396: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8397: #endif
8398:
8399: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8400: int
8401: main ()
8402: {
8403: int i;
8404: for (i = 0; i < 256; i++)
8405: if (XOR (islower (i), ISLOWER (i))
8406: || toupper (i) != TOUPPER (i))
8407: return 2;
8408: return 0;
8409: }
8410: _ACEOF
8411: if ac_fn_c_try_run "$LINENO"; then :
8412:
8413: else
8414: ac_cv_header_stdc=no
8415: fi
8416: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8417: conftest.$ac_objext conftest.beam conftest.$ac_ext
8418: fi
8419:
8420: fi
8421: fi
8422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8423: $as_echo "$ac_cv_header_stdc" >&6; }
8424: if test $ac_cv_header_stdc = yes; then
8425:
8426: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8427:
8428: fi
8429:
8430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8431: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8432: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8433: $as_echo_n "(cached) " >&6
8434: else
8435: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436: /* end confdefs.h. */
8437: #include <sys/types.h>
8438: #include <sys/wait.h>
8439: #ifndef WEXITSTATUS
8440: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8441: #endif
8442: #ifndef WIFEXITED
8443: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8444: #endif
8445:
8446: int
8447: main ()
8448: {
8449: int s;
8450: wait (&s);
8451: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8452: ;
8453: return 0;
8454: }
8455: _ACEOF
8456: if ac_fn_c_try_compile "$LINENO"; then :
8457: ac_cv_header_sys_wait_h=yes
8458: else
8459: ac_cv_header_sys_wait_h=no
8460: fi
8461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462: fi
8463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8464: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8465: if test $ac_cv_header_sys_wait_h = yes; then
8466:
8467: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8468:
8469: fi
8470:
8471: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8472: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8473: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8474: do :
8475: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8476: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8477: eval as_val=\$$as_ac_Header
8478: if test "x$as_val" = x""yes; then :
8479: cat >>confdefs.h <<_ACEOF
8480: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481: _ACEOF
8482:
8483: fi
8484:
8485: done
8486:
8487:
8488: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8489: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8490: if test "${ac_cv_c_const+set}" = set; then :
8491: $as_echo_n "(cached) " >&6
8492: else
8493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494: /* end confdefs.h. */
8495:
8496: int
8497: main ()
8498: {
8499: /* FIXME: Include the comments suggested by Paul. */
8500: #ifndef __cplusplus
8501: /* Ultrix mips cc rejects this. */
8502: typedef int charset[2];
8503: const charset cs;
8504: /* SunOS 4.1.1 cc rejects this. */
8505: char const *const *pcpcc;
8506: char **ppc;
8507: /* NEC SVR4.0.2 mips cc rejects this. */
8508: struct point {int x, y;};
8509: static struct point const zero = {0,0};
8510: /* AIX XL C 1.02.0.0 rejects this.
8511: It does not let you subtract one const X* pointer from another in
8512: an arm of an if-expression whose if-part is not a constant
8513: expression */
8514: const char *g = "string";
8515: pcpcc = &g + (g ? g-g : 0);
8516: /* HPUX 7.0 cc rejects these. */
8517: ++pcpcc;
8518: ppc = (char**) pcpcc;
8519: pcpcc = (char const *const *) ppc;
8520: { /* SCO 3.2v4 cc rejects this. */
8521: char *t;
8522: char const *s = 0 ? (char *) 0 : (char const *) 0;
8523:
8524: *t++ = 0;
8525: if (s) return 0;
8526: }
8527: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8528: int x[] = {25, 17};
8529: const int *foo = &x[0];
8530: ++foo;
8531: }
8532: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8533: typedef const int *iptr;
8534: iptr p = 0;
8535: ++p;
8536: }
8537: { /* AIX XL C 1.02.0.0 rejects this saying
8538: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8539: struct s { int j; const int *ap[3]; };
8540: struct s *b; b->j = 5;
8541: }
8542: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8543: const int foo = 10;
8544: if (!foo) return 0;
8545: }
8546: return !cs[0] && !zero.x;
8547: #endif
8548:
8549: ;
8550: return 0;
8551: }
8552: _ACEOF
8553: if ac_fn_c_try_compile "$LINENO"; then :
8554: ac_cv_c_const=yes
8555: else
8556: ac_cv_c_const=no
8557: fi
8558: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559: fi
8560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8561: $as_echo "$ac_cv_c_const" >&6; }
8562: if test $ac_cv_c_const = no; then
8563:
8564: $as_echo "#define const /**/" >>confdefs.h
8565:
8566: fi
8567:
8568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8569: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8570: if test "${ac_cv_type_uid_t+set}" = set; then :
8571: $as_echo_n "(cached) " >&6
8572: else
8573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574: /* end confdefs.h. */
8575: #include <sys/types.h>
8576:
8577: _ACEOF
8578: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8579: $EGREP "uid_t" >/dev/null 2>&1; then :
8580: ac_cv_type_uid_t=yes
8581: else
8582: ac_cv_type_uid_t=no
8583: fi
8584: rm -f conftest*
8585:
8586: fi
8587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8588: $as_echo "$ac_cv_type_uid_t" >&6; }
8589: if test $ac_cv_type_uid_t = no; then
8590:
8591: $as_echo "#define uid_t int" >>confdefs.h
8592:
8593:
8594: $as_echo "#define gid_t int" >>confdefs.h
8595:
8596: fi
8597:
8598: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8599: if test "x$ac_cv_type_pid_t" = x""yes; then :
8600:
8601: else
8602:
8603: cat >>confdefs.h <<_ACEOF
8604: #define pid_t int
8605: _ACEOF
8606:
8607: fi
8608:
8609: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8610: if test "x$ac_cv_type_size_t" = x""yes; then :
8611:
8612: else
8613:
8614: cat >>confdefs.h <<_ACEOF
8615: #define size_t unsigned int
8616: _ACEOF
8617:
8618: fi
8619:
8620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8621: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8622: if test "${ac_cv_header_time+set}" = set; then :
8623: $as_echo_n "(cached) " >&6
8624: else
8625: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626: /* end confdefs.h. */
8627: #include <sys/types.h>
8628: #include <sys/time.h>
8629: #include <time.h>
8630:
8631: int
8632: main ()
8633: {
8634: if ((struct tm *) 0)
8635: return 0;
8636: ;
8637: return 0;
8638: }
8639: _ACEOF
8640: if ac_fn_c_try_compile "$LINENO"; then :
8641: ac_cv_header_time=yes
8642: else
8643: ac_cv_header_time=no
8644: fi
8645: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646: fi
8647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8648: $as_echo "$ac_cv_header_time" >&6; }
8649: if test $ac_cv_header_time = yes; then
8650:
8651: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8652:
8653: fi
8654:
8655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8656: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8657: if test "${ac_cv_struct_tm+set}" = set; then :
8658: $as_echo_n "(cached) " >&6
8659: else
8660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661: /* end confdefs.h. */
8662: #include <sys/types.h>
8663: #include <time.h>
8664:
8665: int
8666: main ()
8667: {
8668: struct tm tm;
8669: int *p = &tm.tm_sec;
8670: return !p;
8671: ;
8672: return 0;
8673: }
8674: _ACEOF
8675: if ac_fn_c_try_compile "$LINENO"; then :
8676: ac_cv_struct_tm=time.h
8677: else
8678: ac_cv_struct_tm=sys/time.h
8679: fi
8680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681: fi
8682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8683: $as_echo "$ac_cv_struct_tm" >&6; }
8684: if test $ac_cv_struct_tm = sys/time.h; then
8685:
8686: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8687:
8688: fi
8689:
8690:
8691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8692: $as_echo_n "checking return type of signal handlers... " >&6; }
8693: if test "${ac_cv_type_signal+set}" = set; then :
8694: $as_echo_n "(cached) " >&6
8695: else
8696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697: /* end confdefs.h. */
8698: #include <sys/types.h>
8699: #include <signal.h>
8700:
8701: int
8702: main ()
8703: {
8704: return *(signal (0, 0)) (0) == 1;
8705: ;
8706: return 0;
8707: }
8708: _ACEOF
8709: if ac_fn_c_try_compile "$LINENO"; then :
8710: ac_cv_type_signal=int
8711: else
8712: ac_cv_type_signal=void
8713: fi
8714: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715: fi
8716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8717: $as_echo "$ac_cv_type_signal" >&6; }
8718:
8719: cat >>confdefs.h <<_ACEOF
8720: #define RETSIGTYPE $ac_cv_type_signal
8721: _ACEOF
8722:
8723:
8724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8725: $as_echo_n "checking for working strcoll... " >&6; }
8726: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8727: $as_echo_n "(cached) " >&6
8728: else
8729: if test "$cross_compiling" = yes; then :
8730: ac_cv_func_strcoll_works=no
8731: else
8732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733: /* end confdefs.h. */
8734: $ac_includes_default
8735: int
8736: main ()
8737: {
8738: return (strcoll ("abc", "def") >= 0 ||
8739: strcoll ("ABC", "DEF") >= 0 ||
8740: strcoll ("123", "456") >= 0)
8741: ;
8742: return 0;
8743: }
8744: _ACEOF
8745: if ac_fn_c_try_run "$LINENO"; then :
8746: ac_cv_func_strcoll_works=yes
8747: else
8748: ac_cv_func_strcoll_works=no
8749: fi
8750: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8751: conftest.$ac_objext conftest.beam conftest.$ac_ext
8752: fi
8753:
8754: fi
8755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8756: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8757: if test $ac_cv_func_strcoll_works = yes; then
8758:
8759: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8760:
8761: fi
8762:
8763: for ac_func in strftime
8764: do :
8765: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8766: if test "x$ac_cv_func_strftime" = x""yes; then :
8767: cat >>confdefs.h <<_ACEOF
8768: #define HAVE_STRFTIME 1
8769: _ACEOF
8770:
8771: else
8772: # strftime is in -lintl on SCO UNIX.
8773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8774: $as_echo_n "checking for strftime in -lintl... " >&6; }
8775: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8776: $as_echo_n "(cached) " >&6
8777: else
8778: ac_check_lib_save_LIBS=$LIBS
8779: LIBS="-lintl $LIBS"
8780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781: /* end confdefs.h. */
8782:
8783: /* Override any GCC internal prototype to avoid an error.
8784: Use char because int might match the return type of a GCC
8785: builtin and then its argument prototype would still apply. */
8786: #ifdef __cplusplus
8787: extern "C"
8788: #endif
8789: char strftime ();
8790: int
8791: main ()
8792: {
8793: return strftime ();
8794: ;
8795: return 0;
8796: }
8797: _ACEOF
8798: if ac_fn_c_try_link "$LINENO"; then :
8799: ac_cv_lib_intl_strftime=yes
8800: else
8801: ac_cv_lib_intl_strftime=no
8802: fi
8803: rm -f core conftest.err conftest.$ac_objext \
8804: conftest$ac_exeext conftest.$ac_ext
8805: LIBS=$ac_check_lib_save_LIBS
8806: fi
8807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8808: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8809: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8810: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8811:
8812: LIBS="-lintl $LIBS"
8813: fi
8814:
8815: fi
8816: done
8817:
8818: for ac_func in vprintf
8819: do :
8820: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8821: if test "x$ac_cv_func_vprintf" = x""yes; then :
8822: cat >>confdefs.h <<_ACEOF
8823: #define HAVE_VPRINTF 1
8824: _ACEOF
8825:
8826: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8827: if test "x$ac_cv_func__doprnt" = x""yes; then :
8828:
8829: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8830:
8831: fi
8832:
8833: fi
8834: done
8835:
8836:
8837: for ac_func in ftime getcwd putenv select strcspn strdup \
8838: strerror strspn strstr strtod
8839: do :
8840: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8841: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8842: eval as_val=\$$as_ac_var
8843: if test "x$as_val" = x""yes; then :
8844: cat >>confdefs.h <<_ACEOF
8845: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8846: _ACEOF
8847:
8848: fi
8849: done
8850:
8851:
8852: ac_configure_args="$ac_configure_args --with-readline=builtin --disable-shared --enable-static"
8853:
8854:
8855:
8856: subdirs="$subdirs tools/$NCURSES"
8857:
8858: subdirs="$subdirs tools/$READLINE"
8859:
8860: subdirs="$subdirs tools/$GSL"
8861:
8862: subdirs="$subdirs tools/$GPP"
8863:
8864: subdirs="$subdirs tools/$FILE"
8865:
8866: subdirs="$subdirs tools/$ICONV"
8867:
8868: subdirs="$subdirs tools/$SQLITE"
8869:
8870: subdirs="$subdirs tools/$UNITS"
8871:
8872:
8873:
8874: # Check whether --with-openssl_arch was given.
8875: if test "${with_openssl_arch+set}" = set; then :
8876: withval=$with_openssl_arch;
8877: else
8878: with_openssl_arch=none
8879: fi
8880:
8881:
8882: if test "x$with_openssl_arch" = xnone; then
8883: (cd tools/$OPENSSL && ./config)
8884: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
8885: (cd tools/$OPENSSL && ./Configure)
8886: as_fn_error "OS/COMP informations are required!" "$LINENO" 5
8887: elif test "x$with_openssl_arch" = xlist; then
8888: (cd tools/$OPENSSL && ./Configure)
8889: as_fn_error "Please specify OS and Architecture" "$LINENO" 5
8890: else
8891: (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
8892: fi
8893:
8894: if test "$MYGNUPLOT" = "yes"; then
8895: if test ! -d "$srcdir"/tools/$GNUPLOT; then
8896: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
8897: (cd "$srcdir/tools" && tar -xf -)
8898: fi
8899: subdirs="$subdirs tools/$GNUPLOT"
8900:
8901: GNUPLOT_COMPILATION=$GNUPLOT
8902: else
8903: GNUPLOT_COMPILATION=
8904: fi
8905:
8906:
8907:
8908: case $host_cpu in
8909:
8910: i?86)
8911: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
8912: -Wno-pointer-sign"
8913: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8914: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8915: break ;;
8916:
8917: x86_64*)
8918: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
8919: -Wno-pointer-sign"
8920: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8921: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8922: break ;;
8923:
8924: alpha*)
8925: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
8926: -Wno-pointer-sign"
8927: FFLAGS="$FFLAGS -mieee -Wall"
8928: FCFLAGS="$FCFLAGS -mieee -Wall"
8929: break ;;
8930:
8931: sparc*)
8932: CFLAGS="$CFLAGS -Wall -funsigned-char \
8933: -Wno-pointer-sign"
8934: FFLAGS="$FFLAGS -Wall"
8935: FCFLAGS="$FCFLAGS -Wall"
8936: break ;;
8937:
8938: esac
8939:
8940: case $host_os in
8941:
8942: cygwin*)
8943: OS=Cygwin
8944: break ;;
8945:
8946: interix*)
8947: OS=Interix
8948: break ;;
8949:
8950: *)
8951: OS=$(uname)
8952: break ;;
8953:
8954: esac
8955:
8956:
8957:
8958: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
8959: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
8960:
8961: case $OS in
8962:
8963: Darwin)
8964: EXPORT_DYNAMIC=-flat_namespace
8965: NESTED_FUNCTIONS=-fnested-functions
8966: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
8967: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
8968: break ;;
8969:
8970: Cygwin)
8971: EXPORT_DYNAMIC=--export-all-symbols
8972: NESTED_FUNCTIONS=
8973: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
8974: break ;;
8975:
8976: AIX)
8977: EXPORT_DYNAMIC=--export-dynamic
8978: NESTED_FUNCTIONS=
8979: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
8980: break ;;
8981:
8982: *)
8983: EXPORT_DYNAMIC=--export-dynamic
8984: NESTED_FUNCTIONS=
8985: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
8986: break ;;
8987:
8988: esac
8989:
8990:
8991:
8992:
8993:
8994:
8995:
8996:
8997:
8998:
8999:
9000:
9001:
9002:
9003:
9004:
9005:
9006:
9007:
9008:
9009:
9010:
9011:
9012:
9013:
9014: ac_config_files="$ac_config_files Makefile"
9015:
9016: ac_config_files="$ac_config_files COPYING"
9017:
9018: ac_config_files="$ac_config_files tools/Makefile"
9019:
9020: ac_config_files="$ac_config_files src/Makefile"
9021:
9022: ac_config_files="$ac_config_files man/Makefile"
9023:
9024: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9025:
9026: ac_config_files="$ac_config_files doc/Makefile"
9027:
9028: ac_config_files="$ac_config_files scripts/Makefile"
9029:
9030: ac_config_files="$ac_config_files scripts/mkrplso"
9031:
9032: ac_config_files="$ac_config_files scripts/rplcc"
9033:
9034: ac_config_files="$ac_config_files scripts/rpllink"
9035:
9036: ac_config_files="$ac_config_files rpltags/Makefile"
9037:
9038: ac_config_files="$ac_config_files rpliconv/Makefile"
9039:
9040: ac_config_files="$ac_config_files rplsums/Makefile"
9041:
9042: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9043:
9044: ac_config_files="$ac_config_files lapack/blas/Makefile"
9045:
9046: ac_config_files="$ac_config_files ptmalloc3/Makefile"
9047:
9048:
9049: ac_config_files="$ac_config_files man/rpl.1"
9050:
9051: ac_config_files="$ac_config_files man/rplcc.1"
9052:
9053: ac_config_files="$ac_config_files man/rpllink.1"
9054:
9055: ac_config_files="$ac_config_files man/rpltags.1"
9056:
9057: ac_config_files="$ac_config_files man/mkrplso.1"
9058:
9059: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9060:
9061: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9062:
9063: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9064:
9065: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9066:
9067: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9068:
9069:
9070: cat >confcache <<\_ACEOF
9071: # This file is a shell script that caches the results of configure
9072: # tests run on this system so they can be shared between configure
9073: # scripts and configure runs, see configure's option --config-cache.
9074: # It is not useful on other systems. If it contains results you don't
9075: # want to keep, you may remove or edit it.
9076: #
9077: # config.status only pays attention to the cache file if you give it
9078: # the --recheck option to rerun configure.
9079: #
9080: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9081: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9082: # following values.
9083:
9084: _ACEOF
9085:
9086: # The following way of writing the cache mishandles newlines in values,
9087: # but we know of no workaround that is simple, portable, and efficient.
9088: # So, we kill variables containing newlines.
9089: # Ultrix sh set writes to stderr and can't be redirected directly,
9090: # and sets the high bit in the cache file unless we assign to the vars.
9091: (
9092: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9093: eval ac_val=\$$ac_var
9094: case $ac_val in #(
9095: *${as_nl}*)
9096: case $ac_var in #(
9097: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9098: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9099: esac
9100: case $ac_var in #(
9101: _ | IFS | as_nl) ;; #(
9102: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9103: *) { eval $ac_var=; unset $ac_var;} ;;
9104: esac ;;
9105: esac
9106: done
9107:
9108: (set) 2>&1 |
9109: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9110: *${as_nl}ac_space=\ *)
9111: # `set' does not quote correctly, so add quotes: double-quote
9112: # substitution turns \\\\ into \\, and sed turns \\ into \.
9113: sed -n \
9114: "s/'/'\\\\''/g;
9115: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9116: ;; #(
9117: *)
9118: # `set' quotes correctly as required by POSIX, so do not add quotes.
9119: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9120: ;;
9121: esac |
9122: sort
9123: ) |
9124: sed '
9125: /^ac_cv_env_/b end
9126: t clear
9127: :clear
9128: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9129: t end
9130: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9131: :end' >>confcache
9132: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9133: if test -w "$cache_file"; then
9134: test "x$cache_file" != "x/dev/null" &&
9135: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9136: $as_echo "$as_me: updating cache $cache_file" >&6;}
9137: cat confcache >$cache_file
9138: else
9139: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9140: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9141: fi
9142: fi
9143: rm -f confcache
9144:
9145: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9146: # Let make expand exec_prefix.
9147: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9148:
9149: DEFS=-DHAVE_CONFIG_H
9150:
9151: ac_libobjs=
9152: ac_ltlibobjs=
9153: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9154: # 1. Remove the extension, and $U if already installed.
9155: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9156: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9157: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9158: # will be set to the directory where LIBOBJS objects are built.
9159: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9160: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9161: done
9162: LIBOBJS=$ac_libobjs
9163:
9164: LTLIBOBJS=$ac_ltlibobjs
9165:
9166:
9167: if test -n "$EXEEXT"; then
9168: am__EXEEXT_TRUE=
9169: am__EXEEXT_FALSE='#'
9170: else
9171: am__EXEEXT_TRUE='#'
9172: am__EXEEXT_FALSE=
9173: fi
9174:
9175: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9176: as_fn_error "conditional \"AMDEP\" was never defined.
9177: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9178: fi
9179: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9180: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9181: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9182: fi
9183: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9184: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9185: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9186: fi
9187:
9188: : ${CONFIG_STATUS=./config.status}
9189: ac_write_fail=0
9190: ac_clean_files_save=$ac_clean_files
9191: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9192: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9193: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9194: as_write_fail=0
9195: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9196: #! $SHELL
9197: # Generated by $as_me.
9198: # Run this file to recreate the current configuration.
9199: # Compiler output produced by configure, useful for debugging
9200: # configure, is in config.log if it exists.
9201:
9202: debug=false
9203: ac_cs_recheck=false
9204: ac_cs_silent=false
9205:
9206: SHELL=\${CONFIG_SHELL-$SHELL}
9207: export SHELL
9208: _ASEOF
9209: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9210: ## -------------------- ##
9211: ## M4sh Initialization. ##
9212: ## -------------------- ##
9213:
9214: # Be more Bourne compatible
9215: DUALCASE=1; export DUALCASE # for MKS sh
9216: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9217: emulate sh
9218: NULLCMD=:
9219: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9220: # is contrary to our usage. Disable this feature.
9221: alias -g '${1+"$@"}'='"$@"'
9222: setopt NO_GLOB_SUBST
9223: else
9224: case `(set -o) 2>/dev/null` in #(
9225: *posix*) :
9226: set -o posix ;; #(
9227: *) :
9228: ;;
9229: esac
9230: fi
9231:
9232:
9233: as_nl='
9234: '
9235: export as_nl
9236: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9237: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9238: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9239: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9240: # Prefer a ksh shell builtin over an external printf program on Solaris,
9241: # but without wasting forks for bash or zsh.
9242: if test -z "$BASH_VERSION$ZSH_VERSION" \
9243: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9244: as_echo='print -r --'
9245: as_echo_n='print -rn --'
9246: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9247: as_echo='printf %s\n'
9248: as_echo_n='printf %s'
9249: else
9250: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9251: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9252: as_echo_n='/usr/ucb/echo -n'
9253: else
9254: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9255: as_echo_n_body='eval
9256: arg=$1;
9257: case $arg in #(
9258: *"$as_nl"*)
9259: expr "X$arg" : "X\\(.*\\)$as_nl";
9260: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9261: esac;
9262: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9263: '
9264: export as_echo_n_body
9265: as_echo_n='sh -c $as_echo_n_body as_echo'
9266: fi
9267: export as_echo_body
9268: as_echo='sh -c $as_echo_body as_echo'
9269: fi
9270:
9271: # The user is always right.
9272: if test "${PATH_SEPARATOR+set}" != set; then
9273: PATH_SEPARATOR=:
9274: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9275: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9276: PATH_SEPARATOR=';'
9277: }
9278: fi
9279:
9280:
9281: # IFS
9282: # We need space, tab and new line, in precisely that order. Quoting is
9283: # there to prevent editors from complaining about space-tab.
9284: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9285: # splitting by setting IFS to empty value.)
9286: IFS=" "" $as_nl"
9287:
9288: # Find who we are. Look in the path if we contain no directory separator.
9289: case $0 in #((
9290: *[\\/]* ) as_myself=$0 ;;
9291: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292: for as_dir in $PATH
9293: do
9294: IFS=$as_save_IFS
9295: test -z "$as_dir" && as_dir=.
9296: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9297: done
9298: IFS=$as_save_IFS
9299:
9300: ;;
9301: esac
9302: # We did not find ourselves, most probably we were run as `sh COMMAND'
9303: # in which case we are not to be found in the path.
9304: if test "x$as_myself" = x; then
9305: as_myself=$0
9306: fi
9307: if test ! -f "$as_myself"; then
9308: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9309: exit 1
9310: fi
9311:
9312: # Unset variables that we do not need and which cause bugs (e.g. in
9313: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9314: # suppresses any "Segmentation fault" message there. '((' could
9315: # trigger a bug in pdksh 5.2.14.
9316: for as_var in BASH_ENV ENV MAIL MAILPATH
9317: do eval test x\${$as_var+set} = xset \
9318: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9319: done
9320: PS1='$ '
9321: PS2='> '
9322: PS4='+ '
9323:
9324: # NLS nuisances.
9325: LC_ALL=C
9326: export LC_ALL
9327: LANGUAGE=C
9328: export LANGUAGE
9329:
9330: # CDPATH.
9331: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9332:
9333:
9334: # as_fn_error ERROR [LINENO LOG_FD]
9335: # ---------------------------------
9336: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9337: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9338: # script with status $?, using 1 if that was 0.
9339: as_fn_error ()
9340: {
9341: as_status=$?; test $as_status -eq 0 && as_status=1
9342: if test "$3"; then
9343: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9344: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9345: fi
9346: $as_echo "$as_me: error: $1" >&2
9347: as_fn_exit $as_status
9348: } # as_fn_error
9349:
9350:
9351: # as_fn_set_status STATUS
9352: # -----------------------
9353: # Set $? to STATUS, without forking.
9354: as_fn_set_status ()
9355: {
9356: return $1
9357: } # as_fn_set_status
9358:
9359: # as_fn_exit STATUS
9360: # -----------------
9361: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9362: as_fn_exit ()
9363: {
9364: set +e
9365: as_fn_set_status $1
9366: exit $1
9367: } # as_fn_exit
9368:
9369: # as_fn_unset VAR
9370: # ---------------
9371: # Portably unset VAR.
9372: as_fn_unset ()
9373: {
9374: { eval $1=; unset $1;}
9375: }
9376: as_unset=as_fn_unset
9377: # as_fn_append VAR VALUE
9378: # ----------------------
9379: # Append the text in VALUE to the end of the definition contained in VAR. Take
9380: # advantage of any shell optimizations that allow amortized linear growth over
9381: # repeated appends, instead of the typical quadratic growth present in naive
9382: # implementations.
9383: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9384: eval 'as_fn_append ()
9385: {
9386: eval $1+=\$2
9387: }'
9388: else
9389: as_fn_append ()
9390: {
9391: eval $1=\$$1\$2
9392: }
9393: fi # as_fn_append
9394:
9395: # as_fn_arith ARG...
9396: # ------------------
9397: # Perform arithmetic evaluation on the ARGs, and store the result in the
9398: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9399: # must be portable across $(()) and expr.
9400: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9401: eval 'as_fn_arith ()
9402: {
9403: as_val=$(( $* ))
9404: }'
9405: else
9406: as_fn_arith ()
9407: {
9408: as_val=`expr "$@" || test $? -eq 1`
9409: }
9410: fi # as_fn_arith
9411:
9412:
9413: if expr a : '\(a\)' >/dev/null 2>&1 &&
9414: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9415: as_expr=expr
9416: else
9417: as_expr=false
9418: fi
9419:
9420: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9421: as_basename=basename
9422: else
9423: as_basename=false
9424: fi
9425:
9426: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9427: as_dirname=dirname
9428: else
9429: as_dirname=false
9430: fi
9431:
9432: as_me=`$as_basename -- "$0" ||
9433: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9434: X"$0" : 'X\(//\)$' \| \
9435: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9436: $as_echo X/"$0" |
9437: sed '/^.*\/\([^/][^/]*\)\/*$/{
9438: s//\1/
9439: q
9440: }
9441: /^X\/\(\/\/\)$/{
9442: s//\1/
9443: q
9444: }
9445: /^X\/\(\/\).*/{
9446: s//\1/
9447: q
9448: }
9449: s/.*/./; q'`
9450:
9451: # Avoid depending upon Character Ranges.
9452: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9453: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9454: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9455: as_cr_digits='0123456789'
9456: as_cr_alnum=$as_cr_Letters$as_cr_digits
9457:
9458: ECHO_C= ECHO_N= ECHO_T=
9459: case `echo -n x` in #(((((
9460: -n*)
9461: case `echo 'xy\c'` in
9462: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9463: xy) ECHO_C='\c';;
9464: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9465: ECHO_T=' ';;
9466: esac;;
9467: *)
9468: ECHO_N='-n';;
9469: esac
9470:
9471: rm -f conf$$ conf$$.exe conf$$.file
9472: if test -d conf$$.dir; then
9473: rm -f conf$$.dir/conf$$.file
9474: else
9475: rm -f conf$$.dir
9476: mkdir conf$$.dir 2>/dev/null
9477: fi
9478: if (echo >conf$$.file) 2>/dev/null; then
9479: if ln -s conf$$.file conf$$ 2>/dev/null; then
9480: as_ln_s='ln -s'
9481: # ... but there are two gotchas:
9482: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9483: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9484: # In both cases, we have to default to `cp -p'.
9485: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9486: as_ln_s='cp -p'
9487: elif ln conf$$.file conf$$ 2>/dev/null; then
9488: as_ln_s=ln
9489: else
9490: as_ln_s='cp -p'
9491: fi
9492: else
9493: as_ln_s='cp -p'
9494: fi
9495: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9496: rmdir conf$$.dir 2>/dev/null
9497:
9498:
9499: # as_fn_mkdir_p
9500: # -------------
9501: # Create "$as_dir" as a directory, including parents if necessary.
9502: as_fn_mkdir_p ()
9503: {
9504:
9505: case $as_dir in #(
9506: -*) as_dir=./$as_dir;;
9507: esac
9508: test -d "$as_dir" || eval $as_mkdir_p || {
9509: as_dirs=
9510: while :; do
9511: case $as_dir in #(
9512: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9513: *) as_qdir=$as_dir;;
9514: esac
9515: as_dirs="'$as_qdir' $as_dirs"
9516: as_dir=`$as_dirname -- "$as_dir" ||
9517: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9518: X"$as_dir" : 'X\(//\)[^/]' \| \
9519: X"$as_dir" : 'X\(//\)$' \| \
9520: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9521: $as_echo X"$as_dir" |
9522: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9523: s//\1/
9524: q
9525: }
9526: /^X\(\/\/\)[^/].*/{
9527: s//\1/
9528: q
9529: }
9530: /^X\(\/\/\)$/{
9531: s//\1/
9532: q
9533: }
9534: /^X\(\/\).*/{
9535: s//\1/
9536: q
9537: }
9538: s/.*/./; q'`
9539: test -d "$as_dir" && break
9540: done
9541: test -z "$as_dirs" || eval "mkdir $as_dirs"
9542: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9543:
9544:
9545: } # as_fn_mkdir_p
9546: if mkdir -p . 2>/dev/null; then
9547: as_mkdir_p='mkdir -p "$as_dir"'
9548: else
9549: test -d ./-p && rmdir ./-p
9550: as_mkdir_p=false
9551: fi
9552:
9553: if test -x / >/dev/null 2>&1; then
9554: as_test_x='test -x'
9555: else
9556: if ls -dL / >/dev/null 2>&1; then
9557: as_ls_L_option=L
9558: else
9559: as_ls_L_option=
9560: fi
9561: as_test_x='
9562: eval sh -c '\''
9563: if test -d "$1"; then
9564: test -d "$1/.";
9565: else
9566: case $1 in #(
9567: -*)set "./$1";;
9568: esac;
9569: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9570: ???[sx]*):;;*)false;;esac;fi
9571: '\'' sh
9572: '
9573: fi
9574: as_executable_p=$as_test_x
9575:
9576: # Sed expression to map a string onto a valid CPP name.
9577: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9578:
9579: # Sed expression to map a string onto a valid variable name.
9580: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9581:
9582:
9583: exec 6>&1
9584: ## ----------------------------------- ##
9585: ## Main body of $CONFIG_STATUS script. ##
9586: ## ----------------------------------- ##
9587: _ASEOF
9588: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9589:
9590: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9591: # Save the log message, to keep $0 and so on meaningful, and to
9592: # report actual input values of CONFIG_FILES etc. instead of their
9593: # values after options handling.
9594: ac_log="
9595: This file was extended by rpl $as_me 4.0.16, which was
9596: generated by GNU Autoconf 2.65. Invocation command line was
9597:
9598: CONFIG_FILES = $CONFIG_FILES
9599: CONFIG_HEADERS = $CONFIG_HEADERS
9600: CONFIG_LINKS = $CONFIG_LINKS
9601: CONFIG_COMMANDS = $CONFIG_COMMANDS
9602: $ $0 $@
9603:
9604: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9605: "
9606:
9607: _ACEOF
9608:
9609: case $ac_config_files in *"
9610: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9611: esac
9612:
9613: case $ac_config_headers in *"
9614: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9615: esac
9616:
9617:
9618: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9619: # Files that config.status was made for.
9620: config_files="$ac_config_files"
9621: config_headers="$ac_config_headers"
9622: config_commands="$ac_config_commands"
9623:
9624: _ACEOF
9625:
9626: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9627: ac_cs_usage="\
9628: \`$as_me' instantiates files and other configuration actions
9629: from templates according to the current configuration. Unless the files
9630: and actions are specified as TAGs, all are instantiated by default.
9631:
9632: Usage: $0 [OPTION]... [TAG]...
9633:
9634: -h, --help print this help, then exit
9635: -V, --version print version number and configuration settings, then exit
9636: --config print configuration, then exit
9637: -q, --quiet, --silent
9638: do not print progress messages
9639: -d, --debug don't remove temporary files
9640: --recheck update $as_me by reconfiguring in the same conditions
9641: --file=FILE[:TEMPLATE]
9642: instantiate the configuration file FILE
9643: --header=FILE[:TEMPLATE]
9644: instantiate the configuration header FILE
9645:
9646: Configuration files:
9647: $config_files
9648:
9649: Configuration headers:
9650: $config_headers
9651:
9652: Configuration commands:
9653: $config_commands
9654:
9655: Report bugs to the package provider."
9656:
9657: _ACEOF
9658: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9659: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9660: ac_cs_version="\\
9661: rpl config.status 4.0.16
9662: configured by $0, generated by GNU Autoconf 2.65,
9663: with options \\"\$ac_cs_config\\"
9664:
9665: Copyright (C) 2009 Free Software Foundation, Inc.
9666: This config.status script is free software; the Free Software Foundation
9667: gives unlimited permission to copy, distribute and modify it."
9668:
9669: ac_pwd='$ac_pwd'
9670: srcdir='$srcdir'
9671: INSTALL='$INSTALL'
9672: MKDIR_P='$MKDIR_P'
9673: AWK='$AWK'
9674: test -n "\$AWK" || AWK=awk
9675: _ACEOF
9676:
9677: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9678: # The default lists apply if the user does not specify any file.
9679: ac_need_defaults=:
9680: while test $# != 0
9681: do
9682: case $1 in
9683: --*=*)
9684: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9685: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9686: ac_shift=:
9687: ;;
9688: *)
9689: ac_option=$1
9690: ac_optarg=$2
9691: ac_shift=shift
9692: ;;
9693: esac
9694:
9695: case $ac_option in
9696: # Handling of the options.
9697: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9698: ac_cs_recheck=: ;;
9699: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9700: $as_echo "$ac_cs_version"; exit ;;
9701: --config | --confi | --conf | --con | --co | --c )
9702: $as_echo "$ac_cs_config"; exit ;;
9703: --debug | --debu | --deb | --de | --d | -d )
9704: debug=: ;;
9705: --file | --fil | --fi | --f )
9706: $ac_shift
9707: case $ac_optarg in
9708: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9709: esac
9710: as_fn_append CONFIG_FILES " '$ac_optarg'"
9711: ac_need_defaults=false;;
9712: --header | --heade | --head | --hea )
9713: $ac_shift
9714: case $ac_optarg in
9715: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9716: esac
9717: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9718: ac_need_defaults=false;;
9719: --he | --h)
9720: # Conflict between --help and --header
9721: as_fn_error "ambiguous option: \`$1'
9722: Try \`$0 --help' for more information.";;
9723: --help | --hel | -h )
9724: $as_echo "$ac_cs_usage"; exit ;;
9725: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9726: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9727: ac_cs_silent=: ;;
9728:
9729: # This is an error.
9730: -*) as_fn_error "unrecognized option: \`$1'
9731: Try \`$0 --help' for more information." ;;
9732:
9733: *) as_fn_append ac_config_targets " $1"
9734: ac_need_defaults=false ;;
9735:
9736: esac
9737: shift
9738: done
9739:
9740: ac_configure_extra_args=
9741:
9742: if $ac_cs_silent; then
9743: exec 6>/dev/null
9744: ac_configure_extra_args="$ac_configure_extra_args --silent"
9745: fi
9746:
9747: _ACEOF
9748: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9749: if \$ac_cs_recheck; then
9750: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9751: shift
9752: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9753: CONFIG_SHELL='$SHELL'
9754: export CONFIG_SHELL
9755: exec "\$@"
9756: fi
9757:
9758: _ACEOF
9759: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9760: exec 5>>config.log
9761: {
9762: echo
9763: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9764: ## Running $as_me. ##
9765: _ASBOX
9766: $as_echo "$ac_log"
9767: } >&5
9768:
9769: _ACEOF
9770: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9771: #
9772: # INIT-COMMANDS
9773: #
9774: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9775:
9776: _ACEOF
9777:
9778: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9779:
9780: # Handling of arguments.
9781: for ac_config_target in $ac_config_targets
9782: do
9783: case $ac_config_target in
9784: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9785: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9786: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9787: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9788: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9789: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9790: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9791: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9792: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9793: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9794: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9795: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9796: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9797: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9798: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9799: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
9800: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9801: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9802: "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
9803: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9804: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9805: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9806: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9807: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9808: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9809: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9810: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9811: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9812: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9813:
9814: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9815: esac
9816: done
9817:
9818:
9819: # If the user did not use the arguments to specify the items to instantiate,
9820: # then the envvar interface is used. Set only those that are not.
9821: # We use the long form for the default assignment because of an extremely
9822: # bizarre bug on SunOS 4.1.3.
9823: if $ac_need_defaults; then
9824: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9825: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9826: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9827: fi
9828:
9829: # Have a temporary directory for convenience. Make it in the build tree
9830: # simply because there is no reason against having it here, and in addition,
9831: # creating and moving files from /tmp can sometimes cause problems.
9832: # Hook for its removal unless debugging.
9833: # Note that there is a small window in which the directory will not be cleaned:
9834: # after its creation but before its name has been assigned to `$tmp'.
9835: $debug ||
9836: {
9837: tmp=
9838: trap 'exit_status=$?
9839: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9840: ' 0
9841: trap 'as_fn_exit 1' 1 2 13 15
9842: }
9843: # Create a (secure) tmp directory for tmp files.
9844:
9845: {
9846: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9847: test -n "$tmp" && test -d "$tmp"
9848: } ||
9849: {
9850: tmp=./conf$$-$RANDOM
9851: (umask 077 && mkdir "$tmp")
9852: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9853:
9854: # Set up the scripts for CONFIG_FILES section.
9855: # No need to generate them if there are no CONFIG_FILES.
9856: # This happens for instance with `./config.status config.h'.
9857: if test -n "$CONFIG_FILES"; then
9858:
9859:
9860: ac_cr=`echo X | tr X '\015'`
9861: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9862: # But we know of no other shell where ac_cr would be empty at this
9863: # point, so we can use a bashism as a fallback.
9864: if test "x$ac_cr" = x; then
9865: eval ac_cr=\$\'\\r\'
9866: fi
9867: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9868: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9869: ac_cs_awk_cr='\r'
9870: else
9871: ac_cs_awk_cr=$ac_cr
9872: fi
9873:
9874: echo 'BEGIN {' >"$tmp/subs1.awk" &&
9875: _ACEOF
9876:
9877:
9878: {
9879: echo "cat >conf$$subs.awk <<_ACEOF" &&
9880: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9881: echo "_ACEOF"
9882: } >conf$$subs.sh ||
9883: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9884: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9885: ac_delim='%!_!# '
9886: for ac_last_try in false false false false false :; do
9887: . ./conf$$subs.sh ||
9888: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9889:
9890: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9891: if test $ac_delim_n = $ac_delim_num; then
9892: break
9893: elif $ac_last_try; then
9894: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9895: else
9896: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9897: fi
9898: done
9899: rm -f conf$$subs.sh
9900:
9901: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9902: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9903: _ACEOF
9904: sed -n '
9905: h
9906: s/^/S["/; s/!.*/"]=/
9907: p
9908: g
9909: s/^[^!]*!//
9910: :repl
9911: t repl
9912: s/'"$ac_delim"'$//
9913: t delim
9914: :nl
9915: h
9916: s/\(.\{148\}\)..*/\1/
9917: t more1
9918: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9919: p
9920: n
9921: b repl
9922: :more1
9923: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9924: p
9925: g
9926: s/.\{148\}//
9927: t nl
9928: :delim
9929: h
9930: s/\(.\{148\}\)..*/\1/
9931: t more2
9932: s/["\\]/\\&/g; s/^/"/; s/$/"/
9933: p
9934: b
9935: :more2
9936: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9937: p
9938: g
9939: s/.\{148\}//
9940: t delim
9941: ' <conf$$subs.awk | sed '
9942: /^[^""]/{
9943: N
9944: s/\n//
9945: }
9946: ' >>$CONFIG_STATUS || ac_write_fail=1
9947: rm -f conf$$subs.awk
9948: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9949: _ACAWK
9950: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9951: for (key in S) S_is_set[key] = 1
9952: FS = ""
9953:
9954: }
9955: {
9956: line = $ 0
9957: nfields = split(line, field, "@")
9958: substed = 0
9959: len = length(field[1])
9960: for (i = 2; i < nfields; i++) {
9961: key = field[i]
9962: keylen = length(key)
9963: if (S_is_set[key]) {
9964: value = S[key]
9965: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9966: len += length(value) + length(field[++i])
9967: substed = 1
9968: } else
9969: len += 1 + keylen
9970: }
9971:
9972: print line
9973: }
9974:
9975: _ACAWK
9976: _ACEOF
9977: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9978: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9979: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9980: else
9981: cat
9982: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9983: || as_fn_error "could not setup config files machinery" "$LINENO" 5
9984: _ACEOF
9985:
9986: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9987: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9988: # trailing colons and then remove the whole line if VPATH becomes empty
9989: # (actually we leave an empty line to preserve line numbers).
9990: if test "x$srcdir" = x.; then
9991: ac_vpsub='/^[ ]*VPATH[ ]*=/{
9992: s/:*\$(srcdir):*/:/
9993: s/:*\${srcdir}:*/:/
9994: s/:*@srcdir@:*/:/
9995: s/^\([^=]*=[ ]*\):*/\1/
9996: s/:*$//
9997: s/^[^=]*=[ ]*$//
9998: }'
9999: fi
10000:
10001: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10002: fi # test -n "$CONFIG_FILES"
10003:
10004: # Set up the scripts for CONFIG_HEADERS section.
10005: # No need to generate them if there are no CONFIG_HEADERS.
10006: # This happens for instance with `./config.status Makefile'.
10007: if test -n "$CONFIG_HEADERS"; then
10008: cat >"$tmp/defines.awk" <<\_ACAWK ||
10009: BEGIN {
10010: _ACEOF
10011:
10012: # Transform confdefs.h into an awk script `defines.awk', embedded as
10013: # here-document in config.status, that substitutes the proper values into
10014: # config.h.in to produce config.h.
10015:
10016: # Create a delimiter string that does not exist in confdefs.h, to ease
10017: # handling of long lines.
10018: ac_delim='%!_!# '
10019: for ac_last_try in false false :; do
10020: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10021: if test -z "$ac_t"; then
10022: break
10023: elif $ac_last_try; then
10024: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10025: else
10026: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10027: fi
10028: done
10029:
10030: # For the awk script, D is an array of macro values keyed by name,
10031: # likewise P contains macro parameters if any. Preserve backslash
10032: # newline sequences.
10033:
10034: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10035: sed -n '
10036: s/.\{148\}/&'"$ac_delim"'/g
10037: t rset
10038: :rset
10039: s/^[ ]*#[ ]*define[ ][ ]*/ /
10040: t def
10041: d
10042: :def
10043: s/\\$//
10044: t bsnl
10045: s/["\\]/\\&/g
10046: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10047: D["\1"]=" \3"/p
10048: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10049: d
10050: :bsnl
10051: s/["\\]/\\&/g
10052: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10053: D["\1"]=" \3\\\\\\n"\\/p
10054: t cont
10055: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10056: t cont
10057: d
10058: :cont
10059: n
10060: s/.\{148\}/&'"$ac_delim"'/g
10061: t clear
10062: :clear
10063: s/\\$//
10064: t bsnlc
10065: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10066: d
10067: :bsnlc
10068: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10069: b cont
10070: ' <confdefs.h | sed '
10071: s/'"$ac_delim"'/"\\\
10072: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10073:
10074: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10075: for (key in D) D_is_set[key] = 1
10076: FS = ""
10077: }
10078: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10079: line = \$ 0
10080: split(line, arg, " ")
10081: if (arg[1] == "#") {
10082: defundef = arg[2]
10083: mac1 = arg[3]
10084: } else {
10085: defundef = substr(arg[1], 2)
10086: mac1 = arg[2]
10087: }
10088: split(mac1, mac2, "(") #)
10089: macro = mac2[1]
10090: prefix = substr(line, 1, index(line, defundef) - 1)
10091: if (D_is_set[macro]) {
10092: # Preserve the white space surrounding the "#".
10093: print prefix "define", macro P[macro] D[macro]
10094: next
10095: } else {
10096: # Replace #undef with comments. This is necessary, for example,
10097: # in the case of _POSIX_SOURCE, which is predefined and required
10098: # on some systems where configure will not decide to define it.
10099: if (defundef == "undef") {
10100: print "/*", prefix defundef, macro, "*/"
10101: next
10102: }
10103: }
10104: }
10105: { print }
10106: _ACAWK
10107: _ACEOF
10108: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10109: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10110: fi # test -n "$CONFIG_HEADERS"
10111:
10112:
10113: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10114: shift
10115: for ac_tag
10116: do
10117: case $ac_tag in
10118: :[FHLC]) ac_mode=$ac_tag; continue;;
10119: esac
10120: case $ac_mode$ac_tag in
10121: :[FHL]*:*);;
10122: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10123: :[FH]-) ac_tag=-:-;;
10124: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10125: esac
10126: ac_save_IFS=$IFS
10127: IFS=:
10128: set x $ac_tag
10129: IFS=$ac_save_IFS
10130: shift
10131: ac_file=$1
10132: shift
10133:
10134: case $ac_mode in
10135: :L) ac_source=$1;;
10136: :[FH])
10137: ac_file_inputs=
10138: for ac_f
10139: do
10140: case $ac_f in
10141: -) ac_f="$tmp/stdin";;
10142: *) # Look for the file first in the build tree, then in the source tree
10143: # (if the path is not absolute). The absolute path cannot be DOS-style,
10144: # because $ac_f cannot contain `:'.
10145: test -f "$ac_f" ||
10146: case $ac_f in
10147: [\\/$]*) false;;
10148: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10149: esac ||
10150: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10151: esac
10152: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10153: as_fn_append ac_file_inputs " '$ac_f'"
10154: done
10155:
10156: # Let's still pretend it is `configure' which instantiates (i.e., don't
10157: # use $as_me), people would be surprised to read:
10158: # /* config.h. Generated by config.status. */
10159: configure_input='Generated from '`
10160: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10161: `' by configure.'
10162: if test x"$ac_file" != x-; then
10163: configure_input="$ac_file. $configure_input"
10164: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10165: $as_echo "$as_me: creating $ac_file" >&6;}
10166: fi
10167: # Neutralize special characters interpreted by sed in replacement strings.
10168: case $configure_input in #(
10169: *\&* | *\|* | *\\* )
10170: ac_sed_conf_input=`$as_echo "$configure_input" |
10171: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10172: *) ac_sed_conf_input=$configure_input;;
10173: esac
10174:
10175: case $ac_tag in
10176: *:-:* | *:-) cat >"$tmp/stdin" \
10177: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10178: esac
10179: ;;
10180: esac
10181:
10182: ac_dir=`$as_dirname -- "$ac_file" ||
10183: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10184: X"$ac_file" : 'X\(//\)[^/]' \| \
10185: X"$ac_file" : 'X\(//\)$' \| \
10186: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10187: $as_echo X"$ac_file" |
10188: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10189: s//\1/
10190: q
10191: }
10192: /^X\(\/\/\)[^/].*/{
10193: s//\1/
10194: q
10195: }
10196: /^X\(\/\/\)$/{
10197: s//\1/
10198: q
10199: }
10200: /^X\(\/\).*/{
10201: s//\1/
10202: q
10203: }
10204: s/.*/./; q'`
10205: as_dir="$ac_dir"; as_fn_mkdir_p
10206: ac_builddir=.
10207:
10208: case "$ac_dir" in
10209: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10210: *)
10211: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10212: # A ".." for each directory in $ac_dir_suffix.
10213: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10214: case $ac_top_builddir_sub in
10215: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10216: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10217: esac ;;
10218: esac
10219: ac_abs_top_builddir=$ac_pwd
10220: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10221: # for backward compatibility:
10222: ac_top_builddir=$ac_top_build_prefix
10223:
10224: case $srcdir in
10225: .) # We are building in place.
10226: ac_srcdir=.
10227: ac_top_srcdir=$ac_top_builddir_sub
10228: ac_abs_top_srcdir=$ac_pwd ;;
10229: [\\/]* | ?:[\\/]* ) # Absolute name.
10230: ac_srcdir=$srcdir$ac_dir_suffix;
10231: ac_top_srcdir=$srcdir
10232: ac_abs_top_srcdir=$srcdir ;;
10233: *) # Relative name.
10234: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10235: ac_top_srcdir=$ac_top_build_prefix$srcdir
10236: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10237: esac
10238: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10239:
10240:
10241: case $ac_mode in
10242: :F)
10243: #
10244: # CONFIG_FILE
10245: #
10246:
10247: case $INSTALL in
10248: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10249: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10250: esac
10251: ac_MKDIR_P=$MKDIR_P
10252: case $MKDIR_P in
10253: [\\/$]* | ?:[\\/]* ) ;;
10254: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10255: esac
10256: _ACEOF
10257:
10258: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10259: # If the template does not know about datarootdir, expand it.
10260: # FIXME: This hack should be removed a few years after 2.60.
10261: ac_datarootdir_hack=; ac_datarootdir_seen=
10262: ac_sed_dataroot='
10263: /datarootdir/ {
10264: p
10265: q
10266: }
10267: /@datadir@/p
10268: /@docdir@/p
10269: /@infodir@/p
10270: /@localedir@/p
10271: /@mandir@/p'
10272: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10273: *datarootdir*) ac_datarootdir_seen=yes;;
10274: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10276: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10277: _ACEOF
10278: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10279: ac_datarootdir_hack='
10280: s&@datadir@&$datadir&g
10281: s&@docdir@&$docdir&g
10282: s&@infodir@&$infodir&g
10283: s&@localedir@&$localedir&g
10284: s&@mandir@&$mandir&g
10285: s&\\\${datarootdir}&$datarootdir&g' ;;
10286: esac
10287: _ACEOF
10288:
10289: # Neutralize VPATH when `$srcdir' = `.'.
10290: # Shell code in configure.ac might set extrasub.
10291: # FIXME: do we really want to maintain this feature?
10292: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10293: ac_sed_extra="$ac_vpsub
10294: $extrasub
10295: _ACEOF
10296: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10297: :t
10298: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10299: s|@configure_input@|$ac_sed_conf_input|;t t
10300: s&@top_builddir@&$ac_top_builddir_sub&;t t
10301: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10302: s&@srcdir@&$ac_srcdir&;t t
10303: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10304: s&@top_srcdir@&$ac_top_srcdir&;t t
10305: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10306: s&@builddir@&$ac_builddir&;t t
10307: s&@abs_builddir@&$ac_abs_builddir&;t t
10308: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10309: s&@INSTALL@&$ac_INSTALL&;t t
10310: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10311: $ac_datarootdir_hack
10312: "
10313: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10314: || as_fn_error "could not create $ac_file" "$LINENO" 5
10315:
10316: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10317: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10318: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10319: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10320: which seems to be undefined. Please make sure it is defined." >&5
10321: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10322: which seems to be undefined. Please make sure it is defined." >&2;}
10323:
10324: rm -f "$tmp/stdin"
10325: case $ac_file in
10326: -) cat "$tmp/out" && rm -f "$tmp/out";;
10327: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10328: esac \
10329: || as_fn_error "could not create $ac_file" "$LINENO" 5
10330: ;;
10331: :H)
10332: #
10333: # CONFIG_HEADER
10334: #
10335: if test x"$ac_file" != x-; then
10336: {
10337: $as_echo "/* $configure_input */" \
10338: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10339: } >"$tmp/config.h" \
10340: || as_fn_error "could not create $ac_file" "$LINENO" 5
10341: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10342: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10343: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10344: else
10345: rm -f "$ac_file"
10346: mv "$tmp/config.h" "$ac_file" \
10347: || as_fn_error "could not create $ac_file" "$LINENO" 5
10348: fi
10349: else
10350: $as_echo "/* $configure_input */" \
10351: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10352: || as_fn_error "could not create -" "$LINENO" 5
10353: fi
10354: # Compute "$ac_file"'s index in $config_headers.
10355: _am_arg="$ac_file"
10356: _am_stamp_count=1
10357: for _am_header in $config_headers :; do
10358: case $_am_header in
10359: $_am_arg | $_am_arg:* )
10360: break ;;
10361: * )
10362: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10363: esac
10364: done
10365: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10366: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10367: X"$_am_arg" : 'X\(//\)[^/]' \| \
10368: X"$_am_arg" : 'X\(//\)$' \| \
10369: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10370: $as_echo X"$_am_arg" |
10371: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10372: s//\1/
10373: q
10374: }
10375: /^X\(\/\/\)[^/].*/{
10376: s//\1/
10377: q
10378: }
10379: /^X\(\/\/\)$/{
10380: s//\1/
10381: q
10382: }
10383: /^X\(\/\).*/{
10384: s//\1/
10385: q
10386: }
10387: s/.*/./; q'`/stamp-h$_am_stamp_count
10388: ;;
10389:
10390: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10391: $as_echo "$as_me: executing $ac_file commands" >&6;}
10392: ;;
10393: esac
10394:
10395:
10396: case $ac_file$ac_mode in
10397: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10398: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10399: # are listed without --file. Let's play safe and only enable the eval
10400: # if we detect the quoting.
10401: case $CONFIG_FILES in
10402: *\'*) eval set x "$CONFIG_FILES" ;;
10403: *) set x $CONFIG_FILES ;;
10404: esac
10405: shift
10406: for mf
10407: do
10408: # Strip MF so we end up with the name of the file.
10409: mf=`echo "$mf" | sed -e 's/:.*$//'`
10410: # Check whether this is an Automake generated Makefile or not.
10411: # We used to match only the files named `Makefile.in', but
10412: # some people rename them; so instead we look at the file content.
10413: # Grep'ing the first line is not enough: some people post-process
10414: # each Makefile.in and add a new line on top of each file to say so.
10415: # Grep'ing the whole file is not good either: AIX grep has a line
10416: # limit of 2048, but all sed's we know have understand at least 4000.
10417: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10418: dirpart=`$as_dirname -- "$mf" ||
10419: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10420: X"$mf" : 'X\(//\)[^/]' \| \
10421: X"$mf" : 'X\(//\)$' \| \
10422: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10423: $as_echo X"$mf" |
10424: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10425: s//\1/
10426: q
10427: }
10428: /^X\(\/\/\)[^/].*/{
10429: s//\1/
10430: q
10431: }
10432: /^X\(\/\/\)$/{
10433: s//\1/
10434: q
10435: }
10436: /^X\(\/\).*/{
10437: s//\1/
10438: q
10439: }
10440: s/.*/./; q'`
10441: else
10442: continue
10443: fi
10444: # Extract the definition of DEPDIR, am__include, and am__quote
10445: # from the Makefile without running `make'.
10446: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10447: test -z "$DEPDIR" && continue
10448: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10449: test -z "am__include" && continue
10450: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10451: # When using ansi2knr, U may be empty or an underscore; expand it
10452: U=`sed -n 's/^U = //p' < "$mf"`
10453: # Find all dependency output files, they are included files with
10454: # $(DEPDIR) in their names. We invoke sed twice because it is the
10455: # simplest approach to changing $(DEPDIR) to its actual value in the
10456: # expansion.
10457: for file in `sed -n "
10458: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10459: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10460: # Make sure the directory exists.
10461: test -f "$dirpart/$file" && continue
10462: fdir=`$as_dirname -- "$file" ||
10463: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10464: X"$file" : 'X\(//\)[^/]' \| \
10465: X"$file" : 'X\(//\)$' \| \
10466: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10467: $as_echo X"$file" |
10468: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10469: s//\1/
10470: q
10471: }
10472: /^X\(\/\/\)[^/].*/{
10473: s//\1/
10474: q
10475: }
10476: /^X\(\/\/\)$/{
10477: s//\1/
10478: q
10479: }
10480: /^X\(\/\).*/{
10481: s//\1/
10482: q
10483: }
10484: s/.*/./; q'`
10485: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10486: # echo "creating $dirpart/$file"
10487: echo '# dummy' > "$dirpart/$file"
10488: done
10489: done
10490: }
10491: ;;
10492:
10493: esac
10494: done # for ac_tag
10495:
10496:
10497: as_fn_exit 0
10498: _ACEOF
10499: ac_clean_files=$ac_clean_files_save
10500:
10501: test $ac_write_fail = 0 ||
10502: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10503:
10504:
10505: # configure is writing to config.log, and then calls config.status.
10506: # config.status does its own redirection, appending to config.log.
10507: # Unfortunately, on DOS this fails, as config.log is still kept open
10508: # by configure, so config.status won't be able to write to it; its
10509: # output is simply discarded. So we exec the FD to /dev/null,
10510: # effectively closing config.log, so it can be properly (re)opened and
10511: # appended to by config.status. When coming back to configure, we
10512: # need to make the FD available again.
10513: if test "$no_create" != yes; then
10514: ac_cs_success=:
10515: ac_config_status_args=
10516: test "$silent" = yes &&
10517: ac_config_status_args="$ac_config_status_args --quiet"
10518: exec 5>/dev/null
10519: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10520: exec 5>>config.log
10521: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10522: # would make configure fail if this is the last instruction.
10523: $ac_cs_success || as_fn_exit $?
10524: fi
10525:
10526: #
10527: # CONFIG_SUBDIRS section.
10528: #
10529: if test "$no_recursion" != yes; then
10530:
10531: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10532: # so they do not pile up.
10533: ac_sub_configure_args=
10534: ac_prev=
10535: eval "set x $ac_configure_args"
10536: shift
10537: for ac_arg
10538: do
10539: if test -n "$ac_prev"; then
10540: ac_prev=
10541: continue
10542: fi
10543: case $ac_arg in
10544: -cache-file | --cache-file | --cache-fil | --cache-fi \
10545: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10546: ac_prev=cache_file ;;
10547: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10548: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10549: | --c=*)
10550: ;;
10551: --config-cache | -C)
10552: ;;
10553: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10554: ac_prev=srcdir ;;
10555: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10556: ;;
10557: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10558: ac_prev=prefix ;;
10559: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10560: ;;
10561: --disable-option-checking)
10562: ;;
10563: *)
10564: case $ac_arg in
10565: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10566: esac
10567: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10568: esac
10569: done
10570:
10571: # Always prepend --prefix to ensure using the same prefix
10572: # in subdir configurations.
10573: ac_arg="--prefix=$prefix"
10574: case $ac_arg in
10575: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10576: esac
10577: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10578:
10579: # Pass --silent
10580: if test "$silent" = yes; then
10581: ac_sub_configure_args="--silent $ac_sub_configure_args"
10582: fi
10583:
10584: # Always prepend --disable-option-checking to silence warnings, since
10585: # different subdirs can have different --enable and --with options.
10586: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10587:
10588: ac_popdir=`pwd`
10589: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10590:
10591: # Do not complain, so a configure script can configure whichever
10592: # parts of a large source tree are present.
10593: test -d "$srcdir/$ac_dir" || continue
10594:
10595: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10596: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10597: $as_echo "$ac_msg" >&6
10598: as_dir="$ac_dir"; as_fn_mkdir_p
10599: ac_builddir=.
10600:
10601: case "$ac_dir" in
10602: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10603: *)
10604: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10605: # A ".." for each directory in $ac_dir_suffix.
10606: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10607: case $ac_top_builddir_sub in
10608: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10609: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10610: esac ;;
10611: esac
10612: ac_abs_top_builddir=$ac_pwd
10613: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10614: # for backward compatibility:
10615: ac_top_builddir=$ac_top_build_prefix
10616:
10617: case $srcdir in
10618: .) # We are building in place.
10619: ac_srcdir=.
10620: ac_top_srcdir=$ac_top_builddir_sub
10621: ac_abs_top_srcdir=$ac_pwd ;;
10622: [\\/]* | ?:[\\/]* ) # Absolute name.
10623: ac_srcdir=$srcdir$ac_dir_suffix;
10624: ac_top_srcdir=$srcdir
10625: ac_abs_top_srcdir=$srcdir ;;
10626: *) # Relative name.
10627: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10628: ac_top_srcdir=$ac_top_build_prefix$srcdir
10629: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10630: esac
10631: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10632:
10633:
10634: cd "$ac_dir"
10635:
10636: # Check for guested configure; otherwise get Cygnus style configure.
10637: if test -f "$ac_srcdir/configure.gnu"; then
10638: ac_sub_configure=$ac_srcdir/configure.gnu
10639: elif test -f "$ac_srcdir/configure"; then
10640: ac_sub_configure=$ac_srcdir/configure
10641: elif test -f "$ac_srcdir/configure.in"; then
10642: # This should be Cygnus configure.
10643: ac_sub_configure=$ac_aux_dir/configure
10644: else
10645: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10646: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10647: ac_sub_configure=
10648: fi
10649:
10650: # The recursion is here.
10651: if test -n "$ac_sub_configure"; then
10652: # Make the cache file name correct relative to the subdirectory.
10653: case $cache_file in
10654: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10655: *) # Relative name.
10656: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10657: esac
10658:
10659: { $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
10660: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10661: # The eval makes quoting arguments work.
10662: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10663: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10664: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10665: fi
10666:
10667: cd "$ac_popdir"
10668: done
10669: fi
10670: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10671: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10672: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10673: fi
10674:
CVSweb interface <joel.bertrand@systella.fr>