1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.65 for rpl 4.0.9.
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.9'
553: PACKAGE_STRING='rpl 4.0.9'
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: DATE_FR
600: FINAL_ENCODING
601: ICONV
602: FILE
603: GNUPLOT
604: GPP
605: GSL
606: UNITS
607: READLINE
608: NCURSES
609: LIBMTMALLOC
610: GNUPLOT_COMPILATION
611: subdirs
612: EGREP
613: GREP
614: libPgSQLlib
615: libPgSQLinc
616: POSTGRESQL_SUPPORT
617: libMySQLlib
618: libMySQLinc
619: MYSQL_SUPPORT
620: DATE
621: includeX
622: libX
623: MOTIF_SUPPORT
624: DEBUG
625: EXPERIMENTAL_CODE
626: VIM_SUPPORT
627: POSTSCRIPT_SUPPORT
628: FORCE_GNUPLOT_PATH
629: GNUPLOT_SUPPORT
630: VIM
631: GNUPLOT_P
632: GV
633: GS
634: DVIPS
635: LATEX
636: TEX
637: SED
638: RANLIB
639: LN_S
640: RUNPATH
641: LIBTOOLIZE
642: PROFILAGE
643: DEBUG_CODE
644: X_EXTRA_LIBS
645: X_LIBS
646: X_PRE_LIBS
647: X_CFLAGS
648: CPP
649: XMKMF
650: ac_ct_FC
651: FCFLAGS
652: FC
653: ac_ct_F77
654: FFLAGS
655: F77
656: am__fastdepCXX_FALSE
657: am__fastdepCXX_TRUE
658: CXXDEPMODE
659: ac_ct_CXX
660: CXXFLAGS
661: CXX
662: am__fastdepCC_FALSE
663: am__fastdepCC_TRUE
664: CCDEPMODE
665: AMDEPBACKSLASH
666: AMDEP_FALSE
667: AMDEP_TRUE
668: am__quote
669: am__include
670: DEPDIR
671: OBJEXT
672: EXEEXT
673: ac_ct_CC
674: CPPFLAGS
675: LDFLAGS
676: CFLAGS
677: CC
678: am__untar
679: am__tar
680: AMTAR
681: am__leading_dot
682: SET_MAKE
683: AWK
684: mkdir_p
685: MKDIR_P
686: INSTALL_STRIP_PROGRAM
687: STRIP
688: install_sh
689: MAKEINFO
690: AUTOHEADER
691: AUTOMAKE
692: AUTOCONF
693: ACLOCAL
694: VERSION
695: PACKAGE
696: CYGPATH_W
697: am__isrc
698: INSTALL_DATA
699: INSTALL_SCRIPT
700: INSTALL_PROGRAM
701: target_os
702: target_vendor
703: target_cpu
704: target
705: host_os
706: host_vendor
707: host_cpu
708: host
709: build_os
710: build_vendor
711: build_cpu
712: build
713: target_alias
714: host_alias
715: build_alias
716: LIBS
717: ECHO_T
718: ECHO_N
719: ECHO_C
720: DEFS
721: mandir
722: localedir
723: libdir
724: psdir
725: pdfdir
726: dvidir
727: htmldir
728: infodir
729: docdir
730: oldincludedir
731: includedir
732: localstatedir
733: sharedstatedir
734: sysconfdir
735: datadir
736: datarootdir
737: libexecdir
738: sbindir
739: bindir
740: program_transform_name
741: prefix
742: exec_prefix
743: PACKAGE_URL
744: PACKAGE_BUGREPORT
745: PACKAGE_STRING
746: PACKAGE_VERSION
747: PACKAGE_TARNAME
748: PACKAGE_NAME
749: PATH_SEPARATOR
750: SHELL'
751: ac_subst_files=''
752: ac_user_opts='
753: enable_option_checking
754: enable_dependency_tracking
755: with_x
756: enable_optimization
757: enable_final_encoding
758: enable_tex
759: enable_vim
760: enable_embedded_gnuplot
761: enable_gnuplot
762: enable_motif
763: enable_experimental
764: enable_debug
765: enable_profile
766: enable_final_run_path
767: with_mysql
768: with_postgresql
769: '
770: ac_precious_vars='build_alias
771: host_alias
772: target_alias
773: CC
774: CFLAGS
775: LDFLAGS
776: LIBS
777: CPPFLAGS
778: CXX
779: CXXFLAGS
780: CCC
781: F77
782: FFLAGS
783: FC
784: FCFLAGS
785: XMKMF
786: CPP'
787: ac_subdirs_all='tools/$NCURSES
788: tools/$READLINE
789: tools/$UNITS
790: tools/$GSL
791: tools/$GPP
792: tools/$FILE
793: tools/$ICONV
794: tools/$GNUPLOT'
795:
796: # Initialize some variables set by options.
797: ac_init_help=
798: ac_init_version=false
799: ac_unrecognized_opts=
800: ac_unrecognized_sep=
801: # The variables have the same names as the options, with
802: # dashes changed to underlines.
803: cache_file=/dev/null
804: exec_prefix=NONE
805: no_create=
806: no_recursion=
807: prefix=NONE
808: program_prefix=NONE
809: program_suffix=NONE
810: program_transform_name=s,x,x,
811: silent=
812: site=
813: srcdir=
814: verbose=
815: x_includes=NONE
816: x_libraries=NONE
817:
818: # Installation directory options.
819: # These are left unexpanded so users can "make install exec_prefix=/foo"
820: # and all the variables that are supposed to be based on exec_prefix
821: # by default will actually change.
822: # Use braces instead of parens because sh, perl, etc. also accept them.
823: # (The list follows the same order as the GNU Coding Standards.)
824: bindir='${exec_prefix}/bin'
825: sbindir='${exec_prefix}/sbin'
826: libexecdir='${exec_prefix}/libexec'
827: datarootdir='${prefix}/share'
828: datadir='${datarootdir}'
829: sysconfdir='${prefix}/etc'
830: sharedstatedir='${prefix}/com'
831: localstatedir='${prefix}/var'
832: includedir='${prefix}/include'
833: oldincludedir='/usr/include'
834: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835: infodir='${datarootdir}/info'
836: htmldir='${docdir}'
837: dvidir='${docdir}'
838: pdfdir='${docdir}'
839: psdir='${docdir}'
840: libdir='${exec_prefix}/lib'
841: localedir='${datarootdir}/locale'
842: mandir='${datarootdir}/man'
843:
844: ac_prev=
845: ac_dashdash=
846: for ac_option
847: do
848: # If the previous option needs an argument, assign it.
849: if test -n "$ac_prev"; then
850: eval $ac_prev=\$ac_option
851: ac_prev=
852: continue
853: fi
854:
855: case $ac_option in
856: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857: *) ac_optarg=yes ;;
858: esac
859:
860: # Accept the important Cygnus configure options, so we can diagnose typos.
861:
862: case $ac_dashdash$ac_option in
863: --)
864: ac_dashdash=yes ;;
865:
866: -bindir | --bindir | --bindi | --bind | --bin | --bi)
867: ac_prev=bindir ;;
868: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869: bindir=$ac_optarg ;;
870:
871: -build | --build | --buil | --bui | --bu)
872: ac_prev=build_alias ;;
873: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874: build_alias=$ac_optarg ;;
875:
876: -cache-file | --cache-file | --cache-fil | --cache-fi \
877: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878: ac_prev=cache_file ;;
879: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881: cache_file=$ac_optarg ;;
882:
883: --config-cache | -C)
884: cache_file=config.cache ;;
885:
886: -datadir | --datadir | --datadi | --datad)
887: ac_prev=datadir ;;
888: -datadir=* | --datadir=* | --datadi=* | --datad=*)
889: datadir=$ac_optarg ;;
890:
891: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892: | --dataroo | --dataro | --datar)
893: ac_prev=datarootdir ;;
894: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896: datarootdir=$ac_optarg ;;
897:
898: -disable-* | --disable-*)
899: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900: # Reject names that are not valid shell variable names.
901: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902: as_fn_error "invalid feature name: $ac_useropt"
903: ac_useropt_orig=$ac_useropt
904: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905: case $ac_user_opts in
906: *"
907: "enable_$ac_useropt"
908: "*) ;;
909: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910: ac_unrecognized_sep=', ';;
911: esac
912: eval enable_$ac_useropt=no ;;
913:
914: -docdir | --docdir | --docdi | --doc | --do)
915: ac_prev=docdir ;;
916: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917: docdir=$ac_optarg ;;
918:
919: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920: ac_prev=dvidir ;;
921: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922: dvidir=$ac_optarg ;;
923:
924: -enable-* | --enable-*)
925: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926: # Reject names that are not valid shell variable names.
927: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928: as_fn_error "invalid feature name: $ac_useropt"
929: ac_useropt_orig=$ac_useropt
930: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931: case $ac_user_opts in
932: *"
933: "enable_$ac_useropt"
934: "*) ;;
935: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936: ac_unrecognized_sep=', ';;
937: esac
938: eval enable_$ac_useropt=\$ac_optarg ;;
939:
940: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942: | --exec | --exe | --ex)
943: ac_prev=exec_prefix ;;
944: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946: | --exec=* | --exe=* | --ex=*)
947: exec_prefix=$ac_optarg ;;
948:
949: -gas | --gas | --ga | --g)
950: # Obsolete; use --with-gas.
951: with_gas=yes ;;
952:
953: -help | --help | --hel | --he | -h)
954: ac_init_help=long ;;
955: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956: ac_init_help=recursive ;;
957: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958: ac_init_help=short ;;
959:
960: -host | --host | --hos | --ho)
961: ac_prev=host_alias ;;
962: -host=* | --host=* | --hos=* | --ho=*)
963: host_alias=$ac_optarg ;;
964:
965: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966: ac_prev=htmldir ;;
967: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968: | --ht=*)
969: htmldir=$ac_optarg ;;
970:
971: -includedir | --includedir | --includedi | --included | --include \
972: | --includ | --inclu | --incl | --inc)
973: ac_prev=includedir ;;
974: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975: | --includ=* | --inclu=* | --incl=* | --inc=*)
976: includedir=$ac_optarg ;;
977:
978: -infodir | --infodir | --infodi | --infod | --info | --inf)
979: ac_prev=infodir ;;
980: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981: infodir=$ac_optarg ;;
982:
983: -libdir | --libdir | --libdi | --libd)
984: ac_prev=libdir ;;
985: -libdir=* | --libdir=* | --libdi=* | --libd=*)
986: libdir=$ac_optarg ;;
987:
988: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989: | --libexe | --libex | --libe)
990: ac_prev=libexecdir ;;
991: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992: | --libexe=* | --libex=* | --libe=*)
993: libexecdir=$ac_optarg ;;
994:
995: -localedir | --localedir | --localedi | --localed | --locale)
996: ac_prev=localedir ;;
997: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998: localedir=$ac_optarg ;;
999:
1000: -localstatedir | --localstatedir | --localstatedi | --localstated \
1001: | --localstate | --localstat | --localsta | --localst | --locals)
1002: ac_prev=localstatedir ;;
1003: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005: localstatedir=$ac_optarg ;;
1006:
1007: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008: ac_prev=mandir ;;
1009: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010: mandir=$ac_optarg ;;
1011:
1012: -nfp | --nfp | --nf)
1013: # Obsolete; use --without-fp.
1014: with_fp=no ;;
1015:
1016: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017: | --no-cr | --no-c | -n)
1018: no_create=yes ;;
1019:
1020: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022: no_recursion=yes ;;
1023:
1024: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026: | --oldin | --oldi | --old | --ol | --o)
1027: ac_prev=oldincludedir ;;
1028: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031: oldincludedir=$ac_optarg ;;
1032:
1033: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034: ac_prev=prefix ;;
1035: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036: prefix=$ac_optarg ;;
1037:
1038: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039: | --program-pre | --program-pr | --program-p)
1040: ac_prev=program_prefix ;;
1041: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043: program_prefix=$ac_optarg ;;
1044:
1045: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046: | --program-suf | --program-su | --program-s)
1047: ac_prev=program_suffix ;;
1048: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050: program_suffix=$ac_optarg ;;
1051:
1052: -program-transform-name | --program-transform-name \
1053: | --program-transform-nam | --program-transform-na \
1054: | --program-transform-n | --program-transform- \
1055: | --program-transform | --program-transfor \
1056: | --program-transfo | --program-transf \
1057: | --program-trans | --program-tran \
1058: | --progr-tra | --program-tr | --program-t)
1059: ac_prev=program_transform_name ;;
1060: -program-transform-name=* | --program-transform-name=* \
1061: | --program-transform-nam=* | --program-transform-na=* \
1062: | --program-transform-n=* | --program-transform-=* \
1063: | --program-transform=* | --program-transfor=* \
1064: | --program-transfo=* | --program-transf=* \
1065: | --program-trans=* | --program-tran=* \
1066: | --progr-tra=* | --program-tr=* | --program-t=*)
1067: program_transform_name=$ac_optarg ;;
1068:
1069: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070: ac_prev=pdfdir ;;
1071: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072: pdfdir=$ac_optarg ;;
1073:
1074: -psdir | --psdir | --psdi | --psd | --ps)
1075: ac_prev=psdir ;;
1076: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077: psdir=$ac_optarg ;;
1078:
1079: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080: | -silent | --silent | --silen | --sile | --sil)
1081: silent=yes ;;
1082:
1083: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084: ac_prev=sbindir ;;
1085: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086: | --sbi=* | --sb=*)
1087: sbindir=$ac_optarg ;;
1088:
1089: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091: | --sharedst | --shareds | --shared | --share | --shar \
1092: | --sha | --sh)
1093: ac_prev=sharedstatedir ;;
1094: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097: | --sha=* | --sh=*)
1098: sharedstatedir=$ac_optarg ;;
1099:
1100: -site | --site | --sit)
1101: ac_prev=site ;;
1102: -site=* | --site=* | --sit=*)
1103: site=$ac_optarg ;;
1104:
1105: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106: ac_prev=srcdir ;;
1107: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108: srcdir=$ac_optarg ;;
1109:
1110: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111: | --syscon | --sysco | --sysc | --sys | --sy)
1112: ac_prev=sysconfdir ;;
1113: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115: sysconfdir=$ac_optarg ;;
1116:
1117: -target | --target | --targe | --targ | --tar | --ta | --t)
1118: ac_prev=target_alias ;;
1119: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120: target_alias=$ac_optarg ;;
1121:
1122: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123: verbose=yes ;;
1124:
1125: -version | --version | --versio | --versi | --vers | -V)
1126: ac_init_version=: ;;
1127:
1128: -with-* | --with-*)
1129: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130: # Reject names that are not valid shell variable names.
1131: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132: as_fn_error "invalid package name: $ac_useropt"
1133: ac_useropt_orig=$ac_useropt
1134: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135: case $ac_user_opts in
1136: *"
1137: "with_$ac_useropt"
1138: "*) ;;
1139: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140: ac_unrecognized_sep=', ';;
1141: esac
1142: eval with_$ac_useropt=\$ac_optarg ;;
1143:
1144: -without-* | --without-*)
1145: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146: # Reject names that are not valid shell variable names.
1147: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148: as_fn_error "invalid package name: $ac_useropt"
1149: ac_useropt_orig=$ac_useropt
1150: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151: case $ac_user_opts in
1152: *"
1153: "with_$ac_useropt"
1154: "*) ;;
1155: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156: ac_unrecognized_sep=', ';;
1157: esac
1158: eval with_$ac_useropt=no ;;
1159:
1160: --x)
1161: # Obsolete; use --with-x.
1162: with_x=yes ;;
1163:
1164: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165: | --x-incl | --x-inc | --x-in | --x-i)
1166: ac_prev=x_includes ;;
1167: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169: x_includes=$ac_optarg ;;
1170:
1171: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173: ac_prev=x_libraries ;;
1174: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176: x_libraries=$ac_optarg ;;
1177:
1178: -*) as_fn_error "unrecognized option: \`$ac_option'
1179: Try \`$0 --help' for more information."
1180: ;;
1181:
1182: *=*)
1183: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184: # Reject names that are not valid shell variable names.
1185: case $ac_envvar in #(
1186: '' | [0-9]* | *[!_$as_cr_alnum]* )
1187: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1188: esac
1189: eval $ac_envvar=\$ac_optarg
1190: export $ac_envvar ;;
1191:
1192: *)
1193: # FIXME: should be removed in autoconf 3.0.
1194: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198: ;;
1199:
1200: esac
1201: done
1202:
1203: if test -n "$ac_prev"; then
1204: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205: as_fn_error "missing argument to $ac_option"
1206: fi
1207:
1208: if test -n "$ac_unrecognized_opts"; then
1209: case $enable_option_checking in
1210: no) ;;
1211: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1212: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213: esac
1214: fi
1215:
1216: # Check all directory arguments for consistency.
1217: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218: datadir sysconfdir sharedstatedir localstatedir includedir \
1219: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220: libdir localedir mandir
1221: do
1222: eval ac_val=\$$ac_var
1223: # Remove trailing slashes.
1224: case $ac_val in
1225: */ )
1226: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227: eval $ac_var=\$ac_val;;
1228: esac
1229: # Be sure to have absolute directory names.
1230: case $ac_val in
1231: [\\/$]* | ?:[\\/]* ) continue;;
1232: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233: esac
1234: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1235: done
1236:
1237: # There might be people who depend on the old broken behavior: `$host'
1238: # used to hold the argument of --host etc.
1239: # FIXME: To remove some day.
1240: build=$build_alias
1241: host=$host_alias
1242: target=$target_alias
1243:
1244: # FIXME: To remove some day.
1245: if test "x$host_alias" != x; then
1246: if test "x$build_alias" = x; then
1247: cross_compiling=maybe
1248: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1249: If a cross compiler is detected then cross compile mode will be used." >&2
1250: elif test "x$build_alias" != "x$host_alias"; then
1251: cross_compiling=yes
1252: fi
1253: fi
1254:
1255: ac_tool_prefix=
1256: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257:
1258: test "$silent" = yes && exec 6>/dev/null
1259:
1260:
1261: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262: ac_ls_di=`ls -di .` &&
1263: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264: as_fn_error "working directory cannot be determined"
1265: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266: as_fn_error "pwd does not report name of working directory"
1267:
1268:
1269: # Find the source files, if location was not specified.
1270: if test -z "$srcdir"; then
1271: ac_srcdir_defaulted=yes
1272: # Try the directory containing this script, then the parent directory.
1273: ac_confdir=`$as_dirname -- "$as_myself" ||
1274: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275: X"$as_myself" : 'X\(//\)[^/]' \| \
1276: X"$as_myself" : 'X\(//\)$' \| \
1277: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278: $as_echo X"$as_myself" |
1279: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280: s//\1/
1281: q
1282: }
1283: /^X\(\/\/\)[^/].*/{
1284: s//\1/
1285: q
1286: }
1287: /^X\(\/\/\)$/{
1288: s//\1/
1289: q
1290: }
1291: /^X\(\/\).*/{
1292: s//\1/
1293: q
1294: }
1295: s/.*/./; q'`
1296: srcdir=$ac_confdir
1297: if test ! -r "$srcdir/$ac_unique_file"; then
1298: srcdir=..
1299: fi
1300: else
1301: ac_srcdir_defaulted=no
1302: fi
1303: if test ! -r "$srcdir/$ac_unique_file"; then
1304: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1306: fi
1307: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308: ac_abs_confdir=`(
1309: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1310: pwd)`
1311: # When building in place, set srcdir=.
1312: if test "$ac_abs_confdir" = "$ac_pwd"; then
1313: srcdir=.
1314: fi
1315: # Remove unnecessary trailing slashes from srcdir.
1316: # Double slashes in file names in object file debugging info
1317: # mess up M-x gdb in Emacs.
1318: case $srcdir in
1319: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320: esac
1321: for ac_var in $ac_precious_vars; do
1322: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323: eval ac_env_${ac_var}_value=\$${ac_var}
1324: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326: done
1327:
1328: #
1329: # Report the --help message.
1330: #
1331: if test "$ac_init_help" = "long"; then
1332: # Omit some internal or obsolete options to make the list less imposing.
1333: # This message is too long to be a string in the A/UX 3.1 sh.
1334: cat <<_ACEOF
1335: \`configure' configures rpl 4.0.9 to adapt to many kinds of systems.
1336:
1337: Usage: $0 [OPTION]... [VAR=VALUE]...
1338:
1339: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340: VAR=VALUE. See below for descriptions of some of the useful variables.
1341:
1342: Defaults for the options are specified in brackets.
1343:
1344: Configuration:
1345: -h, --help display this help and exit
1346: --help=short display options specific to this package
1347: --help=recursive display the short help of all the included packages
1348: -V, --version display version information and exit
1349: -q, --quiet, --silent do not print \`checking...' messages
1350: --cache-file=FILE cache test results in FILE [disabled]
1351: -C, --config-cache alias for \`--cache-file=config.cache'
1352: -n, --no-create do not create output files
1353: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354:
1355: Installation directories:
1356: --prefix=PREFIX install architecture-independent files in PREFIX
1357: [$ac_default_prefix]
1358: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359: [PREFIX]
1360:
1361: By default, \`make install' will install all the files in
1362: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364: for instance \`--prefix=\$HOME'.
1365:
1366: For better control, use the options below.
1367:
1368: Fine tuning of the installation directories:
1369: --bindir=DIR user executables [EPREFIX/bin]
1370: --sbindir=DIR system admin executables [EPREFIX/sbin]
1371: --libexecdir=DIR program executables [EPREFIX/libexec]
1372: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375: --libdir=DIR object code libraries [EPREFIX/lib]
1376: --includedir=DIR C header files [PREFIX/include]
1377: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380: --infodir=DIR info documentation [DATAROOTDIR/info]
1381: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382: --mandir=DIR man documentation [DATAROOTDIR/man]
1383: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1384: --htmldir=DIR html documentation [DOCDIR]
1385: --dvidir=DIR dvi documentation [DOCDIR]
1386: --pdfdir=DIR pdf documentation [DOCDIR]
1387: --psdir=DIR ps documentation [DOCDIR]
1388: _ACEOF
1389:
1390: cat <<\_ACEOF
1391:
1392: Program names:
1393: --program-prefix=PREFIX prepend PREFIX to installed program names
1394: --program-suffix=SUFFIX append SUFFIX to installed program names
1395: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396:
1397: X features:
1398: --x-includes=DIR X include files are in DIR
1399: --x-libraries=DIR X library files are in DIR
1400:
1401: System types:
1402: --build=BUILD configure for building on BUILD [guessed]
1403: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404: --target=TARGET configure for building compilers for TARGET [HOST]
1405: _ACEOF
1406: fi
1407:
1408: if test -n "$ac_init_help"; then
1409: case $ac_init_help in
1410: short | recursive ) echo "Configuration of rpl 4.0.9:";;
1411: esac
1412: cat <<\_ACEOF
1413:
1414: Optional Features:
1415: --disable-option-checking ignore unrecognized --enable/--with options
1416: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418: --disable-dependency-tracking speeds up one-time build
1419: --enable-dependency-tracking do not reject slow dependency extractors
1420: --enable-optimization set compiler flags [default=environment variables -O3]
1421: --enable-final-encoding force final encoding [default=guessed]
1422: --enable-tex provide the TeX support [default=guessed]
1423: --enable-vim provide the vim support [default=guessed]
1424: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1425: --enable-gnuplot provide the GnuPlot support [default=guessed]
1426: --enable-motif provide the Motif support [default=guessed]
1427: --enable-experimental enable experimental code [default=no]
1428: --enable-debug enable debug code [default=no]
1429: --enable-profile enable profile code [default=no]
1430: --enable-final-run-path=PATH enable another final run path than PREFIX
1431:
1432: Optional Packages:
1433: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435: --with-x use the X Window System
1436: --with-mysql=PATH specify directory for installed mysql
1437: --with-postgresql=PATH specify directory for installed postgresql
1438:
1439: Some influential environment variables:
1440: CC C compiler command
1441: CFLAGS C compiler flags
1442: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443: nonstandard directory <lib dir>
1444: LIBS libraries to pass to the linker, e.g. -l<library>
1445: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446: you have headers in a nonstandard directory <include dir>
1447: CXX C++ compiler command
1448: CXXFLAGS C++ compiler flags
1449: F77 Fortran 77 compiler command
1450: FFLAGS Fortran 77 compiler flags
1451: FC Fortran compiler command
1452: FCFLAGS Fortran compiler flags
1453: XMKMF Path to xmkmf, Makefile generator for X Window System
1454: CPP C preprocessor
1455:
1456: Use these variables to override the choices made by `configure' or to help
1457: it to find libraries and programs with nonstandard names/locations.
1458:
1459: Report bugs to the package provider.
1460: _ACEOF
1461: ac_status=$?
1462: fi
1463:
1464: if test "$ac_init_help" = "recursive"; then
1465: # If there are subdirs, report their specific --help.
1466: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467: test -d "$ac_dir" ||
1468: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469: continue
1470: ac_builddir=.
1471:
1472: case "$ac_dir" in
1473: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474: *)
1475: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476: # A ".." for each directory in $ac_dir_suffix.
1477: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478: case $ac_top_builddir_sub in
1479: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481: esac ;;
1482: esac
1483: ac_abs_top_builddir=$ac_pwd
1484: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485: # for backward compatibility:
1486: ac_top_builddir=$ac_top_build_prefix
1487:
1488: case $srcdir in
1489: .) # We are building in place.
1490: ac_srcdir=.
1491: ac_top_srcdir=$ac_top_builddir_sub
1492: ac_abs_top_srcdir=$ac_pwd ;;
1493: [\\/]* | ?:[\\/]* ) # Absolute name.
1494: ac_srcdir=$srcdir$ac_dir_suffix;
1495: ac_top_srcdir=$srcdir
1496: ac_abs_top_srcdir=$srcdir ;;
1497: *) # Relative name.
1498: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499: ac_top_srcdir=$ac_top_build_prefix$srcdir
1500: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501: esac
1502: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503:
1504: cd "$ac_dir" || { ac_status=$?; continue; }
1505: # Check for guested configure.
1506: if test -f "$ac_srcdir/configure.gnu"; then
1507: echo &&
1508: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509: elif test -f "$ac_srcdir/configure"; then
1510: echo &&
1511: $SHELL "$ac_srcdir/configure" --help=recursive
1512: else
1513: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514: fi || ac_status=$?
1515: cd "$ac_pwd" || { ac_status=$?; break; }
1516: done
1517: fi
1518:
1519: test -n "$ac_init_help" && exit $ac_status
1520: if $ac_init_version; then
1521: cat <<\_ACEOF
1522: rpl configure 4.0.9
1523: generated by GNU Autoconf 2.65
1524:
1525: Copyright (C) 2009 Free Software Foundation, Inc.
1526: This configure script is free software; the Free Software Foundation
1527: gives unlimited permission to copy, distribute and modify it.
1528: _ACEOF
1529: exit
1530: fi
1531:
1532: ## ------------------------ ##
1533: ## Autoconf initialization. ##
1534: ## ------------------------ ##
1535:
1536: # ac_fn_c_try_compile LINENO
1537: # --------------------------
1538: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539: ac_fn_c_try_compile ()
1540: {
1541: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542: rm -f conftest.$ac_objext
1543: if { { ac_try="$ac_compile"
1544: case "(($ac_try" in
1545: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546: *) ac_try_echo=$ac_try;;
1547: esac
1548: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549: $as_echo "$ac_try_echo"; } >&5
1550: (eval "$ac_compile") 2>conftest.err
1551: ac_status=$?
1552: if test -s conftest.err; then
1553: grep -v '^ *+' conftest.err >conftest.er1
1554: cat conftest.er1 >&5
1555: mv -f conftest.er1 conftest.err
1556: fi
1557: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558: test $ac_status = 0; } && {
1559: test -z "$ac_c_werror_flag" ||
1560: test ! -s conftest.err
1561: } && test -s conftest.$ac_objext; then :
1562: ac_retval=0
1563: else
1564: $as_echo "$as_me: failed program was:" >&5
1565: sed 's/^/| /' conftest.$ac_ext >&5
1566:
1567: ac_retval=1
1568: fi
1569: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570: as_fn_set_status $ac_retval
1571:
1572: } # ac_fn_c_try_compile
1573:
1574: # ac_fn_cxx_try_compile LINENO
1575: # ----------------------------
1576: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577: ac_fn_cxx_try_compile ()
1578: {
1579: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580: rm -f conftest.$ac_objext
1581: if { { ac_try="$ac_compile"
1582: case "(($ac_try" in
1583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584: *) ac_try_echo=$ac_try;;
1585: esac
1586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587: $as_echo "$ac_try_echo"; } >&5
1588: (eval "$ac_compile") 2>conftest.err
1589: ac_status=$?
1590: if test -s conftest.err; then
1591: grep -v '^ *+' conftest.err >conftest.er1
1592: cat conftest.er1 >&5
1593: mv -f conftest.er1 conftest.err
1594: fi
1595: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596: test $ac_status = 0; } && {
1597: test -z "$ac_cxx_werror_flag" ||
1598: test ! -s conftest.err
1599: } && test -s conftest.$ac_objext; then :
1600: ac_retval=0
1601: else
1602: $as_echo "$as_me: failed program was:" >&5
1603: sed 's/^/| /' conftest.$ac_ext >&5
1604:
1605: ac_retval=1
1606: fi
1607: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608: as_fn_set_status $ac_retval
1609:
1610: } # ac_fn_cxx_try_compile
1611:
1612: # ac_fn_f77_try_compile LINENO
1613: # ----------------------------
1614: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615: ac_fn_f77_try_compile ()
1616: {
1617: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618: rm -f conftest.$ac_objext
1619: if { { ac_try="$ac_compile"
1620: case "(($ac_try" in
1621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622: *) ac_try_echo=$ac_try;;
1623: esac
1624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625: $as_echo "$ac_try_echo"; } >&5
1626: (eval "$ac_compile") 2>conftest.err
1627: ac_status=$?
1628: if test -s conftest.err; then
1629: grep -v '^ *+' conftest.err >conftest.er1
1630: cat conftest.er1 >&5
1631: mv -f conftest.er1 conftest.err
1632: fi
1633: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634: test $ac_status = 0; } && {
1635: test -z "$ac_f77_werror_flag" ||
1636: test ! -s conftest.err
1637: } && test -s conftest.$ac_objext; then :
1638: ac_retval=0
1639: else
1640: $as_echo "$as_me: failed program was:" >&5
1641: sed 's/^/| /' conftest.$ac_ext >&5
1642:
1643: ac_retval=1
1644: fi
1645: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646: as_fn_set_status $ac_retval
1647:
1648: } # ac_fn_f77_try_compile
1649:
1650: # ac_fn_fc_try_compile LINENO
1651: # ---------------------------
1652: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653: ac_fn_fc_try_compile ()
1654: {
1655: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656: rm -f conftest.$ac_objext
1657: if { { ac_try="$ac_compile"
1658: case "(($ac_try" in
1659: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660: *) ac_try_echo=$ac_try;;
1661: esac
1662: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663: $as_echo "$ac_try_echo"; } >&5
1664: (eval "$ac_compile") 2>conftest.err
1665: ac_status=$?
1666: if test -s conftest.err; then
1667: grep -v '^ *+' conftest.err >conftest.er1
1668: cat conftest.er1 >&5
1669: mv -f conftest.er1 conftest.err
1670: fi
1671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672: test $ac_status = 0; } && {
1673: test -z "$ac_fc_werror_flag" ||
1674: test ! -s conftest.err
1675: } && test -s conftest.$ac_objext; then :
1676: ac_retval=0
1677: else
1678: $as_echo "$as_me: failed program was:" >&5
1679: sed 's/^/| /' conftest.$ac_ext >&5
1680:
1681: ac_retval=1
1682: fi
1683: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684: as_fn_set_status $ac_retval
1685:
1686: } # ac_fn_fc_try_compile
1687:
1688: # ac_fn_c_try_cpp LINENO
1689: # ----------------------
1690: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691: ac_fn_c_try_cpp ()
1692: {
1693: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694: if { { ac_try="$ac_cpp conftest.$ac_ext"
1695: case "(($ac_try" in
1696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697: *) ac_try_echo=$ac_try;;
1698: esac
1699: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700: $as_echo "$ac_try_echo"; } >&5
1701: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702: ac_status=$?
1703: if test -s conftest.err; then
1704: grep -v '^ *+' conftest.err >conftest.er1
1705: cat conftest.er1 >&5
1706: mv -f conftest.er1 conftest.err
1707: fi
1708: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709: test $ac_status = 0; } >/dev/null && {
1710: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711: test ! -s conftest.err
1712: }; then :
1713: ac_retval=0
1714: else
1715: $as_echo "$as_me: failed program was:" >&5
1716: sed 's/^/| /' conftest.$ac_ext >&5
1717:
1718: ac_retval=1
1719: fi
1720: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721: as_fn_set_status $ac_retval
1722:
1723: } # ac_fn_c_try_cpp
1724:
1725: # ac_fn_c_try_link LINENO
1726: # -----------------------
1727: # Try to link conftest.$ac_ext, and return whether this succeeded.
1728: ac_fn_c_try_link ()
1729: {
1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731: rm -f conftest.$ac_objext conftest$ac_exeext
1732: if { { ac_try="$ac_link"
1733: case "(($ac_try" in
1734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735: *) ac_try_echo=$ac_try;;
1736: esac
1737: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738: $as_echo "$ac_try_echo"; } >&5
1739: (eval "$ac_link") 2>conftest.err
1740: ac_status=$?
1741: if test -s conftest.err; then
1742: grep -v '^ *+' conftest.err >conftest.er1
1743: cat conftest.er1 >&5
1744: mv -f conftest.er1 conftest.err
1745: fi
1746: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747: test $ac_status = 0; } && {
1748: test -z "$ac_c_werror_flag" ||
1749: test ! -s conftest.err
1750: } && test -s conftest$ac_exeext && {
1751: test "$cross_compiling" = yes ||
1752: $as_test_x conftest$ac_exeext
1753: }; then :
1754: ac_retval=0
1755: else
1756: $as_echo "$as_me: failed program was:" >&5
1757: sed 's/^/| /' conftest.$ac_ext >&5
1758:
1759: ac_retval=1
1760: fi
1761: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763: # interfere with the next link command; also delete a directory that is
1764: # left behind by Apple's compiler. We do this before executing the actions.
1765: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767: as_fn_set_status $ac_retval
1768:
1769: } # ac_fn_c_try_link
1770:
1771: # ac_fn_c_check_func LINENO FUNC VAR
1772: # ----------------------------------
1773: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774: ac_fn_c_check_func ()
1775: {
1776: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778: $as_echo_n "checking for $2... " >&6; }
1779: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780: $as_echo_n "(cached) " >&6
1781: else
1782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783: /* end confdefs.h. */
1784: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786: #define $2 innocuous_$2
1787:
1788: /* System header to define __stub macros and hopefully few prototypes,
1789: which can conflict with char $2 (); below.
1790: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791: <limits.h> exists even on freestanding compilers. */
1792:
1793: #ifdef __STDC__
1794: # include <limits.h>
1795: #else
1796: # include <assert.h>
1797: #endif
1798:
1799: #undef $2
1800:
1801: /* Override any GCC internal prototype to avoid an error.
1802: Use char because int might match the return type of a GCC
1803: builtin and then its argument prototype would still apply. */
1804: #ifdef __cplusplus
1805: extern "C"
1806: #endif
1807: char $2 ();
1808: /* The GNU C library defines this for functions which it implements
1809: to always fail with ENOSYS. Some functions are actually named
1810: something starting with __ and the normal name is an alias. */
1811: #if defined __stub_$2 || defined __stub___$2
1812: choke me
1813: #endif
1814:
1815: int
1816: main ()
1817: {
1818: return $2 ();
1819: ;
1820: return 0;
1821: }
1822: _ACEOF
1823: if ac_fn_c_try_link "$LINENO"; then :
1824: eval "$3=yes"
1825: else
1826: eval "$3=no"
1827: fi
1828: rm -f core conftest.err conftest.$ac_objext \
1829: conftest$ac_exeext conftest.$ac_ext
1830: fi
1831: eval ac_res=\$$3
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833: $as_echo "$ac_res" >&6; }
1834: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835:
1836: } # ac_fn_c_check_func
1837:
1838: # ac_fn_c_try_run LINENO
1839: # ----------------------
1840: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841: # that executables *can* be run.
1842: ac_fn_c_try_run ()
1843: {
1844: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845: if { { ac_try="$ac_link"
1846: case "(($ac_try" in
1847: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848: *) ac_try_echo=$ac_try;;
1849: esac
1850: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851: $as_echo "$ac_try_echo"; } >&5
1852: (eval "$ac_link") 2>&5
1853: ac_status=$?
1854: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856: { { case "(($ac_try" in
1857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858: *) ac_try_echo=$ac_try;;
1859: esac
1860: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861: $as_echo "$ac_try_echo"; } >&5
1862: (eval "$ac_try") 2>&5
1863: ac_status=$?
1864: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865: test $ac_status = 0; }; }; then :
1866: ac_retval=0
1867: else
1868: $as_echo "$as_me: program exited with status $ac_status" >&5
1869: $as_echo "$as_me: failed program was:" >&5
1870: sed 's/^/| /' conftest.$ac_ext >&5
1871:
1872: ac_retval=$ac_status
1873: fi
1874: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876: as_fn_set_status $ac_retval
1877:
1878: } # ac_fn_c_try_run
1879:
1880: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881: # --------------------------------------------
1882: # Tries to find the compile-time value of EXPR in a program that includes
1883: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884: # computed
1885: ac_fn_c_compute_int ()
1886: {
1887: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888: if test "$cross_compiling" = yes; then
1889: # Depending upon the size, compute the lo and hi bounds.
1890: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891: /* end confdefs.h. */
1892: $4
1893: int
1894: main ()
1895: {
1896: static int test_array [1 - 2 * !(($2) >= 0)];
1897: test_array [0] = 0
1898:
1899: ;
1900: return 0;
1901: }
1902: _ACEOF
1903: if ac_fn_c_try_compile "$LINENO"; then :
1904: ac_lo=0 ac_mid=0
1905: while :; do
1906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907: /* end confdefs.h. */
1908: $4
1909: int
1910: main ()
1911: {
1912: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913: test_array [0] = 0
1914:
1915: ;
1916: return 0;
1917: }
1918: _ACEOF
1919: if ac_fn_c_try_compile "$LINENO"; then :
1920: ac_hi=$ac_mid; break
1921: else
1922: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923: if test $ac_lo -le $ac_mid; then
1924: ac_lo= ac_hi=
1925: break
1926: fi
1927: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1928: fi
1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930: done
1931: else
1932: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933: /* end confdefs.h. */
1934: $4
1935: int
1936: main ()
1937: {
1938: static int test_array [1 - 2 * !(($2) < 0)];
1939: test_array [0] = 0
1940:
1941: ;
1942: return 0;
1943: }
1944: _ACEOF
1945: if ac_fn_c_try_compile "$LINENO"; then :
1946: ac_hi=-1 ac_mid=-1
1947: while :; do
1948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949: /* end confdefs.h. */
1950: $4
1951: int
1952: main ()
1953: {
1954: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955: test_array [0] = 0
1956:
1957: ;
1958: return 0;
1959: }
1960: _ACEOF
1961: if ac_fn_c_try_compile "$LINENO"; then :
1962: ac_lo=$ac_mid; break
1963: else
1964: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965: if test $ac_mid -le $ac_hi; then
1966: ac_lo= ac_hi=
1967: break
1968: fi
1969: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1970: fi
1971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972: done
1973: else
1974: ac_lo= ac_hi=
1975: fi
1976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977: fi
1978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979: # Binary search between lo and hi bounds.
1980: while test "x$ac_lo" != "x$ac_hi"; do
1981: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983: /* end confdefs.h. */
1984: $4
1985: int
1986: main ()
1987: {
1988: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989: test_array [0] = 0
1990:
1991: ;
1992: return 0;
1993: }
1994: _ACEOF
1995: if ac_fn_c_try_compile "$LINENO"; then :
1996: ac_hi=$ac_mid
1997: else
1998: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1999: fi
2000: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001: done
2002: case $ac_lo in #((
2003: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004: '') ac_retval=1 ;;
2005: esac
2006: else
2007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008: /* end confdefs.h. */
2009: $4
2010: static long int longval () { return $2; }
2011: static unsigned long int ulongval () { return $2; }
2012: #include <stdio.h>
2013: #include <stdlib.h>
2014: int
2015: main ()
2016: {
2017:
2018: FILE *f = fopen ("conftest.val", "w");
2019: if (! f)
2020: return 1;
2021: if (($2) < 0)
2022: {
2023: long int i = longval ();
2024: if (i != ($2))
2025: return 1;
2026: fprintf (f, "%ld", i);
2027: }
2028: else
2029: {
2030: unsigned long int i = ulongval ();
2031: if (i != ($2))
2032: return 1;
2033: fprintf (f, "%lu", i);
2034: }
2035: /* Do not output a trailing newline, as this causes \r\n confusion
2036: on some platforms. */
2037: return ferror (f) || fclose (f) != 0;
2038:
2039: ;
2040: return 0;
2041: }
2042: _ACEOF
2043: if ac_fn_c_try_run "$LINENO"; then :
2044: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045: else
2046: ac_retval=1
2047: fi
2048: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049: conftest.$ac_objext conftest.beam conftest.$ac_ext
2050: rm -f conftest.val
2051:
2052: fi
2053: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054: as_fn_set_status $ac_retval
2055:
2056: } # ac_fn_c_compute_int
2057:
2058: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2059: # -------------------------------------------------------
2060: # Tests whether HEADER exists and can be compiled using the include files in
2061: # INCLUDES, setting the cache variable VAR accordingly.
2062: ac_fn_c_check_header_compile ()
2063: {
2064: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066: $as_echo_n "checking for $2... " >&6; }
2067: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068: $as_echo_n "(cached) " >&6
2069: else
2070: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071: /* end confdefs.h. */
2072: $4
2073: #include <$2>
2074: _ACEOF
2075: if ac_fn_c_try_compile "$LINENO"; then :
2076: eval "$3=yes"
2077: else
2078: eval "$3=no"
2079: fi
2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081: fi
2082: eval ac_res=\$$3
2083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084: $as_echo "$ac_res" >&6; }
2085: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086:
2087: } # ac_fn_c_check_header_compile
2088:
2089: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2090: # -------------------------------------------------------
2091: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2092: # the include files in INCLUDES and setting the cache variable VAR
2093: # accordingly.
2094: ac_fn_c_check_header_mongrel ()
2095: {
2096: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099: $as_echo_n "checking for $2... " >&6; }
2100: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101: $as_echo_n "(cached) " >&6
2102: fi
2103: eval ac_res=\$$3
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105: $as_echo "$ac_res" >&6; }
2106: else
2107: # Is the header compilable?
2108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2109: $as_echo_n "checking $2 usability... " >&6; }
2110: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111: /* end confdefs.h. */
2112: $4
2113: #include <$2>
2114: _ACEOF
2115: if ac_fn_c_try_compile "$LINENO"; then :
2116: ac_header_compiler=yes
2117: else
2118: ac_header_compiler=no
2119: fi
2120: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2122: $as_echo "$ac_header_compiler" >&6; }
2123:
2124: # Is the header present?
2125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2126: $as_echo_n "checking $2 presence... " >&6; }
2127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128: /* end confdefs.h. */
2129: #include <$2>
2130: _ACEOF
2131: if ac_fn_c_try_cpp "$LINENO"; then :
2132: ac_header_preproc=yes
2133: else
2134: ac_header_preproc=no
2135: fi
2136: rm -f conftest.err conftest.$ac_ext
2137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2138: $as_echo "$ac_header_preproc" >&6; }
2139:
2140: # So? What about this header?
2141: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2142: yes:no: )
2143: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2144: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2145: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147: ;;
2148: no:yes:* )
2149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2150: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2151: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2152: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2153: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2154: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2156: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2157: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159: ;;
2160: esac
2161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162: $as_echo_n "checking for $2... " >&6; }
2163: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164: $as_echo_n "(cached) " >&6
2165: else
2166: eval "$3=\$ac_header_compiler"
2167: fi
2168: eval ac_res=\$$3
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170: $as_echo "$ac_res" >&6; }
2171: fi
2172: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173:
2174: } # ac_fn_c_check_header_mongrel
2175:
2176: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177: # -------------------------------------------
2178: # Tests whether TYPE exists after having included INCLUDES, setting cache
2179: # variable VAR accordingly.
2180: ac_fn_c_check_type ()
2181: {
2182: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184: $as_echo_n "checking for $2... " >&6; }
2185: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186: $as_echo_n "(cached) " >&6
2187: else
2188: eval "$3=no"
2189: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190: /* end confdefs.h. */
2191: $4
2192: int
2193: main ()
2194: {
2195: if (sizeof ($2))
2196: return 0;
2197: ;
2198: return 0;
2199: }
2200: _ACEOF
2201: if ac_fn_c_try_compile "$LINENO"; then :
2202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203: /* end confdefs.h. */
2204: $4
2205: int
2206: main ()
2207: {
2208: if (sizeof (($2)))
2209: return 0;
2210: ;
2211: return 0;
2212: }
2213: _ACEOF
2214: if ac_fn_c_try_compile "$LINENO"; then :
2215:
2216: else
2217: eval "$3=yes"
2218: fi
2219: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220: fi
2221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222: fi
2223: eval ac_res=\$$3
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225: $as_echo "$ac_res" >&6; }
2226: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227:
2228: } # ac_fn_c_check_type
2229: cat >config.log <<_ACEOF
2230: This file contains any messages produced by compilers while
2231: running configure, to aid debugging if configure makes a mistake.
2232:
2233: It was created by rpl $as_me 4.0.9, which was
2234: generated by GNU Autoconf 2.65. Invocation command line was
2235:
2236: $ $0 $@
2237:
2238: _ACEOF
2239: exec 5>>config.log
2240: {
2241: cat <<_ASUNAME
2242: ## --------- ##
2243: ## Platform. ##
2244: ## --------- ##
2245:
2246: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251:
2252: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254:
2255: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2262:
2263: _ASUNAME
2264:
2265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266: for as_dir in $PATH
2267: do
2268: IFS=$as_save_IFS
2269: test -z "$as_dir" && as_dir=.
2270: $as_echo "PATH: $as_dir"
2271: done
2272: IFS=$as_save_IFS
2273:
2274: } >&5
2275:
2276: cat >&5 <<_ACEOF
2277:
2278:
2279: ## ----------- ##
2280: ## Core tests. ##
2281: ## ----------- ##
2282:
2283: _ACEOF
2284:
2285:
2286: # Keep a trace of the command line.
2287: # Strip out --no-create and --no-recursion so they do not pile up.
2288: # Strip out --silent because we don't want to record it for future runs.
2289: # Also quote any args containing shell meta-characters.
2290: # Make two passes to allow for proper duplicate-argument suppression.
2291: ac_configure_args=
2292: ac_configure_args0=
2293: ac_configure_args1=
2294: ac_must_keep_next=false
2295: for ac_pass in 1 2
2296: do
2297: for ac_arg
2298: do
2299: case $ac_arg in
2300: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302: | -silent | --silent | --silen | --sile | --sil)
2303: continue ;;
2304: *\'*)
2305: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306: esac
2307: case $ac_pass in
2308: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309: 2)
2310: as_fn_append ac_configure_args1 " '$ac_arg'"
2311: if test $ac_must_keep_next = true; then
2312: ac_must_keep_next=false # Got value, back to normal.
2313: else
2314: case $ac_arg in
2315: *=* | --config-cache | -C | -disable-* | --disable-* \
2316: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318: | -with-* | --with-* | -without-* | --without-* | --x)
2319: case "$ac_configure_args0 " in
2320: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321: esac
2322: ;;
2323: -* ) ac_must_keep_next=true ;;
2324: esac
2325: fi
2326: as_fn_append ac_configure_args " '$ac_arg'"
2327: ;;
2328: esac
2329: done
2330: done
2331: { ac_configure_args0=; unset ac_configure_args0;}
2332: { ac_configure_args1=; unset ac_configure_args1;}
2333:
2334: # When interrupted or exit'd, cleanup temporary files, and complete
2335: # config.log. We remove comments because anyway the quotes in there
2336: # would cause problems or look ugly.
2337: # WARNING: Use '\'' to represent an apostrophe within the trap.
2338: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339: trap 'exit_status=$?
2340: # Save into config.log some information that might help in debugging.
2341: {
2342: echo
2343:
2344: cat <<\_ASBOX
2345: ## ---------------- ##
2346: ## Cache variables. ##
2347: ## ---------------- ##
2348: _ASBOX
2349: echo
2350: # The following way of writing the cache mishandles newlines in values,
2351: (
2352: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2353: eval ac_val=\$$ac_var
2354: case $ac_val in #(
2355: *${as_nl}*)
2356: case $ac_var in #(
2357: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2358: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359: esac
2360: case $ac_var in #(
2361: _ | IFS | as_nl) ;; #(
2362: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2363: *) { eval $ac_var=; unset $ac_var;} ;;
2364: esac ;;
2365: esac
2366: done
2367: (set) 2>&1 |
2368: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2369: *${as_nl}ac_space=\ *)
2370: sed -n \
2371: "s/'\''/'\''\\\\'\'''\''/g;
2372: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373: ;; #(
2374: *)
2375: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376: ;;
2377: esac |
2378: sort
2379: )
2380: echo
2381:
2382: cat <<\_ASBOX
2383: ## ----------------- ##
2384: ## Output variables. ##
2385: ## ----------------- ##
2386: _ASBOX
2387: echo
2388: for ac_var in $ac_subst_vars
2389: do
2390: eval ac_val=\$$ac_var
2391: case $ac_val in
2392: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393: esac
2394: $as_echo "$ac_var='\''$ac_val'\''"
2395: done | sort
2396: echo
2397:
2398: if test -n "$ac_subst_files"; then
2399: cat <<\_ASBOX
2400: ## ------------------- ##
2401: ## File substitutions. ##
2402: ## ------------------- ##
2403: _ASBOX
2404: echo
2405: for ac_var in $ac_subst_files
2406: do
2407: eval ac_val=\$$ac_var
2408: case $ac_val in
2409: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410: esac
2411: $as_echo "$ac_var='\''$ac_val'\''"
2412: done | sort
2413: echo
2414: fi
2415:
2416: if test -s confdefs.h; then
2417: cat <<\_ASBOX
2418: ## ----------- ##
2419: ## confdefs.h. ##
2420: ## ----------- ##
2421: _ASBOX
2422: echo
2423: cat confdefs.h
2424: echo
2425: fi
2426: test "$ac_signal" != 0 &&
2427: $as_echo "$as_me: caught signal $ac_signal"
2428: $as_echo "$as_me: exit $exit_status"
2429: } >&5
2430: rm -f core *.core core.conftest.* &&
2431: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432: exit $exit_status
2433: ' 0
2434: for ac_signal in 1 2 13 15; do
2435: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436: done
2437: ac_signal=0
2438:
2439: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440: rm -f -r conftest* confdefs.h
2441:
2442: $as_echo "/* confdefs.h */" > confdefs.h
2443:
2444: # Predefined preprocessor variables.
2445:
2446: cat >>confdefs.h <<_ACEOF
2447: #define PACKAGE_NAME "$PACKAGE_NAME"
2448: _ACEOF
2449:
2450: cat >>confdefs.h <<_ACEOF
2451: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452: _ACEOF
2453:
2454: cat >>confdefs.h <<_ACEOF
2455: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2456: _ACEOF
2457:
2458: cat >>confdefs.h <<_ACEOF
2459: #define PACKAGE_STRING "$PACKAGE_STRING"
2460: _ACEOF
2461:
2462: cat >>confdefs.h <<_ACEOF
2463: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464: _ACEOF
2465:
2466: cat >>confdefs.h <<_ACEOF
2467: #define PACKAGE_URL "$PACKAGE_URL"
2468: _ACEOF
2469:
2470:
2471: # Let the site file select an alternate cache file if it wants to.
2472: # Prefer an explicitly selected file to automatically selected ones.
2473: ac_site_file1=NONE
2474: ac_site_file2=NONE
2475: if test -n "$CONFIG_SITE"; then
2476: ac_site_file1=$CONFIG_SITE
2477: elif test "x$prefix" != xNONE; then
2478: ac_site_file1=$prefix/share/config.site
2479: ac_site_file2=$prefix/etc/config.site
2480: else
2481: ac_site_file1=$ac_default_prefix/share/config.site
2482: ac_site_file2=$ac_default_prefix/etc/config.site
2483: fi
2484: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2485: do
2486: test "x$ac_site_file" = xNONE && continue
2487: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2488: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2489: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2490: sed 's/^/| /' "$ac_site_file" >&5
2491: . "$ac_site_file"
2492: fi
2493: done
2494:
2495: if test -r "$cache_file"; then
2496: # Some versions of bash will fail to source /dev/null (special files
2497: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2498: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2499: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2500: $as_echo "$as_me: loading cache $cache_file" >&6;}
2501: case $cache_file in
2502: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2503: *) . "./$cache_file";;
2504: esac
2505: fi
2506: else
2507: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2508: $as_echo "$as_me: creating cache $cache_file" >&6;}
2509: >$cache_file
2510: fi
2511:
2512: # Check that the precious variables saved in the cache have kept the same
2513: # value.
2514: ac_cache_corrupted=false
2515: for ac_var in $ac_precious_vars; do
2516: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2517: eval ac_new_set=\$ac_env_${ac_var}_set
2518: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2519: eval ac_new_val=\$ac_env_${ac_var}_value
2520: case $ac_old_set,$ac_new_set in
2521: set,)
2522: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2523: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2524: ac_cache_corrupted=: ;;
2525: ,set)
2526: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2527: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2528: ac_cache_corrupted=: ;;
2529: ,);;
2530: *)
2531: if test "x$ac_old_val" != "x$ac_new_val"; then
2532: # differences in whitespace do not lead to failure.
2533: ac_old_val_w=`echo x $ac_old_val`
2534: ac_new_val_w=`echo x $ac_new_val`
2535: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2536: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2537: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2538: ac_cache_corrupted=:
2539: else
2540: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2541: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2542: eval $ac_var=\$ac_old_val
2543: fi
2544: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2545: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2546: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2547: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2548: fi;;
2549: esac
2550: # Pass precious variables to config.status.
2551: if test "$ac_new_set" = set; then
2552: case $ac_new_val in
2553: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2554: *) ac_arg=$ac_var=$ac_new_val ;;
2555: esac
2556: case " $ac_configure_args " in
2557: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2558: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2559: esac
2560: fi
2561: done
2562: if $ac_cache_corrupted; then
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2566: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2567: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2568: fi
2569: ## -------------------- ##
2570: ## Main body of script. ##
2571: ## -------------------- ##
2572:
2573: ac_ext=c
2574: ac_cpp='$CPP $CPPFLAGS'
2575: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578:
2579:
2580: ac_aux_dir=
2581: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2582: for ac_t in install-sh install.sh shtool; do
2583: if test -f "$ac_dir/$ac_t"; then
2584: ac_aux_dir=$ac_dir
2585: ac_install_sh="$ac_aux_dir/$ac_t -c"
2586: break 2
2587: fi
2588: done
2589: done
2590: if test -z "$ac_aux_dir"; then
2591: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592: fi
2593:
2594: # These three variables are undocumented and unsupported,
2595: # and are intended to be withdrawn in a future Autoconf release.
2596: # They can cause serious problems if a builder's source tree is in a directory
2597: # whose full name contains unusual characters.
2598: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601:
2602:
2603: # Make sure we can run config.sub.
2604: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606:
2607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608: $as_echo_n "checking build system type... " >&6; }
2609: if test "${ac_cv_build+set}" = set; then :
2610: $as_echo_n "(cached) " >&6
2611: else
2612: ac_build_alias=$build_alias
2613: test "x$ac_build_alias" = x &&
2614: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615: test "x$ac_build_alias" = x &&
2616: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2617: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619:
2620: fi
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622: $as_echo "$ac_cv_build" >&6; }
2623: case $ac_cv_build in
2624: *-*-*) ;;
2625: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2626: esac
2627: build=$ac_cv_build
2628: ac_save_IFS=$IFS; IFS='-'
2629: set x $ac_cv_build
2630: shift
2631: build_cpu=$1
2632: build_vendor=$2
2633: shift; shift
2634: # Remember, the first character of IFS is used to create $*,
2635: # except with old shells:
2636: build_os=$*
2637: IFS=$ac_save_IFS
2638: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639:
2640:
2641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642: $as_echo_n "checking host system type... " >&6; }
2643: if test "${ac_cv_host+set}" = set; then :
2644: $as_echo_n "(cached) " >&6
2645: else
2646: if test "x$host_alias" = x; then
2647: ac_cv_host=$ac_cv_build
2648: else
2649: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2651: fi
2652:
2653: fi
2654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655: $as_echo "$ac_cv_host" >&6; }
2656: case $ac_cv_host in
2657: *-*-*) ;;
2658: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2659: esac
2660: host=$ac_cv_host
2661: ac_save_IFS=$IFS; IFS='-'
2662: set x $ac_cv_host
2663: shift
2664: host_cpu=$1
2665: host_vendor=$2
2666: shift; shift
2667: # Remember, the first character of IFS is used to create $*,
2668: # except with old shells:
2669: host_os=$*
2670: IFS=$ac_save_IFS
2671: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672:
2673:
2674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675: $as_echo_n "checking target system type... " >&6; }
2676: if test "${ac_cv_target+set}" = set; then :
2677: $as_echo_n "(cached) " >&6
2678: else
2679: if test "x$target_alias" = x; then
2680: ac_cv_target=$ac_cv_host
2681: else
2682: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2684: fi
2685:
2686: fi
2687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688: $as_echo "$ac_cv_target" >&6; }
2689: case $ac_cv_target in
2690: *-*-*) ;;
2691: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2692: esac
2693: target=$ac_cv_target
2694: ac_save_IFS=$IFS; IFS='-'
2695: set x $ac_cv_target
2696: shift
2697: target_cpu=$1
2698: target_vendor=$2
2699: shift; shift
2700: # Remember, the first character of IFS is used to create $*,
2701: # except with old shells:
2702: target_os=$*
2703: IFS=$ac_save_IFS
2704: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2705:
2706:
2707: # The aliases save the names the user supplied, while $host etc.
2708: # will get canonicalized.
2709: test -n "$target_alias" &&
2710: test "$program_prefix$program_suffix$program_transform_name" = \
2711: NONENONEs,x,x, &&
2712: program_prefix=${target_alias}-
2713:
2714: am__api_version='1.11'
2715:
2716: # Find a good install program. We prefer a C program (faster),
2717: # so one script is as good as another. But avoid the broken or
2718: # incompatible versions:
2719: # SysV /etc/install, /usr/sbin/install
2720: # SunOS /usr/etc/install
2721: # IRIX /sbin/install
2722: # AIX /bin/install
2723: # AmigaOS /C/install, which installs bootblocks on floppy discs
2724: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2725: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2726: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2727: # OS/2's system install, which has a completely different semantic
2728: # ./install, which can be erroneously created by make from ./install.sh.
2729: # Reject install programs that cannot install multiple files.
2730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2731: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2732: if test -z "$INSTALL"; then
2733: if test "${ac_cv_path_install+set}" = set; then :
2734: $as_echo_n "(cached) " >&6
2735: else
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: # Account for people who put trailing slashes in PATH elements.
2742: case $as_dir/ in #((
2743: ./ | .// | /[cC]/* | \
2744: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2745: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2746: /usr/ucb/* ) ;;
2747: *)
2748: # OSF1 and SCO ODT 3.0 have their own names for install.
2749: # Don't use installbsd from OSF since it installs stuff as root
2750: # by default.
2751: for ac_prog in ginstall scoinst install; do
2752: for ac_exec_ext in '' $ac_executable_extensions; do
2753: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2754: if test $ac_prog = install &&
2755: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2756: # AIX install. It has an incompatible calling convention.
2757: :
2758: elif test $ac_prog = install &&
2759: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2760: # program-specific install script used by HP pwplus--don't use.
2761: :
2762: else
2763: rm -rf conftest.one conftest.two conftest.dir
2764: echo one > conftest.one
2765: echo two > conftest.two
2766: mkdir conftest.dir
2767: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2768: test -s conftest.one && test -s conftest.two &&
2769: test -s conftest.dir/conftest.one &&
2770: test -s conftest.dir/conftest.two
2771: then
2772: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2773: break 3
2774: fi
2775: fi
2776: fi
2777: done
2778: done
2779: ;;
2780: esac
2781:
2782: done
2783: IFS=$as_save_IFS
2784:
2785: rm -rf conftest.one conftest.two conftest.dir
2786:
2787: fi
2788: if test "${ac_cv_path_install+set}" = set; then
2789: INSTALL=$ac_cv_path_install
2790: else
2791: # As a last resort, use the slow shell script. Don't cache a
2792: # value for INSTALL within a source directory, because that will
2793: # break other packages using the cache if that directory is
2794: # removed, or if the value is a relative name.
2795: INSTALL=$ac_install_sh
2796: fi
2797: fi
2798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2799: $as_echo "$INSTALL" >&6; }
2800:
2801: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2802: # It thinks the first close brace ends the variable substitution.
2803: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2804:
2805: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2806:
2807: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2808:
2809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2810: $as_echo_n "checking whether build environment is sane... " >&6; }
2811: # Just in case
2812: sleep 1
2813: echo timestamp > conftest.file
2814: # Reject unsafe characters in $srcdir or the absolute working directory
2815: # name. Accept space and tab only in the latter.
2816: am_lf='
2817: '
2818: case `pwd` in
2819: *[\\\"\#\$\&\'\`$am_lf]*)
2820: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2821: esac
2822: case $srcdir in
2823: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2824: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2825: esac
2826:
2827: # Do `set' in a subshell so we don't clobber the current shell's
2828: # arguments. Must try -L first in case configure is actually a
2829: # symlink; some systems play weird games with the mod time of symlinks
2830: # (eg FreeBSD returns the mod time of the symlink's containing
2831: # directory).
2832: if (
2833: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2834: if test "$*" = "X"; then
2835: # -L didn't work.
2836: set X `ls -t "$srcdir/configure" conftest.file`
2837: fi
2838: rm -f conftest.file
2839: if test "$*" != "X $srcdir/configure conftest.file" \
2840: && test "$*" != "X conftest.file $srcdir/configure"; then
2841:
2842: # If neither matched, then we have a broken ls. This can happen
2843: # if, for instance, CONFIG_SHELL is bash and it inherits a
2844: # broken ls alias from the environment. This has actually
2845: # happened. Such a system could not be considered "sane".
2846: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2847: alias in your environment" "$LINENO" 5
2848: fi
2849:
2850: test "$2" = conftest.file
2851: )
2852: then
2853: # Ok.
2854: :
2855: else
2856: as_fn_error "newly created file is older than distributed files!
2857: Check your system clock" "$LINENO" 5
2858: fi
2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2860: $as_echo "yes" >&6; }
2861: test "$program_prefix" != NONE &&
2862: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2863: # Use a double $ so make ignores it.
2864: test "$program_suffix" != NONE &&
2865: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2866: # Double any \ or $.
2867: # By default was `s,x,x', remove it if useless.
2868: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2869: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2870:
2871: # expand $ac_aux_dir to an absolute path
2872: am_aux_dir=`cd $ac_aux_dir && pwd`
2873:
2874: if test x"${MISSING+set}" != xset; then
2875: case $am_aux_dir in
2876: *\ * | *\ *)
2877: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2878: *)
2879: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2880: esac
2881: fi
2882: # Use eval to expand $SHELL
2883: if eval "$MISSING --run true"; then
2884: am_missing_run="$MISSING --run "
2885: else
2886: am_missing_run=
2887: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2888: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2889: fi
2890:
2891: if test x"${install_sh}" != xset; then
2892: case $am_aux_dir in
2893: *\ * | *\ *)
2894: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895: *)
2896: install_sh="\${SHELL} $am_aux_dir/install-sh"
2897: esac
2898: fi
2899:
2900: # Installed binaries are usually stripped using `strip' when the user
2901: # run `make install-strip'. However `strip' might not be the right
2902: # tool to use in cross-compilation environments, therefore Automake
2903: # will honor the `STRIP' environment variable to overrule this program.
2904: if test "$cross_compiling" != no; then
2905: if test -n "$ac_tool_prefix"; then
2906: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2907: set dummy ${ac_tool_prefix}strip; ac_word=$2
2908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909: $as_echo_n "checking for $ac_word... " >&6; }
2910: if test "${ac_cv_prog_STRIP+set}" = set; then :
2911: $as_echo_n "(cached) " >&6
2912: else
2913: if test -n "$STRIP"; then
2914: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2915: else
2916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917: for as_dir in $PATH
2918: do
2919: IFS=$as_save_IFS
2920: test -z "$as_dir" && as_dir=.
2921: for ac_exec_ext in '' $ac_executable_extensions; do
2922: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2924: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925: break 2
2926: fi
2927: done
2928: done
2929: IFS=$as_save_IFS
2930:
2931: fi
2932: fi
2933: STRIP=$ac_cv_prog_STRIP
2934: if test -n "$STRIP"; then
2935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2936: $as_echo "$STRIP" >&6; }
2937: else
2938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939: $as_echo "no" >&6; }
2940: fi
2941:
2942:
2943: fi
2944: if test -z "$ac_cv_prog_STRIP"; then
2945: ac_ct_STRIP=$STRIP
2946: # Extract the first word of "strip", so it can be a program name with args.
2947: set dummy strip; ac_word=$2
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949: $as_echo_n "checking for $ac_word... " >&6; }
2950: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2951: $as_echo_n "(cached) " >&6
2952: else
2953: if test -n "$ac_ct_STRIP"; then
2954: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2955: else
2956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957: for as_dir in $PATH
2958: do
2959: IFS=$as_save_IFS
2960: test -z "$as_dir" && as_dir=.
2961: for ac_exec_ext in '' $ac_executable_extensions; do
2962: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963: ac_cv_prog_ac_ct_STRIP="strip"
2964: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965: break 2
2966: fi
2967: done
2968: done
2969: IFS=$as_save_IFS
2970:
2971: fi
2972: fi
2973: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974: if test -n "$ac_ct_STRIP"; then
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976: $as_echo "$ac_ct_STRIP" >&6; }
2977: else
2978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979: $as_echo "no" >&6; }
2980: fi
2981:
2982: if test "x$ac_ct_STRIP" = x; then
2983: STRIP=":"
2984: else
2985: case $cross_compiling:$ac_tool_warned in
2986: yes:)
2987: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989: ac_tool_warned=yes ;;
2990: esac
2991: STRIP=$ac_ct_STRIP
2992: fi
2993: else
2994: STRIP="$ac_cv_prog_STRIP"
2995: fi
2996:
2997: fi
2998: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999:
3000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3001: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3002: if test -z "$MKDIR_P"; then
3003: if test "${ac_cv_path_mkdir+set}" = set; then :
3004: $as_echo_n "(cached) " >&6
3005: else
3006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3008: do
3009: IFS=$as_save_IFS
3010: test -z "$as_dir" && as_dir=.
3011: for ac_prog in mkdir gmkdir; do
3012: for ac_exec_ext in '' $ac_executable_extensions; do
3013: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3014: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015: 'mkdir (GNU coreutils) '* | \
3016: 'mkdir (coreutils) '* | \
3017: 'mkdir (fileutils) '4.1*)
3018: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3019: break 3;;
3020: esac
3021: done
3022: done
3023: done
3024: IFS=$as_save_IFS
3025:
3026: fi
3027:
3028: test -d ./--version && rmdir ./--version
3029: if test "${ac_cv_path_mkdir+set}" = set; then
3030: MKDIR_P="$ac_cv_path_mkdir -p"
3031: else
3032: # As a last resort, use the slow shell script. Don't cache a
3033: # value for MKDIR_P within a source directory, because that will
3034: # break other packages using the cache if that directory is
3035: # removed, or if the value is a relative name.
3036: MKDIR_P="$ac_install_sh -d"
3037: fi
3038: fi
3039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040: $as_echo "$MKDIR_P" >&6; }
3041:
3042: mkdir_p="$MKDIR_P"
3043: case $mkdir_p in
3044: [\\/$]* | ?:[\\/]*) ;;
3045: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3046: esac
3047:
3048: for ac_prog in gawk mawk nawk awk
3049: do
3050: # Extract the first word of "$ac_prog", so it can be a program name with args.
3051: set dummy $ac_prog; ac_word=$2
3052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053: $as_echo_n "checking for $ac_word... " >&6; }
3054: if test "${ac_cv_prog_AWK+set}" = set; then :
3055: $as_echo_n "(cached) " >&6
3056: else
3057: if test -n "$AWK"; then
3058: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059: else
3060: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061: for as_dir in $PATH
3062: do
3063: IFS=$as_save_IFS
3064: test -z "$as_dir" && as_dir=.
3065: for ac_exec_ext in '' $ac_executable_extensions; do
3066: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067: ac_cv_prog_AWK="$ac_prog"
3068: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069: break 2
3070: fi
3071: done
3072: done
3073: IFS=$as_save_IFS
3074:
3075: fi
3076: fi
3077: AWK=$ac_cv_prog_AWK
3078: if test -n "$AWK"; then
3079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080: $as_echo "$AWK" >&6; }
3081: else
3082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083: $as_echo "no" >&6; }
3084: fi
3085:
3086:
3087: test -n "$AWK" && break
3088: done
3089:
3090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092: set x ${MAKE-make}
3093: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3095: $as_echo_n "(cached) " >&6
3096: else
3097: cat >conftest.make <<\_ACEOF
3098: SHELL = /bin/sh
3099: all:
3100: @echo '@@@%%%=$(MAKE)=@@@%%%'
3101: _ACEOF
3102: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3103: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104: *@@@%%%=?*=@@@%%%*)
3105: eval ac_cv_prog_make_${ac_make}_set=yes;;
3106: *)
3107: eval ac_cv_prog_make_${ac_make}_set=no;;
3108: esac
3109: rm -f conftest.make
3110: fi
3111: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113: $as_echo "yes" >&6; }
3114: SET_MAKE=
3115: else
3116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117: $as_echo "no" >&6; }
3118: SET_MAKE="MAKE=${MAKE-make}"
3119: fi
3120:
3121: rm -rf .tst 2>/dev/null
3122: mkdir .tst 2>/dev/null
3123: if test -d .tst; then
3124: am__leading_dot=.
3125: else
3126: am__leading_dot=_
3127: fi
3128: rmdir .tst 2>/dev/null
3129:
3130: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132: # is not polluted with repeated "-I."
3133: am__isrc=' -I$(srcdir)'
3134: # test to see if srcdir already configured
3135: if test -f $srcdir/config.status; then
3136: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3137: fi
3138: fi
3139:
3140: # test whether we have cygpath
3141: if test -z "$CYGPATH_W"; then
3142: if (cygpath --version) >/dev/null 2>/dev/null; then
3143: CYGPATH_W='cygpath -w'
3144: else
3145: CYGPATH_W=echo
3146: fi
3147: fi
3148:
3149:
3150: # Define the identity of the package.
3151: PACKAGE='rpl'
3152: VERSION='4.0.9'
3153:
3154:
3155: cat >>confdefs.h <<_ACEOF
3156: #define PACKAGE "$PACKAGE"
3157: _ACEOF
3158:
3159:
3160: cat >>confdefs.h <<_ACEOF
3161: #define VERSION "$VERSION"
3162: _ACEOF
3163:
3164: # Some tools Automake needs.
3165:
3166: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167:
3168:
3169: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170:
3171:
3172: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173:
3174:
3175: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176:
3177:
3178: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179:
3180: # We need awk for the "check" target. The system "awk" is bad on
3181: # some platforms.
3182: # Always define AMTAR for backward compatibility.
3183:
3184: AMTAR=${AMTAR-"${am_missing_run}tar"}
3185:
3186: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3187:
3188:
3189:
3190:
3191:
3192:
3193: ac_config_headers="$ac_config_headers rplconfig.h"
3194:
3195:
3196: NCURSES=ncurses-5.7-20100102
3197: READLINE=readline-6.1
3198: UNITS=units-1.87
3199: GSL=gsl-1.13
3200: GPP=gpp-2.24
3201: GNUPLOT=gnuplot-4.2.6
3202: FILE=file-5.03
3203: ICONV=libiconv-1.13.1
3204:
3205: ac_ext=c
3206: ac_cpp='$CPP $CPPFLAGS'
3207: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210: if test -n "$ac_tool_prefix"; then
3211: for ac_prog in gcc-4.4 gcc
3212: do
3213: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216: $as_echo_n "checking for $ac_word... " >&6; }
3217: if test "${ac_cv_prog_CC+set}" = set; then :
3218: $as_echo_n "(cached) " >&6
3219: else
3220: if test -n "$CC"; then
3221: ac_cv_prog_CC="$CC" # Let the user override the test.
3222: else
3223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224: for as_dir in $PATH
3225: do
3226: IFS=$as_save_IFS
3227: test -z "$as_dir" && as_dir=.
3228: for ac_exec_ext in '' $ac_executable_extensions; do
3229: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232: break 2
3233: fi
3234: done
3235: done
3236: IFS=$as_save_IFS
3237:
3238: fi
3239: fi
3240: CC=$ac_cv_prog_CC
3241: if test -n "$CC"; then
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243: $as_echo "$CC" >&6; }
3244: else
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246: $as_echo "no" >&6; }
3247: fi
3248:
3249:
3250: test -n "$CC" && break
3251: done
3252: fi
3253: if test -z "$CC"; then
3254: ac_ct_CC=$CC
3255: for ac_prog in gcc-4.4 gcc
3256: do
3257: # Extract the first word of "$ac_prog", so it can be a program name with args.
3258: set dummy $ac_prog; ac_word=$2
3259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260: $as_echo_n "checking for $ac_word... " >&6; }
3261: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3262: $as_echo_n "(cached) " >&6
3263: else
3264: if test -n "$ac_ct_CC"; then
3265: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266: else
3267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268: for as_dir in $PATH
3269: do
3270: IFS=$as_save_IFS
3271: test -z "$as_dir" && as_dir=.
3272: for ac_exec_ext in '' $ac_executable_extensions; do
3273: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274: ac_cv_prog_ac_ct_CC="$ac_prog"
3275: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276: break 2
3277: fi
3278: done
3279: done
3280: IFS=$as_save_IFS
3281:
3282: fi
3283: fi
3284: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285: if test -n "$ac_ct_CC"; then
3286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287: $as_echo "$ac_ct_CC" >&6; }
3288: else
3289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290: $as_echo "no" >&6; }
3291: fi
3292:
3293:
3294: test -n "$ac_ct_CC" && break
3295: done
3296:
3297: if test "x$ac_ct_CC" = x; then
3298: CC=""
3299: else
3300: case $cross_compiling:$ac_tool_warned in
3301: yes:)
3302: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304: ac_tool_warned=yes ;;
3305: esac
3306: CC=$ac_ct_CC
3307: fi
3308: fi
3309:
3310:
3311: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313: as_fn_error "no acceptable C compiler found in \$PATH
3314: See \`config.log' for more details." "$LINENO" 5; }
3315:
3316: # Provide some information about the compiler.
3317: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318: set X $ac_compile
3319: ac_compiler=$2
3320: for ac_option in --version -v -V -qversion; do
3321: { { ac_try="$ac_compiler $ac_option >&5"
3322: case "(($ac_try" in
3323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324: *) ac_try_echo=$ac_try;;
3325: esac
3326: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327: $as_echo "$ac_try_echo"; } >&5
3328: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329: ac_status=$?
3330: if test -s conftest.err; then
3331: sed '10a\
3332: ... rest of stderr output deleted ...
3333: 10q' conftest.err >conftest.er1
3334: cat conftest.er1 >&5
3335: fi
3336: rm -f conftest.er1 conftest.err
3337: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338: test $ac_status = 0; }
3339: done
3340:
3341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342: /* end confdefs.h. */
3343:
3344: int
3345: main ()
3346: {
3347:
3348: ;
3349: return 0;
3350: }
3351: _ACEOF
3352: ac_clean_files_save=$ac_clean_files
3353: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354: # Try to create an executable without -o first, disregard a.out.
3355: # It will help us diagnose broken compilers, and finding out an intuition
3356: # of exeext.
3357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358: $as_echo_n "checking whether the C compiler works... " >&6; }
3359: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3360:
3361: # The possible output files:
3362: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363:
3364: ac_rmfiles=
3365: for ac_file in $ac_files
3366: do
3367: case $ac_file in
3368: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370: esac
3371: done
3372: rm -f $ac_rmfiles
3373:
3374: if { { ac_try="$ac_link_default"
3375: case "(($ac_try" in
3376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377: *) ac_try_echo=$ac_try;;
3378: esac
3379: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380: $as_echo "$ac_try_echo"; } >&5
3381: (eval "$ac_link_default") 2>&5
3382: ac_status=$?
3383: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384: test $ac_status = 0; }; then :
3385: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388: # so that the user can short-circuit this test for compilers unknown to
3389: # Autoconf.
3390: for ac_file in $ac_files ''
3391: do
3392: test -f "$ac_file" || continue
3393: case $ac_file in
3394: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395: ;;
3396: [ab].out )
3397: # We found the default executable, but exeext='' is most
3398: # certainly right.
3399: break;;
3400: *.* )
3401: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402: then :; else
3403: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404: fi
3405: # We set ac_cv_exeext here because the later test for it is not
3406: # safe: cross compilers may not add the suffix if given an `-o'
3407: # argument, so we may need to know it at that point already.
3408: # Even if this section looks crufty: it has the advantage of
3409: # actually working.
3410: break;;
3411: * )
3412: break;;
3413: esac
3414: done
3415: test "$ac_cv_exeext" = no && ac_cv_exeext=
3416:
3417: else
3418: ac_file=''
3419: fi
3420: if test -z "$ac_file"; then :
3421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422: $as_echo "no" >&6; }
3423: $as_echo "$as_me: failed program was:" >&5
3424: sed 's/^/| /' conftest.$ac_ext >&5
3425:
3426: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428: { as_fn_set_status 77
3429: as_fn_error "C compiler cannot create executables
3430: See \`config.log' for more details." "$LINENO" 5; }; }
3431: else
3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433: $as_echo "yes" >&6; }
3434: fi
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436: $as_echo_n "checking for C compiler default output file name... " >&6; }
3437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438: $as_echo "$ac_file" >&6; }
3439: ac_exeext=$ac_cv_exeext
3440:
3441: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442: ac_clean_files=$ac_clean_files_save
3443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444: $as_echo_n "checking for suffix of executables... " >&6; }
3445: if { { ac_try="$ac_link"
3446: case "(($ac_try" in
3447: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448: *) ac_try_echo=$ac_try;;
3449: esac
3450: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451: $as_echo "$ac_try_echo"; } >&5
3452: (eval "$ac_link") 2>&5
3453: ac_status=$?
3454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455: test $ac_status = 0; }; then :
3456: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3457: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3458: # work properly (i.e., refer to `conftest.exe'), while it won't with
3459: # `rm'.
3460: for ac_file in conftest.exe conftest conftest.*; do
3461: test -f "$ac_file" || continue
3462: case $ac_file in
3463: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465: break;;
3466: * ) break;;
3467: esac
3468: done
3469: else
3470: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472: as_fn_error "cannot compute suffix of executables: cannot compile and link
3473: See \`config.log' for more details." "$LINENO" 5; }
3474: fi
3475: rm -f conftest conftest$ac_cv_exeext
3476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477: $as_echo "$ac_cv_exeext" >&6; }
3478:
3479: rm -f conftest.$ac_ext
3480: EXEEXT=$ac_cv_exeext
3481: ac_exeext=$EXEEXT
3482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483: /* end confdefs.h. */
3484: #include <stdio.h>
3485: int
3486: main ()
3487: {
3488: FILE *f = fopen ("conftest.out", "w");
3489: return ferror (f) || fclose (f) != 0;
3490:
3491: ;
3492: return 0;
3493: }
3494: _ACEOF
3495: ac_clean_files="$ac_clean_files conftest.out"
3496: # Check that the compiler produces executables we can run. If not, either
3497: # the compiler is broken, or we cross compile.
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499: $as_echo_n "checking whether we are cross compiling... " >&6; }
3500: if test "$cross_compiling" != yes; then
3501: { { ac_try="$ac_link"
3502: case "(($ac_try" in
3503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504: *) ac_try_echo=$ac_try;;
3505: esac
3506: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507: $as_echo "$ac_try_echo"; } >&5
3508: (eval "$ac_link") 2>&5
3509: ac_status=$?
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }
3512: if { ac_try='./conftest$ac_cv_exeext'
3513: { { case "(($ac_try" in
3514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515: *) ac_try_echo=$ac_try;;
3516: esac
3517: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518: $as_echo "$ac_try_echo"; } >&5
3519: (eval "$ac_try") 2>&5
3520: ac_status=$?
3521: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522: test $ac_status = 0; }; }; then
3523: cross_compiling=no
3524: else
3525: if test "$cross_compiling" = maybe; then
3526: cross_compiling=yes
3527: else
3528: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530: as_fn_error "cannot run C compiled programs.
3531: If you meant to cross compile, use \`--host'.
3532: See \`config.log' for more details." "$LINENO" 5; }
3533: fi
3534: fi
3535: fi
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537: $as_echo "$cross_compiling" >&6; }
3538:
3539: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3540: ac_clean_files=$ac_clean_files_save
3541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542: $as_echo_n "checking for suffix of object files... " >&6; }
3543: if test "${ac_cv_objext+set}" = set; then :
3544: $as_echo_n "(cached) " >&6
3545: else
3546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547: /* end confdefs.h. */
3548:
3549: int
3550: main ()
3551: {
3552:
3553: ;
3554: return 0;
3555: }
3556: _ACEOF
3557: rm -f conftest.o conftest.obj
3558: if { { ac_try="$ac_compile"
3559: case "(($ac_try" in
3560: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561: *) ac_try_echo=$ac_try;;
3562: esac
3563: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564: $as_echo "$ac_try_echo"; } >&5
3565: (eval "$ac_compile") 2>&5
3566: ac_status=$?
3567: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568: test $ac_status = 0; }; then :
3569: for ac_file in conftest.o conftest.obj conftest.*; do
3570: test -f "$ac_file" || continue;
3571: case $ac_file in
3572: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574: break;;
3575: esac
3576: done
3577: else
3578: $as_echo "$as_me: failed program was:" >&5
3579: sed 's/^/| /' conftest.$ac_ext >&5
3580:
3581: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583: as_fn_error "cannot compute suffix of object files: cannot compile
3584: See \`config.log' for more details." "$LINENO" 5; }
3585: fi
3586: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587: fi
3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589: $as_echo "$ac_cv_objext" >&6; }
3590: OBJEXT=$ac_cv_objext
3591: ac_objext=$OBJEXT
3592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3595: $as_echo_n "(cached) " >&6
3596: else
3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603: #ifndef __GNUC__
3604: choke me
3605: #endif
3606:
3607: ;
3608: return 0;
3609: }
3610: _ACEOF
3611: if ac_fn_c_try_compile "$LINENO"; then :
3612: ac_compiler_gnu=yes
3613: else
3614: ac_compiler_gnu=no
3615: fi
3616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3618:
3619: fi
3620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622: if test $ac_compiler_gnu = yes; then
3623: GCC=yes
3624: else
3625: GCC=
3626: fi
3627: ac_test_CFLAGS=${CFLAGS+set}
3628: ac_save_CFLAGS=$CFLAGS
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631: if test "${ac_cv_prog_cc_g+set}" = set; then :
3632: $as_echo_n "(cached) " >&6
3633: else
3634: ac_save_c_werror_flag=$ac_c_werror_flag
3635: ac_c_werror_flag=yes
3636: ac_cv_prog_cc_g=no
3637: CFLAGS="-g"
3638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639: /* end confdefs.h. */
3640:
3641: int
3642: main ()
3643: {
3644:
3645: ;
3646: return 0;
3647: }
3648: _ACEOF
3649: if ac_fn_c_try_compile "$LINENO"; then :
3650: ac_cv_prog_cc_g=yes
3651: else
3652: CFLAGS=""
3653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654: /* end confdefs.h. */
3655:
3656: int
3657: main ()
3658: {
3659:
3660: ;
3661: return 0;
3662: }
3663: _ACEOF
3664: if ac_fn_c_try_compile "$LINENO"; then :
3665:
3666: else
3667: ac_c_werror_flag=$ac_save_c_werror_flag
3668: CFLAGS="-g"
3669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670: /* end confdefs.h. */
3671:
3672: int
3673: main ()
3674: {
3675:
3676: ;
3677: return 0;
3678: }
3679: _ACEOF
3680: if ac_fn_c_try_compile "$LINENO"; then :
3681: ac_cv_prog_cc_g=yes
3682: fi
3683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684: fi
3685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686: fi
3687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688: ac_c_werror_flag=$ac_save_c_werror_flag
3689: fi
3690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691: $as_echo "$ac_cv_prog_cc_g" >&6; }
3692: if test "$ac_test_CFLAGS" = set; then
3693: CFLAGS=$ac_save_CFLAGS
3694: elif test $ac_cv_prog_cc_g = yes; then
3695: if test "$GCC" = yes; then
3696: CFLAGS="-g -O2"
3697: else
3698: CFLAGS="-g"
3699: fi
3700: else
3701: if test "$GCC" = yes; then
3702: CFLAGS="-O2"
3703: else
3704: CFLAGS=
3705: fi
3706: fi
3707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3710: $as_echo_n "(cached) " >&6
3711: else
3712: ac_cv_prog_cc_c89=no
3713: ac_save_CC=$CC
3714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715: /* end confdefs.h. */
3716: #include <stdarg.h>
3717: #include <stdio.h>
3718: #include <sys/types.h>
3719: #include <sys/stat.h>
3720: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721: struct buf { int x; };
3722: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723: static char *e (p, i)
3724: char **p;
3725: int i;
3726: {
3727: return p[i];
3728: }
3729: static char *f (char * (*g) (char **, int), char **p, ...)
3730: {
3731: char *s;
3732: va_list v;
3733: va_start (v,p);
3734: s = g (p, va_arg (v,int));
3735: va_end (v);
3736: return s;
3737: }
3738:
3739: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740: function prototypes and stuff, but not '\xHH' hex character constants.
3741: These don't provoke an error unfortunately, instead are silently treated
3742: as 'x'. The following induces an error, until -std is added to get
3743: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744: array size at least. It's necessary to write '\x00'==0 to get something
3745: that's true only with -std. */
3746: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747:
3748: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749: inside strings and character constants. */
3750: #define FOO(x) 'x'
3751: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752:
3753: int test (int i, double x);
3754: struct s1 {int (*f) (int a);};
3755: struct s2 {int (*f) (double a);};
3756: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757: int argc;
3758: char **argv;
3759: int
3760: main ()
3761: {
3762: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763: ;
3764: return 0;
3765: }
3766: _ACEOF
3767: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769: do
3770: CC="$ac_save_CC $ac_arg"
3771: if ac_fn_c_try_compile "$LINENO"; then :
3772: ac_cv_prog_cc_c89=$ac_arg
3773: fi
3774: rm -f core conftest.err conftest.$ac_objext
3775: test "x$ac_cv_prog_cc_c89" != "xno" && break
3776: done
3777: rm -f conftest.$ac_ext
3778: CC=$ac_save_CC
3779:
3780: fi
3781: # AC_CACHE_VAL
3782: case "x$ac_cv_prog_cc_c89" in
3783: x)
3784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785: $as_echo "none needed" >&6; } ;;
3786: xno)
3787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788: $as_echo "unsupported" >&6; } ;;
3789: *)
3790: CC="$CC $ac_cv_prog_cc_c89"
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793: esac
3794: if test "x$ac_cv_prog_cc_c89" != xno; then :
3795:
3796: fi
3797:
3798: ac_ext=c
3799: ac_cpp='$CPP $CPPFLAGS'
3800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803: DEPDIR="${am__leading_dot}deps"
3804:
3805: ac_config_commands="$ac_config_commands depfiles"
3806:
3807:
3808: am_make=${MAKE-make}
3809: cat > confinc << 'END'
3810: am__doit:
3811: @echo this is the am__doit target
3812: .PHONY: am__doit
3813: END
3814: # If we don't find an include directive, just comment out the code.
3815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3816: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3817: am__include="#"
3818: am__quote=
3819: _am_result=none
3820: # First try GNU make style include.
3821: echo "include confinc" > confmf
3822: # Ignore all kinds of additional output from `make'.
3823: case `$am_make -s -f confmf 2> /dev/null` in #(
3824: *the\ am__doit\ target*)
3825: am__include=include
3826: am__quote=
3827: _am_result=GNU
3828: ;;
3829: esac
3830: # Now try BSD make style include.
3831: if test "$am__include" = "#"; then
3832: echo '.include "confinc"' > confmf
3833: case `$am_make -s -f confmf 2> /dev/null` in #(
3834: *the\ am__doit\ target*)
3835: am__include=.include
3836: am__quote="\""
3837: _am_result=BSD
3838: ;;
3839: esac
3840: fi
3841:
3842:
3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3844: $as_echo "$_am_result" >&6; }
3845: rm -f confinc confmf
3846:
3847: # Check whether --enable-dependency-tracking was given.
3848: if test "${enable_dependency_tracking+set}" = set; then :
3849: enableval=$enable_dependency_tracking;
3850: fi
3851:
3852: if test "x$enable_dependency_tracking" != xno; then
3853: am_depcomp="$ac_aux_dir/depcomp"
3854: AMDEPBACKSLASH='\'
3855: fi
3856: if test "x$enable_dependency_tracking" != xno; then
3857: AMDEP_TRUE=
3858: AMDEP_FALSE='#'
3859: else
3860: AMDEP_TRUE='#'
3861: AMDEP_FALSE=
3862: fi
3863:
3864:
3865:
3866: depcc="$CC" am_compiler_list=
3867:
3868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3869: $as_echo_n "checking dependency style of $depcc... " >&6; }
3870: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3871: $as_echo_n "(cached) " >&6
3872: else
3873: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874: # We make a subdir and do the tests there. Otherwise we can end up
3875: # making bogus files that we don't know about and never remove. For
3876: # instance it was reported that on HP-UX the gcc test will end up
3877: # making a dummy file named `D' -- because `-MD' means `put the output
3878: # in D'.
3879: mkdir conftest.dir
3880: # Copy depcomp to subdir because otherwise we won't find it if we're
3881: # using a relative directory.
3882: cp "$am_depcomp" conftest.dir
3883: cd conftest.dir
3884: # We will build objects and dependencies in a subdirectory because
3885: # it helps to detect inapplicable dependency modes. For instance
3886: # both Tru64's cc and ICC support -MD to output dependencies as a
3887: # side effect of compilation, but ICC will put the dependencies in
3888: # the current directory while Tru64 will put them in the object
3889: # directory.
3890: mkdir sub
3891:
3892: am_cv_CC_dependencies_compiler_type=none
3893: if test "$am_compiler_list" = ""; then
3894: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895: fi
3896: am__universal=false
3897: case " $depcc " in #(
3898: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899: esac
3900:
3901: for depmode in $am_compiler_list; do
3902: # Setup a source with many dependencies, because some compilers
3903: # like to wrap large dependency lists on column 80 (with \), and
3904: # we should not choose a depcomp mode which is confused by this.
3905: #
3906: # We need to recreate these files for each test, as the compiler may
3907: # overwrite some of them when testing with obscure command lines.
3908: # This happens at least with the AIX C compiler.
3909: : > sub/conftest.c
3910: for i in 1 2 3 4 5 6; do
3911: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3913: # Solaris 8's {/usr,}/bin/sh.
3914: touch sub/conftst$i.h
3915: done
3916: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917:
3918: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3919: # mode. It turns out that the SunPro C++ compiler does not properly
3920: # handle `-M -o', and we need to detect this. Also, some Intel
3921: # versions had trouble with output in subdirs
3922: am__obj=sub/conftest.${OBJEXT-o}
3923: am__minus_obj="-o $am__obj"
3924: case $depmode in
3925: gcc)
3926: # This depmode causes a compiler race in universal mode.
3927: test "$am__universal" = false || continue
3928: ;;
3929: nosideeffect)
3930: # after this tag, mechanisms are not by side-effect, so they'll
3931: # only be used when explicitly requested
3932: if test "x$enable_dependency_tracking" = xyes; then
3933: continue
3934: else
3935: break
3936: fi
3937: ;;
3938: msvisualcpp | msvcmsys)
3939: # This compiler won't grok `-c -o', but also, the minuso test has
3940: # not run yet. These depmodes are late enough in the game, and
3941: # so weak that their functioning should not be impacted.
3942: am__obj=conftest.${OBJEXT-o}
3943: am__minus_obj=
3944: ;;
3945: none) break ;;
3946: esac
3947: if depmode=$depmode \
3948: source=sub/conftest.c object=$am__obj \
3949: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951: >/dev/null 2>conftest.err &&
3952: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956: # icc doesn't choke on unknown options, it will just issue warnings
3957: # or remarks (even with -Werror). So we grep stderr for any message
3958: # that says an option was ignored or not supported.
3959: # When given -MP, icc 7.0 and 7.1 complain thusly:
3960: # icc: Command line warning: ignoring option '-M'; no argument required
3961: # The diagnosis changed in icc 8.0:
3962: # icc: Command line remark: option '-MP' not supported
3963: if (grep 'ignoring option' conftest.err ||
3964: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965: am_cv_CC_dependencies_compiler_type=$depmode
3966: break
3967: fi
3968: fi
3969: done
3970:
3971: cd ..
3972: rm -rf conftest.dir
3973: else
3974: am_cv_CC_dependencies_compiler_type=none
3975: fi
3976:
3977: fi
3978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3979: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981:
3982: if
3983: test "x$enable_dependency_tracking" != xno \
3984: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985: am__fastdepCC_TRUE=
3986: am__fastdepCC_FALSE='#'
3987: else
3988: am__fastdepCC_TRUE='#'
3989: am__fastdepCC_FALSE=
3990: fi
3991:
3992:
3993:
3994: if test x"$CC" != x""; then
3995: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3996: awk -F. '{ printf("%s", $1);}'`
3997: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3998: awk -F. '{ printf("%s", $2);}'`
3999: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4000: OPTIMISATION_C=-O3
4001: else
4002: if test $GCC_VERSION_MAJEURE -ge 5; then
4003: OPTIMISATION_C=-O3
4004: else
4005: OPTIMISATION_C=-O2
4006: fi
4007: fi
4008: fi
4009:
4010: if test "x$CC" != xcc; then
4011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4012: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4013: else
4014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4015: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4016: fi
4017: set dummy $CC; ac_cc=`$as_echo "$2" |
4018: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4019: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4020: $as_echo_n "(cached) " >&6
4021: else
4022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023: /* end confdefs.h. */
4024:
4025: int
4026: main ()
4027: {
4028:
4029: ;
4030: return 0;
4031: }
4032: _ACEOF
4033: # Make sure it works both with $CC and with simple cc.
4034: # We do the test twice because some compilers refuse to overwrite an
4035: # existing .o file with -o, though they will create one.
4036: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4037: rm -f conftest2.*
4038: if { { case "(($ac_try" in
4039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040: *) ac_try_echo=$ac_try;;
4041: esac
4042: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043: $as_echo "$ac_try_echo"; } >&5
4044: (eval "$ac_try") 2>&5
4045: ac_status=$?
4046: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047: test $ac_status = 0; } &&
4048: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4049: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050: *) ac_try_echo=$ac_try;;
4051: esac
4052: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053: $as_echo "$ac_try_echo"; } >&5
4054: (eval "$ac_try") 2>&5
4055: ac_status=$?
4056: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057: test $ac_status = 0; };
4058: then
4059: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4060: if test "x$CC" != xcc; then
4061: # Test first that cc exists at all.
4062: if { ac_try='cc -c conftest.$ac_ext >&5'
4063: { { case "(($ac_try" in
4064: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065: *) ac_try_echo=$ac_try;;
4066: esac
4067: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068: $as_echo "$ac_try_echo"; } >&5
4069: (eval "$ac_try") 2>&5
4070: ac_status=$?
4071: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072: test $ac_status = 0; }; }; then
4073: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4074: rm -f conftest2.*
4075: if { { case "(($ac_try" in
4076: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077: *) ac_try_echo=$ac_try;;
4078: esac
4079: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080: $as_echo "$ac_try_echo"; } >&5
4081: (eval "$ac_try") 2>&5
4082: ac_status=$?
4083: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084: test $ac_status = 0; } &&
4085: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4086: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087: *) ac_try_echo=$ac_try;;
4088: esac
4089: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090: $as_echo "$ac_try_echo"; } >&5
4091: (eval "$ac_try") 2>&5
4092: ac_status=$?
4093: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094: test $ac_status = 0; };
4095: then
4096: # cc works too.
4097: :
4098: else
4099: # cc exists but doesn't like -o.
4100: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4101: fi
4102: fi
4103: fi
4104: else
4105: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4106: fi
4107: rm -f core conftest*
4108:
4109: fi
4110: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112: $as_echo "yes" >&6; }
4113: else
4114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115: $as_echo "no" >&6; }
4116:
4117: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4118:
4119: fi
4120:
4121: # FIXME: we rely on the cache variable name because
4122: # there is no other way.
4123: set dummy $CC
4124: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4125: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4126: if test "$am_t" != yes; then
4127: # Losing compiler, so override with the script.
4128: # FIXME: It is wrong to rewrite CC.
4129: # But if we don't then we get into trouble of one sort or another.
4130: # A longer-term fix would be to have automake use am__CC in this case,
4131: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132: CC="$am_aux_dir/compile $CC"
4133: fi
4134:
4135:
4136:
4137: if test "$GCC" != yes; then
4138: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4139: fi
4140:
4141: ac_ext=cpp
4142: ac_cpp='$CXXCPP $CPPFLAGS'
4143: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4146: if test -z "$CXX"; then
4147: if test -n "$CCC"; then
4148: CXX=$CCC
4149: else
4150: if test -n "$ac_tool_prefix"; then
4151: for ac_prog in g++-4.4 g++
4152: do
4153: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4154: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156: $as_echo_n "checking for $ac_word... " >&6; }
4157: if test "${ac_cv_prog_CXX+set}" = set; then :
4158: $as_echo_n "(cached) " >&6
4159: else
4160: if test -n "$CXX"; then
4161: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4162: else
4163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164: for as_dir in $PATH
4165: do
4166: IFS=$as_save_IFS
4167: test -z "$as_dir" && as_dir=.
4168: for ac_exec_ext in '' $ac_executable_extensions; do
4169: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4171: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172: break 2
4173: fi
4174: done
4175: done
4176: IFS=$as_save_IFS
4177:
4178: fi
4179: fi
4180: CXX=$ac_cv_prog_CXX
4181: if test -n "$CXX"; then
4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4183: $as_echo "$CXX" >&6; }
4184: else
4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186: $as_echo "no" >&6; }
4187: fi
4188:
4189:
4190: test -n "$CXX" && break
4191: done
4192: fi
4193: if test -z "$CXX"; then
4194: ac_ct_CXX=$CXX
4195: for ac_prog in g++-4.4 g++
4196: do
4197: # Extract the first word of "$ac_prog", so it can be a program name with args.
4198: set dummy $ac_prog; ac_word=$2
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200: $as_echo_n "checking for $ac_word... " >&6; }
4201: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4202: $as_echo_n "(cached) " >&6
4203: else
4204: if test -n "$ac_ct_CXX"; then
4205: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4206: else
4207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208: for as_dir in $PATH
4209: do
4210: IFS=$as_save_IFS
4211: test -z "$as_dir" && as_dir=.
4212: for ac_exec_ext in '' $ac_executable_extensions; do
4213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214: ac_cv_prog_ac_ct_CXX="$ac_prog"
4215: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216: break 2
4217: fi
4218: done
4219: done
4220: IFS=$as_save_IFS
4221:
4222: fi
4223: fi
4224: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4225: if test -n "$ac_ct_CXX"; then
4226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4227: $as_echo "$ac_ct_CXX" >&6; }
4228: else
4229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230: $as_echo "no" >&6; }
4231: fi
4232:
4233:
4234: test -n "$ac_ct_CXX" && break
4235: done
4236:
4237: if test "x$ac_ct_CXX" = x; then
4238: CXX="g++"
4239: else
4240: case $cross_compiling:$ac_tool_warned in
4241: yes:)
4242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244: ac_tool_warned=yes ;;
4245: esac
4246: CXX=$ac_ct_CXX
4247: fi
4248: fi
4249:
4250: fi
4251: fi
4252: # Provide some information about the compiler.
4253: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4254: set X $ac_compile
4255: ac_compiler=$2
4256: for ac_option in --version -v -V -qversion; do
4257: { { ac_try="$ac_compiler $ac_option >&5"
4258: case "(($ac_try" in
4259: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260: *) ac_try_echo=$ac_try;;
4261: esac
4262: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263: $as_echo "$ac_try_echo"; } >&5
4264: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4265: ac_status=$?
4266: if test -s conftest.err; then
4267: sed '10a\
4268: ... rest of stderr output deleted ...
4269: 10q' conftest.err >conftest.er1
4270: cat conftest.er1 >&5
4271: fi
4272: rm -f conftest.er1 conftest.err
4273: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274: test $ac_status = 0; }
4275: done
4276:
4277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4278: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4279: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4280: $as_echo_n "(cached) " >&6
4281: else
4282: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283: /* end confdefs.h. */
4284:
4285: int
4286: main ()
4287: {
4288: #ifndef __GNUC__
4289: choke me
4290: #endif
4291:
4292: ;
4293: return 0;
4294: }
4295: _ACEOF
4296: if ac_fn_cxx_try_compile "$LINENO"; then :
4297: ac_compiler_gnu=yes
4298: else
4299: ac_compiler_gnu=no
4300: fi
4301: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4303:
4304: fi
4305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4306: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4307: if test $ac_compiler_gnu = yes; then
4308: GXX=yes
4309: else
4310: GXX=
4311: fi
4312: ac_test_CXXFLAGS=${CXXFLAGS+set}
4313: ac_save_CXXFLAGS=$CXXFLAGS
4314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4315: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4316: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4317: $as_echo_n "(cached) " >&6
4318: else
4319: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4320: ac_cxx_werror_flag=yes
4321: ac_cv_prog_cxx_g=no
4322: CXXFLAGS="-g"
4323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324: /* end confdefs.h. */
4325:
4326: int
4327: main ()
4328: {
4329:
4330: ;
4331: return 0;
4332: }
4333: _ACEOF
4334: if ac_fn_cxx_try_compile "$LINENO"; then :
4335: ac_cv_prog_cxx_g=yes
4336: else
4337: CXXFLAGS=""
4338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339: /* end confdefs.h. */
4340:
4341: int
4342: main ()
4343: {
4344:
4345: ;
4346: return 0;
4347: }
4348: _ACEOF
4349: if ac_fn_cxx_try_compile "$LINENO"; then :
4350:
4351: else
4352: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4353: CXXFLAGS="-g"
4354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355: /* end confdefs.h. */
4356:
4357: int
4358: main ()
4359: {
4360:
4361: ;
4362: return 0;
4363: }
4364: _ACEOF
4365: if ac_fn_cxx_try_compile "$LINENO"; then :
4366: ac_cv_prog_cxx_g=yes
4367: fi
4368: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369: fi
4370: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371: fi
4372: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4374: fi
4375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4376: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4377: if test "$ac_test_CXXFLAGS" = set; then
4378: CXXFLAGS=$ac_save_CXXFLAGS
4379: elif test $ac_cv_prog_cxx_g = yes; then
4380: if test "$GXX" = yes; then
4381: CXXFLAGS="-g -O2"
4382: else
4383: CXXFLAGS="-g"
4384: fi
4385: else
4386: if test "$GXX" = yes; then
4387: CXXFLAGS="-O2"
4388: else
4389: CXXFLAGS=
4390: fi
4391: fi
4392: ac_ext=c
4393: ac_cpp='$CPP $CPPFLAGS'
4394: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397:
4398: depcc="$CXX" am_compiler_list=
4399:
4400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4401: $as_echo_n "checking dependency style of $depcc... " >&6; }
4402: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4403: $as_echo_n "(cached) " >&6
4404: else
4405: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4406: # We make a subdir and do the tests there. Otherwise we can end up
4407: # making bogus files that we don't know about and never remove. For
4408: # instance it was reported that on HP-UX the gcc test will end up
4409: # making a dummy file named `D' -- because `-MD' means `put the output
4410: # in D'.
4411: mkdir conftest.dir
4412: # Copy depcomp to subdir because otherwise we won't find it if we're
4413: # using a relative directory.
4414: cp "$am_depcomp" conftest.dir
4415: cd conftest.dir
4416: # We will build objects and dependencies in a subdirectory because
4417: # it helps to detect inapplicable dependency modes. For instance
4418: # both Tru64's cc and ICC support -MD to output dependencies as a
4419: # side effect of compilation, but ICC will put the dependencies in
4420: # the current directory while Tru64 will put them in the object
4421: # directory.
4422: mkdir sub
4423:
4424: am_cv_CXX_dependencies_compiler_type=none
4425: if test "$am_compiler_list" = ""; then
4426: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4427: fi
4428: am__universal=false
4429: case " $depcc " in #(
4430: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4431: esac
4432:
4433: for depmode in $am_compiler_list; do
4434: # Setup a source with many dependencies, because some compilers
4435: # like to wrap large dependency lists on column 80 (with \), and
4436: # we should not choose a depcomp mode which is confused by this.
4437: #
4438: # We need to recreate these files for each test, as the compiler may
4439: # overwrite some of them when testing with obscure command lines.
4440: # This happens at least with the AIX C compiler.
4441: : > sub/conftest.c
4442: for i in 1 2 3 4 5 6; do
4443: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4444: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4445: # Solaris 8's {/usr,}/bin/sh.
4446: touch sub/conftst$i.h
4447: done
4448: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4449:
4450: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4451: # mode. It turns out that the SunPro C++ compiler does not properly
4452: # handle `-M -o', and we need to detect this. Also, some Intel
4453: # versions had trouble with output in subdirs
4454: am__obj=sub/conftest.${OBJEXT-o}
4455: am__minus_obj="-o $am__obj"
4456: case $depmode in
4457: gcc)
4458: # This depmode causes a compiler race in universal mode.
4459: test "$am__universal" = false || continue
4460: ;;
4461: nosideeffect)
4462: # after this tag, mechanisms are not by side-effect, so they'll
4463: # only be used when explicitly requested
4464: if test "x$enable_dependency_tracking" = xyes; then
4465: continue
4466: else
4467: break
4468: fi
4469: ;;
4470: msvisualcpp | msvcmsys)
4471: # This compiler won't grok `-c -o', but also, the minuso test has
4472: # not run yet. These depmodes are late enough in the game, and
4473: # so weak that their functioning should not be impacted.
4474: am__obj=conftest.${OBJEXT-o}
4475: am__minus_obj=
4476: ;;
4477: none) break ;;
4478: esac
4479: if depmode=$depmode \
4480: source=sub/conftest.c object=$am__obj \
4481: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4482: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4483: >/dev/null 2>conftest.err &&
4484: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4485: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4486: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4487: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4488: # icc doesn't choke on unknown options, it will just issue warnings
4489: # or remarks (even with -Werror). So we grep stderr for any message
4490: # that says an option was ignored or not supported.
4491: # When given -MP, icc 7.0 and 7.1 complain thusly:
4492: # icc: Command line warning: ignoring option '-M'; no argument required
4493: # The diagnosis changed in icc 8.0:
4494: # icc: Command line remark: option '-MP' not supported
4495: if (grep 'ignoring option' conftest.err ||
4496: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4497: am_cv_CXX_dependencies_compiler_type=$depmode
4498: break
4499: fi
4500: fi
4501: done
4502:
4503: cd ..
4504: rm -rf conftest.dir
4505: else
4506: am_cv_CXX_dependencies_compiler_type=none
4507: fi
4508:
4509: fi
4510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4511: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4512: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4513:
4514: if
4515: test "x$enable_dependency_tracking" != xno \
4516: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4517: am__fastdepCXX_TRUE=
4518: am__fastdepCXX_FALSE='#'
4519: else
4520: am__fastdepCXX_TRUE='#'
4521: am__fastdepCXX_FALSE=
4522: fi
4523:
4524:
4525:
4526: if test "$GXX" != yes; then
4527: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4528: fi
4529:
4530: ac_ext=f
4531: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4532: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4534: if test -n "$ac_tool_prefix"; then
4535: for ac_prog in gfortran-4.4 gfortran
4536: do
4537: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540: $as_echo_n "checking for $ac_word... " >&6; }
4541: if test "${ac_cv_prog_F77+set}" = set; then :
4542: $as_echo_n "(cached) " >&6
4543: else
4544: if test -n "$F77"; then
4545: ac_cv_prog_F77="$F77" # Let the user override the test.
4546: else
4547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548: for as_dir in $PATH
4549: do
4550: IFS=$as_save_IFS
4551: test -z "$as_dir" && as_dir=.
4552: for ac_exec_ext in '' $ac_executable_extensions; do
4553: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4555: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556: break 2
4557: fi
4558: done
4559: done
4560: IFS=$as_save_IFS
4561:
4562: fi
4563: fi
4564: F77=$ac_cv_prog_F77
4565: if test -n "$F77"; then
4566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4567: $as_echo "$F77" >&6; }
4568: else
4569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570: $as_echo "no" >&6; }
4571: fi
4572:
4573:
4574: test -n "$F77" && break
4575: done
4576: fi
4577: if test -z "$F77"; then
4578: ac_ct_F77=$F77
4579: for ac_prog in gfortran-4.4 gfortran
4580: do
4581: # Extract the first word of "$ac_prog", so it can be a program name with args.
4582: set dummy $ac_prog; ac_word=$2
4583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584: $as_echo_n "checking for $ac_word... " >&6; }
4585: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4586: $as_echo_n "(cached) " >&6
4587: else
4588: if test -n "$ac_ct_F77"; then
4589: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4590: else
4591: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592: for as_dir in $PATH
4593: do
4594: IFS=$as_save_IFS
4595: test -z "$as_dir" && as_dir=.
4596: for ac_exec_ext in '' $ac_executable_extensions; do
4597: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598: ac_cv_prog_ac_ct_F77="$ac_prog"
4599: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600: break 2
4601: fi
4602: done
4603: done
4604: IFS=$as_save_IFS
4605:
4606: fi
4607: fi
4608: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4609: if test -n "$ac_ct_F77"; then
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4611: $as_echo "$ac_ct_F77" >&6; }
4612: else
4613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614: $as_echo "no" >&6; }
4615: fi
4616:
4617:
4618: test -n "$ac_ct_F77" && break
4619: done
4620:
4621: if test "x$ac_ct_F77" = x; then
4622: F77=""
4623: else
4624: case $cross_compiling:$ac_tool_warned in
4625: yes:)
4626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628: ac_tool_warned=yes ;;
4629: esac
4630: F77=$ac_ct_F77
4631: fi
4632: fi
4633:
4634:
4635: # Provide some information about the compiler.
4636: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4637: set X $ac_compile
4638: ac_compiler=$2
4639: for ac_option in --version -v -V -qversion; do
4640: { { ac_try="$ac_compiler $ac_option >&5"
4641: case "(($ac_try" in
4642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643: *) ac_try_echo=$ac_try;;
4644: esac
4645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646: $as_echo "$ac_try_echo"; } >&5
4647: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4648: ac_status=$?
4649: if test -s conftest.err; then
4650: sed '10a\
4651: ... rest of stderr output deleted ...
4652: 10q' conftest.err >conftest.er1
4653: cat conftest.er1 >&5
4654: fi
4655: rm -f conftest.er1 conftest.err
4656: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657: test $ac_status = 0; }
4658: done
4659: rm -f a.out
4660:
4661: # If we don't use `.F' as extension, the preprocessor is not run on the
4662: # input file. (Note that this only needs to work for GNU compilers.)
4663: ac_save_ext=$ac_ext
4664: ac_ext=F
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4666: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4667: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4668: $as_echo_n "(cached) " >&6
4669: else
4670: cat > conftest.$ac_ext <<_ACEOF
4671: program main
4672: #ifndef __GNUC__
4673: choke me
4674: #endif
4675:
4676: end
4677: _ACEOF
4678: if ac_fn_f77_try_compile "$LINENO"; then :
4679: ac_compiler_gnu=yes
4680: else
4681: ac_compiler_gnu=no
4682: fi
4683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4685:
4686: fi
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4688: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4689: ac_ext=$ac_save_ext
4690: ac_test_FFLAGS=${FFLAGS+set}
4691: ac_save_FFLAGS=$FFLAGS
4692: FFLAGS=
4693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4694: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4695: if test "${ac_cv_prog_f77_g+set}" = set; then :
4696: $as_echo_n "(cached) " >&6
4697: else
4698: FFLAGS=-g
4699: cat > conftest.$ac_ext <<_ACEOF
4700: program main
4701:
4702: end
4703: _ACEOF
4704: if ac_fn_f77_try_compile "$LINENO"; then :
4705: ac_cv_prog_f77_g=yes
4706: else
4707: ac_cv_prog_f77_g=no
4708: fi
4709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710:
4711: fi
4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4713: $as_echo "$ac_cv_prog_f77_g" >&6; }
4714: if test "$ac_test_FFLAGS" = set; then
4715: FFLAGS=$ac_save_FFLAGS
4716: elif test $ac_cv_prog_f77_g = yes; then
4717: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4718: FFLAGS="-g -O2"
4719: else
4720: FFLAGS="-g"
4721: fi
4722: else
4723: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4724: FFLAGS="-O2"
4725: else
4726: FFLAGS=
4727: fi
4728: fi
4729:
4730: if test $ac_compiler_gnu = yes; then
4731: G77=yes
4732: else
4733: G77=
4734: fi
4735: ac_ext=c
4736: ac_cpp='$CPP $CPPFLAGS'
4737: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740:
4741:
4742: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4743: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4744: fi
4745:
4746: ac_ext=${ac_fc_srcext-f}
4747: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4748: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4749: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4750: if test -n "$ac_tool_prefix"; then
4751: for ac_prog in gfortran-4.4 gfortran
4752: do
4753: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756: $as_echo_n "checking for $ac_word... " >&6; }
4757: if test "${ac_cv_prog_FC+set}" = set; then :
4758: $as_echo_n "(cached) " >&6
4759: else
4760: if test -n "$FC"; then
4761: ac_cv_prog_FC="$FC" # Let the user override the test.
4762: else
4763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764: for as_dir in $PATH
4765: do
4766: IFS=$as_save_IFS
4767: test -z "$as_dir" && as_dir=.
4768: for ac_exec_ext in '' $ac_executable_extensions; do
4769: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772: break 2
4773: fi
4774: done
4775: done
4776: IFS=$as_save_IFS
4777:
4778: fi
4779: fi
4780: FC=$ac_cv_prog_FC
4781: if test -n "$FC"; then
4782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4783: $as_echo "$FC" >&6; }
4784: else
4785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786: $as_echo "no" >&6; }
4787: fi
4788:
4789:
4790: test -n "$FC" && break
4791: done
4792: fi
4793: if test -z "$FC"; then
4794: ac_ct_FC=$FC
4795: for ac_prog in gfortran-4.4 gfortran
4796: do
4797: # Extract the first word of "$ac_prog", so it can be a program name with args.
4798: set dummy $ac_prog; ac_word=$2
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800: $as_echo_n "checking for $ac_word... " >&6; }
4801: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4802: $as_echo_n "(cached) " >&6
4803: else
4804: if test -n "$ac_ct_FC"; then
4805: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4806: else
4807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808: for as_dir in $PATH
4809: do
4810: IFS=$as_save_IFS
4811: test -z "$as_dir" && as_dir=.
4812: for ac_exec_ext in '' $ac_executable_extensions; do
4813: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814: ac_cv_prog_ac_ct_FC="$ac_prog"
4815: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816: break 2
4817: fi
4818: done
4819: done
4820: IFS=$as_save_IFS
4821:
4822: fi
4823: fi
4824: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4825: if test -n "$ac_ct_FC"; then
4826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4827: $as_echo "$ac_ct_FC" >&6; }
4828: else
4829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830: $as_echo "no" >&6; }
4831: fi
4832:
4833:
4834: test -n "$ac_ct_FC" && break
4835: done
4836:
4837: if test "x$ac_ct_FC" = x; then
4838: FC=""
4839: else
4840: case $cross_compiling:$ac_tool_warned in
4841: yes:)
4842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844: ac_tool_warned=yes ;;
4845: esac
4846: FC=$ac_ct_FC
4847: fi
4848: fi
4849:
4850:
4851: # Provide some information about the compiler.
4852: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4853: set X $ac_compile
4854: ac_compiler=$2
4855: for ac_option in --version -v -V -qversion; do
4856: { { ac_try="$ac_compiler $ac_option >&5"
4857: case "(($ac_try" in
4858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859: *) ac_try_echo=$ac_try;;
4860: esac
4861: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862: $as_echo "$ac_try_echo"; } >&5
4863: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4864: ac_status=$?
4865: if test -s conftest.err; then
4866: sed '10a\
4867: ... rest of stderr output deleted ...
4868: 10q' conftest.err >conftest.er1
4869: cat conftest.er1 >&5
4870: fi
4871: rm -f conftest.er1 conftest.err
4872: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873: test $ac_status = 0; }
4874: done
4875: rm -f a.out
4876:
4877: # If we don't use `.F' as extension, the preprocessor is not run on the
4878: # input file. (Note that this only needs to work for GNU compilers.)
4879: ac_save_ext=$ac_ext
4880: ac_ext=F
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4882: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4883: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4884: $as_echo_n "(cached) " >&6
4885: else
4886: cat > conftest.$ac_ext <<_ACEOF
4887: program main
4888: #ifndef __GNUC__
4889: choke me
4890: #endif
4891:
4892: end
4893: _ACEOF
4894: if ac_fn_fc_try_compile "$LINENO"; then :
4895: ac_compiler_gnu=yes
4896: else
4897: ac_compiler_gnu=no
4898: fi
4899: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4901:
4902: fi
4903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4904: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4905: ac_ext=$ac_save_ext
4906: ac_test_FCFLAGS=${FCFLAGS+set}
4907: ac_save_FCFLAGS=$FCFLAGS
4908: FCFLAGS=
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4910: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4911: if test "${ac_cv_prog_fc_g+set}" = set; then :
4912: $as_echo_n "(cached) " >&6
4913: else
4914: FCFLAGS=-g
4915: cat > conftest.$ac_ext <<_ACEOF
4916: program main
4917:
4918: end
4919: _ACEOF
4920: if ac_fn_fc_try_compile "$LINENO"; then :
4921: ac_cv_prog_fc_g=yes
4922: else
4923: ac_cv_prog_fc_g=no
4924: fi
4925: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926:
4927: fi
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4929: $as_echo "$ac_cv_prog_fc_g" >&6; }
4930: if test "$ac_test_FCFLAGS" = set; then
4931: FCFLAGS=$ac_save_FCFLAGS
4932: elif test $ac_cv_prog_fc_g = yes; then
4933: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4934: FCFLAGS="-g -O2"
4935: else
4936: FCFLAGS="-g"
4937: fi
4938: else
4939: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4940: FCFLAGS="-O2"
4941: else
4942: FCFLAGS=
4943: fi
4944: fi
4945:
4946: ac_ext=c
4947: ac_cpp='$CPP $CPPFLAGS'
4948: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951:
4952:
4953: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4954: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4955: fi
4956:
4957: if test x"$FC" != x""; then
4958: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4959: awk -F. '{ printf("%s", $1);}'`
4960: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4961: awk -F. '{ printf("%s", $2);}'`
4962: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4963: OPTIMISATION_F=-O3
4964: else
4965: if test $GCC_VERSION_MAJEURE -ge 5; then
4966: OPTIMISATION_F=-O3
4967: else
4968: OPTIMISATION_F=-O2
4969: fi
4970: fi
4971: fi
4972:
4973:
4974: ac_ext=c
4975: ac_cpp='$CPP $CPPFLAGS'
4976: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981: # On Suns, sometimes $CPP names a directory.
4982: if test -n "$CPP" && test -d "$CPP"; then
4983: CPP=
4984: fi
4985: if test -z "$CPP"; then
4986: if test "${ac_cv_prog_CPP+set}" = set; then :
4987: $as_echo_n "(cached) " >&6
4988: else
4989: # Double quotes because CPP needs to be expanded
4990: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991: do
4992: ac_preproc_ok=false
4993: for ac_c_preproc_warn_flag in '' yes
4994: do
4995: # Use a header file that comes with gcc, so configuring glibc
4996: # with a fresh cross-compiler works.
4997: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998: # <limits.h> exists even on freestanding compilers.
4999: # On the NeXT, cc -E runs the code through the compiler's parser,
5000: # not just through cpp. "Syntax error" is here to catch this case.
5001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002: /* end confdefs.h. */
5003: #ifdef __STDC__
5004: # include <limits.h>
5005: #else
5006: # include <assert.h>
5007: #endif
5008: Syntax error
5009: _ACEOF
5010: if ac_fn_c_try_cpp "$LINENO"; then :
5011:
5012: else
5013: # Broken: fails on valid input.
5014: continue
5015: fi
5016: rm -f conftest.err conftest.$ac_ext
5017:
5018: # OK, works on sane cases. Now check whether nonexistent headers
5019: # can be detected and how.
5020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021: /* end confdefs.h. */
5022: #include <ac_nonexistent.h>
5023: _ACEOF
5024: if ac_fn_c_try_cpp "$LINENO"; then :
5025: # Broken: success on invalid input.
5026: continue
5027: else
5028: # Passes both tests.
5029: ac_preproc_ok=:
5030: break
5031: fi
5032: rm -f conftest.err conftest.$ac_ext
5033:
5034: done
5035: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036: rm -f conftest.err conftest.$ac_ext
5037: if $ac_preproc_ok; then :
5038: break
5039: fi
5040:
5041: done
5042: ac_cv_prog_CPP=$CPP
5043:
5044: fi
5045: CPP=$ac_cv_prog_CPP
5046: else
5047: ac_cv_prog_CPP=$CPP
5048: fi
5049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050: $as_echo "$CPP" >&6; }
5051: ac_preproc_ok=false
5052: for ac_c_preproc_warn_flag in '' yes
5053: do
5054: # Use a header file that comes with gcc, so configuring glibc
5055: # with a fresh cross-compiler works.
5056: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057: # <limits.h> exists even on freestanding compilers.
5058: # On the NeXT, cc -E runs the code through the compiler's parser,
5059: # not just through cpp. "Syntax error" is here to catch this case.
5060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061: /* end confdefs.h. */
5062: #ifdef __STDC__
5063: # include <limits.h>
5064: #else
5065: # include <assert.h>
5066: #endif
5067: Syntax error
5068: _ACEOF
5069: if ac_fn_c_try_cpp "$LINENO"; then :
5070:
5071: else
5072: # Broken: fails on valid input.
5073: continue
5074: fi
5075: rm -f conftest.err conftest.$ac_ext
5076:
5077: # OK, works on sane cases. Now check whether nonexistent headers
5078: # can be detected and how.
5079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080: /* end confdefs.h. */
5081: #include <ac_nonexistent.h>
5082: _ACEOF
5083: if ac_fn_c_try_cpp "$LINENO"; then :
5084: # Broken: success on invalid input.
5085: continue
5086: else
5087: # Passes both tests.
5088: ac_preproc_ok=:
5089: break
5090: fi
5091: rm -f conftest.err conftest.$ac_ext
5092:
5093: done
5094: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095: rm -f conftest.err conftest.$ac_ext
5096: if $ac_preproc_ok; then :
5097:
5098: else
5099: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5102: See \`config.log' for more details." "$LINENO" 5; }
5103: fi
5104:
5105: ac_ext=c
5106: ac_cpp='$CPP $CPPFLAGS'
5107: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110:
5111:
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5113: $as_echo_n "checking for X... " >&6; }
5114:
5115:
5116: # Check whether --with-x was given.
5117: if test "${with_x+set}" = set; then :
5118: withval=$with_x;
5119: fi
5120:
5121: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5122: if test "x$with_x" = xno; then
5123: # The user explicitly disabled X.
5124: have_x=disabled
5125: else
5126: case $x_includes,$x_libraries in #(
5127: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5128: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5129: $as_echo_n "(cached) " >&6
5130: else
5131: # One or both of the vars are not set, and there is no cached value.
5132: ac_x_includes=no ac_x_libraries=no
5133: rm -f -r conftest.dir
5134: if mkdir conftest.dir; then
5135: cd conftest.dir
5136: cat >Imakefile <<'_ACEOF'
5137: incroot:
5138: @echo incroot='${INCROOT}'
5139: usrlibdir:
5140: @echo usrlibdir='${USRLIBDIR}'
5141: libdir:
5142: @echo libdir='${LIBDIR}'
5143: _ACEOF
5144: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5145: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5146: for ac_var in incroot usrlibdir libdir; do
5147: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5148: done
5149: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5150: for ac_extension in a so sl dylib la dll; do
5151: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5152: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5153: ac_im_usrlibdir=$ac_im_libdir; break
5154: fi
5155: done
5156: # Screen out bogus values from the imake configuration. They are
5157: # bogus both because they are the default anyway, and because
5158: # using them would break gcc on systems where it needs fixed includes.
5159: case $ac_im_incroot in
5160: /usr/include) ac_x_includes= ;;
5161: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5162: esac
5163: case $ac_im_usrlibdir in
5164: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5165: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5166: esac
5167: fi
5168: cd ..
5169: rm -f -r conftest.dir
5170: fi
5171:
5172: # Standard set of common directories for X headers.
5173: # Check X11 before X11Rn because it is often a symlink to the current release.
5174: ac_x_header_dirs='
5175: /usr/X11/include
5176: /usr/X11R7/include
5177: /usr/X11R6/include
5178: /usr/X11R5/include
5179: /usr/X11R4/include
5180:
5181: /usr/include/X11
5182: /usr/include/X11R7
5183: /usr/include/X11R6
5184: /usr/include/X11R5
5185: /usr/include/X11R4
5186:
5187: /usr/local/X11/include
5188: /usr/local/X11R7/include
5189: /usr/local/X11R6/include
5190: /usr/local/X11R5/include
5191: /usr/local/X11R4/include
5192:
5193: /usr/local/include/X11
5194: /usr/local/include/X11R7
5195: /usr/local/include/X11R6
5196: /usr/local/include/X11R5
5197: /usr/local/include/X11R4
5198:
5199: /usr/X386/include
5200: /usr/x386/include
5201: /usr/XFree86/include/X11
5202:
5203: /usr/include
5204: /usr/local/include
5205: /usr/unsupported/include
5206: /usr/athena/include
5207: /usr/local/x11r5/include
5208: /usr/lpp/Xamples/include
5209:
5210: /usr/openwin/include
5211: /usr/openwin/share/include'
5212:
5213: if test "$ac_x_includes" = no; then
5214: # Guess where to find include files, by looking for Xlib.h.
5215: # First, try using that file with no special directory specified.
5216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217: /* end confdefs.h. */
5218: #include <X11/Xlib.h>
5219: _ACEOF
5220: if ac_fn_c_try_cpp "$LINENO"; then :
5221: # We can compile using X headers with no special include directory.
5222: ac_x_includes=
5223: else
5224: for ac_dir in $ac_x_header_dirs; do
5225: if test -r "$ac_dir/X11/Xlib.h"; then
5226: ac_x_includes=$ac_dir
5227: break
5228: fi
5229: done
5230: fi
5231: rm -f conftest.err conftest.$ac_ext
5232: fi # $ac_x_includes = no
5233:
5234: if test "$ac_x_libraries" = no; then
5235: # Check for the libraries.
5236: # See if we find them without any special options.
5237: # Don't add to $LIBS permanently.
5238: ac_save_LIBS=$LIBS
5239: LIBS="-lX11 $LIBS"
5240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241: /* end confdefs.h. */
5242: #include <X11/Xlib.h>
5243: int
5244: main ()
5245: {
5246: XrmInitialize ()
5247: ;
5248: return 0;
5249: }
5250: _ACEOF
5251: if ac_fn_c_try_link "$LINENO"; then :
5252: LIBS=$ac_save_LIBS
5253: # We can link X programs with no special library path.
5254: ac_x_libraries=
5255: else
5256: LIBS=$ac_save_LIBS
5257: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5258: do
5259: # Don't even attempt the hair of trying to link an X program!
5260: for ac_extension in a so sl dylib la dll; do
5261: if test -r "$ac_dir/libX11.$ac_extension"; then
5262: ac_x_libraries=$ac_dir
5263: break 2
5264: fi
5265: done
5266: done
5267: fi
5268: rm -f core conftest.err conftest.$ac_objext \
5269: conftest$ac_exeext conftest.$ac_ext
5270: fi # $ac_x_libraries = no
5271:
5272: case $ac_x_includes,$ac_x_libraries in #(
5273: no,* | *,no | *\'*)
5274: # Didn't find X, or a directory has "'" in its name.
5275: ac_cv_have_x="have_x=no";; #(
5276: *)
5277: # Record where we found X for the cache.
5278: ac_cv_have_x="have_x=yes\
5279: ac_x_includes='$ac_x_includes'\
5280: ac_x_libraries='$ac_x_libraries'"
5281: esac
5282: fi
5283: ;; #(
5284: *) have_x=yes;;
5285: esac
5286: eval "$ac_cv_have_x"
5287: fi # $with_x != no
5288:
5289: if test "$have_x" != yes; then
5290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5291: $as_echo "$have_x" >&6; }
5292: no_x=yes
5293: else
5294: # If each of the values was on the command line, it overrides each guess.
5295: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5296: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5297: # Update the cache value to reflect the command line values.
5298: ac_cv_have_x="have_x=yes\
5299: ac_x_includes='$x_includes'\
5300: ac_x_libraries='$x_libraries'"
5301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5302: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5303: fi
5304:
5305: if test "$no_x" = yes; then
5306: # Not all programs may use this symbol, but it does not hurt to define it.
5307:
5308: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5309:
5310: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5311: else
5312: if test -n "$x_includes"; then
5313: X_CFLAGS="$X_CFLAGS -I$x_includes"
5314: fi
5315:
5316: # It would also be nice to do this for all -L options, not just this one.
5317: if test -n "$x_libraries"; then
5318: X_LIBS="$X_LIBS -L$x_libraries"
5319: # For Solaris; some versions of Sun CC require a space after -R and
5320: # others require no space. Words are not sufficient . . . .
5321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5322: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5323: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5324: ac_xsave_c_werror_flag=$ac_c_werror_flag
5325: ac_c_werror_flag=yes
5326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327: /* end confdefs.h. */
5328:
5329: int
5330: main ()
5331: {
5332:
5333: ;
5334: return 0;
5335: }
5336: _ACEOF
5337: if ac_fn_c_try_link "$LINENO"; then :
5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339: $as_echo "no" >&6; }
5340: X_LIBS="$X_LIBS -R$x_libraries"
5341: else
5342: LIBS="$ac_xsave_LIBS -R $x_libraries"
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
5345:
5346: int
5347: main ()
5348: {
5349:
5350: ;
5351: return 0;
5352: }
5353: _ACEOF
5354: if ac_fn_c_try_link "$LINENO"; then :
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356: $as_echo "yes" >&6; }
5357: X_LIBS="$X_LIBS -R $x_libraries"
5358: else
5359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5360: $as_echo "neither works" >&6; }
5361: fi
5362: rm -f core conftest.err conftest.$ac_objext \
5363: conftest$ac_exeext conftest.$ac_ext
5364: fi
5365: rm -f core conftest.err conftest.$ac_objext \
5366: conftest$ac_exeext conftest.$ac_ext
5367: ac_c_werror_flag=$ac_xsave_c_werror_flag
5368: LIBS=$ac_xsave_LIBS
5369: fi
5370:
5371: # Check for system-dependent libraries X programs must link with.
5372: # Do this before checking for the system-independent R6 libraries
5373: # (-lICE), since we may need -lsocket or whatever for X linking.
5374:
5375: if test "$ISC" = yes; then
5376: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5377: else
5378: # Martyn Johnson says this is needed for Ultrix, if the X
5379: # libraries were built with DECnet support. And Karl Berry says
5380: # the Alpha needs dnet_stub (dnet does not exist).
5381: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5382: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383: /* end confdefs.h. */
5384:
5385: /* Override any GCC internal prototype to avoid an error.
5386: Use char because int might match the return type of a GCC
5387: builtin and then its argument prototype would still apply. */
5388: #ifdef __cplusplus
5389: extern "C"
5390: #endif
5391: char XOpenDisplay ();
5392: int
5393: main ()
5394: {
5395: return XOpenDisplay ();
5396: ;
5397: return 0;
5398: }
5399: _ACEOF
5400: if ac_fn_c_try_link "$LINENO"; then :
5401:
5402: else
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5404: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5405: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5406: $as_echo_n "(cached) " >&6
5407: else
5408: ac_check_lib_save_LIBS=$LIBS
5409: LIBS="-ldnet $LIBS"
5410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411: /* end confdefs.h. */
5412:
5413: /* Override any GCC internal prototype to avoid an error.
5414: Use char because int might match the return type of a GCC
5415: builtin and then its argument prototype would still apply. */
5416: #ifdef __cplusplus
5417: extern "C"
5418: #endif
5419: char dnet_ntoa ();
5420: int
5421: main ()
5422: {
5423: return dnet_ntoa ();
5424: ;
5425: return 0;
5426: }
5427: _ACEOF
5428: if ac_fn_c_try_link "$LINENO"; then :
5429: ac_cv_lib_dnet_dnet_ntoa=yes
5430: else
5431: ac_cv_lib_dnet_dnet_ntoa=no
5432: fi
5433: rm -f core conftest.err conftest.$ac_objext \
5434: conftest$ac_exeext conftest.$ac_ext
5435: LIBS=$ac_check_lib_save_LIBS
5436: fi
5437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5438: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5439: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5440: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5441: fi
5442:
5443: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5445: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5446: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5447: $as_echo_n "(cached) " >&6
5448: else
5449: ac_check_lib_save_LIBS=$LIBS
5450: LIBS="-ldnet_stub $LIBS"
5451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452: /* end confdefs.h. */
5453:
5454: /* Override any GCC internal prototype to avoid an error.
5455: Use char because int might match the return type of a GCC
5456: builtin and then its argument prototype would still apply. */
5457: #ifdef __cplusplus
5458: extern "C"
5459: #endif
5460: char dnet_ntoa ();
5461: int
5462: main ()
5463: {
5464: return dnet_ntoa ();
5465: ;
5466: return 0;
5467: }
5468: _ACEOF
5469: if ac_fn_c_try_link "$LINENO"; then :
5470: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5471: else
5472: ac_cv_lib_dnet_stub_dnet_ntoa=no
5473: fi
5474: rm -f core conftest.err conftest.$ac_objext \
5475: conftest$ac_exeext conftest.$ac_ext
5476: LIBS=$ac_check_lib_save_LIBS
5477: fi
5478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5479: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5480: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5481: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5482: fi
5483:
5484: fi
5485: fi
5486: rm -f core conftest.err conftest.$ac_objext \
5487: conftest$ac_exeext conftest.$ac_ext
5488: LIBS="$ac_xsave_LIBS"
5489:
5490: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5491: # to get the SysV transport functions.
5492: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5493: # needs -lnsl.
5494: # The nsl library prevents programs from opening the X display
5495: # on Irix 5.2, according to T.E. Dickey.
5496: # The functions gethostbyname, getservbyname, and inet_addr are
5497: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5498: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5499: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5500:
5501: fi
5502:
5503: if test $ac_cv_func_gethostbyname = no; then
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5505: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5506: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5507: $as_echo_n "(cached) " >&6
5508: else
5509: ac_check_lib_save_LIBS=$LIBS
5510: LIBS="-lnsl $LIBS"
5511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512: /* end confdefs.h. */
5513:
5514: /* Override any GCC internal prototype to avoid an error.
5515: Use char because int might match the return type of a GCC
5516: builtin and then its argument prototype would still apply. */
5517: #ifdef __cplusplus
5518: extern "C"
5519: #endif
5520: char gethostbyname ();
5521: int
5522: main ()
5523: {
5524: return gethostbyname ();
5525: ;
5526: return 0;
5527: }
5528: _ACEOF
5529: if ac_fn_c_try_link "$LINENO"; then :
5530: ac_cv_lib_nsl_gethostbyname=yes
5531: else
5532: ac_cv_lib_nsl_gethostbyname=no
5533: fi
5534: rm -f core conftest.err conftest.$ac_objext \
5535: conftest$ac_exeext conftest.$ac_ext
5536: LIBS=$ac_check_lib_save_LIBS
5537: fi
5538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5539: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5540: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5541: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5542: fi
5543:
5544: if test $ac_cv_lib_nsl_gethostbyname = no; then
5545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5546: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5547: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5548: $as_echo_n "(cached) " >&6
5549: else
5550: ac_check_lib_save_LIBS=$LIBS
5551: LIBS="-lbsd $LIBS"
5552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553: /* end confdefs.h. */
5554:
5555: /* Override any GCC internal prototype to avoid an error.
5556: Use char because int might match the return type of a GCC
5557: builtin and then its argument prototype would still apply. */
5558: #ifdef __cplusplus
5559: extern "C"
5560: #endif
5561: char gethostbyname ();
5562: int
5563: main ()
5564: {
5565: return gethostbyname ();
5566: ;
5567: return 0;
5568: }
5569: _ACEOF
5570: if ac_fn_c_try_link "$LINENO"; then :
5571: ac_cv_lib_bsd_gethostbyname=yes
5572: else
5573: ac_cv_lib_bsd_gethostbyname=no
5574: fi
5575: rm -f core conftest.err conftest.$ac_objext \
5576: conftest$ac_exeext conftest.$ac_ext
5577: LIBS=$ac_check_lib_save_LIBS
5578: fi
5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5580: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5581: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5582: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5583: fi
5584:
5585: fi
5586: fi
5587:
5588: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5589: # socket/setsockopt and other routines are undefined under SCO ODT
5590: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5591: # on later versions), says Simon Leinen: it contains gethostby*
5592: # variants that don't use the name server (or something). -lsocket
5593: # must be given before -lnsl if both are needed. We assume that
5594: # if connect needs -lnsl, so does gethostbyname.
5595: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5596: if test "x$ac_cv_func_connect" = x""yes; then :
5597:
5598: fi
5599:
5600: if test $ac_cv_func_connect = no; then
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5602: $as_echo_n "checking for connect in -lsocket... " >&6; }
5603: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5604: $as_echo_n "(cached) " >&6
5605: else
5606: ac_check_lib_save_LIBS=$LIBS
5607: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609: /* end confdefs.h. */
5610:
5611: /* Override any GCC internal prototype to avoid an error.
5612: Use char because int might match the return type of a GCC
5613: builtin and then its argument prototype would still apply. */
5614: #ifdef __cplusplus
5615: extern "C"
5616: #endif
5617: char connect ();
5618: int
5619: main ()
5620: {
5621: return connect ();
5622: ;
5623: return 0;
5624: }
5625: _ACEOF
5626: if ac_fn_c_try_link "$LINENO"; then :
5627: ac_cv_lib_socket_connect=yes
5628: else
5629: ac_cv_lib_socket_connect=no
5630: fi
5631: rm -f core conftest.err conftest.$ac_objext \
5632: conftest$ac_exeext conftest.$ac_ext
5633: LIBS=$ac_check_lib_save_LIBS
5634: fi
5635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5636: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5637: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5638: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5639: fi
5640:
5641: fi
5642:
5643: # Guillermo Gomez says -lposix is necessary on A/UX.
5644: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5645: if test "x$ac_cv_func_remove" = x""yes; then :
5646:
5647: fi
5648:
5649: if test $ac_cv_func_remove = no; then
5650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5651: $as_echo_n "checking for remove in -lposix... " >&6; }
5652: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5653: $as_echo_n "(cached) " >&6
5654: else
5655: ac_check_lib_save_LIBS=$LIBS
5656: LIBS="-lposix $LIBS"
5657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658: /* end confdefs.h. */
5659:
5660: /* Override any GCC internal prototype to avoid an error.
5661: Use char because int might match the return type of a GCC
5662: builtin and then its argument prototype would still apply. */
5663: #ifdef __cplusplus
5664: extern "C"
5665: #endif
5666: char remove ();
5667: int
5668: main ()
5669: {
5670: return remove ();
5671: ;
5672: return 0;
5673: }
5674: _ACEOF
5675: if ac_fn_c_try_link "$LINENO"; then :
5676: ac_cv_lib_posix_remove=yes
5677: else
5678: ac_cv_lib_posix_remove=no
5679: fi
5680: rm -f core conftest.err conftest.$ac_objext \
5681: conftest$ac_exeext conftest.$ac_ext
5682: LIBS=$ac_check_lib_save_LIBS
5683: fi
5684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5685: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5686: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5687: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5688: fi
5689:
5690: fi
5691:
5692: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5693: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5694: if test "x$ac_cv_func_shmat" = x""yes; then :
5695:
5696: fi
5697:
5698: if test $ac_cv_func_shmat = no; then
5699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5700: $as_echo_n "checking for shmat in -lipc... " >&6; }
5701: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5702: $as_echo_n "(cached) " >&6
5703: else
5704: ac_check_lib_save_LIBS=$LIBS
5705: LIBS="-lipc $LIBS"
5706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707: /* end confdefs.h. */
5708:
5709: /* Override any GCC internal prototype to avoid an error.
5710: Use char because int might match the return type of a GCC
5711: builtin and then its argument prototype would still apply. */
5712: #ifdef __cplusplus
5713: extern "C"
5714: #endif
5715: char shmat ();
5716: int
5717: main ()
5718: {
5719: return shmat ();
5720: ;
5721: return 0;
5722: }
5723: _ACEOF
5724: if ac_fn_c_try_link "$LINENO"; then :
5725: ac_cv_lib_ipc_shmat=yes
5726: else
5727: ac_cv_lib_ipc_shmat=no
5728: fi
5729: rm -f core conftest.err conftest.$ac_objext \
5730: conftest$ac_exeext conftest.$ac_ext
5731: LIBS=$ac_check_lib_save_LIBS
5732: fi
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5734: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5735: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5736: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5737: fi
5738:
5739: fi
5740: fi
5741:
5742: # Check for libraries that X11R6 Xt/Xaw programs need.
5743: ac_save_LDFLAGS=$LDFLAGS
5744: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5745: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5746: # check for ICE first), but we must link in the order -lSM -lICE or
5747: # we get undefined symbols. So assume we have SM if we have ICE.
5748: # These have to be linked with before -lX11, unlike the other
5749: # libraries we check for below, so use a different variable.
5750: # John Interrante, Karl Berry
5751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5752: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5753: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5754: $as_echo_n "(cached) " >&6
5755: else
5756: ac_check_lib_save_LIBS=$LIBS
5757: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759: /* end confdefs.h. */
5760:
5761: /* Override any GCC internal prototype to avoid an error.
5762: Use char because int might match the return type of a GCC
5763: builtin and then its argument prototype would still apply. */
5764: #ifdef __cplusplus
5765: extern "C"
5766: #endif
5767: char IceConnectionNumber ();
5768: int
5769: main ()
5770: {
5771: return IceConnectionNumber ();
5772: ;
5773: return 0;
5774: }
5775: _ACEOF
5776: if ac_fn_c_try_link "$LINENO"; then :
5777: ac_cv_lib_ICE_IceConnectionNumber=yes
5778: else
5779: ac_cv_lib_ICE_IceConnectionNumber=no
5780: fi
5781: rm -f core conftest.err conftest.$ac_objext \
5782: conftest$ac_exeext conftest.$ac_ext
5783: LIBS=$ac_check_lib_save_LIBS
5784: fi
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5786: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5787: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5788: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5789: fi
5790:
5791: LDFLAGS=$ac_save_LDFLAGS
5792:
5793: fi
5794:
5795:
5796: if test "$ac_x_includes" != "no"; then
5797: if test x"$ac_x_includes" != x; then
5798: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5799: includeX="-I$ac_x_includes"
5800: fi
5801: fi
5802: if test "$ac_x_libraries" != "no"; then
5803: if test x"$ac_x_libraries" != x; then
5804: X_LIBS="$X_LIBS -L$ac_x_libraries"
5805: fi
5806: fi
5807:
5808: # Check whether --enable-optimization was given.
5809: if test "${enable_optimization+set}" = set; then :
5810: enableval=$enable_optimization;
5811: if test "$enableval" = "no"; then
5812: CFLAGS=
5813: FFLAGS=
5814: CXXFLAGS=
5815: FCFLAGS=
5816: else
5817: CFLAGS="$CFLAGS $enable_optimization"
5818: FFLAGS="$FFLAGS $enable_optimization"
5819: FCFLAGS="$FCFLAGS $enable_optimization"
5820: fi
5821: else
5822:
5823: CFLAGS="$CFLAGS $OPTIMISATION_C"
5824: FFLAGS="$FFLAGS $OPTIMISATION_F"
5825: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5826:
5827:
5828: fi
5829:
5830:
5831: # Check whether --enable-final-encoding was given.
5832: if test "${enable_final_encoding+set}" = set; then :
5833: enableval=$enable_final_encoding;
5834: if test "$enableval" = "no"; then
5835: FINAL_ENCODING="\$(shell locale charmap)"
5836: else
5837: FINAL_ENCODING="$enable_final_encoding"
5838: fi
5839: else
5840: FINAL_ENCODING="\$(shell locale charmap)"
5841: fi
5842:
5843:
5844: # Check whether --enable-tex was given.
5845: if test "${enable_tex+set}" = set; then :
5846: enableval=$enable_tex;
5847: if test "$enableval" = "no"; then
5848: TEX_SUPPORT=no
5849: else
5850: TEX_SUPPORT=yes
5851: fi
5852: else
5853: TEX_SUPPORT=guessed
5854: fi
5855:
5856:
5857: # Check whether --enable-vim was given.
5858: if test "${enable_vim+set}" = set; then :
5859: enableval=$enable_vim;
5860: if test "$enableval" = "no"; then
5861: VIM_SUPPORT=no
5862: else
5863: VIM_SUPPORT=yes
5864: fi
5865: else
5866: VIM_SUPPORT=guessed
5867: fi
5868:
5869:
5870: # Check whether --enable-embedded-gnuplot was given.
5871: if test "${enable_embedded_gnuplot+set}" = set; then :
5872: enableval=$enable_embedded_gnuplot;
5873: if test "$enableval" = "no"; then
5874: MYGNUPLOT=no
5875: else
5876: MYGNUPLOT=yes
5877: fi
5878: else
5879:
5880: MYGNUPLOT=yes
5881: fi
5882:
5883:
5884: # Check whether --enable-gnuplot was given.
5885: if test "${enable_gnuplot+set}" = set; then :
5886: enableval=$enable_gnuplot;
5887: if test "$enableval" = "no"; then
5888: GNUPLOT_SUPPORT=no
5889: MYGNUPLOT=no
5890: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5891: else
5892: GNUPLOT_SUPPORT=yes
5893: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5894: fi
5895: else
5896:
5897: if test "$MYGNUPLOT" = "yes"; then
5898: GNUPLOT_SUPPORT=yes
5899: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5900: else
5901: GNUPLOT_SUPPORT=guessed
5902: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5903: fi
5904: fi
5905:
5906:
5907: # Check whether --enable-motif was given.
5908: if test "${enable_motif+set}" = set; then :
5909: enableval=$enable_motif;
5910: if test "$enableval" = "no"; then
5911: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5912: else
5913: CFLAGS_ORIG=$CFLAGS
5914: LIBS_ORIG=$LIBS
5915: CFLAGS="$CFLAGS $X_CFLAGS"
5916: LIBS="$LIB $X_LIBS"
5917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5918: $as_echo_n "checking for main in -lXm... " >&6; }
5919: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5920: $as_echo_n "(cached) " >&6
5921: else
5922: ac_check_lib_save_LIBS=$LIBS
5923: LIBS="-lXm $LIBS"
5924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925: /* end confdefs.h. */
5926:
5927:
5928: int
5929: main ()
5930: {
5931: return main ();
5932: ;
5933: return 0;
5934: }
5935: _ACEOF
5936: if ac_fn_c_try_link "$LINENO"; then :
5937: ac_cv_lib_Xm_main=yes
5938: else
5939: ac_cv_lib_Xm_main=no
5940: fi
5941: rm -f core conftest.err conftest.$ac_objext \
5942: conftest$ac_exeext conftest.$ac_ext
5943: LIBS=$ac_check_lib_save_LIBS
5944: fi
5945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5946: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5947: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5948: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5949: else
5950: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5951: fi
5952:
5953: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5954: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5955: Motif flag is disabled.
5956: " >&5
5957: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5958: Motif flag is disabled.
5959: " >&2;}
5960: fi
5961: LIBS=$LIBS_ORIG
5962: CFLAGS=$CFLAGS_ORIG
5963: fi
5964: else
5965: MOTIF_SUPPORT=guessed
5966: fi
5967:
5968:
5969: # Check whether --enable-experimental was given.
5970: if test "${enable_experimental+set}" = set; then :
5971: enableval=$enable_experimental;
5972: if test "$enableval" = "no"; then
5973: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5974: else
5975: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5976: fi
5977: else
5978: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5979: fi
5980:
5981:
5982: # Check whether --enable-debug was given.
5983: if test "${enable_debug+set}" = set; then :
5984: enableval=$enable_debug;
5985: if test "$enableval" = "no"; then
5986: DEBUG=""
5987: DEBUG_CODE="-UDEBUG"
5988: else
5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEBUG=\"-lefence\" in -lefence" >&5
5990: $as_echo_n "checking for DEBUG=\"-lefence\" in -lefence... " >&6; }
5991: if test "${ac_cv_lib_efence_DEBUG___lefence_+set}" = set; then :
5992: $as_echo_n "(cached) " >&6
5993: else
5994: ac_check_lib_save_LIBS=$LIBS
5995: LIBS="-lefence $LIBS"
5996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997: /* end confdefs.h. */
5998:
5999: /* Override any GCC internal prototype to avoid an error.
6000: Use char because int might match the return type of a GCC
6001: builtin and then its argument prototype would still apply. */
6002: #ifdef __cplusplus
6003: extern "C"
6004: #endif
6005: char DEBUG="-lefence" ();
6006: int
6007: main ()
6008: {
6009: return DEBUG="-lefence" ();
6010: ;
6011: return 0;
6012: }
6013: _ACEOF
6014: if ac_fn_c_try_link "$LINENO"; then :
6015: ac_cv_lib_efence_DEBUG___lefence_=yes
6016: else
6017: ac_cv_lib_efence_DEBUG___lefence_=no
6018: fi
6019: rm -f core conftest.err conftest.$ac_objext \
6020: conftest$ac_exeext conftest.$ac_ext
6021: LIBS=$ac_check_lib_save_LIBS
6022: fi
6023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_DEBUG___lefence_" >&5
6024: $as_echo "$ac_cv_lib_efence_DEBUG___lefence_" >&6; }
6025: if test "x$ac_cv_lib_efence_DEBUG___lefence_" = x""yes; then :
6026: DEBUG=""
6027: fi
6028:
6029: DEBUG_CODE="-DDEBUG"
6030: if test "$DEBUG" = ""; then
6031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find efence! You may install it.
6032: Debug flag is disabled.
6033: " >&5
6034: $as_echo "$as_me: WARNING: Can not find efence! You may install it.
6035: Debug flag is disabled.
6036: " >&2;}
6037: fi
6038: fi
6039: else
6040:
6041: DEBUG_CODE="-UDEBUG"
6042: DEBUG=""
6043: fi
6044:
6045:
6046: # Check whether --enable-profile was given.
6047: if test "${enable_profile+set}" = set; then :
6048: enableval=$enable_profile;
6049: if test "$enableval" = "no"; then
6050: PROFILAGE=""
6051: else
6052: PROFILAGE="-pg"
6053: fi
6054: else
6055: PROFILAGE=""
6056: fi
6057:
6058:
6059:
6060:
6061:
6062: if test ! -d tools; then
6063: mkdir tools
6064: fi
6065: if test ! -d "$srcdir"/tools/$NCURSES; then
6066: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6067: (cd "$srcdir/tools" && tar -xf -)
6068: fi
6069: if test ! -d "$srcdir"/tools/$READLINE; then
6070: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6071: (cd "$srcdir/tools" && tar -xf -)
6072: fi
6073: if test ! -d "$srcdir"/tools/$UNITS; then
6074: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6075: (cd "$srcdir/tools" && tar -xf -)
6076: fi
6077: if test ! -d "$srcdir"/tools/$GSL; then
6078: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6079: (cd "$srcdir/tools" && tar -xf -)
6080: fi
6081: if test ! -d "$srcdir"/tools/$GPP; then
6082: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6083: (cd "$srcdir/tools" && tar -xf -)
6084: fi
6085: if test ! -d "$srcdir"/tools/$FILE; then
6086: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6087: (cd "$srcdir/tools" && tar -xf -)
6088: fi
6089: if test ! -d "$srcdir"/tools/$ICONV; then
6090: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6091: (cd "$srcdir/tools" && tar -xf -)
6092: fi
6093:
6094: ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
6095: if test "x$ac_cv_func_asprintf" = x""yes; then :
6096: ASPRINTF=found
6097: else
6098: ASPRINTF=not_found
6099: fi
6100:
6101:
6102: sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > \
6103: "$srcdir"/tools/$FILE/src/Makefile.am2
6104: sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' \
6105: "$srcdir"/tools/$FILE/src/Makefile.am2 | \
6106: sed 's/^file_/rplfile_/g' > \
6107: "$srcdir"/tools/$FILE/src/Makefile.am
6108: \rm -f "$srcdir"/tools/$FILE/src/Makefile.am2
6109: if test $(grep rplfile "$srcdir"/tools/$FILE/magic/Makefile.am | wc -l) \
6110: -eq 0; then \
6111: sed 's/file$/rplfile/g' "$srcdir"/tools/$FILE/magic/Makefile.am > \
6112: "$srcdir"/tools/$FILE/src/Makefile.am2; \
6113: \mv -f "$srcdir"/tools/$FILE/src/Makefile.am2 \
6114: "$srcdir"/tools/$FILE/magic/Makefile.am; \
6115: fi
6116:
6117: # Extract the first word of "libtoolize", so it can be a program name with args.
6118: set dummy libtoolize; ac_word=$2
6119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120: $as_echo_n "checking for $ac_word... " >&6; }
6121: if test "${ac_cv_prog_LIBTOOLIZE+set}" = set; then :
6122: $as_echo_n "(cached) " >&6
6123: else
6124: if test -n "$LIBTOOLIZE"; then
6125: ac_cv_prog_LIBTOOLIZE="$LIBTOOLIZE" # Let the user override the test.
6126: else
6127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128: for as_dir in $PATH
6129: do
6130: IFS=$as_save_IFS
6131: test -z "$as_dir" && as_dir=.
6132: for ac_exec_ext in '' $ac_executable_extensions; do
6133: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134: ac_cv_prog_LIBTOOLIZE="yes"
6135: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136: break 2
6137: fi
6138: done
6139: done
6140: IFS=$as_save_IFS
6141:
6142: test -z "$ac_cv_prog_LIBTOOLIZE" && ac_cv_prog_LIBTOOLIZE="no"
6143: fi
6144: fi
6145: LIBTOOLIZE=$ac_cv_prog_LIBTOOLIZE
6146: if test -n "$LIBTOOLIZE"; then
6147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOLIZE" >&5
6148: $as_echo "$LIBTOOLIZE" >&6; }
6149: else
6150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151: $as_echo "no" >&6; }
6152: fi
6153:
6154:
6155: if test "$LIBTOOLIZE" = "no"; then
6156: as_fn_error "Cannot find libtoolize! You have to install it." "$LINENO" 5
6157: fi
6158:
6159: # Extract the first word of "aclocal", so it can be a program name with args.
6160: set dummy aclocal; ac_word=$2
6161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162: $as_echo_n "checking for $ac_word... " >&6; }
6163: if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6164: $as_echo_n "(cached) " >&6
6165: else
6166: if test -n "$ACLOCAL"; then
6167: ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6168: else
6169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170: for as_dir in $PATH
6171: do
6172: IFS=$as_save_IFS
6173: test -z "$as_dir" && as_dir=.
6174: for ac_exec_ext in '' $ac_executable_extensions; do
6175: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176: ac_cv_prog_ACLOCAL="yes"
6177: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178: break 2
6179: fi
6180: done
6181: done
6182: IFS=$as_save_IFS
6183:
6184: test -z "$ac_cv_prog_ACLOCAL" && ac_cv_prog_ACLOCAL="no"
6185: fi
6186: fi
6187: ACLOCAL=$ac_cv_prog_ACLOCAL
6188: if test -n "$ACLOCAL"; then
6189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6190: $as_echo "$ACLOCAL" >&6; }
6191: else
6192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193: $as_echo "no" >&6; }
6194: fi
6195:
6196:
6197: if test "$ACLOCAL" = "no"; then
6198: as_fn_error "Cannot find aclocal! You have to install it." "$LINENO" 5
6199: fi
6200:
6201: # Extract the first word of "automake", so it can be a program name with args.
6202: set dummy automake; ac_word=$2
6203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204: $as_echo_n "checking for $ac_word... " >&6; }
6205: if test "${ac_cv_prog_AUTOMAKE+set}" = set; then :
6206: $as_echo_n "(cached) " >&6
6207: else
6208: if test -n "$AUTOMAKE"; then
6209: ac_cv_prog_AUTOMAKE="$AUTOMAKE" # Let the user override the test.
6210: else
6211: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212: for as_dir in $PATH
6213: do
6214: IFS=$as_save_IFS
6215: test -z "$as_dir" && as_dir=.
6216: for ac_exec_ext in '' $ac_executable_extensions; do
6217: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218: ac_cv_prog_AUTOMAKE="yes"
6219: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220: break 2
6221: fi
6222: done
6223: done
6224: IFS=$as_save_IFS
6225:
6226: test -z "$ac_cv_prog_AUTOMAKE" && ac_cv_prog_AUTOMAKE="no"
6227: fi
6228: fi
6229: AUTOMAKE=$ac_cv_prog_AUTOMAKE
6230: if test -n "$AUTOMAKE"; then
6231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
6232: $as_echo "$AUTOMAKE" >&6; }
6233: else
6234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235: $as_echo "no" >&6; }
6236: fi
6237:
6238:
6239: if test "$AUTOMAKE" = "no"; then
6240: as_fn_error "Cannot find automake! You have to install it." "$LINENO" 5
6241: fi
6242:
6243: # Extract the first word of "autoconf", so it can be a program name with args.
6244: set dummy autoconf; ac_word=$2
6245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246: $as_echo_n "checking for $ac_word... " >&6; }
6247: if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6248: $as_echo_n "(cached) " >&6
6249: else
6250: if test -n "$AUTOCONF"; then
6251: ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6252: else
6253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254: for as_dir in $PATH
6255: do
6256: IFS=$as_save_IFS
6257: test -z "$as_dir" && as_dir=.
6258: for ac_exec_ext in '' $ac_executable_extensions; do
6259: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260: ac_cv_prog_AUTOCONF="yes"
6261: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262: break 2
6263: fi
6264: done
6265: done
6266: IFS=$as_save_IFS
6267:
6268: test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="no"
6269: fi
6270: fi
6271: AUTOCONF=$ac_cv_prog_AUTOCONF
6272: if test -n "$AUTOCONF"; then
6273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6274: $as_echo "$AUTOCONF" >&6; }
6275: else
6276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277: $as_echo "no" >&6; }
6278: fi
6279:
6280:
6281: if test "$AUTOCONF" = "no"; then
6282: as_fn_error "Cannot find autoconf! You have to install it." "$LINENO" 5
6283: fi
6284:
6285: if test "$ASPRINTF" = not_found; then
6286: if test -z "$(grep asprintf.c \
6287: "$srcdir"/tools/$FILE/src/Makefile.am)"; then
6288: echo Not needed anymore
6289: fi
6290: fi
6291:
6292: (cd "$srcdir"/tools/$FILE && libtoolize --copy --force \
6293: && aclocal && automake -af && autoconf);
6294:
6295:
6296:
6297: # Check whether --enable-final-run-path was given.
6298: if test "${enable_final_run_path+set}" = set; then :
6299: enableval=$enable_final_run_path;
6300: if test "x$enable_final_run_path" = "x"; then
6301: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6302: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6303: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6304: else
6305: RUNPATH="$enable_final_run_path"
6306: fi
6307:
6308: else
6309: RUNPATH="\${prefix}"
6310:
6311: fi
6312:
6313:
6314:
6315:
6316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6317: $as_echo_n "checking whether ln -s works... " >&6; }
6318: LN_S=$as_ln_s
6319: if test "$LN_S" = "ln -s"; then
6320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6321: $as_echo "yes" >&6; }
6322: else
6323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6324: $as_echo "no, using $LN_S" >&6; }
6325: fi
6326:
6327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6328: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6329: set x ${MAKE-make}
6330: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6331: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6332: $as_echo_n "(cached) " >&6
6333: else
6334: cat >conftest.make <<\_ACEOF
6335: SHELL = /bin/sh
6336: all:
6337: @echo '@@@%%%=$(MAKE)=@@@%%%'
6338: _ACEOF
6339: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6340: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6341: *@@@%%%=?*=@@@%%%*)
6342: eval ac_cv_prog_make_${ac_make}_set=yes;;
6343: *)
6344: eval ac_cv_prog_make_${ac_make}_set=no;;
6345: esac
6346: rm -f conftest.make
6347: fi
6348: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6350: $as_echo "yes" >&6; }
6351: SET_MAKE=
6352: else
6353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354: $as_echo "no" >&6; }
6355: SET_MAKE="MAKE=${MAKE-make}"
6356: fi
6357:
6358: if test -n "$ac_tool_prefix"; then
6359: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6360: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362: $as_echo_n "checking for $ac_word... " >&6; }
6363: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6364: $as_echo_n "(cached) " >&6
6365: else
6366: if test -n "$RANLIB"; then
6367: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6368: else
6369: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370: for as_dir in $PATH
6371: do
6372: IFS=$as_save_IFS
6373: test -z "$as_dir" && as_dir=.
6374: for ac_exec_ext in '' $ac_executable_extensions; do
6375: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6377: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378: break 2
6379: fi
6380: done
6381: done
6382: IFS=$as_save_IFS
6383:
6384: fi
6385: fi
6386: RANLIB=$ac_cv_prog_RANLIB
6387: if test -n "$RANLIB"; then
6388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6389: $as_echo "$RANLIB" >&6; }
6390: else
6391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392: $as_echo "no" >&6; }
6393: fi
6394:
6395:
6396: fi
6397: if test -z "$ac_cv_prog_RANLIB"; then
6398: ac_ct_RANLIB=$RANLIB
6399: # Extract the first word of "ranlib", so it can be a program name with args.
6400: set dummy ranlib; ac_word=$2
6401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402: $as_echo_n "checking for $ac_word... " >&6; }
6403: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6404: $as_echo_n "(cached) " >&6
6405: else
6406: if test -n "$ac_ct_RANLIB"; then
6407: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6408: else
6409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410: for as_dir in $PATH
6411: do
6412: IFS=$as_save_IFS
6413: test -z "$as_dir" && as_dir=.
6414: for ac_exec_ext in '' $ac_executable_extensions; do
6415: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416: ac_cv_prog_ac_ct_RANLIB="ranlib"
6417: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418: break 2
6419: fi
6420: done
6421: done
6422: IFS=$as_save_IFS
6423:
6424: fi
6425: fi
6426: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6427: if test -n "$ac_ct_RANLIB"; then
6428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6429: $as_echo "$ac_ct_RANLIB" >&6; }
6430: else
6431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432: $as_echo "no" >&6; }
6433: fi
6434:
6435: if test "x$ac_ct_RANLIB" = x; then
6436: RANLIB=":"
6437: else
6438: case $cross_compiling:$ac_tool_warned in
6439: yes:)
6440: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442: ac_tool_warned=yes ;;
6443: esac
6444: RANLIB=$ac_ct_RANLIB
6445: fi
6446: else
6447: RANLIB="$ac_cv_prog_RANLIB"
6448: fi
6449:
6450:
6451: # Extract the first word of "awk", so it can be a program name with args.
6452: set dummy awk; ac_word=$2
6453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454: $as_echo_n "checking for $ac_word... " >&6; }
6455: if test "${ac_cv_prog_AWK+set}" = set; then :
6456: $as_echo_n "(cached) " >&6
6457: else
6458: if test -n "$AWK"; then
6459: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6460: else
6461: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462: for as_dir in $PATH
6463: do
6464: IFS=$as_save_IFS
6465: test -z "$as_dir" && as_dir=.
6466: for ac_exec_ext in '' $ac_executable_extensions; do
6467: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468: ac_cv_prog_AWK="yes"
6469: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470: break 2
6471: fi
6472: done
6473: done
6474: IFS=$as_save_IFS
6475:
6476: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6477: fi
6478: fi
6479: AWK=$ac_cv_prog_AWK
6480: if test -n "$AWK"; then
6481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6482: $as_echo "$AWK" >&6; }
6483: else
6484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485: $as_echo "no" >&6; }
6486: fi
6487:
6488:
6489: if test "$AWK" = no; then
6490: as_fn_error "Can not find awk !" "$LINENO" 5
6491: fi
6492:
6493: # Extract the first word of "sed", so it can be a program name with args.
6494: set dummy sed; ac_word=$2
6495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496: $as_echo_n "checking for $ac_word... " >&6; }
6497: if test "${ac_cv_prog_SED+set}" = set; then :
6498: $as_echo_n "(cached) " >&6
6499: else
6500: if test -n "$SED"; then
6501: ac_cv_prog_SED="$SED" # Let the user override the test.
6502: else
6503: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504: for as_dir in $PATH
6505: do
6506: IFS=$as_save_IFS
6507: test -z "$as_dir" && as_dir=.
6508: for ac_exec_ext in '' $ac_executable_extensions; do
6509: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510: ac_cv_prog_SED="yes"
6511: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512: break 2
6513: fi
6514: done
6515: done
6516: IFS=$as_save_IFS
6517:
6518: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6519: fi
6520: fi
6521: SED=$ac_cv_prog_SED
6522: if test -n "$SED"; then
6523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6524: $as_echo "$SED" >&6; }
6525: else
6526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527: $as_echo "no" >&6; }
6528: fi
6529:
6530:
6531: if test "$SED" = no; then
6532: as_fn_error "Can not find sed !" "$LINENO" 5
6533: fi
6534:
6535: if test "$TEX_SUPPORT" = guessed; then
6536: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6537:
6538: # Extract the first word of "tex", so it can be a program name with args.
6539: set dummy tex; ac_word=$2
6540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541: $as_echo_n "checking for $ac_word... " >&6; }
6542: if test "${ac_cv_prog_TEX+set}" = set; then :
6543: $as_echo_n "(cached) " >&6
6544: else
6545: if test -n "$TEX"; then
6546: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6547: else
6548: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549: for as_dir in $PATH
6550: do
6551: IFS=$as_save_IFS
6552: test -z "$as_dir" && as_dir=.
6553: for ac_exec_ext in '' $ac_executable_extensions; do
6554: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555: ac_cv_prog_TEX="yes"
6556: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557: break 2
6558: fi
6559: done
6560: done
6561: IFS=$as_save_IFS
6562:
6563: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6564: fi
6565: fi
6566: TEX=$ac_cv_prog_TEX
6567: if test -n "$TEX"; then
6568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6569: $as_echo "$TEX" >&6; }
6570: else
6571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572: $as_echo "no" >&6; }
6573: fi
6574:
6575:
6576: if test "$TEX" = no; then
6577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6578: Download at http://tex.loria.fr/
6579: " >&5
6580: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6581: Download at http://tex.loria.fr/
6582: " >&2;}
6583: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6584: fi
6585:
6586: # Extract the first word of "latex", so it can be a program name with args.
6587: set dummy latex; ac_word=$2
6588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589: $as_echo_n "checking for $ac_word... " >&6; }
6590: if test "${ac_cv_prog_LATEX+set}" = set; then :
6591: $as_echo_n "(cached) " >&6
6592: else
6593: if test -n "$LATEX"; then
6594: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6595: else
6596: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597: for as_dir in $PATH
6598: do
6599: IFS=$as_save_IFS
6600: test -z "$as_dir" && as_dir=.
6601: for ac_exec_ext in '' $ac_executable_extensions; do
6602: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603: ac_cv_prog_LATEX="yes"
6604: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605: break 2
6606: fi
6607: done
6608: done
6609: IFS=$as_save_IFS
6610:
6611: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6612: fi
6613: fi
6614: LATEX=$ac_cv_prog_LATEX
6615: if test -n "$LATEX"; then
6616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6617: $as_echo "$LATEX" >&6; }
6618: else
6619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620: $as_echo "no" >&6; }
6621: fi
6622:
6623:
6624: if test "$LATEX" = no; then
6625: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6626: Download at http://tex.loria.fr/
6627: " >&5
6628: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6629: Download at http://tex.loria.fr/
6630: " >&2;}
6631: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6632: fi
6633:
6634: # Extract the first word of "dvips", so it can be a program name with args.
6635: set dummy dvips; ac_word=$2
6636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637: $as_echo_n "checking for $ac_word... " >&6; }
6638: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6639: $as_echo_n "(cached) " >&6
6640: else
6641: if test -n "$DVIPS"; then
6642: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6643: else
6644: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645: for as_dir in $PATH
6646: do
6647: IFS=$as_save_IFS
6648: test -z "$as_dir" && as_dir=.
6649: for ac_exec_ext in '' $ac_executable_extensions; do
6650: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651: ac_cv_prog_DVIPS="yes"
6652: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653: break 2
6654: fi
6655: done
6656: done
6657: IFS=$as_save_IFS
6658:
6659: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6660: fi
6661: fi
6662: DVIPS=$ac_cv_prog_DVIPS
6663: if test -n "$DVIPS"; then
6664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6665: $as_echo "$DVIPS" >&6; }
6666: else
6667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668: $as_echo "no" >&6; }
6669: fi
6670:
6671:
6672: if test "$DVIPS" = no; then
6673: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6674: Download at http://tex.loria.fr/
6675: " >&5
6676: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6677: Download at http://tex.loria.fr/
6678: " >&2;}
6679: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6680: fi
6681:
6682: # Extract the first word of "gs", so it can be a program name with args.
6683: set dummy gs; ac_word=$2
6684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685: $as_echo_n "checking for $ac_word... " >&6; }
6686: if test "${ac_cv_prog_GS+set}" = set; then :
6687: $as_echo_n "(cached) " >&6
6688: else
6689: if test -n "$GS"; then
6690: ac_cv_prog_GS="$GS" # Let the user override the test.
6691: else
6692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693: for as_dir in $PATH
6694: do
6695: IFS=$as_save_IFS
6696: test -z "$as_dir" && as_dir=.
6697: for ac_exec_ext in '' $ac_executable_extensions; do
6698: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699: ac_cv_prog_GS="yes"
6700: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701: break 2
6702: fi
6703: done
6704: done
6705: IFS=$as_save_IFS
6706:
6707: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6708: fi
6709: fi
6710: GS=$ac_cv_prog_GS
6711: if test -n "$GS"; then
6712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6713: $as_echo "$GS" >&6; }
6714: else
6715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716: $as_echo "no" >&6; }
6717: fi
6718:
6719:
6720: if test "$GS" = no; then
6721: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6722: Download at http://ftp.lip6.fr/
6723: " >&5
6724: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6725: Download at http://ftp.lip6.fr/
6726: " >&2;}
6727: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6728: fi
6729:
6730: # Extract the first word of "gv", so it can be a program name with args.
6731: set dummy gv; ac_word=$2
6732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733: $as_echo_n "checking for $ac_word... " >&6; }
6734: if test "${ac_cv_prog_GV+set}" = set; then :
6735: $as_echo_n "(cached) " >&6
6736: else
6737: if test -n "$GV"; then
6738: ac_cv_prog_GV="$GV" # Let the user override the test.
6739: else
6740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741: for as_dir in $PATH
6742: do
6743: IFS=$as_save_IFS
6744: test -z "$as_dir" && as_dir=.
6745: for ac_exec_ext in '' $ac_executable_extensions; do
6746: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747: ac_cv_prog_GV="yes"
6748: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749: break 2
6750: fi
6751: done
6752: done
6753: IFS=$as_save_IFS
6754:
6755: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6756: fi
6757: fi
6758: GV=$ac_cv_prog_GV
6759: if test -n "$GV"; then
6760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6761: $as_echo "$GV" >&6; }
6762: else
6763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764: $as_echo "no" >&6; }
6765: fi
6766:
6767:
6768: if test "$GV" = no; then
6769: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6770: Download at http://ftp.lip6.fr/
6771: " >&5
6772: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6773: Download at http://ftp.lip6.fr/
6774: " >&2;}
6775: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6776: fi
6777: else
6778: if test "$TEX_SUPPORT" = no; then
6779: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6780: else
6781: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6782: fi
6783: fi
6784:
6785: if test "$GNUPLOT_SUPPORT" = guessed; then
6786: # Extract the first word of "gnuplot", so it can be a program name with args.
6787: set dummy gnuplot; ac_word=$2
6788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789: $as_echo_n "checking for $ac_word... " >&6; }
6790: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6791: $as_echo_n "(cached) " >&6
6792: else
6793: if test -n "$GNUPLOT_P"; then
6794: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6795: else
6796: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797: for as_dir in $PATH
6798: do
6799: IFS=$as_save_IFS
6800: test -z "$as_dir" && as_dir=.
6801: for ac_exec_ext in '' $ac_executable_extensions; do
6802: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803: ac_cv_prog_GNUPLOT_P="yes"
6804: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805: break 2
6806: fi
6807: done
6808: done
6809: IFS=$as_save_IFS
6810:
6811: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6812: fi
6813: fi
6814: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6815: if test -n "$GNUPLOT_P"; then
6816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6817: $as_echo "$GNUPLOT_P" >&6; }
6818: else
6819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820: $as_echo "no" >&6; }
6821: fi
6822:
6823:
6824: if test "$GNUPLOT_P" = no; then
6825: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6826: Download at http://www.gnuplot.vt.edu/
6827: " >&5
6828: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6829: Download at http://www.gnuplot.vt.edu/
6830: " >&2;}
6831: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6832: else
6833: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6834: fi
6835: else
6836: if test "$GNUPLOT_SUPPORT" = no; then
6837: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6838: else
6839: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6840: fi
6841: fi
6842:
6843: if test "$VIM_SUPPORT" = guessed; then
6844: # Extract the first word of "vim", so it can be a program name with args.
6845: set dummy vim; ac_word=$2
6846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847: $as_echo_n "checking for $ac_word... " >&6; }
6848: if test "${ac_cv_prog_VIM+set}" = set; then :
6849: $as_echo_n "(cached) " >&6
6850: else
6851: if test -n "$VIM"; then
6852: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6853: else
6854: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855: for as_dir in $PATH
6856: do
6857: IFS=$as_save_IFS
6858: test -z "$as_dir" && as_dir=.
6859: for ac_exec_ext in '' $ac_executable_extensions; do
6860: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861: ac_cv_prog_VIM="yes"
6862: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863: break 2
6864: fi
6865: done
6866: done
6867: IFS=$as_save_IFS
6868:
6869: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6870: fi
6871: fi
6872: VIM=$ac_cv_prog_VIM
6873: if test -n "$VIM"; then
6874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6875: $as_echo "$VIM" >&6; }
6876: else
6877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878: $as_echo "no" >&6; }
6879: fi
6880:
6881:
6882: if test "$VIM" = no; then
6883: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6884: Download at http://www.vim.org/
6885: " >&5
6886: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6887: Download at http://www.vim.org/
6888: " >&2;}
6889: VIM_SUPPORT="-UVIM_SUPPORT"
6890: else
6891: VIM_SUPPORT="-DVIM_SUPPORT"
6892: fi
6893: else
6894: if test "$VIM_SUPPORT" = no; then
6895: VIM_SUPPORT="-UVIM_SUPPORT"
6896: else
6897: VIM_SUPPORT="-DVIM_SUPPORT"
6898: fi
6899: fi
6900:
6901: if test "$MOTIF_SUPPORT" = guessed; then
6902: CFLAGS_ORIG=$CFLAGS
6903: LIBS_ORIG=$LIBS
6904: CFLAGS="$CFLAGS $X_CFLAGS"
6905: LIBS="$LIB $X_LIBS"
6906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6907: $as_echo_n "checking for main in -lXm... " >&6; }
6908: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6909: $as_echo_n "(cached) " >&6
6910: else
6911: ac_check_lib_save_LIBS=$LIBS
6912: LIBS="-lXm $LIBS"
6913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914: /* end confdefs.h. */
6915:
6916:
6917: int
6918: main ()
6919: {
6920: return main ();
6921: ;
6922: return 0;
6923: }
6924: _ACEOF
6925: if ac_fn_c_try_link "$LINENO"; then :
6926: ac_cv_lib_Xm_main=yes
6927: else
6928: ac_cv_lib_Xm_main=no
6929: fi
6930: rm -f core conftest.err conftest.$ac_objext \
6931: conftest$ac_exeext conftest.$ac_ext
6932: LIBS=$ac_check_lib_save_LIBS
6933: fi
6934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6935: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6936: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6937: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6938: else
6939: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6940: fi
6941:
6942: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6943: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6944: Motif flag is disabled.
6945: " >&5
6946: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6947: Motif flag is disabled.
6948: " >&2;}
6949: fi
6950: LIBS=$LIBS_ORIG
6951: CFLAGS=$CFLAGS_ORIG
6952: fi
6953:
6954: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6955: CFLAGS_ORIG=$CFLAGS
6956: LIBS_ORIG=$LIBS
6957: CFLAGS="$CFLAGS $X_CFLAGS"
6958: LIBS="$LIB $X_LIBS"
6959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6960: $as_echo_n "checking for main in -lXpm... " >&6; }
6961: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6962: $as_echo_n "(cached) " >&6
6963: else
6964: ac_check_lib_save_LIBS=$LIBS
6965: LIBS="-lXpm $LIBS"
6966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967: /* end confdefs.h. */
6968:
6969:
6970: int
6971: main ()
6972: {
6973: return main ();
6974: ;
6975: return 0;
6976: }
6977: _ACEOF
6978: if ac_fn_c_try_link "$LINENO"; then :
6979: ac_cv_lib_Xpm_main=yes
6980: else
6981: ac_cv_lib_Xpm_main=no
6982: fi
6983: rm -f core conftest.err conftest.$ac_objext \
6984: conftest$ac_exeext conftest.$ac_ext
6985: LIBS=$ac_check_lib_save_LIBS
6986: fi
6987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6988: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6989: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6990: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6991: else
6992: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6993: fi
6994:
6995: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6996: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6997: else
6998: libX=""
6999: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
7000: Motif flag is disabled.
7001: " >&5
7002: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
7003: Motif flag is disabled.
7004: " >&2;}
7005: fi
7006: LIBS=$LIBS_ORIG
7007: CFLAGS=$CFLAGS_ORIG
7008: else
7009: libX=""
7010: fi
7011:
7012:
7013:
7014:
7015:
7016:
7017:
7018:
7019:
7020:
7021:
7022: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7023:
7024:
7025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7026: $as_echo_n "checking for main in -lm... " >&6; }
7027: if test "${ac_cv_lib_m_main+set}" = set; then :
7028: $as_echo_n "(cached) " >&6
7029: else
7030: ac_check_lib_save_LIBS=$LIBS
7031: LIBS="-lm $LIBS"
7032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033: /* end confdefs.h. */
7034:
7035:
7036: int
7037: main ()
7038: {
7039: return main ();
7040: ;
7041: return 0;
7042: }
7043: _ACEOF
7044: if ac_fn_c_try_link "$LINENO"; then :
7045: ac_cv_lib_m_main=yes
7046: else
7047: ac_cv_lib_m_main=no
7048: fi
7049: rm -f core conftest.err conftest.$ac_objext \
7050: conftest$ac_exeext conftest.$ac_ext
7051: LIBS=$ac_check_lib_save_LIBS
7052: fi
7053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7054: $as_echo "$ac_cv_lib_m_main" >&6; }
7055: if test "x$ac_cv_lib_m_main" = x""yes; then :
7056: cat >>confdefs.h <<_ACEOF
7057: #define HAVE_LIBM 1
7058: _ACEOF
7059:
7060: LIBS="-lm $LIBS"
7061:
7062: else
7063: as_fn_error "Can not find libm !" "$LINENO" 5
7064: fi
7065:
7066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7067: $as_echo_n "checking for main in -lpthread... " >&6; }
7068: if test "${ac_cv_lib_pthread_main+set}" = set; then :
7069: $as_echo_n "(cached) " >&6
7070: else
7071: ac_check_lib_save_LIBS=$LIBS
7072: LIBS="-lpthread $LIBS"
7073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074: /* end confdefs.h. */
7075:
7076:
7077: int
7078: main ()
7079: {
7080: return main ();
7081: ;
7082: return 0;
7083: }
7084: _ACEOF
7085: if ac_fn_c_try_link "$LINENO"; then :
7086: ac_cv_lib_pthread_main=yes
7087: else
7088: ac_cv_lib_pthread_main=no
7089: fi
7090: rm -f core conftest.err conftest.$ac_objext \
7091: conftest$ac_exeext conftest.$ac_ext
7092: LIBS=$ac_check_lib_save_LIBS
7093: fi
7094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7095: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7096: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7097: cat >>confdefs.h <<_ACEOF
7098: #define HAVE_LIBPTHREAD 1
7099: _ACEOF
7100:
7101: LIBS="-lpthread $LIBS"
7102:
7103: else
7104: as_fn_error "Can not find libpthread !" "$LINENO" 5
7105: fi
7106:
7107:
7108: if test "$CYGWIN" != yes; then
7109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7110: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7111: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7112: $as_echo_n "(cached) " >&6
7113: else
7114: ac_check_lib_save_LIBS=$LIBS
7115: LIBS="-ldl $LIBS"
7116: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117: /* end confdefs.h. */
7118:
7119: /* Override any GCC internal prototype to avoid an error.
7120: Use char because int might match the return type of a GCC
7121: builtin and then its argument prototype would still apply. */
7122: #ifdef __cplusplus
7123: extern "C"
7124: #endif
7125: char dlopen ();
7126: int
7127: main ()
7128: {
7129: return dlopen ();
7130: ;
7131: return 0;
7132: }
7133: _ACEOF
7134: if ac_fn_c_try_link "$LINENO"; then :
7135: ac_cv_lib_dl_dlopen=yes
7136: else
7137: ac_cv_lib_dl_dlopen=no
7138: fi
7139: rm -f core conftest.err conftest.$ac_objext \
7140: conftest$ac_exeext conftest.$ac_ext
7141: LIBS=$ac_check_lib_save_LIBS
7142: fi
7143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7144: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7145: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7146: LIBS="$LIBS -ldl"
7147: else
7148: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7149: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7150: fi
7151:
7152: fi
7153:
7154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7155: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7156: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7157: $as_echo_n "(cached) " >&6
7158: else
7159: ac_check_lib_save_LIBS=$LIBS
7160: LIBS="-lrt $LIBS"
7161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162: /* end confdefs.h. */
7163:
7164: /* Override any GCC internal prototype to avoid an error.
7165: Use char because int might match the return type of a GCC
7166: builtin and then its argument prototype would still apply. */
7167: #ifdef __cplusplus
7168: extern "C"
7169: #endif
7170: char nanosleep ();
7171: int
7172: main ()
7173: {
7174: return nanosleep ();
7175: ;
7176: return 0;
7177: }
7178: _ACEOF
7179: if ac_fn_c_try_link "$LINENO"; then :
7180: ac_cv_lib_rt_nanosleep=yes
7181: else
7182: ac_cv_lib_rt_nanosleep=no
7183: fi
7184: rm -f core conftest.err conftest.$ac_objext \
7185: conftest$ac_exeext conftest.$ac_ext
7186: LIBS=$ac_check_lib_save_LIBS
7187: fi
7188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7189: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7190: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7191: LIBS="$LIBS -lrt"
7192: else
7193: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7194: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7195: fi
7196:
7197:
7198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7199: $as_echo_n "checking for bind in -lsocket... " >&6; }
7200: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7201: $as_echo_n "(cached) " >&6
7202: else
7203: ac_check_lib_save_LIBS=$LIBS
7204: LIBS="-lsocket $LIBS"
7205: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206: /* end confdefs.h. */
7207:
7208: /* Override any GCC internal prototype to avoid an error.
7209: Use char because int might match the return type of a GCC
7210: builtin and then its argument prototype would still apply. */
7211: #ifdef __cplusplus
7212: extern "C"
7213: #endif
7214: char bind ();
7215: int
7216: main ()
7217: {
7218: return bind ();
7219: ;
7220: return 0;
7221: }
7222: _ACEOF
7223: if ac_fn_c_try_link "$LINENO"; then :
7224: ac_cv_lib_socket_bind=yes
7225: else
7226: ac_cv_lib_socket_bind=no
7227: fi
7228: rm -f core conftest.err conftest.$ac_objext \
7229: conftest$ac_exeext conftest.$ac_ext
7230: LIBS=$ac_check_lib_save_LIBS
7231: fi
7232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7233: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7234: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7235: LIBS="$LIBS -lsocket"
7236: else
7237: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7238: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7239: fi
7240:
7241:
7242: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7243:
7244: # Check whether --with-mysql was given.
7245: if test "${with_mysql+set}" = set; then :
7246: withval=$with_mysql;
7247: else
7248: with_mysql=check
7249: fi
7250:
7251:
7252: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7253: libMySQLinc="-I/usr/include"
7254: libMySQLlib="-L/usr/lib"
7255:
7256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7257: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7258: saved_CFLAGS="$CFLAGS"
7259: CFLAGS="$CFLAGS $libMySQLinc"
7260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261: /* end confdefs.h. */
7262: #include "mysql.h"
7263: int
7264: main ()
7265: {
7266:
7267: ;
7268: return 0;
7269: }
7270: _ACEOF
7271: if ac_fn_c_try_compile "$LINENO"; then :
7272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7273: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7274: libMySQLinc=$libMySQLinc/mysql
7275: else
7276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7278: fi
7279: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280: CFLAGS=$saved_CFLAGS
7281:
7282: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7284: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7285: saved_CFLAGS="$CFLAGS"
7286: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288: /* end confdefs.h. */
7289: #include "mysql.h"
7290: int
7291: main ()
7292: {
7293:
7294: ;
7295: return 0;
7296: }
7297: _ACEOF
7298: if ac_fn_c_try_compile "$LINENO"; then :
7299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7301: libMySQLinc=$libMySQLinc
7302: else
7303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7305: fi
7306: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307: CFLAGS=$saved_CFLAGS
7308: libMySQLinc=$libMySQLinc/mysql
7309: fi
7310:
7311: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7313: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7314: saved_CFLAGS="$CFLAGS"
7315: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7316: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317: /* end confdefs.h. */
7318: #include "mysql.h"
7319: int
7320: main ()
7321: {
7322:
7323: ;
7324: return 0;
7325: }
7326: _ACEOF
7327: if ac_fn_c_try_compile "$LINENO"; then :
7328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7329: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7330: libMySQLinc=$libMySQLinc/mysql
7331: else
7332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7334: fi
7335: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336: CFLAGS=$saved_CFLAGS
7337: libMySQLinc=$libMySQLinc/../local/include
7338: libMySQLlib=$libMySQLlib/../local/lib
7339: fi
7340:
7341: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7343: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7344: saved_CFLAGS="$CFLAGS"
7345: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347: /* end confdefs.h. */
7348: #include "mysql.h"
7349: int
7350: main ()
7351: {
7352:
7353: ;
7354: return 0;
7355: }
7356: _ACEOF
7357: if ac_fn_c_try_compile "$LINENO"; then :
7358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7359: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7360: libMySQLinc=$libMySQLinc/mysql
7361: else
7362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7364: fi
7365: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366: CFLAGS=$saved_CFLAGS
7367: libMySQLinc=$libMySQLinc/../local/include/mysql
7368: libMySQLlib=$libMySQLlib/../local/lib
7369: fi
7370: else
7371: if test "x$with_mysql" != xno; then
7372: libMySQLinc="-I$with_mysql/include"
7373: libMySQLlib="-L$with_mysql/lib"
7374:
7375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7376: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7377: saved_CFLAGS="$CFLAGS"
7378: CFLAGS="$CFLAGS $libMySQLinc"
7379: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380: /* end confdefs.h. */
7381: #include "mysql.h"
7382: int
7383: main ()
7384: {
7385:
7386: ;
7387: return 0;
7388: }
7389: _ACEOF
7390: if ac_fn_c_try_compile "$LINENO"; then :
7391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7393: libMySQLinc=$libMySQLinc/mysql
7394: else
7395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7397: fi
7398: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399: CFLAGS=$saved_CFLAGS
7400:
7401: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7403: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7404: saved_CFLAGS="$CFLAGS"
7405: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7406: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407: /* end confdefs.h. */
7408: #include "mysql.h"
7409: int
7410: main ()
7411: {
7412:
7413: ;
7414: return 0;
7415: }
7416: _ACEOF
7417: if ac_fn_c_try_compile "$LINENO"; then :
7418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7419: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7420: libMySQLinc=$libMySQLinc
7421: else
7422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7424: fi
7425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426: CFLAGS=$saved_CFLAGS
7427: libMySQLinc=$libMySQLinc/mysql
7428: fi
7429: else
7430: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7431: fi
7432: fi
7433:
7434: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7435: MYSQL_LIB=no
7436:
7437: if test $MYSQL_LIB = no; then
7438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7439: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7440: saved_LIBS="$LIBS"
7441: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7442: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443: /* end confdefs.h. */
7444: #include "mysql.h"
7445: int
7446: main ()
7447: {
7448: MYSQL mysql; mysql_init(&mysql);
7449: ;
7450: return 0;
7451: }
7452: _ACEOF
7453: if ac_fn_c_try_link "$LINENO"; then :
7454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7456: else
7457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458: $as_echo "no" >&6; }; MYSQL_LIB="no"
7459: fi
7460: rm -f core conftest.err conftest.$ac_objext \
7461: conftest$ac_exeext conftest.$ac_ext
7462: LIBS=$saved_LIBS;
7463: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7464: fi
7465:
7466: if test $MYSQL_LIB = no; then
7467: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7468: fi
7469: fi
7470:
7471: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7472: libMySQLinc=
7473: libMySQLlib=
7474: fi
7475:
7476:
7477:
7478:
7479:
7480: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7481:
7482: # Check whether --with-postgresql was given.
7483: if test "${with_postgresql+set}" = set; then :
7484: withval=$with_postgresql;
7485: else
7486: with_postgresql=check
7487: fi
7488:
7489:
7490: # with_postgresql : check [pas défini], yes [uniquement --with],
7491: # no [--without], valeur [--with=valeur].
7492:
7493: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7494: libPgSQLinc="-I/usr/include"
7495: libPgSQLlib="-L/usr/lib"
7496:
7497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7498: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7499: saved_CFLAGS="$CFLAGS"
7500: CFLAGS="$CFLAGS $libPgSQLinc"
7501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502: /* end confdefs.h. */
7503: #include "libpq-fe.h"
7504: int
7505: main ()
7506: {
7507:
7508: ;
7509: return 0;
7510: }
7511: _ACEOF
7512: if ac_fn_c_try_compile "$LINENO"; then :
7513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7514: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7515: else
7516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7518: fi
7519: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520: CFLAGS=$saved_CFLAGS
7521:
7522: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7524: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7525: saved_CFLAGS="$CFLAGS"
7526: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528: /* end confdefs.h. */
7529: #include "libpq-fe.h"
7530: int
7531: main ()
7532: {
7533:
7534: ;
7535: return 0;
7536: }
7537: _ACEOF
7538: if ac_fn_c_try_compile "$LINENO"; then :
7539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540: $as_echo "yes" >&6; };
7541: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7542: else
7543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544: $as_echo "no" >&6; };
7545: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7546: fi
7547: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548: CFLAGS=$saved_CFLAGS
7549: libPgSQLinc=$libPgSQLinc/postgresql
7550: fi
7551:
7552: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7554: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7555: saved_CFLAGS="$CFLAGS"
7556: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7557: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558: /* end confdefs.h. */
7559: #include "libpq-fe.h"
7560: int
7561: main ()
7562: {
7563:
7564: ;
7565: return 0;
7566: }
7567: _ACEOF
7568: if ac_fn_c_try_compile "$LINENO"; then :
7569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7570: $as_echo "yes" >&6; };
7571: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7572: else
7573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574: $as_echo "no" >&6; };
7575: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7576: fi
7577: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578: CFLAGS=$saved_CFLAGS
7579: libPgSQLinc=$libPgSQLinc/pgsql
7580: fi
7581:
7582: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7584: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7585: saved_CFLAGS="$CFLAGS"
7586: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588: /* end confdefs.h. */
7589: #include "libpq-fe.h"
7590: int
7591: main ()
7592: {
7593:
7594: ;
7595: return 0;
7596: }
7597: _ACEOF
7598: if ac_fn_c_try_compile "$LINENO"; then :
7599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600: $as_echo "yes" >&6; };
7601: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7602: else
7603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604: $as_echo "no" >&6; };
7605: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7606: fi
7607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608: CFLAGS=$saved_CFLAGS
7609: libPgSQLinc=$libPgSQLinc/../local/include
7610: libPgSQLlib=$libPgSQLlib/../local/lib
7611: fi
7612:
7613: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7615: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7616: saved_CFLAGS="$CFLAGS"
7617: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7618: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619: /* end confdefs.h. */
7620: #include "libpq-fe.h"
7621: int
7622: main ()
7623: {
7624:
7625: ;
7626: return 0;
7627: }
7628: _ACEOF
7629: if ac_fn_c_try_compile "$LINENO"; then :
7630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7631: $as_echo "yes" >&6; };
7632: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7633: else
7634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635: $as_echo "no" >&6; };
7636: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7637: fi
7638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639: CFLAGS=$saved_CFLAGS
7640: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7641: libPgSQLlib=$libPgSQLlib/../local/lib
7642: fi
7643:
7644: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7646: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7647: saved_CFLAGS="$CFLAGS"
7648: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7649: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650: /* end confdefs.h. */
7651: #include "libpq-fe.h"
7652: int
7653: main ()
7654: {
7655:
7656: ;
7657: return 0;
7658: }
7659: _ACEOF
7660: if ac_fn_c_try_compile "$LINENO"; then :
7661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7662: $as_echo "yes" >&6; };
7663: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7664: else
7665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666: $as_echo "no" >&6; };
7667: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7668: fi
7669: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670: CFLAGS=$saved_CFLAGS
7671: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7672: libPgSQLlib=$libPgSQLlib/../local/lib
7673: fi
7674: else
7675: if test "x$with_postgresql" != xno; then
7676: libPgSQLinc="-I$with_postgresql/include"
7677: libPgSQLlib="-L$with_postgresql/lib"
7678:
7679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7680: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7681: saved_CFLAGS="$CFLAGS"
7682: CFLAGS="$CFLAGS $libPgSQLinc"
7683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684: /* end confdefs.h. */
7685: #include "libpq-fe.h"
7686: int
7687: main ()
7688: {
7689:
7690: ;
7691: return 0;
7692: }
7693: _ACEOF
7694: if ac_fn_c_try_compile "$LINENO"; then :
7695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7696: $as_echo "yes" >&6; };
7697: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7698: else
7699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700: $as_echo "no" >&6; };
7701: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7702: fi
7703: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704: CFLAGS=$saved_CFLAGS
7705:
7706: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7708: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7709: saved_CFLAGS="$CFLAGS"
7710: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712: /* end confdefs.h. */
7713: #include "libpq-fe.h"
7714: int
7715: main ()
7716: {
7717:
7718: ;
7719: return 0;
7720: }
7721: _ACEOF
7722: if ac_fn_c_try_compile "$LINENO"; then :
7723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724: $as_echo "yes" >&6; };
7725: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7726: else
7727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728: $as_echo "no" >&6; };
7729: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7730: fi
7731: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732: CFLAGS=$saved_CFLAGS
7733: libPgSQLinc=$libPgSQLinc/postgresql
7734: fi
7735:
7736: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7738: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7739: saved_CFLAGS="$CFLAGS"
7740: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742: /* end confdefs.h. */
7743: #include "libpq-fe.h"
7744: int
7745: main ()
7746: {
7747:
7748: ;
7749: return 0;
7750: }
7751: _ACEOF
7752: if ac_fn_c_try_compile "$LINENO"; then :
7753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754: $as_echo "yes" >&6; };
7755: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7756: else
7757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758: $as_echo "no" >&6; };
7759: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7760: fi
7761: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762: CFLAGS=$saved_CFLAGS
7763: libPgSQLinc=$libPgSQLinc/pgsql
7764: fi
7765: else
7766: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7767: fi
7768: fi
7769:
7770: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7771: POSTGRESQL_LIB=no
7772:
7773: if test $POSTGRESQL_LIB = no; then
7774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7775: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7776: saved_LIBS="$LIBS"
7777: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779: /* end confdefs.h. */
7780: #include "libpq-fe.h"
7781: int
7782: main ()
7783: {
7784: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7785: PQconnectdb(conninfo);
7786: ;
7787: return 0;
7788: }
7789: _ACEOF
7790: if ac_fn_c_try_link "$LINENO"; then :
7791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7792: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7793: else
7794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7796: fi
7797: rm -f core conftest.err conftest.$ac_objext \
7798: conftest$ac_exeext conftest.$ac_ext
7799: LIBS=$saved_LIBS;
7800: libPgSQLlib="$libPgSQLlib -lpq"
7801: fi
7802: fi
7803:
7804: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7805: libPgSQLinc=
7806: libPgSQLlib=
7807: fi
7808:
7809:
7810:
7811:
7812:
7813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7814: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7815: if test "${ac_cv_path_GREP+set}" = set; then :
7816: $as_echo_n "(cached) " >&6
7817: else
7818: if test -z "$GREP"; then
7819: ac_path_GREP_found=false
7820: # Loop through the user's path and test for each of PROGNAME-LIST
7821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7823: do
7824: IFS=$as_save_IFS
7825: test -z "$as_dir" && as_dir=.
7826: for ac_prog in grep ggrep; do
7827: for ac_exec_ext in '' $ac_executable_extensions; do
7828: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7829: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7830: # Check for GNU ac_path_GREP and select it if it is found.
7831: # Check for GNU $ac_path_GREP
7832: case `"$ac_path_GREP" --version 2>&1` in
7833: *GNU*)
7834: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7835: *)
7836: ac_count=0
7837: $as_echo_n 0123456789 >"conftest.in"
7838: while :
7839: do
7840: cat "conftest.in" "conftest.in" >"conftest.tmp"
7841: mv "conftest.tmp" "conftest.in"
7842: cp "conftest.in" "conftest.nl"
7843: $as_echo 'GREP' >> "conftest.nl"
7844: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7845: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7846: as_fn_arith $ac_count + 1 && ac_count=$as_val
7847: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7848: # Best one so far, save it but keep looking for a better one
7849: ac_cv_path_GREP="$ac_path_GREP"
7850: ac_path_GREP_max=$ac_count
7851: fi
7852: # 10*(2^10) chars as input seems more than enough
7853: test $ac_count -gt 10 && break
7854: done
7855: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7856: esac
7857:
7858: $ac_path_GREP_found && break 3
7859: done
7860: done
7861: done
7862: IFS=$as_save_IFS
7863: if test -z "$ac_cv_path_GREP"; then
7864: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7865: fi
7866: else
7867: ac_cv_path_GREP=$GREP
7868: fi
7869:
7870: fi
7871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7872: $as_echo "$ac_cv_path_GREP" >&6; }
7873: GREP="$ac_cv_path_GREP"
7874:
7875:
7876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7877: $as_echo_n "checking for egrep... " >&6; }
7878: if test "${ac_cv_path_EGREP+set}" = set; then :
7879: $as_echo_n "(cached) " >&6
7880: else
7881: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7882: then ac_cv_path_EGREP="$GREP -E"
7883: else
7884: if test -z "$EGREP"; then
7885: ac_path_EGREP_found=false
7886: # Loop through the user's path and test for each of PROGNAME-LIST
7887: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7889: do
7890: IFS=$as_save_IFS
7891: test -z "$as_dir" && as_dir=.
7892: for ac_prog in egrep; do
7893: for ac_exec_ext in '' $ac_executable_extensions; do
7894: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7895: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7896: # Check for GNU ac_path_EGREP and select it if it is found.
7897: # Check for GNU $ac_path_EGREP
7898: case `"$ac_path_EGREP" --version 2>&1` in
7899: *GNU*)
7900: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7901: *)
7902: ac_count=0
7903: $as_echo_n 0123456789 >"conftest.in"
7904: while :
7905: do
7906: cat "conftest.in" "conftest.in" >"conftest.tmp"
7907: mv "conftest.tmp" "conftest.in"
7908: cp "conftest.in" "conftest.nl"
7909: $as_echo 'EGREP' >> "conftest.nl"
7910: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7911: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7912: as_fn_arith $ac_count + 1 && ac_count=$as_val
7913: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7914: # Best one so far, save it but keep looking for a better one
7915: ac_cv_path_EGREP="$ac_path_EGREP"
7916: ac_path_EGREP_max=$ac_count
7917: fi
7918: # 10*(2^10) chars as input seems more than enough
7919: test $ac_count -gt 10 && break
7920: done
7921: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7922: esac
7923:
7924: $ac_path_EGREP_found && break 3
7925: done
7926: done
7927: done
7928: IFS=$as_save_IFS
7929: if test -z "$ac_cv_path_EGREP"; then
7930: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7931: fi
7932: else
7933: ac_cv_path_EGREP=$EGREP
7934: fi
7935:
7936: fi
7937: fi
7938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7939: $as_echo "$ac_cv_path_EGREP" >&6; }
7940: EGREP="$ac_cv_path_EGREP"
7941:
7942:
7943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7944: $as_echo_n "checking for ANSI C header files... " >&6; }
7945: if test "${ac_cv_header_stdc+set}" = set; then :
7946: $as_echo_n "(cached) " >&6
7947: else
7948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949: /* end confdefs.h. */
7950: #include <stdlib.h>
7951: #include <stdarg.h>
7952: #include <string.h>
7953: #include <float.h>
7954:
7955: int
7956: main ()
7957: {
7958:
7959: ;
7960: return 0;
7961: }
7962: _ACEOF
7963: if ac_fn_c_try_compile "$LINENO"; then :
7964: ac_cv_header_stdc=yes
7965: else
7966: ac_cv_header_stdc=no
7967: fi
7968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969:
7970: if test $ac_cv_header_stdc = yes; then
7971: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7972: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973: /* end confdefs.h. */
7974: #include <string.h>
7975:
7976: _ACEOF
7977: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978: $EGREP "memchr" >/dev/null 2>&1; then :
7979:
7980: else
7981: ac_cv_header_stdc=no
7982: fi
7983: rm -f conftest*
7984:
7985: fi
7986:
7987: if test $ac_cv_header_stdc = yes; then
7988: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7989: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990: /* end confdefs.h. */
7991: #include <stdlib.h>
7992:
7993: _ACEOF
7994: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995: $EGREP "free" >/dev/null 2>&1; then :
7996:
7997: else
7998: ac_cv_header_stdc=no
7999: fi
8000: rm -f conftest*
8001:
8002: fi
8003:
8004: if test $ac_cv_header_stdc = yes; then
8005: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8006: if test "$cross_compiling" = yes; then :
8007: :
8008: else
8009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010: /* end confdefs.h. */
8011: #include <ctype.h>
8012: #include <stdlib.h>
8013: #if ((' ' & 0x0FF) == 0x020)
8014: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8015: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8016: #else
8017: # define ISLOWER(c) \
8018: (('a' <= (c) && (c) <= 'i') \
8019: || ('j' <= (c) && (c) <= 'r') \
8020: || ('s' <= (c) && (c) <= 'z'))
8021: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8022: #endif
8023:
8024: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8025: int
8026: main ()
8027: {
8028: int i;
8029: for (i = 0; i < 256; i++)
8030: if (XOR (islower (i), ISLOWER (i))
8031: || toupper (i) != TOUPPER (i))
8032: return 2;
8033: return 0;
8034: }
8035: _ACEOF
8036: if ac_fn_c_try_run "$LINENO"; then :
8037:
8038: else
8039: ac_cv_header_stdc=no
8040: fi
8041: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8042: conftest.$ac_objext conftest.beam conftest.$ac_ext
8043: fi
8044:
8045: fi
8046: fi
8047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8048: $as_echo "$ac_cv_header_stdc" >&6; }
8049: if test $ac_cv_header_stdc = yes; then
8050:
8051: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052:
8053: fi
8054:
8055: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8056: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8057: inttypes.h stdint.h unistd.h
8058: do :
8059: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8060: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8061: "
8062: eval as_val=\$$as_ac_Header
8063: if test "x$as_val" = x""yes; then :
8064: cat >>confdefs.h <<_ACEOF
8065: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066: _ACEOF
8067:
8068: fi
8069:
8070: done
8071:
8072:
8073: # The cast to long int works around a bug in the HP C Compiler
8074: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8075: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8076: # This bug is HP SR number 8606223364.
8077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8078: $as_echo_n "checking size of void *... " >&6; }
8079: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8080: $as_echo_n "(cached) " >&6
8081: else
8082: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8083:
8084: else
8085: if test "$ac_cv_type_void_p" = yes; then
8086: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8087: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8088: { as_fn_set_status 77
8089: as_fn_error "cannot compute sizeof (void *)
8090: See \`config.log' for more details." "$LINENO" 5; }; }
8091: else
8092: ac_cv_sizeof_void_p=0
8093: fi
8094: fi
8095:
8096: fi
8097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8098: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8099:
8100:
8101:
8102: cat >>confdefs.h <<_ACEOF
8103: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8104: _ACEOF
8105:
8106:
8107: # The cast to long int works around a bug in the HP C Compiler
8108: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8109: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8110: # This bug is HP SR number 8606223364.
8111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8112: $as_echo_n "checking size of char... " >&6; }
8113: if test "${ac_cv_sizeof_char+set}" = set; then :
8114: $as_echo_n "(cached) " >&6
8115: else
8116: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8117:
8118: else
8119: if test "$ac_cv_type_char" = yes; then
8120: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8121: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8122: { as_fn_set_status 77
8123: as_fn_error "cannot compute sizeof (char)
8124: See \`config.log' for more details." "$LINENO" 5; }; }
8125: else
8126: ac_cv_sizeof_char=0
8127: fi
8128: fi
8129:
8130: fi
8131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8132: $as_echo "$ac_cv_sizeof_char" >&6; }
8133:
8134:
8135:
8136: cat >>confdefs.h <<_ACEOF
8137: #define SIZEOF_CHAR $ac_cv_sizeof_char
8138: _ACEOF
8139:
8140:
8141: # The cast to long int works around a bug in the HP C Compiler
8142: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8143: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8144: # This bug is HP SR number 8606223364.
8145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8146: $as_echo_n "checking size of short int... " >&6; }
8147: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8148: $as_echo_n "(cached) " >&6
8149: else
8150: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8151:
8152: else
8153: if test "$ac_cv_type_short_int" = yes; then
8154: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8155: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8156: { as_fn_set_status 77
8157: as_fn_error "cannot compute sizeof (short int)
8158: See \`config.log' for more details." "$LINENO" 5; }; }
8159: else
8160: ac_cv_sizeof_short_int=0
8161: fi
8162: fi
8163:
8164: fi
8165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8166: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8167:
8168:
8169:
8170: cat >>confdefs.h <<_ACEOF
8171: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8172: _ACEOF
8173:
8174:
8175: # The cast to long int works around a bug in the HP C Compiler
8176: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8177: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8178: # This bug is HP SR number 8606223364.
8179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8180: $as_echo_n "checking size of int... " >&6; }
8181: if test "${ac_cv_sizeof_int+set}" = set; then :
8182: $as_echo_n "(cached) " >&6
8183: else
8184: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8185:
8186: else
8187: if test "$ac_cv_type_int" = yes; then
8188: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8189: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8190: { as_fn_set_status 77
8191: as_fn_error "cannot compute sizeof (int)
8192: See \`config.log' for more details." "$LINENO" 5; }; }
8193: else
8194: ac_cv_sizeof_int=0
8195: fi
8196: fi
8197:
8198: fi
8199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8200: $as_echo "$ac_cv_sizeof_int" >&6; }
8201:
8202:
8203:
8204: cat >>confdefs.h <<_ACEOF
8205: #define SIZEOF_INT $ac_cv_sizeof_int
8206: _ACEOF
8207:
8208:
8209: # The cast to long int works around a bug in the HP C Compiler
8210: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8211: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8212: # This bug is HP SR number 8606223364.
8213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8214: $as_echo_n "checking size of long int... " >&6; }
8215: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8216: $as_echo_n "(cached) " >&6
8217: else
8218: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8219:
8220: else
8221: if test "$ac_cv_type_long_int" = yes; then
8222: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8223: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8224: { as_fn_set_status 77
8225: as_fn_error "cannot compute sizeof (long int)
8226: See \`config.log' for more details." "$LINENO" 5; }; }
8227: else
8228: ac_cv_sizeof_long_int=0
8229: fi
8230: fi
8231:
8232: fi
8233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8234: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8235:
8236:
8237:
8238: cat >>confdefs.h <<_ACEOF
8239: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8240: _ACEOF
8241:
8242:
8243: # The cast to long int works around a bug in the HP C Compiler
8244: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8245: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8246: # This bug is HP SR number 8606223364.
8247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8248: $as_echo_n "checking size of long long int... " >&6; }
8249: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8250: $as_echo_n "(cached) " >&6
8251: else
8252: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8253:
8254: else
8255: if test "$ac_cv_type_long_long_int" = yes; then
8256: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8257: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8258: { as_fn_set_status 77
8259: as_fn_error "cannot compute sizeof (long long int)
8260: See \`config.log' for more details." "$LINENO" 5; }; }
8261: else
8262: ac_cv_sizeof_long_long_int=0
8263: fi
8264: fi
8265:
8266: fi
8267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8268: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8269:
8270:
8271:
8272: cat >>confdefs.h <<_ACEOF
8273: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8274: _ACEOF
8275:
8276:
8277: # The cast to long int works around a bug in the HP C Compiler
8278: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8279: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8280: # This bug is HP SR number 8606223364.
8281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8282: $as_echo_n "checking size of float... " >&6; }
8283: if test "${ac_cv_sizeof_float+set}" = set; then :
8284: $as_echo_n "(cached) " >&6
8285: else
8286: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8287:
8288: else
8289: if test "$ac_cv_type_float" = yes; then
8290: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8291: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8292: { as_fn_set_status 77
8293: as_fn_error "cannot compute sizeof (float)
8294: See \`config.log' for more details." "$LINENO" 5; }; }
8295: else
8296: ac_cv_sizeof_float=0
8297: fi
8298: fi
8299:
8300: fi
8301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8302: $as_echo "$ac_cv_sizeof_float" >&6; }
8303:
8304:
8305:
8306: cat >>confdefs.h <<_ACEOF
8307: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8308: _ACEOF
8309:
8310:
8311: # The cast to long int works around a bug in the HP C Compiler
8312: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8313: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8314: # This bug is HP SR number 8606223364.
8315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8316: $as_echo_n "checking size of double... " >&6; }
8317: if test "${ac_cv_sizeof_double+set}" = set; then :
8318: $as_echo_n "(cached) " >&6
8319: else
8320: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8321:
8322: else
8323: if test "$ac_cv_type_double" = yes; then
8324: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8325: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8326: { as_fn_set_status 77
8327: as_fn_error "cannot compute sizeof (double)
8328: See \`config.log' for more details." "$LINENO" 5; }; }
8329: else
8330: ac_cv_sizeof_double=0
8331: fi
8332: fi
8333:
8334: fi
8335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8336: $as_echo "$ac_cv_sizeof_double" >&6; }
8337:
8338:
8339:
8340: cat >>confdefs.h <<_ACEOF
8341: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8342: _ACEOF
8343:
8344:
8345: # The cast to long int works around a bug in the HP C Compiler
8346: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8347: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8348: # This bug is HP SR number 8606223364.
8349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8350: $as_echo_n "checking size of long double... " >&6; }
8351: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8352: $as_echo_n "(cached) " >&6
8353: else
8354: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8355:
8356: else
8357: if test "$ac_cv_type_long_double" = yes; then
8358: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8359: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8360: { as_fn_set_status 77
8361: as_fn_error "cannot compute sizeof (long double)
8362: See \`config.log' for more details." "$LINENO" 5; }; }
8363: else
8364: ac_cv_sizeof_long_double=0
8365: fi
8366: fi
8367:
8368: fi
8369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8370: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8371:
8372:
8373:
8374: cat >>confdefs.h <<_ACEOF
8375: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8376: _ACEOF
8377:
8378:
8379:
8380: ac_header_dirent=no
8381: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8382: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8384: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8385: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8386: $as_echo_n "(cached) " >&6
8387: else
8388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389: /* end confdefs.h. */
8390: #include <sys/types.h>
8391: #include <$ac_hdr>
8392:
8393: int
8394: main ()
8395: {
8396: if ((DIR *) 0)
8397: return 0;
8398: ;
8399: return 0;
8400: }
8401: _ACEOF
8402: if ac_fn_c_try_compile "$LINENO"; then :
8403: eval "$as_ac_Header=yes"
8404: else
8405: eval "$as_ac_Header=no"
8406: fi
8407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408: fi
8409: eval ac_res=\$$as_ac_Header
8410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8411: $as_echo "$ac_res" >&6; }
8412: eval as_val=\$$as_ac_Header
8413: if test "x$as_val" = x""yes; then :
8414: cat >>confdefs.h <<_ACEOF
8415: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8416: _ACEOF
8417:
8418: ac_header_dirent=$ac_hdr; break
8419: fi
8420:
8421: done
8422: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8423: if test $ac_header_dirent = dirent.h; then
8424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8425: $as_echo_n "checking for library containing opendir... " >&6; }
8426: if test "${ac_cv_search_opendir+set}" = set; then :
8427: $as_echo_n "(cached) " >&6
8428: else
8429: ac_func_search_save_LIBS=$LIBS
8430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431: /* end confdefs.h. */
8432:
8433: /* Override any GCC internal prototype to avoid an error.
8434: Use char because int might match the return type of a GCC
8435: builtin and then its argument prototype would still apply. */
8436: #ifdef __cplusplus
8437: extern "C"
8438: #endif
8439: char opendir ();
8440: int
8441: main ()
8442: {
8443: return opendir ();
8444: ;
8445: return 0;
8446: }
8447: _ACEOF
8448: for ac_lib in '' dir; do
8449: if test -z "$ac_lib"; then
8450: ac_res="none required"
8451: else
8452: ac_res=-l$ac_lib
8453: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8454: fi
8455: if ac_fn_c_try_link "$LINENO"; then :
8456: ac_cv_search_opendir=$ac_res
8457: fi
8458: rm -f core conftest.err conftest.$ac_objext \
8459: conftest$ac_exeext
8460: if test "${ac_cv_search_opendir+set}" = set; then :
8461: break
8462: fi
8463: done
8464: if test "${ac_cv_search_opendir+set}" = set; then :
8465:
8466: else
8467: ac_cv_search_opendir=no
8468: fi
8469: rm conftest.$ac_ext
8470: LIBS=$ac_func_search_save_LIBS
8471: fi
8472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8473: $as_echo "$ac_cv_search_opendir" >&6; }
8474: ac_res=$ac_cv_search_opendir
8475: if test "$ac_res" != no; then :
8476: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8477:
8478: fi
8479:
8480: else
8481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8482: $as_echo_n "checking for library containing opendir... " >&6; }
8483: if test "${ac_cv_search_opendir+set}" = set; then :
8484: $as_echo_n "(cached) " >&6
8485: else
8486: ac_func_search_save_LIBS=$LIBS
8487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488: /* end confdefs.h. */
8489:
8490: /* Override any GCC internal prototype to avoid an error.
8491: Use char because int might match the return type of a GCC
8492: builtin and then its argument prototype would still apply. */
8493: #ifdef __cplusplus
8494: extern "C"
8495: #endif
8496: char opendir ();
8497: int
8498: main ()
8499: {
8500: return opendir ();
8501: ;
8502: return 0;
8503: }
8504: _ACEOF
8505: for ac_lib in '' x; do
8506: if test -z "$ac_lib"; then
8507: ac_res="none required"
8508: else
8509: ac_res=-l$ac_lib
8510: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8511: fi
8512: if ac_fn_c_try_link "$LINENO"; then :
8513: ac_cv_search_opendir=$ac_res
8514: fi
8515: rm -f core conftest.err conftest.$ac_objext \
8516: conftest$ac_exeext
8517: if test "${ac_cv_search_opendir+set}" = set; then :
8518: break
8519: fi
8520: done
8521: if test "${ac_cv_search_opendir+set}" = set; then :
8522:
8523: else
8524: ac_cv_search_opendir=no
8525: fi
8526: rm conftest.$ac_ext
8527: LIBS=$ac_func_search_save_LIBS
8528: fi
8529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8530: $as_echo "$ac_cv_search_opendir" >&6; }
8531: ac_res=$ac_cv_search_opendir
8532: if test "$ac_res" != no; then :
8533: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8534:
8535: fi
8536:
8537: fi
8538:
8539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8540: $as_echo_n "checking for ANSI C header files... " >&6; }
8541: if test "${ac_cv_header_stdc+set}" = set; then :
8542: $as_echo_n "(cached) " >&6
8543: else
8544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545: /* end confdefs.h. */
8546: #include <stdlib.h>
8547: #include <stdarg.h>
8548: #include <string.h>
8549: #include <float.h>
8550:
8551: int
8552: main ()
8553: {
8554:
8555: ;
8556: return 0;
8557: }
8558: _ACEOF
8559: if ac_fn_c_try_compile "$LINENO"; then :
8560: ac_cv_header_stdc=yes
8561: else
8562: ac_cv_header_stdc=no
8563: fi
8564: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565:
8566: if test $ac_cv_header_stdc = yes; then
8567: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569: /* end confdefs.h. */
8570: #include <string.h>
8571:
8572: _ACEOF
8573: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8574: $EGREP "memchr" >/dev/null 2>&1; then :
8575:
8576: else
8577: ac_cv_header_stdc=no
8578: fi
8579: rm -f conftest*
8580:
8581: fi
8582:
8583: if test $ac_cv_header_stdc = yes; then
8584: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586: /* end confdefs.h. */
8587: #include <stdlib.h>
8588:
8589: _ACEOF
8590: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8591: $EGREP "free" >/dev/null 2>&1; then :
8592:
8593: else
8594: ac_cv_header_stdc=no
8595: fi
8596: rm -f conftest*
8597:
8598: fi
8599:
8600: if test $ac_cv_header_stdc = yes; then
8601: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8602: if test "$cross_compiling" = yes; then :
8603: :
8604: else
8605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606: /* end confdefs.h. */
8607: #include <ctype.h>
8608: #include <stdlib.h>
8609: #if ((' ' & 0x0FF) == 0x020)
8610: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8611: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8612: #else
8613: # define ISLOWER(c) \
8614: (('a' <= (c) && (c) <= 'i') \
8615: || ('j' <= (c) && (c) <= 'r') \
8616: || ('s' <= (c) && (c) <= 'z'))
8617: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8618: #endif
8619:
8620: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8621: int
8622: main ()
8623: {
8624: int i;
8625: for (i = 0; i < 256; i++)
8626: if (XOR (islower (i), ISLOWER (i))
8627: || toupper (i) != TOUPPER (i))
8628: return 2;
8629: return 0;
8630: }
8631: _ACEOF
8632: if ac_fn_c_try_run "$LINENO"; then :
8633:
8634: else
8635: ac_cv_header_stdc=no
8636: fi
8637: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8638: conftest.$ac_objext conftest.beam conftest.$ac_ext
8639: fi
8640:
8641: fi
8642: fi
8643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8644: $as_echo "$ac_cv_header_stdc" >&6; }
8645: if test $ac_cv_header_stdc = yes; then
8646:
8647: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8648:
8649: fi
8650:
8651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8652: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8653: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8654: $as_echo_n "(cached) " >&6
8655: else
8656: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657: /* end confdefs.h. */
8658: #include <sys/types.h>
8659: #include <sys/wait.h>
8660: #ifndef WEXITSTATUS
8661: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8662: #endif
8663: #ifndef WIFEXITED
8664: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8665: #endif
8666:
8667: int
8668: main ()
8669: {
8670: int s;
8671: wait (&s);
8672: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8673: ;
8674: return 0;
8675: }
8676: _ACEOF
8677: if ac_fn_c_try_compile "$LINENO"; then :
8678: ac_cv_header_sys_wait_h=yes
8679: else
8680: ac_cv_header_sys_wait_h=no
8681: fi
8682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683: fi
8684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8685: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8686: if test $ac_cv_header_sys_wait_h = yes; then
8687:
8688: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8689:
8690: fi
8691:
8692: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8693: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8694: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8695: do :
8696: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8697: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8698: eval as_val=\$$as_ac_Header
8699: if test "x$as_val" = x""yes; then :
8700: cat >>confdefs.h <<_ACEOF
8701: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702: _ACEOF
8703:
8704: fi
8705:
8706: done
8707:
8708:
8709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8710: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8711: if test "${ac_cv_c_const+set}" = set; then :
8712: $as_echo_n "(cached) " >&6
8713: else
8714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715: /* end confdefs.h. */
8716:
8717: int
8718: main ()
8719: {
8720: /* FIXME: Include the comments suggested by Paul. */
8721: #ifndef __cplusplus
8722: /* Ultrix mips cc rejects this. */
8723: typedef int charset[2];
8724: const charset cs;
8725: /* SunOS 4.1.1 cc rejects this. */
8726: char const *const *pcpcc;
8727: char **ppc;
8728: /* NEC SVR4.0.2 mips cc rejects this. */
8729: struct point {int x, y;};
8730: static struct point const zero = {0,0};
8731: /* AIX XL C 1.02.0.0 rejects this.
8732: It does not let you subtract one const X* pointer from another in
8733: an arm of an if-expression whose if-part is not a constant
8734: expression */
8735: const char *g = "string";
8736: pcpcc = &g + (g ? g-g : 0);
8737: /* HPUX 7.0 cc rejects these. */
8738: ++pcpcc;
8739: ppc = (char**) pcpcc;
8740: pcpcc = (char const *const *) ppc;
8741: { /* SCO 3.2v4 cc rejects this. */
8742: char *t;
8743: char const *s = 0 ? (char *) 0 : (char const *) 0;
8744:
8745: *t++ = 0;
8746: if (s) return 0;
8747: }
8748: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8749: int x[] = {25, 17};
8750: const int *foo = &x[0];
8751: ++foo;
8752: }
8753: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8754: typedef const int *iptr;
8755: iptr p = 0;
8756: ++p;
8757: }
8758: { /* AIX XL C 1.02.0.0 rejects this saying
8759: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8760: struct s { int j; const int *ap[3]; };
8761: struct s *b; b->j = 5;
8762: }
8763: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8764: const int foo = 10;
8765: if (!foo) return 0;
8766: }
8767: return !cs[0] && !zero.x;
8768: #endif
8769:
8770: ;
8771: return 0;
8772: }
8773: _ACEOF
8774: if ac_fn_c_try_compile "$LINENO"; then :
8775: ac_cv_c_const=yes
8776: else
8777: ac_cv_c_const=no
8778: fi
8779: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780: fi
8781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8782: $as_echo "$ac_cv_c_const" >&6; }
8783: if test $ac_cv_c_const = no; then
8784:
8785: $as_echo "#define const /**/" >>confdefs.h
8786:
8787: fi
8788:
8789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8790: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8791: if test "${ac_cv_type_uid_t+set}" = set; then :
8792: $as_echo_n "(cached) " >&6
8793: else
8794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795: /* end confdefs.h. */
8796: #include <sys/types.h>
8797:
8798: _ACEOF
8799: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8800: $EGREP "uid_t" >/dev/null 2>&1; then :
8801: ac_cv_type_uid_t=yes
8802: else
8803: ac_cv_type_uid_t=no
8804: fi
8805: rm -f conftest*
8806:
8807: fi
8808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8809: $as_echo "$ac_cv_type_uid_t" >&6; }
8810: if test $ac_cv_type_uid_t = no; then
8811:
8812: $as_echo "#define uid_t int" >>confdefs.h
8813:
8814:
8815: $as_echo "#define gid_t int" >>confdefs.h
8816:
8817: fi
8818:
8819: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8820: if test "x$ac_cv_type_pid_t" = x""yes; then :
8821:
8822: else
8823:
8824: cat >>confdefs.h <<_ACEOF
8825: #define pid_t int
8826: _ACEOF
8827:
8828: fi
8829:
8830: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8831: if test "x$ac_cv_type_size_t" = x""yes; then :
8832:
8833: else
8834:
8835: cat >>confdefs.h <<_ACEOF
8836: #define size_t unsigned int
8837: _ACEOF
8838:
8839: fi
8840:
8841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8842: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8843: if test "${ac_cv_header_time+set}" = set; then :
8844: $as_echo_n "(cached) " >&6
8845: else
8846: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847: /* end confdefs.h. */
8848: #include <sys/types.h>
8849: #include <sys/time.h>
8850: #include <time.h>
8851:
8852: int
8853: main ()
8854: {
8855: if ((struct tm *) 0)
8856: return 0;
8857: ;
8858: return 0;
8859: }
8860: _ACEOF
8861: if ac_fn_c_try_compile "$LINENO"; then :
8862: ac_cv_header_time=yes
8863: else
8864: ac_cv_header_time=no
8865: fi
8866: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867: fi
8868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8869: $as_echo "$ac_cv_header_time" >&6; }
8870: if test $ac_cv_header_time = yes; then
8871:
8872: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8873:
8874: fi
8875:
8876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8877: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8878: if test "${ac_cv_struct_tm+set}" = set; then :
8879: $as_echo_n "(cached) " >&6
8880: else
8881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882: /* end confdefs.h. */
8883: #include <sys/types.h>
8884: #include <time.h>
8885:
8886: int
8887: main ()
8888: {
8889: struct tm tm;
8890: int *p = &tm.tm_sec;
8891: return !p;
8892: ;
8893: return 0;
8894: }
8895: _ACEOF
8896: if ac_fn_c_try_compile "$LINENO"; then :
8897: ac_cv_struct_tm=time.h
8898: else
8899: ac_cv_struct_tm=sys/time.h
8900: fi
8901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902: fi
8903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8904: $as_echo "$ac_cv_struct_tm" >&6; }
8905: if test $ac_cv_struct_tm = sys/time.h; then
8906:
8907: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8908:
8909: fi
8910:
8911:
8912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8913: $as_echo_n "checking return type of signal handlers... " >&6; }
8914: if test "${ac_cv_type_signal+set}" = set; then :
8915: $as_echo_n "(cached) " >&6
8916: else
8917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918: /* end confdefs.h. */
8919: #include <sys/types.h>
8920: #include <signal.h>
8921:
8922: int
8923: main ()
8924: {
8925: return *(signal (0, 0)) (0) == 1;
8926: ;
8927: return 0;
8928: }
8929: _ACEOF
8930: if ac_fn_c_try_compile "$LINENO"; then :
8931: ac_cv_type_signal=int
8932: else
8933: ac_cv_type_signal=void
8934: fi
8935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936: fi
8937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8938: $as_echo "$ac_cv_type_signal" >&6; }
8939:
8940: cat >>confdefs.h <<_ACEOF
8941: #define RETSIGTYPE $ac_cv_type_signal
8942: _ACEOF
8943:
8944:
8945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8946: $as_echo_n "checking for working strcoll... " >&6; }
8947: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8948: $as_echo_n "(cached) " >&6
8949: else
8950: if test "$cross_compiling" = yes; then :
8951: ac_cv_func_strcoll_works=no
8952: else
8953: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954: /* end confdefs.h. */
8955: $ac_includes_default
8956: int
8957: main ()
8958: {
8959: return (strcoll ("abc", "def") >= 0 ||
8960: strcoll ("ABC", "DEF") >= 0 ||
8961: strcoll ("123", "456") >= 0)
8962: ;
8963: return 0;
8964: }
8965: _ACEOF
8966: if ac_fn_c_try_run "$LINENO"; then :
8967: ac_cv_func_strcoll_works=yes
8968: else
8969: ac_cv_func_strcoll_works=no
8970: fi
8971: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8972: conftest.$ac_objext conftest.beam conftest.$ac_ext
8973: fi
8974:
8975: fi
8976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8977: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8978: if test $ac_cv_func_strcoll_works = yes; then
8979:
8980: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8981:
8982: fi
8983:
8984: for ac_func in strftime
8985: do :
8986: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8987: if test "x$ac_cv_func_strftime" = x""yes; then :
8988: cat >>confdefs.h <<_ACEOF
8989: #define HAVE_STRFTIME 1
8990: _ACEOF
8991:
8992: else
8993: # strftime is in -lintl on SCO UNIX.
8994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8995: $as_echo_n "checking for strftime in -lintl... " >&6; }
8996: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8997: $as_echo_n "(cached) " >&6
8998: else
8999: ac_check_lib_save_LIBS=$LIBS
9000: LIBS="-lintl $LIBS"
9001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002: /* end confdefs.h. */
9003:
9004: /* Override any GCC internal prototype to avoid an error.
9005: Use char because int might match the return type of a GCC
9006: builtin and then its argument prototype would still apply. */
9007: #ifdef __cplusplus
9008: extern "C"
9009: #endif
9010: char strftime ();
9011: int
9012: main ()
9013: {
9014: return strftime ();
9015: ;
9016: return 0;
9017: }
9018: _ACEOF
9019: if ac_fn_c_try_link "$LINENO"; then :
9020: ac_cv_lib_intl_strftime=yes
9021: else
9022: ac_cv_lib_intl_strftime=no
9023: fi
9024: rm -f core conftest.err conftest.$ac_objext \
9025: conftest$ac_exeext conftest.$ac_ext
9026: LIBS=$ac_check_lib_save_LIBS
9027: fi
9028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9029: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9030: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9031: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9032:
9033: LIBS="-lintl $LIBS"
9034: fi
9035:
9036: fi
9037: done
9038:
9039: for ac_func in vprintf
9040: do :
9041: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9042: if test "x$ac_cv_func_vprintf" = x""yes; then :
9043: cat >>confdefs.h <<_ACEOF
9044: #define HAVE_VPRINTF 1
9045: _ACEOF
9046:
9047: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9048: if test "x$ac_cv_func__doprnt" = x""yes; then :
9049:
9050: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9051:
9052: fi
9053:
9054: fi
9055: done
9056:
9057:
9058: for ac_func in ftime getcwd putenv select strcspn strdup \
9059: strerror strspn strstr strtod
9060: do :
9061: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9062: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9063: eval as_val=\$$as_ac_var
9064: if test "x$as_val" = x""yes; then :
9065: cat >>confdefs.h <<_ACEOF
9066: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9067: _ACEOF
9068:
9069: fi
9070: done
9071:
9072:
9073:
9074:
9075: subdirs="$subdirs tools/$NCURSES"
9076:
9077: subdirs="$subdirs tools/$READLINE"
9078:
9079: subdirs="$subdirs tools/$UNITS"
9080:
9081: subdirs="$subdirs tools/$GSL"
9082:
9083: subdirs="$subdirs tools/$GPP"
9084:
9085: subdirs="$subdirs tools/$FILE"
9086:
9087: subdirs="$subdirs tools/$ICONV"
9088:
9089:
9090: if test "$MYGNUPLOT" = "yes"; then
9091: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9092: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9093: (cd "$srcdir/tools" && tar -xf -)
9094: fi
9095: subdirs="$subdirs tools/$GNUPLOT"
9096:
9097: GNUPLOT_COMPILATION=$GNUPLOT
9098: else
9099: GNUPLOT_COMPILATION=
9100: fi
9101:
9102:
9103:
9104: case $host_cpu in
9105:
9106: i?86)
9107: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9108: -Wno-pointer-sign"
9109: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9110: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9111: break ;;
9112:
9113: x86_64*)
9114: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9115: -Wno-pointer-sign"
9116: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9117: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9118: break ;;
9119:
9120: alpha*)
9121: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9122: -Wno-pointer-sign"
9123: FFLAGS="$FFLAGS -mieee -Wall"
9124: FCFLAGS="$FCFLAGS -mieee -Wall"
9125: break ;;
9126:
9127: sparc*)
9128: CFLAGS="$CFLAGS -Wall -funsigned-char \
9129: -Wno-pointer-sign"
9130: FFLAGS="$FFLAGS -Wall"
9131: FCFLAGS="$FCFLAGS -Wall"
9132: break ;;
9133:
9134: esac
9135:
9136: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9137: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9138:
9139: if test $(uname) = "SunOS"; then
9140: LIBMTMALLOC=-lmtmalloc
9141: else
9142: LIBMTMALLOC=
9143: fi
9144:
9145:
9146:
9147:
9148:
9149:
9150:
9151:
9152:
9153:
9154:
9155:
9156:
9157:
9158:
9159:
9160:
9161:
9162:
9163:
9164: ac_config_files="$ac_config_files Makefile"
9165:
9166: ac_config_files="$ac_config_files COPYING"
9167:
9168: ac_config_files="$ac_config_files tools/Makefile"
9169:
9170: ac_config_files="$ac_config_files src/Makefile"
9171:
9172: ac_config_files="$ac_config_files man/Makefile"
9173:
9174: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9175:
9176: ac_config_files="$ac_config_files doc/Makefile"
9177:
9178: ac_config_files="$ac_config_files scripts/Makefile"
9179:
9180: ac_config_files="$ac_config_files scripts/mkrplso"
9181:
9182: ac_config_files="$ac_config_files scripts/rplcc"
9183:
9184: ac_config_files="$ac_config_files scripts/rpllink"
9185:
9186: ac_config_files="$ac_config_files rpltags/Makefile"
9187:
9188: ac_config_files="$ac_config_files rpliconv/Makefile"
9189:
9190: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9191:
9192: ac_config_files="$ac_config_files lapack/blas/Makefile"
9193:
9194:
9195: ac_config_files="$ac_config_files man/rpl.1"
9196:
9197: ac_config_files="$ac_config_files man/rplcc.1"
9198:
9199: ac_config_files="$ac_config_files man/rpllink.1"
9200:
9201: ac_config_files="$ac_config_files man/rpltags.1"
9202:
9203: ac_config_files="$ac_config_files man/mkrplso.1"
9204:
9205: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9206:
9207: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9208:
9209: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9210:
9211: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9212:
9213: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9214:
9215:
9216: cat >confcache <<\_ACEOF
9217: # This file is a shell script that caches the results of configure
9218: # tests run on this system so they can be shared between configure
9219: # scripts and configure runs, see configure's option --config-cache.
9220: # It is not useful on other systems. If it contains results you don't
9221: # want to keep, you may remove or edit it.
9222: #
9223: # config.status only pays attention to the cache file if you give it
9224: # the --recheck option to rerun configure.
9225: #
9226: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9227: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9228: # following values.
9229:
9230: _ACEOF
9231:
9232: # The following way of writing the cache mishandles newlines in values,
9233: # but we know of no workaround that is simple, portable, and efficient.
9234: # So, we kill variables containing newlines.
9235: # Ultrix sh set writes to stderr and can't be redirected directly,
9236: # and sets the high bit in the cache file unless we assign to the vars.
9237: (
9238: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9239: eval ac_val=\$$ac_var
9240: case $ac_val in #(
9241: *${as_nl}*)
9242: case $ac_var in #(
9243: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9244: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9245: esac
9246: case $ac_var in #(
9247: _ | IFS | as_nl) ;; #(
9248: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9249: *) { eval $ac_var=; unset $ac_var;} ;;
9250: esac ;;
9251: esac
9252: done
9253:
9254: (set) 2>&1 |
9255: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9256: *${as_nl}ac_space=\ *)
9257: # `set' does not quote correctly, so add quotes: double-quote
9258: # substitution turns \\\\ into \\, and sed turns \\ into \.
9259: sed -n \
9260: "s/'/'\\\\''/g;
9261: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9262: ;; #(
9263: *)
9264: # `set' quotes correctly as required by POSIX, so do not add quotes.
9265: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9266: ;;
9267: esac |
9268: sort
9269: ) |
9270: sed '
9271: /^ac_cv_env_/b end
9272: t clear
9273: :clear
9274: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9275: t end
9276: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9277: :end' >>confcache
9278: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9279: if test -w "$cache_file"; then
9280: test "x$cache_file" != "x/dev/null" &&
9281: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9282: $as_echo "$as_me: updating cache $cache_file" >&6;}
9283: cat confcache >$cache_file
9284: else
9285: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9286: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9287: fi
9288: fi
9289: rm -f confcache
9290:
9291: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9292: # Let make expand exec_prefix.
9293: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9294:
9295: DEFS=-DHAVE_CONFIG_H
9296:
9297: ac_libobjs=
9298: ac_ltlibobjs=
9299: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9300: # 1. Remove the extension, and $U if already installed.
9301: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9302: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9303: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9304: # will be set to the directory where LIBOBJS objects are built.
9305: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9306: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9307: done
9308: LIBOBJS=$ac_libobjs
9309:
9310: LTLIBOBJS=$ac_ltlibobjs
9311:
9312:
9313: if test -n "$EXEEXT"; then
9314: am__EXEEXT_TRUE=
9315: am__EXEEXT_FALSE='#'
9316: else
9317: am__EXEEXT_TRUE='#'
9318: am__EXEEXT_FALSE=
9319: fi
9320:
9321: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9322: as_fn_error "conditional \"AMDEP\" was never defined.
9323: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9324: fi
9325: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9326: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9327: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9328: fi
9329: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9330: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9331: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9332: fi
9333:
9334: : ${CONFIG_STATUS=./config.status}
9335: ac_write_fail=0
9336: ac_clean_files_save=$ac_clean_files
9337: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9338: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9339: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9340: as_write_fail=0
9341: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9342: #! $SHELL
9343: # Generated by $as_me.
9344: # Run this file to recreate the current configuration.
9345: # Compiler output produced by configure, useful for debugging
9346: # configure, is in config.log if it exists.
9347:
9348: debug=false
9349: ac_cs_recheck=false
9350: ac_cs_silent=false
9351:
9352: SHELL=\${CONFIG_SHELL-$SHELL}
9353: export SHELL
9354: _ASEOF
9355: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9356: ## -------------------- ##
9357: ## M4sh Initialization. ##
9358: ## -------------------- ##
9359:
9360: # Be more Bourne compatible
9361: DUALCASE=1; export DUALCASE # for MKS sh
9362: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9363: emulate sh
9364: NULLCMD=:
9365: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9366: # is contrary to our usage. Disable this feature.
9367: alias -g '${1+"$@"}'='"$@"'
9368: setopt NO_GLOB_SUBST
9369: else
9370: case `(set -o) 2>/dev/null` in #(
9371: *posix*) :
9372: set -o posix ;; #(
9373: *) :
9374: ;;
9375: esac
9376: fi
9377:
9378:
9379: as_nl='
9380: '
9381: export as_nl
9382: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9383: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9384: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9385: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9386: # Prefer a ksh shell builtin over an external printf program on Solaris,
9387: # but without wasting forks for bash or zsh.
9388: if test -z "$BASH_VERSION$ZSH_VERSION" \
9389: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9390: as_echo='print -r --'
9391: as_echo_n='print -rn --'
9392: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9393: as_echo='printf %s\n'
9394: as_echo_n='printf %s'
9395: else
9396: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9397: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9398: as_echo_n='/usr/ucb/echo -n'
9399: else
9400: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9401: as_echo_n_body='eval
9402: arg=$1;
9403: case $arg in #(
9404: *"$as_nl"*)
9405: expr "X$arg" : "X\\(.*\\)$as_nl";
9406: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9407: esac;
9408: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9409: '
9410: export as_echo_n_body
9411: as_echo_n='sh -c $as_echo_n_body as_echo'
9412: fi
9413: export as_echo_body
9414: as_echo='sh -c $as_echo_body as_echo'
9415: fi
9416:
9417: # The user is always right.
9418: if test "${PATH_SEPARATOR+set}" != set; then
9419: PATH_SEPARATOR=:
9420: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9421: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9422: PATH_SEPARATOR=';'
9423: }
9424: fi
9425:
9426:
9427: # IFS
9428: # We need space, tab and new line, in precisely that order. Quoting is
9429: # there to prevent editors from complaining about space-tab.
9430: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9431: # splitting by setting IFS to empty value.)
9432: IFS=" "" $as_nl"
9433:
9434: # Find who we are. Look in the path if we contain no directory separator.
9435: case $0 in #((
9436: *[\\/]* ) as_myself=$0 ;;
9437: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438: for as_dir in $PATH
9439: do
9440: IFS=$as_save_IFS
9441: test -z "$as_dir" && as_dir=.
9442: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9443: done
9444: IFS=$as_save_IFS
9445:
9446: ;;
9447: esac
9448: # We did not find ourselves, most probably we were run as `sh COMMAND'
9449: # in which case we are not to be found in the path.
9450: if test "x$as_myself" = x; then
9451: as_myself=$0
9452: fi
9453: if test ! -f "$as_myself"; then
9454: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9455: exit 1
9456: fi
9457:
9458: # Unset variables that we do not need and which cause bugs (e.g. in
9459: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9460: # suppresses any "Segmentation fault" message there. '((' could
9461: # trigger a bug in pdksh 5.2.14.
9462: for as_var in BASH_ENV ENV MAIL MAILPATH
9463: do eval test x\${$as_var+set} = xset \
9464: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9465: done
9466: PS1='$ '
9467: PS2='> '
9468: PS4='+ '
9469:
9470: # NLS nuisances.
9471: LC_ALL=C
9472: export LC_ALL
9473: LANGUAGE=C
9474: export LANGUAGE
9475:
9476: # CDPATH.
9477: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9478:
9479:
9480: # as_fn_error ERROR [LINENO LOG_FD]
9481: # ---------------------------------
9482: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9483: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9484: # script with status $?, using 1 if that was 0.
9485: as_fn_error ()
9486: {
9487: as_status=$?; test $as_status -eq 0 && as_status=1
9488: if test "$3"; then
9489: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9490: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9491: fi
9492: $as_echo "$as_me: error: $1" >&2
9493: as_fn_exit $as_status
9494: } # as_fn_error
9495:
9496:
9497: # as_fn_set_status STATUS
9498: # -----------------------
9499: # Set $? to STATUS, without forking.
9500: as_fn_set_status ()
9501: {
9502: return $1
9503: } # as_fn_set_status
9504:
9505: # as_fn_exit STATUS
9506: # -----------------
9507: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9508: as_fn_exit ()
9509: {
9510: set +e
9511: as_fn_set_status $1
9512: exit $1
9513: } # as_fn_exit
9514:
9515: # as_fn_unset VAR
9516: # ---------------
9517: # Portably unset VAR.
9518: as_fn_unset ()
9519: {
9520: { eval $1=; unset $1;}
9521: }
9522: as_unset=as_fn_unset
9523: # as_fn_append VAR VALUE
9524: # ----------------------
9525: # Append the text in VALUE to the end of the definition contained in VAR. Take
9526: # advantage of any shell optimizations that allow amortized linear growth over
9527: # repeated appends, instead of the typical quadratic growth present in naive
9528: # implementations.
9529: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9530: eval 'as_fn_append ()
9531: {
9532: eval $1+=\$2
9533: }'
9534: else
9535: as_fn_append ()
9536: {
9537: eval $1=\$$1\$2
9538: }
9539: fi # as_fn_append
9540:
9541: # as_fn_arith ARG...
9542: # ------------------
9543: # Perform arithmetic evaluation on the ARGs, and store the result in the
9544: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9545: # must be portable across $(()) and expr.
9546: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9547: eval 'as_fn_arith ()
9548: {
9549: as_val=$(( $* ))
9550: }'
9551: else
9552: as_fn_arith ()
9553: {
9554: as_val=`expr "$@" || test $? -eq 1`
9555: }
9556: fi # as_fn_arith
9557:
9558:
9559: if expr a : '\(a\)' >/dev/null 2>&1 &&
9560: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9561: as_expr=expr
9562: else
9563: as_expr=false
9564: fi
9565:
9566: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9567: as_basename=basename
9568: else
9569: as_basename=false
9570: fi
9571:
9572: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9573: as_dirname=dirname
9574: else
9575: as_dirname=false
9576: fi
9577:
9578: as_me=`$as_basename -- "$0" ||
9579: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9580: X"$0" : 'X\(//\)$' \| \
9581: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9582: $as_echo X/"$0" |
9583: sed '/^.*\/\([^/][^/]*\)\/*$/{
9584: s//\1/
9585: q
9586: }
9587: /^X\/\(\/\/\)$/{
9588: s//\1/
9589: q
9590: }
9591: /^X\/\(\/\).*/{
9592: s//\1/
9593: q
9594: }
9595: s/.*/./; q'`
9596:
9597: # Avoid depending upon Character Ranges.
9598: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9599: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9600: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9601: as_cr_digits='0123456789'
9602: as_cr_alnum=$as_cr_Letters$as_cr_digits
9603:
9604: ECHO_C= ECHO_N= ECHO_T=
9605: case `echo -n x` in #(((((
9606: -n*)
9607: case `echo 'xy\c'` in
9608: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9609: xy) ECHO_C='\c';;
9610: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9611: ECHO_T=' ';;
9612: esac;;
9613: *)
9614: ECHO_N='-n';;
9615: esac
9616:
9617: rm -f conf$$ conf$$.exe conf$$.file
9618: if test -d conf$$.dir; then
9619: rm -f conf$$.dir/conf$$.file
9620: else
9621: rm -f conf$$.dir
9622: mkdir conf$$.dir 2>/dev/null
9623: fi
9624: if (echo >conf$$.file) 2>/dev/null; then
9625: if ln -s conf$$.file conf$$ 2>/dev/null; then
9626: as_ln_s='ln -s'
9627: # ... but there are two gotchas:
9628: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9629: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9630: # In both cases, we have to default to `cp -p'.
9631: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9632: as_ln_s='cp -p'
9633: elif ln conf$$.file conf$$ 2>/dev/null; then
9634: as_ln_s=ln
9635: else
9636: as_ln_s='cp -p'
9637: fi
9638: else
9639: as_ln_s='cp -p'
9640: fi
9641: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9642: rmdir conf$$.dir 2>/dev/null
9643:
9644:
9645: # as_fn_mkdir_p
9646: # -------------
9647: # Create "$as_dir" as a directory, including parents if necessary.
9648: as_fn_mkdir_p ()
9649: {
9650:
9651: case $as_dir in #(
9652: -*) as_dir=./$as_dir;;
9653: esac
9654: test -d "$as_dir" || eval $as_mkdir_p || {
9655: as_dirs=
9656: while :; do
9657: case $as_dir in #(
9658: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9659: *) as_qdir=$as_dir;;
9660: esac
9661: as_dirs="'$as_qdir' $as_dirs"
9662: as_dir=`$as_dirname -- "$as_dir" ||
9663: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9664: X"$as_dir" : 'X\(//\)[^/]' \| \
9665: X"$as_dir" : 'X\(//\)$' \| \
9666: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9667: $as_echo X"$as_dir" |
9668: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9669: s//\1/
9670: q
9671: }
9672: /^X\(\/\/\)[^/].*/{
9673: s//\1/
9674: q
9675: }
9676: /^X\(\/\/\)$/{
9677: s//\1/
9678: q
9679: }
9680: /^X\(\/\).*/{
9681: s//\1/
9682: q
9683: }
9684: s/.*/./; q'`
9685: test -d "$as_dir" && break
9686: done
9687: test -z "$as_dirs" || eval "mkdir $as_dirs"
9688: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9689:
9690:
9691: } # as_fn_mkdir_p
9692: if mkdir -p . 2>/dev/null; then
9693: as_mkdir_p='mkdir -p "$as_dir"'
9694: else
9695: test -d ./-p && rmdir ./-p
9696: as_mkdir_p=false
9697: fi
9698:
9699: if test -x / >/dev/null 2>&1; then
9700: as_test_x='test -x'
9701: else
9702: if ls -dL / >/dev/null 2>&1; then
9703: as_ls_L_option=L
9704: else
9705: as_ls_L_option=
9706: fi
9707: as_test_x='
9708: eval sh -c '\''
9709: if test -d "$1"; then
9710: test -d "$1/.";
9711: else
9712: case $1 in #(
9713: -*)set "./$1";;
9714: esac;
9715: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9716: ???[sx]*):;;*)false;;esac;fi
9717: '\'' sh
9718: '
9719: fi
9720: as_executable_p=$as_test_x
9721:
9722: # Sed expression to map a string onto a valid CPP name.
9723: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9724:
9725: # Sed expression to map a string onto a valid variable name.
9726: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9727:
9728:
9729: exec 6>&1
9730: ## ----------------------------------- ##
9731: ## Main body of $CONFIG_STATUS script. ##
9732: ## ----------------------------------- ##
9733: _ASEOF
9734: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9735:
9736: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9737: # Save the log message, to keep $0 and so on meaningful, and to
9738: # report actual input values of CONFIG_FILES etc. instead of their
9739: # values after options handling.
9740: ac_log="
9741: This file was extended by rpl $as_me 4.0.9, which was
9742: generated by GNU Autoconf 2.65. Invocation command line was
9743:
9744: CONFIG_FILES = $CONFIG_FILES
9745: CONFIG_HEADERS = $CONFIG_HEADERS
9746: CONFIG_LINKS = $CONFIG_LINKS
9747: CONFIG_COMMANDS = $CONFIG_COMMANDS
9748: $ $0 $@
9749:
9750: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9751: "
9752:
9753: _ACEOF
9754:
9755: case $ac_config_files in *"
9756: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9757: esac
9758:
9759: case $ac_config_headers in *"
9760: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9761: esac
9762:
9763:
9764: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9765: # Files that config.status was made for.
9766: config_files="$ac_config_files"
9767: config_headers="$ac_config_headers"
9768: config_commands="$ac_config_commands"
9769:
9770: _ACEOF
9771:
9772: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9773: ac_cs_usage="\
9774: \`$as_me' instantiates files and other configuration actions
9775: from templates according to the current configuration. Unless the files
9776: and actions are specified as TAGs, all are instantiated by default.
9777:
9778: Usage: $0 [OPTION]... [TAG]...
9779:
9780: -h, --help print this help, then exit
9781: -V, --version print version number and configuration settings, then exit
9782: --config print configuration, then exit
9783: -q, --quiet, --silent
9784: do not print progress messages
9785: -d, --debug don't remove temporary files
9786: --recheck update $as_me by reconfiguring in the same conditions
9787: --file=FILE[:TEMPLATE]
9788: instantiate the configuration file FILE
9789: --header=FILE[:TEMPLATE]
9790: instantiate the configuration header FILE
9791:
9792: Configuration files:
9793: $config_files
9794:
9795: Configuration headers:
9796: $config_headers
9797:
9798: Configuration commands:
9799: $config_commands
9800:
9801: Report bugs to the package provider."
9802:
9803: _ACEOF
9804: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9805: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9806: ac_cs_version="\\
9807: rpl config.status 4.0.9
9808: configured by $0, generated by GNU Autoconf 2.65,
9809: with options \\"\$ac_cs_config\\"
9810:
9811: Copyright (C) 2009 Free Software Foundation, Inc.
9812: This config.status script is free software; the Free Software Foundation
9813: gives unlimited permission to copy, distribute and modify it."
9814:
9815: ac_pwd='$ac_pwd'
9816: srcdir='$srcdir'
9817: INSTALL='$INSTALL'
9818: MKDIR_P='$MKDIR_P'
9819: AWK='$AWK'
9820: test -n "\$AWK" || AWK=awk
9821: _ACEOF
9822:
9823: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9824: # The default lists apply if the user does not specify any file.
9825: ac_need_defaults=:
9826: while test $# != 0
9827: do
9828: case $1 in
9829: --*=*)
9830: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9831: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9832: ac_shift=:
9833: ;;
9834: *)
9835: ac_option=$1
9836: ac_optarg=$2
9837: ac_shift=shift
9838: ;;
9839: esac
9840:
9841: case $ac_option in
9842: # Handling of the options.
9843: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9844: ac_cs_recheck=: ;;
9845: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9846: $as_echo "$ac_cs_version"; exit ;;
9847: --config | --confi | --conf | --con | --co | --c )
9848: $as_echo "$ac_cs_config"; exit ;;
9849: --debug | --debu | --deb | --de | --d | -d )
9850: debug=: ;;
9851: --file | --fil | --fi | --f )
9852: $ac_shift
9853: case $ac_optarg in
9854: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9855: esac
9856: as_fn_append CONFIG_FILES " '$ac_optarg'"
9857: ac_need_defaults=false;;
9858: --header | --heade | --head | --hea )
9859: $ac_shift
9860: case $ac_optarg in
9861: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9862: esac
9863: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9864: ac_need_defaults=false;;
9865: --he | --h)
9866: # Conflict between --help and --header
9867: as_fn_error "ambiguous option: \`$1'
9868: Try \`$0 --help' for more information.";;
9869: --help | --hel | -h )
9870: $as_echo "$ac_cs_usage"; exit ;;
9871: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9872: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9873: ac_cs_silent=: ;;
9874:
9875: # This is an error.
9876: -*) as_fn_error "unrecognized option: \`$1'
9877: Try \`$0 --help' for more information." ;;
9878:
9879: *) as_fn_append ac_config_targets " $1"
9880: ac_need_defaults=false ;;
9881:
9882: esac
9883: shift
9884: done
9885:
9886: ac_configure_extra_args=
9887:
9888: if $ac_cs_silent; then
9889: exec 6>/dev/null
9890: ac_configure_extra_args="$ac_configure_extra_args --silent"
9891: fi
9892:
9893: _ACEOF
9894: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9895: if \$ac_cs_recheck; then
9896: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9897: shift
9898: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9899: CONFIG_SHELL='$SHELL'
9900: export CONFIG_SHELL
9901: exec "\$@"
9902: fi
9903:
9904: _ACEOF
9905: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9906: exec 5>>config.log
9907: {
9908: echo
9909: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9910: ## Running $as_me. ##
9911: _ASBOX
9912: $as_echo "$ac_log"
9913: } >&5
9914:
9915: _ACEOF
9916: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9917: #
9918: # INIT-COMMANDS
9919: #
9920: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9921:
9922: _ACEOF
9923:
9924: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9925:
9926: # Handling of arguments.
9927: for ac_config_target in $ac_config_targets
9928: do
9929: case $ac_config_target in
9930: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9931: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9932: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9933: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9934: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9935: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9936: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9937: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9938: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9939: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9940: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9941: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9942: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9943: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9944: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9945: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9946: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9947: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9948: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9949: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9950: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9951: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9952: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9953: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9954: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9955: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9956: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9957:
9958: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9959: esac
9960: done
9961:
9962:
9963: # If the user did not use the arguments to specify the items to instantiate,
9964: # then the envvar interface is used. Set only those that are not.
9965: # We use the long form for the default assignment because of an extremely
9966: # bizarre bug on SunOS 4.1.3.
9967: if $ac_need_defaults; then
9968: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9969: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9970: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9971: fi
9972:
9973: # Have a temporary directory for convenience. Make it in the build tree
9974: # simply because there is no reason against having it here, and in addition,
9975: # creating and moving files from /tmp can sometimes cause problems.
9976: # Hook for its removal unless debugging.
9977: # Note that there is a small window in which the directory will not be cleaned:
9978: # after its creation but before its name has been assigned to `$tmp'.
9979: $debug ||
9980: {
9981: tmp=
9982: trap 'exit_status=$?
9983: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9984: ' 0
9985: trap 'as_fn_exit 1' 1 2 13 15
9986: }
9987: # Create a (secure) tmp directory for tmp files.
9988:
9989: {
9990: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9991: test -n "$tmp" && test -d "$tmp"
9992: } ||
9993: {
9994: tmp=./conf$$-$RANDOM
9995: (umask 077 && mkdir "$tmp")
9996: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9997:
9998: # Set up the scripts for CONFIG_FILES section.
9999: # No need to generate them if there are no CONFIG_FILES.
10000: # This happens for instance with `./config.status config.h'.
10001: if test -n "$CONFIG_FILES"; then
10002:
10003:
10004: ac_cr=`echo X | tr X '\015'`
10005: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10006: # But we know of no other shell where ac_cr would be empty at this
10007: # point, so we can use a bashism as a fallback.
10008: if test "x$ac_cr" = x; then
10009: eval ac_cr=\$\'\\r\'
10010: fi
10011: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10012: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10013: ac_cs_awk_cr='\r'
10014: else
10015: ac_cs_awk_cr=$ac_cr
10016: fi
10017:
10018: echo 'BEGIN {' >"$tmp/subs1.awk" &&
10019: _ACEOF
10020:
10021:
10022: {
10023: echo "cat >conf$$subs.awk <<_ACEOF" &&
10024: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10025: echo "_ACEOF"
10026: } >conf$$subs.sh ||
10027: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10028: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10029: ac_delim='%!_!# '
10030: for ac_last_try in false false false false false :; do
10031: . ./conf$$subs.sh ||
10032: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10033:
10034: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10035: if test $ac_delim_n = $ac_delim_num; then
10036: break
10037: elif $ac_last_try; then
10038: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10039: else
10040: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10041: fi
10042: done
10043: rm -f conf$$subs.sh
10044:
10045: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10046: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10047: _ACEOF
10048: sed -n '
10049: h
10050: s/^/S["/; s/!.*/"]=/
10051: p
10052: g
10053: s/^[^!]*!//
10054: :repl
10055: t repl
10056: s/'"$ac_delim"'$//
10057: t delim
10058: :nl
10059: h
10060: s/\(.\{148\}\)..*/\1/
10061: t more1
10062: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10063: p
10064: n
10065: b repl
10066: :more1
10067: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10068: p
10069: g
10070: s/.\{148\}//
10071: t nl
10072: :delim
10073: h
10074: s/\(.\{148\}\)..*/\1/
10075: t more2
10076: s/["\\]/\\&/g; s/^/"/; s/$/"/
10077: p
10078: b
10079: :more2
10080: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10081: p
10082: g
10083: s/.\{148\}//
10084: t delim
10085: ' <conf$$subs.awk | sed '
10086: /^[^""]/{
10087: N
10088: s/\n//
10089: }
10090: ' >>$CONFIG_STATUS || ac_write_fail=1
10091: rm -f conf$$subs.awk
10092: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10093: _ACAWK
10094: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10095: for (key in S) S_is_set[key] = 1
10096: FS = ""
10097:
10098: }
10099: {
10100: line = $ 0
10101: nfields = split(line, field, "@")
10102: substed = 0
10103: len = length(field[1])
10104: for (i = 2; i < nfields; i++) {
10105: key = field[i]
10106: keylen = length(key)
10107: if (S_is_set[key]) {
10108: value = S[key]
10109: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10110: len += length(value) + length(field[++i])
10111: substed = 1
10112: } else
10113: len += 1 + keylen
10114: }
10115:
10116: print line
10117: }
10118:
10119: _ACAWK
10120: _ACEOF
10121: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10122: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10123: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10124: else
10125: cat
10126: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10127: || as_fn_error "could not setup config files machinery" "$LINENO" 5
10128: _ACEOF
10129:
10130: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10131: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10132: # trailing colons and then remove the whole line if VPATH becomes empty
10133: # (actually we leave an empty line to preserve line numbers).
10134: if test "x$srcdir" = x.; then
10135: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10136: s/:*\$(srcdir):*/:/
10137: s/:*\${srcdir}:*/:/
10138: s/:*@srcdir@:*/:/
10139: s/^\([^=]*=[ ]*\):*/\1/
10140: s/:*$//
10141: s/^[^=]*=[ ]*$//
10142: }'
10143: fi
10144:
10145: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10146: fi # test -n "$CONFIG_FILES"
10147:
10148: # Set up the scripts for CONFIG_HEADERS section.
10149: # No need to generate them if there are no CONFIG_HEADERS.
10150: # This happens for instance with `./config.status Makefile'.
10151: if test -n "$CONFIG_HEADERS"; then
10152: cat >"$tmp/defines.awk" <<\_ACAWK ||
10153: BEGIN {
10154: _ACEOF
10155:
10156: # Transform confdefs.h into an awk script `defines.awk', embedded as
10157: # here-document in config.status, that substitutes the proper values into
10158: # config.h.in to produce config.h.
10159:
10160: # Create a delimiter string that does not exist in confdefs.h, to ease
10161: # handling of long lines.
10162: ac_delim='%!_!# '
10163: for ac_last_try in false false :; do
10164: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10165: if test -z "$ac_t"; then
10166: break
10167: elif $ac_last_try; then
10168: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10169: else
10170: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10171: fi
10172: done
10173:
10174: # For the awk script, D is an array of macro values keyed by name,
10175: # likewise P contains macro parameters if any. Preserve backslash
10176: # newline sequences.
10177:
10178: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10179: sed -n '
10180: s/.\{148\}/&'"$ac_delim"'/g
10181: t rset
10182: :rset
10183: s/^[ ]*#[ ]*define[ ][ ]*/ /
10184: t def
10185: d
10186: :def
10187: s/\\$//
10188: t bsnl
10189: s/["\\]/\\&/g
10190: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10191: D["\1"]=" \3"/p
10192: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10193: d
10194: :bsnl
10195: s/["\\]/\\&/g
10196: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10197: D["\1"]=" \3\\\\\\n"\\/p
10198: t cont
10199: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10200: t cont
10201: d
10202: :cont
10203: n
10204: s/.\{148\}/&'"$ac_delim"'/g
10205: t clear
10206: :clear
10207: s/\\$//
10208: t bsnlc
10209: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10210: d
10211: :bsnlc
10212: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10213: b cont
10214: ' <confdefs.h | sed '
10215: s/'"$ac_delim"'/"\\\
10216: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10217:
10218: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10219: for (key in D) D_is_set[key] = 1
10220: FS = ""
10221: }
10222: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10223: line = \$ 0
10224: split(line, arg, " ")
10225: if (arg[1] == "#") {
10226: defundef = arg[2]
10227: mac1 = arg[3]
10228: } else {
10229: defundef = substr(arg[1], 2)
10230: mac1 = arg[2]
10231: }
10232: split(mac1, mac2, "(") #)
10233: macro = mac2[1]
10234: prefix = substr(line, 1, index(line, defundef) - 1)
10235: if (D_is_set[macro]) {
10236: # Preserve the white space surrounding the "#".
10237: print prefix "define", macro P[macro] D[macro]
10238: next
10239: } else {
10240: # Replace #undef with comments. This is necessary, for example,
10241: # in the case of _POSIX_SOURCE, which is predefined and required
10242: # on some systems where configure will not decide to define it.
10243: if (defundef == "undef") {
10244: print "/*", prefix defundef, macro, "*/"
10245: next
10246: }
10247: }
10248: }
10249: { print }
10250: _ACAWK
10251: _ACEOF
10252: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10253: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10254: fi # test -n "$CONFIG_HEADERS"
10255:
10256:
10257: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10258: shift
10259: for ac_tag
10260: do
10261: case $ac_tag in
10262: :[FHLC]) ac_mode=$ac_tag; continue;;
10263: esac
10264: case $ac_mode$ac_tag in
10265: :[FHL]*:*);;
10266: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10267: :[FH]-) ac_tag=-:-;;
10268: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10269: esac
10270: ac_save_IFS=$IFS
10271: IFS=:
10272: set x $ac_tag
10273: IFS=$ac_save_IFS
10274: shift
10275: ac_file=$1
10276: shift
10277:
10278: case $ac_mode in
10279: :L) ac_source=$1;;
10280: :[FH])
10281: ac_file_inputs=
10282: for ac_f
10283: do
10284: case $ac_f in
10285: -) ac_f="$tmp/stdin";;
10286: *) # Look for the file first in the build tree, then in the source tree
10287: # (if the path is not absolute). The absolute path cannot be DOS-style,
10288: # because $ac_f cannot contain `:'.
10289: test -f "$ac_f" ||
10290: case $ac_f in
10291: [\\/$]*) false;;
10292: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10293: esac ||
10294: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10295: esac
10296: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10297: as_fn_append ac_file_inputs " '$ac_f'"
10298: done
10299:
10300: # Let's still pretend it is `configure' which instantiates (i.e., don't
10301: # use $as_me), people would be surprised to read:
10302: # /* config.h. Generated by config.status. */
10303: configure_input='Generated from '`
10304: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10305: `' by configure.'
10306: if test x"$ac_file" != x-; then
10307: configure_input="$ac_file. $configure_input"
10308: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10309: $as_echo "$as_me: creating $ac_file" >&6;}
10310: fi
10311: # Neutralize special characters interpreted by sed in replacement strings.
10312: case $configure_input in #(
10313: *\&* | *\|* | *\\* )
10314: ac_sed_conf_input=`$as_echo "$configure_input" |
10315: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10316: *) ac_sed_conf_input=$configure_input;;
10317: esac
10318:
10319: case $ac_tag in
10320: *:-:* | *:-) cat >"$tmp/stdin" \
10321: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10322: esac
10323: ;;
10324: esac
10325:
10326: ac_dir=`$as_dirname -- "$ac_file" ||
10327: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10328: X"$ac_file" : 'X\(//\)[^/]' \| \
10329: X"$ac_file" : 'X\(//\)$' \| \
10330: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10331: $as_echo X"$ac_file" |
10332: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10333: s//\1/
10334: q
10335: }
10336: /^X\(\/\/\)[^/].*/{
10337: s//\1/
10338: q
10339: }
10340: /^X\(\/\/\)$/{
10341: s//\1/
10342: q
10343: }
10344: /^X\(\/\).*/{
10345: s//\1/
10346: q
10347: }
10348: s/.*/./; q'`
10349: as_dir="$ac_dir"; as_fn_mkdir_p
10350: ac_builddir=.
10351:
10352: case "$ac_dir" in
10353: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10354: *)
10355: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10356: # A ".." for each directory in $ac_dir_suffix.
10357: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10358: case $ac_top_builddir_sub in
10359: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10360: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10361: esac ;;
10362: esac
10363: ac_abs_top_builddir=$ac_pwd
10364: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10365: # for backward compatibility:
10366: ac_top_builddir=$ac_top_build_prefix
10367:
10368: case $srcdir in
10369: .) # We are building in place.
10370: ac_srcdir=.
10371: ac_top_srcdir=$ac_top_builddir_sub
10372: ac_abs_top_srcdir=$ac_pwd ;;
10373: [\\/]* | ?:[\\/]* ) # Absolute name.
10374: ac_srcdir=$srcdir$ac_dir_suffix;
10375: ac_top_srcdir=$srcdir
10376: ac_abs_top_srcdir=$srcdir ;;
10377: *) # Relative name.
10378: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10379: ac_top_srcdir=$ac_top_build_prefix$srcdir
10380: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10381: esac
10382: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10383:
10384:
10385: case $ac_mode in
10386: :F)
10387: #
10388: # CONFIG_FILE
10389: #
10390:
10391: case $INSTALL in
10392: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10393: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10394: esac
10395: ac_MKDIR_P=$MKDIR_P
10396: case $MKDIR_P in
10397: [\\/$]* | ?:[\\/]* ) ;;
10398: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10399: esac
10400: _ACEOF
10401:
10402: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10403: # If the template does not know about datarootdir, expand it.
10404: # FIXME: This hack should be removed a few years after 2.60.
10405: ac_datarootdir_hack=; ac_datarootdir_seen=
10406: ac_sed_dataroot='
10407: /datarootdir/ {
10408: p
10409: q
10410: }
10411: /@datadir@/p
10412: /@docdir@/p
10413: /@infodir@/p
10414: /@localedir@/p
10415: /@mandir@/p'
10416: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10417: *datarootdir*) ac_datarootdir_seen=yes;;
10418: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10419: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10420: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10421: _ACEOF
10422: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10423: ac_datarootdir_hack='
10424: s&@datadir@&$datadir&g
10425: s&@docdir@&$docdir&g
10426: s&@infodir@&$infodir&g
10427: s&@localedir@&$localedir&g
10428: s&@mandir@&$mandir&g
10429: s&\\\${datarootdir}&$datarootdir&g' ;;
10430: esac
10431: _ACEOF
10432:
10433: # Neutralize VPATH when `$srcdir' = `.'.
10434: # Shell code in configure.ac might set extrasub.
10435: # FIXME: do we really want to maintain this feature?
10436: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10437: ac_sed_extra="$ac_vpsub
10438: $extrasub
10439: _ACEOF
10440: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10441: :t
10442: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10443: s|@configure_input@|$ac_sed_conf_input|;t t
10444: s&@top_builddir@&$ac_top_builddir_sub&;t t
10445: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10446: s&@srcdir@&$ac_srcdir&;t t
10447: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10448: s&@top_srcdir@&$ac_top_srcdir&;t t
10449: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10450: s&@builddir@&$ac_builddir&;t t
10451: s&@abs_builddir@&$ac_abs_builddir&;t t
10452: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10453: s&@INSTALL@&$ac_INSTALL&;t t
10454: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10455: $ac_datarootdir_hack
10456: "
10457: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10458: || as_fn_error "could not create $ac_file" "$LINENO" 5
10459:
10460: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10461: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10462: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10463: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10464: which seems to be undefined. Please make sure it is defined." >&5
10465: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10466: which seems to be undefined. Please make sure it is defined." >&2;}
10467:
10468: rm -f "$tmp/stdin"
10469: case $ac_file in
10470: -) cat "$tmp/out" && rm -f "$tmp/out";;
10471: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10472: esac \
10473: || as_fn_error "could not create $ac_file" "$LINENO" 5
10474: ;;
10475: :H)
10476: #
10477: # CONFIG_HEADER
10478: #
10479: if test x"$ac_file" != x-; then
10480: {
10481: $as_echo "/* $configure_input */" \
10482: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10483: } >"$tmp/config.h" \
10484: || as_fn_error "could not create $ac_file" "$LINENO" 5
10485: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10486: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10487: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10488: else
10489: rm -f "$ac_file"
10490: mv "$tmp/config.h" "$ac_file" \
10491: || as_fn_error "could not create $ac_file" "$LINENO" 5
10492: fi
10493: else
10494: $as_echo "/* $configure_input */" \
10495: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10496: || as_fn_error "could not create -" "$LINENO" 5
10497: fi
10498: # Compute "$ac_file"'s index in $config_headers.
10499: _am_arg="$ac_file"
10500: _am_stamp_count=1
10501: for _am_header in $config_headers :; do
10502: case $_am_header in
10503: $_am_arg | $_am_arg:* )
10504: break ;;
10505: * )
10506: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10507: esac
10508: done
10509: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10510: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10511: X"$_am_arg" : 'X\(//\)[^/]' \| \
10512: X"$_am_arg" : 'X\(//\)$' \| \
10513: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10514: $as_echo X"$_am_arg" |
10515: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10516: s//\1/
10517: q
10518: }
10519: /^X\(\/\/\)[^/].*/{
10520: s//\1/
10521: q
10522: }
10523: /^X\(\/\/\)$/{
10524: s//\1/
10525: q
10526: }
10527: /^X\(\/\).*/{
10528: s//\1/
10529: q
10530: }
10531: s/.*/./; q'`/stamp-h$_am_stamp_count
10532: ;;
10533:
10534: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10535: $as_echo "$as_me: executing $ac_file commands" >&6;}
10536: ;;
10537: esac
10538:
10539:
10540: case $ac_file$ac_mode in
10541: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10542: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10543: # are listed without --file. Let's play safe and only enable the eval
10544: # if we detect the quoting.
10545: case $CONFIG_FILES in
10546: *\'*) eval set x "$CONFIG_FILES" ;;
10547: *) set x $CONFIG_FILES ;;
10548: esac
10549: shift
10550: for mf
10551: do
10552: # Strip MF so we end up with the name of the file.
10553: mf=`echo "$mf" | sed -e 's/:.*$//'`
10554: # Check whether this is an Automake generated Makefile or not.
10555: # We used to match only the files named `Makefile.in', but
10556: # some people rename them; so instead we look at the file content.
10557: # Grep'ing the first line is not enough: some people post-process
10558: # each Makefile.in and add a new line on top of each file to say so.
10559: # Grep'ing the whole file is not good either: AIX grep has a line
10560: # limit of 2048, but all sed's we know have understand at least 4000.
10561: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10562: dirpart=`$as_dirname -- "$mf" ||
10563: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10564: X"$mf" : 'X\(//\)[^/]' \| \
10565: X"$mf" : 'X\(//\)$' \| \
10566: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10567: $as_echo X"$mf" |
10568: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10569: s//\1/
10570: q
10571: }
10572: /^X\(\/\/\)[^/].*/{
10573: s//\1/
10574: q
10575: }
10576: /^X\(\/\/\)$/{
10577: s//\1/
10578: q
10579: }
10580: /^X\(\/\).*/{
10581: s//\1/
10582: q
10583: }
10584: s/.*/./; q'`
10585: else
10586: continue
10587: fi
10588: # Extract the definition of DEPDIR, am__include, and am__quote
10589: # from the Makefile without running `make'.
10590: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10591: test -z "$DEPDIR" && continue
10592: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10593: test -z "am__include" && continue
10594: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10595: # When using ansi2knr, U may be empty or an underscore; expand it
10596: U=`sed -n 's/^U = //p' < "$mf"`
10597: # Find all dependency output files, they are included files with
10598: # $(DEPDIR) in their names. We invoke sed twice because it is the
10599: # simplest approach to changing $(DEPDIR) to its actual value in the
10600: # expansion.
10601: for file in `sed -n "
10602: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10603: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10604: # Make sure the directory exists.
10605: test -f "$dirpart/$file" && continue
10606: fdir=`$as_dirname -- "$file" ||
10607: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10608: X"$file" : 'X\(//\)[^/]' \| \
10609: X"$file" : 'X\(//\)$' \| \
10610: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10611: $as_echo X"$file" |
10612: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10613: s//\1/
10614: q
10615: }
10616: /^X\(\/\/\)[^/].*/{
10617: s//\1/
10618: q
10619: }
10620: /^X\(\/\/\)$/{
10621: s//\1/
10622: q
10623: }
10624: /^X\(\/\).*/{
10625: s//\1/
10626: q
10627: }
10628: s/.*/./; q'`
10629: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10630: # echo "creating $dirpart/$file"
10631: echo '# dummy' > "$dirpart/$file"
10632: done
10633: done
10634: }
10635: ;;
10636:
10637: esac
10638: done # for ac_tag
10639:
10640:
10641: as_fn_exit 0
10642: _ACEOF
10643: ac_clean_files=$ac_clean_files_save
10644:
10645: test $ac_write_fail = 0 ||
10646: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10647:
10648:
10649: # configure is writing to config.log, and then calls config.status.
10650: # config.status does its own redirection, appending to config.log.
10651: # Unfortunately, on DOS this fails, as config.log is still kept open
10652: # by configure, so config.status won't be able to write to it; its
10653: # output is simply discarded. So we exec the FD to /dev/null,
10654: # effectively closing config.log, so it can be properly (re)opened and
10655: # appended to by config.status. When coming back to configure, we
10656: # need to make the FD available again.
10657: if test "$no_create" != yes; then
10658: ac_cs_success=:
10659: ac_config_status_args=
10660: test "$silent" = yes &&
10661: ac_config_status_args="$ac_config_status_args --quiet"
10662: exec 5>/dev/null
10663: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10664: exec 5>>config.log
10665: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10666: # would make configure fail if this is the last instruction.
10667: $ac_cs_success || as_fn_exit $?
10668: fi
10669:
10670: #
10671: # CONFIG_SUBDIRS section.
10672: #
10673: if test "$no_recursion" != yes; then
10674:
10675: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10676: # so they do not pile up.
10677: ac_sub_configure_args=
10678: ac_prev=
10679: eval "set x $ac_configure_args"
10680: shift
10681: for ac_arg
10682: do
10683: if test -n "$ac_prev"; then
10684: ac_prev=
10685: continue
10686: fi
10687: case $ac_arg in
10688: -cache-file | --cache-file | --cache-fil | --cache-fi \
10689: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10690: ac_prev=cache_file ;;
10691: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10692: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10693: | --c=*)
10694: ;;
10695: --config-cache | -C)
10696: ;;
10697: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10698: ac_prev=srcdir ;;
10699: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10700: ;;
10701: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10702: ac_prev=prefix ;;
10703: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10704: ;;
10705: --disable-option-checking)
10706: ;;
10707: *)
10708: case $ac_arg in
10709: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10710: esac
10711: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10712: esac
10713: done
10714:
10715: # Always prepend --prefix to ensure using the same prefix
10716: # in subdir configurations.
10717: ac_arg="--prefix=$prefix"
10718: case $ac_arg in
10719: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10720: esac
10721: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10722:
10723: # Pass --silent
10724: if test "$silent" = yes; then
10725: ac_sub_configure_args="--silent $ac_sub_configure_args"
10726: fi
10727:
10728: # Always prepend --disable-option-checking to silence warnings, since
10729: # different subdirs can have different --enable and --with options.
10730: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10731:
10732: ac_popdir=`pwd`
10733: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10734:
10735: # Do not complain, so a configure script can configure whichever
10736: # parts of a large source tree are present.
10737: test -d "$srcdir/$ac_dir" || continue
10738:
10739: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10740: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10741: $as_echo "$ac_msg" >&6
10742: as_dir="$ac_dir"; as_fn_mkdir_p
10743: ac_builddir=.
10744:
10745: case "$ac_dir" in
10746: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10747: *)
10748: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10749: # A ".." for each directory in $ac_dir_suffix.
10750: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10751: case $ac_top_builddir_sub in
10752: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10753: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10754: esac ;;
10755: esac
10756: ac_abs_top_builddir=$ac_pwd
10757: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10758: # for backward compatibility:
10759: ac_top_builddir=$ac_top_build_prefix
10760:
10761: case $srcdir in
10762: .) # We are building in place.
10763: ac_srcdir=.
10764: ac_top_srcdir=$ac_top_builddir_sub
10765: ac_abs_top_srcdir=$ac_pwd ;;
10766: [\\/]* | ?:[\\/]* ) # Absolute name.
10767: ac_srcdir=$srcdir$ac_dir_suffix;
10768: ac_top_srcdir=$srcdir
10769: ac_abs_top_srcdir=$srcdir ;;
10770: *) # Relative name.
10771: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10772: ac_top_srcdir=$ac_top_build_prefix$srcdir
10773: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10774: esac
10775: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10776:
10777:
10778: cd "$ac_dir"
10779:
10780: # Check for guested configure; otherwise get Cygnus style configure.
10781: if test -f "$ac_srcdir/configure.gnu"; then
10782: ac_sub_configure=$ac_srcdir/configure.gnu
10783: elif test -f "$ac_srcdir/configure"; then
10784: ac_sub_configure=$ac_srcdir/configure
10785: elif test -f "$ac_srcdir/configure.in"; then
10786: # This should be Cygnus configure.
10787: ac_sub_configure=$ac_aux_dir/configure
10788: else
10789: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10790: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10791: ac_sub_configure=
10792: fi
10793:
10794: # The recursion is here.
10795: if test -n "$ac_sub_configure"; then
10796: # Make the cache file name correct relative to the subdirectory.
10797: case $cache_file in
10798: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10799: *) # Relative name.
10800: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10801: esac
10802:
10803: { $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
10804: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10805: # The eval makes quoting arguments work.
10806: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10807: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10808: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10809: fi
10810:
10811: cd "$ac_popdir"
10812: done
10813: fi
10814: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10815: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10816: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10817: fi
10818:
CVSweb interface <joel.bertrand@systella.fr>