1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.65 for rpl 4.0.11.
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.11'
553: PACKAGE_STRING='rpl 4.0.11'
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: X_EXTRA_LIBS
644: X_LIBS
645: X_PRE_LIBS
646: X_CFLAGS
647: CPP
648: XMKMF
649: ac_ct_FC
650: FCFLAGS
651: FC
652: ac_ct_F77
653: FFLAGS
654: F77
655: am__fastdepCXX_FALSE
656: am__fastdepCXX_TRUE
657: CXXDEPMODE
658: ac_ct_CXX
659: CXXFLAGS
660: CXX
661: am__fastdepCC_FALSE
662: am__fastdepCC_TRUE
663: CCDEPMODE
664: AMDEPBACKSLASH
665: AMDEP_FALSE
666: AMDEP_TRUE
667: am__quote
668: am__include
669: DEPDIR
670: OBJEXT
671: EXEEXT
672: ac_ct_CC
673: CPPFLAGS
674: LDFLAGS
675: CFLAGS
676: CC
677: am__untar
678: am__tar
679: AMTAR
680: am__leading_dot
681: SET_MAKE
682: AWK
683: mkdir_p
684: MKDIR_P
685: INSTALL_STRIP_PROGRAM
686: STRIP
687: install_sh
688: MAKEINFO
689: AUTOHEADER
690: AUTOMAKE
691: AUTOCONF
692: ACLOCAL
693: VERSION
694: PACKAGE
695: CYGPATH_W
696: am__isrc
697: INSTALL_DATA
698: INSTALL_SCRIPT
699: INSTALL_PROGRAM
700: target_os
701: target_vendor
702: target_cpu
703: target
704: host_os
705: host_vendor
706: host_cpu
707: host
708: build_os
709: build_vendor
710: build_cpu
711: build
712: target_alias
713: host_alias
714: build_alias
715: LIBS
716: ECHO_T
717: ECHO_N
718: ECHO_C
719: DEFS
720: mandir
721: localedir
722: libdir
723: psdir
724: pdfdir
725: dvidir
726: htmldir
727: infodir
728: docdir
729: oldincludedir
730: includedir
731: localstatedir
732: sharedstatedir
733: sysconfdir
734: datadir
735: datarootdir
736: libexecdir
737: sbindir
738: bindir
739: program_transform_name
740: prefix
741: exec_prefix
742: PACKAGE_URL
743: PACKAGE_BUGREPORT
744: PACKAGE_STRING
745: PACKAGE_VERSION
746: PACKAGE_TARNAME
747: PACKAGE_NAME
748: PATH_SEPARATOR
749: SHELL'
750: ac_subst_files=''
751: ac_user_opts='
752: enable_option_checking
753: enable_dependency_tracking
754: with_x
755: enable_optimization
756: enable_final_encoding
757: enable_tex
758: enable_vim
759: enable_embedded_gnuplot
760: enable_gnuplot
761: enable_motif
762: enable_experimental
763: enable_debug
764: enable_profile
765: enable_final_run_path
766: with_mysql
767: with_postgresql
768: '
769: ac_precious_vars='build_alias
770: host_alias
771: target_alias
772: CC
773: CFLAGS
774: LDFLAGS
775: LIBS
776: CPPFLAGS
777: CXX
778: CXXFLAGS
779: CCC
780: F77
781: FFLAGS
782: FC
783: FCFLAGS
784: XMKMF
785: CPP'
786: ac_subdirs_all='tools/$NCURSES
787: tools/$READLINE
788: tools/$UNITS
789: tools/$GSL
790: tools/$GPP
791: tools/$FILE
792: tools/$ICONV
793: tools/$GNUPLOT'
794:
795: # Initialize some variables set by options.
796: ac_init_help=
797: ac_init_version=false
798: ac_unrecognized_opts=
799: ac_unrecognized_sep=
800: # The variables have the same names as the options, with
801: # dashes changed to underlines.
802: cache_file=/dev/null
803: exec_prefix=NONE
804: no_create=
805: no_recursion=
806: prefix=NONE
807: program_prefix=NONE
808: program_suffix=NONE
809: program_transform_name=s,x,x,
810: silent=
811: site=
812: srcdir=
813: verbose=
814: x_includes=NONE
815: x_libraries=NONE
816:
817: # Installation directory options.
818: # These are left unexpanded so users can "make install exec_prefix=/foo"
819: # and all the variables that are supposed to be based on exec_prefix
820: # by default will actually change.
821: # Use braces instead of parens because sh, perl, etc. also accept them.
822: # (The list follows the same order as the GNU Coding Standards.)
823: bindir='${exec_prefix}/bin'
824: sbindir='${exec_prefix}/sbin'
825: libexecdir='${exec_prefix}/libexec'
826: datarootdir='${prefix}/share'
827: datadir='${datarootdir}'
828: sysconfdir='${prefix}/etc'
829: sharedstatedir='${prefix}/com'
830: localstatedir='${prefix}/var'
831: includedir='${prefix}/include'
832: oldincludedir='/usr/include'
833: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834: infodir='${datarootdir}/info'
835: htmldir='${docdir}'
836: dvidir='${docdir}'
837: pdfdir='${docdir}'
838: psdir='${docdir}'
839: libdir='${exec_prefix}/lib'
840: localedir='${datarootdir}/locale'
841: mandir='${datarootdir}/man'
842:
843: ac_prev=
844: ac_dashdash=
845: for ac_option
846: do
847: # If the previous option needs an argument, assign it.
848: if test -n "$ac_prev"; then
849: eval $ac_prev=\$ac_option
850: ac_prev=
851: continue
852: fi
853:
854: case $ac_option in
855: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856: *) ac_optarg=yes ;;
857: esac
858:
859: # Accept the important Cygnus configure options, so we can diagnose typos.
860:
861: case $ac_dashdash$ac_option in
862: --)
863: ac_dashdash=yes ;;
864:
865: -bindir | --bindir | --bindi | --bind | --bin | --bi)
866: ac_prev=bindir ;;
867: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868: bindir=$ac_optarg ;;
869:
870: -build | --build | --buil | --bui | --bu)
871: ac_prev=build_alias ;;
872: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873: build_alias=$ac_optarg ;;
874:
875: -cache-file | --cache-file | --cache-fil | --cache-fi \
876: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877: ac_prev=cache_file ;;
878: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880: cache_file=$ac_optarg ;;
881:
882: --config-cache | -C)
883: cache_file=config.cache ;;
884:
885: -datadir | --datadir | --datadi | --datad)
886: ac_prev=datadir ;;
887: -datadir=* | --datadir=* | --datadi=* | --datad=*)
888: datadir=$ac_optarg ;;
889:
890: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891: | --dataroo | --dataro | --datar)
892: ac_prev=datarootdir ;;
893: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895: datarootdir=$ac_optarg ;;
896:
897: -disable-* | --disable-*)
898: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899: # Reject names that are not valid shell variable names.
900: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901: as_fn_error "invalid feature name: $ac_useropt"
902: ac_useropt_orig=$ac_useropt
903: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904: case $ac_user_opts in
905: *"
906: "enable_$ac_useropt"
907: "*) ;;
908: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909: ac_unrecognized_sep=', ';;
910: esac
911: eval enable_$ac_useropt=no ;;
912:
913: -docdir | --docdir | --docdi | --doc | --do)
914: ac_prev=docdir ;;
915: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916: docdir=$ac_optarg ;;
917:
918: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919: ac_prev=dvidir ;;
920: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921: dvidir=$ac_optarg ;;
922:
923: -enable-* | --enable-*)
924: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925: # Reject names that are not valid shell variable names.
926: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927: as_fn_error "invalid feature name: $ac_useropt"
928: ac_useropt_orig=$ac_useropt
929: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930: case $ac_user_opts in
931: *"
932: "enable_$ac_useropt"
933: "*) ;;
934: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935: ac_unrecognized_sep=', ';;
936: esac
937: eval enable_$ac_useropt=\$ac_optarg ;;
938:
939: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941: | --exec | --exe | --ex)
942: ac_prev=exec_prefix ;;
943: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945: | --exec=* | --exe=* | --ex=*)
946: exec_prefix=$ac_optarg ;;
947:
948: -gas | --gas | --ga | --g)
949: # Obsolete; use --with-gas.
950: with_gas=yes ;;
951:
952: -help | --help | --hel | --he | -h)
953: ac_init_help=long ;;
954: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955: ac_init_help=recursive ;;
956: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957: ac_init_help=short ;;
958:
959: -host | --host | --hos | --ho)
960: ac_prev=host_alias ;;
961: -host=* | --host=* | --hos=* | --ho=*)
962: host_alias=$ac_optarg ;;
963:
964: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965: ac_prev=htmldir ;;
966: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967: | --ht=*)
968: htmldir=$ac_optarg ;;
969:
970: -includedir | --includedir | --includedi | --included | --include \
971: | --includ | --inclu | --incl | --inc)
972: ac_prev=includedir ;;
973: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974: | --includ=* | --inclu=* | --incl=* | --inc=*)
975: includedir=$ac_optarg ;;
976:
977: -infodir | --infodir | --infodi | --infod | --info | --inf)
978: ac_prev=infodir ;;
979: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980: infodir=$ac_optarg ;;
981:
982: -libdir | --libdir | --libdi | --libd)
983: ac_prev=libdir ;;
984: -libdir=* | --libdir=* | --libdi=* | --libd=*)
985: libdir=$ac_optarg ;;
986:
987: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988: | --libexe | --libex | --libe)
989: ac_prev=libexecdir ;;
990: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991: | --libexe=* | --libex=* | --libe=*)
992: libexecdir=$ac_optarg ;;
993:
994: -localedir | --localedir | --localedi | --localed | --locale)
995: ac_prev=localedir ;;
996: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997: localedir=$ac_optarg ;;
998:
999: -localstatedir | --localstatedir | --localstatedi | --localstated \
1000: | --localstate | --localstat | --localsta | --localst | --locals)
1001: ac_prev=localstatedir ;;
1002: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004: localstatedir=$ac_optarg ;;
1005:
1006: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007: ac_prev=mandir ;;
1008: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009: mandir=$ac_optarg ;;
1010:
1011: -nfp | --nfp | --nf)
1012: # Obsolete; use --without-fp.
1013: with_fp=no ;;
1014:
1015: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016: | --no-cr | --no-c | -n)
1017: no_create=yes ;;
1018:
1019: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021: no_recursion=yes ;;
1022:
1023: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025: | --oldin | --oldi | --old | --ol | --o)
1026: ac_prev=oldincludedir ;;
1027: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030: oldincludedir=$ac_optarg ;;
1031:
1032: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033: ac_prev=prefix ;;
1034: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035: prefix=$ac_optarg ;;
1036:
1037: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038: | --program-pre | --program-pr | --program-p)
1039: ac_prev=program_prefix ;;
1040: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042: program_prefix=$ac_optarg ;;
1043:
1044: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045: | --program-suf | --program-su | --program-s)
1046: ac_prev=program_suffix ;;
1047: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049: program_suffix=$ac_optarg ;;
1050:
1051: -program-transform-name | --program-transform-name \
1052: | --program-transform-nam | --program-transform-na \
1053: | --program-transform-n | --program-transform- \
1054: | --program-transform | --program-transfor \
1055: | --program-transfo | --program-transf \
1056: | --program-trans | --program-tran \
1057: | --progr-tra | --program-tr | --program-t)
1058: ac_prev=program_transform_name ;;
1059: -program-transform-name=* | --program-transform-name=* \
1060: | --program-transform-nam=* | --program-transform-na=* \
1061: | --program-transform-n=* | --program-transform-=* \
1062: | --program-transform=* | --program-transfor=* \
1063: | --program-transfo=* | --program-transf=* \
1064: | --program-trans=* | --program-tran=* \
1065: | --progr-tra=* | --program-tr=* | --program-t=*)
1066: program_transform_name=$ac_optarg ;;
1067:
1068: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069: ac_prev=pdfdir ;;
1070: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071: pdfdir=$ac_optarg ;;
1072:
1073: -psdir | --psdir | --psdi | --psd | --ps)
1074: ac_prev=psdir ;;
1075: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076: psdir=$ac_optarg ;;
1077:
1078: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079: | -silent | --silent | --silen | --sile | --sil)
1080: silent=yes ;;
1081:
1082: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083: ac_prev=sbindir ;;
1084: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085: | --sbi=* | --sb=*)
1086: sbindir=$ac_optarg ;;
1087:
1088: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090: | --sharedst | --shareds | --shared | --share | --shar \
1091: | --sha | --sh)
1092: ac_prev=sharedstatedir ;;
1093: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096: | --sha=* | --sh=*)
1097: sharedstatedir=$ac_optarg ;;
1098:
1099: -site | --site | --sit)
1100: ac_prev=site ;;
1101: -site=* | --site=* | --sit=*)
1102: site=$ac_optarg ;;
1103:
1104: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105: ac_prev=srcdir ;;
1106: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107: srcdir=$ac_optarg ;;
1108:
1109: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110: | --syscon | --sysco | --sysc | --sys | --sy)
1111: ac_prev=sysconfdir ;;
1112: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114: sysconfdir=$ac_optarg ;;
1115:
1116: -target | --target | --targe | --targ | --tar | --ta | --t)
1117: ac_prev=target_alias ;;
1118: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119: target_alias=$ac_optarg ;;
1120:
1121: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122: verbose=yes ;;
1123:
1124: -version | --version | --versio | --versi | --vers | -V)
1125: ac_init_version=: ;;
1126:
1127: -with-* | --with-*)
1128: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129: # Reject names that are not valid shell variable names.
1130: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131: as_fn_error "invalid package name: $ac_useropt"
1132: ac_useropt_orig=$ac_useropt
1133: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134: case $ac_user_opts in
1135: *"
1136: "with_$ac_useropt"
1137: "*) ;;
1138: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139: ac_unrecognized_sep=', ';;
1140: esac
1141: eval with_$ac_useropt=\$ac_optarg ;;
1142:
1143: -without-* | --without-*)
1144: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145: # Reject names that are not valid shell variable names.
1146: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147: as_fn_error "invalid package name: $ac_useropt"
1148: ac_useropt_orig=$ac_useropt
1149: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150: case $ac_user_opts in
1151: *"
1152: "with_$ac_useropt"
1153: "*) ;;
1154: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155: ac_unrecognized_sep=', ';;
1156: esac
1157: eval with_$ac_useropt=no ;;
1158:
1159: --x)
1160: # Obsolete; use --with-x.
1161: with_x=yes ;;
1162:
1163: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164: | --x-incl | --x-inc | --x-in | --x-i)
1165: ac_prev=x_includes ;;
1166: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168: x_includes=$ac_optarg ;;
1169:
1170: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172: ac_prev=x_libraries ;;
1173: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175: x_libraries=$ac_optarg ;;
1176:
1177: -*) as_fn_error "unrecognized option: \`$ac_option'
1178: Try \`$0 --help' for more information."
1179: ;;
1180:
1181: *=*)
1182: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183: # Reject names that are not valid shell variable names.
1184: case $ac_envvar in #(
1185: '' | [0-9]* | *[!_$as_cr_alnum]* )
1186: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1187: esac
1188: eval $ac_envvar=\$ac_optarg
1189: export $ac_envvar ;;
1190:
1191: *)
1192: # FIXME: should be removed in autoconf 3.0.
1193: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197: ;;
1198:
1199: esac
1200: done
1201:
1202: if test -n "$ac_prev"; then
1203: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204: as_fn_error "missing argument to $ac_option"
1205: fi
1206:
1207: if test -n "$ac_unrecognized_opts"; then
1208: case $enable_option_checking in
1209: no) ;;
1210: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1211: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212: esac
1213: fi
1214:
1215: # Check all directory arguments for consistency.
1216: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217: datadir sysconfdir sharedstatedir localstatedir includedir \
1218: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219: libdir localedir mandir
1220: do
1221: eval ac_val=\$$ac_var
1222: # Remove trailing slashes.
1223: case $ac_val in
1224: */ )
1225: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226: eval $ac_var=\$ac_val;;
1227: esac
1228: # Be sure to have absolute directory names.
1229: case $ac_val in
1230: [\\/$]* | ?:[\\/]* ) continue;;
1231: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232: esac
1233: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1234: done
1235:
1236: # There might be people who depend on the old broken behavior: `$host'
1237: # used to hold the argument of --host etc.
1238: # FIXME: To remove some day.
1239: build=$build_alias
1240: host=$host_alias
1241: target=$target_alias
1242:
1243: # FIXME: To remove some day.
1244: if test "x$host_alias" != x; then
1245: if test "x$build_alias" = x; then
1246: cross_compiling=maybe
1247: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1248: If a cross compiler is detected then cross compile mode will be used." >&2
1249: elif test "x$build_alias" != "x$host_alias"; then
1250: cross_compiling=yes
1251: fi
1252: fi
1253:
1254: ac_tool_prefix=
1255: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256:
1257: test "$silent" = yes && exec 6>/dev/null
1258:
1259:
1260: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261: ac_ls_di=`ls -di .` &&
1262: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263: as_fn_error "working directory cannot be determined"
1264: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265: as_fn_error "pwd does not report name of working directory"
1266:
1267:
1268: # Find the source files, if location was not specified.
1269: if test -z "$srcdir"; then
1270: ac_srcdir_defaulted=yes
1271: # Try the directory containing this script, then the parent directory.
1272: ac_confdir=`$as_dirname -- "$as_myself" ||
1273: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274: X"$as_myself" : 'X\(//\)[^/]' \| \
1275: X"$as_myself" : 'X\(//\)$' \| \
1276: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277: $as_echo X"$as_myself" |
1278: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279: s//\1/
1280: q
1281: }
1282: /^X\(\/\/\)[^/].*/{
1283: s//\1/
1284: q
1285: }
1286: /^X\(\/\/\)$/{
1287: s//\1/
1288: q
1289: }
1290: /^X\(\/\).*/{
1291: s//\1/
1292: q
1293: }
1294: s/.*/./; q'`
1295: srcdir=$ac_confdir
1296: if test ! -r "$srcdir/$ac_unique_file"; then
1297: srcdir=..
1298: fi
1299: else
1300: ac_srcdir_defaulted=no
1301: fi
1302: if test ! -r "$srcdir/$ac_unique_file"; then
1303: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1305: fi
1306: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307: ac_abs_confdir=`(
1308: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1309: pwd)`
1310: # When building in place, set srcdir=.
1311: if test "$ac_abs_confdir" = "$ac_pwd"; then
1312: srcdir=.
1313: fi
1314: # Remove unnecessary trailing slashes from srcdir.
1315: # Double slashes in file names in object file debugging info
1316: # mess up M-x gdb in Emacs.
1317: case $srcdir in
1318: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319: esac
1320: for ac_var in $ac_precious_vars; do
1321: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322: eval ac_env_${ac_var}_value=\$${ac_var}
1323: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325: done
1326:
1327: #
1328: # Report the --help message.
1329: #
1330: if test "$ac_init_help" = "long"; then
1331: # Omit some internal or obsolete options to make the list less imposing.
1332: # This message is too long to be a string in the A/UX 3.1 sh.
1333: cat <<_ACEOF
1334: \`configure' configures rpl 4.0.11 to adapt to many kinds of systems.
1335:
1336: Usage: $0 [OPTION]... [VAR=VALUE]...
1337:
1338: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339: VAR=VALUE. See below for descriptions of some of the useful variables.
1340:
1341: Defaults for the options are specified in brackets.
1342:
1343: Configuration:
1344: -h, --help display this help and exit
1345: --help=short display options specific to this package
1346: --help=recursive display the short help of all the included packages
1347: -V, --version display version information and exit
1348: -q, --quiet, --silent do not print \`checking...' messages
1349: --cache-file=FILE cache test results in FILE [disabled]
1350: -C, --config-cache alias for \`--cache-file=config.cache'
1351: -n, --no-create do not create output files
1352: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353:
1354: Installation directories:
1355: --prefix=PREFIX install architecture-independent files in PREFIX
1356: [$ac_default_prefix]
1357: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358: [PREFIX]
1359:
1360: By default, \`make install' will install all the files in
1361: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363: for instance \`--prefix=\$HOME'.
1364:
1365: For better control, use the options below.
1366:
1367: Fine tuning of the installation directories:
1368: --bindir=DIR user executables [EPREFIX/bin]
1369: --sbindir=DIR system admin executables [EPREFIX/sbin]
1370: --libexecdir=DIR program executables [EPREFIX/libexec]
1371: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374: --libdir=DIR object code libraries [EPREFIX/lib]
1375: --includedir=DIR C header files [PREFIX/include]
1376: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379: --infodir=DIR info documentation [DATAROOTDIR/info]
1380: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381: --mandir=DIR man documentation [DATAROOTDIR/man]
1382: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1383: --htmldir=DIR html documentation [DOCDIR]
1384: --dvidir=DIR dvi documentation [DOCDIR]
1385: --pdfdir=DIR pdf documentation [DOCDIR]
1386: --psdir=DIR ps documentation [DOCDIR]
1387: _ACEOF
1388:
1389: cat <<\_ACEOF
1390:
1391: Program names:
1392: --program-prefix=PREFIX prepend PREFIX to installed program names
1393: --program-suffix=SUFFIX append SUFFIX to installed program names
1394: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395:
1396: X features:
1397: --x-includes=DIR X include files are in DIR
1398: --x-libraries=DIR X library files are in DIR
1399:
1400: System types:
1401: --build=BUILD configure for building on BUILD [guessed]
1402: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403: --target=TARGET configure for building compilers for TARGET [HOST]
1404: _ACEOF
1405: fi
1406:
1407: if test -n "$ac_init_help"; then
1408: case $ac_init_help in
1409: short | recursive ) echo "Configuration of rpl 4.0.11:";;
1410: esac
1411: cat <<\_ACEOF
1412:
1413: Optional Features:
1414: --disable-option-checking ignore unrecognized --enable/--with options
1415: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417: --disable-dependency-tracking speeds up one-time build
1418: --enable-dependency-tracking do not reject slow dependency extractors
1419: --enable-optimization set compiler flags [default=environment variables -O3]
1420: --enable-final-encoding force final encoding [default=guessed]
1421: --enable-tex provide the TeX support [default=guessed]
1422: --enable-vim provide the vim support [default=guessed]
1423: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1424: --enable-gnuplot provide the GnuPlot support [default=guessed]
1425: --enable-motif provide the Motif support [default=guessed]
1426: --enable-experimental enable experimental code [default=no]
1427: --enable-debug enable debug code [default=no]
1428: --enable-profile enable profile code [default=no]
1429: --enable-final-run-path=PATH enable another final run path than PREFIX
1430:
1431: Optional Packages:
1432: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434: --with-x use the X Window System
1435: --with-mysql=PATH specify directory for installed mysql
1436: --with-postgresql=PATH specify directory for installed postgresql
1437:
1438: Some influential environment variables:
1439: CC C compiler command
1440: CFLAGS C compiler flags
1441: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442: nonstandard directory <lib dir>
1443: LIBS libraries to pass to the linker, e.g. -l<library>
1444: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445: you have headers in a nonstandard directory <include dir>
1446: CXX C++ compiler command
1447: CXXFLAGS C++ compiler flags
1448: F77 Fortran 77 compiler command
1449: FFLAGS Fortran 77 compiler flags
1450: FC Fortran compiler command
1451: FCFLAGS Fortran compiler flags
1452: XMKMF Path to xmkmf, Makefile generator for X Window System
1453: CPP C preprocessor
1454:
1455: Use these variables to override the choices made by `configure' or to help
1456: it to find libraries and programs with nonstandard names/locations.
1457:
1458: Report bugs to the package provider.
1459: _ACEOF
1460: ac_status=$?
1461: fi
1462:
1463: if test "$ac_init_help" = "recursive"; then
1464: # If there are subdirs, report their specific --help.
1465: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466: test -d "$ac_dir" ||
1467: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468: continue
1469: ac_builddir=.
1470:
1471: case "$ac_dir" in
1472: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473: *)
1474: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475: # A ".." for each directory in $ac_dir_suffix.
1476: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477: case $ac_top_builddir_sub in
1478: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480: esac ;;
1481: esac
1482: ac_abs_top_builddir=$ac_pwd
1483: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484: # for backward compatibility:
1485: ac_top_builddir=$ac_top_build_prefix
1486:
1487: case $srcdir in
1488: .) # We are building in place.
1489: ac_srcdir=.
1490: ac_top_srcdir=$ac_top_builddir_sub
1491: ac_abs_top_srcdir=$ac_pwd ;;
1492: [\\/]* | ?:[\\/]* ) # Absolute name.
1493: ac_srcdir=$srcdir$ac_dir_suffix;
1494: ac_top_srcdir=$srcdir
1495: ac_abs_top_srcdir=$srcdir ;;
1496: *) # Relative name.
1497: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498: ac_top_srcdir=$ac_top_build_prefix$srcdir
1499: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500: esac
1501: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502:
1503: cd "$ac_dir" || { ac_status=$?; continue; }
1504: # Check for guested configure.
1505: if test -f "$ac_srcdir/configure.gnu"; then
1506: echo &&
1507: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508: elif test -f "$ac_srcdir/configure"; then
1509: echo &&
1510: $SHELL "$ac_srcdir/configure" --help=recursive
1511: else
1512: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513: fi || ac_status=$?
1514: cd "$ac_pwd" || { ac_status=$?; break; }
1515: done
1516: fi
1517:
1518: test -n "$ac_init_help" && exit $ac_status
1519: if $ac_init_version; then
1520: cat <<\_ACEOF
1521: rpl configure 4.0.11
1522: generated by GNU Autoconf 2.65
1523:
1524: Copyright (C) 2009 Free Software Foundation, Inc.
1525: This configure script is free software; the Free Software Foundation
1526: gives unlimited permission to copy, distribute and modify it.
1527: _ACEOF
1528: exit
1529: fi
1530:
1531: ## ------------------------ ##
1532: ## Autoconf initialization. ##
1533: ## ------------------------ ##
1534:
1535: # ac_fn_c_try_compile LINENO
1536: # --------------------------
1537: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538: ac_fn_c_try_compile ()
1539: {
1540: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541: rm -f conftest.$ac_objext
1542: if { { ac_try="$ac_compile"
1543: case "(($ac_try" in
1544: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545: *) ac_try_echo=$ac_try;;
1546: esac
1547: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548: $as_echo "$ac_try_echo"; } >&5
1549: (eval "$ac_compile") 2>conftest.err
1550: ac_status=$?
1551: if test -s conftest.err; then
1552: grep -v '^ *+' conftest.err >conftest.er1
1553: cat conftest.er1 >&5
1554: mv -f conftest.er1 conftest.err
1555: fi
1556: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557: test $ac_status = 0; } && {
1558: test -z "$ac_c_werror_flag" ||
1559: test ! -s conftest.err
1560: } && test -s conftest.$ac_objext; then :
1561: ac_retval=0
1562: else
1563: $as_echo "$as_me: failed program was:" >&5
1564: sed 's/^/| /' conftest.$ac_ext >&5
1565:
1566: ac_retval=1
1567: fi
1568: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569: as_fn_set_status $ac_retval
1570:
1571: } # ac_fn_c_try_compile
1572:
1573: # ac_fn_cxx_try_compile LINENO
1574: # ----------------------------
1575: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576: ac_fn_cxx_try_compile ()
1577: {
1578: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579: rm -f conftest.$ac_objext
1580: if { { ac_try="$ac_compile"
1581: case "(($ac_try" in
1582: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583: *) ac_try_echo=$ac_try;;
1584: esac
1585: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586: $as_echo "$ac_try_echo"; } >&5
1587: (eval "$ac_compile") 2>conftest.err
1588: ac_status=$?
1589: if test -s conftest.err; then
1590: grep -v '^ *+' conftest.err >conftest.er1
1591: cat conftest.er1 >&5
1592: mv -f conftest.er1 conftest.err
1593: fi
1594: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595: test $ac_status = 0; } && {
1596: test -z "$ac_cxx_werror_flag" ||
1597: test ! -s conftest.err
1598: } && test -s conftest.$ac_objext; then :
1599: ac_retval=0
1600: else
1601: $as_echo "$as_me: failed program was:" >&5
1602: sed 's/^/| /' conftest.$ac_ext >&5
1603:
1604: ac_retval=1
1605: fi
1606: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607: as_fn_set_status $ac_retval
1608:
1609: } # ac_fn_cxx_try_compile
1610:
1611: # ac_fn_f77_try_compile LINENO
1612: # ----------------------------
1613: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614: ac_fn_f77_try_compile ()
1615: {
1616: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617: rm -f conftest.$ac_objext
1618: if { { ac_try="$ac_compile"
1619: case "(($ac_try" in
1620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621: *) ac_try_echo=$ac_try;;
1622: esac
1623: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624: $as_echo "$ac_try_echo"; } >&5
1625: (eval "$ac_compile") 2>conftest.err
1626: ac_status=$?
1627: if test -s conftest.err; then
1628: grep -v '^ *+' conftest.err >conftest.er1
1629: cat conftest.er1 >&5
1630: mv -f conftest.er1 conftest.err
1631: fi
1632: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633: test $ac_status = 0; } && {
1634: test -z "$ac_f77_werror_flag" ||
1635: test ! -s conftest.err
1636: } && test -s conftest.$ac_objext; then :
1637: ac_retval=0
1638: else
1639: $as_echo "$as_me: failed program was:" >&5
1640: sed 's/^/| /' conftest.$ac_ext >&5
1641:
1642: ac_retval=1
1643: fi
1644: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645: as_fn_set_status $ac_retval
1646:
1647: } # ac_fn_f77_try_compile
1648:
1649: # ac_fn_fc_try_compile LINENO
1650: # ---------------------------
1651: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652: ac_fn_fc_try_compile ()
1653: {
1654: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655: rm -f conftest.$ac_objext
1656: if { { ac_try="$ac_compile"
1657: case "(($ac_try" in
1658: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659: *) ac_try_echo=$ac_try;;
1660: esac
1661: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662: $as_echo "$ac_try_echo"; } >&5
1663: (eval "$ac_compile") 2>conftest.err
1664: ac_status=$?
1665: if test -s conftest.err; then
1666: grep -v '^ *+' conftest.err >conftest.er1
1667: cat conftest.er1 >&5
1668: mv -f conftest.er1 conftest.err
1669: fi
1670: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671: test $ac_status = 0; } && {
1672: test -z "$ac_fc_werror_flag" ||
1673: test ! -s conftest.err
1674: } && test -s conftest.$ac_objext; then :
1675: ac_retval=0
1676: else
1677: $as_echo "$as_me: failed program was:" >&5
1678: sed 's/^/| /' conftest.$ac_ext >&5
1679:
1680: ac_retval=1
1681: fi
1682: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683: as_fn_set_status $ac_retval
1684:
1685: } # ac_fn_fc_try_compile
1686:
1687: # ac_fn_c_try_cpp LINENO
1688: # ----------------------
1689: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690: ac_fn_c_try_cpp ()
1691: {
1692: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693: if { { ac_try="$ac_cpp conftest.$ac_ext"
1694: case "(($ac_try" in
1695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696: *) ac_try_echo=$ac_try;;
1697: esac
1698: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699: $as_echo "$ac_try_echo"; } >&5
1700: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701: ac_status=$?
1702: if test -s conftest.err; then
1703: grep -v '^ *+' conftest.err >conftest.er1
1704: cat conftest.er1 >&5
1705: mv -f conftest.er1 conftest.err
1706: fi
1707: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708: test $ac_status = 0; } >/dev/null && {
1709: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710: test ! -s conftest.err
1711: }; then :
1712: ac_retval=0
1713: else
1714: $as_echo "$as_me: failed program was:" >&5
1715: sed 's/^/| /' conftest.$ac_ext >&5
1716:
1717: ac_retval=1
1718: fi
1719: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720: as_fn_set_status $ac_retval
1721:
1722: } # ac_fn_c_try_cpp
1723:
1724: # ac_fn_c_try_link LINENO
1725: # -----------------------
1726: # Try to link conftest.$ac_ext, and return whether this succeeded.
1727: ac_fn_c_try_link ()
1728: {
1729: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730: rm -f conftest.$ac_objext conftest$ac_exeext
1731: if { { ac_try="$ac_link"
1732: case "(($ac_try" in
1733: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734: *) ac_try_echo=$ac_try;;
1735: esac
1736: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737: $as_echo "$ac_try_echo"; } >&5
1738: (eval "$ac_link") 2>conftest.err
1739: ac_status=$?
1740: if test -s conftest.err; then
1741: grep -v '^ *+' conftest.err >conftest.er1
1742: cat conftest.er1 >&5
1743: mv -f conftest.er1 conftest.err
1744: fi
1745: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746: test $ac_status = 0; } && {
1747: test -z "$ac_c_werror_flag" ||
1748: test ! -s conftest.err
1749: } && test -s conftest$ac_exeext && {
1750: test "$cross_compiling" = yes ||
1751: $as_test_x conftest$ac_exeext
1752: }; then :
1753: ac_retval=0
1754: else
1755: $as_echo "$as_me: failed program was:" >&5
1756: sed 's/^/| /' conftest.$ac_ext >&5
1757:
1758: ac_retval=1
1759: fi
1760: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762: # interfere with the next link command; also delete a directory that is
1763: # left behind by Apple's compiler. We do this before executing the actions.
1764: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766: as_fn_set_status $ac_retval
1767:
1768: } # ac_fn_c_try_link
1769:
1770: # ac_fn_c_check_func LINENO FUNC VAR
1771: # ----------------------------------
1772: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773: ac_fn_c_check_func ()
1774: {
1775: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777: $as_echo_n "checking for $2... " >&6; }
1778: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779: $as_echo_n "(cached) " >&6
1780: else
1781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782: /* end confdefs.h. */
1783: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785: #define $2 innocuous_$2
1786:
1787: /* System header to define __stub macros and hopefully few prototypes,
1788: which can conflict with char $2 (); below.
1789: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790: <limits.h> exists even on freestanding compilers. */
1791:
1792: #ifdef __STDC__
1793: # include <limits.h>
1794: #else
1795: # include <assert.h>
1796: #endif
1797:
1798: #undef $2
1799:
1800: /* Override any GCC internal prototype to avoid an error.
1801: Use char because int might match the return type of a GCC
1802: builtin and then its argument prototype would still apply. */
1803: #ifdef __cplusplus
1804: extern "C"
1805: #endif
1806: char $2 ();
1807: /* The GNU C library defines this for functions which it implements
1808: to always fail with ENOSYS. Some functions are actually named
1809: something starting with __ and the normal name is an alias. */
1810: #if defined __stub_$2 || defined __stub___$2
1811: choke me
1812: #endif
1813:
1814: int
1815: main ()
1816: {
1817: return $2 ();
1818: ;
1819: return 0;
1820: }
1821: _ACEOF
1822: if ac_fn_c_try_link "$LINENO"; then :
1823: eval "$3=yes"
1824: else
1825: eval "$3=no"
1826: fi
1827: rm -f core conftest.err conftest.$ac_objext \
1828: conftest$ac_exeext conftest.$ac_ext
1829: fi
1830: eval ac_res=\$$3
1831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832: $as_echo "$ac_res" >&6; }
1833: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834:
1835: } # ac_fn_c_check_func
1836:
1837: # ac_fn_c_try_run LINENO
1838: # ----------------------
1839: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840: # that executables *can* be run.
1841: ac_fn_c_try_run ()
1842: {
1843: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844: if { { ac_try="$ac_link"
1845: case "(($ac_try" in
1846: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847: *) ac_try_echo=$ac_try;;
1848: esac
1849: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850: $as_echo "$ac_try_echo"; } >&5
1851: (eval "$ac_link") 2>&5
1852: ac_status=$?
1853: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855: { { case "(($ac_try" in
1856: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857: *) ac_try_echo=$ac_try;;
1858: esac
1859: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860: $as_echo "$ac_try_echo"; } >&5
1861: (eval "$ac_try") 2>&5
1862: ac_status=$?
1863: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864: test $ac_status = 0; }; }; then :
1865: ac_retval=0
1866: else
1867: $as_echo "$as_me: program exited with status $ac_status" >&5
1868: $as_echo "$as_me: failed program was:" >&5
1869: sed 's/^/| /' conftest.$ac_ext >&5
1870:
1871: ac_retval=$ac_status
1872: fi
1873: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875: as_fn_set_status $ac_retval
1876:
1877: } # ac_fn_c_try_run
1878:
1879: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1880: # --------------------------------------------
1881: # Tries to find the compile-time value of EXPR in a program that includes
1882: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1883: # computed
1884: ac_fn_c_compute_int ()
1885: {
1886: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887: if test "$cross_compiling" = yes; then
1888: # Depending upon the size, compute the lo and hi bounds.
1889: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890: /* end confdefs.h. */
1891: $4
1892: int
1893: main ()
1894: {
1895: static int test_array [1 - 2 * !(($2) >= 0)];
1896: test_array [0] = 0
1897:
1898: ;
1899: return 0;
1900: }
1901: _ACEOF
1902: if ac_fn_c_try_compile "$LINENO"; then :
1903: ac_lo=0 ac_mid=0
1904: while :; do
1905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906: /* end confdefs.h. */
1907: $4
1908: int
1909: main ()
1910: {
1911: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1912: test_array [0] = 0
1913:
1914: ;
1915: return 0;
1916: }
1917: _ACEOF
1918: if ac_fn_c_try_compile "$LINENO"; then :
1919: ac_hi=$ac_mid; break
1920: else
1921: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1922: if test $ac_lo -le $ac_mid; then
1923: ac_lo= ac_hi=
1924: break
1925: fi
1926: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1927: fi
1928: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929: done
1930: else
1931: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932: /* end confdefs.h. */
1933: $4
1934: int
1935: main ()
1936: {
1937: static int test_array [1 - 2 * !(($2) < 0)];
1938: test_array [0] = 0
1939:
1940: ;
1941: return 0;
1942: }
1943: _ACEOF
1944: if ac_fn_c_try_compile "$LINENO"; then :
1945: ac_hi=-1 ac_mid=-1
1946: while :; do
1947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948: /* end confdefs.h. */
1949: $4
1950: int
1951: main ()
1952: {
1953: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1954: test_array [0] = 0
1955:
1956: ;
1957: return 0;
1958: }
1959: _ACEOF
1960: if ac_fn_c_try_compile "$LINENO"; then :
1961: ac_lo=$ac_mid; break
1962: else
1963: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1964: if test $ac_mid -le $ac_hi; then
1965: ac_lo= ac_hi=
1966: break
1967: fi
1968: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1969: fi
1970: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971: done
1972: else
1973: ac_lo= ac_hi=
1974: fi
1975: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976: fi
1977: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978: # Binary search between lo and hi bounds.
1979: while test "x$ac_lo" != "x$ac_hi"; do
1980: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982: /* end confdefs.h. */
1983: $4
1984: int
1985: main ()
1986: {
1987: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988: test_array [0] = 0
1989:
1990: ;
1991: return 0;
1992: }
1993: _ACEOF
1994: if ac_fn_c_try_compile "$LINENO"; then :
1995: ac_hi=$ac_mid
1996: else
1997: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1998: fi
1999: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000: done
2001: case $ac_lo in #((
2002: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2003: '') ac_retval=1 ;;
2004: esac
2005: else
2006: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007: /* end confdefs.h. */
2008: $4
2009: static long int longval () { return $2; }
2010: static unsigned long int ulongval () { return $2; }
2011: #include <stdio.h>
2012: #include <stdlib.h>
2013: int
2014: main ()
2015: {
2016:
2017: FILE *f = fopen ("conftest.val", "w");
2018: if (! f)
2019: return 1;
2020: if (($2) < 0)
2021: {
2022: long int i = longval ();
2023: if (i != ($2))
2024: return 1;
2025: fprintf (f, "%ld", i);
2026: }
2027: else
2028: {
2029: unsigned long int i = ulongval ();
2030: if (i != ($2))
2031: return 1;
2032: fprintf (f, "%lu", i);
2033: }
2034: /* Do not output a trailing newline, as this causes \r\n confusion
2035: on some platforms. */
2036: return ferror (f) || fclose (f) != 0;
2037:
2038: ;
2039: return 0;
2040: }
2041: _ACEOF
2042: if ac_fn_c_try_run "$LINENO"; then :
2043: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2044: else
2045: ac_retval=1
2046: fi
2047: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2048: conftest.$ac_objext conftest.beam conftest.$ac_ext
2049: rm -f conftest.val
2050:
2051: fi
2052: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053: as_fn_set_status $ac_retval
2054:
2055: } # ac_fn_c_compute_int
2056:
2057: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058: # -------------------------------------------------------
2059: # Tests whether HEADER exists and can be compiled using the include files in
2060: # INCLUDES, setting the cache variable VAR accordingly.
2061: ac_fn_c_check_header_compile ()
2062: {
2063: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065: $as_echo_n "checking for $2... " >&6; }
2066: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067: $as_echo_n "(cached) " >&6
2068: else
2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: #include <$2>
2073: _ACEOF
2074: if ac_fn_c_try_compile "$LINENO"; then :
2075: eval "$3=yes"
2076: else
2077: eval "$3=no"
2078: fi
2079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080: fi
2081: eval ac_res=\$$3
2082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083: $as_echo "$ac_res" >&6; }
2084: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085:
2086: } # ac_fn_c_check_header_compile
2087:
2088: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2089: # -------------------------------------------------------
2090: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2091: # the include files in INCLUDES and setting the cache variable VAR
2092: # accordingly.
2093: ac_fn_c_check_header_mongrel ()
2094: {
2095: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098: $as_echo_n "checking for $2... " >&6; }
2099: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100: $as_echo_n "(cached) " >&6
2101: fi
2102: eval ac_res=\$$3
2103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104: $as_echo "$ac_res" >&6; }
2105: else
2106: # Is the header compilable?
2107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2108: $as_echo_n "checking $2 usability... " >&6; }
2109: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110: /* end confdefs.h. */
2111: $4
2112: #include <$2>
2113: _ACEOF
2114: if ac_fn_c_try_compile "$LINENO"; then :
2115: ac_header_compiler=yes
2116: else
2117: ac_header_compiler=no
2118: fi
2119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2121: $as_echo "$ac_header_compiler" >&6; }
2122:
2123: # Is the header present?
2124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2125: $as_echo_n "checking $2 presence... " >&6; }
2126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127: /* end confdefs.h. */
2128: #include <$2>
2129: _ACEOF
2130: if ac_fn_c_try_cpp "$LINENO"; then :
2131: ac_header_preproc=yes
2132: else
2133: ac_header_preproc=no
2134: fi
2135: rm -f conftest.err conftest.$ac_ext
2136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2137: $as_echo "$ac_header_preproc" >&6; }
2138:
2139: # So? What about this header?
2140: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2141: yes:no: )
2142: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2143: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2144: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146: ;;
2147: no:yes:* )
2148: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2149: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2150: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2151: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2152: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2153: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2154: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2155: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2157: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158: ;;
2159: esac
2160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161: $as_echo_n "checking for $2... " >&6; }
2162: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2163: $as_echo_n "(cached) " >&6
2164: else
2165: eval "$3=\$ac_header_compiler"
2166: fi
2167: eval ac_res=\$$3
2168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169: $as_echo "$ac_res" >&6; }
2170: fi
2171: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172:
2173: } # ac_fn_c_check_header_mongrel
2174:
2175: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2176: # -------------------------------------------
2177: # Tests whether TYPE exists after having included INCLUDES, setting cache
2178: # variable VAR accordingly.
2179: ac_fn_c_check_type ()
2180: {
2181: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183: $as_echo_n "checking for $2... " >&6; }
2184: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185: $as_echo_n "(cached) " >&6
2186: else
2187: eval "$3=no"
2188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189: /* end confdefs.h. */
2190: $4
2191: int
2192: main ()
2193: {
2194: if (sizeof ($2))
2195: return 0;
2196: ;
2197: return 0;
2198: }
2199: _ACEOF
2200: if ac_fn_c_try_compile "$LINENO"; then :
2201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202: /* end confdefs.h. */
2203: $4
2204: int
2205: main ()
2206: {
2207: if (sizeof (($2)))
2208: return 0;
2209: ;
2210: return 0;
2211: }
2212: _ACEOF
2213: if ac_fn_c_try_compile "$LINENO"; then :
2214:
2215: else
2216: eval "$3=yes"
2217: fi
2218: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219: fi
2220: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221: fi
2222: eval ac_res=\$$3
2223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224: $as_echo "$ac_res" >&6; }
2225: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226:
2227: } # ac_fn_c_check_type
2228: cat >config.log <<_ACEOF
2229: This file contains any messages produced by compilers while
2230: running configure, to aid debugging if configure makes a mistake.
2231:
2232: It was created by rpl $as_me 4.0.11, which was
2233: generated by GNU Autoconf 2.65. Invocation command line was
2234:
2235: $ $0 $@
2236:
2237: _ACEOF
2238: exec 5>>config.log
2239: {
2240: cat <<_ASUNAME
2241: ## --------- ##
2242: ## Platform. ##
2243: ## --------- ##
2244:
2245: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2246: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2247: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2248: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2249: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2250:
2251: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2252: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2253:
2254: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2255: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2256: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2257: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2258: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2259: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2260: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2261:
2262: _ASUNAME
2263:
2264: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265: for as_dir in $PATH
2266: do
2267: IFS=$as_save_IFS
2268: test -z "$as_dir" && as_dir=.
2269: $as_echo "PATH: $as_dir"
2270: done
2271: IFS=$as_save_IFS
2272:
2273: } >&5
2274:
2275: cat >&5 <<_ACEOF
2276:
2277:
2278: ## ----------- ##
2279: ## Core tests. ##
2280: ## ----------- ##
2281:
2282: _ACEOF
2283:
2284:
2285: # Keep a trace of the command line.
2286: # Strip out --no-create and --no-recursion so they do not pile up.
2287: # Strip out --silent because we don't want to record it for future runs.
2288: # Also quote any args containing shell meta-characters.
2289: # Make two passes to allow for proper duplicate-argument suppression.
2290: ac_configure_args=
2291: ac_configure_args0=
2292: ac_configure_args1=
2293: ac_must_keep_next=false
2294: for ac_pass in 1 2
2295: do
2296: for ac_arg
2297: do
2298: case $ac_arg in
2299: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2300: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2301: | -silent | --silent | --silen | --sile | --sil)
2302: continue ;;
2303: *\'*)
2304: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2305: esac
2306: case $ac_pass in
2307: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2308: 2)
2309: as_fn_append ac_configure_args1 " '$ac_arg'"
2310: if test $ac_must_keep_next = true; then
2311: ac_must_keep_next=false # Got value, back to normal.
2312: else
2313: case $ac_arg in
2314: *=* | --config-cache | -C | -disable-* | --disable-* \
2315: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2316: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2317: | -with-* | --with-* | -without-* | --without-* | --x)
2318: case "$ac_configure_args0 " in
2319: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2320: esac
2321: ;;
2322: -* ) ac_must_keep_next=true ;;
2323: esac
2324: fi
2325: as_fn_append ac_configure_args " '$ac_arg'"
2326: ;;
2327: esac
2328: done
2329: done
2330: { ac_configure_args0=; unset ac_configure_args0;}
2331: { ac_configure_args1=; unset ac_configure_args1;}
2332:
2333: # When interrupted or exit'd, cleanup temporary files, and complete
2334: # config.log. We remove comments because anyway the quotes in there
2335: # would cause problems or look ugly.
2336: # WARNING: Use '\'' to represent an apostrophe within the trap.
2337: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2338: trap 'exit_status=$?
2339: # Save into config.log some information that might help in debugging.
2340: {
2341: echo
2342:
2343: cat <<\_ASBOX
2344: ## ---------------- ##
2345: ## Cache variables. ##
2346: ## ---------------- ##
2347: _ASBOX
2348: echo
2349: # The following way of writing the cache mishandles newlines in values,
2350: (
2351: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2352: eval ac_val=\$$ac_var
2353: case $ac_val in #(
2354: *${as_nl}*)
2355: case $ac_var in #(
2356: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2357: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2358: esac
2359: case $ac_var in #(
2360: _ | IFS | as_nl) ;; #(
2361: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2362: *) { eval $ac_var=; unset $ac_var;} ;;
2363: esac ;;
2364: esac
2365: done
2366: (set) 2>&1 |
2367: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2368: *${as_nl}ac_space=\ *)
2369: sed -n \
2370: "s/'\''/'\''\\\\'\'''\''/g;
2371: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2372: ;; #(
2373: *)
2374: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2375: ;;
2376: esac |
2377: sort
2378: )
2379: echo
2380:
2381: cat <<\_ASBOX
2382: ## ----------------- ##
2383: ## Output variables. ##
2384: ## ----------------- ##
2385: _ASBOX
2386: echo
2387: for ac_var in $ac_subst_vars
2388: do
2389: eval ac_val=\$$ac_var
2390: case $ac_val in
2391: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392: esac
2393: $as_echo "$ac_var='\''$ac_val'\''"
2394: done | sort
2395: echo
2396:
2397: if test -n "$ac_subst_files"; then
2398: cat <<\_ASBOX
2399: ## ------------------- ##
2400: ## File substitutions. ##
2401: ## ------------------- ##
2402: _ASBOX
2403: echo
2404: for ac_var in $ac_subst_files
2405: do
2406: eval ac_val=\$$ac_var
2407: case $ac_val in
2408: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409: esac
2410: $as_echo "$ac_var='\''$ac_val'\''"
2411: done | sort
2412: echo
2413: fi
2414:
2415: if test -s confdefs.h; then
2416: cat <<\_ASBOX
2417: ## ----------- ##
2418: ## confdefs.h. ##
2419: ## ----------- ##
2420: _ASBOX
2421: echo
2422: cat confdefs.h
2423: echo
2424: fi
2425: test "$ac_signal" != 0 &&
2426: $as_echo "$as_me: caught signal $ac_signal"
2427: $as_echo "$as_me: exit $exit_status"
2428: } >&5
2429: rm -f core *.core core.conftest.* &&
2430: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431: exit $exit_status
2432: ' 0
2433: for ac_signal in 1 2 13 15; do
2434: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2435: done
2436: ac_signal=0
2437:
2438: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2439: rm -f -r conftest* confdefs.h
2440:
2441: $as_echo "/* confdefs.h */" > confdefs.h
2442:
2443: # Predefined preprocessor variables.
2444:
2445: cat >>confdefs.h <<_ACEOF
2446: #define PACKAGE_NAME "$PACKAGE_NAME"
2447: _ACEOF
2448:
2449: cat >>confdefs.h <<_ACEOF
2450: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2451: _ACEOF
2452:
2453: cat >>confdefs.h <<_ACEOF
2454: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2455: _ACEOF
2456:
2457: cat >>confdefs.h <<_ACEOF
2458: #define PACKAGE_STRING "$PACKAGE_STRING"
2459: _ACEOF
2460:
2461: cat >>confdefs.h <<_ACEOF
2462: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2463: _ACEOF
2464:
2465: cat >>confdefs.h <<_ACEOF
2466: #define PACKAGE_URL "$PACKAGE_URL"
2467: _ACEOF
2468:
2469:
2470: # Let the site file select an alternate cache file if it wants to.
2471: # Prefer an explicitly selected file to automatically selected ones.
2472: ac_site_file1=NONE
2473: ac_site_file2=NONE
2474: if test -n "$CONFIG_SITE"; then
2475: ac_site_file1=$CONFIG_SITE
2476: elif test "x$prefix" != xNONE; then
2477: ac_site_file1=$prefix/share/config.site
2478: ac_site_file2=$prefix/etc/config.site
2479: else
2480: ac_site_file1=$ac_default_prefix/share/config.site
2481: ac_site_file2=$ac_default_prefix/etc/config.site
2482: fi
2483: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2484: do
2485: test "x$ac_site_file" = xNONE && continue
2486: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2487: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2488: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2489: sed 's/^/| /' "$ac_site_file" >&5
2490: . "$ac_site_file"
2491: fi
2492: done
2493:
2494: if test -r "$cache_file"; then
2495: # Some versions of bash will fail to source /dev/null (special files
2496: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2497: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2498: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2499: $as_echo "$as_me: loading cache $cache_file" >&6;}
2500: case $cache_file in
2501: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2502: *) . "./$cache_file";;
2503: esac
2504: fi
2505: else
2506: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2507: $as_echo "$as_me: creating cache $cache_file" >&6;}
2508: >$cache_file
2509: fi
2510:
2511: # Check that the precious variables saved in the cache have kept the same
2512: # value.
2513: ac_cache_corrupted=false
2514: for ac_var in $ac_precious_vars; do
2515: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2516: eval ac_new_set=\$ac_env_${ac_var}_set
2517: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2518: eval ac_new_val=\$ac_env_${ac_var}_value
2519: case $ac_old_set,$ac_new_set in
2520: set,)
2521: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2522: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2523: ac_cache_corrupted=: ;;
2524: ,set)
2525: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2526: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2527: ac_cache_corrupted=: ;;
2528: ,);;
2529: *)
2530: if test "x$ac_old_val" != "x$ac_new_val"; then
2531: # differences in whitespace do not lead to failure.
2532: ac_old_val_w=`echo x $ac_old_val`
2533: ac_new_val_w=`echo x $ac_new_val`
2534: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2535: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2536: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2537: ac_cache_corrupted=:
2538: else
2539: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2540: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2541: eval $ac_var=\$ac_old_val
2542: fi
2543: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2544: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2545: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2546: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2547: fi;;
2548: esac
2549: # Pass precious variables to config.status.
2550: if test "$ac_new_set" = set; then
2551: case $ac_new_val in
2552: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2553: *) ac_arg=$ac_var=$ac_new_val ;;
2554: esac
2555: case " $ac_configure_args " in
2556: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2557: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2558: esac
2559: fi
2560: done
2561: if $ac_cache_corrupted; then
2562: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2565: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2566: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2567: fi
2568: ## -------------------- ##
2569: ## Main body of script. ##
2570: ## -------------------- ##
2571:
2572: ac_ext=c
2573: ac_cpp='$CPP $CPPFLAGS'
2574: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577:
2578:
2579: ac_aux_dir=
2580: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2581: for ac_t in install-sh install.sh shtool; do
2582: if test -f "$ac_dir/$ac_t"; then
2583: ac_aux_dir=$ac_dir
2584: ac_install_sh="$ac_aux_dir/$ac_t -c"
2585: break 2
2586: fi
2587: done
2588: done
2589: if test -z "$ac_aux_dir"; then
2590: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2591: fi
2592:
2593: # These three variables are undocumented and unsupported,
2594: # and are intended to be withdrawn in a future Autoconf release.
2595: # They can cause serious problems if a builder's source tree is in a directory
2596: # whose full name contains unusual characters.
2597: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2598: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2599: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2600:
2601:
2602: # Make sure we can run config.sub.
2603: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605:
2606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607: $as_echo_n "checking build system type... " >&6; }
2608: if test "${ac_cv_build+set}" = set; then :
2609: $as_echo_n "(cached) " >&6
2610: else
2611: ac_build_alias=$build_alias
2612: test "x$ac_build_alias" = x &&
2613: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614: test "x$ac_build_alias" = x &&
2615: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2616: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2618:
2619: fi
2620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621: $as_echo "$ac_cv_build" >&6; }
2622: case $ac_cv_build in
2623: *-*-*) ;;
2624: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2625: esac
2626: build=$ac_cv_build
2627: ac_save_IFS=$IFS; IFS='-'
2628: set x $ac_cv_build
2629: shift
2630: build_cpu=$1
2631: build_vendor=$2
2632: shift; shift
2633: # Remember, the first character of IFS is used to create $*,
2634: # except with old shells:
2635: build_os=$*
2636: IFS=$ac_save_IFS
2637: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638:
2639:
2640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641: $as_echo_n "checking host system type... " >&6; }
2642: if test "${ac_cv_host+set}" = set; then :
2643: $as_echo_n "(cached) " >&6
2644: else
2645: if test "x$host_alias" = x; then
2646: ac_cv_host=$ac_cv_build
2647: else
2648: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2650: fi
2651:
2652: fi
2653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654: $as_echo "$ac_cv_host" >&6; }
2655: case $ac_cv_host in
2656: *-*-*) ;;
2657: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2658: esac
2659: host=$ac_cv_host
2660: ac_save_IFS=$IFS; IFS='-'
2661: set x $ac_cv_host
2662: shift
2663: host_cpu=$1
2664: host_vendor=$2
2665: shift; shift
2666: # Remember, the first character of IFS is used to create $*,
2667: # except with old shells:
2668: host_os=$*
2669: IFS=$ac_save_IFS
2670: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671:
2672:
2673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674: $as_echo_n "checking target system type... " >&6; }
2675: if test "${ac_cv_target+set}" = set; then :
2676: $as_echo_n "(cached) " >&6
2677: else
2678: if test "x$target_alias" = x; then
2679: ac_cv_target=$ac_cv_host
2680: else
2681: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2683: fi
2684:
2685: fi
2686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687: $as_echo "$ac_cv_target" >&6; }
2688: case $ac_cv_target in
2689: *-*-*) ;;
2690: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2691: esac
2692: target=$ac_cv_target
2693: ac_save_IFS=$IFS; IFS='-'
2694: set x $ac_cv_target
2695: shift
2696: target_cpu=$1
2697: target_vendor=$2
2698: shift; shift
2699: # Remember, the first character of IFS is used to create $*,
2700: # except with old shells:
2701: target_os=$*
2702: IFS=$ac_save_IFS
2703: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704:
2705:
2706: # The aliases save the names the user supplied, while $host etc.
2707: # will get canonicalized.
2708: test -n "$target_alias" &&
2709: test "$program_prefix$program_suffix$program_transform_name" = \
2710: NONENONEs,x,x, &&
2711: program_prefix=${target_alias}-
2712:
2713: am__api_version='1.11'
2714:
2715: # Find a good install program. We prefer a C program (faster),
2716: # so one script is as good as another. But avoid the broken or
2717: # incompatible versions:
2718: # SysV /etc/install, /usr/sbin/install
2719: # SunOS /usr/etc/install
2720: # IRIX /sbin/install
2721: # AIX /bin/install
2722: # AmigaOS /C/install, which installs bootblocks on floppy discs
2723: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2724: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2725: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2726: # OS/2's system install, which has a completely different semantic
2727: # ./install, which can be erroneously created by make from ./install.sh.
2728: # Reject install programs that cannot install multiple files.
2729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2730: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2731: if test -z "$INSTALL"; then
2732: if test "${ac_cv_path_install+set}" = set; then :
2733: $as_echo_n "(cached) " >&6
2734: else
2735: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736: for as_dir in $PATH
2737: do
2738: IFS=$as_save_IFS
2739: test -z "$as_dir" && as_dir=.
2740: # Account for people who put trailing slashes in PATH elements.
2741: case $as_dir/ in #((
2742: ./ | .// | /[cC]/* | \
2743: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2744: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2745: /usr/ucb/* ) ;;
2746: *)
2747: # OSF1 and SCO ODT 3.0 have their own names for install.
2748: # Don't use installbsd from OSF since it installs stuff as root
2749: # by default.
2750: for ac_prog in ginstall scoinst install; do
2751: for ac_exec_ext in '' $ac_executable_extensions; do
2752: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2753: if test $ac_prog = install &&
2754: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2755: # AIX install. It has an incompatible calling convention.
2756: :
2757: elif test $ac_prog = install &&
2758: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2759: # program-specific install script used by HP pwplus--don't use.
2760: :
2761: else
2762: rm -rf conftest.one conftest.two conftest.dir
2763: echo one > conftest.one
2764: echo two > conftest.two
2765: mkdir conftest.dir
2766: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2767: test -s conftest.one && test -s conftest.two &&
2768: test -s conftest.dir/conftest.one &&
2769: test -s conftest.dir/conftest.two
2770: then
2771: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2772: break 3
2773: fi
2774: fi
2775: fi
2776: done
2777: done
2778: ;;
2779: esac
2780:
2781: done
2782: IFS=$as_save_IFS
2783:
2784: rm -rf conftest.one conftest.two conftest.dir
2785:
2786: fi
2787: if test "${ac_cv_path_install+set}" = set; then
2788: INSTALL=$ac_cv_path_install
2789: else
2790: # As a last resort, use the slow shell script. Don't cache a
2791: # value for INSTALL within a source directory, because that will
2792: # break other packages using the cache if that directory is
2793: # removed, or if the value is a relative name.
2794: INSTALL=$ac_install_sh
2795: fi
2796: fi
2797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2798: $as_echo "$INSTALL" >&6; }
2799:
2800: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2801: # It thinks the first close brace ends the variable substitution.
2802: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2803:
2804: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2805:
2806: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2807:
2808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2809: $as_echo_n "checking whether build environment is sane... " >&6; }
2810: # Just in case
2811: sleep 1
2812: echo timestamp > conftest.file
2813: # Reject unsafe characters in $srcdir or the absolute working directory
2814: # name. Accept space and tab only in the latter.
2815: am_lf='
2816: '
2817: case `pwd` in
2818: *[\\\"\#\$\&\'\`$am_lf]*)
2819: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2820: esac
2821: case $srcdir in
2822: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2823: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2824: esac
2825:
2826: # Do `set' in a subshell so we don't clobber the current shell's
2827: # arguments. Must try -L first in case configure is actually a
2828: # symlink; some systems play weird games with the mod time of symlinks
2829: # (eg FreeBSD returns the mod time of the symlink's containing
2830: # directory).
2831: if (
2832: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2833: if test "$*" = "X"; then
2834: # -L didn't work.
2835: set X `ls -t "$srcdir/configure" conftest.file`
2836: fi
2837: rm -f conftest.file
2838: if test "$*" != "X $srcdir/configure conftest.file" \
2839: && test "$*" != "X conftest.file $srcdir/configure"; then
2840:
2841: # If neither matched, then we have a broken ls. This can happen
2842: # if, for instance, CONFIG_SHELL is bash and it inherits a
2843: # broken ls alias from the environment. This has actually
2844: # happened. Such a system could not be considered "sane".
2845: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2846: alias in your environment" "$LINENO" 5
2847: fi
2848:
2849: test "$2" = conftest.file
2850: )
2851: then
2852: # Ok.
2853: :
2854: else
2855: as_fn_error "newly created file is older than distributed files!
2856: Check your system clock" "$LINENO" 5
2857: fi
2858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859: $as_echo "yes" >&6; }
2860: test "$program_prefix" != NONE &&
2861: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2862: # Use a double $ so make ignores it.
2863: test "$program_suffix" != NONE &&
2864: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2865: # Double any \ or $.
2866: # By default was `s,x,x', remove it if useless.
2867: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2868: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2869:
2870: # expand $ac_aux_dir to an absolute path
2871: am_aux_dir=`cd $ac_aux_dir && pwd`
2872:
2873: if test x"${MISSING+set}" != xset; then
2874: case $am_aux_dir in
2875: *\ * | *\ *)
2876: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2877: *)
2878: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2879: esac
2880: fi
2881: # Use eval to expand $SHELL
2882: if eval "$MISSING --run true"; then
2883: am_missing_run="$MISSING --run "
2884: else
2885: am_missing_run=
2886: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2887: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2888: fi
2889:
2890: if test x"${install_sh}" != xset; then
2891: case $am_aux_dir in
2892: *\ * | *\ *)
2893: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2894: *)
2895: install_sh="\${SHELL} $am_aux_dir/install-sh"
2896: esac
2897: fi
2898:
2899: # Installed binaries are usually stripped using `strip' when the user
2900: # run `make install-strip'. However `strip' might not be the right
2901: # tool to use in cross-compilation environments, therefore Automake
2902: # will honor the `STRIP' environment variable to overrule this program.
2903: if test "$cross_compiling" != no; then
2904: if test -n "$ac_tool_prefix"; then
2905: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2906: set dummy ${ac_tool_prefix}strip; ac_word=$2
2907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908: $as_echo_n "checking for $ac_word... " >&6; }
2909: if test "${ac_cv_prog_STRIP+set}" = set; then :
2910: $as_echo_n "(cached) " >&6
2911: else
2912: if test -n "$STRIP"; then
2913: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2914: else
2915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916: for as_dir in $PATH
2917: do
2918: IFS=$as_save_IFS
2919: test -z "$as_dir" && as_dir=.
2920: for ac_exec_ext in '' $ac_executable_extensions; do
2921: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2923: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924: break 2
2925: fi
2926: done
2927: done
2928: IFS=$as_save_IFS
2929:
2930: fi
2931: fi
2932: STRIP=$ac_cv_prog_STRIP
2933: if test -n "$STRIP"; then
2934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2935: $as_echo "$STRIP" >&6; }
2936: else
2937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938: $as_echo "no" >&6; }
2939: fi
2940:
2941:
2942: fi
2943: if test -z "$ac_cv_prog_STRIP"; then
2944: ac_ct_STRIP=$STRIP
2945: # Extract the first word of "strip", so it can be a program name with args.
2946: set dummy strip; ac_word=$2
2947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948: $as_echo_n "checking for $ac_word... " >&6; }
2949: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2950: $as_echo_n "(cached) " >&6
2951: else
2952: if test -n "$ac_ct_STRIP"; then
2953: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954: else
2955: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956: for as_dir in $PATH
2957: do
2958: IFS=$as_save_IFS
2959: test -z "$as_dir" && as_dir=.
2960: for ac_exec_ext in '' $ac_executable_extensions; do
2961: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962: ac_cv_prog_ac_ct_STRIP="strip"
2963: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964: break 2
2965: fi
2966: done
2967: done
2968: IFS=$as_save_IFS
2969:
2970: fi
2971: fi
2972: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2973: if test -n "$ac_ct_STRIP"; then
2974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2975: $as_echo "$ac_ct_STRIP" >&6; }
2976: else
2977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978: $as_echo "no" >&6; }
2979: fi
2980:
2981: if test "x$ac_ct_STRIP" = x; then
2982: STRIP=":"
2983: else
2984: case $cross_compiling:$ac_tool_warned in
2985: yes:)
2986: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988: ac_tool_warned=yes ;;
2989: esac
2990: STRIP=$ac_ct_STRIP
2991: fi
2992: else
2993: STRIP="$ac_cv_prog_STRIP"
2994: fi
2995:
2996: fi
2997: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2998:
2999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3000: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3001: if test -z "$MKDIR_P"; then
3002: if test "${ac_cv_path_mkdir+set}" = set; then :
3003: $as_echo_n "(cached) " >&6
3004: else
3005: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3007: do
3008: IFS=$as_save_IFS
3009: test -z "$as_dir" && as_dir=.
3010: for ac_prog in mkdir gmkdir; do
3011: for ac_exec_ext in '' $ac_executable_extensions; do
3012: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3013: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3014: 'mkdir (GNU coreutils) '* | \
3015: 'mkdir (coreutils) '* | \
3016: 'mkdir (fileutils) '4.1*)
3017: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3018: break 3;;
3019: esac
3020: done
3021: done
3022: done
3023: IFS=$as_save_IFS
3024:
3025: fi
3026:
3027: test -d ./--version && rmdir ./--version
3028: if test "${ac_cv_path_mkdir+set}" = set; then
3029: MKDIR_P="$ac_cv_path_mkdir -p"
3030: else
3031: # As a last resort, use the slow shell script. Don't cache a
3032: # value for MKDIR_P within a source directory, because that will
3033: # break other packages using the cache if that directory is
3034: # removed, or if the value is a relative name.
3035: MKDIR_P="$ac_install_sh -d"
3036: fi
3037: fi
3038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3039: $as_echo "$MKDIR_P" >&6; }
3040:
3041: mkdir_p="$MKDIR_P"
3042: case $mkdir_p in
3043: [\\/$]* | ?:[\\/]*) ;;
3044: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3045: esac
3046:
3047: for ac_prog in gawk mawk nawk awk
3048: do
3049: # Extract the first word of "$ac_prog", so it can be a program name with args.
3050: set dummy $ac_prog; ac_word=$2
3051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052: $as_echo_n "checking for $ac_word... " >&6; }
3053: if test "${ac_cv_prog_AWK+set}" = set; then :
3054: $as_echo_n "(cached) " >&6
3055: else
3056: if test -n "$AWK"; then
3057: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3058: else
3059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060: for as_dir in $PATH
3061: do
3062: IFS=$as_save_IFS
3063: test -z "$as_dir" && as_dir=.
3064: for ac_exec_ext in '' $ac_executable_extensions; do
3065: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066: ac_cv_prog_AWK="$ac_prog"
3067: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068: break 2
3069: fi
3070: done
3071: done
3072: IFS=$as_save_IFS
3073:
3074: fi
3075: fi
3076: AWK=$ac_cv_prog_AWK
3077: if test -n "$AWK"; then
3078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3079: $as_echo "$AWK" >&6; }
3080: else
3081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082: $as_echo "no" >&6; }
3083: fi
3084:
3085:
3086: test -n "$AWK" && break
3087: done
3088:
3089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3091: set x ${MAKE-make}
3092: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3094: $as_echo_n "(cached) " >&6
3095: else
3096: cat >conftest.make <<\_ACEOF
3097: SHELL = /bin/sh
3098: all:
3099: @echo '@@@%%%=$(MAKE)=@@@%%%'
3100: _ACEOF
3101: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3102: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3103: *@@@%%%=?*=@@@%%%*)
3104: eval ac_cv_prog_make_${ac_make}_set=yes;;
3105: *)
3106: eval ac_cv_prog_make_${ac_make}_set=no;;
3107: esac
3108: rm -f conftest.make
3109: fi
3110: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112: $as_echo "yes" >&6; }
3113: SET_MAKE=
3114: else
3115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116: $as_echo "no" >&6; }
3117: SET_MAKE="MAKE=${MAKE-make}"
3118: fi
3119:
3120: rm -rf .tst 2>/dev/null
3121: mkdir .tst 2>/dev/null
3122: if test -d .tst; then
3123: am__leading_dot=.
3124: else
3125: am__leading_dot=_
3126: fi
3127: rmdir .tst 2>/dev/null
3128:
3129: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131: # is not polluted with repeated "-I."
3132: am__isrc=' -I$(srcdir)'
3133: # test to see if srcdir already configured
3134: if test -f $srcdir/config.status; then
3135: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136: fi
3137: fi
3138:
3139: # test whether we have cygpath
3140: if test -z "$CYGPATH_W"; then
3141: if (cygpath --version) >/dev/null 2>/dev/null; then
3142: CYGPATH_W='cygpath -w'
3143: else
3144: CYGPATH_W=echo
3145: fi
3146: fi
3147:
3148:
3149: # Define the identity of the package.
3150: PACKAGE='rpl'
3151: VERSION='4.0.11'
3152:
3153:
3154: cat >>confdefs.h <<_ACEOF
3155: #define PACKAGE "$PACKAGE"
3156: _ACEOF
3157:
3158:
3159: cat >>confdefs.h <<_ACEOF
3160: #define VERSION "$VERSION"
3161: _ACEOF
3162:
3163: # Some tools Automake needs.
3164:
3165: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3166:
3167:
3168: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3169:
3170:
3171: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3172:
3173:
3174: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3175:
3176:
3177: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3178:
3179: # We need awk for the "check" target. The system "awk" is bad on
3180: # some platforms.
3181: # Always define AMTAR for backward compatibility.
3182:
3183: AMTAR=${AMTAR-"${am_missing_run}tar"}
3184:
3185: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3186:
3187:
3188:
3189:
3190:
3191:
3192: ac_config_headers="$ac_config_headers rplconfig.h"
3193:
3194:
3195: NCURSES=ncurses-5.7-20100206
3196: READLINE=readline-6.1
3197: UNITS=units-1.87
3198: GSL=gsl-1.13
3199: GPP=gpp-2.24
3200: GNUPLOT=gnuplot-4.2.6
3201: FILE=file-5.03
3202: ICONV=libiconv-1.13.1
3203:
3204: ac_ext=c
3205: ac_cpp='$CPP $CPPFLAGS'
3206: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209: if test -n "$ac_tool_prefix"; then
3210: for ac_prog in gcc-4.4 gcc
3211: do
3212: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3213: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215: $as_echo_n "checking for $ac_word... " >&6; }
3216: if test "${ac_cv_prog_CC+set}" = set; then :
3217: $as_echo_n "(cached) " >&6
3218: else
3219: if test -n "$CC"; then
3220: ac_cv_prog_CC="$CC" # Let the user override the test.
3221: else
3222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223: for as_dir in $PATH
3224: do
3225: IFS=$as_save_IFS
3226: test -z "$as_dir" && as_dir=.
3227: for ac_exec_ext in '' $ac_executable_extensions; do
3228: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3230: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231: break 2
3232: fi
3233: done
3234: done
3235: IFS=$as_save_IFS
3236:
3237: fi
3238: fi
3239: CC=$ac_cv_prog_CC
3240: if test -n "$CC"; then
3241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242: $as_echo "$CC" >&6; }
3243: else
3244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245: $as_echo "no" >&6; }
3246: fi
3247:
3248:
3249: test -n "$CC" && break
3250: done
3251: fi
3252: if test -z "$CC"; then
3253: ac_ct_CC=$CC
3254: for ac_prog in gcc-4.4 gcc
3255: do
3256: # Extract the first word of "$ac_prog", so it can be a program name with args.
3257: set dummy $ac_prog; ac_word=$2
3258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259: $as_echo_n "checking for $ac_word... " >&6; }
3260: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3261: $as_echo_n "(cached) " >&6
3262: else
3263: if test -n "$ac_ct_CC"; then
3264: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265: else
3266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267: for as_dir in $PATH
3268: do
3269: IFS=$as_save_IFS
3270: test -z "$as_dir" && as_dir=.
3271: for ac_exec_ext in '' $ac_executable_extensions; do
3272: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273: ac_cv_prog_ac_ct_CC="$ac_prog"
3274: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275: break 2
3276: fi
3277: done
3278: done
3279: IFS=$as_save_IFS
3280:
3281: fi
3282: fi
3283: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284: if test -n "$ac_ct_CC"; then
3285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286: $as_echo "$ac_ct_CC" >&6; }
3287: else
3288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289: $as_echo "no" >&6; }
3290: fi
3291:
3292:
3293: test -n "$ac_ct_CC" && break
3294: done
3295:
3296: if test "x$ac_ct_CC" = x; then
3297: CC=""
3298: else
3299: case $cross_compiling:$ac_tool_warned in
3300: yes:)
3301: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303: ac_tool_warned=yes ;;
3304: esac
3305: CC=$ac_ct_CC
3306: fi
3307: fi
3308:
3309:
3310: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312: as_fn_error "no acceptable C compiler found in \$PATH
3313: See \`config.log' for more details." "$LINENO" 5; }
3314:
3315: # Provide some information about the compiler.
3316: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3317: set X $ac_compile
3318: ac_compiler=$2
3319: for ac_option in --version -v -V -qversion; do
3320: { { ac_try="$ac_compiler $ac_option >&5"
3321: case "(($ac_try" in
3322: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323: *) ac_try_echo=$ac_try;;
3324: esac
3325: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326: $as_echo "$ac_try_echo"; } >&5
3327: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3328: ac_status=$?
3329: if test -s conftest.err; then
3330: sed '10a\
3331: ... rest of stderr output deleted ...
3332: 10q' conftest.err >conftest.er1
3333: cat conftest.er1 >&5
3334: fi
3335: rm -f conftest.er1 conftest.err
3336: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337: test $ac_status = 0; }
3338: done
3339:
3340: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341: /* end confdefs.h. */
3342:
3343: int
3344: main ()
3345: {
3346:
3347: ;
3348: return 0;
3349: }
3350: _ACEOF
3351: ac_clean_files_save=$ac_clean_files
3352: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3353: # Try to create an executable without -o first, disregard a.out.
3354: # It will help us diagnose broken compilers, and finding out an intuition
3355: # of exeext.
3356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3357: $as_echo_n "checking whether the C compiler works... " >&6; }
3358: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3359:
3360: # The possible output files:
3361: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362:
3363: ac_rmfiles=
3364: for ac_file in $ac_files
3365: do
3366: case $ac_file in
3367: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3368: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3369: esac
3370: done
3371: rm -f $ac_rmfiles
3372:
3373: if { { ac_try="$ac_link_default"
3374: case "(($ac_try" in
3375: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376: *) ac_try_echo=$ac_try;;
3377: esac
3378: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379: $as_echo "$ac_try_echo"; } >&5
3380: (eval "$ac_link_default") 2>&5
3381: ac_status=$?
3382: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383: test $ac_status = 0; }; then :
3384: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3385: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3386: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3387: # so that the user can short-circuit this test for compilers unknown to
3388: # Autoconf.
3389: for ac_file in $ac_files ''
3390: do
3391: test -f "$ac_file" || continue
3392: case $ac_file in
3393: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394: ;;
3395: [ab].out )
3396: # We found the default executable, but exeext='' is most
3397: # certainly right.
3398: break;;
3399: *.* )
3400: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3401: then :; else
3402: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403: fi
3404: # We set ac_cv_exeext here because the later test for it is not
3405: # safe: cross compilers may not add the suffix if given an `-o'
3406: # argument, so we may need to know it at that point already.
3407: # Even if this section looks crufty: it has the advantage of
3408: # actually working.
3409: break;;
3410: * )
3411: break;;
3412: esac
3413: done
3414: test "$ac_cv_exeext" = no && ac_cv_exeext=
3415:
3416: else
3417: ac_file=''
3418: fi
3419: if test -z "$ac_file"; then :
3420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421: $as_echo "no" >&6; }
3422: $as_echo "$as_me: failed program was:" >&5
3423: sed 's/^/| /' conftest.$ac_ext >&5
3424:
3425: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427: { as_fn_set_status 77
3428: as_fn_error "C compiler cannot create executables
3429: See \`config.log' for more details." "$LINENO" 5; }; }
3430: else
3431: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432: $as_echo "yes" >&6; }
3433: fi
3434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3435: $as_echo_n "checking for C compiler default output file name... " >&6; }
3436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3437: $as_echo "$ac_file" >&6; }
3438: ac_exeext=$ac_cv_exeext
3439:
3440: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3441: ac_clean_files=$ac_clean_files_save
3442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3443: $as_echo_n "checking for suffix of executables... " >&6; }
3444: if { { ac_try="$ac_link"
3445: case "(($ac_try" in
3446: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447: *) ac_try_echo=$ac_try;;
3448: esac
3449: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450: $as_echo "$ac_try_echo"; } >&5
3451: (eval "$ac_link") 2>&5
3452: ac_status=$?
3453: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454: test $ac_status = 0; }; then :
3455: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3456: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3457: # work properly (i.e., refer to `conftest.exe'), while it won't with
3458: # `rm'.
3459: for ac_file in conftest.exe conftest conftest.*; do
3460: test -f "$ac_file" || continue
3461: case $ac_file in
3462: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464: break;;
3465: * ) break;;
3466: esac
3467: done
3468: else
3469: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471: as_fn_error "cannot compute suffix of executables: cannot compile and link
3472: See \`config.log' for more details." "$LINENO" 5; }
3473: fi
3474: rm -f conftest conftest$ac_cv_exeext
3475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3476: $as_echo "$ac_cv_exeext" >&6; }
3477:
3478: rm -f conftest.$ac_ext
3479: EXEEXT=$ac_cv_exeext
3480: ac_exeext=$EXEEXT
3481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482: /* end confdefs.h. */
3483: #include <stdio.h>
3484: int
3485: main ()
3486: {
3487: FILE *f = fopen ("conftest.out", "w");
3488: return ferror (f) || fclose (f) != 0;
3489:
3490: ;
3491: return 0;
3492: }
3493: _ACEOF
3494: ac_clean_files="$ac_clean_files conftest.out"
3495: # Check that the compiler produces executables we can run. If not, either
3496: # the compiler is broken, or we cross compile.
3497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3498: $as_echo_n "checking whether we are cross compiling... " >&6; }
3499: if test "$cross_compiling" != yes; then
3500: { { ac_try="$ac_link"
3501: case "(($ac_try" in
3502: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503: *) ac_try_echo=$ac_try;;
3504: esac
3505: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506: $as_echo "$ac_try_echo"; } >&5
3507: (eval "$ac_link") 2>&5
3508: ac_status=$?
3509: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510: test $ac_status = 0; }
3511: if { ac_try='./conftest$ac_cv_exeext'
3512: { { case "(($ac_try" in
3513: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514: *) ac_try_echo=$ac_try;;
3515: esac
3516: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517: $as_echo "$ac_try_echo"; } >&5
3518: (eval "$ac_try") 2>&5
3519: ac_status=$?
3520: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521: test $ac_status = 0; }; }; then
3522: cross_compiling=no
3523: else
3524: if test "$cross_compiling" = maybe; then
3525: cross_compiling=yes
3526: else
3527: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529: as_fn_error "cannot run C compiled programs.
3530: If you meant to cross compile, use \`--host'.
3531: See \`config.log' for more details." "$LINENO" 5; }
3532: fi
3533: fi
3534: fi
3535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536: $as_echo "$cross_compiling" >&6; }
3537:
3538: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3539: ac_clean_files=$ac_clean_files_save
3540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3541: $as_echo_n "checking for suffix of object files... " >&6; }
3542: if test "${ac_cv_objext+set}" = set; then :
3543: $as_echo_n "(cached) " >&6
3544: else
3545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546: /* end confdefs.h. */
3547:
3548: int
3549: main ()
3550: {
3551:
3552: ;
3553: return 0;
3554: }
3555: _ACEOF
3556: rm -f conftest.o conftest.obj
3557: if { { ac_try="$ac_compile"
3558: case "(($ac_try" in
3559: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560: *) ac_try_echo=$ac_try;;
3561: esac
3562: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563: $as_echo "$ac_try_echo"; } >&5
3564: (eval "$ac_compile") 2>&5
3565: ac_status=$?
3566: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567: test $ac_status = 0; }; then :
3568: for ac_file in conftest.o conftest.obj conftest.*; do
3569: test -f "$ac_file" || continue;
3570: case $ac_file in
3571: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3572: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573: break;;
3574: esac
3575: done
3576: else
3577: $as_echo "$as_me: failed program was:" >&5
3578: sed 's/^/| /' conftest.$ac_ext >&5
3579:
3580: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582: as_fn_error "cannot compute suffix of object files: cannot compile
3583: See \`config.log' for more details." "$LINENO" 5; }
3584: fi
3585: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3586: fi
3587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3588: $as_echo "$ac_cv_objext" >&6; }
3589: OBJEXT=$ac_cv_objext
3590: ac_objext=$OBJEXT
3591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3592: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3594: $as_echo_n "(cached) " >&6
3595: else
3596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597: /* end confdefs.h. */
3598:
3599: int
3600: main ()
3601: {
3602: #ifndef __GNUC__
3603: choke me
3604: #endif
3605:
3606: ;
3607: return 0;
3608: }
3609: _ACEOF
3610: if ac_fn_c_try_compile "$LINENO"; then :
3611: ac_compiler_gnu=yes
3612: else
3613: ac_compiler_gnu=no
3614: fi
3615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3617:
3618: fi
3619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3620: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3621: if test $ac_compiler_gnu = yes; then
3622: GCC=yes
3623: else
3624: GCC=
3625: fi
3626: ac_test_CFLAGS=${CFLAGS+set}
3627: ac_save_CFLAGS=$CFLAGS
3628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3629: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3630: if test "${ac_cv_prog_cc_g+set}" = set; then :
3631: $as_echo_n "(cached) " >&6
3632: else
3633: ac_save_c_werror_flag=$ac_c_werror_flag
3634: ac_c_werror_flag=yes
3635: ac_cv_prog_cc_g=no
3636: CFLAGS="-g"
3637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638: /* end confdefs.h. */
3639:
3640: int
3641: main ()
3642: {
3643:
3644: ;
3645: return 0;
3646: }
3647: _ACEOF
3648: if ac_fn_c_try_compile "$LINENO"; then :
3649: ac_cv_prog_cc_g=yes
3650: else
3651: CFLAGS=""
3652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653: /* end confdefs.h. */
3654:
3655: int
3656: main ()
3657: {
3658:
3659: ;
3660: return 0;
3661: }
3662: _ACEOF
3663: if ac_fn_c_try_compile "$LINENO"; then :
3664:
3665: else
3666: ac_c_werror_flag=$ac_save_c_werror_flag
3667: CFLAGS="-g"
3668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669: /* end confdefs.h. */
3670:
3671: int
3672: main ()
3673: {
3674:
3675: ;
3676: return 0;
3677: }
3678: _ACEOF
3679: if ac_fn_c_try_compile "$LINENO"; then :
3680: ac_cv_prog_cc_g=yes
3681: fi
3682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683: fi
3684: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685: fi
3686: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687: ac_c_werror_flag=$ac_save_c_werror_flag
3688: fi
3689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3690: $as_echo "$ac_cv_prog_cc_g" >&6; }
3691: if test "$ac_test_CFLAGS" = set; then
3692: CFLAGS=$ac_save_CFLAGS
3693: elif test $ac_cv_prog_cc_g = yes; then
3694: if test "$GCC" = yes; then
3695: CFLAGS="-g -O2"
3696: else
3697: CFLAGS="-g"
3698: fi
3699: else
3700: if test "$GCC" = yes; then
3701: CFLAGS="-O2"
3702: else
3703: CFLAGS=
3704: fi
3705: fi
3706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3707: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3708: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3709: $as_echo_n "(cached) " >&6
3710: else
3711: ac_cv_prog_cc_c89=no
3712: ac_save_CC=$CC
3713: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714: /* end confdefs.h. */
3715: #include <stdarg.h>
3716: #include <stdio.h>
3717: #include <sys/types.h>
3718: #include <sys/stat.h>
3719: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3720: struct buf { int x; };
3721: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3722: static char *e (p, i)
3723: char **p;
3724: int i;
3725: {
3726: return p[i];
3727: }
3728: static char *f (char * (*g) (char **, int), char **p, ...)
3729: {
3730: char *s;
3731: va_list v;
3732: va_start (v,p);
3733: s = g (p, va_arg (v,int));
3734: va_end (v);
3735: return s;
3736: }
3737:
3738: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3739: function prototypes and stuff, but not '\xHH' hex character constants.
3740: These don't provoke an error unfortunately, instead are silently treated
3741: as 'x'. The following induces an error, until -std is added to get
3742: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3743: array size at least. It's necessary to write '\x00'==0 to get something
3744: that's true only with -std. */
3745: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3746:
3747: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3748: inside strings and character constants. */
3749: #define FOO(x) 'x'
3750: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3751:
3752: int test (int i, double x);
3753: struct s1 {int (*f) (int a);};
3754: struct s2 {int (*f) (double a);};
3755: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3756: int argc;
3757: char **argv;
3758: int
3759: main ()
3760: {
3761: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762: ;
3763: return 0;
3764: }
3765: _ACEOF
3766: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3767: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3768: do
3769: CC="$ac_save_CC $ac_arg"
3770: if ac_fn_c_try_compile "$LINENO"; then :
3771: ac_cv_prog_cc_c89=$ac_arg
3772: fi
3773: rm -f core conftest.err conftest.$ac_objext
3774: test "x$ac_cv_prog_cc_c89" != "xno" && break
3775: done
3776: rm -f conftest.$ac_ext
3777: CC=$ac_save_CC
3778:
3779: fi
3780: # AC_CACHE_VAL
3781: case "x$ac_cv_prog_cc_c89" in
3782: x)
3783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3784: $as_echo "none needed" >&6; } ;;
3785: xno)
3786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3787: $as_echo "unsupported" >&6; } ;;
3788: *)
3789: CC="$CC $ac_cv_prog_cc_c89"
3790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3791: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3792: esac
3793: if test "x$ac_cv_prog_cc_c89" != xno; then :
3794:
3795: fi
3796:
3797: ac_ext=c
3798: ac_cpp='$CPP $CPPFLAGS'
3799: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802: DEPDIR="${am__leading_dot}deps"
3803:
3804: ac_config_commands="$ac_config_commands depfiles"
3805:
3806:
3807: am_make=${MAKE-make}
3808: cat > confinc << 'END'
3809: am__doit:
3810: @echo this is the am__doit target
3811: .PHONY: am__doit
3812: END
3813: # If we don't find an include directive, just comment out the code.
3814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3815: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3816: am__include="#"
3817: am__quote=
3818: _am_result=none
3819: # First try GNU make style include.
3820: echo "include confinc" > confmf
3821: # Ignore all kinds of additional output from `make'.
3822: case `$am_make -s -f confmf 2> /dev/null` in #(
3823: *the\ am__doit\ target*)
3824: am__include=include
3825: am__quote=
3826: _am_result=GNU
3827: ;;
3828: esac
3829: # Now try BSD make style include.
3830: if test "$am__include" = "#"; then
3831: echo '.include "confinc"' > confmf
3832: case `$am_make -s -f confmf 2> /dev/null` in #(
3833: *the\ am__doit\ target*)
3834: am__include=.include
3835: am__quote="\""
3836: _am_result=BSD
3837: ;;
3838: esac
3839: fi
3840:
3841:
3842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3843: $as_echo "$_am_result" >&6; }
3844: rm -f confinc confmf
3845:
3846: # Check whether --enable-dependency-tracking was given.
3847: if test "${enable_dependency_tracking+set}" = set; then :
3848: enableval=$enable_dependency_tracking;
3849: fi
3850:
3851: if test "x$enable_dependency_tracking" != xno; then
3852: am_depcomp="$ac_aux_dir/depcomp"
3853: AMDEPBACKSLASH='\'
3854: fi
3855: if test "x$enable_dependency_tracking" != xno; then
3856: AMDEP_TRUE=
3857: AMDEP_FALSE='#'
3858: else
3859: AMDEP_TRUE='#'
3860: AMDEP_FALSE=
3861: fi
3862:
3863:
3864:
3865: depcc="$CC" am_compiler_list=
3866:
3867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3868: $as_echo_n "checking dependency style of $depcc... " >&6; }
3869: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3870: $as_echo_n "(cached) " >&6
3871: else
3872: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873: # We make a subdir and do the tests there. Otherwise we can end up
3874: # making bogus files that we don't know about and never remove. For
3875: # instance it was reported that on HP-UX the gcc test will end up
3876: # making a dummy file named `D' -- because `-MD' means `put the output
3877: # in D'.
3878: mkdir conftest.dir
3879: # Copy depcomp to subdir because otherwise we won't find it if we're
3880: # using a relative directory.
3881: cp "$am_depcomp" conftest.dir
3882: cd conftest.dir
3883: # We will build objects and dependencies in a subdirectory because
3884: # it helps to detect inapplicable dependency modes. For instance
3885: # both Tru64's cc and ICC support -MD to output dependencies as a
3886: # side effect of compilation, but ICC will put the dependencies in
3887: # the current directory while Tru64 will put them in the object
3888: # directory.
3889: mkdir sub
3890:
3891: am_cv_CC_dependencies_compiler_type=none
3892: if test "$am_compiler_list" = ""; then
3893: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3894: fi
3895: am__universal=false
3896: case " $depcc " in #(
3897: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3898: esac
3899:
3900: for depmode in $am_compiler_list; do
3901: # Setup a source with many dependencies, because some compilers
3902: # like to wrap large dependency lists on column 80 (with \), and
3903: # we should not choose a depcomp mode which is confused by this.
3904: #
3905: # We need to recreate these files for each test, as the compiler may
3906: # overwrite some of them when testing with obscure command lines.
3907: # This happens at least with the AIX C compiler.
3908: : > sub/conftest.c
3909: for i in 1 2 3 4 5 6; do
3910: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3911: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3912: # Solaris 8's {/usr,}/bin/sh.
3913: touch sub/conftst$i.h
3914: done
3915: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3916:
3917: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3918: # mode. It turns out that the SunPro C++ compiler does not properly
3919: # handle `-M -o', and we need to detect this. Also, some Intel
3920: # versions had trouble with output in subdirs
3921: am__obj=sub/conftest.${OBJEXT-o}
3922: am__minus_obj="-o $am__obj"
3923: case $depmode in
3924: gcc)
3925: # This depmode causes a compiler race in universal mode.
3926: test "$am__universal" = false || continue
3927: ;;
3928: nosideeffect)
3929: # after this tag, mechanisms are not by side-effect, so they'll
3930: # only be used when explicitly requested
3931: if test "x$enable_dependency_tracking" = xyes; then
3932: continue
3933: else
3934: break
3935: fi
3936: ;;
3937: msvisualcpp | msvcmsys)
3938: # This compiler won't grok `-c -o', but also, the minuso test has
3939: # not run yet. These depmodes are late enough in the game, and
3940: # so weak that their functioning should not be impacted.
3941: am__obj=conftest.${OBJEXT-o}
3942: am__minus_obj=
3943: ;;
3944: none) break ;;
3945: esac
3946: if depmode=$depmode \
3947: source=sub/conftest.c object=$am__obj \
3948: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3949: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3950: >/dev/null 2>conftest.err &&
3951: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3952: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3953: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3954: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3955: # icc doesn't choke on unknown options, it will just issue warnings
3956: # or remarks (even with -Werror). So we grep stderr for any message
3957: # that says an option was ignored or not supported.
3958: # When given -MP, icc 7.0 and 7.1 complain thusly:
3959: # icc: Command line warning: ignoring option '-M'; no argument required
3960: # The diagnosis changed in icc 8.0:
3961: # icc: Command line remark: option '-MP' not supported
3962: if (grep 'ignoring option' conftest.err ||
3963: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3964: am_cv_CC_dependencies_compiler_type=$depmode
3965: break
3966: fi
3967: fi
3968: done
3969:
3970: cd ..
3971: rm -rf conftest.dir
3972: else
3973: am_cv_CC_dependencies_compiler_type=none
3974: fi
3975:
3976: fi
3977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3978: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3979: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3980:
3981: if
3982: test "x$enable_dependency_tracking" != xno \
3983: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3984: am__fastdepCC_TRUE=
3985: am__fastdepCC_FALSE='#'
3986: else
3987: am__fastdepCC_TRUE='#'
3988: am__fastdepCC_FALSE=
3989: fi
3990:
3991:
3992:
3993: if test x"$CC" != x""; then
3994: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3995: awk -F. '{ printf("%s", $1);}'`
3996: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3997: awk -F. '{ printf("%s", $2);}'`
3998: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
3999: OPTIMISATION_C=-O3
4000: else
4001: if test $GCC_VERSION_MAJEURE -ge 5; then
4002: OPTIMISATION_C=-O3
4003: else
4004: OPTIMISATION_C=-O2
4005: fi
4006: fi
4007: fi
4008:
4009: if test "x$CC" != xcc; then
4010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4011: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4012: else
4013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4014: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4015: fi
4016: set dummy $CC; ac_cc=`$as_echo "$2" |
4017: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4018: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4019: $as_echo_n "(cached) " >&6
4020: else
4021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022: /* end confdefs.h. */
4023:
4024: int
4025: main ()
4026: {
4027:
4028: ;
4029: return 0;
4030: }
4031: _ACEOF
4032: # Make sure it works both with $CC and with simple cc.
4033: # We do the test twice because some compilers refuse to overwrite an
4034: # existing .o file with -o, though they will create one.
4035: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4036: rm -f conftest2.*
4037: if { { case "(($ac_try" in
4038: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039: *) ac_try_echo=$ac_try;;
4040: esac
4041: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042: $as_echo "$ac_try_echo"; } >&5
4043: (eval "$ac_try") 2>&5
4044: ac_status=$?
4045: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046: test $ac_status = 0; } &&
4047: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4048: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049: *) ac_try_echo=$ac_try;;
4050: esac
4051: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052: $as_echo "$ac_try_echo"; } >&5
4053: (eval "$ac_try") 2>&5
4054: ac_status=$?
4055: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056: test $ac_status = 0; };
4057: then
4058: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4059: if test "x$CC" != xcc; then
4060: # Test first that cc exists at all.
4061: if { ac_try='cc -c conftest.$ac_ext >&5'
4062: { { case "(($ac_try" in
4063: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064: *) ac_try_echo=$ac_try;;
4065: esac
4066: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067: $as_echo "$ac_try_echo"; } >&5
4068: (eval "$ac_try") 2>&5
4069: ac_status=$?
4070: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071: test $ac_status = 0; }; }; then
4072: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4073: rm -f conftest2.*
4074: if { { case "(($ac_try" in
4075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076: *) ac_try_echo=$ac_try;;
4077: esac
4078: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079: $as_echo "$ac_try_echo"; } >&5
4080: (eval "$ac_try") 2>&5
4081: ac_status=$?
4082: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083: test $ac_status = 0; } &&
4084: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4085: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086: *) ac_try_echo=$ac_try;;
4087: esac
4088: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089: $as_echo "$ac_try_echo"; } >&5
4090: (eval "$ac_try") 2>&5
4091: ac_status=$?
4092: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093: test $ac_status = 0; };
4094: then
4095: # cc works too.
4096: :
4097: else
4098: # cc exists but doesn't like -o.
4099: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4100: fi
4101: fi
4102: fi
4103: else
4104: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4105: fi
4106: rm -f core conftest*
4107:
4108: fi
4109: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111: $as_echo "yes" >&6; }
4112: else
4113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114: $as_echo "no" >&6; }
4115:
4116: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4117:
4118: fi
4119:
4120: # FIXME: we rely on the cache variable name because
4121: # there is no other way.
4122: set dummy $CC
4123: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4124: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4125: if test "$am_t" != yes; then
4126: # Losing compiler, so override with the script.
4127: # FIXME: It is wrong to rewrite CC.
4128: # But if we don't then we get into trouble of one sort or another.
4129: # A longer-term fix would be to have automake use am__CC in this case,
4130: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4131: CC="$am_aux_dir/compile $CC"
4132: fi
4133:
4134:
4135:
4136: if test "$GCC" != yes; then
4137: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4138: fi
4139:
4140: ac_ext=cpp
4141: ac_cpp='$CXXCPP $CPPFLAGS'
4142: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4145: if test -z "$CXX"; then
4146: if test -n "$CCC"; then
4147: CXX=$CCC
4148: else
4149: if test -n "$ac_tool_prefix"; then
4150: for ac_prog in g++-4.4 g++
4151: do
4152: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155: $as_echo_n "checking for $ac_word... " >&6; }
4156: if test "${ac_cv_prog_CXX+set}" = set; then :
4157: $as_echo_n "(cached) " >&6
4158: else
4159: if test -n "$CXX"; then
4160: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4161: else
4162: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163: for as_dir in $PATH
4164: do
4165: IFS=$as_save_IFS
4166: test -z "$as_dir" && as_dir=.
4167: for ac_exec_ext in '' $ac_executable_extensions; do
4168: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4170: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171: break 2
4172: fi
4173: done
4174: done
4175: IFS=$as_save_IFS
4176:
4177: fi
4178: fi
4179: CXX=$ac_cv_prog_CXX
4180: if test -n "$CXX"; then
4181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4182: $as_echo "$CXX" >&6; }
4183: else
4184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185: $as_echo "no" >&6; }
4186: fi
4187:
4188:
4189: test -n "$CXX" && break
4190: done
4191: fi
4192: if test -z "$CXX"; then
4193: ac_ct_CXX=$CXX
4194: for ac_prog in g++-4.4 g++
4195: do
4196: # Extract the first word of "$ac_prog", so it can be a program name with args.
4197: set dummy $ac_prog; ac_word=$2
4198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199: $as_echo_n "checking for $ac_word... " >&6; }
4200: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4201: $as_echo_n "(cached) " >&6
4202: else
4203: if test -n "$ac_ct_CXX"; then
4204: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4205: else
4206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207: for as_dir in $PATH
4208: do
4209: IFS=$as_save_IFS
4210: test -z "$as_dir" && as_dir=.
4211: for ac_exec_ext in '' $ac_executable_extensions; do
4212: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213: ac_cv_prog_ac_ct_CXX="$ac_prog"
4214: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215: break 2
4216: fi
4217: done
4218: done
4219: IFS=$as_save_IFS
4220:
4221: fi
4222: fi
4223: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4224: if test -n "$ac_ct_CXX"; then
4225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4226: $as_echo "$ac_ct_CXX" >&6; }
4227: else
4228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229: $as_echo "no" >&6; }
4230: fi
4231:
4232:
4233: test -n "$ac_ct_CXX" && break
4234: done
4235:
4236: if test "x$ac_ct_CXX" = x; then
4237: CXX="g++"
4238: else
4239: case $cross_compiling:$ac_tool_warned in
4240: yes:)
4241: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243: ac_tool_warned=yes ;;
4244: esac
4245: CXX=$ac_ct_CXX
4246: fi
4247: fi
4248:
4249: fi
4250: fi
4251: # Provide some information about the compiler.
4252: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4253: set X $ac_compile
4254: ac_compiler=$2
4255: for ac_option in --version -v -V -qversion; do
4256: { { ac_try="$ac_compiler $ac_option >&5"
4257: case "(($ac_try" in
4258: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259: *) ac_try_echo=$ac_try;;
4260: esac
4261: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262: $as_echo "$ac_try_echo"; } >&5
4263: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4264: ac_status=$?
4265: if test -s conftest.err; then
4266: sed '10a\
4267: ... rest of stderr output deleted ...
4268: 10q' conftest.err >conftest.er1
4269: cat conftest.er1 >&5
4270: fi
4271: rm -f conftest.er1 conftest.err
4272: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273: test $ac_status = 0; }
4274: done
4275:
4276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4277: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4278: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4279: $as_echo_n "(cached) " >&6
4280: else
4281: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282: /* end confdefs.h. */
4283:
4284: int
4285: main ()
4286: {
4287: #ifndef __GNUC__
4288: choke me
4289: #endif
4290:
4291: ;
4292: return 0;
4293: }
4294: _ACEOF
4295: if ac_fn_cxx_try_compile "$LINENO"; then :
4296: ac_compiler_gnu=yes
4297: else
4298: ac_compiler_gnu=no
4299: fi
4300: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4302:
4303: fi
4304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4305: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4306: if test $ac_compiler_gnu = yes; then
4307: GXX=yes
4308: else
4309: GXX=
4310: fi
4311: ac_test_CXXFLAGS=${CXXFLAGS+set}
4312: ac_save_CXXFLAGS=$CXXFLAGS
4313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4314: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4315: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4316: $as_echo_n "(cached) " >&6
4317: else
4318: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4319: ac_cxx_werror_flag=yes
4320: ac_cv_prog_cxx_g=no
4321: CXXFLAGS="-g"
4322: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323: /* end confdefs.h. */
4324:
4325: int
4326: main ()
4327: {
4328:
4329: ;
4330: return 0;
4331: }
4332: _ACEOF
4333: if ac_fn_cxx_try_compile "$LINENO"; then :
4334: ac_cv_prog_cxx_g=yes
4335: else
4336: CXXFLAGS=""
4337: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338: /* end confdefs.h. */
4339:
4340: int
4341: main ()
4342: {
4343:
4344: ;
4345: return 0;
4346: }
4347: _ACEOF
4348: if ac_fn_cxx_try_compile "$LINENO"; then :
4349:
4350: else
4351: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4352: CXXFLAGS="-g"
4353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354: /* end confdefs.h. */
4355:
4356: int
4357: main ()
4358: {
4359:
4360: ;
4361: return 0;
4362: }
4363: _ACEOF
4364: if ac_fn_cxx_try_compile "$LINENO"; then :
4365: ac_cv_prog_cxx_g=yes
4366: fi
4367: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368: fi
4369: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370: fi
4371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4373: fi
4374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4375: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4376: if test "$ac_test_CXXFLAGS" = set; then
4377: CXXFLAGS=$ac_save_CXXFLAGS
4378: elif test $ac_cv_prog_cxx_g = yes; then
4379: if test "$GXX" = yes; then
4380: CXXFLAGS="-g -O2"
4381: else
4382: CXXFLAGS="-g"
4383: fi
4384: else
4385: if test "$GXX" = yes; then
4386: CXXFLAGS="-O2"
4387: else
4388: CXXFLAGS=
4389: fi
4390: fi
4391: ac_ext=c
4392: ac_cpp='$CPP $CPPFLAGS'
4393: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396:
4397: depcc="$CXX" am_compiler_list=
4398:
4399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4400: $as_echo_n "checking dependency style of $depcc... " >&6; }
4401: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4402: $as_echo_n "(cached) " >&6
4403: else
4404: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4405: # We make a subdir and do the tests there. Otherwise we can end up
4406: # making bogus files that we don't know about and never remove. For
4407: # instance it was reported that on HP-UX the gcc test will end up
4408: # making a dummy file named `D' -- because `-MD' means `put the output
4409: # in D'.
4410: mkdir conftest.dir
4411: # Copy depcomp to subdir because otherwise we won't find it if we're
4412: # using a relative directory.
4413: cp "$am_depcomp" conftest.dir
4414: cd conftest.dir
4415: # We will build objects and dependencies in a subdirectory because
4416: # it helps to detect inapplicable dependency modes. For instance
4417: # both Tru64's cc and ICC support -MD to output dependencies as a
4418: # side effect of compilation, but ICC will put the dependencies in
4419: # the current directory while Tru64 will put them in the object
4420: # directory.
4421: mkdir sub
4422:
4423: am_cv_CXX_dependencies_compiler_type=none
4424: if test "$am_compiler_list" = ""; then
4425: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4426: fi
4427: am__universal=false
4428: case " $depcc " in #(
4429: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4430: esac
4431:
4432: for depmode in $am_compiler_list; do
4433: # Setup a source with many dependencies, because some compilers
4434: # like to wrap large dependency lists on column 80 (with \), and
4435: # we should not choose a depcomp mode which is confused by this.
4436: #
4437: # We need to recreate these files for each test, as the compiler may
4438: # overwrite some of them when testing with obscure command lines.
4439: # This happens at least with the AIX C compiler.
4440: : > sub/conftest.c
4441: for i in 1 2 3 4 5 6; do
4442: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4443: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4444: # Solaris 8's {/usr,}/bin/sh.
4445: touch sub/conftst$i.h
4446: done
4447: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4448:
4449: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4450: # mode. It turns out that the SunPro C++ compiler does not properly
4451: # handle `-M -o', and we need to detect this. Also, some Intel
4452: # versions had trouble with output in subdirs
4453: am__obj=sub/conftest.${OBJEXT-o}
4454: am__minus_obj="-o $am__obj"
4455: case $depmode in
4456: gcc)
4457: # This depmode causes a compiler race in universal mode.
4458: test "$am__universal" = false || continue
4459: ;;
4460: nosideeffect)
4461: # after this tag, mechanisms are not by side-effect, so they'll
4462: # only be used when explicitly requested
4463: if test "x$enable_dependency_tracking" = xyes; then
4464: continue
4465: else
4466: break
4467: fi
4468: ;;
4469: msvisualcpp | msvcmsys)
4470: # This compiler won't grok `-c -o', but also, the minuso test has
4471: # not run yet. These depmodes are late enough in the game, and
4472: # so weak that their functioning should not be impacted.
4473: am__obj=conftest.${OBJEXT-o}
4474: am__minus_obj=
4475: ;;
4476: none) break ;;
4477: esac
4478: if depmode=$depmode \
4479: source=sub/conftest.c object=$am__obj \
4480: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4481: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4482: >/dev/null 2>conftest.err &&
4483: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4484: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4485: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4486: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4487: # icc doesn't choke on unknown options, it will just issue warnings
4488: # or remarks (even with -Werror). So we grep stderr for any message
4489: # that says an option was ignored or not supported.
4490: # When given -MP, icc 7.0 and 7.1 complain thusly:
4491: # icc: Command line warning: ignoring option '-M'; no argument required
4492: # The diagnosis changed in icc 8.0:
4493: # icc: Command line remark: option '-MP' not supported
4494: if (grep 'ignoring option' conftest.err ||
4495: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4496: am_cv_CXX_dependencies_compiler_type=$depmode
4497: break
4498: fi
4499: fi
4500: done
4501:
4502: cd ..
4503: rm -rf conftest.dir
4504: else
4505: am_cv_CXX_dependencies_compiler_type=none
4506: fi
4507:
4508: fi
4509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4510: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4511: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4512:
4513: if
4514: test "x$enable_dependency_tracking" != xno \
4515: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4516: am__fastdepCXX_TRUE=
4517: am__fastdepCXX_FALSE='#'
4518: else
4519: am__fastdepCXX_TRUE='#'
4520: am__fastdepCXX_FALSE=
4521: fi
4522:
4523:
4524:
4525: if test "$GXX" != yes; then
4526: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4527: fi
4528:
4529: ac_ext=f
4530: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4531: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4533: if test -n "$ac_tool_prefix"; then
4534: for ac_prog in gfortran-4.4 gfortran
4535: do
4536: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539: $as_echo_n "checking for $ac_word... " >&6; }
4540: if test "${ac_cv_prog_F77+set}" = set; then :
4541: $as_echo_n "(cached) " >&6
4542: else
4543: if test -n "$F77"; then
4544: ac_cv_prog_F77="$F77" # Let the user override the test.
4545: else
4546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547: for as_dir in $PATH
4548: do
4549: IFS=$as_save_IFS
4550: test -z "$as_dir" && as_dir=.
4551: for ac_exec_ext in '' $ac_executable_extensions; do
4552: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4554: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555: break 2
4556: fi
4557: done
4558: done
4559: IFS=$as_save_IFS
4560:
4561: fi
4562: fi
4563: F77=$ac_cv_prog_F77
4564: if test -n "$F77"; then
4565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4566: $as_echo "$F77" >&6; }
4567: else
4568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569: $as_echo "no" >&6; }
4570: fi
4571:
4572:
4573: test -n "$F77" && break
4574: done
4575: fi
4576: if test -z "$F77"; then
4577: ac_ct_F77=$F77
4578: for ac_prog in gfortran-4.4 gfortran
4579: do
4580: # Extract the first word of "$ac_prog", so it can be a program name with args.
4581: set dummy $ac_prog; ac_word=$2
4582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583: $as_echo_n "checking for $ac_word... " >&6; }
4584: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4585: $as_echo_n "(cached) " >&6
4586: else
4587: if test -n "$ac_ct_F77"; then
4588: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4589: else
4590: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591: for as_dir in $PATH
4592: do
4593: IFS=$as_save_IFS
4594: test -z "$as_dir" && as_dir=.
4595: for ac_exec_ext in '' $ac_executable_extensions; do
4596: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597: ac_cv_prog_ac_ct_F77="$ac_prog"
4598: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599: break 2
4600: fi
4601: done
4602: done
4603: IFS=$as_save_IFS
4604:
4605: fi
4606: fi
4607: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4608: if test -n "$ac_ct_F77"; then
4609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4610: $as_echo "$ac_ct_F77" >&6; }
4611: else
4612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613: $as_echo "no" >&6; }
4614: fi
4615:
4616:
4617: test -n "$ac_ct_F77" && break
4618: done
4619:
4620: if test "x$ac_ct_F77" = x; then
4621: F77=""
4622: else
4623: case $cross_compiling:$ac_tool_warned in
4624: yes:)
4625: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627: ac_tool_warned=yes ;;
4628: esac
4629: F77=$ac_ct_F77
4630: fi
4631: fi
4632:
4633:
4634: # Provide some information about the compiler.
4635: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4636: set X $ac_compile
4637: ac_compiler=$2
4638: for ac_option in --version -v -V -qversion; do
4639: { { ac_try="$ac_compiler $ac_option >&5"
4640: case "(($ac_try" in
4641: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642: *) ac_try_echo=$ac_try;;
4643: esac
4644: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645: $as_echo "$ac_try_echo"; } >&5
4646: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4647: ac_status=$?
4648: if test -s conftest.err; then
4649: sed '10a\
4650: ... rest of stderr output deleted ...
4651: 10q' conftest.err >conftest.er1
4652: cat conftest.er1 >&5
4653: fi
4654: rm -f conftest.er1 conftest.err
4655: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656: test $ac_status = 0; }
4657: done
4658: rm -f a.out
4659:
4660: # If we don't use `.F' as extension, the preprocessor is not run on the
4661: # input file. (Note that this only needs to work for GNU compilers.)
4662: ac_save_ext=$ac_ext
4663: ac_ext=F
4664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4665: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4666: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4667: $as_echo_n "(cached) " >&6
4668: else
4669: cat > conftest.$ac_ext <<_ACEOF
4670: program main
4671: #ifndef __GNUC__
4672: choke me
4673: #endif
4674:
4675: end
4676: _ACEOF
4677: if ac_fn_f77_try_compile "$LINENO"; then :
4678: ac_compiler_gnu=yes
4679: else
4680: ac_compiler_gnu=no
4681: fi
4682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4684:
4685: fi
4686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4687: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4688: ac_ext=$ac_save_ext
4689: ac_test_FFLAGS=${FFLAGS+set}
4690: ac_save_FFLAGS=$FFLAGS
4691: FFLAGS=
4692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4693: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4694: if test "${ac_cv_prog_f77_g+set}" = set; then :
4695: $as_echo_n "(cached) " >&6
4696: else
4697: FFLAGS=-g
4698: cat > conftest.$ac_ext <<_ACEOF
4699: program main
4700:
4701: end
4702: _ACEOF
4703: if ac_fn_f77_try_compile "$LINENO"; then :
4704: ac_cv_prog_f77_g=yes
4705: else
4706: ac_cv_prog_f77_g=no
4707: fi
4708: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709:
4710: fi
4711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4712: $as_echo "$ac_cv_prog_f77_g" >&6; }
4713: if test "$ac_test_FFLAGS" = set; then
4714: FFLAGS=$ac_save_FFLAGS
4715: elif test $ac_cv_prog_f77_g = yes; then
4716: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4717: FFLAGS="-g -O2"
4718: else
4719: FFLAGS="-g"
4720: fi
4721: else
4722: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4723: FFLAGS="-O2"
4724: else
4725: FFLAGS=
4726: fi
4727: fi
4728:
4729: if test $ac_compiler_gnu = yes; then
4730: G77=yes
4731: else
4732: G77=
4733: fi
4734: ac_ext=c
4735: ac_cpp='$CPP $CPPFLAGS'
4736: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739:
4740:
4741: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4742: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4743: fi
4744:
4745: ac_ext=${ac_fc_srcext-f}
4746: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4747: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4748: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4749: if test -n "$ac_tool_prefix"; then
4750: for ac_prog in gfortran-4.4 gfortran
4751: do
4752: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4753: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755: $as_echo_n "checking for $ac_word... " >&6; }
4756: if test "${ac_cv_prog_FC+set}" = set; then :
4757: $as_echo_n "(cached) " >&6
4758: else
4759: if test -n "$FC"; then
4760: ac_cv_prog_FC="$FC" # Let the user override the test.
4761: else
4762: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763: for as_dir in $PATH
4764: do
4765: IFS=$as_save_IFS
4766: test -z "$as_dir" && as_dir=.
4767: for ac_exec_ext in '' $ac_executable_extensions; do
4768: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4770: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771: break 2
4772: fi
4773: done
4774: done
4775: IFS=$as_save_IFS
4776:
4777: fi
4778: fi
4779: FC=$ac_cv_prog_FC
4780: if test -n "$FC"; then
4781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4782: $as_echo "$FC" >&6; }
4783: else
4784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785: $as_echo "no" >&6; }
4786: fi
4787:
4788:
4789: test -n "$FC" && break
4790: done
4791: fi
4792: if test -z "$FC"; then
4793: ac_ct_FC=$FC
4794: for ac_prog in gfortran-4.4 gfortran
4795: do
4796: # Extract the first word of "$ac_prog", so it can be a program name with args.
4797: set dummy $ac_prog; ac_word=$2
4798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799: $as_echo_n "checking for $ac_word... " >&6; }
4800: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4801: $as_echo_n "(cached) " >&6
4802: else
4803: if test -n "$ac_ct_FC"; then
4804: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4805: else
4806: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807: for as_dir in $PATH
4808: do
4809: IFS=$as_save_IFS
4810: test -z "$as_dir" && as_dir=.
4811: for ac_exec_ext in '' $ac_executable_extensions; do
4812: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813: ac_cv_prog_ac_ct_FC="$ac_prog"
4814: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815: break 2
4816: fi
4817: done
4818: done
4819: IFS=$as_save_IFS
4820:
4821: fi
4822: fi
4823: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4824: if test -n "$ac_ct_FC"; then
4825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4826: $as_echo "$ac_ct_FC" >&6; }
4827: else
4828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829: $as_echo "no" >&6; }
4830: fi
4831:
4832:
4833: test -n "$ac_ct_FC" && break
4834: done
4835:
4836: if test "x$ac_ct_FC" = x; then
4837: FC=""
4838: else
4839: case $cross_compiling:$ac_tool_warned in
4840: yes:)
4841: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843: ac_tool_warned=yes ;;
4844: esac
4845: FC=$ac_ct_FC
4846: fi
4847: fi
4848:
4849:
4850: # Provide some information about the compiler.
4851: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4852: set X $ac_compile
4853: ac_compiler=$2
4854: for ac_option in --version -v -V -qversion; do
4855: { { ac_try="$ac_compiler $ac_option >&5"
4856: case "(($ac_try" in
4857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858: *) ac_try_echo=$ac_try;;
4859: esac
4860: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861: $as_echo "$ac_try_echo"; } >&5
4862: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4863: ac_status=$?
4864: if test -s conftest.err; then
4865: sed '10a\
4866: ... rest of stderr output deleted ...
4867: 10q' conftest.err >conftest.er1
4868: cat conftest.er1 >&5
4869: fi
4870: rm -f conftest.er1 conftest.err
4871: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872: test $ac_status = 0; }
4873: done
4874: rm -f a.out
4875:
4876: # If we don't use `.F' as extension, the preprocessor is not run on the
4877: # input file. (Note that this only needs to work for GNU compilers.)
4878: ac_save_ext=$ac_ext
4879: ac_ext=F
4880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4881: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4882: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4883: $as_echo_n "(cached) " >&6
4884: else
4885: cat > conftest.$ac_ext <<_ACEOF
4886: program main
4887: #ifndef __GNUC__
4888: choke me
4889: #endif
4890:
4891: end
4892: _ACEOF
4893: if ac_fn_fc_try_compile "$LINENO"; then :
4894: ac_compiler_gnu=yes
4895: else
4896: ac_compiler_gnu=no
4897: fi
4898: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4900:
4901: fi
4902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4903: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4904: ac_ext=$ac_save_ext
4905: ac_test_FCFLAGS=${FCFLAGS+set}
4906: ac_save_FCFLAGS=$FCFLAGS
4907: FCFLAGS=
4908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4909: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4910: if test "${ac_cv_prog_fc_g+set}" = set; then :
4911: $as_echo_n "(cached) " >&6
4912: else
4913: FCFLAGS=-g
4914: cat > conftest.$ac_ext <<_ACEOF
4915: program main
4916:
4917: end
4918: _ACEOF
4919: if ac_fn_fc_try_compile "$LINENO"; then :
4920: ac_cv_prog_fc_g=yes
4921: else
4922: ac_cv_prog_fc_g=no
4923: fi
4924: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925:
4926: fi
4927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4928: $as_echo "$ac_cv_prog_fc_g" >&6; }
4929: if test "$ac_test_FCFLAGS" = set; then
4930: FCFLAGS=$ac_save_FCFLAGS
4931: elif test $ac_cv_prog_fc_g = yes; then
4932: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4933: FCFLAGS="-g -O2"
4934: else
4935: FCFLAGS="-g"
4936: fi
4937: else
4938: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4939: FCFLAGS="-O2"
4940: else
4941: FCFLAGS=
4942: fi
4943: fi
4944:
4945: ac_ext=c
4946: ac_cpp='$CPP $CPPFLAGS'
4947: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950:
4951:
4952: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4953: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4954: fi
4955:
4956: if test x"$FC" != x""; then
4957: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4958: awk -F. '{ printf("%s", $1);}'`
4959: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4960: awk -F. '{ printf("%s", $2);}'`
4961: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4962: OPTIMISATION_F=-O3
4963: else
4964: if test $GCC_VERSION_MAJEURE -ge 5; then
4965: OPTIMISATION_F=-O3
4966: else
4967: OPTIMISATION_F=-O2
4968: fi
4969: fi
4970: fi
4971:
4972:
4973: ac_ext=c
4974: ac_cpp='$CPP $CPPFLAGS'
4975: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4979: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4980: # On Suns, sometimes $CPP names a directory.
4981: if test -n "$CPP" && test -d "$CPP"; then
4982: CPP=
4983: fi
4984: if test -z "$CPP"; then
4985: if test "${ac_cv_prog_CPP+set}" = set; then :
4986: $as_echo_n "(cached) " >&6
4987: else
4988: # Double quotes because CPP needs to be expanded
4989: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4990: do
4991: ac_preproc_ok=false
4992: for ac_c_preproc_warn_flag in '' yes
4993: do
4994: # Use a header file that comes with gcc, so configuring glibc
4995: # with a fresh cross-compiler works.
4996: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997: # <limits.h> exists even on freestanding compilers.
4998: # On the NeXT, cc -E runs the code through the compiler's parser,
4999: # not just through cpp. "Syntax error" is here to catch this case.
5000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001: /* end confdefs.h. */
5002: #ifdef __STDC__
5003: # include <limits.h>
5004: #else
5005: # include <assert.h>
5006: #endif
5007: Syntax error
5008: _ACEOF
5009: if ac_fn_c_try_cpp "$LINENO"; then :
5010:
5011: else
5012: # Broken: fails on valid input.
5013: continue
5014: fi
5015: rm -f conftest.err conftest.$ac_ext
5016:
5017: # OK, works on sane cases. Now check whether nonexistent headers
5018: # can be detected and how.
5019: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020: /* end confdefs.h. */
5021: #include <ac_nonexistent.h>
5022: _ACEOF
5023: if ac_fn_c_try_cpp "$LINENO"; then :
5024: # Broken: success on invalid input.
5025: continue
5026: else
5027: # Passes both tests.
5028: ac_preproc_ok=:
5029: break
5030: fi
5031: rm -f conftest.err conftest.$ac_ext
5032:
5033: done
5034: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035: rm -f conftest.err conftest.$ac_ext
5036: if $ac_preproc_ok; then :
5037: break
5038: fi
5039:
5040: done
5041: ac_cv_prog_CPP=$CPP
5042:
5043: fi
5044: CPP=$ac_cv_prog_CPP
5045: else
5046: ac_cv_prog_CPP=$CPP
5047: fi
5048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5049: $as_echo "$CPP" >&6; }
5050: ac_preproc_ok=false
5051: for ac_c_preproc_warn_flag in '' yes
5052: do
5053: # Use a header file that comes with gcc, so configuring glibc
5054: # with a fresh cross-compiler works.
5055: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056: # <limits.h> exists even on freestanding compilers.
5057: # On the NeXT, cc -E runs the code through the compiler's parser,
5058: # not just through cpp. "Syntax error" is here to catch this case.
5059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060: /* end confdefs.h. */
5061: #ifdef __STDC__
5062: # include <limits.h>
5063: #else
5064: # include <assert.h>
5065: #endif
5066: Syntax error
5067: _ACEOF
5068: if ac_fn_c_try_cpp "$LINENO"; then :
5069:
5070: else
5071: # Broken: fails on valid input.
5072: continue
5073: fi
5074: rm -f conftest.err conftest.$ac_ext
5075:
5076: # OK, works on sane cases. Now check whether nonexistent headers
5077: # can be detected and how.
5078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079: /* end confdefs.h. */
5080: #include <ac_nonexistent.h>
5081: _ACEOF
5082: if ac_fn_c_try_cpp "$LINENO"; then :
5083: # Broken: success on invalid input.
5084: continue
5085: else
5086: # Passes both tests.
5087: ac_preproc_ok=:
5088: break
5089: fi
5090: rm -f conftest.err conftest.$ac_ext
5091:
5092: done
5093: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5094: rm -f conftest.err conftest.$ac_ext
5095: if $ac_preproc_ok; then :
5096:
5097: else
5098: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5101: See \`config.log' for more details." "$LINENO" 5; }
5102: fi
5103:
5104: ac_ext=c
5105: ac_cpp='$CPP $CPPFLAGS'
5106: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109:
5110:
5111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5112: $as_echo_n "checking for X... " >&6; }
5113:
5114:
5115: # Check whether --with-x was given.
5116: if test "${with_x+set}" = set; then :
5117: withval=$with_x;
5118: fi
5119:
5120: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5121: if test "x$with_x" = xno; then
5122: # The user explicitly disabled X.
5123: have_x=disabled
5124: else
5125: case $x_includes,$x_libraries in #(
5126: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5127: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5128: $as_echo_n "(cached) " >&6
5129: else
5130: # One or both of the vars are not set, and there is no cached value.
5131: ac_x_includes=no ac_x_libraries=no
5132: rm -f -r conftest.dir
5133: if mkdir conftest.dir; then
5134: cd conftest.dir
5135: cat >Imakefile <<'_ACEOF'
5136: incroot:
5137: @echo incroot='${INCROOT}'
5138: usrlibdir:
5139: @echo usrlibdir='${USRLIBDIR}'
5140: libdir:
5141: @echo libdir='${LIBDIR}'
5142: _ACEOF
5143: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5144: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5145: for ac_var in incroot usrlibdir libdir; do
5146: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5147: done
5148: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5149: for ac_extension in a so sl dylib la dll; do
5150: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5151: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5152: ac_im_usrlibdir=$ac_im_libdir; break
5153: fi
5154: done
5155: # Screen out bogus values from the imake configuration. They are
5156: # bogus both because they are the default anyway, and because
5157: # using them would break gcc on systems where it needs fixed includes.
5158: case $ac_im_incroot in
5159: /usr/include) ac_x_includes= ;;
5160: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5161: esac
5162: case $ac_im_usrlibdir in
5163: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5164: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5165: esac
5166: fi
5167: cd ..
5168: rm -f -r conftest.dir
5169: fi
5170:
5171: # Standard set of common directories for X headers.
5172: # Check X11 before X11Rn because it is often a symlink to the current release.
5173: ac_x_header_dirs='
5174: /usr/X11/include
5175: /usr/X11R7/include
5176: /usr/X11R6/include
5177: /usr/X11R5/include
5178: /usr/X11R4/include
5179:
5180: /usr/include/X11
5181: /usr/include/X11R7
5182: /usr/include/X11R6
5183: /usr/include/X11R5
5184: /usr/include/X11R4
5185:
5186: /usr/local/X11/include
5187: /usr/local/X11R7/include
5188: /usr/local/X11R6/include
5189: /usr/local/X11R5/include
5190: /usr/local/X11R4/include
5191:
5192: /usr/local/include/X11
5193: /usr/local/include/X11R7
5194: /usr/local/include/X11R6
5195: /usr/local/include/X11R5
5196: /usr/local/include/X11R4
5197:
5198: /usr/X386/include
5199: /usr/x386/include
5200: /usr/XFree86/include/X11
5201:
5202: /usr/include
5203: /usr/local/include
5204: /usr/unsupported/include
5205: /usr/athena/include
5206: /usr/local/x11r5/include
5207: /usr/lpp/Xamples/include
5208:
5209: /usr/openwin/include
5210: /usr/openwin/share/include'
5211:
5212: if test "$ac_x_includes" = no; then
5213: # Guess where to find include files, by looking for Xlib.h.
5214: # First, try using that file with no special directory specified.
5215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216: /* end confdefs.h. */
5217: #include <X11/Xlib.h>
5218: _ACEOF
5219: if ac_fn_c_try_cpp "$LINENO"; then :
5220: # We can compile using X headers with no special include directory.
5221: ac_x_includes=
5222: else
5223: for ac_dir in $ac_x_header_dirs; do
5224: if test -r "$ac_dir/X11/Xlib.h"; then
5225: ac_x_includes=$ac_dir
5226: break
5227: fi
5228: done
5229: fi
5230: rm -f conftest.err conftest.$ac_ext
5231: fi # $ac_x_includes = no
5232:
5233: if test "$ac_x_libraries" = no; then
5234: # Check for the libraries.
5235: # See if we find them without any special options.
5236: # Don't add to $LIBS permanently.
5237: ac_save_LIBS=$LIBS
5238: LIBS="-lX11 $LIBS"
5239: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240: /* end confdefs.h. */
5241: #include <X11/Xlib.h>
5242: int
5243: main ()
5244: {
5245: XrmInitialize ()
5246: ;
5247: return 0;
5248: }
5249: _ACEOF
5250: if ac_fn_c_try_link "$LINENO"; then :
5251: LIBS=$ac_save_LIBS
5252: # We can link X programs with no special library path.
5253: ac_x_libraries=
5254: else
5255: LIBS=$ac_save_LIBS
5256: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5257: do
5258: # Don't even attempt the hair of trying to link an X program!
5259: for ac_extension in a so sl dylib la dll; do
5260: if test -r "$ac_dir/libX11.$ac_extension"; then
5261: ac_x_libraries=$ac_dir
5262: break 2
5263: fi
5264: done
5265: done
5266: fi
5267: rm -f core conftest.err conftest.$ac_objext \
5268: conftest$ac_exeext conftest.$ac_ext
5269: fi # $ac_x_libraries = no
5270:
5271: case $ac_x_includes,$ac_x_libraries in #(
5272: no,* | *,no | *\'*)
5273: # Didn't find X, or a directory has "'" in its name.
5274: ac_cv_have_x="have_x=no";; #(
5275: *)
5276: # Record where we found X for the cache.
5277: ac_cv_have_x="have_x=yes\
5278: ac_x_includes='$ac_x_includes'\
5279: ac_x_libraries='$ac_x_libraries'"
5280: esac
5281: fi
5282: ;; #(
5283: *) have_x=yes;;
5284: esac
5285: eval "$ac_cv_have_x"
5286: fi # $with_x != no
5287:
5288: if test "$have_x" != yes; then
5289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5290: $as_echo "$have_x" >&6; }
5291: no_x=yes
5292: else
5293: # If each of the values was on the command line, it overrides each guess.
5294: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5295: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5296: # Update the cache value to reflect the command line values.
5297: ac_cv_have_x="have_x=yes\
5298: ac_x_includes='$x_includes'\
5299: ac_x_libraries='$x_libraries'"
5300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5301: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5302: fi
5303:
5304: if test "$no_x" = yes; then
5305: # Not all programs may use this symbol, but it does not hurt to define it.
5306:
5307: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5308:
5309: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5310: else
5311: if test -n "$x_includes"; then
5312: X_CFLAGS="$X_CFLAGS -I$x_includes"
5313: fi
5314:
5315: # It would also be nice to do this for all -L options, not just this one.
5316: if test -n "$x_libraries"; then
5317: X_LIBS="$X_LIBS -L$x_libraries"
5318: # For Solaris; some versions of Sun CC require a space after -R and
5319: # others require no space. Words are not sufficient . . . .
5320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5321: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5322: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5323: ac_xsave_c_werror_flag=$ac_c_werror_flag
5324: ac_c_werror_flag=yes
5325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326: /* end confdefs.h. */
5327:
5328: int
5329: main ()
5330: {
5331:
5332: ;
5333: return 0;
5334: }
5335: _ACEOF
5336: if ac_fn_c_try_link "$LINENO"; then :
5337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338: $as_echo "no" >&6; }
5339: X_LIBS="$X_LIBS -R$x_libraries"
5340: else
5341: LIBS="$ac_xsave_LIBS -R $x_libraries"
5342: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343: /* end confdefs.h. */
5344:
5345: int
5346: main ()
5347: {
5348:
5349: ;
5350: return 0;
5351: }
5352: _ACEOF
5353: if ac_fn_c_try_link "$LINENO"; then :
5354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355: $as_echo "yes" >&6; }
5356: X_LIBS="$X_LIBS -R $x_libraries"
5357: else
5358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5359: $as_echo "neither works" >&6; }
5360: fi
5361: rm -f core conftest.err conftest.$ac_objext \
5362: conftest$ac_exeext conftest.$ac_ext
5363: fi
5364: rm -f core conftest.err conftest.$ac_objext \
5365: conftest$ac_exeext conftest.$ac_ext
5366: ac_c_werror_flag=$ac_xsave_c_werror_flag
5367: LIBS=$ac_xsave_LIBS
5368: fi
5369:
5370: # Check for system-dependent libraries X programs must link with.
5371: # Do this before checking for the system-independent R6 libraries
5372: # (-lICE), since we may need -lsocket or whatever for X linking.
5373:
5374: if test "$ISC" = yes; then
5375: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5376: else
5377: # Martyn Johnson says this is needed for Ultrix, if the X
5378: # libraries were built with DECnet support. And Karl Berry says
5379: # the Alpha needs dnet_stub (dnet does not exist).
5380: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382: /* end confdefs.h. */
5383:
5384: /* Override any GCC internal prototype to avoid an error.
5385: Use char because int might match the return type of a GCC
5386: builtin and then its argument prototype would still apply. */
5387: #ifdef __cplusplus
5388: extern "C"
5389: #endif
5390: char XOpenDisplay ();
5391: int
5392: main ()
5393: {
5394: return XOpenDisplay ();
5395: ;
5396: return 0;
5397: }
5398: _ACEOF
5399: if ac_fn_c_try_link "$LINENO"; then :
5400:
5401: else
5402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5403: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5404: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5405: $as_echo_n "(cached) " >&6
5406: else
5407: ac_check_lib_save_LIBS=$LIBS
5408: LIBS="-ldnet $LIBS"
5409: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410: /* end confdefs.h. */
5411:
5412: /* Override any GCC internal prototype to avoid an error.
5413: Use char because int might match the return type of a GCC
5414: builtin and then its argument prototype would still apply. */
5415: #ifdef __cplusplus
5416: extern "C"
5417: #endif
5418: char dnet_ntoa ();
5419: int
5420: main ()
5421: {
5422: return dnet_ntoa ();
5423: ;
5424: return 0;
5425: }
5426: _ACEOF
5427: if ac_fn_c_try_link "$LINENO"; then :
5428: ac_cv_lib_dnet_dnet_ntoa=yes
5429: else
5430: ac_cv_lib_dnet_dnet_ntoa=no
5431: fi
5432: rm -f core conftest.err conftest.$ac_objext \
5433: conftest$ac_exeext conftest.$ac_ext
5434: LIBS=$ac_check_lib_save_LIBS
5435: fi
5436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5437: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5438: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5439: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5440: fi
5441:
5442: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5444: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5445: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5446: $as_echo_n "(cached) " >&6
5447: else
5448: ac_check_lib_save_LIBS=$LIBS
5449: LIBS="-ldnet_stub $LIBS"
5450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451: /* end confdefs.h. */
5452:
5453: /* Override any GCC internal prototype to avoid an error.
5454: Use char because int might match the return type of a GCC
5455: builtin and then its argument prototype would still apply. */
5456: #ifdef __cplusplus
5457: extern "C"
5458: #endif
5459: char dnet_ntoa ();
5460: int
5461: main ()
5462: {
5463: return dnet_ntoa ();
5464: ;
5465: return 0;
5466: }
5467: _ACEOF
5468: if ac_fn_c_try_link "$LINENO"; then :
5469: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5470: else
5471: ac_cv_lib_dnet_stub_dnet_ntoa=no
5472: fi
5473: rm -f core conftest.err conftest.$ac_objext \
5474: conftest$ac_exeext conftest.$ac_ext
5475: LIBS=$ac_check_lib_save_LIBS
5476: fi
5477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5478: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5479: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5480: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5481: fi
5482:
5483: fi
5484: fi
5485: rm -f core conftest.err conftest.$ac_objext \
5486: conftest$ac_exeext conftest.$ac_ext
5487: LIBS="$ac_xsave_LIBS"
5488:
5489: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5490: # to get the SysV transport functions.
5491: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5492: # needs -lnsl.
5493: # The nsl library prevents programs from opening the X display
5494: # on Irix 5.2, according to T.E. Dickey.
5495: # The functions gethostbyname, getservbyname, and inet_addr are
5496: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5497: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5498: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5499:
5500: fi
5501:
5502: if test $ac_cv_func_gethostbyname = no; then
5503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5504: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5505: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5506: $as_echo_n "(cached) " >&6
5507: else
5508: ac_check_lib_save_LIBS=$LIBS
5509: LIBS="-lnsl $LIBS"
5510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511: /* end confdefs.h. */
5512:
5513: /* Override any GCC internal prototype to avoid an error.
5514: Use char because int might match the return type of a GCC
5515: builtin and then its argument prototype would still apply. */
5516: #ifdef __cplusplus
5517: extern "C"
5518: #endif
5519: char gethostbyname ();
5520: int
5521: main ()
5522: {
5523: return gethostbyname ();
5524: ;
5525: return 0;
5526: }
5527: _ACEOF
5528: if ac_fn_c_try_link "$LINENO"; then :
5529: ac_cv_lib_nsl_gethostbyname=yes
5530: else
5531: ac_cv_lib_nsl_gethostbyname=no
5532: fi
5533: rm -f core conftest.err conftest.$ac_objext \
5534: conftest$ac_exeext conftest.$ac_ext
5535: LIBS=$ac_check_lib_save_LIBS
5536: fi
5537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5538: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5539: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5540: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5541: fi
5542:
5543: if test $ac_cv_lib_nsl_gethostbyname = no; then
5544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5545: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5546: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5547: $as_echo_n "(cached) " >&6
5548: else
5549: ac_check_lib_save_LIBS=$LIBS
5550: LIBS="-lbsd $LIBS"
5551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552: /* end confdefs.h. */
5553:
5554: /* Override any GCC internal prototype to avoid an error.
5555: Use char because int might match the return type of a GCC
5556: builtin and then its argument prototype would still apply. */
5557: #ifdef __cplusplus
5558: extern "C"
5559: #endif
5560: char gethostbyname ();
5561: int
5562: main ()
5563: {
5564: return gethostbyname ();
5565: ;
5566: return 0;
5567: }
5568: _ACEOF
5569: if ac_fn_c_try_link "$LINENO"; then :
5570: ac_cv_lib_bsd_gethostbyname=yes
5571: else
5572: ac_cv_lib_bsd_gethostbyname=no
5573: fi
5574: rm -f core conftest.err conftest.$ac_objext \
5575: conftest$ac_exeext conftest.$ac_ext
5576: LIBS=$ac_check_lib_save_LIBS
5577: fi
5578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5579: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5580: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5581: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5582: fi
5583:
5584: fi
5585: fi
5586:
5587: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5588: # socket/setsockopt and other routines are undefined under SCO ODT
5589: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5590: # on later versions), says Simon Leinen: it contains gethostby*
5591: # variants that don't use the name server (or something). -lsocket
5592: # must be given before -lnsl if both are needed. We assume that
5593: # if connect needs -lnsl, so does gethostbyname.
5594: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5595: if test "x$ac_cv_func_connect" = x""yes; then :
5596:
5597: fi
5598:
5599: if test $ac_cv_func_connect = no; then
5600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5601: $as_echo_n "checking for connect in -lsocket... " >&6; }
5602: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5603: $as_echo_n "(cached) " >&6
5604: else
5605: ac_check_lib_save_LIBS=$LIBS
5606: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608: /* end confdefs.h. */
5609:
5610: /* Override any GCC internal prototype to avoid an error.
5611: Use char because int might match the return type of a GCC
5612: builtin and then its argument prototype would still apply. */
5613: #ifdef __cplusplus
5614: extern "C"
5615: #endif
5616: char connect ();
5617: int
5618: main ()
5619: {
5620: return connect ();
5621: ;
5622: return 0;
5623: }
5624: _ACEOF
5625: if ac_fn_c_try_link "$LINENO"; then :
5626: ac_cv_lib_socket_connect=yes
5627: else
5628: ac_cv_lib_socket_connect=no
5629: fi
5630: rm -f core conftest.err conftest.$ac_objext \
5631: conftest$ac_exeext conftest.$ac_ext
5632: LIBS=$ac_check_lib_save_LIBS
5633: fi
5634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5635: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5636: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5637: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5638: fi
5639:
5640: fi
5641:
5642: # Guillermo Gomez says -lposix is necessary on A/UX.
5643: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5644: if test "x$ac_cv_func_remove" = x""yes; then :
5645:
5646: fi
5647:
5648: if test $ac_cv_func_remove = no; then
5649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5650: $as_echo_n "checking for remove in -lposix... " >&6; }
5651: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5652: $as_echo_n "(cached) " >&6
5653: else
5654: ac_check_lib_save_LIBS=$LIBS
5655: LIBS="-lposix $LIBS"
5656: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657: /* end confdefs.h. */
5658:
5659: /* Override any GCC internal prototype to avoid an error.
5660: Use char because int might match the return type of a GCC
5661: builtin and then its argument prototype would still apply. */
5662: #ifdef __cplusplus
5663: extern "C"
5664: #endif
5665: char remove ();
5666: int
5667: main ()
5668: {
5669: return remove ();
5670: ;
5671: return 0;
5672: }
5673: _ACEOF
5674: if ac_fn_c_try_link "$LINENO"; then :
5675: ac_cv_lib_posix_remove=yes
5676: else
5677: ac_cv_lib_posix_remove=no
5678: fi
5679: rm -f core conftest.err conftest.$ac_objext \
5680: conftest$ac_exeext conftest.$ac_ext
5681: LIBS=$ac_check_lib_save_LIBS
5682: fi
5683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5684: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5685: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5686: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5687: fi
5688:
5689: fi
5690:
5691: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5692: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5693: if test "x$ac_cv_func_shmat" = x""yes; then :
5694:
5695: fi
5696:
5697: if test $ac_cv_func_shmat = no; then
5698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5699: $as_echo_n "checking for shmat in -lipc... " >&6; }
5700: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5701: $as_echo_n "(cached) " >&6
5702: else
5703: ac_check_lib_save_LIBS=$LIBS
5704: LIBS="-lipc $LIBS"
5705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706: /* end confdefs.h. */
5707:
5708: /* Override any GCC internal prototype to avoid an error.
5709: Use char because int might match the return type of a GCC
5710: builtin and then its argument prototype would still apply. */
5711: #ifdef __cplusplus
5712: extern "C"
5713: #endif
5714: char shmat ();
5715: int
5716: main ()
5717: {
5718: return shmat ();
5719: ;
5720: return 0;
5721: }
5722: _ACEOF
5723: if ac_fn_c_try_link "$LINENO"; then :
5724: ac_cv_lib_ipc_shmat=yes
5725: else
5726: ac_cv_lib_ipc_shmat=no
5727: fi
5728: rm -f core conftest.err conftest.$ac_objext \
5729: conftest$ac_exeext conftest.$ac_ext
5730: LIBS=$ac_check_lib_save_LIBS
5731: fi
5732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5733: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5734: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5735: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5736: fi
5737:
5738: fi
5739: fi
5740:
5741: # Check for libraries that X11R6 Xt/Xaw programs need.
5742: ac_save_LDFLAGS=$LDFLAGS
5743: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5744: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5745: # check for ICE first), but we must link in the order -lSM -lICE or
5746: # we get undefined symbols. So assume we have SM if we have ICE.
5747: # These have to be linked with before -lX11, unlike the other
5748: # libraries we check for below, so use a different variable.
5749: # John Interrante, Karl Berry
5750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5751: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5752: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5753: $as_echo_n "(cached) " >&6
5754: else
5755: ac_check_lib_save_LIBS=$LIBS
5756: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758: /* end confdefs.h. */
5759:
5760: /* Override any GCC internal prototype to avoid an error.
5761: Use char because int might match the return type of a GCC
5762: builtin and then its argument prototype would still apply. */
5763: #ifdef __cplusplus
5764: extern "C"
5765: #endif
5766: char IceConnectionNumber ();
5767: int
5768: main ()
5769: {
5770: return IceConnectionNumber ();
5771: ;
5772: return 0;
5773: }
5774: _ACEOF
5775: if ac_fn_c_try_link "$LINENO"; then :
5776: ac_cv_lib_ICE_IceConnectionNumber=yes
5777: else
5778: ac_cv_lib_ICE_IceConnectionNumber=no
5779: fi
5780: rm -f core conftest.err conftest.$ac_objext \
5781: conftest$ac_exeext conftest.$ac_ext
5782: LIBS=$ac_check_lib_save_LIBS
5783: fi
5784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5785: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5786: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5787: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5788: fi
5789:
5790: LDFLAGS=$ac_save_LDFLAGS
5791:
5792: fi
5793:
5794:
5795: if test "$ac_x_includes" != "no"; then
5796: if test x"$ac_x_includes" != x; then
5797: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5798: includeX="-I$ac_x_includes"
5799: fi
5800: fi
5801: if test "$ac_x_libraries" != "no"; then
5802: if test x"$ac_x_libraries" != x; then
5803: X_LIBS="$X_LIBS -L$ac_x_libraries"
5804: fi
5805: fi
5806:
5807: # Check whether --enable-optimization was given.
5808: if test "${enable_optimization+set}" = set; then :
5809: enableval=$enable_optimization;
5810: if test "$enableval" = "no"; then
5811: CFLAGS=
5812: FFLAGS=
5813: CXXFLAGS=
5814: FCFLAGS=
5815: else
5816: CFLAGS="$CFLAGS $enable_optimization"
5817: FFLAGS="$FFLAGS $enable_optimization"
5818: FCFLAGS="$FCFLAGS $enable_optimization"
5819: fi
5820: else
5821:
5822: CFLAGS="$CFLAGS $OPTIMISATION_C"
5823: FFLAGS="$FFLAGS $OPTIMISATION_F"
5824: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5825:
5826:
5827: fi
5828:
5829:
5830: # Check whether --enable-final-encoding was given.
5831: if test "${enable_final_encoding+set}" = set; then :
5832: enableval=$enable_final_encoding;
5833: if test "$enableval" = "no"; then
5834: FINAL_ENCODING="\$(shell locale charmap | \
5835: awk '/=/ { print \$\$3;} !/=/ { print \$\$1;}')"
5836: else
5837: FINAL_ENCODING="$enable_final_encoding"
5838: fi
5839: else
5840: FINAL_ENCODING="\$(shell locale charmap | \
5841: awk '/=/ { print \$\$3;} !/=/ { print \$\$1;}')"
5842: fi
5843:
5844:
5845: # Check whether --enable-tex was given.
5846: if test "${enable_tex+set}" = set; then :
5847: enableval=$enable_tex;
5848: if test "$enableval" = "no"; then
5849: TEX_SUPPORT=no
5850: else
5851: TEX_SUPPORT=yes
5852: fi
5853: else
5854: TEX_SUPPORT=guessed
5855: fi
5856:
5857:
5858: # Check whether --enable-vim was given.
5859: if test "${enable_vim+set}" = set; then :
5860: enableval=$enable_vim;
5861: if test "$enableval" = "no"; then
5862: VIM_SUPPORT=no
5863: else
5864: VIM_SUPPORT=yes
5865: fi
5866: else
5867: VIM_SUPPORT=guessed
5868: fi
5869:
5870:
5871: # Check whether --enable-embedded-gnuplot was given.
5872: if test "${enable_embedded_gnuplot+set}" = set; then :
5873: enableval=$enable_embedded_gnuplot;
5874: if test "$enableval" = "no"; then
5875: MYGNUPLOT=no
5876: else
5877: MYGNUPLOT=yes
5878: fi
5879: else
5880:
5881: MYGNUPLOT=yes
5882: fi
5883:
5884:
5885: # Check whether --enable-gnuplot was given.
5886: if test "${enable_gnuplot+set}" = set; then :
5887: enableval=$enable_gnuplot;
5888: if test "$enableval" = "no"; then
5889: GNUPLOT_SUPPORT=no
5890: MYGNUPLOT=no
5891: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5892: else
5893: GNUPLOT_SUPPORT=yes
5894: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5895: fi
5896: else
5897:
5898: if test "$MYGNUPLOT" = "yes"; then
5899: GNUPLOT_SUPPORT=yes
5900: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5901: else
5902: GNUPLOT_SUPPORT=guessed
5903: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5904: fi
5905: fi
5906:
5907:
5908: # Check whether --enable-motif was given.
5909: if test "${enable_motif+set}" = set; then :
5910: enableval=$enable_motif;
5911: if test "$enableval" = "no"; then
5912: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5913: else
5914: CFLAGS_ORIG=$CFLAGS
5915: LIBS_ORIG=$LIBS
5916: CFLAGS="$CFLAGS $X_CFLAGS"
5917: LIBS="$LIB $X_LIBS"
5918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5919: $as_echo_n "checking for main in -lXm... " >&6; }
5920: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5921: $as_echo_n "(cached) " >&6
5922: else
5923: ac_check_lib_save_LIBS=$LIBS
5924: LIBS="-lXm $LIBS"
5925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926: /* end confdefs.h. */
5927:
5928:
5929: int
5930: main ()
5931: {
5932: return main ();
5933: ;
5934: return 0;
5935: }
5936: _ACEOF
5937: if ac_fn_c_try_link "$LINENO"; then :
5938: ac_cv_lib_Xm_main=yes
5939: else
5940: ac_cv_lib_Xm_main=no
5941: fi
5942: rm -f core conftest.err conftest.$ac_objext \
5943: conftest$ac_exeext conftest.$ac_ext
5944: LIBS=$ac_check_lib_save_LIBS
5945: fi
5946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5947: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5948: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5949: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5950: else
5951: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5952: fi
5953:
5954: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5955: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5956: Motif flag is disabled.
5957: " >&5
5958: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5959: Motif flag is disabled.
5960: " >&2;}
5961: fi
5962: LIBS=$LIBS_ORIG
5963: CFLAGS=$CFLAGS_ORIG
5964: fi
5965: else
5966: MOTIF_SUPPORT=guessed
5967: fi
5968:
5969:
5970: # Check whether --enable-experimental was given.
5971: if test "${enable_experimental+set}" = set; then :
5972: enableval=$enable_experimental;
5973: if test "$enableval" = "no"; then
5974: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5975: else
5976: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5977: fi
5978: else
5979: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5980: fi
5981:
5982:
5983: # Check whether --enable-debug was given.
5984: if test "${enable_debug+set}" = set; then :
5985: enableval=$enable_debug;
5986: if test "$enableval" = "no"; then
5987: DEBUG=""
5988: else
5989: DEBUG="-DDEBUG_MEMOIRE"
5990: fi
5991: else
5992: DEBUG=""
5993: fi
5994:
5995:
5996: # Check whether --enable-profile was given.
5997: if test "${enable_profile+set}" = set; then :
5998: enableval=$enable_profile;
5999: if test "$enableval" = "no"; then
6000: PROFILAGE=""
6001: else
6002: PROFILAGE="-pg"
6003: fi
6004: else
6005: PROFILAGE=""
6006: fi
6007:
6008:
6009:
6010:
6011: if test ! -d tools; then
6012: mkdir tools
6013: fi
6014: if test ! -d "$srcdir"/tools/$NCURSES; then
6015: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6016: (cd "$srcdir/tools" && tar -xf -)
6017: fi
6018: if test ! -d "$srcdir"/tools/$READLINE; then
6019: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6020: (cd "$srcdir/tools" && tar -xf -)
6021: fi
6022: if test ! -d "$srcdir"/tools/$UNITS; then
6023: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6024: (cd "$srcdir/tools" && tar -xf -)
6025: fi
6026: if test ! -d "$srcdir"/tools/$GSL; then
6027: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6028: (cd "$srcdir/tools" && tar -xf -)
6029: fi
6030: if test ! -d "$srcdir"/tools/$GPP; then
6031: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6032: (cd "$srcdir/tools" && tar -xf -)
6033: fi
6034: if test ! -d "$srcdir"/tools/$FILE; then
6035: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6036: (cd "$srcdir/tools" && tar -xf - )
6037: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6038: sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > \
6039: "$srcdir"/tools/$FILE/src/Makefile.am2
6040: sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' \
6041: "$srcdir"/tools/$FILE/src/Makefile.am2 | \
6042: sed 's/^file_/rplfile_/g' > \
6043: "$srcdir"/tools/$FILE/src/Makefile.am
6044: \rm -f "$srcdir"/tools/$FILE/src/Makefile.am2
6045: sed 's/file$/rplfile/g' "$srcdir"/tools/$FILE/magic/Makefile.am > \
6046: "$srcdir"/tools/$FILE/magic/Makefile.am2
6047: \mv -f "$srcdir"/tools/$FILE/magic/Makefile.am2 \
6048: "$srcdir"/tools/$FILE/magic/Makefile.am
6049: (cd "$srcdir"/tools/$FILE && libtoolize --copy --force \
6050: && aclocal && automake -af && autoconf);
6051: fi
6052: if test ! -d "$srcdir"/tools/$ICONV; then
6053: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6054: (cd "$srcdir/tools" && tar -xf -)
6055: fi
6056:
6057: # Extract the first word of "libtoolize", so it can be a program name with args.
6058: set dummy libtoolize; ac_word=$2
6059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060: $as_echo_n "checking for $ac_word... " >&6; }
6061: if test "${ac_cv_prog_LIBTOOLIZE+set}" = set; then :
6062: $as_echo_n "(cached) " >&6
6063: else
6064: if test -n "$LIBTOOLIZE"; then
6065: ac_cv_prog_LIBTOOLIZE="$LIBTOOLIZE" # Let the user override the test.
6066: else
6067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068: for as_dir in $PATH
6069: do
6070: IFS=$as_save_IFS
6071: test -z "$as_dir" && as_dir=.
6072: for ac_exec_ext in '' $ac_executable_extensions; do
6073: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074: ac_cv_prog_LIBTOOLIZE="yes"
6075: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076: break 2
6077: fi
6078: done
6079: done
6080: IFS=$as_save_IFS
6081:
6082: test -z "$ac_cv_prog_LIBTOOLIZE" && ac_cv_prog_LIBTOOLIZE="no"
6083: fi
6084: fi
6085: LIBTOOLIZE=$ac_cv_prog_LIBTOOLIZE
6086: if test -n "$LIBTOOLIZE"; then
6087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOLIZE" >&5
6088: $as_echo "$LIBTOOLIZE" >&6; }
6089: else
6090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091: $as_echo "no" >&6; }
6092: fi
6093:
6094:
6095: if test "$LIBTOOLIZE" = "no"; then
6096: as_fn_error "Cannot find libtoolize! You have to install it." "$LINENO" 5
6097: fi
6098:
6099: # Extract the first word of "aclocal", so it can be a program name with args.
6100: set dummy aclocal; ac_word=$2
6101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102: $as_echo_n "checking for $ac_word... " >&6; }
6103: if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6104: $as_echo_n "(cached) " >&6
6105: else
6106: if test -n "$ACLOCAL"; then
6107: ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6108: else
6109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110: for as_dir in $PATH
6111: do
6112: IFS=$as_save_IFS
6113: test -z "$as_dir" && as_dir=.
6114: for ac_exec_ext in '' $ac_executable_extensions; do
6115: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116: ac_cv_prog_ACLOCAL="yes"
6117: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118: break 2
6119: fi
6120: done
6121: done
6122: IFS=$as_save_IFS
6123:
6124: test -z "$ac_cv_prog_ACLOCAL" && ac_cv_prog_ACLOCAL="no"
6125: fi
6126: fi
6127: ACLOCAL=$ac_cv_prog_ACLOCAL
6128: if test -n "$ACLOCAL"; then
6129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6130: $as_echo "$ACLOCAL" >&6; }
6131: else
6132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133: $as_echo "no" >&6; }
6134: fi
6135:
6136:
6137: if test "$ACLOCAL" = "no"; then
6138: as_fn_error "Cannot find aclocal! You have to install it." "$LINENO" 5
6139: fi
6140:
6141: # Extract the first word of "automake", so it can be a program name with args.
6142: set dummy automake; ac_word=$2
6143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144: $as_echo_n "checking for $ac_word... " >&6; }
6145: if test "${ac_cv_prog_AUTOMAKE+set}" = set; then :
6146: $as_echo_n "(cached) " >&6
6147: else
6148: if test -n "$AUTOMAKE"; then
6149: ac_cv_prog_AUTOMAKE="$AUTOMAKE" # Let the user override the test.
6150: else
6151: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152: for as_dir in $PATH
6153: do
6154: IFS=$as_save_IFS
6155: test -z "$as_dir" && as_dir=.
6156: for ac_exec_ext in '' $ac_executable_extensions; do
6157: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158: ac_cv_prog_AUTOMAKE="yes"
6159: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160: break 2
6161: fi
6162: done
6163: done
6164: IFS=$as_save_IFS
6165:
6166: test -z "$ac_cv_prog_AUTOMAKE" && ac_cv_prog_AUTOMAKE="no"
6167: fi
6168: fi
6169: AUTOMAKE=$ac_cv_prog_AUTOMAKE
6170: if test -n "$AUTOMAKE"; then
6171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
6172: $as_echo "$AUTOMAKE" >&6; }
6173: else
6174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175: $as_echo "no" >&6; }
6176: fi
6177:
6178:
6179: if test "$AUTOMAKE" = "no"; then
6180: as_fn_error "Cannot find automake! You have to install it." "$LINENO" 5
6181: fi
6182:
6183: # Extract the first word of "autoconf", so it can be a program name with args.
6184: set dummy autoconf; ac_word=$2
6185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186: $as_echo_n "checking for $ac_word... " >&6; }
6187: if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6188: $as_echo_n "(cached) " >&6
6189: else
6190: if test -n "$AUTOCONF"; then
6191: ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6192: else
6193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194: for as_dir in $PATH
6195: do
6196: IFS=$as_save_IFS
6197: test -z "$as_dir" && as_dir=.
6198: for ac_exec_ext in '' $ac_executable_extensions; do
6199: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200: ac_cv_prog_AUTOCONF="yes"
6201: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202: break 2
6203: fi
6204: done
6205: done
6206: IFS=$as_save_IFS
6207:
6208: test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="no"
6209: fi
6210: fi
6211: AUTOCONF=$ac_cv_prog_AUTOCONF
6212: if test -n "$AUTOCONF"; then
6213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6214: $as_echo "$AUTOCONF" >&6; }
6215: else
6216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217: $as_echo "no" >&6; }
6218: fi
6219:
6220:
6221: if test "$AUTOCONF" = "no"; then
6222: as_fn_error "Cannot find autoconf! You have to install it." "$LINENO" 5
6223: fi
6224:
6225:
6226:
6227: # Check whether --enable-final-run-path was given.
6228: if test "${enable_final_run_path+set}" = set; then :
6229: enableval=$enable_final_run_path;
6230: if test "x$enable_final_run_path" = "x"; then
6231: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6232: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6233: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6234: else
6235: RUNPATH="$enable_final_run_path"
6236: fi
6237:
6238: else
6239: RUNPATH="\${prefix}"
6240:
6241: fi
6242:
6243:
6244:
6245:
6246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6247: $as_echo_n "checking whether ln -s works... " >&6; }
6248: LN_S=$as_ln_s
6249: if test "$LN_S" = "ln -s"; then
6250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6251: $as_echo "yes" >&6; }
6252: else
6253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6254: $as_echo "no, using $LN_S" >&6; }
6255: fi
6256:
6257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6258: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6259: set x ${MAKE-make}
6260: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6261: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6262: $as_echo_n "(cached) " >&6
6263: else
6264: cat >conftest.make <<\_ACEOF
6265: SHELL = /bin/sh
6266: all:
6267: @echo '@@@%%%=$(MAKE)=@@@%%%'
6268: _ACEOF
6269: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6270: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6271: *@@@%%%=?*=@@@%%%*)
6272: eval ac_cv_prog_make_${ac_make}_set=yes;;
6273: *)
6274: eval ac_cv_prog_make_${ac_make}_set=no;;
6275: esac
6276: rm -f conftest.make
6277: fi
6278: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6280: $as_echo "yes" >&6; }
6281: SET_MAKE=
6282: else
6283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284: $as_echo "no" >&6; }
6285: SET_MAKE="MAKE=${MAKE-make}"
6286: fi
6287:
6288: if test -n "$ac_tool_prefix"; then
6289: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6290: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292: $as_echo_n "checking for $ac_word... " >&6; }
6293: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6294: $as_echo_n "(cached) " >&6
6295: else
6296: if test -n "$RANLIB"; then
6297: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6298: else
6299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300: for as_dir in $PATH
6301: do
6302: IFS=$as_save_IFS
6303: test -z "$as_dir" && as_dir=.
6304: for ac_exec_ext in '' $ac_executable_extensions; do
6305: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6307: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308: break 2
6309: fi
6310: done
6311: done
6312: IFS=$as_save_IFS
6313:
6314: fi
6315: fi
6316: RANLIB=$ac_cv_prog_RANLIB
6317: if test -n "$RANLIB"; then
6318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6319: $as_echo "$RANLIB" >&6; }
6320: else
6321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322: $as_echo "no" >&6; }
6323: fi
6324:
6325:
6326: fi
6327: if test -z "$ac_cv_prog_RANLIB"; then
6328: ac_ct_RANLIB=$RANLIB
6329: # Extract the first word of "ranlib", so it can be a program name with args.
6330: set dummy ranlib; ac_word=$2
6331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332: $as_echo_n "checking for $ac_word... " >&6; }
6333: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6334: $as_echo_n "(cached) " >&6
6335: else
6336: if test -n "$ac_ct_RANLIB"; then
6337: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6338: else
6339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340: for as_dir in $PATH
6341: do
6342: IFS=$as_save_IFS
6343: test -z "$as_dir" && as_dir=.
6344: for ac_exec_ext in '' $ac_executable_extensions; do
6345: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346: ac_cv_prog_ac_ct_RANLIB="ranlib"
6347: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348: break 2
6349: fi
6350: done
6351: done
6352: IFS=$as_save_IFS
6353:
6354: fi
6355: fi
6356: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6357: if test -n "$ac_ct_RANLIB"; then
6358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6359: $as_echo "$ac_ct_RANLIB" >&6; }
6360: else
6361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362: $as_echo "no" >&6; }
6363: fi
6364:
6365: if test "x$ac_ct_RANLIB" = x; then
6366: RANLIB=":"
6367: else
6368: case $cross_compiling:$ac_tool_warned in
6369: yes:)
6370: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372: ac_tool_warned=yes ;;
6373: esac
6374: RANLIB=$ac_ct_RANLIB
6375: fi
6376: else
6377: RANLIB="$ac_cv_prog_RANLIB"
6378: fi
6379:
6380:
6381: # Extract the first word of "awk", so it can be a program name with args.
6382: set dummy awk; ac_word=$2
6383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384: $as_echo_n "checking for $ac_word... " >&6; }
6385: if test "${ac_cv_prog_AWK+set}" = set; then :
6386: $as_echo_n "(cached) " >&6
6387: else
6388: if test -n "$AWK"; then
6389: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6390: else
6391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392: for as_dir in $PATH
6393: do
6394: IFS=$as_save_IFS
6395: test -z "$as_dir" && as_dir=.
6396: for ac_exec_ext in '' $ac_executable_extensions; do
6397: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398: ac_cv_prog_AWK="yes"
6399: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400: break 2
6401: fi
6402: done
6403: done
6404: IFS=$as_save_IFS
6405:
6406: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6407: fi
6408: fi
6409: AWK=$ac_cv_prog_AWK
6410: if test -n "$AWK"; then
6411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6412: $as_echo "$AWK" >&6; }
6413: else
6414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415: $as_echo "no" >&6; }
6416: fi
6417:
6418:
6419: if test "$AWK" = no; then
6420: as_fn_error "Can not find awk !" "$LINENO" 5
6421: fi
6422:
6423: # Extract the first word of "sed", so it can be a program name with args.
6424: set dummy sed; ac_word=$2
6425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426: $as_echo_n "checking for $ac_word... " >&6; }
6427: if test "${ac_cv_prog_SED+set}" = set; then :
6428: $as_echo_n "(cached) " >&6
6429: else
6430: if test -n "$SED"; then
6431: ac_cv_prog_SED="$SED" # Let the user override the test.
6432: else
6433: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434: for as_dir in $PATH
6435: do
6436: IFS=$as_save_IFS
6437: test -z "$as_dir" && as_dir=.
6438: for ac_exec_ext in '' $ac_executable_extensions; do
6439: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440: ac_cv_prog_SED="yes"
6441: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442: break 2
6443: fi
6444: done
6445: done
6446: IFS=$as_save_IFS
6447:
6448: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6449: fi
6450: fi
6451: SED=$ac_cv_prog_SED
6452: if test -n "$SED"; then
6453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6454: $as_echo "$SED" >&6; }
6455: else
6456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457: $as_echo "no" >&6; }
6458: fi
6459:
6460:
6461: if test "$SED" = no; then
6462: as_fn_error "Can not find sed !" "$LINENO" 5
6463: fi
6464:
6465: if test "$TEX_SUPPORT" = guessed; then
6466: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6467:
6468: # Extract the first word of "tex", so it can be a program name with args.
6469: set dummy tex; ac_word=$2
6470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471: $as_echo_n "checking for $ac_word... " >&6; }
6472: if test "${ac_cv_prog_TEX+set}" = set; then :
6473: $as_echo_n "(cached) " >&6
6474: else
6475: if test -n "$TEX"; then
6476: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6477: else
6478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479: for as_dir in $PATH
6480: do
6481: IFS=$as_save_IFS
6482: test -z "$as_dir" && as_dir=.
6483: for ac_exec_ext in '' $ac_executable_extensions; do
6484: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485: ac_cv_prog_TEX="yes"
6486: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487: break 2
6488: fi
6489: done
6490: done
6491: IFS=$as_save_IFS
6492:
6493: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6494: fi
6495: fi
6496: TEX=$ac_cv_prog_TEX
6497: if test -n "$TEX"; then
6498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6499: $as_echo "$TEX" >&6; }
6500: else
6501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502: $as_echo "no" >&6; }
6503: fi
6504:
6505:
6506: if test "$TEX" = no; then
6507: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6508: Download at http://tex.loria.fr/
6509: " >&5
6510: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6511: Download at http://tex.loria.fr/
6512: " >&2;}
6513: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6514: fi
6515:
6516: # Extract the first word of "latex", so it can be a program name with args.
6517: set dummy latex; ac_word=$2
6518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519: $as_echo_n "checking for $ac_word... " >&6; }
6520: if test "${ac_cv_prog_LATEX+set}" = set; then :
6521: $as_echo_n "(cached) " >&6
6522: else
6523: if test -n "$LATEX"; then
6524: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6525: else
6526: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527: for as_dir in $PATH
6528: do
6529: IFS=$as_save_IFS
6530: test -z "$as_dir" && as_dir=.
6531: for ac_exec_ext in '' $ac_executable_extensions; do
6532: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533: ac_cv_prog_LATEX="yes"
6534: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535: break 2
6536: fi
6537: done
6538: done
6539: IFS=$as_save_IFS
6540:
6541: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6542: fi
6543: fi
6544: LATEX=$ac_cv_prog_LATEX
6545: if test -n "$LATEX"; then
6546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6547: $as_echo "$LATEX" >&6; }
6548: else
6549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550: $as_echo "no" >&6; }
6551: fi
6552:
6553:
6554: if test "$LATEX" = no; then
6555: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6556: Download at http://tex.loria.fr/
6557: " >&5
6558: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6559: Download at http://tex.loria.fr/
6560: " >&2;}
6561: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6562: fi
6563:
6564: # Extract the first word of "dvips", so it can be a program name with args.
6565: set dummy dvips; ac_word=$2
6566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567: $as_echo_n "checking for $ac_word... " >&6; }
6568: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6569: $as_echo_n "(cached) " >&6
6570: else
6571: if test -n "$DVIPS"; then
6572: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6573: else
6574: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575: for as_dir in $PATH
6576: do
6577: IFS=$as_save_IFS
6578: test -z "$as_dir" && as_dir=.
6579: for ac_exec_ext in '' $ac_executable_extensions; do
6580: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581: ac_cv_prog_DVIPS="yes"
6582: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583: break 2
6584: fi
6585: done
6586: done
6587: IFS=$as_save_IFS
6588:
6589: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6590: fi
6591: fi
6592: DVIPS=$ac_cv_prog_DVIPS
6593: if test -n "$DVIPS"; then
6594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6595: $as_echo "$DVIPS" >&6; }
6596: else
6597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598: $as_echo "no" >&6; }
6599: fi
6600:
6601:
6602: if test "$DVIPS" = no; then
6603: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6604: Download at http://tex.loria.fr/
6605: " >&5
6606: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6607: Download at http://tex.loria.fr/
6608: " >&2;}
6609: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6610: fi
6611:
6612: # Extract the first word of "gs", so it can be a program name with args.
6613: set dummy gs; ac_word=$2
6614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615: $as_echo_n "checking for $ac_word... " >&6; }
6616: if test "${ac_cv_prog_GS+set}" = set; then :
6617: $as_echo_n "(cached) " >&6
6618: else
6619: if test -n "$GS"; then
6620: ac_cv_prog_GS="$GS" # Let the user override the test.
6621: else
6622: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623: for as_dir in $PATH
6624: do
6625: IFS=$as_save_IFS
6626: test -z "$as_dir" && as_dir=.
6627: for ac_exec_ext in '' $ac_executable_extensions; do
6628: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629: ac_cv_prog_GS="yes"
6630: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631: break 2
6632: fi
6633: done
6634: done
6635: IFS=$as_save_IFS
6636:
6637: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6638: fi
6639: fi
6640: GS=$ac_cv_prog_GS
6641: if test -n "$GS"; then
6642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6643: $as_echo "$GS" >&6; }
6644: else
6645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646: $as_echo "no" >&6; }
6647: fi
6648:
6649:
6650: if test "$GS" = no; then
6651: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6652: Download at http://ftp.lip6.fr/
6653: " >&5
6654: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6655: Download at http://ftp.lip6.fr/
6656: " >&2;}
6657: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6658: fi
6659:
6660: # Extract the first word of "gv", so it can be a program name with args.
6661: set dummy gv; ac_word=$2
6662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663: $as_echo_n "checking for $ac_word... " >&6; }
6664: if test "${ac_cv_prog_GV+set}" = set; then :
6665: $as_echo_n "(cached) " >&6
6666: else
6667: if test -n "$GV"; then
6668: ac_cv_prog_GV="$GV" # Let the user override the test.
6669: else
6670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671: for as_dir in $PATH
6672: do
6673: IFS=$as_save_IFS
6674: test -z "$as_dir" && as_dir=.
6675: for ac_exec_ext in '' $ac_executable_extensions; do
6676: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677: ac_cv_prog_GV="yes"
6678: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679: break 2
6680: fi
6681: done
6682: done
6683: IFS=$as_save_IFS
6684:
6685: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6686: fi
6687: fi
6688: GV=$ac_cv_prog_GV
6689: if test -n "$GV"; then
6690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6691: $as_echo "$GV" >&6; }
6692: else
6693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694: $as_echo "no" >&6; }
6695: fi
6696:
6697:
6698: if test "$GV" = no; then
6699: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6700: Download at http://ftp.lip6.fr/
6701: " >&5
6702: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6703: Download at http://ftp.lip6.fr/
6704: " >&2;}
6705: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6706: fi
6707: else
6708: if test "$TEX_SUPPORT" = no; then
6709: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6710: else
6711: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6712: fi
6713: fi
6714:
6715: if test "$GNUPLOT_SUPPORT" = guessed; then
6716: # Extract the first word of "gnuplot", so it can be a program name with args.
6717: set dummy gnuplot; ac_word=$2
6718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719: $as_echo_n "checking for $ac_word... " >&6; }
6720: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6721: $as_echo_n "(cached) " >&6
6722: else
6723: if test -n "$GNUPLOT_P"; then
6724: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6725: else
6726: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727: for as_dir in $PATH
6728: do
6729: IFS=$as_save_IFS
6730: test -z "$as_dir" && as_dir=.
6731: for ac_exec_ext in '' $ac_executable_extensions; do
6732: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733: ac_cv_prog_GNUPLOT_P="yes"
6734: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735: break 2
6736: fi
6737: done
6738: done
6739: IFS=$as_save_IFS
6740:
6741: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6742: fi
6743: fi
6744: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6745: if test -n "$GNUPLOT_P"; then
6746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6747: $as_echo "$GNUPLOT_P" >&6; }
6748: else
6749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750: $as_echo "no" >&6; }
6751: fi
6752:
6753:
6754: if test "$GNUPLOT_P" = no; then
6755: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6756: Download at http://www.gnuplot.vt.edu/
6757: " >&5
6758: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6759: Download at http://www.gnuplot.vt.edu/
6760: " >&2;}
6761: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6762: else
6763: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6764: fi
6765: else
6766: if test "$GNUPLOT_SUPPORT" = no; then
6767: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6768: else
6769: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6770: fi
6771: fi
6772:
6773: if test "$VIM_SUPPORT" = guessed; then
6774: # Extract the first word of "vim", so it can be a program name with args.
6775: set dummy vim; ac_word=$2
6776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777: $as_echo_n "checking for $ac_word... " >&6; }
6778: if test "${ac_cv_prog_VIM+set}" = set; then :
6779: $as_echo_n "(cached) " >&6
6780: else
6781: if test -n "$VIM"; then
6782: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6783: else
6784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785: for as_dir in $PATH
6786: do
6787: IFS=$as_save_IFS
6788: test -z "$as_dir" && as_dir=.
6789: for ac_exec_ext in '' $ac_executable_extensions; do
6790: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791: ac_cv_prog_VIM="yes"
6792: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793: break 2
6794: fi
6795: done
6796: done
6797: IFS=$as_save_IFS
6798:
6799: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6800: fi
6801: fi
6802: VIM=$ac_cv_prog_VIM
6803: if test -n "$VIM"; then
6804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6805: $as_echo "$VIM" >&6; }
6806: else
6807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808: $as_echo "no" >&6; }
6809: fi
6810:
6811:
6812: if test "$VIM" = no; then
6813: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6814: Download at http://www.vim.org/
6815: " >&5
6816: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6817: Download at http://www.vim.org/
6818: " >&2;}
6819: VIM_SUPPORT="-UVIM_SUPPORT"
6820: else
6821: VIM_SUPPORT="-DVIM_SUPPORT"
6822: fi
6823: else
6824: if test "$VIM_SUPPORT" = no; then
6825: VIM_SUPPORT="-UVIM_SUPPORT"
6826: else
6827: VIM_SUPPORT="-DVIM_SUPPORT"
6828: fi
6829: fi
6830:
6831: if test "$MOTIF_SUPPORT" = guessed; then
6832: CFLAGS_ORIG=$CFLAGS
6833: LIBS_ORIG=$LIBS
6834: CFLAGS="$CFLAGS $X_CFLAGS"
6835: LIBS="$LIB $X_LIBS"
6836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6837: $as_echo_n "checking for main in -lXm... " >&6; }
6838: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6839: $as_echo_n "(cached) " >&6
6840: else
6841: ac_check_lib_save_LIBS=$LIBS
6842: LIBS="-lXm $LIBS"
6843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844: /* end confdefs.h. */
6845:
6846:
6847: int
6848: main ()
6849: {
6850: return main ();
6851: ;
6852: return 0;
6853: }
6854: _ACEOF
6855: if ac_fn_c_try_link "$LINENO"; then :
6856: ac_cv_lib_Xm_main=yes
6857: else
6858: ac_cv_lib_Xm_main=no
6859: fi
6860: rm -f core conftest.err conftest.$ac_objext \
6861: conftest$ac_exeext conftest.$ac_ext
6862: LIBS=$ac_check_lib_save_LIBS
6863: fi
6864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6865: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6866: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6867: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6868: else
6869: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6870: fi
6871:
6872: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6873: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6874: Motif flag is disabled.
6875: " >&5
6876: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6877: Motif flag is disabled.
6878: " >&2;}
6879: fi
6880: LIBS=$LIBS_ORIG
6881: CFLAGS=$CFLAGS_ORIG
6882: fi
6883:
6884: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6885: CFLAGS_ORIG=$CFLAGS
6886: LIBS_ORIG=$LIBS
6887: CFLAGS="$CFLAGS $X_CFLAGS"
6888: LIBS="$LIB $X_LIBS"
6889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6890: $as_echo_n "checking for main in -lXpm... " >&6; }
6891: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6892: $as_echo_n "(cached) " >&6
6893: else
6894: ac_check_lib_save_LIBS=$LIBS
6895: LIBS="-lXpm $LIBS"
6896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897: /* end confdefs.h. */
6898:
6899:
6900: int
6901: main ()
6902: {
6903: return main ();
6904: ;
6905: return 0;
6906: }
6907: _ACEOF
6908: if ac_fn_c_try_link "$LINENO"; then :
6909: ac_cv_lib_Xpm_main=yes
6910: else
6911: ac_cv_lib_Xpm_main=no
6912: fi
6913: rm -f core conftest.err conftest.$ac_objext \
6914: conftest$ac_exeext conftest.$ac_ext
6915: LIBS=$ac_check_lib_save_LIBS
6916: fi
6917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6918: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6919: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6920: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6921: else
6922: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6923: fi
6924:
6925: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6926: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6927: else
6928: libX=""
6929: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6930: Motif flag is disabled.
6931: " >&5
6932: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6933: Motif flag is disabled.
6934: " >&2;}
6935: fi
6936: LIBS=$LIBS_ORIG
6937: CFLAGS=$CFLAGS_ORIG
6938: else
6939: libX=""
6940: fi
6941:
6942:
6943:
6944:
6945:
6946:
6947:
6948:
6949:
6950:
6951:
6952: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6953:
6954:
6955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6956: $as_echo_n "checking for main in -lm... " >&6; }
6957: if test "${ac_cv_lib_m_main+set}" = set; then :
6958: $as_echo_n "(cached) " >&6
6959: else
6960: ac_check_lib_save_LIBS=$LIBS
6961: LIBS="-lm $LIBS"
6962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963: /* end confdefs.h. */
6964:
6965:
6966: int
6967: main ()
6968: {
6969: return main ();
6970: ;
6971: return 0;
6972: }
6973: _ACEOF
6974: if ac_fn_c_try_link "$LINENO"; then :
6975: ac_cv_lib_m_main=yes
6976: else
6977: ac_cv_lib_m_main=no
6978: fi
6979: rm -f core conftest.err conftest.$ac_objext \
6980: conftest$ac_exeext conftest.$ac_ext
6981: LIBS=$ac_check_lib_save_LIBS
6982: fi
6983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6984: $as_echo "$ac_cv_lib_m_main" >&6; }
6985: if test "x$ac_cv_lib_m_main" = x""yes; then :
6986: cat >>confdefs.h <<_ACEOF
6987: #define HAVE_LIBM 1
6988: _ACEOF
6989:
6990: LIBS="-lm $LIBS"
6991:
6992: else
6993: as_fn_error "Can not find libm !" "$LINENO" 5
6994: fi
6995:
6996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6997: $as_echo_n "checking for main in -lpthread... " >&6; }
6998: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6999: $as_echo_n "(cached) " >&6
7000: else
7001: ac_check_lib_save_LIBS=$LIBS
7002: LIBS="-lpthread $LIBS"
7003: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004: /* end confdefs.h. */
7005:
7006:
7007: int
7008: main ()
7009: {
7010: return main ();
7011: ;
7012: return 0;
7013: }
7014: _ACEOF
7015: if ac_fn_c_try_link "$LINENO"; then :
7016: ac_cv_lib_pthread_main=yes
7017: else
7018: ac_cv_lib_pthread_main=no
7019: fi
7020: rm -f core conftest.err conftest.$ac_objext \
7021: conftest$ac_exeext conftest.$ac_ext
7022: LIBS=$ac_check_lib_save_LIBS
7023: fi
7024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7025: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7026: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7027: cat >>confdefs.h <<_ACEOF
7028: #define HAVE_LIBPTHREAD 1
7029: _ACEOF
7030:
7031: LIBS="-lpthread $LIBS"
7032:
7033: else
7034: as_fn_error "Can not find libpthread !" "$LINENO" 5
7035: fi
7036:
7037:
7038: if test "$CYGWIN" != yes; then
7039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7040: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7041: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7042: $as_echo_n "(cached) " >&6
7043: else
7044: ac_check_lib_save_LIBS=$LIBS
7045: LIBS="-ldl $LIBS"
7046: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047: /* end confdefs.h. */
7048:
7049: /* Override any GCC internal prototype to avoid an error.
7050: Use char because int might match the return type of a GCC
7051: builtin and then its argument prototype would still apply. */
7052: #ifdef __cplusplus
7053: extern "C"
7054: #endif
7055: char dlopen ();
7056: int
7057: main ()
7058: {
7059: return dlopen ();
7060: ;
7061: return 0;
7062: }
7063: _ACEOF
7064: if ac_fn_c_try_link "$LINENO"; then :
7065: ac_cv_lib_dl_dlopen=yes
7066: else
7067: ac_cv_lib_dl_dlopen=no
7068: fi
7069: rm -f core conftest.err conftest.$ac_objext \
7070: conftest$ac_exeext conftest.$ac_ext
7071: LIBS=$ac_check_lib_save_LIBS
7072: fi
7073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7074: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7075: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7076: LIBS="$LIBS -ldl"
7077: else
7078: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7079: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7080: fi
7081:
7082: fi
7083:
7084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7085: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7086: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7087: $as_echo_n "(cached) " >&6
7088: else
7089: ac_check_lib_save_LIBS=$LIBS
7090: LIBS="-lrt $LIBS"
7091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092: /* end confdefs.h. */
7093:
7094: /* Override any GCC internal prototype to avoid an error.
7095: Use char because int might match the return type of a GCC
7096: builtin and then its argument prototype would still apply. */
7097: #ifdef __cplusplus
7098: extern "C"
7099: #endif
7100: char nanosleep ();
7101: int
7102: main ()
7103: {
7104: return nanosleep ();
7105: ;
7106: return 0;
7107: }
7108: _ACEOF
7109: if ac_fn_c_try_link "$LINENO"; then :
7110: ac_cv_lib_rt_nanosleep=yes
7111: else
7112: ac_cv_lib_rt_nanosleep=no
7113: fi
7114: rm -f core conftest.err conftest.$ac_objext \
7115: conftest$ac_exeext conftest.$ac_ext
7116: LIBS=$ac_check_lib_save_LIBS
7117: fi
7118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7119: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7120: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7121: LIBS="$LIBS -lrt"
7122: else
7123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7124: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7125: fi
7126:
7127:
7128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7129: $as_echo_n "checking for bind in -lsocket... " >&6; }
7130: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7131: $as_echo_n "(cached) " >&6
7132: else
7133: ac_check_lib_save_LIBS=$LIBS
7134: LIBS="-lsocket $LIBS"
7135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136: /* end confdefs.h. */
7137:
7138: /* Override any GCC internal prototype to avoid an error.
7139: Use char because int might match the return type of a GCC
7140: builtin and then its argument prototype would still apply. */
7141: #ifdef __cplusplus
7142: extern "C"
7143: #endif
7144: char bind ();
7145: int
7146: main ()
7147: {
7148: return bind ();
7149: ;
7150: return 0;
7151: }
7152: _ACEOF
7153: if ac_fn_c_try_link "$LINENO"; then :
7154: ac_cv_lib_socket_bind=yes
7155: else
7156: ac_cv_lib_socket_bind=no
7157: fi
7158: rm -f core conftest.err conftest.$ac_objext \
7159: conftest$ac_exeext conftest.$ac_ext
7160: LIBS=$ac_check_lib_save_LIBS
7161: fi
7162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7163: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7164: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7165: LIBS="$LIBS -lsocket"
7166: else
7167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7168: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7169: fi
7170:
7171:
7172: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7173:
7174: # Check whether --with-mysql was given.
7175: if test "${with_mysql+set}" = set; then :
7176: withval=$with_mysql;
7177: else
7178: with_mysql=check
7179: fi
7180:
7181:
7182: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7183: libMySQLinc="-I/usr/include"
7184: libMySQLlib="-L/usr/lib"
7185:
7186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7187: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7188: saved_CFLAGS="$CFLAGS"
7189: CFLAGS="$CFLAGS $libMySQLinc"
7190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191: /* end confdefs.h. */
7192: #include "mysql.h"
7193: int
7194: main ()
7195: {
7196:
7197: ;
7198: return 0;
7199: }
7200: _ACEOF
7201: if ac_fn_c_try_compile "$LINENO"; then :
7202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7204: libMySQLinc=$libMySQLinc/mysql
7205: else
7206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7208: fi
7209: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210: CFLAGS=$saved_CFLAGS
7211:
7212: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7214: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7215: saved_CFLAGS="$CFLAGS"
7216: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218: /* end confdefs.h. */
7219: #include "mysql.h"
7220: int
7221: main ()
7222: {
7223:
7224: ;
7225: return 0;
7226: }
7227: _ACEOF
7228: if ac_fn_c_try_compile "$LINENO"; then :
7229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7231: libMySQLinc=$libMySQLinc
7232: else
7233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7235: fi
7236: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237: CFLAGS=$saved_CFLAGS
7238: libMySQLinc=$libMySQLinc/mysql
7239: fi
7240:
7241: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7243: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7244: saved_CFLAGS="$CFLAGS"
7245: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7246: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247: /* end confdefs.h. */
7248: #include "mysql.h"
7249: int
7250: main ()
7251: {
7252:
7253: ;
7254: return 0;
7255: }
7256: _ACEOF
7257: if ac_fn_c_try_compile "$LINENO"; then :
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7259: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7260: libMySQLinc=$libMySQLinc/mysql
7261: else
7262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7264: fi
7265: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266: CFLAGS=$saved_CFLAGS
7267: libMySQLinc=$libMySQLinc/../local/include
7268: libMySQLlib=$libMySQLlib/../local/lib
7269: fi
7270:
7271: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7273: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7274: saved_CFLAGS="$CFLAGS"
7275: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277: /* end confdefs.h. */
7278: #include "mysql.h"
7279: int
7280: main ()
7281: {
7282:
7283: ;
7284: return 0;
7285: }
7286: _ACEOF
7287: if ac_fn_c_try_compile "$LINENO"; then :
7288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7289: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7290: libMySQLinc=$libMySQLinc/mysql
7291: else
7292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7294: fi
7295: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296: CFLAGS=$saved_CFLAGS
7297: libMySQLinc=$libMySQLinc/../local/include/mysql
7298: libMySQLlib=$libMySQLlib/../local/lib
7299: fi
7300: else
7301: if test "x$with_mysql" != xno; then
7302: libMySQLinc="-I$with_mysql/include"
7303: libMySQLlib="-L$with_mysql/lib"
7304:
7305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7306: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7307: saved_CFLAGS="$CFLAGS"
7308: CFLAGS="$CFLAGS $libMySQLinc"
7309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310: /* end confdefs.h. */
7311: #include "mysql.h"
7312: int
7313: main ()
7314: {
7315:
7316: ;
7317: return 0;
7318: }
7319: _ACEOF
7320: if ac_fn_c_try_compile "$LINENO"; then :
7321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7323: libMySQLinc=$libMySQLinc/mysql
7324: else
7325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7327: fi
7328: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329: CFLAGS=$saved_CFLAGS
7330:
7331: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7333: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7334: saved_CFLAGS="$CFLAGS"
7335: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7336: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337: /* end confdefs.h. */
7338: #include "mysql.h"
7339: int
7340: main ()
7341: {
7342:
7343: ;
7344: return 0;
7345: }
7346: _ACEOF
7347: if ac_fn_c_try_compile "$LINENO"; then :
7348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7350: libMySQLinc=$libMySQLinc
7351: else
7352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7354: fi
7355: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356: CFLAGS=$saved_CFLAGS
7357: libMySQLinc=$libMySQLinc/mysql
7358: fi
7359: else
7360: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7361: fi
7362: fi
7363:
7364: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7365: MYSQL_LIB=no
7366:
7367: if test $MYSQL_LIB = no; then
7368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7369: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7370: saved_LIBS="$LIBS"
7371: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7372: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373: /* end confdefs.h. */
7374: #include "mysql.h"
7375: int
7376: main ()
7377: {
7378: MYSQL mysql; mysql_init(&mysql);
7379: ;
7380: return 0;
7381: }
7382: _ACEOF
7383: if ac_fn_c_try_link "$LINENO"; then :
7384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7385: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7386: else
7387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388: $as_echo "no" >&6; }; MYSQL_LIB="no"
7389: fi
7390: rm -f core conftest.err conftest.$ac_objext \
7391: conftest$ac_exeext conftest.$ac_ext
7392: LIBS=$saved_LIBS;
7393: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7394: fi
7395:
7396: if test $MYSQL_LIB = no; then
7397: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7398: fi
7399: fi
7400:
7401: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7402: libMySQLinc=
7403: libMySQLlib=
7404: fi
7405:
7406:
7407:
7408:
7409:
7410: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7411:
7412: # Check whether --with-postgresql was given.
7413: if test "${with_postgresql+set}" = set; then :
7414: withval=$with_postgresql;
7415: else
7416: with_postgresql=check
7417: fi
7418:
7419:
7420: # with_postgresql : check [pas défini], yes [uniquement --with],
7421: # no [--without], valeur [--with=valeur].
7422:
7423: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7424: libPgSQLinc="-I/usr/include"
7425: libPgSQLlib="-L/usr/lib"
7426:
7427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7428: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7429: saved_CFLAGS="$CFLAGS"
7430: CFLAGS="$CFLAGS $libPgSQLinc"
7431: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432: /* end confdefs.h. */
7433: #include "libpq-fe.h"
7434: int
7435: main ()
7436: {
7437:
7438: ;
7439: return 0;
7440: }
7441: _ACEOF
7442: if ac_fn_c_try_compile "$LINENO"; then :
7443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7445: else
7446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7448: fi
7449: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450: CFLAGS=$saved_CFLAGS
7451:
7452: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7454: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7455: saved_CFLAGS="$CFLAGS"
7456: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458: /* end confdefs.h. */
7459: #include "libpq-fe.h"
7460: int
7461: main ()
7462: {
7463:
7464: ;
7465: return 0;
7466: }
7467: _ACEOF
7468: if ac_fn_c_try_compile "$LINENO"; then :
7469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470: $as_echo "yes" >&6; };
7471: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7472: else
7473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474: $as_echo "no" >&6; };
7475: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7476: fi
7477: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478: CFLAGS=$saved_CFLAGS
7479: libPgSQLinc=$libPgSQLinc/postgresql
7480: fi
7481:
7482: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7484: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7485: saved_CFLAGS="$CFLAGS"
7486: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488: /* end confdefs.h. */
7489: #include "libpq-fe.h"
7490: int
7491: main ()
7492: {
7493:
7494: ;
7495: return 0;
7496: }
7497: _ACEOF
7498: if ac_fn_c_try_compile "$LINENO"; then :
7499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500: $as_echo "yes" >&6; };
7501: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7502: else
7503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504: $as_echo "no" >&6; };
7505: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7506: fi
7507: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508: CFLAGS=$saved_CFLAGS
7509: libPgSQLinc=$libPgSQLinc/pgsql
7510: fi
7511:
7512: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7514: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7515: saved_CFLAGS="$CFLAGS"
7516: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518: /* end confdefs.h. */
7519: #include "libpq-fe.h"
7520: int
7521: main ()
7522: {
7523:
7524: ;
7525: return 0;
7526: }
7527: _ACEOF
7528: if ac_fn_c_try_compile "$LINENO"; then :
7529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7530: $as_echo "yes" >&6; };
7531: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7532: else
7533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534: $as_echo "no" >&6; };
7535: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7536: fi
7537: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538: CFLAGS=$saved_CFLAGS
7539: libPgSQLinc=$libPgSQLinc/../local/include
7540: libPgSQLlib=$libPgSQLlib/../local/lib
7541: fi
7542:
7543: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7545: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7546: saved_CFLAGS="$CFLAGS"
7547: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549: /* end confdefs.h. */
7550: #include "libpq-fe.h"
7551: int
7552: main ()
7553: {
7554:
7555: ;
7556: return 0;
7557: }
7558: _ACEOF
7559: if ac_fn_c_try_compile "$LINENO"; then :
7560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7561: $as_echo "yes" >&6; };
7562: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7563: else
7564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565: $as_echo "no" >&6; };
7566: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7567: fi
7568: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569: CFLAGS=$saved_CFLAGS
7570: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7571: libPgSQLlib=$libPgSQLlib/../local/lib
7572: fi
7573:
7574: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7576: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7577: saved_CFLAGS="$CFLAGS"
7578: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580: /* end confdefs.h. */
7581: #include "libpq-fe.h"
7582: int
7583: main ()
7584: {
7585:
7586: ;
7587: return 0;
7588: }
7589: _ACEOF
7590: if ac_fn_c_try_compile "$LINENO"; then :
7591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592: $as_echo "yes" >&6; };
7593: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7594: else
7595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596: $as_echo "no" >&6; };
7597: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7598: fi
7599: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600: CFLAGS=$saved_CFLAGS
7601: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7602: libPgSQLlib=$libPgSQLlib/../local/lib
7603: fi
7604: else
7605: if test "x$with_postgresql" != xno; then
7606: libPgSQLinc="-I$with_postgresql/include"
7607: libPgSQLlib="-L$with_postgresql/lib"
7608:
7609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7610: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7611: saved_CFLAGS="$CFLAGS"
7612: CFLAGS="$CFLAGS $libPgSQLinc"
7613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614: /* end confdefs.h. */
7615: #include "libpq-fe.h"
7616: int
7617: main ()
7618: {
7619:
7620: ;
7621: return 0;
7622: }
7623: _ACEOF
7624: if ac_fn_c_try_compile "$LINENO"; then :
7625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7626: $as_echo "yes" >&6; };
7627: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7628: else
7629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630: $as_echo "no" >&6; };
7631: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7632: fi
7633: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634: CFLAGS=$saved_CFLAGS
7635:
7636: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7638: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7639: saved_CFLAGS="$CFLAGS"
7640: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642: /* end confdefs.h. */
7643: #include "libpq-fe.h"
7644: int
7645: main ()
7646: {
7647:
7648: ;
7649: return 0;
7650: }
7651: _ACEOF
7652: if ac_fn_c_try_compile "$LINENO"; then :
7653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7654: $as_echo "yes" >&6; };
7655: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7656: else
7657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658: $as_echo "no" >&6; };
7659: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7660: fi
7661: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662: CFLAGS=$saved_CFLAGS
7663: libPgSQLinc=$libPgSQLinc/postgresql
7664: fi
7665:
7666: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7668: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7669: saved_CFLAGS="$CFLAGS"
7670: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672: /* end confdefs.h. */
7673: #include "libpq-fe.h"
7674: int
7675: main ()
7676: {
7677:
7678: ;
7679: return 0;
7680: }
7681: _ACEOF
7682: if ac_fn_c_try_compile "$LINENO"; then :
7683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7684: $as_echo "yes" >&6; };
7685: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7686: else
7687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688: $as_echo "no" >&6; };
7689: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7690: fi
7691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692: CFLAGS=$saved_CFLAGS
7693: libPgSQLinc=$libPgSQLinc/pgsql
7694: fi
7695: else
7696: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7697: fi
7698: fi
7699:
7700: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7701: POSTGRESQL_LIB=no
7702:
7703: if test $POSTGRESQL_LIB = no; then
7704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7705: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7706: saved_LIBS="$LIBS"
7707: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709: /* end confdefs.h. */
7710: #include "libpq-fe.h"
7711: int
7712: main ()
7713: {
7714: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7715: PQconnectdb(conninfo);
7716: ;
7717: return 0;
7718: }
7719: _ACEOF
7720: if ac_fn_c_try_link "$LINENO"; then :
7721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7722: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7723: else
7724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7726: fi
7727: rm -f core conftest.err conftest.$ac_objext \
7728: conftest$ac_exeext conftest.$ac_ext
7729: LIBS=$saved_LIBS;
7730: libPgSQLlib="$libPgSQLlib -lpq"
7731: fi
7732: fi
7733:
7734: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7735: libPgSQLinc=
7736: libPgSQLlib=
7737: fi
7738:
7739:
7740:
7741:
7742:
7743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7744: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7745: if test "${ac_cv_path_GREP+set}" = set; then :
7746: $as_echo_n "(cached) " >&6
7747: else
7748: if test -z "$GREP"; then
7749: ac_path_GREP_found=false
7750: # Loop through the user's path and test for each of PROGNAME-LIST
7751: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7753: do
7754: IFS=$as_save_IFS
7755: test -z "$as_dir" && as_dir=.
7756: for ac_prog in grep ggrep; do
7757: for ac_exec_ext in '' $ac_executable_extensions; do
7758: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7759: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7760: # Check for GNU ac_path_GREP and select it if it is found.
7761: # Check for GNU $ac_path_GREP
7762: case `"$ac_path_GREP" --version 2>&1` in
7763: *GNU*)
7764: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7765: *)
7766: ac_count=0
7767: $as_echo_n 0123456789 >"conftest.in"
7768: while :
7769: do
7770: cat "conftest.in" "conftest.in" >"conftest.tmp"
7771: mv "conftest.tmp" "conftest.in"
7772: cp "conftest.in" "conftest.nl"
7773: $as_echo 'GREP' >> "conftest.nl"
7774: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7775: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7776: as_fn_arith $ac_count + 1 && ac_count=$as_val
7777: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7778: # Best one so far, save it but keep looking for a better one
7779: ac_cv_path_GREP="$ac_path_GREP"
7780: ac_path_GREP_max=$ac_count
7781: fi
7782: # 10*(2^10) chars as input seems more than enough
7783: test $ac_count -gt 10 && break
7784: done
7785: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7786: esac
7787:
7788: $ac_path_GREP_found && break 3
7789: done
7790: done
7791: done
7792: IFS=$as_save_IFS
7793: if test -z "$ac_cv_path_GREP"; then
7794: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7795: fi
7796: else
7797: ac_cv_path_GREP=$GREP
7798: fi
7799:
7800: fi
7801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7802: $as_echo "$ac_cv_path_GREP" >&6; }
7803: GREP="$ac_cv_path_GREP"
7804:
7805:
7806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7807: $as_echo_n "checking for egrep... " >&6; }
7808: if test "${ac_cv_path_EGREP+set}" = set; then :
7809: $as_echo_n "(cached) " >&6
7810: else
7811: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7812: then ac_cv_path_EGREP="$GREP -E"
7813: else
7814: if test -z "$EGREP"; then
7815: ac_path_EGREP_found=false
7816: # Loop through the user's path and test for each of PROGNAME-LIST
7817: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7819: do
7820: IFS=$as_save_IFS
7821: test -z "$as_dir" && as_dir=.
7822: for ac_prog in egrep; do
7823: for ac_exec_ext in '' $ac_executable_extensions; do
7824: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7825: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7826: # Check for GNU ac_path_EGREP and select it if it is found.
7827: # Check for GNU $ac_path_EGREP
7828: case `"$ac_path_EGREP" --version 2>&1` in
7829: *GNU*)
7830: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7831: *)
7832: ac_count=0
7833: $as_echo_n 0123456789 >"conftest.in"
7834: while :
7835: do
7836: cat "conftest.in" "conftest.in" >"conftest.tmp"
7837: mv "conftest.tmp" "conftest.in"
7838: cp "conftest.in" "conftest.nl"
7839: $as_echo 'EGREP' >> "conftest.nl"
7840: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7841: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7842: as_fn_arith $ac_count + 1 && ac_count=$as_val
7843: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7844: # Best one so far, save it but keep looking for a better one
7845: ac_cv_path_EGREP="$ac_path_EGREP"
7846: ac_path_EGREP_max=$ac_count
7847: fi
7848: # 10*(2^10) chars as input seems more than enough
7849: test $ac_count -gt 10 && break
7850: done
7851: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7852: esac
7853:
7854: $ac_path_EGREP_found && break 3
7855: done
7856: done
7857: done
7858: IFS=$as_save_IFS
7859: if test -z "$ac_cv_path_EGREP"; then
7860: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7861: fi
7862: else
7863: ac_cv_path_EGREP=$EGREP
7864: fi
7865:
7866: fi
7867: fi
7868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7869: $as_echo "$ac_cv_path_EGREP" >&6; }
7870: EGREP="$ac_cv_path_EGREP"
7871:
7872:
7873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7874: $as_echo_n "checking for ANSI C header files... " >&6; }
7875: if test "${ac_cv_header_stdc+set}" = set; then :
7876: $as_echo_n "(cached) " >&6
7877: else
7878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879: /* end confdefs.h. */
7880: #include <stdlib.h>
7881: #include <stdarg.h>
7882: #include <string.h>
7883: #include <float.h>
7884:
7885: int
7886: main ()
7887: {
7888:
7889: ;
7890: return 0;
7891: }
7892: _ACEOF
7893: if ac_fn_c_try_compile "$LINENO"; then :
7894: ac_cv_header_stdc=yes
7895: else
7896: ac_cv_header_stdc=no
7897: fi
7898: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899:
7900: if test $ac_cv_header_stdc = yes; then
7901: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903: /* end confdefs.h. */
7904: #include <string.h>
7905:
7906: _ACEOF
7907: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908: $EGREP "memchr" >/dev/null 2>&1; then :
7909:
7910: else
7911: ac_cv_header_stdc=no
7912: fi
7913: rm -f conftest*
7914:
7915: fi
7916:
7917: if test $ac_cv_header_stdc = yes; then
7918: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920: /* end confdefs.h. */
7921: #include <stdlib.h>
7922:
7923: _ACEOF
7924: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7925: $EGREP "free" >/dev/null 2>&1; then :
7926:
7927: else
7928: ac_cv_header_stdc=no
7929: fi
7930: rm -f conftest*
7931:
7932: fi
7933:
7934: if test $ac_cv_header_stdc = yes; then
7935: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7936: if test "$cross_compiling" = yes; then :
7937: :
7938: else
7939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940: /* end confdefs.h. */
7941: #include <ctype.h>
7942: #include <stdlib.h>
7943: #if ((' ' & 0x0FF) == 0x020)
7944: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7945: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7946: #else
7947: # define ISLOWER(c) \
7948: (('a' <= (c) && (c) <= 'i') \
7949: || ('j' <= (c) && (c) <= 'r') \
7950: || ('s' <= (c) && (c) <= 'z'))
7951: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7952: #endif
7953:
7954: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7955: int
7956: main ()
7957: {
7958: int i;
7959: for (i = 0; i < 256; i++)
7960: if (XOR (islower (i), ISLOWER (i))
7961: || toupper (i) != TOUPPER (i))
7962: return 2;
7963: return 0;
7964: }
7965: _ACEOF
7966: if ac_fn_c_try_run "$LINENO"; then :
7967:
7968: else
7969: ac_cv_header_stdc=no
7970: fi
7971: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7972: conftest.$ac_objext conftest.beam conftest.$ac_ext
7973: fi
7974:
7975: fi
7976: fi
7977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7978: $as_echo "$ac_cv_header_stdc" >&6; }
7979: if test $ac_cv_header_stdc = yes; then
7980:
7981: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7982:
7983: fi
7984:
7985: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7986: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7987: inttypes.h stdint.h unistd.h
7988: do :
7989: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7990: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7991: "
7992: eval as_val=\$$as_ac_Header
7993: if test "x$as_val" = x""yes; then :
7994: cat >>confdefs.h <<_ACEOF
7995: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7996: _ACEOF
7997:
7998: fi
7999:
8000: done
8001:
8002:
8003: # The cast to long int works around a bug in the HP C Compiler
8004: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8005: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8006: # This bug is HP SR number 8606223364.
8007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8008: $as_echo_n "checking size of void *... " >&6; }
8009: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8010: $as_echo_n "(cached) " >&6
8011: else
8012: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8013:
8014: else
8015: if test "$ac_cv_type_void_p" = yes; then
8016: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8017: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8018: { as_fn_set_status 77
8019: as_fn_error "cannot compute sizeof (void *)
8020: See \`config.log' for more details." "$LINENO" 5; }; }
8021: else
8022: ac_cv_sizeof_void_p=0
8023: fi
8024: fi
8025:
8026: fi
8027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8028: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8029:
8030:
8031:
8032: cat >>confdefs.h <<_ACEOF
8033: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8034: _ACEOF
8035:
8036:
8037: # The cast to long int works around a bug in the HP C Compiler
8038: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8039: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8040: # This bug is HP SR number 8606223364.
8041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8042: $as_echo_n "checking size of char... " >&6; }
8043: if test "${ac_cv_sizeof_char+set}" = set; then :
8044: $as_echo_n "(cached) " >&6
8045: else
8046: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8047:
8048: else
8049: if test "$ac_cv_type_char" = yes; then
8050: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8051: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8052: { as_fn_set_status 77
8053: as_fn_error "cannot compute sizeof (char)
8054: See \`config.log' for more details." "$LINENO" 5; }; }
8055: else
8056: ac_cv_sizeof_char=0
8057: fi
8058: fi
8059:
8060: fi
8061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8062: $as_echo "$ac_cv_sizeof_char" >&6; }
8063:
8064:
8065:
8066: cat >>confdefs.h <<_ACEOF
8067: #define SIZEOF_CHAR $ac_cv_sizeof_char
8068: _ACEOF
8069:
8070:
8071: # The cast to long int works around a bug in the HP C Compiler
8072: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8073: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8074: # This bug is HP SR number 8606223364.
8075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8076: $as_echo_n "checking size of short int... " >&6; }
8077: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8078: $as_echo_n "(cached) " >&6
8079: else
8080: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8081:
8082: else
8083: if test "$ac_cv_type_short_int" = yes; then
8084: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8085: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8086: { as_fn_set_status 77
8087: as_fn_error "cannot compute sizeof (short int)
8088: See \`config.log' for more details." "$LINENO" 5; }; }
8089: else
8090: ac_cv_sizeof_short_int=0
8091: fi
8092: fi
8093:
8094: fi
8095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8096: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8097:
8098:
8099:
8100: cat >>confdefs.h <<_ACEOF
8101: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8102: _ACEOF
8103:
8104:
8105: # The cast to long int works around a bug in the HP C Compiler
8106: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8107: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8108: # This bug is HP SR number 8606223364.
8109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8110: $as_echo_n "checking size of int... " >&6; }
8111: if test "${ac_cv_sizeof_int+set}" = set; then :
8112: $as_echo_n "(cached) " >&6
8113: else
8114: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8115:
8116: else
8117: if test "$ac_cv_type_int" = yes; then
8118: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8119: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8120: { as_fn_set_status 77
8121: as_fn_error "cannot compute sizeof (int)
8122: See \`config.log' for more details." "$LINENO" 5; }; }
8123: else
8124: ac_cv_sizeof_int=0
8125: fi
8126: fi
8127:
8128: fi
8129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8130: $as_echo "$ac_cv_sizeof_int" >&6; }
8131:
8132:
8133:
8134: cat >>confdefs.h <<_ACEOF
8135: #define SIZEOF_INT $ac_cv_sizeof_int
8136: _ACEOF
8137:
8138:
8139: # The cast to long int works around a bug in the HP C Compiler
8140: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8141: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8142: # This bug is HP SR number 8606223364.
8143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8144: $as_echo_n "checking size of long int... " >&6; }
8145: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8146: $as_echo_n "(cached) " >&6
8147: else
8148: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8149:
8150: else
8151: if test "$ac_cv_type_long_int" = yes; then
8152: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8153: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8154: { as_fn_set_status 77
8155: as_fn_error "cannot compute sizeof (long int)
8156: See \`config.log' for more details." "$LINENO" 5; }; }
8157: else
8158: ac_cv_sizeof_long_int=0
8159: fi
8160: fi
8161:
8162: fi
8163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8164: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8165:
8166:
8167:
8168: cat >>confdefs.h <<_ACEOF
8169: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8170: _ACEOF
8171:
8172:
8173: # The cast to long int works around a bug in the HP C Compiler
8174: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8175: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8176: # This bug is HP SR number 8606223364.
8177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8178: $as_echo_n "checking size of long long int... " >&6; }
8179: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8180: $as_echo_n "(cached) " >&6
8181: else
8182: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8183:
8184: else
8185: if test "$ac_cv_type_long_long_int" = yes; then
8186: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8187: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8188: { as_fn_set_status 77
8189: as_fn_error "cannot compute sizeof (long long int)
8190: See \`config.log' for more details." "$LINENO" 5; }; }
8191: else
8192: ac_cv_sizeof_long_long_int=0
8193: fi
8194: fi
8195:
8196: fi
8197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8198: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8199:
8200:
8201:
8202: cat >>confdefs.h <<_ACEOF
8203: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8204: _ACEOF
8205:
8206:
8207: # The cast to long int works around a bug in the HP C Compiler
8208: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8209: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8210: # This bug is HP SR number 8606223364.
8211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8212: $as_echo_n "checking size of float... " >&6; }
8213: if test "${ac_cv_sizeof_float+set}" = set; then :
8214: $as_echo_n "(cached) " >&6
8215: else
8216: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8217:
8218: else
8219: if test "$ac_cv_type_float" = yes; then
8220: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8221: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8222: { as_fn_set_status 77
8223: as_fn_error "cannot compute sizeof (float)
8224: See \`config.log' for more details." "$LINENO" 5; }; }
8225: else
8226: ac_cv_sizeof_float=0
8227: fi
8228: fi
8229:
8230: fi
8231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8232: $as_echo "$ac_cv_sizeof_float" >&6; }
8233:
8234:
8235:
8236: cat >>confdefs.h <<_ACEOF
8237: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8238: _ACEOF
8239:
8240:
8241: # The cast to long int works around a bug in the HP C Compiler
8242: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8243: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8244: # This bug is HP SR number 8606223364.
8245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8246: $as_echo_n "checking size of double... " >&6; }
8247: if test "${ac_cv_sizeof_double+set}" = set; then :
8248: $as_echo_n "(cached) " >&6
8249: else
8250: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8251:
8252: else
8253: if test "$ac_cv_type_double" = yes; then
8254: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8255: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8256: { as_fn_set_status 77
8257: as_fn_error "cannot compute sizeof (double)
8258: See \`config.log' for more details." "$LINENO" 5; }; }
8259: else
8260: ac_cv_sizeof_double=0
8261: fi
8262: fi
8263:
8264: fi
8265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8266: $as_echo "$ac_cv_sizeof_double" >&6; }
8267:
8268:
8269:
8270: cat >>confdefs.h <<_ACEOF
8271: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8272: _ACEOF
8273:
8274:
8275: # The cast to long int works around a bug in the HP C Compiler
8276: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8277: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8278: # This bug is HP SR number 8606223364.
8279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8280: $as_echo_n "checking size of long double... " >&6; }
8281: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8282: $as_echo_n "(cached) " >&6
8283: else
8284: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8285:
8286: else
8287: if test "$ac_cv_type_long_double" = yes; then
8288: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8289: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8290: { as_fn_set_status 77
8291: as_fn_error "cannot compute sizeof (long double)
8292: See \`config.log' for more details." "$LINENO" 5; }; }
8293: else
8294: ac_cv_sizeof_long_double=0
8295: fi
8296: fi
8297:
8298: fi
8299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8300: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8301:
8302:
8303:
8304: cat >>confdefs.h <<_ACEOF
8305: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8306: _ACEOF
8307:
8308:
8309:
8310: ac_header_dirent=no
8311: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8312: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8314: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8315: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8316: $as_echo_n "(cached) " >&6
8317: else
8318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319: /* end confdefs.h. */
8320: #include <sys/types.h>
8321: #include <$ac_hdr>
8322:
8323: int
8324: main ()
8325: {
8326: if ((DIR *) 0)
8327: return 0;
8328: ;
8329: return 0;
8330: }
8331: _ACEOF
8332: if ac_fn_c_try_compile "$LINENO"; then :
8333: eval "$as_ac_Header=yes"
8334: else
8335: eval "$as_ac_Header=no"
8336: fi
8337: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338: fi
8339: eval ac_res=\$$as_ac_Header
8340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8341: $as_echo "$ac_res" >&6; }
8342: eval as_val=\$$as_ac_Header
8343: if test "x$as_val" = x""yes; then :
8344: cat >>confdefs.h <<_ACEOF
8345: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8346: _ACEOF
8347:
8348: ac_header_dirent=$ac_hdr; break
8349: fi
8350:
8351: done
8352: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8353: if test $ac_header_dirent = dirent.h; then
8354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8355: $as_echo_n "checking for library containing opendir... " >&6; }
8356: if test "${ac_cv_search_opendir+set}" = set; then :
8357: $as_echo_n "(cached) " >&6
8358: else
8359: ac_func_search_save_LIBS=$LIBS
8360: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361: /* end confdefs.h. */
8362:
8363: /* Override any GCC internal prototype to avoid an error.
8364: Use char because int might match the return type of a GCC
8365: builtin and then its argument prototype would still apply. */
8366: #ifdef __cplusplus
8367: extern "C"
8368: #endif
8369: char opendir ();
8370: int
8371: main ()
8372: {
8373: return opendir ();
8374: ;
8375: return 0;
8376: }
8377: _ACEOF
8378: for ac_lib in '' dir; do
8379: if test -z "$ac_lib"; then
8380: ac_res="none required"
8381: else
8382: ac_res=-l$ac_lib
8383: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8384: fi
8385: if ac_fn_c_try_link "$LINENO"; then :
8386: ac_cv_search_opendir=$ac_res
8387: fi
8388: rm -f core conftest.err conftest.$ac_objext \
8389: conftest$ac_exeext
8390: if test "${ac_cv_search_opendir+set}" = set; then :
8391: break
8392: fi
8393: done
8394: if test "${ac_cv_search_opendir+set}" = set; then :
8395:
8396: else
8397: ac_cv_search_opendir=no
8398: fi
8399: rm conftest.$ac_ext
8400: LIBS=$ac_func_search_save_LIBS
8401: fi
8402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8403: $as_echo "$ac_cv_search_opendir" >&6; }
8404: ac_res=$ac_cv_search_opendir
8405: if test "$ac_res" != no; then :
8406: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8407:
8408: fi
8409:
8410: else
8411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8412: $as_echo_n "checking for library containing opendir... " >&6; }
8413: if test "${ac_cv_search_opendir+set}" = set; then :
8414: $as_echo_n "(cached) " >&6
8415: else
8416: ac_func_search_save_LIBS=$LIBS
8417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418: /* end confdefs.h. */
8419:
8420: /* Override any GCC internal prototype to avoid an error.
8421: Use char because int might match the return type of a GCC
8422: builtin and then its argument prototype would still apply. */
8423: #ifdef __cplusplus
8424: extern "C"
8425: #endif
8426: char opendir ();
8427: int
8428: main ()
8429: {
8430: return opendir ();
8431: ;
8432: return 0;
8433: }
8434: _ACEOF
8435: for ac_lib in '' x; do
8436: if test -z "$ac_lib"; then
8437: ac_res="none required"
8438: else
8439: ac_res=-l$ac_lib
8440: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8441: fi
8442: if ac_fn_c_try_link "$LINENO"; then :
8443: ac_cv_search_opendir=$ac_res
8444: fi
8445: rm -f core conftest.err conftest.$ac_objext \
8446: conftest$ac_exeext
8447: if test "${ac_cv_search_opendir+set}" = set; then :
8448: break
8449: fi
8450: done
8451: if test "${ac_cv_search_opendir+set}" = set; then :
8452:
8453: else
8454: ac_cv_search_opendir=no
8455: fi
8456: rm conftest.$ac_ext
8457: LIBS=$ac_func_search_save_LIBS
8458: fi
8459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8460: $as_echo "$ac_cv_search_opendir" >&6; }
8461: ac_res=$ac_cv_search_opendir
8462: if test "$ac_res" != no; then :
8463: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8464:
8465: fi
8466:
8467: fi
8468:
8469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8470: $as_echo_n "checking for ANSI C header files... " >&6; }
8471: if test "${ac_cv_header_stdc+set}" = set; then :
8472: $as_echo_n "(cached) " >&6
8473: else
8474: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475: /* end confdefs.h. */
8476: #include <stdlib.h>
8477: #include <stdarg.h>
8478: #include <string.h>
8479: #include <float.h>
8480:
8481: int
8482: main ()
8483: {
8484:
8485: ;
8486: return 0;
8487: }
8488: _ACEOF
8489: if ac_fn_c_try_compile "$LINENO"; then :
8490: ac_cv_header_stdc=yes
8491: else
8492: ac_cv_header_stdc=no
8493: fi
8494: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495:
8496: if test $ac_cv_header_stdc = yes; then
8497: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8498: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499: /* end confdefs.h. */
8500: #include <string.h>
8501:
8502: _ACEOF
8503: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504: $EGREP "memchr" >/dev/null 2>&1; then :
8505:
8506: else
8507: ac_cv_header_stdc=no
8508: fi
8509: rm -f conftest*
8510:
8511: fi
8512:
8513: if test $ac_cv_header_stdc = yes; then
8514: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8515: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516: /* end confdefs.h. */
8517: #include <stdlib.h>
8518:
8519: _ACEOF
8520: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8521: $EGREP "free" >/dev/null 2>&1; then :
8522:
8523: else
8524: ac_cv_header_stdc=no
8525: fi
8526: rm -f conftest*
8527:
8528: fi
8529:
8530: if test $ac_cv_header_stdc = yes; then
8531: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8532: if test "$cross_compiling" = yes; then :
8533: :
8534: else
8535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536: /* end confdefs.h. */
8537: #include <ctype.h>
8538: #include <stdlib.h>
8539: #if ((' ' & 0x0FF) == 0x020)
8540: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8541: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8542: #else
8543: # define ISLOWER(c) \
8544: (('a' <= (c) && (c) <= 'i') \
8545: || ('j' <= (c) && (c) <= 'r') \
8546: || ('s' <= (c) && (c) <= 'z'))
8547: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8548: #endif
8549:
8550: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8551: int
8552: main ()
8553: {
8554: int i;
8555: for (i = 0; i < 256; i++)
8556: if (XOR (islower (i), ISLOWER (i))
8557: || toupper (i) != TOUPPER (i))
8558: return 2;
8559: return 0;
8560: }
8561: _ACEOF
8562: if ac_fn_c_try_run "$LINENO"; then :
8563:
8564: else
8565: ac_cv_header_stdc=no
8566: fi
8567: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8568: conftest.$ac_objext conftest.beam conftest.$ac_ext
8569: fi
8570:
8571: fi
8572: fi
8573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8574: $as_echo "$ac_cv_header_stdc" >&6; }
8575: if test $ac_cv_header_stdc = yes; then
8576:
8577: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8578:
8579: fi
8580:
8581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8582: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8583: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8584: $as_echo_n "(cached) " >&6
8585: else
8586: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587: /* end confdefs.h. */
8588: #include <sys/types.h>
8589: #include <sys/wait.h>
8590: #ifndef WEXITSTATUS
8591: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8592: #endif
8593: #ifndef WIFEXITED
8594: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8595: #endif
8596:
8597: int
8598: main ()
8599: {
8600: int s;
8601: wait (&s);
8602: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8603: ;
8604: return 0;
8605: }
8606: _ACEOF
8607: if ac_fn_c_try_compile "$LINENO"; then :
8608: ac_cv_header_sys_wait_h=yes
8609: else
8610: ac_cv_header_sys_wait_h=no
8611: fi
8612: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613: fi
8614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8615: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8616: if test $ac_cv_header_sys_wait_h = yes; then
8617:
8618: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8619:
8620: fi
8621:
8622: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8623: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8624: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8625: do :
8626: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8627: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8628: eval as_val=\$$as_ac_Header
8629: if test "x$as_val" = x""yes; then :
8630: cat >>confdefs.h <<_ACEOF
8631: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632: _ACEOF
8633:
8634: fi
8635:
8636: done
8637:
8638:
8639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8640: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8641: if test "${ac_cv_c_const+set}" = set; then :
8642: $as_echo_n "(cached) " >&6
8643: else
8644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645: /* end confdefs.h. */
8646:
8647: int
8648: main ()
8649: {
8650: /* FIXME: Include the comments suggested by Paul. */
8651: #ifndef __cplusplus
8652: /* Ultrix mips cc rejects this. */
8653: typedef int charset[2];
8654: const charset cs;
8655: /* SunOS 4.1.1 cc rejects this. */
8656: char const *const *pcpcc;
8657: char **ppc;
8658: /* NEC SVR4.0.2 mips cc rejects this. */
8659: struct point {int x, y;};
8660: static struct point const zero = {0,0};
8661: /* AIX XL C 1.02.0.0 rejects this.
8662: It does not let you subtract one const X* pointer from another in
8663: an arm of an if-expression whose if-part is not a constant
8664: expression */
8665: const char *g = "string";
8666: pcpcc = &g + (g ? g-g : 0);
8667: /* HPUX 7.0 cc rejects these. */
8668: ++pcpcc;
8669: ppc = (char**) pcpcc;
8670: pcpcc = (char const *const *) ppc;
8671: { /* SCO 3.2v4 cc rejects this. */
8672: char *t;
8673: char const *s = 0 ? (char *) 0 : (char const *) 0;
8674:
8675: *t++ = 0;
8676: if (s) return 0;
8677: }
8678: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8679: int x[] = {25, 17};
8680: const int *foo = &x[0];
8681: ++foo;
8682: }
8683: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8684: typedef const int *iptr;
8685: iptr p = 0;
8686: ++p;
8687: }
8688: { /* AIX XL C 1.02.0.0 rejects this saying
8689: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8690: struct s { int j; const int *ap[3]; };
8691: struct s *b; b->j = 5;
8692: }
8693: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8694: const int foo = 10;
8695: if (!foo) return 0;
8696: }
8697: return !cs[0] && !zero.x;
8698: #endif
8699:
8700: ;
8701: return 0;
8702: }
8703: _ACEOF
8704: if ac_fn_c_try_compile "$LINENO"; then :
8705: ac_cv_c_const=yes
8706: else
8707: ac_cv_c_const=no
8708: fi
8709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710: fi
8711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8712: $as_echo "$ac_cv_c_const" >&6; }
8713: if test $ac_cv_c_const = no; then
8714:
8715: $as_echo "#define const /**/" >>confdefs.h
8716:
8717: fi
8718:
8719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8720: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8721: if test "${ac_cv_type_uid_t+set}" = set; then :
8722: $as_echo_n "(cached) " >&6
8723: else
8724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725: /* end confdefs.h. */
8726: #include <sys/types.h>
8727:
8728: _ACEOF
8729: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730: $EGREP "uid_t" >/dev/null 2>&1; then :
8731: ac_cv_type_uid_t=yes
8732: else
8733: ac_cv_type_uid_t=no
8734: fi
8735: rm -f conftest*
8736:
8737: fi
8738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8739: $as_echo "$ac_cv_type_uid_t" >&6; }
8740: if test $ac_cv_type_uid_t = no; then
8741:
8742: $as_echo "#define uid_t int" >>confdefs.h
8743:
8744:
8745: $as_echo "#define gid_t int" >>confdefs.h
8746:
8747: fi
8748:
8749: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8750: if test "x$ac_cv_type_pid_t" = x""yes; then :
8751:
8752: else
8753:
8754: cat >>confdefs.h <<_ACEOF
8755: #define pid_t int
8756: _ACEOF
8757:
8758: fi
8759:
8760: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8761: if test "x$ac_cv_type_size_t" = x""yes; then :
8762:
8763: else
8764:
8765: cat >>confdefs.h <<_ACEOF
8766: #define size_t unsigned int
8767: _ACEOF
8768:
8769: fi
8770:
8771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8772: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8773: if test "${ac_cv_header_time+set}" = set; then :
8774: $as_echo_n "(cached) " >&6
8775: else
8776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777: /* end confdefs.h. */
8778: #include <sys/types.h>
8779: #include <sys/time.h>
8780: #include <time.h>
8781:
8782: int
8783: main ()
8784: {
8785: if ((struct tm *) 0)
8786: return 0;
8787: ;
8788: return 0;
8789: }
8790: _ACEOF
8791: if ac_fn_c_try_compile "$LINENO"; then :
8792: ac_cv_header_time=yes
8793: else
8794: ac_cv_header_time=no
8795: fi
8796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797: fi
8798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8799: $as_echo "$ac_cv_header_time" >&6; }
8800: if test $ac_cv_header_time = yes; then
8801:
8802: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8803:
8804: fi
8805:
8806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8807: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8808: if test "${ac_cv_struct_tm+set}" = set; then :
8809: $as_echo_n "(cached) " >&6
8810: else
8811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812: /* end confdefs.h. */
8813: #include <sys/types.h>
8814: #include <time.h>
8815:
8816: int
8817: main ()
8818: {
8819: struct tm tm;
8820: int *p = &tm.tm_sec;
8821: return !p;
8822: ;
8823: return 0;
8824: }
8825: _ACEOF
8826: if ac_fn_c_try_compile "$LINENO"; then :
8827: ac_cv_struct_tm=time.h
8828: else
8829: ac_cv_struct_tm=sys/time.h
8830: fi
8831: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832: fi
8833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8834: $as_echo "$ac_cv_struct_tm" >&6; }
8835: if test $ac_cv_struct_tm = sys/time.h; then
8836:
8837: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8838:
8839: fi
8840:
8841:
8842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8843: $as_echo_n "checking return type of signal handlers... " >&6; }
8844: if test "${ac_cv_type_signal+set}" = set; then :
8845: $as_echo_n "(cached) " >&6
8846: else
8847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848: /* end confdefs.h. */
8849: #include <sys/types.h>
8850: #include <signal.h>
8851:
8852: int
8853: main ()
8854: {
8855: return *(signal (0, 0)) (0) == 1;
8856: ;
8857: return 0;
8858: }
8859: _ACEOF
8860: if ac_fn_c_try_compile "$LINENO"; then :
8861: ac_cv_type_signal=int
8862: else
8863: ac_cv_type_signal=void
8864: fi
8865: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866: fi
8867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8868: $as_echo "$ac_cv_type_signal" >&6; }
8869:
8870: cat >>confdefs.h <<_ACEOF
8871: #define RETSIGTYPE $ac_cv_type_signal
8872: _ACEOF
8873:
8874:
8875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8876: $as_echo_n "checking for working strcoll... " >&6; }
8877: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8878: $as_echo_n "(cached) " >&6
8879: else
8880: if test "$cross_compiling" = yes; then :
8881: ac_cv_func_strcoll_works=no
8882: else
8883: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884: /* end confdefs.h. */
8885: $ac_includes_default
8886: int
8887: main ()
8888: {
8889: return (strcoll ("abc", "def") >= 0 ||
8890: strcoll ("ABC", "DEF") >= 0 ||
8891: strcoll ("123", "456") >= 0)
8892: ;
8893: return 0;
8894: }
8895: _ACEOF
8896: if ac_fn_c_try_run "$LINENO"; then :
8897: ac_cv_func_strcoll_works=yes
8898: else
8899: ac_cv_func_strcoll_works=no
8900: fi
8901: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8902: conftest.$ac_objext conftest.beam conftest.$ac_ext
8903: fi
8904:
8905: fi
8906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8907: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8908: if test $ac_cv_func_strcoll_works = yes; then
8909:
8910: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8911:
8912: fi
8913:
8914: for ac_func in strftime
8915: do :
8916: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8917: if test "x$ac_cv_func_strftime" = x""yes; then :
8918: cat >>confdefs.h <<_ACEOF
8919: #define HAVE_STRFTIME 1
8920: _ACEOF
8921:
8922: else
8923: # strftime is in -lintl on SCO UNIX.
8924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8925: $as_echo_n "checking for strftime in -lintl... " >&6; }
8926: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8927: $as_echo_n "(cached) " >&6
8928: else
8929: ac_check_lib_save_LIBS=$LIBS
8930: LIBS="-lintl $LIBS"
8931: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932: /* end confdefs.h. */
8933:
8934: /* Override any GCC internal prototype to avoid an error.
8935: Use char because int might match the return type of a GCC
8936: builtin and then its argument prototype would still apply. */
8937: #ifdef __cplusplus
8938: extern "C"
8939: #endif
8940: char strftime ();
8941: int
8942: main ()
8943: {
8944: return strftime ();
8945: ;
8946: return 0;
8947: }
8948: _ACEOF
8949: if ac_fn_c_try_link "$LINENO"; then :
8950: ac_cv_lib_intl_strftime=yes
8951: else
8952: ac_cv_lib_intl_strftime=no
8953: fi
8954: rm -f core conftest.err conftest.$ac_objext \
8955: conftest$ac_exeext conftest.$ac_ext
8956: LIBS=$ac_check_lib_save_LIBS
8957: fi
8958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8959: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8960: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8961: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8962:
8963: LIBS="-lintl $LIBS"
8964: fi
8965:
8966: fi
8967: done
8968:
8969: for ac_func in vprintf
8970: do :
8971: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8972: if test "x$ac_cv_func_vprintf" = x""yes; then :
8973: cat >>confdefs.h <<_ACEOF
8974: #define HAVE_VPRINTF 1
8975: _ACEOF
8976:
8977: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8978: if test "x$ac_cv_func__doprnt" = x""yes; then :
8979:
8980: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8981:
8982: fi
8983:
8984: fi
8985: done
8986:
8987:
8988: for ac_func in ftime getcwd putenv select strcspn strdup \
8989: strerror strspn strstr strtod
8990: do :
8991: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8992: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8993: eval as_val=\$$as_ac_var
8994: if test "x$as_val" = x""yes; then :
8995: cat >>confdefs.h <<_ACEOF
8996: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8997: _ACEOF
8998:
8999: fi
9000: done
9001:
9002:
9003:
9004:
9005: subdirs="$subdirs tools/$NCURSES"
9006:
9007: subdirs="$subdirs tools/$READLINE"
9008:
9009: subdirs="$subdirs tools/$UNITS"
9010:
9011: subdirs="$subdirs tools/$GSL"
9012:
9013: subdirs="$subdirs tools/$GPP"
9014:
9015: subdirs="$subdirs tools/$FILE"
9016:
9017: subdirs="$subdirs tools/$ICONV"
9018:
9019:
9020: if test "$MYGNUPLOT" = "yes"; then
9021: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9022: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9023: (cd "$srcdir/tools" && tar -xf -)
9024: fi
9025: subdirs="$subdirs tools/$GNUPLOT"
9026:
9027: GNUPLOT_COMPILATION=$GNUPLOT
9028: else
9029: GNUPLOT_COMPILATION=
9030: fi
9031:
9032:
9033:
9034: case $host_cpu in
9035:
9036: i?86)
9037: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9038: -Wno-pointer-sign"
9039: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9040: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9041: break ;;
9042:
9043: x86_64*)
9044: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9045: -Wno-pointer-sign"
9046: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9047: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9048: break ;;
9049:
9050: alpha*)
9051: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9052: -Wno-pointer-sign"
9053: FFLAGS="$FFLAGS -mieee -Wall"
9054: FCFLAGS="$FCFLAGS -mieee -Wall"
9055: break ;;
9056:
9057: sparc*)
9058: CFLAGS="$CFLAGS -Wall -funsigned-char \
9059: -Wno-pointer-sign"
9060: FFLAGS="$FFLAGS -Wall"
9061: FCFLAGS="$FCFLAGS -Wall"
9062: break ;;
9063:
9064: esac
9065:
9066: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9067: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9068:
9069: if test $(uname) = "SunOS"; then
9070: LIBMTMALLOC=-lmtmalloc
9071: else
9072: LIBMTMALLOC=
9073: fi
9074:
9075:
9076:
9077:
9078:
9079:
9080:
9081:
9082:
9083:
9084:
9085:
9086:
9087:
9088:
9089:
9090:
9091:
9092:
9093:
9094: ac_config_files="$ac_config_files Makefile"
9095:
9096: ac_config_files="$ac_config_files COPYING"
9097:
9098: ac_config_files="$ac_config_files tools/Makefile"
9099:
9100: ac_config_files="$ac_config_files src/Makefile"
9101:
9102: ac_config_files="$ac_config_files man/Makefile"
9103:
9104: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9105:
9106: ac_config_files="$ac_config_files doc/Makefile"
9107:
9108: ac_config_files="$ac_config_files scripts/Makefile"
9109:
9110: ac_config_files="$ac_config_files scripts/mkrplso"
9111:
9112: ac_config_files="$ac_config_files scripts/rplcc"
9113:
9114: ac_config_files="$ac_config_files scripts/rpllink"
9115:
9116: ac_config_files="$ac_config_files rpltags/Makefile"
9117:
9118: ac_config_files="$ac_config_files rpliconv/Makefile"
9119:
9120: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9121:
9122: ac_config_files="$ac_config_files lapack/blas/Makefile"
9123:
9124:
9125: ac_config_files="$ac_config_files man/rpl.1"
9126:
9127: ac_config_files="$ac_config_files man/rplcc.1"
9128:
9129: ac_config_files="$ac_config_files man/rpllink.1"
9130:
9131: ac_config_files="$ac_config_files man/rpltags.1"
9132:
9133: ac_config_files="$ac_config_files man/mkrplso.1"
9134:
9135: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9136:
9137: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9138:
9139: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9140:
9141: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9142:
9143: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9144:
9145:
9146: cat >confcache <<\_ACEOF
9147: # This file is a shell script that caches the results of configure
9148: # tests run on this system so they can be shared between configure
9149: # scripts and configure runs, see configure's option --config-cache.
9150: # It is not useful on other systems. If it contains results you don't
9151: # want to keep, you may remove or edit it.
9152: #
9153: # config.status only pays attention to the cache file if you give it
9154: # the --recheck option to rerun configure.
9155: #
9156: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9157: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9158: # following values.
9159:
9160: _ACEOF
9161:
9162: # The following way of writing the cache mishandles newlines in values,
9163: # but we know of no workaround that is simple, portable, and efficient.
9164: # So, we kill variables containing newlines.
9165: # Ultrix sh set writes to stderr and can't be redirected directly,
9166: # and sets the high bit in the cache file unless we assign to the vars.
9167: (
9168: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9169: eval ac_val=\$$ac_var
9170: case $ac_val in #(
9171: *${as_nl}*)
9172: case $ac_var in #(
9173: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9174: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9175: esac
9176: case $ac_var in #(
9177: _ | IFS | as_nl) ;; #(
9178: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9179: *) { eval $ac_var=; unset $ac_var;} ;;
9180: esac ;;
9181: esac
9182: done
9183:
9184: (set) 2>&1 |
9185: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9186: *${as_nl}ac_space=\ *)
9187: # `set' does not quote correctly, so add quotes: double-quote
9188: # substitution turns \\\\ into \\, and sed turns \\ into \.
9189: sed -n \
9190: "s/'/'\\\\''/g;
9191: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9192: ;; #(
9193: *)
9194: # `set' quotes correctly as required by POSIX, so do not add quotes.
9195: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9196: ;;
9197: esac |
9198: sort
9199: ) |
9200: sed '
9201: /^ac_cv_env_/b end
9202: t clear
9203: :clear
9204: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9205: t end
9206: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9207: :end' >>confcache
9208: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9209: if test -w "$cache_file"; then
9210: test "x$cache_file" != "x/dev/null" &&
9211: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9212: $as_echo "$as_me: updating cache $cache_file" >&6;}
9213: cat confcache >$cache_file
9214: else
9215: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9216: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9217: fi
9218: fi
9219: rm -f confcache
9220:
9221: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9222: # Let make expand exec_prefix.
9223: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9224:
9225: DEFS=-DHAVE_CONFIG_H
9226:
9227: ac_libobjs=
9228: ac_ltlibobjs=
9229: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9230: # 1. Remove the extension, and $U if already installed.
9231: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9232: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9233: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9234: # will be set to the directory where LIBOBJS objects are built.
9235: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9236: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9237: done
9238: LIBOBJS=$ac_libobjs
9239:
9240: LTLIBOBJS=$ac_ltlibobjs
9241:
9242:
9243: if test -n "$EXEEXT"; then
9244: am__EXEEXT_TRUE=
9245: am__EXEEXT_FALSE='#'
9246: else
9247: am__EXEEXT_TRUE='#'
9248: am__EXEEXT_FALSE=
9249: fi
9250:
9251: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9252: as_fn_error "conditional \"AMDEP\" was never defined.
9253: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9254: fi
9255: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9256: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9257: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9258: fi
9259: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9260: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9261: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9262: fi
9263:
9264: : ${CONFIG_STATUS=./config.status}
9265: ac_write_fail=0
9266: ac_clean_files_save=$ac_clean_files
9267: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9268: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9269: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9270: as_write_fail=0
9271: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9272: #! $SHELL
9273: # Generated by $as_me.
9274: # Run this file to recreate the current configuration.
9275: # Compiler output produced by configure, useful for debugging
9276: # configure, is in config.log if it exists.
9277:
9278: debug=false
9279: ac_cs_recheck=false
9280: ac_cs_silent=false
9281:
9282: SHELL=\${CONFIG_SHELL-$SHELL}
9283: export SHELL
9284: _ASEOF
9285: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9286: ## -------------------- ##
9287: ## M4sh Initialization. ##
9288: ## -------------------- ##
9289:
9290: # Be more Bourne compatible
9291: DUALCASE=1; export DUALCASE # for MKS sh
9292: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9293: emulate sh
9294: NULLCMD=:
9295: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9296: # is contrary to our usage. Disable this feature.
9297: alias -g '${1+"$@"}'='"$@"'
9298: setopt NO_GLOB_SUBST
9299: else
9300: case `(set -o) 2>/dev/null` in #(
9301: *posix*) :
9302: set -o posix ;; #(
9303: *) :
9304: ;;
9305: esac
9306: fi
9307:
9308:
9309: as_nl='
9310: '
9311: export as_nl
9312: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9313: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9314: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9315: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9316: # Prefer a ksh shell builtin over an external printf program on Solaris,
9317: # but without wasting forks for bash or zsh.
9318: if test -z "$BASH_VERSION$ZSH_VERSION" \
9319: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9320: as_echo='print -r --'
9321: as_echo_n='print -rn --'
9322: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9323: as_echo='printf %s\n'
9324: as_echo_n='printf %s'
9325: else
9326: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9327: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9328: as_echo_n='/usr/ucb/echo -n'
9329: else
9330: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9331: as_echo_n_body='eval
9332: arg=$1;
9333: case $arg in #(
9334: *"$as_nl"*)
9335: expr "X$arg" : "X\\(.*\\)$as_nl";
9336: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9337: esac;
9338: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9339: '
9340: export as_echo_n_body
9341: as_echo_n='sh -c $as_echo_n_body as_echo'
9342: fi
9343: export as_echo_body
9344: as_echo='sh -c $as_echo_body as_echo'
9345: fi
9346:
9347: # The user is always right.
9348: if test "${PATH_SEPARATOR+set}" != set; then
9349: PATH_SEPARATOR=:
9350: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9351: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9352: PATH_SEPARATOR=';'
9353: }
9354: fi
9355:
9356:
9357: # IFS
9358: # We need space, tab and new line, in precisely that order. Quoting is
9359: # there to prevent editors from complaining about space-tab.
9360: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9361: # splitting by setting IFS to empty value.)
9362: IFS=" "" $as_nl"
9363:
9364: # Find who we are. Look in the path if we contain no directory separator.
9365: case $0 in #((
9366: *[\\/]* ) as_myself=$0 ;;
9367: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368: for as_dir in $PATH
9369: do
9370: IFS=$as_save_IFS
9371: test -z "$as_dir" && as_dir=.
9372: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9373: done
9374: IFS=$as_save_IFS
9375:
9376: ;;
9377: esac
9378: # We did not find ourselves, most probably we were run as `sh COMMAND'
9379: # in which case we are not to be found in the path.
9380: if test "x$as_myself" = x; then
9381: as_myself=$0
9382: fi
9383: if test ! -f "$as_myself"; then
9384: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9385: exit 1
9386: fi
9387:
9388: # Unset variables that we do not need and which cause bugs (e.g. in
9389: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9390: # suppresses any "Segmentation fault" message there. '((' could
9391: # trigger a bug in pdksh 5.2.14.
9392: for as_var in BASH_ENV ENV MAIL MAILPATH
9393: do eval test x\${$as_var+set} = xset \
9394: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9395: done
9396: PS1='$ '
9397: PS2='> '
9398: PS4='+ '
9399:
9400: # NLS nuisances.
9401: LC_ALL=C
9402: export LC_ALL
9403: LANGUAGE=C
9404: export LANGUAGE
9405:
9406: # CDPATH.
9407: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9408:
9409:
9410: # as_fn_error ERROR [LINENO LOG_FD]
9411: # ---------------------------------
9412: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9413: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9414: # script with status $?, using 1 if that was 0.
9415: as_fn_error ()
9416: {
9417: as_status=$?; test $as_status -eq 0 && as_status=1
9418: if test "$3"; then
9419: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9420: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9421: fi
9422: $as_echo "$as_me: error: $1" >&2
9423: as_fn_exit $as_status
9424: } # as_fn_error
9425:
9426:
9427: # as_fn_set_status STATUS
9428: # -----------------------
9429: # Set $? to STATUS, without forking.
9430: as_fn_set_status ()
9431: {
9432: return $1
9433: } # as_fn_set_status
9434:
9435: # as_fn_exit STATUS
9436: # -----------------
9437: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9438: as_fn_exit ()
9439: {
9440: set +e
9441: as_fn_set_status $1
9442: exit $1
9443: } # as_fn_exit
9444:
9445: # as_fn_unset VAR
9446: # ---------------
9447: # Portably unset VAR.
9448: as_fn_unset ()
9449: {
9450: { eval $1=; unset $1;}
9451: }
9452: as_unset=as_fn_unset
9453: # as_fn_append VAR VALUE
9454: # ----------------------
9455: # Append the text in VALUE to the end of the definition contained in VAR. Take
9456: # advantage of any shell optimizations that allow amortized linear growth over
9457: # repeated appends, instead of the typical quadratic growth present in naive
9458: # implementations.
9459: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9460: eval 'as_fn_append ()
9461: {
9462: eval $1+=\$2
9463: }'
9464: else
9465: as_fn_append ()
9466: {
9467: eval $1=\$$1\$2
9468: }
9469: fi # as_fn_append
9470:
9471: # as_fn_arith ARG...
9472: # ------------------
9473: # Perform arithmetic evaluation on the ARGs, and store the result in the
9474: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9475: # must be portable across $(()) and expr.
9476: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9477: eval 'as_fn_arith ()
9478: {
9479: as_val=$(( $* ))
9480: }'
9481: else
9482: as_fn_arith ()
9483: {
9484: as_val=`expr "$@" || test $? -eq 1`
9485: }
9486: fi # as_fn_arith
9487:
9488:
9489: if expr a : '\(a\)' >/dev/null 2>&1 &&
9490: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9491: as_expr=expr
9492: else
9493: as_expr=false
9494: fi
9495:
9496: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9497: as_basename=basename
9498: else
9499: as_basename=false
9500: fi
9501:
9502: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9503: as_dirname=dirname
9504: else
9505: as_dirname=false
9506: fi
9507:
9508: as_me=`$as_basename -- "$0" ||
9509: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9510: X"$0" : 'X\(//\)$' \| \
9511: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9512: $as_echo X/"$0" |
9513: sed '/^.*\/\([^/][^/]*\)\/*$/{
9514: s//\1/
9515: q
9516: }
9517: /^X\/\(\/\/\)$/{
9518: s//\1/
9519: q
9520: }
9521: /^X\/\(\/\).*/{
9522: s//\1/
9523: q
9524: }
9525: s/.*/./; q'`
9526:
9527: # Avoid depending upon Character Ranges.
9528: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9529: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9530: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9531: as_cr_digits='0123456789'
9532: as_cr_alnum=$as_cr_Letters$as_cr_digits
9533:
9534: ECHO_C= ECHO_N= ECHO_T=
9535: case `echo -n x` in #(((((
9536: -n*)
9537: case `echo 'xy\c'` in
9538: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9539: xy) ECHO_C='\c';;
9540: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9541: ECHO_T=' ';;
9542: esac;;
9543: *)
9544: ECHO_N='-n';;
9545: esac
9546:
9547: rm -f conf$$ conf$$.exe conf$$.file
9548: if test -d conf$$.dir; then
9549: rm -f conf$$.dir/conf$$.file
9550: else
9551: rm -f conf$$.dir
9552: mkdir conf$$.dir 2>/dev/null
9553: fi
9554: if (echo >conf$$.file) 2>/dev/null; then
9555: if ln -s conf$$.file conf$$ 2>/dev/null; then
9556: as_ln_s='ln -s'
9557: # ... but there are two gotchas:
9558: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9559: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9560: # In both cases, we have to default to `cp -p'.
9561: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9562: as_ln_s='cp -p'
9563: elif ln conf$$.file conf$$ 2>/dev/null; then
9564: as_ln_s=ln
9565: else
9566: as_ln_s='cp -p'
9567: fi
9568: else
9569: as_ln_s='cp -p'
9570: fi
9571: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9572: rmdir conf$$.dir 2>/dev/null
9573:
9574:
9575: # as_fn_mkdir_p
9576: # -------------
9577: # Create "$as_dir" as a directory, including parents if necessary.
9578: as_fn_mkdir_p ()
9579: {
9580:
9581: case $as_dir in #(
9582: -*) as_dir=./$as_dir;;
9583: esac
9584: test -d "$as_dir" || eval $as_mkdir_p || {
9585: as_dirs=
9586: while :; do
9587: case $as_dir in #(
9588: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9589: *) as_qdir=$as_dir;;
9590: esac
9591: as_dirs="'$as_qdir' $as_dirs"
9592: as_dir=`$as_dirname -- "$as_dir" ||
9593: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9594: X"$as_dir" : 'X\(//\)[^/]' \| \
9595: X"$as_dir" : 'X\(//\)$' \| \
9596: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9597: $as_echo X"$as_dir" |
9598: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9599: s//\1/
9600: q
9601: }
9602: /^X\(\/\/\)[^/].*/{
9603: s//\1/
9604: q
9605: }
9606: /^X\(\/\/\)$/{
9607: s//\1/
9608: q
9609: }
9610: /^X\(\/\).*/{
9611: s//\1/
9612: q
9613: }
9614: s/.*/./; q'`
9615: test -d "$as_dir" && break
9616: done
9617: test -z "$as_dirs" || eval "mkdir $as_dirs"
9618: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9619:
9620:
9621: } # as_fn_mkdir_p
9622: if mkdir -p . 2>/dev/null; then
9623: as_mkdir_p='mkdir -p "$as_dir"'
9624: else
9625: test -d ./-p && rmdir ./-p
9626: as_mkdir_p=false
9627: fi
9628:
9629: if test -x / >/dev/null 2>&1; then
9630: as_test_x='test -x'
9631: else
9632: if ls -dL / >/dev/null 2>&1; then
9633: as_ls_L_option=L
9634: else
9635: as_ls_L_option=
9636: fi
9637: as_test_x='
9638: eval sh -c '\''
9639: if test -d "$1"; then
9640: test -d "$1/.";
9641: else
9642: case $1 in #(
9643: -*)set "./$1";;
9644: esac;
9645: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9646: ???[sx]*):;;*)false;;esac;fi
9647: '\'' sh
9648: '
9649: fi
9650: as_executable_p=$as_test_x
9651:
9652: # Sed expression to map a string onto a valid CPP name.
9653: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9654:
9655: # Sed expression to map a string onto a valid variable name.
9656: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9657:
9658:
9659: exec 6>&1
9660: ## ----------------------------------- ##
9661: ## Main body of $CONFIG_STATUS script. ##
9662: ## ----------------------------------- ##
9663: _ASEOF
9664: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9665:
9666: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9667: # Save the log message, to keep $0 and so on meaningful, and to
9668: # report actual input values of CONFIG_FILES etc. instead of their
9669: # values after options handling.
9670: ac_log="
9671: This file was extended by rpl $as_me 4.0.11, which was
9672: generated by GNU Autoconf 2.65. Invocation command line was
9673:
9674: CONFIG_FILES = $CONFIG_FILES
9675: CONFIG_HEADERS = $CONFIG_HEADERS
9676: CONFIG_LINKS = $CONFIG_LINKS
9677: CONFIG_COMMANDS = $CONFIG_COMMANDS
9678: $ $0 $@
9679:
9680: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9681: "
9682:
9683: _ACEOF
9684:
9685: case $ac_config_files in *"
9686: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9687: esac
9688:
9689: case $ac_config_headers in *"
9690: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9691: esac
9692:
9693:
9694: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9695: # Files that config.status was made for.
9696: config_files="$ac_config_files"
9697: config_headers="$ac_config_headers"
9698: config_commands="$ac_config_commands"
9699:
9700: _ACEOF
9701:
9702: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9703: ac_cs_usage="\
9704: \`$as_me' instantiates files and other configuration actions
9705: from templates according to the current configuration. Unless the files
9706: and actions are specified as TAGs, all are instantiated by default.
9707:
9708: Usage: $0 [OPTION]... [TAG]...
9709:
9710: -h, --help print this help, then exit
9711: -V, --version print version number and configuration settings, then exit
9712: --config print configuration, then exit
9713: -q, --quiet, --silent
9714: do not print progress messages
9715: -d, --debug don't remove temporary files
9716: --recheck update $as_me by reconfiguring in the same conditions
9717: --file=FILE[:TEMPLATE]
9718: instantiate the configuration file FILE
9719: --header=FILE[:TEMPLATE]
9720: instantiate the configuration header FILE
9721:
9722: Configuration files:
9723: $config_files
9724:
9725: Configuration headers:
9726: $config_headers
9727:
9728: Configuration commands:
9729: $config_commands
9730:
9731: Report bugs to the package provider."
9732:
9733: _ACEOF
9734: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9735: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9736: ac_cs_version="\\
9737: rpl config.status 4.0.11
9738: configured by $0, generated by GNU Autoconf 2.65,
9739: with options \\"\$ac_cs_config\\"
9740:
9741: Copyright (C) 2009 Free Software Foundation, Inc.
9742: This config.status script is free software; the Free Software Foundation
9743: gives unlimited permission to copy, distribute and modify it."
9744:
9745: ac_pwd='$ac_pwd'
9746: srcdir='$srcdir'
9747: INSTALL='$INSTALL'
9748: MKDIR_P='$MKDIR_P'
9749: AWK='$AWK'
9750: test -n "\$AWK" || AWK=awk
9751: _ACEOF
9752:
9753: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9754: # The default lists apply if the user does not specify any file.
9755: ac_need_defaults=:
9756: while test $# != 0
9757: do
9758: case $1 in
9759: --*=*)
9760: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9761: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9762: ac_shift=:
9763: ;;
9764: *)
9765: ac_option=$1
9766: ac_optarg=$2
9767: ac_shift=shift
9768: ;;
9769: esac
9770:
9771: case $ac_option in
9772: # Handling of the options.
9773: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9774: ac_cs_recheck=: ;;
9775: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9776: $as_echo "$ac_cs_version"; exit ;;
9777: --config | --confi | --conf | --con | --co | --c )
9778: $as_echo "$ac_cs_config"; exit ;;
9779: --debug | --debu | --deb | --de | --d | -d )
9780: debug=: ;;
9781: --file | --fil | --fi | --f )
9782: $ac_shift
9783: case $ac_optarg in
9784: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9785: esac
9786: as_fn_append CONFIG_FILES " '$ac_optarg'"
9787: ac_need_defaults=false;;
9788: --header | --heade | --head | --hea )
9789: $ac_shift
9790: case $ac_optarg in
9791: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9792: esac
9793: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9794: ac_need_defaults=false;;
9795: --he | --h)
9796: # Conflict between --help and --header
9797: as_fn_error "ambiguous option: \`$1'
9798: Try \`$0 --help' for more information.";;
9799: --help | --hel | -h )
9800: $as_echo "$ac_cs_usage"; exit ;;
9801: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9802: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9803: ac_cs_silent=: ;;
9804:
9805: # This is an error.
9806: -*) as_fn_error "unrecognized option: \`$1'
9807: Try \`$0 --help' for more information." ;;
9808:
9809: *) as_fn_append ac_config_targets " $1"
9810: ac_need_defaults=false ;;
9811:
9812: esac
9813: shift
9814: done
9815:
9816: ac_configure_extra_args=
9817:
9818: if $ac_cs_silent; then
9819: exec 6>/dev/null
9820: ac_configure_extra_args="$ac_configure_extra_args --silent"
9821: fi
9822:
9823: _ACEOF
9824: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9825: if \$ac_cs_recheck; then
9826: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9827: shift
9828: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9829: CONFIG_SHELL='$SHELL'
9830: export CONFIG_SHELL
9831: exec "\$@"
9832: fi
9833:
9834: _ACEOF
9835: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9836: exec 5>>config.log
9837: {
9838: echo
9839: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9840: ## Running $as_me. ##
9841: _ASBOX
9842: $as_echo "$ac_log"
9843: } >&5
9844:
9845: _ACEOF
9846: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9847: #
9848: # INIT-COMMANDS
9849: #
9850: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9851:
9852: _ACEOF
9853:
9854: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9855:
9856: # Handling of arguments.
9857: for ac_config_target in $ac_config_targets
9858: do
9859: case $ac_config_target in
9860: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9861: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9862: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9863: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9864: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9865: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9866: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9867: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9868: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9869: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9870: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9871: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9872: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9873: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9874: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9875: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9876: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9877: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9878: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9879: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9880: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9881: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9882: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9883: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9884: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9885: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9886: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9887:
9888: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9889: esac
9890: done
9891:
9892:
9893: # If the user did not use the arguments to specify the items to instantiate,
9894: # then the envvar interface is used. Set only those that are not.
9895: # We use the long form for the default assignment because of an extremely
9896: # bizarre bug on SunOS 4.1.3.
9897: if $ac_need_defaults; then
9898: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9899: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9900: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9901: fi
9902:
9903: # Have a temporary directory for convenience. Make it in the build tree
9904: # simply because there is no reason against having it here, and in addition,
9905: # creating and moving files from /tmp can sometimes cause problems.
9906: # Hook for its removal unless debugging.
9907: # Note that there is a small window in which the directory will not be cleaned:
9908: # after its creation but before its name has been assigned to `$tmp'.
9909: $debug ||
9910: {
9911: tmp=
9912: trap 'exit_status=$?
9913: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9914: ' 0
9915: trap 'as_fn_exit 1' 1 2 13 15
9916: }
9917: # Create a (secure) tmp directory for tmp files.
9918:
9919: {
9920: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9921: test -n "$tmp" && test -d "$tmp"
9922: } ||
9923: {
9924: tmp=./conf$$-$RANDOM
9925: (umask 077 && mkdir "$tmp")
9926: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9927:
9928: # Set up the scripts for CONFIG_FILES section.
9929: # No need to generate them if there are no CONFIG_FILES.
9930: # This happens for instance with `./config.status config.h'.
9931: if test -n "$CONFIG_FILES"; then
9932:
9933:
9934: ac_cr=`echo X | tr X '\015'`
9935: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9936: # But we know of no other shell where ac_cr would be empty at this
9937: # point, so we can use a bashism as a fallback.
9938: if test "x$ac_cr" = x; then
9939: eval ac_cr=\$\'\\r\'
9940: fi
9941: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9942: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9943: ac_cs_awk_cr='\r'
9944: else
9945: ac_cs_awk_cr=$ac_cr
9946: fi
9947:
9948: echo 'BEGIN {' >"$tmp/subs1.awk" &&
9949: _ACEOF
9950:
9951:
9952: {
9953: echo "cat >conf$$subs.awk <<_ACEOF" &&
9954: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9955: echo "_ACEOF"
9956: } >conf$$subs.sh ||
9957: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9958: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9959: ac_delim='%!_!# '
9960: for ac_last_try in false false false false false :; do
9961: . ./conf$$subs.sh ||
9962: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9963:
9964: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9965: if test $ac_delim_n = $ac_delim_num; then
9966: break
9967: elif $ac_last_try; then
9968: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9969: else
9970: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9971: fi
9972: done
9973: rm -f conf$$subs.sh
9974:
9975: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9976: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9977: _ACEOF
9978: sed -n '
9979: h
9980: s/^/S["/; s/!.*/"]=/
9981: p
9982: g
9983: s/^[^!]*!//
9984: :repl
9985: t repl
9986: s/'"$ac_delim"'$//
9987: t delim
9988: :nl
9989: h
9990: s/\(.\{148\}\)..*/\1/
9991: t more1
9992: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9993: p
9994: n
9995: b repl
9996: :more1
9997: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9998: p
9999: g
10000: s/.\{148\}//
10001: t nl
10002: :delim
10003: h
10004: s/\(.\{148\}\)..*/\1/
10005: t more2
10006: s/["\\]/\\&/g; s/^/"/; s/$/"/
10007: p
10008: b
10009: :more2
10010: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10011: p
10012: g
10013: s/.\{148\}//
10014: t delim
10015: ' <conf$$subs.awk | sed '
10016: /^[^""]/{
10017: N
10018: s/\n//
10019: }
10020: ' >>$CONFIG_STATUS || ac_write_fail=1
10021: rm -f conf$$subs.awk
10022: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10023: _ACAWK
10024: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10025: for (key in S) S_is_set[key] = 1
10026: FS = ""
10027:
10028: }
10029: {
10030: line = $ 0
10031: nfields = split(line, field, "@")
10032: substed = 0
10033: len = length(field[1])
10034: for (i = 2; i < nfields; i++) {
10035: key = field[i]
10036: keylen = length(key)
10037: if (S_is_set[key]) {
10038: value = S[key]
10039: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10040: len += length(value) + length(field[++i])
10041: substed = 1
10042: } else
10043: len += 1 + keylen
10044: }
10045:
10046: print line
10047: }
10048:
10049: _ACAWK
10050: _ACEOF
10051: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10052: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10053: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10054: else
10055: cat
10056: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10057: || as_fn_error "could not setup config files machinery" "$LINENO" 5
10058: _ACEOF
10059:
10060: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10061: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10062: # trailing colons and then remove the whole line if VPATH becomes empty
10063: # (actually we leave an empty line to preserve line numbers).
10064: if test "x$srcdir" = x.; then
10065: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10066: s/:*\$(srcdir):*/:/
10067: s/:*\${srcdir}:*/:/
10068: s/:*@srcdir@:*/:/
10069: s/^\([^=]*=[ ]*\):*/\1/
10070: s/:*$//
10071: s/^[^=]*=[ ]*$//
10072: }'
10073: fi
10074:
10075: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10076: fi # test -n "$CONFIG_FILES"
10077:
10078: # Set up the scripts for CONFIG_HEADERS section.
10079: # No need to generate them if there are no CONFIG_HEADERS.
10080: # This happens for instance with `./config.status Makefile'.
10081: if test -n "$CONFIG_HEADERS"; then
10082: cat >"$tmp/defines.awk" <<\_ACAWK ||
10083: BEGIN {
10084: _ACEOF
10085:
10086: # Transform confdefs.h into an awk script `defines.awk', embedded as
10087: # here-document in config.status, that substitutes the proper values into
10088: # config.h.in to produce config.h.
10089:
10090: # Create a delimiter string that does not exist in confdefs.h, to ease
10091: # handling of long lines.
10092: ac_delim='%!_!# '
10093: for ac_last_try in false false :; do
10094: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10095: if test -z "$ac_t"; then
10096: break
10097: elif $ac_last_try; then
10098: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10099: else
10100: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10101: fi
10102: done
10103:
10104: # For the awk script, D is an array of macro values keyed by name,
10105: # likewise P contains macro parameters if any. Preserve backslash
10106: # newline sequences.
10107:
10108: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10109: sed -n '
10110: s/.\{148\}/&'"$ac_delim"'/g
10111: t rset
10112: :rset
10113: s/^[ ]*#[ ]*define[ ][ ]*/ /
10114: t def
10115: d
10116: :def
10117: s/\\$//
10118: t bsnl
10119: s/["\\]/\\&/g
10120: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10121: D["\1"]=" \3"/p
10122: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10123: d
10124: :bsnl
10125: s/["\\]/\\&/g
10126: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10127: D["\1"]=" \3\\\\\\n"\\/p
10128: t cont
10129: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10130: t cont
10131: d
10132: :cont
10133: n
10134: s/.\{148\}/&'"$ac_delim"'/g
10135: t clear
10136: :clear
10137: s/\\$//
10138: t bsnlc
10139: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10140: d
10141: :bsnlc
10142: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10143: b cont
10144: ' <confdefs.h | sed '
10145: s/'"$ac_delim"'/"\\\
10146: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10147:
10148: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10149: for (key in D) D_is_set[key] = 1
10150: FS = ""
10151: }
10152: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10153: line = \$ 0
10154: split(line, arg, " ")
10155: if (arg[1] == "#") {
10156: defundef = arg[2]
10157: mac1 = arg[3]
10158: } else {
10159: defundef = substr(arg[1], 2)
10160: mac1 = arg[2]
10161: }
10162: split(mac1, mac2, "(") #)
10163: macro = mac2[1]
10164: prefix = substr(line, 1, index(line, defundef) - 1)
10165: if (D_is_set[macro]) {
10166: # Preserve the white space surrounding the "#".
10167: print prefix "define", macro P[macro] D[macro]
10168: next
10169: } else {
10170: # Replace #undef with comments. This is necessary, for example,
10171: # in the case of _POSIX_SOURCE, which is predefined and required
10172: # on some systems where configure will not decide to define it.
10173: if (defundef == "undef") {
10174: print "/*", prefix defundef, macro, "*/"
10175: next
10176: }
10177: }
10178: }
10179: { print }
10180: _ACAWK
10181: _ACEOF
10182: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10183: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10184: fi # test -n "$CONFIG_HEADERS"
10185:
10186:
10187: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10188: shift
10189: for ac_tag
10190: do
10191: case $ac_tag in
10192: :[FHLC]) ac_mode=$ac_tag; continue;;
10193: esac
10194: case $ac_mode$ac_tag in
10195: :[FHL]*:*);;
10196: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10197: :[FH]-) ac_tag=-:-;;
10198: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10199: esac
10200: ac_save_IFS=$IFS
10201: IFS=:
10202: set x $ac_tag
10203: IFS=$ac_save_IFS
10204: shift
10205: ac_file=$1
10206: shift
10207:
10208: case $ac_mode in
10209: :L) ac_source=$1;;
10210: :[FH])
10211: ac_file_inputs=
10212: for ac_f
10213: do
10214: case $ac_f in
10215: -) ac_f="$tmp/stdin";;
10216: *) # Look for the file first in the build tree, then in the source tree
10217: # (if the path is not absolute). The absolute path cannot be DOS-style,
10218: # because $ac_f cannot contain `:'.
10219: test -f "$ac_f" ||
10220: case $ac_f in
10221: [\\/$]*) false;;
10222: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10223: esac ||
10224: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10225: esac
10226: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10227: as_fn_append ac_file_inputs " '$ac_f'"
10228: done
10229:
10230: # Let's still pretend it is `configure' which instantiates (i.e., don't
10231: # use $as_me), people would be surprised to read:
10232: # /* config.h. Generated by config.status. */
10233: configure_input='Generated from '`
10234: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10235: `' by configure.'
10236: if test x"$ac_file" != x-; then
10237: configure_input="$ac_file. $configure_input"
10238: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10239: $as_echo "$as_me: creating $ac_file" >&6;}
10240: fi
10241: # Neutralize special characters interpreted by sed in replacement strings.
10242: case $configure_input in #(
10243: *\&* | *\|* | *\\* )
10244: ac_sed_conf_input=`$as_echo "$configure_input" |
10245: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10246: *) ac_sed_conf_input=$configure_input;;
10247: esac
10248:
10249: case $ac_tag in
10250: *:-:* | *:-) cat >"$tmp/stdin" \
10251: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10252: esac
10253: ;;
10254: esac
10255:
10256: ac_dir=`$as_dirname -- "$ac_file" ||
10257: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10258: X"$ac_file" : 'X\(//\)[^/]' \| \
10259: X"$ac_file" : 'X\(//\)$' \| \
10260: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10261: $as_echo X"$ac_file" |
10262: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10263: s//\1/
10264: q
10265: }
10266: /^X\(\/\/\)[^/].*/{
10267: s//\1/
10268: q
10269: }
10270: /^X\(\/\/\)$/{
10271: s//\1/
10272: q
10273: }
10274: /^X\(\/\).*/{
10275: s//\1/
10276: q
10277: }
10278: s/.*/./; q'`
10279: as_dir="$ac_dir"; as_fn_mkdir_p
10280: ac_builddir=.
10281:
10282: case "$ac_dir" in
10283: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10284: *)
10285: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10286: # A ".." for each directory in $ac_dir_suffix.
10287: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10288: case $ac_top_builddir_sub in
10289: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10290: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10291: esac ;;
10292: esac
10293: ac_abs_top_builddir=$ac_pwd
10294: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10295: # for backward compatibility:
10296: ac_top_builddir=$ac_top_build_prefix
10297:
10298: case $srcdir in
10299: .) # We are building in place.
10300: ac_srcdir=.
10301: ac_top_srcdir=$ac_top_builddir_sub
10302: ac_abs_top_srcdir=$ac_pwd ;;
10303: [\\/]* | ?:[\\/]* ) # Absolute name.
10304: ac_srcdir=$srcdir$ac_dir_suffix;
10305: ac_top_srcdir=$srcdir
10306: ac_abs_top_srcdir=$srcdir ;;
10307: *) # Relative name.
10308: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10309: ac_top_srcdir=$ac_top_build_prefix$srcdir
10310: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10311: esac
10312: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10313:
10314:
10315: case $ac_mode in
10316: :F)
10317: #
10318: # CONFIG_FILE
10319: #
10320:
10321: case $INSTALL in
10322: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10323: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10324: esac
10325: ac_MKDIR_P=$MKDIR_P
10326: case $MKDIR_P in
10327: [\\/$]* | ?:[\\/]* ) ;;
10328: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10329: esac
10330: _ACEOF
10331:
10332: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10333: # If the template does not know about datarootdir, expand it.
10334: # FIXME: This hack should be removed a few years after 2.60.
10335: ac_datarootdir_hack=; ac_datarootdir_seen=
10336: ac_sed_dataroot='
10337: /datarootdir/ {
10338: p
10339: q
10340: }
10341: /@datadir@/p
10342: /@docdir@/p
10343: /@infodir@/p
10344: /@localedir@/p
10345: /@mandir@/p'
10346: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10347: *datarootdir*) ac_datarootdir_seen=yes;;
10348: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10349: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10350: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10351: _ACEOF
10352: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10353: ac_datarootdir_hack='
10354: s&@datadir@&$datadir&g
10355: s&@docdir@&$docdir&g
10356: s&@infodir@&$infodir&g
10357: s&@localedir@&$localedir&g
10358: s&@mandir@&$mandir&g
10359: s&\\\${datarootdir}&$datarootdir&g' ;;
10360: esac
10361: _ACEOF
10362:
10363: # Neutralize VPATH when `$srcdir' = `.'.
10364: # Shell code in configure.ac might set extrasub.
10365: # FIXME: do we really want to maintain this feature?
10366: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10367: ac_sed_extra="$ac_vpsub
10368: $extrasub
10369: _ACEOF
10370: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10371: :t
10372: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10373: s|@configure_input@|$ac_sed_conf_input|;t t
10374: s&@top_builddir@&$ac_top_builddir_sub&;t t
10375: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10376: s&@srcdir@&$ac_srcdir&;t t
10377: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10378: s&@top_srcdir@&$ac_top_srcdir&;t t
10379: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10380: s&@builddir@&$ac_builddir&;t t
10381: s&@abs_builddir@&$ac_abs_builddir&;t t
10382: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10383: s&@INSTALL@&$ac_INSTALL&;t t
10384: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10385: $ac_datarootdir_hack
10386: "
10387: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10388: || as_fn_error "could not create $ac_file" "$LINENO" 5
10389:
10390: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10391: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10392: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10393: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10394: which seems to be undefined. Please make sure it is defined." >&5
10395: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10396: which seems to be undefined. Please make sure it is defined." >&2;}
10397:
10398: rm -f "$tmp/stdin"
10399: case $ac_file in
10400: -) cat "$tmp/out" && rm -f "$tmp/out";;
10401: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10402: esac \
10403: || as_fn_error "could not create $ac_file" "$LINENO" 5
10404: ;;
10405: :H)
10406: #
10407: # CONFIG_HEADER
10408: #
10409: if test x"$ac_file" != x-; then
10410: {
10411: $as_echo "/* $configure_input */" \
10412: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10413: } >"$tmp/config.h" \
10414: || as_fn_error "could not create $ac_file" "$LINENO" 5
10415: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10416: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10417: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10418: else
10419: rm -f "$ac_file"
10420: mv "$tmp/config.h" "$ac_file" \
10421: || as_fn_error "could not create $ac_file" "$LINENO" 5
10422: fi
10423: else
10424: $as_echo "/* $configure_input */" \
10425: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10426: || as_fn_error "could not create -" "$LINENO" 5
10427: fi
10428: # Compute "$ac_file"'s index in $config_headers.
10429: _am_arg="$ac_file"
10430: _am_stamp_count=1
10431: for _am_header in $config_headers :; do
10432: case $_am_header in
10433: $_am_arg | $_am_arg:* )
10434: break ;;
10435: * )
10436: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10437: esac
10438: done
10439: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10440: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10441: X"$_am_arg" : 'X\(//\)[^/]' \| \
10442: X"$_am_arg" : 'X\(//\)$' \| \
10443: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10444: $as_echo X"$_am_arg" |
10445: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10446: s//\1/
10447: q
10448: }
10449: /^X\(\/\/\)[^/].*/{
10450: s//\1/
10451: q
10452: }
10453: /^X\(\/\/\)$/{
10454: s//\1/
10455: q
10456: }
10457: /^X\(\/\).*/{
10458: s//\1/
10459: q
10460: }
10461: s/.*/./; q'`/stamp-h$_am_stamp_count
10462: ;;
10463:
10464: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10465: $as_echo "$as_me: executing $ac_file commands" >&6;}
10466: ;;
10467: esac
10468:
10469:
10470: case $ac_file$ac_mode in
10471: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10472: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10473: # are listed without --file. Let's play safe and only enable the eval
10474: # if we detect the quoting.
10475: case $CONFIG_FILES in
10476: *\'*) eval set x "$CONFIG_FILES" ;;
10477: *) set x $CONFIG_FILES ;;
10478: esac
10479: shift
10480: for mf
10481: do
10482: # Strip MF so we end up with the name of the file.
10483: mf=`echo "$mf" | sed -e 's/:.*$//'`
10484: # Check whether this is an Automake generated Makefile or not.
10485: # We used to match only the files named `Makefile.in', but
10486: # some people rename them; so instead we look at the file content.
10487: # Grep'ing the first line is not enough: some people post-process
10488: # each Makefile.in and add a new line on top of each file to say so.
10489: # Grep'ing the whole file is not good either: AIX grep has a line
10490: # limit of 2048, but all sed's we know have understand at least 4000.
10491: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10492: dirpart=`$as_dirname -- "$mf" ||
10493: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10494: X"$mf" : 'X\(//\)[^/]' \| \
10495: X"$mf" : 'X\(//\)$' \| \
10496: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10497: $as_echo X"$mf" |
10498: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10499: s//\1/
10500: q
10501: }
10502: /^X\(\/\/\)[^/].*/{
10503: s//\1/
10504: q
10505: }
10506: /^X\(\/\/\)$/{
10507: s//\1/
10508: q
10509: }
10510: /^X\(\/\).*/{
10511: s//\1/
10512: q
10513: }
10514: s/.*/./; q'`
10515: else
10516: continue
10517: fi
10518: # Extract the definition of DEPDIR, am__include, and am__quote
10519: # from the Makefile without running `make'.
10520: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10521: test -z "$DEPDIR" && continue
10522: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10523: test -z "am__include" && continue
10524: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10525: # When using ansi2knr, U may be empty or an underscore; expand it
10526: U=`sed -n 's/^U = //p' < "$mf"`
10527: # Find all dependency output files, they are included files with
10528: # $(DEPDIR) in their names. We invoke sed twice because it is the
10529: # simplest approach to changing $(DEPDIR) to its actual value in the
10530: # expansion.
10531: for file in `sed -n "
10532: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10533: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10534: # Make sure the directory exists.
10535: test -f "$dirpart/$file" && continue
10536: fdir=`$as_dirname -- "$file" ||
10537: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10538: X"$file" : 'X\(//\)[^/]' \| \
10539: X"$file" : 'X\(//\)$' \| \
10540: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10541: $as_echo X"$file" |
10542: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10543: s//\1/
10544: q
10545: }
10546: /^X\(\/\/\)[^/].*/{
10547: s//\1/
10548: q
10549: }
10550: /^X\(\/\/\)$/{
10551: s//\1/
10552: q
10553: }
10554: /^X\(\/\).*/{
10555: s//\1/
10556: q
10557: }
10558: s/.*/./; q'`
10559: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10560: # echo "creating $dirpart/$file"
10561: echo '# dummy' > "$dirpart/$file"
10562: done
10563: done
10564: }
10565: ;;
10566:
10567: esac
10568: done # for ac_tag
10569:
10570:
10571: as_fn_exit 0
10572: _ACEOF
10573: ac_clean_files=$ac_clean_files_save
10574:
10575: test $ac_write_fail = 0 ||
10576: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10577:
10578:
10579: # configure is writing to config.log, and then calls config.status.
10580: # config.status does its own redirection, appending to config.log.
10581: # Unfortunately, on DOS this fails, as config.log is still kept open
10582: # by configure, so config.status won't be able to write to it; its
10583: # output is simply discarded. So we exec the FD to /dev/null,
10584: # effectively closing config.log, so it can be properly (re)opened and
10585: # appended to by config.status. When coming back to configure, we
10586: # need to make the FD available again.
10587: if test "$no_create" != yes; then
10588: ac_cs_success=:
10589: ac_config_status_args=
10590: test "$silent" = yes &&
10591: ac_config_status_args="$ac_config_status_args --quiet"
10592: exec 5>/dev/null
10593: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10594: exec 5>>config.log
10595: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10596: # would make configure fail if this is the last instruction.
10597: $ac_cs_success || as_fn_exit $?
10598: fi
10599:
10600: #
10601: # CONFIG_SUBDIRS section.
10602: #
10603: if test "$no_recursion" != yes; then
10604:
10605: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10606: # so they do not pile up.
10607: ac_sub_configure_args=
10608: ac_prev=
10609: eval "set x $ac_configure_args"
10610: shift
10611: for ac_arg
10612: do
10613: if test -n "$ac_prev"; then
10614: ac_prev=
10615: continue
10616: fi
10617: case $ac_arg in
10618: -cache-file | --cache-file | --cache-fil | --cache-fi \
10619: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10620: ac_prev=cache_file ;;
10621: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10622: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10623: | --c=*)
10624: ;;
10625: --config-cache | -C)
10626: ;;
10627: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10628: ac_prev=srcdir ;;
10629: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10630: ;;
10631: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10632: ac_prev=prefix ;;
10633: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10634: ;;
10635: --disable-option-checking)
10636: ;;
10637: *)
10638: case $ac_arg in
10639: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10640: esac
10641: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10642: esac
10643: done
10644:
10645: # Always prepend --prefix to ensure using the same prefix
10646: # in subdir configurations.
10647: ac_arg="--prefix=$prefix"
10648: case $ac_arg in
10649: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10650: esac
10651: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10652:
10653: # Pass --silent
10654: if test "$silent" = yes; then
10655: ac_sub_configure_args="--silent $ac_sub_configure_args"
10656: fi
10657:
10658: # Always prepend --disable-option-checking to silence warnings, since
10659: # different subdirs can have different --enable and --with options.
10660: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10661:
10662: ac_popdir=`pwd`
10663: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10664:
10665: # Do not complain, so a configure script can configure whichever
10666: # parts of a large source tree are present.
10667: test -d "$srcdir/$ac_dir" || continue
10668:
10669: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10670: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10671: $as_echo "$ac_msg" >&6
10672: as_dir="$ac_dir"; as_fn_mkdir_p
10673: ac_builddir=.
10674:
10675: case "$ac_dir" in
10676: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10677: *)
10678: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10679: # A ".." for each directory in $ac_dir_suffix.
10680: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10681: case $ac_top_builddir_sub in
10682: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10683: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10684: esac ;;
10685: esac
10686: ac_abs_top_builddir=$ac_pwd
10687: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10688: # for backward compatibility:
10689: ac_top_builddir=$ac_top_build_prefix
10690:
10691: case $srcdir in
10692: .) # We are building in place.
10693: ac_srcdir=.
10694: ac_top_srcdir=$ac_top_builddir_sub
10695: ac_abs_top_srcdir=$ac_pwd ;;
10696: [\\/]* | ?:[\\/]* ) # Absolute name.
10697: ac_srcdir=$srcdir$ac_dir_suffix;
10698: ac_top_srcdir=$srcdir
10699: ac_abs_top_srcdir=$srcdir ;;
10700: *) # Relative name.
10701: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10702: ac_top_srcdir=$ac_top_build_prefix$srcdir
10703: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10704: esac
10705: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10706:
10707:
10708: cd "$ac_dir"
10709:
10710: # Check for guested configure; otherwise get Cygnus style configure.
10711: if test -f "$ac_srcdir/configure.gnu"; then
10712: ac_sub_configure=$ac_srcdir/configure.gnu
10713: elif test -f "$ac_srcdir/configure"; then
10714: ac_sub_configure=$ac_srcdir/configure
10715: elif test -f "$ac_srcdir/configure.in"; then
10716: # This should be Cygnus configure.
10717: ac_sub_configure=$ac_aux_dir/configure
10718: else
10719: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10720: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10721: ac_sub_configure=
10722: fi
10723:
10724: # The recursion is here.
10725: if test -n "$ac_sub_configure"; then
10726: # Make the cache file name correct relative to the subdirectory.
10727: case $cache_file in
10728: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10729: *) # Relative name.
10730: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10731: esac
10732:
10733: { $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
10734: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10735: # The eval makes quoting arguments work.
10736: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10737: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10738: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10739: fi
10740:
10741: cd "$ac_popdir"
10742: done
10743: fi
10744: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10745: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10746: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10747: fi
10748:
CVSweb interface <joel.bertrand@systella.fr>