Annotation of rpl/configure, revision 1.4
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.2 bertrand 3: # Generated by GNU Autoconf 2.65 for rpl 4.0.10.
1.1 bertrand 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'
1.2 bertrand 552: PACKAGE_VERSION='4.0.10'
553: PACKAGE_STRING='rpl 4.0.10'
1.1 bertrand 554: PACKAGE_BUGREPORT=''
555: PACKAGE_URL=''
556:
557: ac_default_prefix=/usr/local
558: # Factoring default headers for most tests.
559: ac_includes_default="\
560: #include <stdio.h>
561: #ifdef HAVE_SYS_TYPES_H
562: # include <sys/types.h>
563: #endif
564: #ifdef HAVE_SYS_STAT_H
565: # include <sys/stat.h>
566: #endif
567: #ifdef STDC_HEADERS
568: # include <stdlib.h>
569: # include <stddef.h>
570: #else
571: # ifdef HAVE_STDLIB_H
572: # include <stdlib.h>
573: # endif
574: #endif
575: #ifdef HAVE_STRING_H
576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577: # include <memory.h>
578: # endif
579: # include <string.h>
580: #endif
581: #ifdef HAVE_STRINGS_H
582: # include <strings.h>
583: #endif
584: #ifdef HAVE_INTTYPES_H
585: # include <inttypes.h>
586: #endif
587: #ifdef HAVE_STDINT_H
588: # include <stdint.h>
589: #endif
590: #ifdef HAVE_UNISTD_H
591: # include <unistd.h>
592: #endif"
593:
594: enable_option_checking=no
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
599: DATE_FR
600: FINAL_ENCODING
601: ICONV
602: FILE
603: GNUPLOT
604: GPP
605: GSL
606: UNITS
607: READLINE
608: NCURSES
609: LIBMTMALLOC
610: GNUPLOT_COMPILATION
611: subdirs
612: EGREP
613: GREP
614: libPgSQLlib
615: libPgSQLinc
616: POSTGRESQL_SUPPORT
617: libMySQLlib
618: libMySQLinc
619: MYSQL_SUPPORT
620: DATE
621: includeX
622: libX
623: MOTIF_SUPPORT
624: DEBUG
625: EXPERIMENTAL_CODE
626: VIM_SUPPORT
627: POSTSCRIPT_SUPPORT
628: FORCE_GNUPLOT_PATH
629: GNUPLOT_SUPPORT
630: VIM
631: GNUPLOT_P
632: GV
633: GS
634: DVIPS
635: LATEX
636: TEX
637: SED
638: RANLIB
639: LN_S
640: RUNPATH
641: LIBTOOLIZE
642: PROFILAGE
643: DEBUG_CODE
644: X_EXTRA_LIBS
645: X_LIBS
646: X_PRE_LIBS
647: X_CFLAGS
648: CPP
649: XMKMF
650: ac_ct_FC
651: FCFLAGS
652: FC
653: ac_ct_F77
654: FFLAGS
655: F77
656: am__fastdepCXX_FALSE
657: am__fastdepCXX_TRUE
658: CXXDEPMODE
659: ac_ct_CXX
660: CXXFLAGS
661: CXX
662: am__fastdepCC_FALSE
663: am__fastdepCC_TRUE
664: CCDEPMODE
665: AMDEPBACKSLASH
666: AMDEP_FALSE
667: AMDEP_TRUE
668: am__quote
669: am__include
670: DEPDIR
671: OBJEXT
672: EXEEXT
673: ac_ct_CC
674: CPPFLAGS
675: LDFLAGS
676: CFLAGS
677: CC
678: am__untar
679: am__tar
680: AMTAR
681: am__leading_dot
682: SET_MAKE
683: AWK
684: mkdir_p
685: MKDIR_P
686: INSTALL_STRIP_PROGRAM
687: STRIP
688: install_sh
689: MAKEINFO
690: AUTOHEADER
691: AUTOMAKE
692: AUTOCONF
693: ACLOCAL
694: VERSION
695: PACKAGE
696: CYGPATH_W
697: am__isrc
698: INSTALL_DATA
699: INSTALL_SCRIPT
700: INSTALL_PROGRAM
701: target_os
702: target_vendor
703: target_cpu
704: target
705: host_os
706: host_vendor
707: host_cpu
708: host
709: build_os
710: build_vendor
711: build_cpu
712: build
713: target_alias
714: host_alias
715: build_alias
716: LIBS
717: ECHO_T
718: ECHO_N
719: ECHO_C
720: DEFS
721: mandir
722: localedir
723: libdir
724: psdir
725: pdfdir
726: dvidir
727: htmldir
728: infodir
729: docdir
730: oldincludedir
731: includedir
732: localstatedir
733: sharedstatedir
734: sysconfdir
735: datadir
736: datarootdir
737: libexecdir
738: sbindir
739: bindir
740: program_transform_name
741: prefix
742: exec_prefix
743: PACKAGE_URL
744: PACKAGE_BUGREPORT
745: PACKAGE_STRING
746: PACKAGE_VERSION
747: PACKAGE_TARNAME
748: PACKAGE_NAME
749: PATH_SEPARATOR
750: SHELL'
751: ac_subst_files=''
752: ac_user_opts='
753: enable_option_checking
754: enable_dependency_tracking
755: with_x
756: enable_optimization
757: enable_final_encoding
758: enable_tex
759: enable_vim
760: enable_embedded_gnuplot
761: enable_gnuplot
762: enable_motif
763: enable_experimental
764: enable_debug
765: enable_profile
766: enable_final_run_path
767: with_mysql
768: with_postgresql
769: '
770: ac_precious_vars='build_alias
771: host_alias
772: target_alias
773: CC
774: CFLAGS
775: LDFLAGS
776: LIBS
777: CPPFLAGS
778: CXX
779: CXXFLAGS
780: CCC
781: F77
782: FFLAGS
783: FC
784: FCFLAGS
785: XMKMF
786: CPP'
787: ac_subdirs_all='tools/$NCURSES
788: tools/$READLINE
789: tools/$UNITS
790: tools/$GSL
791: tools/$GPP
792: tools/$FILE
793: tools/$ICONV
794: tools/$GNUPLOT'
795:
796: # Initialize some variables set by options.
797: ac_init_help=
798: ac_init_version=false
799: ac_unrecognized_opts=
800: ac_unrecognized_sep=
801: # The variables have the same names as the options, with
802: # dashes changed to underlines.
803: cache_file=/dev/null
804: exec_prefix=NONE
805: no_create=
806: no_recursion=
807: prefix=NONE
808: program_prefix=NONE
809: program_suffix=NONE
810: program_transform_name=s,x,x,
811: silent=
812: site=
813: srcdir=
814: verbose=
815: x_includes=NONE
816: x_libraries=NONE
817:
818: # Installation directory options.
819: # These are left unexpanded so users can "make install exec_prefix=/foo"
820: # and all the variables that are supposed to be based on exec_prefix
821: # by default will actually change.
822: # Use braces instead of parens because sh, perl, etc. also accept them.
823: # (The list follows the same order as the GNU Coding Standards.)
824: bindir='${exec_prefix}/bin'
825: sbindir='${exec_prefix}/sbin'
826: libexecdir='${exec_prefix}/libexec'
827: datarootdir='${prefix}/share'
828: datadir='${datarootdir}'
829: sysconfdir='${prefix}/etc'
830: sharedstatedir='${prefix}/com'
831: localstatedir='${prefix}/var'
832: includedir='${prefix}/include'
833: oldincludedir='/usr/include'
834: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835: infodir='${datarootdir}/info'
836: htmldir='${docdir}'
837: dvidir='${docdir}'
838: pdfdir='${docdir}'
839: psdir='${docdir}'
840: libdir='${exec_prefix}/lib'
841: localedir='${datarootdir}/locale'
842: mandir='${datarootdir}/man'
843:
844: ac_prev=
845: ac_dashdash=
846: for ac_option
847: do
848: # If the previous option needs an argument, assign it.
849: if test -n "$ac_prev"; then
850: eval $ac_prev=\$ac_option
851: ac_prev=
852: continue
853: fi
854:
855: case $ac_option in
856: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857: *) ac_optarg=yes ;;
858: esac
859:
860: # Accept the important Cygnus configure options, so we can diagnose typos.
861:
862: case $ac_dashdash$ac_option in
863: --)
864: ac_dashdash=yes ;;
865:
866: -bindir | --bindir | --bindi | --bind | --bin | --bi)
867: ac_prev=bindir ;;
868: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869: bindir=$ac_optarg ;;
870:
871: -build | --build | --buil | --bui | --bu)
872: ac_prev=build_alias ;;
873: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874: build_alias=$ac_optarg ;;
875:
876: -cache-file | --cache-file | --cache-fil | --cache-fi \
877: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878: ac_prev=cache_file ;;
879: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881: cache_file=$ac_optarg ;;
882:
883: --config-cache | -C)
884: cache_file=config.cache ;;
885:
886: -datadir | --datadir | --datadi | --datad)
887: ac_prev=datadir ;;
888: -datadir=* | --datadir=* | --datadi=* | --datad=*)
889: datadir=$ac_optarg ;;
890:
891: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892: | --dataroo | --dataro | --datar)
893: ac_prev=datarootdir ;;
894: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896: datarootdir=$ac_optarg ;;
897:
898: -disable-* | --disable-*)
899: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900: # Reject names that are not valid shell variable names.
901: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902: as_fn_error "invalid feature name: $ac_useropt"
903: ac_useropt_orig=$ac_useropt
904: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905: case $ac_user_opts in
906: *"
907: "enable_$ac_useropt"
908: "*) ;;
909: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910: ac_unrecognized_sep=', ';;
911: esac
912: eval enable_$ac_useropt=no ;;
913:
914: -docdir | --docdir | --docdi | --doc | --do)
915: ac_prev=docdir ;;
916: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917: docdir=$ac_optarg ;;
918:
919: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920: ac_prev=dvidir ;;
921: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922: dvidir=$ac_optarg ;;
923:
924: -enable-* | --enable-*)
925: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926: # Reject names that are not valid shell variable names.
927: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928: as_fn_error "invalid feature name: $ac_useropt"
929: ac_useropt_orig=$ac_useropt
930: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931: case $ac_user_opts in
932: *"
933: "enable_$ac_useropt"
934: "*) ;;
935: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936: ac_unrecognized_sep=', ';;
937: esac
938: eval enable_$ac_useropt=\$ac_optarg ;;
939:
940: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942: | --exec | --exe | --ex)
943: ac_prev=exec_prefix ;;
944: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946: | --exec=* | --exe=* | --ex=*)
947: exec_prefix=$ac_optarg ;;
948:
949: -gas | --gas | --ga | --g)
950: # Obsolete; use --with-gas.
951: with_gas=yes ;;
952:
953: -help | --help | --hel | --he | -h)
954: ac_init_help=long ;;
955: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956: ac_init_help=recursive ;;
957: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958: ac_init_help=short ;;
959:
960: -host | --host | --hos | --ho)
961: ac_prev=host_alias ;;
962: -host=* | --host=* | --hos=* | --ho=*)
963: host_alias=$ac_optarg ;;
964:
965: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966: ac_prev=htmldir ;;
967: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968: | --ht=*)
969: htmldir=$ac_optarg ;;
970:
971: -includedir | --includedir | --includedi | --included | --include \
972: | --includ | --inclu | --incl | --inc)
973: ac_prev=includedir ;;
974: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975: | --includ=* | --inclu=* | --incl=* | --inc=*)
976: includedir=$ac_optarg ;;
977:
978: -infodir | --infodir | --infodi | --infod | --info | --inf)
979: ac_prev=infodir ;;
980: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981: infodir=$ac_optarg ;;
982:
983: -libdir | --libdir | --libdi | --libd)
984: ac_prev=libdir ;;
985: -libdir=* | --libdir=* | --libdi=* | --libd=*)
986: libdir=$ac_optarg ;;
987:
988: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989: | --libexe | --libex | --libe)
990: ac_prev=libexecdir ;;
991: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992: | --libexe=* | --libex=* | --libe=*)
993: libexecdir=$ac_optarg ;;
994:
995: -localedir | --localedir | --localedi | --localed | --locale)
996: ac_prev=localedir ;;
997: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998: localedir=$ac_optarg ;;
999:
1000: -localstatedir | --localstatedir | --localstatedi | --localstated \
1001: | --localstate | --localstat | --localsta | --localst | --locals)
1002: ac_prev=localstatedir ;;
1003: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005: localstatedir=$ac_optarg ;;
1006:
1007: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008: ac_prev=mandir ;;
1009: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010: mandir=$ac_optarg ;;
1011:
1012: -nfp | --nfp | --nf)
1013: # Obsolete; use --without-fp.
1014: with_fp=no ;;
1015:
1016: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017: | --no-cr | --no-c | -n)
1018: no_create=yes ;;
1019:
1020: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022: no_recursion=yes ;;
1023:
1024: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026: | --oldin | --oldi | --old | --ol | --o)
1027: ac_prev=oldincludedir ;;
1028: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031: oldincludedir=$ac_optarg ;;
1032:
1033: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034: ac_prev=prefix ;;
1035: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036: prefix=$ac_optarg ;;
1037:
1038: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039: | --program-pre | --program-pr | --program-p)
1040: ac_prev=program_prefix ;;
1041: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043: program_prefix=$ac_optarg ;;
1044:
1045: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046: | --program-suf | --program-su | --program-s)
1047: ac_prev=program_suffix ;;
1048: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050: program_suffix=$ac_optarg ;;
1051:
1052: -program-transform-name | --program-transform-name \
1053: | --program-transform-nam | --program-transform-na \
1054: | --program-transform-n | --program-transform- \
1055: | --program-transform | --program-transfor \
1056: | --program-transfo | --program-transf \
1057: | --program-trans | --program-tran \
1058: | --progr-tra | --program-tr | --program-t)
1059: ac_prev=program_transform_name ;;
1060: -program-transform-name=* | --program-transform-name=* \
1061: | --program-transform-nam=* | --program-transform-na=* \
1062: | --program-transform-n=* | --program-transform-=* \
1063: | --program-transform=* | --program-transfor=* \
1064: | --program-transfo=* | --program-transf=* \
1065: | --program-trans=* | --program-tran=* \
1066: | --progr-tra=* | --program-tr=* | --program-t=*)
1067: program_transform_name=$ac_optarg ;;
1068:
1069: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070: ac_prev=pdfdir ;;
1071: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072: pdfdir=$ac_optarg ;;
1073:
1074: -psdir | --psdir | --psdi | --psd | --ps)
1075: ac_prev=psdir ;;
1076: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077: psdir=$ac_optarg ;;
1078:
1079: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080: | -silent | --silent | --silen | --sile | --sil)
1081: silent=yes ;;
1082:
1083: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084: ac_prev=sbindir ;;
1085: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086: | --sbi=* | --sb=*)
1087: sbindir=$ac_optarg ;;
1088:
1089: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091: | --sharedst | --shareds | --shared | --share | --shar \
1092: | --sha | --sh)
1093: ac_prev=sharedstatedir ;;
1094: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097: | --sha=* | --sh=*)
1098: sharedstatedir=$ac_optarg ;;
1099:
1100: -site | --site | --sit)
1101: ac_prev=site ;;
1102: -site=* | --site=* | --sit=*)
1103: site=$ac_optarg ;;
1104:
1105: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106: ac_prev=srcdir ;;
1107: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108: srcdir=$ac_optarg ;;
1109:
1110: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111: | --syscon | --sysco | --sysc | --sys | --sy)
1112: ac_prev=sysconfdir ;;
1113: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115: sysconfdir=$ac_optarg ;;
1116:
1117: -target | --target | --targe | --targ | --tar | --ta | --t)
1118: ac_prev=target_alias ;;
1119: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120: target_alias=$ac_optarg ;;
1121:
1122: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123: verbose=yes ;;
1124:
1125: -version | --version | --versio | --versi | --vers | -V)
1126: ac_init_version=: ;;
1127:
1128: -with-* | --with-*)
1129: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130: # Reject names that are not valid shell variable names.
1131: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132: as_fn_error "invalid package name: $ac_useropt"
1133: ac_useropt_orig=$ac_useropt
1134: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135: case $ac_user_opts in
1136: *"
1137: "with_$ac_useropt"
1138: "*) ;;
1139: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140: ac_unrecognized_sep=', ';;
1141: esac
1142: eval with_$ac_useropt=\$ac_optarg ;;
1143:
1144: -without-* | --without-*)
1145: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146: # Reject names that are not valid shell variable names.
1147: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148: as_fn_error "invalid package name: $ac_useropt"
1149: ac_useropt_orig=$ac_useropt
1150: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151: case $ac_user_opts in
1152: *"
1153: "with_$ac_useropt"
1154: "*) ;;
1155: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156: ac_unrecognized_sep=', ';;
1157: esac
1158: eval with_$ac_useropt=no ;;
1159:
1160: --x)
1161: # Obsolete; use --with-x.
1162: with_x=yes ;;
1163:
1164: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165: | --x-incl | --x-inc | --x-in | --x-i)
1166: ac_prev=x_includes ;;
1167: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169: x_includes=$ac_optarg ;;
1170:
1171: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173: ac_prev=x_libraries ;;
1174: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176: x_libraries=$ac_optarg ;;
1177:
1178: -*) as_fn_error "unrecognized option: \`$ac_option'
1179: Try \`$0 --help' for more information."
1180: ;;
1181:
1182: *=*)
1183: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184: # Reject names that are not valid shell variable names.
1185: case $ac_envvar in #(
1186: '' | [0-9]* | *[!_$as_cr_alnum]* )
1187: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1188: esac
1189: eval $ac_envvar=\$ac_optarg
1190: export $ac_envvar ;;
1191:
1192: *)
1193: # FIXME: should be removed in autoconf 3.0.
1194: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198: ;;
1199:
1200: esac
1201: done
1202:
1203: if test -n "$ac_prev"; then
1204: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205: as_fn_error "missing argument to $ac_option"
1206: fi
1207:
1208: if test -n "$ac_unrecognized_opts"; then
1209: case $enable_option_checking in
1210: no) ;;
1211: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1212: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213: esac
1214: fi
1215:
1216: # Check all directory arguments for consistency.
1217: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218: datadir sysconfdir sharedstatedir localstatedir includedir \
1219: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220: libdir localedir mandir
1221: do
1222: eval ac_val=\$$ac_var
1223: # Remove trailing slashes.
1224: case $ac_val in
1225: */ )
1226: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227: eval $ac_var=\$ac_val;;
1228: esac
1229: # Be sure to have absolute directory names.
1230: case $ac_val in
1231: [\\/$]* | ?:[\\/]* ) continue;;
1232: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233: esac
1234: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1235: done
1236:
1237: # There might be people who depend on the old broken behavior: `$host'
1238: # used to hold the argument of --host etc.
1239: # FIXME: To remove some day.
1240: build=$build_alias
1241: host=$host_alias
1242: target=$target_alias
1243:
1244: # FIXME: To remove some day.
1245: if test "x$host_alias" != x; then
1246: if test "x$build_alias" = x; then
1247: cross_compiling=maybe
1248: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1249: If a cross compiler is detected then cross compile mode will be used." >&2
1250: elif test "x$build_alias" != "x$host_alias"; then
1251: cross_compiling=yes
1252: fi
1253: fi
1254:
1255: ac_tool_prefix=
1256: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257:
1258: test "$silent" = yes && exec 6>/dev/null
1259:
1260:
1261: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262: ac_ls_di=`ls -di .` &&
1263: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264: as_fn_error "working directory cannot be determined"
1265: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266: as_fn_error "pwd does not report name of working directory"
1267:
1268:
1269: # Find the source files, if location was not specified.
1270: if test -z "$srcdir"; then
1271: ac_srcdir_defaulted=yes
1272: # Try the directory containing this script, then the parent directory.
1273: ac_confdir=`$as_dirname -- "$as_myself" ||
1274: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275: X"$as_myself" : 'X\(//\)[^/]' \| \
1276: X"$as_myself" : 'X\(//\)$' \| \
1277: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278: $as_echo X"$as_myself" |
1279: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280: s//\1/
1281: q
1282: }
1283: /^X\(\/\/\)[^/].*/{
1284: s//\1/
1285: q
1286: }
1287: /^X\(\/\/\)$/{
1288: s//\1/
1289: q
1290: }
1291: /^X\(\/\).*/{
1292: s//\1/
1293: q
1294: }
1295: s/.*/./; q'`
1296: srcdir=$ac_confdir
1297: if test ! -r "$srcdir/$ac_unique_file"; then
1298: srcdir=..
1299: fi
1300: else
1301: ac_srcdir_defaulted=no
1302: fi
1303: if test ! -r "$srcdir/$ac_unique_file"; then
1304: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1306: fi
1307: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308: ac_abs_confdir=`(
1309: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1310: pwd)`
1311: # When building in place, set srcdir=.
1312: if test "$ac_abs_confdir" = "$ac_pwd"; then
1313: srcdir=.
1314: fi
1315: # Remove unnecessary trailing slashes from srcdir.
1316: # Double slashes in file names in object file debugging info
1317: # mess up M-x gdb in Emacs.
1318: case $srcdir in
1319: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320: esac
1321: for ac_var in $ac_precious_vars; do
1322: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323: eval ac_env_${ac_var}_value=\$${ac_var}
1324: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326: done
1327:
1328: #
1329: # Report the --help message.
1330: #
1331: if test "$ac_init_help" = "long"; then
1332: # Omit some internal or obsolete options to make the list less imposing.
1333: # This message is too long to be a string in the A/UX 3.1 sh.
1334: cat <<_ACEOF
1.2 bertrand 1335: \`configure' configures rpl 4.0.10 to adapt to many kinds of systems.
1.1 bertrand 1336:
1337: Usage: $0 [OPTION]... [VAR=VALUE]...
1338:
1339: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340: VAR=VALUE. See below for descriptions of some of the useful variables.
1341:
1342: Defaults for the options are specified in brackets.
1343:
1344: Configuration:
1345: -h, --help display this help and exit
1346: --help=short display options specific to this package
1347: --help=recursive display the short help of all the included packages
1348: -V, --version display version information and exit
1349: -q, --quiet, --silent do not print \`checking...' messages
1350: --cache-file=FILE cache test results in FILE [disabled]
1351: -C, --config-cache alias for \`--cache-file=config.cache'
1352: -n, --no-create do not create output files
1353: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354:
1355: Installation directories:
1356: --prefix=PREFIX install architecture-independent files in PREFIX
1357: [$ac_default_prefix]
1358: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359: [PREFIX]
1360:
1361: By default, \`make install' will install all the files in
1362: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364: for instance \`--prefix=\$HOME'.
1365:
1366: For better control, use the options below.
1367:
1368: Fine tuning of the installation directories:
1369: --bindir=DIR user executables [EPREFIX/bin]
1370: --sbindir=DIR system admin executables [EPREFIX/sbin]
1371: --libexecdir=DIR program executables [EPREFIX/libexec]
1372: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375: --libdir=DIR object code libraries [EPREFIX/lib]
1376: --includedir=DIR C header files [PREFIX/include]
1377: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380: --infodir=DIR info documentation [DATAROOTDIR/info]
1381: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382: --mandir=DIR man documentation [DATAROOTDIR/man]
1383: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1384: --htmldir=DIR html documentation [DOCDIR]
1385: --dvidir=DIR dvi documentation [DOCDIR]
1386: --pdfdir=DIR pdf documentation [DOCDIR]
1387: --psdir=DIR ps documentation [DOCDIR]
1388: _ACEOF
1389:
1390: cat <<\_ACEOF
1391:
1392: Program names:
1393: --program-prefix=PREFIX prepend PREFIX to installed program names
1394: --program-suffix=SUFFIX append SUFFIX to installed program names
1395: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396:
1397: X features:
1398: --x-includes=DIR X include files are in DIR
1399: --x-libraries=DIR X library files are in DIR
1400:
1401: System types:
1402: --build=BUILD configure for building on BUILD [guessed]
1403: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404: --target=TARGET configure for building compilers for TARGET [HOST]
1405: _ACEOF
1406: fi
1407:
1408: if test -n "$ac_init_help"; then
1409: case $ac_init_help in
1.2 bertrand 1410: short | recursive ) echo "Configuration of rpl 4.0.10:";;
1.1 bertrand 1411: esac
1412: cat <<\_ACEOF
1413:
1414: Optional Features:
1415: --disable-option-checking ignore unrecognized --enable/--with options
1416: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418: --disable-dependency-tracking speeds up one-time build
1419: --enable-dependency-tracking do not reject slow dependency extractors
1420: --enable-optimization set compiler flags [default=environment variables -O3]
1421: --enable-final-encoding force final encoding [default=guessed]
1422: --enable-tex provide the TeX support [default=guessed]
1423: --enable-vim provide the vim support [default=guessed]
1424: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1425: --enable-gnuplot provide the GnuPlot support [default=guessed]
1426: --enable-motif provide the Motif support [default=guessed]
1427: --enable-experimental enable experimental code [default=no]
1428: --enable-debug enable debug code [default=no]
1429: --enable-profile enable profile code [default=no]
1430: --enable-final-run-path=PATH enable another final run path than PREFIX
1431:
1432: Optional Packages:
1433: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435: --with-x use the X Window System
1436: --with-mysql=PATH specify directory for installed mysql
1437: --with-postgresql=PATH specify directory for installed postgresql
1438:
1439: Some influential environment variables:
1440: CC C compiler command
1441: CFLAGS C compiler flags
1442: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443: nonstandard directory <lib dir>
1444: LIBS libraries to pass to the linker, e.g. -l<library>
1445: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446: you have headers in a nonstandard directory <include dir>
1447: CXX C++ compiler command
1448: CXXFLAGS C++ compiler flags
1449: F77 Fortran 77 compiler command
1450: FFLAGS Fortran 77 compiler flags
1451: FC Fortran compiler command
1452: FCFLAGS Fortran compiler flags
1453: XMKMF Path to xmkmf, Makefile generator for X Window System
1454: CPP C preprocessor
1455:
1456: Use these variables to override the choices made by `configure' or to help
1457: it to find libraries and programs with nonstandard names/locations.
1458:
1459: Report bugs to the package provider.
1460: _ACEOF
1461: ac_status=$?
1462: fi
1463:
1464: if test "$ac_init_help" = "recursive"; then
1465: # If there are subdirs, report their specific --help.
1466: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467: test -d "$ac_dir" ||
1468: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469: continue
1470: ac_builddir=.
1471:
1472: case "$ac_dir" in
1473: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474: *)
1475: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476: # A ".." for each directory in $ac_dir_suffix.
1477: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478: case $ac_top_builddir_sub in
1479: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481: esac ;;
1482: esac
1483: ac_abs_top_builddir=$ac_pwd
1484: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485: # for backward compatibility:
1486: ac_top_builddir=$ac_top_build_prefix
1487:
1488: case $srcdir in
1489: .) # We are building in place.
1490: ac_srcdir=.
1491: ac_top_srcdir=$ac_top_builddir_sub
1492: ac_abs_top_srcdir=$ac_pwd ;;
1493: [\\/]* | ?:[\\/]* ) # Absolute name.
1494: ac_srcdir=$srcdir$ac_dir_suffix;
1495: ac_top_srcdir=$srcdir
1496: ac_abs_top_srcdir=$srcdir ;;
1497: *) # Relative name.
1498: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499: ac_top_srcdir=$ac_top_build_prefix$srcdir
1500: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501: esac
1502: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503:
1504: cd "$ac_dir" || { ac_status=$?; continue; }
1505: # Check for guested configure.
1506: if test -f "$ac_srcdir/configure.gnu"; then
1507: echo &&
1508: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509: elif test -f "$ac_srcdir/configure"; then
1510: echo &&
1511: $SHELL "$ac_srcdir/configure" --help=recursive
1512: else
1513: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514: fi || ac_status=$?
1515: cd "$ac_pwd" || { ac_status=$?; break; }
1516: done
1517: fi
1518:
1519: test -n "$ac_init_help" && exit $ac_status
1520: if $ac_init_version; then
1521: cat <<\_ACEOF
1.2 bertrand 1522: rpl configure 4.0.10
1.1 bertrand 1523: generated by GNU Autoconf 2.65
1524:
1525: Copyright (C) 2009 Free Software Foundation, Inc.
1526: This configure script is free software; the Free Software Foundation
1527: gives unlimited permission to copy, distribute and modify it.
1528: _ACEOF
1529: exit
1530: fi
1531:
1532: ## ------------------------ ##
1533: ## Autoconf initialization. ##
1534: ## ------------------------ ##
1535:
1536: # ac_fn_c_try_compile LINENO
1537: # --------------------------
1538: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539: ac_fn_c_try_compile ()
1540: {
1541: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542: rm -f conftest.$ac_objext
1543: if { { ac_try="$ac_compile"
1544: case "(($ac_try" in
1545: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546: *) ac_try_echo=$ac_try;;
1547: esac
1548: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549: $as_echo "$ac_try_echo"; } >&5
1550: (eval "$ac_compile") 2>conftest.err
1551: ac_status=$?
1552: if test -s conftest.err; then
1553: grep -v '^ *+' conftest.err >conftest.er1
1554: cat conftest.er1 >&5
1555: mv -f conftest.er1 conftest.err
1556: fi
1557: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558: test $ac_status = 0; } && {
1559: test -z "$ac_c_werror_flag" ||
1560: test ! -s conftest.err
1561: } && test -s conftest.$ac_objext; then :
1562: ac_retval=0
1563: else
1564: $as_echo "$as_me: failed program was:" >&5
1565: sed 's/^/| /' conftest.$ac_ext >&5
1566:
1567: ac_retval=1
1568: fi
1569: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570: as_fn_set_status $ac_retval
1571:
1572: } # ac_fn_c_try_compile
1573:
1574: # ac_fn_cxx_try_compile LINENO
1575: # ----------------------------
1576: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577: ac_fn_cxx_try_compile ()
1578: {
1579: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580: rm -f conftest.$ac_objext
1581: if { { ac_try="$ac_compile"
1582: case "(($ac_try" in
1583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584: *) ac_try_echo=$ac_try;;
1585: esac
1586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587: $as_echo "$ac_try_echo"; } >&5
1588: (eval "$ac_compile") 2>conftest.err
1589: ac_status=$?
1590: if test -s conftest.err; then
1591: grep -v '^ *+' conftest.err >conftest.er1
1592: cat conftest.er1 >&5
1593: mv -f conftest.er1 conftest.err
1594: fi
1595: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596: test $ac_status = 0; } && {
1597: test -z "$ac_cxx_werror_flag" ||
1598: test ! -s conftest.err
1599: } && test -s conftest.$ac_objext; then :
1600: ac_retval=0
1601: else
1602: $as_echo "$as_me: failed program was:" >&5
1603: sed 's/^/| /' conftest.$ac_ext >&5
1604:
1605: ac_retval=1
1606: fi
1607: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608: as_fn_set_status $ac_retval
1609:
1610: } # ac_fn_cxx_try_compile
1611:
1612: # ac_fn_f77_try_compile LINENO
1613: # ----------------------------
1614: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615: ac_fn_f77_try_compile ()
1616: {
1617: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618: rm -f conftest.$ac_objext
1619: if { { ac_try="$ac_compile"
1620: case "(($ac_try" in
1621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622: *) ac_try_echo=$ac_try;;
1623: esac
1624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625: $as_echo "$ac_try_echo"; } >&5
1626: (eval "$ac_compile") 2>conftest.err
1627: ac_status=$?
1628: if test -s conftest.err; then
1629: grep -v '^ *+' conftest.err >conftest.er1
1630: cat conftest.er1 >&5
1631: mv -f conftest.er1 conftest.err
1632: fi
1633: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634: test $ac_status = 0; } && {
1635: test -z "$ac_f77_werror_flag" ||
1636: test ! -s conftest.err
1637: } && test -s conftest.$ac_objext; then :
1638: ac_retval=0
1639: else
1640: $as_echo "$as_me: failed program was:" >&5
1641: sed 's/^/| /' conftest.$ac_ext >&5
1642:
1643: ac_retval=1
1644: fi
1645: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646: as_fn_set_status $ac_retval
1647:
1648: } # ac_fn_f77_try_compile
1649:
1650: # ac_fn_fc_try_compile LINENO
1651: # ---------------------------
1652: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653: ac_fn_fc_try_compile ()
1654: {
1655: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656: rm -f conftest.$ac_objext
1657: if { { ac_try="$ac_compile"
1658: case "(($ac_try" in
1659: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660: *) ac_try_echo=$ac_try;;
1661: esac
1662: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663: $as_echo "$ac_try_echo"; } >&5
1664: (eval "$ac_compile") 2>conftest.err
1665: ac_status=$?
1666: if test -s conftest.err; then
1667: grep -v '^ *+' conftest.err >conftest.er1
1668: cat conftest.er1 >&5
1669: mv -f conftest.er1 conftest.err
1670: fi
1671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672: test $ac_status = 0; } && {
1673: test -z "$ac_fc_werror_flag" ||
1674: test ! -s conftest.err
1675: } && test -s conftest.$ac_objext; then :
1676: ac_retval=0
1677: else
1678: $as_echo "$as_me: failed program was:" >&5
1679: sed 's/^/| /' conftest.$ac_ext >&5
1680:
1681: ac_retval=1
1682: fi
1683: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684: as_fn_set_status $ac_retval
1685:
1686: } # ac_fn_fc_try_compile
1687:
1688: # ac_fn_c_try_cpp LINENO
1689: # ----------------------
1690: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691: ac_fn_c_try_cpp ()
1692: {
1693: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694: if { { ac_try="$ac_cpp conftest.$ac_ext"
1695: case "(($ac_try" in
1696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697: *) ac_try_echo=$ac_try;;
1698: esac
1699: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700: $as_echo "$ac_try_echo"; } >&5
1701: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702: ac_status=$?
1703: if test -s conftest.err; then
1704: grep -v '^ *+' conftest.err >conftest.er1
1705: cat conftest.er1 >&5
1706: mv -f conftest.er1 conftest.err
1707: fi
1708: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709: test $ac_status = 0; } >/dev/null && {
1710: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711: test ! -s conftest.err
1712: }; then :
1713: ac_retval=0
1714: else
1715: $as_echo "$as_me: failed program was:" >&5
1716: sed 's/^/| /' conftest.$ac_ext >&5
1717:
1718: ac_retval=1
1719: fi
1720: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721: as_fn_set_status $ac_retval
1722:
1723: } # ac_fn_c_try_cpp
1724:
1725: # ac_fn_c_try_link LINENO
1726: # -----------------------
1727: # Try to link conftest.$ac_ext, and return whether this succeeded.
1728: ac_fn_c_try_link ()
1729: {
1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731: rm -f conftest.$ac_objext conftest$ac_exeext
1732: if { { ac_try="$ac_link"
1733: case "(($ac_try" in
1734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735: *) ac_try_echo=$ac_try;;
1736: esac
1737: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738: $as_echo "$ac_try_echo"; } >&5
1739: (eval "$ac_link") 2>conftest.err
1740: ac_status=$?
1741: if test -s conftest.err; then
1742: grep -v '^ *+' conftest.err >conftest.er1
1743: cat conftest.er1 >&5
1744: mv -f conftest.er1 conftest.err
1745: fi
1746: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747: test $ac_status = 0; } && {
1748: test -z "$ac_c_werror_flag" ||
1749: test ! -s conftest.err
1750: } && test -s conftest$ac_exeext && {
1751: test "$cross_compiling" = yes ||
1752: $as_test_x conftest$ac_exeext
1753: }; then :
1754: ac_retval=0
1755: else
1756: $as_echo "$as_me: failed program was:" >&5
1757: sed 's/^/| /' conftest.$ac_ext >&5
1758:
1759: ac_retval=1
1760: fi
1761: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763: # interfere with the next link command; also delete a directory that is
1764: # left behind by Apple's compiler. We do this before executing the actions.
1765: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767: as_fn_set_status $ac_retval
1768:
1769: } # ac_fn_c_try_link
1770:
1771: # ac_fn_c_check_func LINENO FUNC VAR
1772: # ----------------------------------
1773: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774: ac_fn_c_check_func ()
1775: {
1776: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778: $as_echo_n "checking for $2... " >&6; }
1779: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780: $as_echo_n "(cached) " >&6
1781: else
1782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783: /* end confdefs.h. */
1784: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786: #define $2 innocuous_$2
1787:
1788: /* System header to define __stub macros and hopefully few prototypes,
1789: which can conflict with char $2 (); below.
1790: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791: <limits.h> exists even on freestanding compilers. */
1792:
1793: #ifdef __STDC__
1794: # include <limits.h>
1795: #else
1796: # include <assert.h>
1797: #endif
1798:
1799: #undef $2
1800:
1801: /* Override any GCC internal prototype to avoid an error.
1802: Use char because int might match the return type of a GCC
1803: builtin and then its argument prototype would still apply. */
1804: #ifdef __cplusplus
1805: extern "C"
1806: #endif
1807: char $2 ();
1808: /* The GNU C library defines this for functions which it implements
1809: to always fail with ENOSYS. Some functions are actually named
1810: something starting with __ and the normal name is an alias. */
1811: #if defined __stub_$2 || defined __stub___$2
1812: choke me
1813: #endif
1814:
1815: int
1816: main ()
1817: {
1818: return $2 ();
1819: ;
1820: return 0;
1821: }
1822: _ACEOF
1823: if ac_fn_c_try_link "$LINENO"; then :
1824: eval "$3=yes"
1825: else
1826: eval "$3=no"
1827: fi
1828: rm -f core conftest.err conftest.$ac_objext \
1829: conftest$ac_exeext conftest.$ac_ext
1830: fi
1831: eval ac_res=\$$3
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833: $as_echo "$ac_res" >&6; }
1834: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835:
1836: } # ac_fn_c_check_func
1837:
1838: # ac_fn_c_try_run LINENO
1839: # ----------------------
1840: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841: # that executables *can* be run.
1842: ac_fn_c_try_run ()
1843: {
1844: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845: if { { ac_try="$ac_link"
1846: case "(($ac_try" in
1847: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848: *) ac_try_echo=$ac_try;;
1849: esac
1850: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851: $as_echo "$ac_try_echo"; } >&5
1852: (eval "$ac_link") 2>&5
1853: ac_status=$?
1854: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856: { { case "(($ac_try" in
1857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858: *) ac_try_echo=$ac_try;;
1859: esac
1860: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861: $as_echo "$ac_try_echo"; } >&5
1862: (eval "$ac_try") 2>&5
1863: ac_status=$?
1864: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865: test $ac_status = 0; }; }; then :
1866: ac_retval=0
1867: else
1868: $as_echo "$as_me: program exited with status $ac_status" >&5
1869: $as_echo "$as_me: failed program was:" >&5
1870: sed 's/^/| /' conftest.$ac_ext >&5
1871:
1872: ac_retval=$ac_status
1873: fi
1874: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876: as_fn_set_status $ac_retval
1877:
1878: } # ac_fn_c_try_run
1879:
1880: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881: # --------------------------------------------
1882: # Tries to find the compile-time value of EXPR in a program that includes
1883: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884: # computed
1885: ac_fn_c_compute_int ()
1886: {
1887: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888: if test "$cross_compiling" = yes; then
1889: # Depending upon the size, compute the lo and hi bounds.
1890: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891: /* end confdefs.h. */
1892: $4
1893: int
1894: main ()
1895: {
1896: static int test_array [1 - 2 * !(($2) >= 0)];
1897: test_array [0] = 0
1898:
1899: ;
1900: return 0;
1901: }
1902: _ACEOF
1903: if ac_fn_c_try_compile "$LINENO"; then :
1904: ac_lo=0 ac_mid=0
1905: while :; do
1906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907: /* end confdefs.h. */
1908: $4
1909: int
1910: main ()
1911: {
1912: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913: test_array [0] = 0
1914:
1915: ;
1916: return 0;
1917: }
1918: _ACEOF
1919: if ac_fn_c_try_compile "$LINENO"; then :
1920: ac_hi=$ac_mid; break
1921: else
1922: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923: if test $ac_lo -le $ac_mid; then
1924: ac_lo= ac_hi=
1925: break
1926: fi
1927: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1928: fi
1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930: done
1931: else
1932: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933: /* end confdefs.h. */
1934: $4
1935: int
1936: main ()
1937: {
1938: static int test_array [1 - 2 * !(($2) < 0)];
1939: test_array [0] = 0
1940:
1941: ;
1942: return 0;
1943: }
1944: _ACEOF
1945: if ac_fn_c_try_compile "$LINENO"; then :
1946: ac_hi=-1 ac_mid=-1
1947: while :; do
1948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949: /* end confdefs.h. */
1950: $4
1951: int
1952: main ()
1953: {
1954: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955: test_array [0] = 0
1956:
1957: ;
1958: return 0;
1959: }
1960: _ACEOF
1961: if ac_fn_c_try_compile "$LINENO"; then :
1962: ac_lo=$ac_mid; break
1963: else
1964: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965: if test $ac_mid -le $ac_hi; then
1966: ac_lo= ac_hi=
1967: break
1968: fi
1969: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1970: fi
1971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972: done
1973: else
1974: ac_lo= ac_hi=
1975: fi
1976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977: fi
1978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979: # Binary search between lo and hi bounds.
1980: while test "x$ac_lo" != "x$ac_hi"; do
1981: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983: /* end confdefs.h. */
1984: $4
1985: int
1986: main ()
1987: {
1988: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989: test_array [0] = 0
1990:
1991: ;
1992: return 0;
1993: }
1994: _ACEOF
1995: if ac_fn_c_try_compile "$LINENO"; then :
1996: ac_hi=$ac_mid
1997: else
1998: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1999: fi
2000: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001: done
2002: case $ac_lo in #((
2003: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004: '') ac_retval=1 ;;
2005: esac
2006: else
2007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008: /* end confdefs.h. */
2009: $4
2010: static long int longval () { return $2; }
2011: static unsigned long int ulongval () { return $2; }
2012: #include <stdio.h>
2013: #include <stdlib.h>
2014: int
2015: main ()
2016: {
2017:
2018: FILE *f = fopen ("conftest.val", "w");
2019: if (! f)
2020: return 1;
2021: if (($2) < 0)
2022: {
2023: long int i = longval ();
2024: if (i != ($2))
2025: return 1;
2026: fprintf (f, "%ld", i);
2027: }
2028: else
2029: {
2030: unsigned long int i = ulongval ();
2031: if (i != ($2))
2032: return 1;
2033: fprintf (f, "%lu", i);
2034: }
2035: /* Do not output a trailing newline, as this causes \r\n confusion
2036: on some platforms. */
2037: return ferror (f) || fclose (f) != 0;
2038:
2039: ;
2040: return 0;
2041: }
2042: _ACEOF
2043: if ac_fn_c_try_run "$LINENO"; then :
2044: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045: else
2046: ac_retval=1
2047: fi
2048: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049: conftest.$ac_objext conftest.beam conftest.$ac_ext
2050: rm -f conftest.val
2051:
2052: fi
2053: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054: as_fn_set_status $ac_retval
2055:
2056: } # ac_fn_c_compute_int
2057:
2058: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2059: # -------------------------------------------------------
2060: # Tests whether HEADER exists and can be compiled using the include files in
2061: # INCLUDES, setting the cache variable VAR accordingly.
2062: ac_fn_c_check_header_compile ()
2063: {
2064: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066: $as_echo_n "checking for $2... " >&6; }
2067: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068: $as_echo_n "(cached) " >&6
2069: else
2070: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071: /* end confdefs.h. */
2072: $4
2073: #include <$2>
2074: _ACEOF
2075: if ac_fn_c_try_compile "$LINENO"; then :
2076: eval "$3=yes"
2077: else
2078: eval "$3=no"
2079: fi
2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081: fi
2082: eval ac_res=\$$3
2083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084: $as_echo "$ac_res" >&6; }
2085: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086:
2087: } # ac_fn_c_check_header_compile
2088:
2089: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2090: # -------------------------------------------------------
2091: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2092: # the include files in INCLUDES and setting the cache variable VAR
2093: # accordingly.
2094: ac_fn_c_check_header_mongrel ()
2095: {
2096: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099: $as_echo_n "checking for $2... " >&6; }
2100: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101: $as_echo_n "(cached) " >&6
2102: fi
2103: eval ac_res=\$$3
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105: $as_echo "$ac_res" >&6; }
2106: else
2107: # Is the header compilable?
2108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2109: $as_echo_n "checking $2 usability... " >&6; }
2110: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111: /* end confdefs.h. */
2112: $4
2113: #include <$2>
2114: _ACEOF
2115: if ac_fn_c_try_compile "$LINENO"; then :
2116: ac_header_compiler=yes
2117: else
2118: ac_header_compiler=no
2119: fi
2120: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2122: $as_echo "$ac_header_compiler" >&6; }
2123:
2124: # Is the header present?
2125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2126: $as_echo_n "checking $2 presence... " >&6; }
2127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128: /* end confdefs.h. */
2129: #include <$2>
2130: _ACEOF
2131: if ac_fn_c_try_cpp "$LINENO"; then :
2132: ac_header_preproc=yes
2133: else
2134: ac_header_preproc=no
2135: fi
2136: rm -f conftest.err conftest.$ac_ext
2137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2138: $as_echo "$ac_header_preproc" >&6; }
2139:
2140: # So? What about this header?
2141: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2142: yes:no: )
2143: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2144: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2145: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147: ;;
2148: no:yes:* )
2149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2150: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2151: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2152: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2153: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2154: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2156: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2157: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159: ;;
2160: esac
2161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162: $as_echo_n "checking for $2... " >&6; }
2163: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164: $as_echo_n "(cached) " >&6
2165: else
2166: eval "$3=\$ac_header_compiler"
2167: fi
2168: eval ac_res=\$$3
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170: $as_echo "$ac_res" >&6; }
2171: fi
2172: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173:
2174: } # ac_fn_c_check_header_mongrel
2175:
2176: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177: # -------------------------------------------
2178: # Tests whether TYPE exists after having included INCLUDES, setting cache
2179: # variable VAR accordingly.
2180: ac_fn_c_check_type ()
2181: {
2182: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184: $as_echo_n "checking for $2... " >&6; }
2185: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186: $as_echo_n "(cached) " >&6
2187: else
2188: eval "$3=no"
2189: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190: /* end confdefs.h. */
2191: $4
2192: int
2193: main ()
2194: {
2195: if (sizeof ($2))
2196: return 0;
2197: ;
2198: return 0;
2199: }
2200: _ACEOF
2201: if ac_fn_c_try_compile "$LINENO"; then :
2202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203: /* end confdefs.h. */
2204: $4
2205: int
2206: main ()
2207: {
2208: if (sizeof (($2)))
2209: return 0;
2210: ;
2211: return 0;
2212: }
2213: _ACEOF
2214: if ac_fn_c_try_compile "$LINENO"; then :
2215:
2216: else
2217: eval "$3=yes"
2218: fi
2219: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220: fi
2221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222: fi
2223: eval ac_res=\$$3
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225: $as_echo "$ac_res" >&6; }
2226: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227:
2228: } # ac_fn_c_check_type
2229: cat >config.log <<_ACEOF
2230: This file contains any messages produced by compilers while
2231: running configure, to aid debugging if configure makes a mistake.
2232:
1.2 bertrand 2233: It was created by rpl $as_me 4.0.10, which was
1.1 bertrand 2234: generated by GNU Autoconf 2.65. Invocation command line was
2235:
2236: $ $0 $@
2237:
2238: _ACEOF
2239: exec 5>>config.log
2240: {
2241: cat <<_ASUNAME
2242: ## --------- ##
2243: ## Platform. ##
2244: ## --------- ##
2245:
2246: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251:
2252: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254:
2255: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2262:
2263: _ASUNAME
2264:
2265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266: for as_dir in $PATH
2267: do
2268: IFS=$as_save_IFS
2269: test -z "$as_dir" && as_dir=.
2270: $as_echo "PATH: $as_dir"
2271: done
2272: IFS=$as_save_IFS
2273:
2274: } >&5
2275:
2276: cat >&5 <<_ACEOF
2277:
2278:
2279: ## ----------- ##
2280: ## Core tests. ##
2281: ## ----------- ##
2282:
2283: _ACEOF
2284:
2285:
2286: # Keep a trace of the command line.
2287: # Strip out --no-create and --no-recursion so they do not pile up.
2288: # Strip out --silent because we don't want to record it for future runs.
2289: # Also quote any args containing shell meta-characters.
2290: # Make two passes to allow for proper duplicate-argument suppression.
2291: ac_configure_args=
2292: ac_configure_args0=
2293: ac_configure_args1=
2294: ac_must_keep_next=false
2295: for ac_pass in 1 2
2296: do
2297: for ac_arg
2298: do
2299: case $ac_arg in
2300: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302: | -silent | --silent | --silen | --sile | --sil)
2303: continue ;;
2304: *\'*)
2305: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306: esac
2307: case $ac_pass in
2308: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309: 2)
2310: as_fn_append ac_configure_args1 " '$ac_arg'"
2311: if test $ac_must_keep_next = true; then
2312: ac_must_keep_next=false # Got value, back to normal.
2313: else
2314: case $ac_arg in
2315: *=* | --config-cache | -C | -disable-* | --disable-* \
2316: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318: | -with-* | --with-* | -without-* | --without-* | --x)
2319: case "$ac_configure_args0 " in
2320: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321: esac
2322: ;;
2323: -* ) ac_must_keep_next=true ;;
2324: esac
2325: fi
2326: as_fn_append ac_configure_args " '$ac_arg'"
2327: ;;
2328: esac
2329: done
2330: done
2331: { ac_configure_args0=; unset ac_configure_args0;}
2332: { ac_configure_args1=; unset ac_configure_args1;}
2333:
2334: # When interrupted or exit'd, cleanup temporary files, and complete
2335: # config.log. We remove comments because anyway the quotes in there
2336: # would cause problems or look ugly.
2337: # WARNING: Use '\'' to represent an apostrophe within the trap.
2338: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339: trap 'exit_status=$?
2340: # Save into config.log some information that might help in debugging.
2341: {
2342: echo
2343:
2344: cat <<\_ASBOX
2345: ## ---------------- ##
2346: ## Cache variables. ##
2347: ## ---------------- ##
2348: _ASBOX
2349: echo
2350: # The following way of writing the cache mishandles newlines in values,
2351: (
2352: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2353: eval ac_val=\$$ac_var
2354: case $ac_val in #(
2355: *${as_nl}*)
2356: case $ac_var in #(
2357: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2358: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359: esac
2360: case $ac_var in #(
2361: _ | IFS | as_nl) ;; #(
2362: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2363: *) { eval $ac_var=; unset $ac_var;} ;;
2364: esac ;;
2365: esac
2366: done
2367: (set) 2>&1 |
2368: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2369: *${as_nl}ac_space=\ *)
2370: sed -n \
2371: "s/'\''/'\''\\\\'\'''\''/g;
2372: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373: ;; #(
2374: *)
2375: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376: ;;
2377: esac |
2378: sort
2379: )
2380: echo
2381:
2382: cat <<\_ASBOX
2383: ## ----------------- ##
2384: ## Output variables. ##
2385: ## ----------------- ##
2386: _ASBOX
2387: echo
2388: for ac_var in $ac_subst_vars
2389: do
2390: eval ac_val=\$$ac_var
2391: case $ac_val in
2392: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393: esac
2394: $as_echo "$ac_var='\''$ac_val'\''"
2395: done | sort
2396: echo
2397:
2398: if test -n "$ac_subst_files"; then
2399: cat <<\_ASBOX
2400: ## ------------------- ##
2401: ## File substitutions. ##
2402: ## ------------------- ##
2403: _ASBOX
2404: echo
2405: for ac_var in $ac_subst_files
2406: do
2407: eval ac_val=\$$ac_var
2408: case $ac_val in
2409: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410: esac
2411: $as_echo "$ac_var='\''$ac_val'\''"
2412: done | sort
2413: echo
2414: fi
2415:
2416: if test -s confdefs.h; then
2417: cat <<\_ASBOX
2418: ## ----------- ##
2419: ## confdefs.h. ##
2420: ## ----------- ##
2421: _ASBOX
2422: echo
2423: cat confdefs.h
2424: echo
2425: fi
2426: test "$ac_signal" != 0 &&
2427: $as_echo "$as_me: caught signal $ac_signal"
2428: $as_echo "$as_me: exit $exit_status"
2429: } >&5
2430: rm -f core *.core core.conftest.* &&
2431: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432: exit $exit_status
2433: ' 0
2434: for ac_signal in 1 2 13 15; do
2435: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436: done
2437: ac_signal=0
2438:
2439: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440: rm -f -r conftest* confdefs.h
2441:
2442: $as_echo "/* confdefs.h */" > confdefs.h
2443:
2444: # Predefined preprocessor variables.
2445:
2446: cat >>confdefs.h <<_ACEOF
2447: #define PACKAGE_NAME "$PACKAGE_NAME"
2448: _ACEOF
2449:
2450: cat >>confdefs.h <<_ACEOF
2451: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452: _ACEOF
2453:
2454: cat >>confdefs.h <<_ACEOF
2455: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2456: _ACEOF
2457:
2458: cat >>confdefs.h <<_ACEOF
2459: #define PACKAGE_STRING "$PACKAGE_STRING"
2460: _ACEOF
2461:
2462: cat >>confdefs.h <<_ACEOF
2463: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464: _ACEOF
2465:
2466: cat >>confdefs.h <<_ACEOF
2467: #define PACKAGE_URL "$PACKAGE_URL"
2468: _ACEOF
2469:
2470:
2471: # Let the site file select an alternate cache file if it wants to.
2472: # Prefer an explicitly selected file to automatically selected ones.
2473: ac_site_file1=NONE
2474: ac_site_file2=NONE
2475: if test -n "$CONFIG_SITE"; then
2476: ac_site_file1=$CONFIG_SITE
2477: elif test "x$prefix" != xNONE; then
2478: ac_site_file1=$prefix/share/config.site
2479: ac_site_file2=$prefix/etc/config.site
2480: else
2481: ac_site_file1=$ac_default_prefix/share/config.site
2482: ac_site_file2=$ac_default_prefix/etc/config.site
2483: fi
2484: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2485: do
2486: test "x$ac_site_file" = xNONE && continue
2487: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2488: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2489: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2490: sed 's/^/| /' "$ac_site_file" >&5
2491: . "$ac_site_file"
2492: fi
2493: done
2494:
2495: if test -r "$cache_file"; then
2496: # Some versions of bash will fail to source /dev/null (special files
2497: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2498: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2499: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2500: $as_echo "$as_me: loading cache $cache_file" >&6;}
2501: case $cache_file in
2502: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2503: *) . "./$cache_file";;
2504: esac
2505: fi
2506: else
2507: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2508: $as_echo "$as_me: creating cache $cache_file" >&6;}
2509: >$cache_file
2510: fi
2511:
2512: # Check that the precious variables saved in the cache have kept the same
2513: # value.
2514: ac_cache_corrupted=false
2515: for ac_var in $ac_precious_vars; do
2516: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2517: eval ac_new_set=\$ac_env_${ac_var}_set
2518: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2519: eval ac_new_val=\$ac_env_${ac_var}_value
2520: case $ac_old_set,$ac_new_set in
2521: set,)
2522: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2523: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2524: ac_cache_corrupted=: ;;
2525: ,set)
2526: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2527: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2528: ac_cache_corrupted=: ;;
2529: ,);;
2530: *)
2531: if test "x$ac_old_val" != "x$ac_new_val"; then
2532: # differences in whitespace do not lead to failure.
2533: ac_old_val_w=`echo x $ac_old_val`
2534: ac_new_val_w=`echo x $ac_new_val`
2535: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2536: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2537: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2538: ac_cache_corrupted=:
2539: else
2540: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2541: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2542: eval $ac_var=\$ac_old_val
2543: fi
2544: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2545: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2546: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2547: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2548: fi;;
2549: esac
2550: # Pass precious variables to config.status.
2551: if test "$ac_new_set" = set; then
2552: case $ac_new_val in
2553: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2554: *) ac_arg=$ac_var=$ac_new_val ;;
2555: esac
2556: case " $ac_configure_args " in
2557: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2558: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2559: esac
2560: fi
2561: done
2562: if $ac_cache_corrupted; then
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2566: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2567: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2568: fi
2569: ## -------------------- ##
2570: ## Main body of script. ##
2571: ## -------------------- ##
2572:
2573: ac_ext=c
2574: ac_cpp='$CPP $CPPFLAGS'
2575: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578:
2579:
2580: ac_aux_dir=
2581: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2582: for ac_t in install-sh install.sh shtool; do
2583: if test -f "$ac_dir/$ac_t"; then
2584: ac_aux_dir=$ac_dir
2585: ac_install_sh="$ac_aux_dir/$ac_t -c"
2586: break 2
2587: fi
2588: done
2589: done
2590: if test -z "$ac_aux_dir"; then
2591: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592: fi
2593:
2594: # These three variables are undocumented and unsupported,
2595: # and are intended to be withdrawn in a future Autoconf release.
2596: # They can cause serious problems if a builder's source tree is in a directory
2597: # whose full name contains unusual characters.
2598: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601:
2602:
2603: # Make sure we can run config.sub.
2604: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606:
2607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608: $as_echo_n "checking build system type... " >&6; }
2609: if test "${ac_cv_build+set}" = set; then :
2610: $as_echo_n "(cached) " >&6
2611: else
2612: ac_build_alias=$build_alias
2613: test "x$ac_build_alias" = x &&
2614: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615: test "x$ac_build_alias" = x &&
2616: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2617: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619:
2620: fi
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622: $as_echo "$ac_cv_build" >&6; }
2623: case $ac_cv_build in
2624: *-*-*) ;;
2625: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2626: esac
2627: build=$ac_cv_build
2628: ac_save_IFS=$IFS; IFS='-'
2629: set x $ac_cv_build
2630: shift
2631: build_cpu=$1
2632: build_vendor=$2
2633: shift; shift
2634: # Remember, the first character of IFS is used to create $*,
2635: # except with old shells:
2636: build_os=$*
2637: IFS=$ac_save_IFS
2638: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639:
2640:
2641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642: $as_echo_n "checking host system type... " >&6; }
2643: if test "${ac_cv_host+set}" = set; then :
2644: $as_echo_n "(cached) " >&6
2645: else
2646: if test "x$host_alias" = x; then
2647: ac_cv_host=$ac_cv_build
2648: else
2649: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2651: fi
2652:
2653: fi
2654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655: $as_echo "$ac_cv_host" >&6; }
2656: case $ac_cv_host in
2657: *-*-*) ;;
2658: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2659: esac
2660: host=$ac_cv_host
2661: ac_save_IFS=$IFS; IFS='-'
2662: set x $ac_cv_host
2663: shift
2664: host_cpu=$1
2665: host_vendor=$2
2666: shift; shift
2667: # Remember, the first character of IFS is used to create $*,
2668: # except with old shells:
2669: host_os=$*
2670: IFS=$ac_save_IFS
2671: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672:
2673:
2674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675: $as_echo_n "checking target system type... " >&6; }
2676: if test "${ac_cv_target+set}" = set; then :
2677: $as_echo_n "(cached) " >&6
2678: else
2679: if test "x$target_alias" = x; then
2680: ac_cv_target=$ac_cv_host
2681: else
2682: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2684: fi
2685:
2686: fi
2687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688: $as_echo "$ac_cv_target" >&6; }
2689: case $ac_cv_target in
2690: *-*-*) ;;
2691: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2692: esac
2693: target=$ac_cv_target
2694: ac_save_IFS=$IFS; IFS='-'
2695: set x $ac_cv_target
2696: shift
2697: target_cpu=$1
2698: target_vendor=$2
2699: shift; shift
2700: # Remember, the first character of IFS is used to create $*,
2701: # except with old shells:
2702: target_os=$*
2703: IFS=$ac_save_IFS
2704: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2705:
2706:
2707: # The aliases save the names the user supplied, while $host etc.
2708: # will get canonicalized.
2709: test -n "$target_alias" &&
2710: test "$program_prefix$program_suffix$program_transform_name" = \
2711: NONENONEs,x,x, &&
2712: program_prefix=${target_alias}-
2713:
2714: am__api_version='1.11'
2715:
2716: # Find a good install program. We prefer a C program (faster),
2717: # so one script is as good as another. But avoid the broken or
2718: # incompatible versions:
2719: # SysV /etc/install, /usr/sbin/install
2720: # SunOS /usr/etc/install
2721: # IRIX /sbin/install
2722: # AIX /bin/install
2723: # AmigaOS /C/install, which installs bootblocks on floppy discs
2724: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2725: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2726: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2727: # OS/2's system install, which has a completely different semantic
2728: # ./install, which can be erroneously created by make from ./install.sh.
2729: # Reject install programs that cannot install multiple files.
2730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2731: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2732: if test -z "$INSTALL"; then
2733: if test "${ac_cv_path_install+set}" = set; then :
2734: $as_echo_n "(cached) " >&6
2735: else
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: # Account for people who put trailing slashes in PATH elements.
2742: case $as_dir/ in #((
2743: ./ | .// | /[cC]/* | \
2744: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2745: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2746: /usr/ucb/* ) ;;
2747: *)
2748: # OSF1 and SCO ODT 3.0 have their own names for install.
2749: # Don't use installbsd from OSF since it installs stuff as root
2750: # by default.
2751: for ac_prog in ginstall scoinst install; do
2752: for ac_exec_ext in '' $ac_executable_extensions; do
2753: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2754: if test $ac_prog = install &&
2755: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2756: # AIX install. It has an incompatible calling convention.
2757: :
2758: elif test $ac_prog = install &&
2759: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2760: # program-specific install script used by HP pwplus--don't use.
2761: :
2762: else
2763: rm -rf conftest.one conftest.two conftest.dir
2764: echo one > conftest.one
2765: echo two > conftest.two
2766: mkdir conftest.dir
2767: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2768: test -s conftest.one && test -s conftest.two &&
2769: test -s conftest.dir/conftest.one &&
2770: test -s conftest.dir/conftest.two
2771: then
2772: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2773: break 3
2774: fi
2775: fi
2776: fi
2777: done
2778: done
2779: ;;
2780: esac
2781:
2782: done
2783: IFS=$as_save_IFS
2784:
2785: rm -rf conftest.one conftest.two conftest.dir
2786:
2787: fi
2788: if test "${ac_cv_path_install+set}" = set; then
2789: INSTALL=$ac_cv_path_install
2790: else
2791: # As a last resort, use the slow shell script. Don't cache a
2792: # value for INSTALL within a source directory, because that will
2793: # break other packages using the cache if that directory is
2794: # removed, or if the value is a relative name.
2795: INSTALL=$ac_install_sh
2796: fi
2797: fi
2798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2799: $as_echo "$INSTALL" >&6; }
2800:
2801: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2802: # It thinks the first close brace ends the variable substitution.
2803: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2804:
2805: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2806:
2807: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2808:
2809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2810: $as_echo_n "checking whether build environment is sane... " >&6; }
2811: # Just in case
2812: sleep 1
2813: echo timestamp > conftest.file
2814: # Reject unsafe characters in $srcdir or the absolute working directory
2815: # name. Accept space and tab only in the latter.
2816: am_lf='
2817: '
2818: case `pwd` in
2819: *[\\\"\#\$\&\'\`$am_lf]*)
2820: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2821: esac
2822: case $srcdir in
2823: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2824: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2825: esac
2826:
2827: # Do `set' in a subshell so we don't clobber the current shell's
2828: # arguments. Must try -L first in case configure is actually a
2829: # symlink; some systems play weird games with the mod time of symlinks
2830: # (eg FreeBSD returns the mod time of the symlink's containing
2831: # directory).
2832: if (
2833: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2834: if test "$*" = "X"; then
2835: # -L didn't work.
2836: set X `ls -t "$srcdir/configure" conftest.file`
2837: fi
2838: rm -f conftest.file
2839: if test "$*" != "X $srcdir/configure conftest.file" \
2840: && test "$*" != "X conftest.file $srcdir/configure"; then
2841:
2842: # If neither matched, then we have a broken ls. This can happen
2843: # if, for instance, CONFIG_SHELL is bash and it inherits a
2844: # broken ls alias from the environment. This has actually
2845: # happened. Such a system could not be considered "sane".
2846: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2847: alias in your environment" "$LINENO" 5
2848: fi
2849:
2850: test "$2" = conftest.file
2851: )
2852: then
2853: # Ok.
2854: :
2855: else
2856: as_fn_error "newly created file is older than distributed files!
2857: Check your system clock" "$LINENO" 5
2858: fi
2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2860: $as_echo "yes" >&6; }
2861: test "$program_prefix" != NONE &&
2862: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2863: # Use a double $ so make ignores it.
2864: test "$program_suffix" != NONE &&
2865: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2866: # Double any \ or $.
2867: # By default was `s,x,x', remove it if useless.
2868: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2869: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2870:
2871: # expand $ac_aux_dir to an absolute path
2872: am_aux_dir=`cd $ac_aux_dir && pwd`
2873:
2874: if test x"${MISSING+set}" != xset; then
2875: case $am_aux_dir in
2876: *\ * | *\ *)
2877: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2878: *)
2879: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2880: esac
2881: fi
2882: # Use eval to expand $SHELL
2883: if eval "$MISSING --run true"; then
2884: am_missing_run="$MISSING --run "
2885: else
2886: am_missing_run=
2887: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2888: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2889: fi
2890:
2891: if test x"${install_sh}" != xset; then
2892: case $am_aux_dir in
2893: *\ * | *\ *)
2894: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895: *)
2896: install_sh="\${SHELL} $am_aux_dir/install-sh"
2897: esac
2898: fi
2899:
2900: # Installed binaries are usually stripped using `strip' when the user
2901: # run `make install-strip'. However `strip' might not be the right
2902: # tool to use in cross-compilation environments, therefore Automake
2903: # will honor the `STRIP' environment variable to overrule this program.
2904: if test "$cross_compiling" != no; then
2905: if test -n "$ac_tool_prefix"; then
2906: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2907: set dummy ${ac_tool_prefix}strip; ac_word=$2
2908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909: $as_echo_n "checking for $ac_word... " >&6; }
2910: if test "${ac_cv_prog_STRIP+set}" = set; then :
2911: $as_echo_n "(cached) " >&6
2912: else
2913: if test -n "$STRIP"; then
2914: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2915: else
2916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917: for as_dir in $PATH
2918: do
2919: IFS=$as_save_IFS
2920: test -z "$as_dir" && as_dir=.
2921: for ac_exec_ext in '' $ac_executable_extensions; do
2922: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2924: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925: break 2
2926: fi
2927: done
2928: done
2929: IFS=$as_save_IFS
2930:
2931: fi
2932: fi
2933: STRIP=$ac_cv_prog_STRIP
2934: if test -n "$STRIP"; then
2935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2936: $as_echo "$STRIP" >&6; }
2937: else
2938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939: $as_echo "no" >&6; }
2940: fi
2941:
2942:
2943: fi
2944: if test -z "$ac_cv_prog_STRIP"; then
2945: ac_ct_STRIP=$STRIP
2946: # Extract the first word of "strip", so it can be a program name with args.
2947: set dummy strip; ac_word=$2
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949: $as_echo_n "checking for $ac_word... " >&6; }
2950: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2951: $as_echo_n "(cached) " >&6
2952: else
2953: if test -n "$ac_ct_STRIP"; then
2954: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2955: else
2956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957: for as_dir in $PATH
2958: do
2959: IFS=$as_save_IFS
2960: test -z "$as_dir" && as_dir=.
2961: for ac_exec_ext in '' $ac_executable_extensions; do
2962: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963: ac_cv_prog_ac_ct_STRIP="strip"
2964: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965: break 2
2966: fi
2967: done
2968: done
2969: IFS=$as_save_IFS
2970:
2971: fi
2972: fi
2973: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974: if test -n "$ac_ct_STRIP"; then
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976: $as_echo "$ac_ct_STRIP" >&6; }
2977: else
2978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979: $as_echo "no" >&6; }
2980: fi
2981:
2982: if test "x$ac_ct_STRIP" = x; then
2983: STRIP=":"
2984: else
2985: case $cross_compiling:$ac_tool_warned in
2986: yes:)
2987: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989: ac_tool_warned=yes ;;
2990: esac
2991: STRIP=$ac_ct_STRIP
2992: fi
2993: else
2994: STRIP="$ac_cv_prog_STRIP"
2995: fi
2996:
2997: fi
2998: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999:
3000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3001: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3002: if test -z "$MKDIR_P"; then
3003: if test "${ac_cv_path_mkdir+set}" = set; then :
3004: $as_echo_n "(cached) " >&6
3005: else
3006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3008: do
3009: IFS=$as_save_IFS
3010: test -z "$as_dir" && as_dir=.
3011: for ac_prog in mkdir gmkdir; do
3012: for ac_exec_ext in '' $ac_executable_extensions; do
3013: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3014: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015: 'mkdir (GNU coreutils) '* | \
3016: 'mkdir (coreutils) '* | \
3017: 'mkdir (fileutils) '4.1*)
3018: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3019: break 3;;
3020: esac
3021: done
3022: done
3023: done
3024: IFS=$as_save_IFS
3025:
3026: fi
3027:
3028: test -d ./--version && rmdir ./--version
3029: if test "${ac_cv_path_mkdir+set}" = set; then
3030: MKDIR_P="$ac_cv_path_mkdir -p"
3031: else
3032: # As a last resort, use the slow shell script. Don't cache a
3033: # value for MKDIR_P within a source directory, because that will
3034: # break other packages using the cache if that directory is
3035: # removed, or if the value is a relative name.
3036: MKDIR_P="$ac_install_sh -d"
3037: fi
3038: fi
3039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040: $as_echo "$MKDIR_P" >&6; }
3041:
3042: mkdir_p="$MKDIR_P"
3043: case $mkdir_p in
3044: [\\/$]* | ?:[\\/]*) ;;
3045: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3046: esac
3047:
3048: for ac_prog in gawk mawk nawk awk
3049: do
3050: # Extract the first word of "$ac_prog", so it can be a program name with args.
3051: set dummy $ac_prog; ac_word=$2
3052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053: $as_echo_n "checking for $ac_word... " >&6; }
3054: if test "${ac_cv_prog_AWK+set}" = set; then :
3055: $as_echo_n "(cached) " >&6
3056: else
3057: if test -n "$AWK"; then
3058: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059: else
3060: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061: for as_dir in $PATH
3062: do
3063: IFS=$as_save_IFS
3064: test -z "$as_dir" && as_dir=.
3065: for ac_exec_ext in '' $ac_executable_extensions; do
3066: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067: ac_cv_prog_AWK="$ac_prog"
3068: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069: break 2
3070: fi
3071: done
3072: done
3073: IFS=$as_save_IFS
3074:
3075: fi
3076: fi
3077: AWK=$ac_cv_prog_AWK
3078: if test -n "$AWK"; then
3079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080: $as_echo "$AWK" >&6; }
3081: else
3082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083: $as_echo "no" >&6; }
3084: fi
3085:
3086:
3087: test -n "$AWK" && break
3088: done
3089:
3090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092: set x ${MAKE-make}
3093: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3095: $as_echo_n "(cached) " >&6
3096: else
3097: cat >conftest.make <<\_ACEOF
3098: SHELL = /bin/sh
3099: all:
3100: @echo '@@@%%%=$(MAKE)=@@@%%%'
3101: _ACEOF
3102: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3103: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104: *@@@%%%=?*=@@@%%%*)
3105: eval ac_cv_prog_make_${ac_make}_set=yes;;
3106: *)
3107: eval ac_cv_prog_make_${ac_make}_set=no;;
3108: esac
3109: rm -f conftest.make
3110: fi
3111: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113: $as_echo "yes" >&6; }
3114: SET_MAKE=
3115: else
3116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117: $as_echo "no" >&6; }
3118: SET_MAKE="MAKE=${MAKE-make}"
3119: fi
3120:
3121: rm -rf .tst 2>/dev/null
3122: mkdir .tst 2>/dev/null
3123: if test -d .tst; then
3124: am__leading_dot=.
3125: else
3126: am__leading_dot=_
3127: fi
3128: rmdir .tst 2>/dev/null
3129:
3130: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132: # is not polluted with repeated "-I."
3133: am__isrc=' -I$(srcdir)'
3134: # test to see if srcdir already configured
3135: if test -f $srcdir/config.status; then
3136: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3137: fi
3138: fi
3139:
3140: # test whether we have cygpath
3141: if test -z "$CYGPATH_W"; then
3142: if (cygpath --version) >/dev/null 2>/dev/null; then
3143: CYGPATH_W='cygpath -w'
3144: else
3145: CYGPATH_W=echo
3146: fi
3147: fi
3148:
3149:
3150: # Define the identity of the package.
3151: PACKAGE='rpl'
1.2 bertrand 3152: VERSION='4.0.10'
1.1 bertrand 3153:
3154:
3155: cat >>confdefs.h <<_ACEOF
3156: #define PACKAGE "$PACKAGE"
3157: _ACEOF
3158:
3159:
3160: cat >>confdefs.h <<_ACEOF
3161: #define VERSION "$VERSION"
3162: _ACEOF
3163:
3164: # Some tools Automake needs.
3165:
3166: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167:
3168:
3169: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170:
3171:
3172: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173:
3174:
3175: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176:
3177:
3178: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179:
3180: # We need awk for the "check" target. The system "awk" is bad on
3181: # some platforms.
3182: # Always define AMTAR for backward compatibility.
3183:
3184: AMTAR=${AMTAR-"${am_missing_run}tar"}
3185:
3186: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3187:
3188:
3189:
3190:
3191:
3192:
3193: ac_config_headers="$ac_config_headers rplconfig.h"
3194:
3195:
3196: NCURSES=ncurses-5.7-20100102
3197: READLINE=readline-6.1
3198: UNITS=units-1.87
3199: GSL=gsl-1.13
3200: GPP=gpp-2.24
3201: GNUPLOT=gnuplot-4.2.6
3202: FILE=file-5.03
3203: ICONV=libiconv-1.13.1
3204:
3205: ac_ext=c
3206: ac_cpp='$CPP $CPPFLAGS'
3207: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210: if test -n "$ac_tool_prefix"; then
3211: for ac_prog in gcc-4.4 gcc
3212: do
3213: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216: $as_echo_n "checking for $ac_word... " >&6; }
3217: if test "${ac_cv_prog_CC+set}" = set; then :
3218: $as_echo_n "(cached) " >&6
3219: else
3220: if test -n "$CC"; then
3221: ac_cv_prog_CC="$CC" # Let the user override the test.
3222: else
3223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224: for as_dir in $PATH
3225: do
3226: IFS=$as_save_IFS
3227: test -z "$as_dir" && as_dir=.
3228: for ac_exec_ext in '' $ac_executable_extensions; do
3229: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232: break 2
3233: fi
3234: done
3235: done
3236: IFS=$as_save_IFS
3237:
3238: fi
3239: fi
3240: CC=$ac_cv_prog_CC
3241: if test -n "$CC"; then
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243: $as_echo "$CC" >&6; }
3244: else
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246: $as_echo "no" >&6; }
3247: fi
3248:
3249:
3250: test -n "$CC" && break
3251: done
3252: fi
3253: if test -z "$CC"; then
3254: ac_ct_CC=$CC
3255: for ac_prog in gcc-4.4 gcc
3256: do
3257: # Extract the first word of "$ac_prog", so it can be a program name with args.
3258: set dummy $ac_prog; ac_word=$2
3259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260: $as_echo_n "checking for $ac_word... " >&6; }
3261: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3262: $as_echo_n "(cached) " >&6
3263: else
3264: if test -n "$ac_ct_CC"; then
3265: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266: else
3267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268: for as_dir in $PATH
3269: do
3270: IFS=$as_save_IFS
3271: test -z "$as_dir" && as_dir=.
3272: for ac_exec_ext in '' $ac_executable_extensions; do
3273: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274: ac_cv_prog_ac_ct_CC="$ac_prog"
3275: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276: break 2
3277: fi
3278: done
3279: done
3280: IFS=$as_save_IFS
3281:
3282: fi
3283: fi
3284: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285: if test -n "$ac_ct_CC"; then
3286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287: $as_echo "$ac_ct_CC" >&6; }
3288: else
3289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290: $as_echo "no" >&6; }
3291: fi
3292:
3293:
3294: test -n "$ac_ct_CC" && break
3295: done
3296:
3297: if test "x$ac_ct_CC" = x; then
3298: CC=""
3299: else
3300: case $cross_compiling:$ac_tool_warned in
3301: yes:)
3302: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304: ac_tool_warned=yes ;;
3305: esac
3306: CC=$ac_ct_CC
3307: fi
3308: fi
3309:
3310:
3311: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313: as_fn_error "no acceptable C compiler found in \$PATH
3314: See \`config.log' for more details." "$LINENO" 5; }
3315:
3316: # Provide some information about the compiler.
3317: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318: set X $ac_compile
3319: ac_compiler=$2
3320: for ac_option in --version -v -V -qversion; do
3321: { { ac_try="$ac_compiler $ac_option >&5"
3322: case "(($ac_try" in
3323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324: *) ac_try_echo=$ac_try;;
3325: esac
3326: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327: $as_echo "$ac_try_echo"; } >&5
3328: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329: ac_status=$?
3330: if test -s conftest.err; then
3331: sed '10a\
3332: ... rest of stderr output deleted ...
3333: 10q' conftest.err >conftest.er1
3334: cat conftest.er1 >&5
3335: fi
3336: rm -f conftest.er1 conftest.err
3337: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338: test $ac_status = 0; }
3339: done
3340:
3341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342: /* end confdefs.h. */
3343:
3344: int
3345: main ()
3346: {
3347:
3348: ;
3349: return 0;
3350: }
3351: _ACEOF
3352: ac_clean_files_save=$ac_clean_files
3353: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354: # Try to create an executable without -o first, disregard a.out.
3355: # It will help us diagnose broken compilers, and finding out an intuition
3356: # of exeext.
3357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358: $as_echo_n "checking whether the C compiler works... " >&6; }
3359: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3360:
3361: # The possible output files:
3362: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363:
3364: ac_rmfiles=
3365: for ac_file in $ac_files
3366: do
3367: case $ac_file in
3368: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370: esac
3371: done
3372: rm -f $ac_rmfiles
3373:
3374: if { { ac_try="$ac_link_default"
3375: case "(($ac_try" in
3376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377: *) ac_try_echo=$ac_try;;
3378: esac
3379: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380: $as_echo "$ac_try_echo"; } >&5
3381: (eval "$ac_link_default") 2>&5
3382: ac_status=$?
3383: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384: test $ac_status = 0; }; then :
3385: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388: # so that the user can short-circuit this test for compilers unknown to
3389: # Autoconf.
3390: for ac_file in $ac_files ''
3391: do
3392: test -f "$ac_file" || continue
3393: case $ac_file in
3394: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395: ;;
3396: [ab].out )
3397: # We found the default executable, but exeext='' is most
3398: # certainly right.
3399: break;;
3400: *.* )
3401: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402: then :; else
3403: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404: fi
3405: # We set ac_cv_exeext here because the later test for it is not
3406: # safe: cross compilers may not add the suffix if given an `-o'
3407: # argument, so we may need to know it at that point already.
3408: # Even if this section looks crufty: it has the advantage of
3409: # actually working.
3410: break;;
3411: * )
3412: break;;
3413: esac
3414: done
3415: test "$ac_cv_exeext" = no && ac_cv_exeext=
3416:
3417: else
3418: ac_file=''
3419: fi
3420: if test -z "$ac_file"; then :
3421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422: $as_echo "no" >&6; }
3423: $as_echo "$as_me: failed program was:" >&5
3424: sed 's/^/| /' conftest.$ac_ext >&5
3425:
3426: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428: { as_fn_set_status 77
3429: as_fn_error "C compiler cannot create executables
3430: See \`config.log' for more details." "$LINENO" 5; }; }
3431: else
3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433: $as_echo "yes" >&6; }
3434: fi
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436: $as_echo_n "checking for C compiler default output file name... " >&6; }
3437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438: $as_echo "$ac_file" >&6; }
3439: ac_exeext=$ac_cv_exeext
3440:
3441: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442: ac_clean_files=$ac_clean_files_save
3443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444: $as_echo_n "checking for suffix of executables... " >&6; }
3445: if { { ac_try="$ac_link"
3446: case "(($ac_try" in
3447: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448: *) ac_try_echo=$ac_try;;
3449: esac
3450: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451: $as_echo "$ac_try_echo"; } >&5
3452: (eval "$ac_link") 2>&5
3453: ac_status=$?
3454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455: test $ac_status = 0; }; then :
3456: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3457: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3458: # work properly (i.e., refer to `conftest.exe'), while it won't with
3459: # `rm'.
3460: for ac_file in conftest.exe conftest conftest.*; do
3461: test -f "$ac_file" || continue
3462: case $ac_file in
3463: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465: break;;
3466: * ) break;;
3467: esac
3468: done
3469: else
3470: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472: as_fn_error "cannot compute suffix of executables: cannot compile and link
3473: See \`config.log' for more details." "$LINENO" 5; }
3474: fi
3475: rm -f conftest conftest$ac_cv_exeext
3476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477: $as_echo "$ac_cv_exeext" >&6; }
3478:
3479: rm -f conftest.$ac_ext
3480: EXEEXT=$ac_cv_exeext
3481: ac_exeext=$EXEEXT
3482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483: /* end confdefs.h. */
3484: #include <stdio.h>
3485: int
3486: main ()
3487: {
3488: FILE *f = fopen ("conftest.out", "w");
3489: return ferror (f) || fclose (f) != 0;
3490:
3491: ;
3492: return 0;
3493: }
3494: _ACEOF
3495: ac_clean_files="$ac_clean_files conftest.out"
3496: # Check that the compiler produces executables we can run. If not, either
3497: # the compiler is broken, or we cross compile.
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499: $as_echo_n "checking whether we are cross compiling... " >&6; }
3500: if test "$cross_compiling" != yes; then
3501: { { ac_try="$ac_link"
3502: case "(($ac_try" in
3503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504: *) ac_try_echo=$ac_try;;
3505: esac
3506: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507: $as_echo "$ac_try_echo"; } >&5
3508: (eval "$ac_link") 2>&5
3509: ac_status=$?
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }
3512: if { ac_try='./conftest$ac_cv_exeext'
3513: { { case "(($ac_try" in
3514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515: *) ac_try_echo=$ac_try;;
3516: esac
3517: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518: $as_echo "$ac_try_echo"; } >&5
3519: (eval "$ac_try") 2>&5
3520: ac_status=$?
3521: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522: test $ac_status = 0; }; }; then
3523: cross_compiling=no
3524: else
3525: if test "$cross_compiling" = maybe; then
3526: cross_compiling=yes
3527: else
3528: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530: as_fn_error "cannot run C compiled programs.
3531: If you meant to cross compile, use \`--host'.
3532: See \`config.log' for more details." "$LINENO" 5; }
3533: fi
3534: fi
3535: fi
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537: $as_echo "$cross_compiling" >&6; }
3538:
3539: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3540: ac_clean_files=$ac_clean_files_save
3541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542: $as_echo_n "checking for suffix of object files... " >&6; }
3543: if test "${ac_cv_objext+set}" = set; then :
3544: $as_echo_n "(cached) " >&6
3545: else
3546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547: /* end confdefs.h. */
3548:
3549: int
3550: main ()
3551: {
3552:
3553: ;
3554: return 0;
3555: }
3556: _ACEOF
3557: rm -f conftest.o conftest.obj
3558: if { { ac_try="$ac_compile"
3559: case "(($ac_try" in
3560: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561: *) ac_try_echo=$ac_try;;
3562: esac
3563: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564: $as_echo "$ac_try_echo"; } >&5
3565: (eval "$ac_compile") 2>&5
3566: ac_status=$?
3567: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568: test $ac_status = 0; }; then :
3569: for ac_file in conftest.o conftest.obj conftest.*; do
3570: test -f "$ac_file" || continue;
3571: case $ac_file in
3572: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574: break;;
3575: esac
3576: done
3577: else
3578: $as_echo "$as_me: failed program was:" >&5
3579: sed 's/^/| /' conftest.$ac_ext >&5
3580:
3581: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583: as_fn_error "cannot compute suffix of object files: cannot compile
3584: See \`config.log' for more details." "$LINENO" 5; }
3585: fi
3586: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587: fi
3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589: $as_echo "$ac_cv_objext" >&6; }
3590: OBJEXT=$ac_cv_objext
3591: ac_objext=$OBJEXT
3592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3595: $as_echo_n "(cached) " >&6
3596: else
3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603: #ifndef __GNUC__
3604: choke me
3605: #endif
3606:
3607: ;
3608: return 0;
3609: }
3610: _ACEOF
3611: if ac_fn_c_try_compile "$LINENO"; then :
3612: ac_compiler_gnu=yes
3613: else
3614: ac_compiler_gnu=no
3615: fi
3616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3618:
3619: fi
3620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622: if test $ac_compiler_gnu = yes; then
3623: GCC=yes
3624: else
3625: GCC=
3626: fi
3627: ac_test_CFLAGS=${CFLAGS+set}
3628: ac_save_CFLAGS=$CFLAGS
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631: if test "${ac_cv_prog_cc_g+set}" = set; then :
3632: $as_echo_n "(cached) " >&6
3633: else
3634: ac_save_c_werror_flag=$ac_c_werror_flag
3635: ac_c_werror_flag=yes
3636: ac_cv_prog_cc_g=no
3637: CFLAGS="-g"
3638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639: /* end confdefs.h. */
3640:
3641: int
3642: main ()
3643: {
3644:
3645: ;
3646: return 0;
3647: }
3648: _ACEOF
3649: if ac_fn_c_try_compile "$LINENO"; then :
3650: ac_cv_prog_cc_g=yes
3651: else
3652: CFLAGS=""
3653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654: /* end confdefs.h. */
3655:
3656: int
3657: main ()
3658: {
3659:
3660: ;
3661: return 0;
3662: }
3663: _ACEOF
3664: if ac_fn_c_try_compile "$LINENO"; then :
3665:
3666: else
3667: ac_c_werror_flag=$ac_save_c_werror_flag
3668: CFLAGS="-g"
3669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670: /* end confdefs.h. */
3671:
3672: int
3673: main ()
3674: {
3675:
3676: ;
3677: return 0;
3678: }
3679: _ACEOF
3680: if ac_fn_c_try_compile "$LINENO"; then :
3681: ac_cv_prog_cc_g=yes
3682: fi
3683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684: fi
3685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686: fi
3687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688: ac_c_werror_flag=$ac_save_c_werror_flag
3689: fi
3690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691: $as_echo "$ac_cv_prog_cc_g" >&6; }
3692: if test "$ac_test_CFLAGS" = set; then
3693: CFLAGS=$ac_save_CFLAGS
3694: elif test $ac_cv_prog_cc_g = yes; then
3695: if test "$GCC" = yes; then
3696: CFLAGS="-g -O2"
3697: else
3698: CFLAGS="-g"
3699: fi
3700: else
3701: if test "$GCC" = yes; then
3702: CFLAGS="-O2"
3703: else
3704: CFLAGS=
3705: fi
3706: fi
3707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3710: $as_echo_n "(cached) " >&6
3711: else
3712: ac_cv_prog_cc_c89=no
3713: ac_save_CC=$CC
3714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715: /* end confdefs.h. */
3716: #include <stdarg.h>
3717: #include <stdio.h>
3718: #include <sys/types.h>
3719: #include <sys/stat.h>
3720: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721: struct buf { int x; };
3722: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723: static char *e (p, i)
3724: char **p;
3725: int i;
3726: {
3727: return p[i];
3728: }
3729: static char *f (char * (*g) (char **, int), char **p, ...)
3730: {
3731: char *s;
3732: va_list v;
3733: va_start (v,p);
3734: s = g (p, va_arg (v,int));
3735: va_end (v);
3736: return s;
3737: }
3738:
3739: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740: function prototypes and stuff, but not '\xHH' hex character constants.
3741: These don't provoke an error unfortunately, instead are silently treated
3742: as 'x'. The following induces an error, until -std is added to get
3743: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744: array size at least. It's necessary to write '\x00'==0 to get something
3745: that's true only with -std. */
3746: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747:
3748: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749: inside strings and character constants. */
3750: #define FOO(x) 'x'
3751: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752:
3753: int test (int i, double x);
3754: struct s1 {int (*f) (int a);};
3755: struct s2 {int (*f) (double a);};
3756: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757: int argc;
3758: char **argv;
3759: int
3760: main ()
3761: {
3762: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763: ;
3764: return 0;
3765: }
3766: _ACEOF
3767: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769: do
3770: CC="$ac_save_CC $ac_arg"
3771: if ac_fn_c_try_compile "$LINENO"; then :
3772: ac_cv_prog_cc_c89=$ac_arg
3773: fi
3774: rm -f core conftest.err conftest.$ac_objext
3775: test "x$ac_cv_prog_cc_c89" != "xno" && break
3776: done
3777: rm -f conftest.$ac_ext
3778: CC=$ac_save_CC
3779:
3780: fi
3781: # AC_CACHE_VAL
3782: case "x$ac_cv_prog_cc_c89" in
3783: x)
3784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785: $as_echo "none needed" >&6; } ;;
3786: xno)
3787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788: $as_echo "unsupported" >&6; } ;;
3789: *)
3790: CC="$CC $ac_cv_prog_cc_c89"
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793: esac
3794: if test "x$ac_cv_prog_cc_c89" != xno; then :
3795:
3796: fi
3797:
3798: ac_ext=c
3799: ac_cpp='$CPP $CPPFLAGS'
3800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803: DEPDIR="${am__leading_dot}deps"
3804:
3805: ac_config_commands="$ac_config_commands depfiles"
3806:
3807:
3808: am_make=${MAKE-make}
3809: cat > confinc << 'END'
3810: am__doit:
3811: @echo this is the am__doit target
3812: .PHONY: am__doit
3813: END
3814: # If we don't find an include directive, just comment out the code.
3815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3816: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3817: am__include="#"
3818: am__quote=
3819: _am_result=none
3820: # First try GNU make style include.
3821: echo "include confinc" > confmf
3822: # Ignore all kinds of additional output from `make'.
3823: case `$am_make -s -f confmf 2> /dev/null` in #(
3824: *the\ am__doit\ target*)
3825: am__include=include
3826: am__quote=
3827: _am_result=GNU
3828: ;;
3829: esac
3830: # Now try BSD make style include.
3831: if test "$am__include" = "#"; then
3832: echo '.include "confinc"' > confmf
3833: case `$am_make -s -f confmf 2> /dev/null` in #(
3834: *the\ am__doit\ target*)
3835: am__include=.include
3836: am__quote="\""
3837: _am_result=BSD
3838: ;;
3839: esac
3840: fi
3841:
3842:
3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3844: $as_echo "$_am_result" >&6; }
3845: rm -f confinc confmf
3846:
3847: # Check whether --enable-dependency-tracking was given.
3848: if test "${enable_dependency_tracking+set}" = set; then :
3849: enableval=$enable_dependency_tracking;
3850: fi
3851:
3852: if test "x$enable_dependency_tracking" != xno; then
3853: am_depcomp="$ac_aux_dir/depcomp"
3854: AMDEPBACKSLASH='\'
3855: fi
3856: if test "x$enable_dependency_tracking" != xno; then
3857: AMDEP_TRUE=
3858: AMDEP_FALSE='#'
3859: else
3860: AMDEP_TRUE='#'
3861: AMDEP_FALSE=
3862: fi
3863:
3864:
3865:
3866: depcc="$CC" am_compiler_list=
3867:
3868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3869: $as_echo_n "checking dependency style of $depcc... " >&6; }
3870: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3871: $as_echo_n "(cached) " >&6
3872: else
3873: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874: # We make a subdir and do the tests there. Otherwise we can end up
3875: # making bogus files that we don't know about and never remove. For
3876: # instance it was reported that on HP-UX the gcc test will end up
3877: # making a dummy file named `D' -- because `-MD' means `put the output
3878: # in D'.
3879: mkdir conftest.dir
3880: # Copy depcomp to subdir because otherwise we won't find it if we're
3881: # using a relative directory.
3882: cp "$am_depcomp" conftest.dir
3883: cd conftest.dir
3884: # We will build objects and dependencies in a subdirectory because
3885: # it helps to detect inapplicable dependency modes. For instance
3886: # both Tru64's cc and ICC support -MD to output dependencies as a
3887: # side effect of compilation, but ICC will put the dependencies in
3888: # the current directory while Tru64 will put them in the object
3889: # directory.
3890: mkdir sub
3891:
3892: am_cv_CC_dependencies_compiler_type=none
3893: if test "$am_compiler_list" = ""; then
3894: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895: fi
3896: am__universal=false
3897: case " $depcc " in #(
3898: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899: esac
3900:
3901: for depmode in $am_compiler_list; do
3902: # Setup a source with many dependencies, because some compilers
3903: # like to wrap large dependency lists on column 80 (with \), and
3904: # we should not choose a depcomp mode which is confused by this.
3905: #
3906: # We need to recreate these files for each test, as the compiler may
3907: # overwrite some of them when testing with obscure command lines.
3908: # This happens at least with the AIX C compiler.
3909: : > sub/conftest.c
3910: for i in 1 2 3 4 5 6; do
3911: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3913: # Solaris 8's {/usr,}/bin/sh.
3914: touch sub/conftst$i.h
3915: done
3916: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917:
3918: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3919: # mode. It turns out that the SunPro C++ compiler does not properly
3920: # handle `-M -o', and we need to detect this. Also, some Intel
3921: # versions had trouble with output in subdirs
3922: am__obj=sub/conftest.${OBJEXT-o}
3923: am__minus_obj="-o $am__obj"
3924: case $depmode in
3925: gcc)
3926: # This depmode causes a compiler race in universal mode.
3927: test "$am__universal" = false || continue
3928: ;;
3929: nosideeffect)
3930: # after this tag, mechanisms are not by side-effect, so they'll
3931: # only be used when explicitly requested
3932: if test "x$enable_dependency_tracking" = xyes; then
3933: continue
3934: else
3935: break
3936: fi
3937: ;;
3938: msvisualcpp | msvcmsys)
3939: # This compiler won't grok `-c -o', but also, the minuso test has
3940: # not run yet. These depmodes are late enough in the game, and
3941: # so weak that their functioning should not be impacted.
3942: am__obj=conftest.${OBJEXT-o}
3943: am__minus_obj=
3944: ;;
3945: none) break ;;
3946: esac
3947: if depmode=$depmode \
3948: source=sub/conftest.c object=$am__obj \
3949: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951: >/dev/null 2>conftest.err &&
3952: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956: # icc doesn't choke on unknown options, it will just issue warnings
3957: # or remarks (even with -Werror). So we grep stderr for any message
3958: # that says an option was ignored or not supported.
3959: # When given -MP, icc 7.0 and 7.1 complain thusly:
3960: # icc: Command line warning: ignoring option '-M'; no argument required
3961: # The diagnosis changed in icc 8.0:
3962: # icc: Command line remark: option '-MP' not supported
3963: if (grep 'ignoring option' conftest.err ||
3964: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965: am_cv_CC_dependencies_compiler_type=$depmode
3966: break
3967: fi
3968: fi
3969: done
3970:
3971: cd ..
3972: rm -rf conftest.dir
3973: else
3974: am_cv_CC_dependencies_compiler_type=none
3975: fi
3976:
3977: fi
3978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3979: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981:
3982: if
3983: test "x$enable_dependency_tracking" != xno \
3984: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985: am__fastdepCC_TRUE=
3986: am__fastdepCC_FALSE='#'
3987: else
3988: am__fastdepCC_TRUE='#'
3989: am__fastdepCC_FALSE=
3990: fi
3991:
3992:
3993:
3994: if test x"$CC" != x""; then
3995: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3996: awk -F. '{ printf("%s", $1);}'`
3997: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3998: awk -F. '{ printf("%s", $2);}'`
3999: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4000: OPTIMISATION_C=-O3
4001: else
4002: if test $GCC_VERSION_MAJEURE -ge 5; then
4003: OPTIMISATION_C=-O3
4004: else
4005: OPTIMISATION_C=-O2
4006: fi
4007: fi
4008: fi
4009:
4010: if test "x$CC" != xcc; then
4011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4012: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4013: else
4014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4015: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4016: fi
4017: set dummy $CC; ac_cc=`$as_echo "$2" |
4018: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4019: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4020: $as_echo_n "(cached) " >&6
4021: else
4022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023: /* end confdefs.h. */
4024:
4025: int
4026: main ()
4027: {
4028:
4029: ;
4030: return 0;
4031: }
4032: _ACEOF
4033: # Make sure it works both with $CC and with simple cc.
4034: # We do the test twice because some compilers refuse to overwrite an
4035: # existing .o file with -o, though they will create one.
4036: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4037: rm -f conftest2.*
4038: if { { case "(($ac_try" in
4039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040: *) ac_try_echo=$ac_try;;
4041: esac
4042: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043: $as_echo "$ac_try_echo"; } >&5
4044: (eval "$ac_try") 2>&5
4045: ac_status=$?
4046: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047: test $ac_status = 0; } &&
4048: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4049: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050: *) ac_try_echo=$ac_try;;
4051: esac
4052: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053: $as_echo "$ac_try_echo"; } >&5
4054: (eval "$ac_try") 2>&5
4055: ac_status=$?
4056: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057: test $ac_status = 0; };
4058: then
4059: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4060: if test "x$CC" != xcc; then
4061: # Test first that cc exists at all.
4062: if { ac_try='cc -c conftest.$ac_ext >&5'
4063: { { case "(($ac_try" in
4064: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065: *) ac_try_echo=$ac_try;;
4066: esac
4067: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068: $as_echo "$ac_try_echo"; } >&5
4069: (eval "$ac_try") 2>&5
4070: ac_status=$?
4071: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072: test $ac_status = 0; }; }; then
4073: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4074: rm -f conftest2.*
4075: if { { case "(($ac_try" in
4076: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077: *) ac_try_echo=$ac_try;;
4078: esac
4079: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080: $as_echo "$ac_try_echo"; } >&5
4081: (eval "$ac_try") 2>&5
4082: ac_status=$?
4083: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084: test $ac_status = 0; } &&
4085: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4086: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087: *) ac_try_echo=$ac_try;;
4088: esac
4089: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090: $as_echo "$ac_try_echo"; } >&5
4091: (eval "$ac_try") 2>&5
4092: ac_status=$?
4093: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094: test $ac_status = 0; };
4095: then
4096: # cc works too.
4097: :
4098: else
4099: # cc exists but doesn't like -o.
4100: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4101: fi
4102: fi
4103: fi
4104: else
4105: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4106: fi
4107: rm -f core conftest*
4108:
4109: fi
4110: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112: $as_echo "yes" >&6; }
4113: else
4114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115: $as_echo "no" >&6; }
4116:
4117: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4118:
4119: fi
4120:
4121: # FIXME: we rely on the cache variable name because
4122: # there is no other way.
4123: set dummy $CC
4124: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4125: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4126: if test "$am_t" != yes; then
4127: # Losing compiler, so override with the script.
4128: # FIXME: It is wrong to rewrite CC.
4129: # But if we don't then we get into trouble of one sort or another.
4130: # A longer-term fix would be to have automake use am__CC in this case,
4131: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132: CC="$am_aux_dir/compile $CC"
4133: fi
4134:
4135:
4136:
4137: if test "$GCC" != yes; then
4138: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4139: fi
4140:
4141: ac_ext=cpp
4142: ac_cpp='$CXXCPP $CPPFLAGS'
4143: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4146: if test -z "$CXX"; then
4147: if test -n "$CCC"; then
4148: CXX=$CCC
4149: else
4150: if test -n "$ac_tool_prefix"; then
4151: for ac_prog in g++-4.4 g++
4152: do
4153: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4154: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156: $as_echo_n "checking for $ac_word... " >&6; }
4157: if test "${ac_cv_prog_CXX+set}" = set; then :
4158: $as_echo_n "(cached) " >&6
4159: else
4160: if test -n "$CXX"; then
4161: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4162: else
4163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164: for as_dir in $PATH
4165: do
4166: IFS=$as_save_IFS
4167: test -z "$as_dir" && as_dir=.
4168: for ac_exec_ext in '' $ac_executable_extensions; do
4169: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4171: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172: break 2
4173: fi
4174: done
4175: done
4176: IFS=$as_save_IFS
4177:
4178: fi
4179: fi
4180: CXX=$ac_cv_prog_CXX
4181: if test -n "$CXX"; then
4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4183: $as_echo "$CXX" >&6; }
4184: else
4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186: $as_echo "no" >&6; }
4187: fi
4188:
4189:
4190: test -n "$CXX" && break
4191: done
4192: fi
4193: if test -z "$CXX"; then
4194: ac_ct_CXX=$CXX
4195: for ac_prog in g++-4.4 g++
4196: do
4197: # Extract the first word of "$ac_prog", so it can be a program name with args.
4198: set dummy $ac_prog; ac_word=$2
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200: $as_echo_n "checking for $ac_word... " >&6; }
4201: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4202: $as_echo_n "(cached) " >&6
4203: else
4204: if test -n "$ac_ct_CXX"; then
4205: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4206: else
4207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208: for as_dir in $PATH
4209: do
4210: IFS=$as_save_IFS
4211: test -z "$as_dir" && as_dir=.
4212: for ac_exec_ext in '' $ac_executable_extensions; do
4213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214: ac_cv_prog_ac_ct_CXX="$ac_prog"
4215: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216: break 2
4217: fi
4218: done
4219: done
4220: IFS=$as_save_IFS
4221:
4222: fi
4223: fi
4224: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4225: if test -n "$ac_ct_CXX"; then
4226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4227: $as_echo "$ac_ct_CXX" >&6; }
4228: else
4229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230: $as_echo "no" >&6; }
4231: fi
4232:
4233:
4234: test -n "$ac_ct_CXX" && break
4235: done
4236:
4237: if test "x$ac_ct_CXX" = x; then
4238: CXX="g++"
4239: else
4240: case $cross_compiling:$ac_tool_warned in
4241: yes:)
4242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244: ac_tool_warned=yes ;;
4245: esac
4246: CXX=$ac_ct_CXX
4247: fi
4248: fi
4249:
4250: fi
4251: fi
4252: # Provide some information about the compiler.
4253: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4254: set X $ac_compile
4255: ac_compiler=$2
4256: for ac_option in --version -v -V -qversion; do
4257: { { ac_try="$ac_compiler $ac_option >&5"
4258: case "(($ac_try" in
4259: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260: *) ac_try_echo=$ac_try;;
4261: esac
4262: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263: $as_echo "$ac_try_echo"; } >&5
4264: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4265: ac_status=$?
4266: if test -s conftest.err; then
4267: sed '10a\
4268: ... rest of stderr output deleted ...
4269: 10q' conftest.err >conftest.er1
4270: cat conftest.er1 >&5
4271: fi
4272: rm -f conftest.er1 conftest.err
4273: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274: test $ac_status = 0; }
4275: done
4276:
4277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4278: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4279: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4280: $as_echo_n "(cached) " >&6
4281: else
4282: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283: /* end confdefs.h. */
4284:
4285: int
4286: main ()
4287: {
4288: #ifndef __GNUC__
4289: choke me
4290: #endif
4291:
4292: ;
4293: return 0;
4294: }
4295: _ACEOF
4296: if ac_fn_cxx_try_compile "$LINENO"; then :
4297: ac_compiler_gnu=yes
4298: else
4299: ac_compiler_gnu=no
4300: fi
4301: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4303:
4304: fi
4305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4306: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4307: if test $ac_compiler_gnu = yes; then
4308: GXX=yes
4309: else
4310: GXX=
4311: fi
4312: ac_test_CXXFLAGS=${CXXFLAGS+set}
4313: ac_save_CXXFLAGS=$CXXFLAGS
4314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4315: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4316: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4317: $as_echo_n "(cached) " >&6
4318: else
4319: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4320: ac_cxx_werror_flag=yes
4321: ac_cv_prog_cxx_g=no
4322: CXXFLAGS="-g"
4323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324: /* end confdefs.h. */
4325:
4326: int
4327: main ()
4328: {
4329:
4330: ;
4331: return 0;
4332: }
4333: _ACEOF
4334: if ac_fn_cxx_try_compile "$LINENO"; then :
4335: ac_cv_prog_cxx_g=yes
4336: else
4337: CXXFLAGS=""
4338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339: /* end confdefs.h. */
4340:
4341: int
4342: main ()
4343: {
4344:
4345: ;
4346: return 0;
4347: }
4348: _ACEOF
4349: if ac_fn_cxx_try_compile "$LINENO"; then :
4350:
4351: else
4352: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4353: CXXFLAGS="-g"
4354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355: /* end confdefs.h. */
4356:
4357: int
4358: main ()
4359: {
4360:
4361: ;
4362: return 0;
4363: }
4364: _ACEOF
4365: if ac_fn_cxx_try_compile "$LINENO"; then :
4366: ac_cv_prog_cxx_g=yes
4367: fi
4368: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369: fi
4370: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371: fi
4372: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4374: fi
4375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4376: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4377: if test "$ac_test_CXXFLAGS" = set; then
4378: CXXFLAGS=$ac_save_CXXFLAGS
4379: elif test $ac_cv_prog_cxx_g = yes; then
4380: if test "$GXX" = yes; then
4381: CXXFLAGS="-g -O2"
4382: else
4383: CXXFLAGS="-g"
4384: fi
4385: else
4386: if test "$GXX" = yes; then
4387: CXXFLAGS="-O2"
4388: else
4389: CXXFLAGS=
4390: fi
4391: fi
4392: ac_ext=c
4393: ac_cpp='$CPP $CPPFLAGS'
4394: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397:
4398: depcc="$CXX" am_compiler_list=
4399:
4400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4401: $as_echo_n "checking dependency style of $depcc... " >&6; }
4402: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4403: $as_echo_n "(cached) " >&6
4404: else
4405: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4406: # We make a subdir and do the tests there. Otherwise we can end up
4407: # making bogus files that we don't know about and never remove. For
4408: # instance it was reported that on HP-UX the gcc test will end up
4409: # making a dummy file named `D' -- because `-MD' means `put the output
4410: # in D'.
4411: mkdir conftest.dir
4412: # Copy depcomp to subdir because otherwise we won't find it if we're
4413: # using a relative directory.
4414: cp "$am_depcomp" conftest.dir
4415: cd conftest.dir
4416: # We will build objects and dependencies in a subdirectory because
4417: # it helps to detect inapplicable dependency modes. For instance
4418: # both Tru64's cc and ICC support -MD to output dependencies as a
4419: # side effect of compilation, but ICC will put the dependencies in
4420: # the current directory while Tru64 will put them in the object
4421: # directory.
4422: mkdir sub
4423:
4424: am_cv_CXX_dependencies_compiler_type=none
4425: if test "$am_compiler_list" = ""; then
4426: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4427: fi
4428: am__universal=false
4429: case " $depcc " in #(
4430: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4431: esac
4432:
4433: for depmode in $am_compiler_list; do
4434: # Setup a source with many dependencies, because some compilers
4435: # like to wrap large dependency lists on column 80 (with \), and
4436: # we should not choose a depcomp mode which is confused by this.
4437: #
4438: # We need to recreate these files for each test, as the compiler may
4439: # overwrite some of them when testing with obscure command lines.
4440: # This happens at least with the AIX C compiler.
4441: : > sub/conftest.c
4442: for i in 1 2 3 4 5 6; do
4443: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4444: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4445: # Solaris 8's {/usr,}/bin/sh.
4446: touch sub/conftst$i.h
4447: done
4448: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4449:
4450: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4451: # mode. It turns out that the SunPro C++ compiler does not properly
4452: # handle `-M -o', and we need to detect this. Also, some Intel
4453: # versions had trouble with output in subdirs
4454: am__obj=sub/conftest.${OBJEXT-o}
4455: am__minus_obj="-o $am__obj"
4456: case $depmode in
4457: gcc)
4458: # This depmode causes a compiler race in universal mode.
4459: test "$am__universal" = false || continue
4460: ;;
4461: nosideeffect)
4462: # after this tag, mechanisms are not by side-effect, so they'll
4463: # only be used when explicitly requested
4464: if test "x$enable_dependency_tracking" = xyes; then
4465: continue
4466: else
4467: break
4468: fi
4469: ;;
4470: msvisualcpp | msvcmsys)
4471: # This compiler won't grok `-c -o', but also, the minuso test has
4472: # not run yet. These depmodes are late enough in the game, and
4473: # so weak that their functioning should not be impacted.
4474: am__obj=conftest.${OBJEXT-o}
4475: am__minus_obj=
4476: ;;
4477: none) break ;;
4478: esac
4479: if depmode=$depmode \
4480: source=sub/conftest.c object=$am__obj \
4481: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4482: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4483: >/dev/null 2>conftest.err &&
4484: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4485: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4486: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4487: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4488: # icc doesn't choke on unknown options, it will just issue warnings
4489: # or remarks (even with -Werror). So we grep stderr for any message
4490: # that says an option was ignored or not supported.
4491: # When given -MP, icc 7.0 and 7.1 complain thusly:
4492: # icc: Command line warning: ignoring option '-M'; no argument required
4493: # The diagnosis changed in icc 8.0:
4494: # icc: Command line remark: option '-MP' not supported
4495: if (grep 'ignoring option' conftest.err ||
4496: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4497: am_cv_CXX_dependencies_compiler_type=$depmode
4498: break
4499: fi
4500: fi
4501: done
4502:
4503: cd ..
4504: rm -rf conftest.dir
4505: else
4506: am_cv_CXX_dependencies_compiler_type=none
4507: fi
4508:
4509: fi
4510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4511: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4512: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4513:
4514: if
4515: test "x$enable_dependency_tracking" != xno \
4516: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4517: am__fastdepCXX_TRUE=
4518: am__fastdepCXX_FALSE='#'
4519: else
4520: am__fastdepCXX_TRUE='#'
4521: am__fastdepCXX_FALSE=
4522: fi
4523:
4524:
4525:
4526: if test "$GXX" != yes; then
4527: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4528: fi
4529:
4530: ac_ext=f
4531: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4532: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4534: if test -n "$ac_tool_prefix"; then
4535: for ac_prog in gfortran-4.4 gfortran
4536: do
4537: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540: $as_echo_n "checking for $ac_word... " >&6; }
4541: if test "${ac_cv_prog_F77+set}" = set; then :
4542: $as_echo_n "(cached) " >&6
4543: else
4544: if test -n "$F77"; then
4545: ac_cv_prog_F77="$F77" # Let the user override the test.
4546: else
4547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548: for as_dir in $PATH
4549: do
4550: IFS=$as_save_IFS
4551: test -z "$as_dir" && as_dir=.
4552: for ac_exec_ext in '' $ac_executable_extensions; do
4553: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4555: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556: break 2
4557: fi
4558: done
4559: done
4560: IFS=$as_save_IFS
4561:
4562: fi
4563: fi
4564: F77=$ac_cv_prog_F77
4565: if test -n "$F77"; then
4566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4567: $as_echo "$F77" >&6; }
4568: else
4569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570: $as_echo "no" >&6; }
4571: fi
4572:
4573:
4574: test -n "$F77" && break
4575: done
4576: fi
4577: if test -z "$F77"; then
4578: ac_ct_F77=$F77
4579: for ac_prog in gfortran-4.4 gfortran
4580: do
4581: # Extract the first word of "$ac_prog", so it can be a program name with args.
4582: set dummy $ac_prog; ac_word=$2
4583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584: $as_echo_n "checking for $ac_word... " >&6; }
4585: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4586: $as_echo_n "(cached) " >&6
4587: else
4588: if test -n "$ac_ct_F77"; then
4589: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4590: else
4591: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592: for as_dir in $PATH
4593: do
4594: IFS=$as_save_IFS
4595: test -z "$as_dir" && as_dir=.
4596: for ac_exec_ext in '' $ac_executable_extensions; do
4597: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598: ac_cv_prog_ac_ct_F77="$ac_prog"
4599: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600: break 2
4601: fi
4602: done
4603: done
4604: IFS=$as_save_IFS
4605:
4606: fi
4607: fi
4608: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4609: if test -n "$ac_ct_F77"; then
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4611: $as_echo "$ac_ct_F77" >&6; }
4612: else
4613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614: $as_echo "no" >&6; }
4615: fi
4616:
4617:
4618: test -n "$ac_ct_F77" && break
4619: done
4620:
4621: if test "x$ac_ct_F77" = x; then
4622: F77=""
4623: else
4624: case $cross_compiling:$ac_tool_warned in
4625: yes:)
4626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628: ac_tool_warned=yes ;;
4629: esac
4630: F77=$ac_ct_F77
4631: fi
4632: fi
4633:
4634:
4635: # Provide some information about the compiler.
4636: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4637: set X $ac_compile
4638: ac_compiler=$2
4639: for ac_option in --version -v -V -qversion; do
4640: { { ac_try="$ac_compiler $ac_option >&5"
4641: case "(($ac_try" in
4642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643: *) ac_try_echo=$ac_try;;
4644: esac
4645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646: $as_echo "$ac_try_echo"; } >&5
4647: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4648: ac_status=$?
4649: if test -s conftest.err; then
4650: sed '10a\
4651: ... rest of stderr output deleted ...
4652: 10q' conftest.err >conftest.er1
4653: cat conftest.er1 >&5
4654: fi
4655: rm -f conftest.er1 conftest.err
4656: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657: test $ac_status = 0; }
4658: done
4659: rm -f a.out
4660:
4661: # If we don't use `.F' as extension, the preprocessor is not run on the
4662: # input file. (Note that this only needs to work for GNU compilers.)
4663: ac_save_ext=$ac_ext
4664: ac_ext=F
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4666: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4667: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4668: $as_echo_n "(cached) " >&6
4669: else
4670: cat > conftest.$ac_ext <<_ACEOF
4671: program main
4672: #ifndef __GNUC__
4673: choke me
4674: #endif
4675:
4676: end
4677: _ACEOF
4678: if ac_fn_f77_try_compile "$LINENO"; then :
4679: ac_compiler_gnu=yes
4680: else
4681: ac_compiler_gnu=no
4682: fi
4683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4685:
4686: fi
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4688: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4689: ac_ext=$ac_save_ext
4690: ac_test_FFLAGS=${FFLAGS+set}
4691: ac_save_FFLAGS=$FFLAGS
4692: FFLAGS=
4693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4694: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4695: if test "${ac_cv_prog_f77_g+set}" = set; then :
4696: $as_echo_n "(cached) " >&6
4697: else
4698: FFLAGS=-g
4699: cat > conftest.$ac_ext <<_ACEOF
4700: program main
4701:
4702: end
4703: _ACEOF
4704: if ac_fn_f77_try_compile "$LINENO"; then :
4705: ac_cv_prog_f77_g=yes
4706: else
4707: ac_cv_prog_f77_g=no
4708: fi
4709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710:
4711: fi
4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4713: $as_echo "$ac_cv_prog_f77_g" >&6; }
4714: if test "$ac_test_FFLAGS" = set; then
4715: FFLAGS=$ac_save_FFLAGS
4716: elif test $ac_cv_prog_f77_g = yes; then
4717: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4718: FFLAGS="-g -O2"
4719: else
4720: FFLAGS="-g"
4721: fi
4722: else
4723: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4724: FFLAGS="-O2"
4725: else
4726: FFLAGS=
4727: fi
4728: fi
4729:
4730: if test $ac_compiler_gnu = yes; then
4731: G77=yes
4732: else
4733: G77=
4734: fi
4735: ac_ext=c
4736: ac_cpp='$CPP $CPPFLAGS'
4737: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740:
4741:
4742: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4743: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4744: fi
4745:
4746: ac_ext=${ac_fc_srcext-f}
4747: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4748: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4749: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4750: if test -n "$ac_tool_prefix"; then
4751: for ac_prog in gfortran-4.4 gfortran
4752: do
4753: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756: $as_echo_n "checking for $ac_word... " >&6; }
4757: if test "${ac_cv_prog_FC+set}" = set; then :
4758: $as_echo_n "(cached) " >&6
4759: else
4760: if test -n "$FC"; then
4761: ac_cv_prog_FC="$FC" # Let the user override the test.
4762: else
4763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764: for as_dir in $PATH
4765: do
4766: IFS=$as_save_IFS
4767: test -z "$as_dir" && as_dir=.
4768: for ac_exec_ext in '' $ac_executable_extensions; do
4769: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772: break 2
4773: fi
4774: done
4775: done
4776: IFS=$as_save_IFS
4777:
4778: fi
4779: fi
4780: FC=$ac_cv_prog_FC
4781: if test -n "$FC"; then
4782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4783: $as_echo "$FC" >&6; }
4784: else
4785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786: $as_echo "no" >&6; }
4787: fi
4788:
4789:
4790: test -n "$FC" && break
4791: done
4792: fi
4793: if test -z "$FC"; then
4794: ac_ct_FC=$FC
4795: for ac_prog in gfortran-4.4 gfortran
4796: do
4797: # Extract the first word of "$ac_prog", so it can be a program name with args.
4798: set dummy $ac_prog; ac_word=$2
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800: $as_echo_n "checking for $ac_word... " >&6; }
4801: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4802: $as_echo_n "(cached) " >&6
4803: else
4804: if test -n "$ac_ct_FC"; then
4805: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4806: else
4807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808: for as_dir in $PATH
4809: do
4810: IFS=$as_save_IFS
4811: test -z "$as_dir" && as_dir=.
4812: for ac_exec_ext in '' $ac_executable_extensions; do
4813: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814: ac_cv_prog_ac_ct_FC="$ac_prog"
4815: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816: break 2
4817: fi
4818: done
4819: done
4820: IFS=$as_save_IFS
4821:
4822: fi
4823: fi
4824: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4825: if test -n "$ac_ct_FC"; then
4826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4827: $as_echo "$ac_ct_FC" >&6; }
4828: else
4829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830: $as_echo "no" >&6; }
4831: fi
4832:
4833:
4834: test -n "$ac_ct_FC" && break
4835: done
4836:
4837: if test "x$ac_ct_FC" = x; then
4838: FC=""
4839: else
4840: case $cross_compiling:$ac_tool_warned in
4841: yes:)
4842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844: ac_tool_warned=yes ;;
4845: esac
4846: FC=$ac_ct_FC
4847: fi
4848: fi
4849:
4850:
4851: # Provide some information about the compiler.
4852: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4853: set X $ac_compile
4854: ac_compiler=$2
4855: for ac_option in --version -v -V -qversion; do
4856: { { ac_try="$ac_compiler $ac_option >&5"
4857: case "(($ac_try" in
4858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859: *) ac_try_echo=$ac_try;;
4860: esac
4861: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862: $as_echo "$ac_try_echo"; } >&5
4863: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4864: ac_status=$?
4865: if test -s conftest.err; then
4866: sed '10a\
4867: ... rest of stderr output deleted ...
4868: 10q' conftest.err >conftest.er1
4869: cat conftest.er1 >&5
4870: fi
4871: rm -f conftest.er1 conftest.err
4872: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873: test $ac_status = 0; }
4874: done
4875: rm -f a.out
4876:
4877: # If we don't use `.F' as extension, the preprocessor is not run on the
4878: # input file. (Note that this only needs to work for GNU compilers.)
4879: ac_save_ext=$ac_ext
4880: ac_ext=F
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4882: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4883: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4884: $as_echo_n "(cached) " >&6
4885: else
4886: cat > conftest.$ac_ext <<_ACEOF
4887: program main
4888: #ifndef __GNUC__
4889: choke me
4890: #endif
4891:
4892: end
4893: _ACEOF
4894: if ac_fn_fc_try_compile "$LINENO"; then :
4895: ac_compiler_gnu=yes
4896: else
4897: ac_compiler_gnu=no
4898: fi
4899: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4901:
4902: fi
4903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4904: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4905: ac_ext=$ac_save_ext
4906: ac_test_FCFLAGS=${FCFLAGS+set}
4907: ac_save_FCFLAGS=$FCFLAGS
4908: FCFLAGS=
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4910: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4911: if test "${ac_cv_prog_fc_g+set}" = set; then :
4912: $as_echo_n "(cached) " >&6
4913: else
4914: FCFLAGS=-g
4915: cat > conftest.$ac_ext <<_ACEOF
4916: program main
4917:
4918: end
4919: _ACEOF
4920: if ac_fn_fc_try_compile "$LINENO"; then :
4921: ac_cv_prog_fc_g=yes
4922: else
4923: ac_cv_prog_fc_g=no
4924: fi
4925: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926:
4927: fi
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4929: $as_echo "$ac_cv_prog_fc_g" >&6; }
4930: if test "$ac_test_FCFLAGS" = set; then
4931: FCFLAGS=$ac_save_FCFLAGS
4932: elif test $ac_cv_prog_fc_g = yes; then
4933: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4934: FCFLAGS="-g -O2"
4935: else
4936: FCFLAGS="-g"
4937: fi
4938: else
4939: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4940: FCFLAGS="-O2"
4941: else
4942: FCFLAGS=
4943: fi
4944: fi
4945:
4946: ac_ext=c
4947: ac_cpp='$CPP $CPPFLAGS'
4948: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951:
4952:
4953: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4954: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4955: fi
4956:
4957: if test x"$FC" != x""; then
4958: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4959: awk -F. '{ printf("%s", $1);}'`
4960: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4961: awk -F. '{ printf("%s", $2);}'`
4962: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4963: OPTIMISATION_F=-O3
4964: else
4965: if test $GCC_VERSION_MAJEURE -ge 5; then
4966: OPTIMISATION_F=-O3
4967: else
4968: OPTIMISATION_F=-O2
4969: fi
4970: fi
4971: fi
4972:
4973:
4974: ac_ext=c
4975: ac_cpp='$CPP $CPPFLAGS'
4976: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981: # On Suns, sometimes $CPP names a directory.
4982: if test -n "$CPP" && test -d "$CPP"; then
4983: CPP=
4984: fi
4985: if test -z "$CPP"; then
4986: if test "${ac_cv_prog_CPP+set}" = set; then :
4987: $as_echo_n "(cached) " >&6
4988: else
4989: # Double quotes because CPP needs to be expanded
4990: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991: do
4992: ac_preproc_ok=false
4993: for ac_c_preproc_warn_flag in '' yes
4994: do
4995: # Use a header file that comes with gcc, so configuring glibc
4996: # with a fresh cross-compiler works.
4997: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998: # <limits.h> exists even on freestanding compilers.
4999: # On the NeXT, cc -E runs the code through the compiler's parser,
5000: # not just through cpp. "Syntax error" is here to catch this case.
5001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002: /* end confdefs.h. */
5003: #ifdef __STDC__
5004: # include <limits.h>
5005: #else
5006: # include <assert.h>
5007: #endif
5008: Syntax error
5009: _ACEOF
5010: if ac_fn_c_try_cpp "$LINENO"; then :
5011:
5012: else
5013: # Broken: fails on valid input.
5014: continue
5015: fi
5016: rm -f conftest.err conftest.$ac_ext
5017:
5018: # OK, works on sane cases. Now check whether nonexistent headers
5019: # can be detected and how.
5020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021: /* end confdefs.h. */
5022: #include <ac_nonexistent.h>
5023: _ACEOF
5024: if ac_fn_c_try_cpp "$LINENO"; then :
5025: # Broken: success on invalid input.
5026: continue
5027: else
5028: # Passes both tests.
5029: ac_preproc_ok=:
5030: break
5031: fi
5032: rm -f conftest.err conftest.$ac_ext
5033:
5034: done
5035: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036: rm -f conftest.err conftest.$ac_ext
5037: if $ac_preproc_ok; then :
5038: break
5039: fi
5040:
5041: done
5042: ac_cv_prog_CPP=$CPP
5043:
5044: fi
5045: CPP=$ac_cv_prog_CPP
5046: else
5047: ac_cv_prog_CPP=$CPP
5048: fi
5049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050: $as_echo "$CPP" >&6; }
5051: ac_preproc_ok=false
5052: for ac_c_preproc_warn_flag in '' yes
5053: do
5054: # Use a header file that comes with gcc, so configuring glibc
5055: # with a fresh cross-compiler works.
5056: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057: # <limits.h> exists even on freestanding compilers.
5058: # On the NeXT, cc -E runs the code through the compiler's parser,
5059: # not just through cpp. "Syntax error" is here to catch this case.
5060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061: /* end confdefs.h. */
5062: #ifdef __STDC__
5063: # include <limits.h>
5064: #else
5065: # include <assert.h>
5066: #endif
5067: Syntax error
5068: _ACEOF
5069: if ac_fn_c_try_cpp "$LINENO"; then :
5070:
5071: else
5072: # Broken: fails on valid input.
5073: continue
5074: fi
5075: rm -f conftest.err conftest.$ac_ext
5076:
5077: # OK, works on sane cases. Now check whether nonexistent headers
5078: # can be detected and how.
5079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080: /* end confdefs.h. */
5081: #include <ac_nonexistent.h>
5082: _ACEOF
5083: if ac_fn_c_try_cpp "$LINENO"; then :
5084: # Broken: success on invalid input.
5085: continue
5086: else
5087: # Passes both tests.
5088: ac_preproc_ok=:
5089: break
5090: fi
5091: rm -f conftest.err conftest.$ac_ext
5092:
5093: done
5094: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095: rm -f conftest.err conftest.$ac_ext
5096: if $ac_preproc_ok; then :
5097:
5098: else
5099: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5102: See \`config.log' for more details." "$LINENO" 5; }
5103: fi
5104:
5105: ac_ext=c
5106: ac_cpp='$CPP $CPPFLAGS'
5107: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110:
5111:
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5113: $as_echo_n "checking for X... " >&6; }
5114:
5115:
5116: # Check whether --with-x was given.
5117: if test "${with_x+set}" = set; then :
5118: withval=$with_x;
5119: fi
5120:
5121: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5122: if test "x$with_x" = xno; then
5123: # The user explicitly disabled X.
5124: have_x=disabled
5125: else
5126: case $x_includes,$x_libraries in #(
5127: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5128: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5129: $as_echo_n "(cached) " >&6
5130: else
5131: # One or both of the vars are not set, and there is no cached value.
5132: ac_x_includes=no ac_x_libraries=no
5133: rm -f -r conftest.dir
5134: if mkdir conftest.dir; then
5135: cd conftest.dir
5136: cat >Imakefile <<'_ACEOF'
5137: incroot:
5138: @echo incroot='${INCROOT}'
5139: usrlibdir:
5140: @echo usrlibdir='${USRLIBDIR}'
5141: libdir:
5142: @echo libdir='${LIBDIR}'
5143: _ACEOF
5144: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5145: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5146: for ac_var in incroot usrlibdir libdir; do
5147: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5148: done
5149: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5150: for ac_extension in a so sl dylib la dll; do
5151: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5152: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5153: ac_im_usrlibdir=$ac_im_libdir; break
5154: fi
5155: done
5156: # Screen out bogus values from the imake configuration. They are
5157: # bogus both because they are the default anyway, and because
5158: # using them would break gcc on systems where it needs fixed includes.
5159: case $ac_im_incroot in
5160: /usr/include) ac_x_includes= ;;
5161: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5162: esac
5163: case $ac_im_usrlibdir in
5164: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5165: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5166: esac
5167: fi
5168: cd ..
5169: rm -f -r conftest.dir
5170: fi
5171:
5172: # Standard set of common directories for X headers.
5173: # Check X11 before X11Rn because it is often a symlink to the current release.
5174: ac_x_header_dirs='
5175: /usr/X11/include
5176: /usr/X11R7/include
5177: /usr/X11R6/include
5178: /usr/X11R5/include
5179: /usr/X11R4/include
5180:
5181: /usr/include/X11
5182: /usr/include/X11R7
5183: /usr/include/X11R6
5184: /usr/include/X11R5
5185: /usr/include/X11R4
5186:
5187: /usr/local/X11/include
5188: /usr/local/X11R7/include
5189: /usr/local/X11R6/include
5190: /usr/local/X11R5/include
5191: /usr/local/X11R4/include
5192:
5193: /usr/local/include/X11
5194: /usr/local/include/X11R7
5195: /usr/local/include/X11R6
5196: /usr/local/include/X11R5
5197: /usr/local/include/X11R4
5198:
5199: /usr/X386/include
5200: /usr/x386/include
5201: /usr/XFree86/include/X11
5202:
5203: /usr/include
5204: /usr/local/include
5205: /usr/unsupported/include
5206: /usr/athena/include
5207: /usr/local/x11r5/include
5208: /usr/lpp/Xamples/include
5209:
5210: /usr/openwin/include
5211: /usr/openwin/share/include'
5212:
5213: if test "$ac_x_includes" = no; then
5214: # Guess where to find include files, by looking for Xlib.h.
5215: # First, try using that file with no special directory specified.
5216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217: /* end confdefs.h. */
5218: #include <X11/Xlib.h>
5219: _ACEOF
5220: if ac_fn_c_try_cpp "$LINENO"; then :
5221: # We can compile using X headers with no special include directory.
5222: ac_x_includes=
5223: else
5224: for ac_dir in $ac_x_header_dirs; do
5225: if test -r "$ac_dir/X11/Xlib.h"; then
5226: ac_x_includes=$ac_dir
5227: break
5228: fi
5229: done
5230: fi
5231: rm -f conftest.err conftest.$ac_ext
5232: fi # $ac_x_includes = no
5233:
5234: if test "$ac_x_libraries" = no; then
5235: # Check for the libraries.
5236: # See if we find them without any special options.
5237: # Don't add to $LIBS permanently.
5238: ac_save_LIBS=$LIBS
5239: LIBS="-lX11 $LIBS"
5240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241: /* end confdefs.h. */
5242: #include <X11/Xlib.h>
5243: int
5244: main ()
5245: {
5246: XrmInitialize ()
5247: ;
5248: return 0;
5249: }
5250: _ACEOF
5251: if ac_fn_c_try_link "$LINENO"; then :
5252: LIBS=$ac_save_LIBS
5253: # We can link X programs with no special library path.
5254: ac_x_libraries=
5255: else
5256: LIBS=$ac_save_LIBS
5257: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5258: do
5259: # Don't even attempt the hair of trying to link an X program!
5260: for ac_extension in a so sl dylib la dll; do
5261: if test -r "$ac_dir/libX11.$ac_extension"; then
5262: ac_x_libraries=$ac_dir
5263: break 2
5264: fi
5265: done
5266: done
5267: fi
5268: rm -f core conftest.err conftest.$ac_objext \
5269: conftest$ac_exeext conftest.$ac_ext
5270: fi # $ac_x_libraries = no
5271:
5272: case $ac_x_includes,$ac_x_libraries in #(
5273: no,* | *,no | *\'*)
5274: # Didn't find X, or a directory has "'" in its name.
5275: ac_cv_have_x="have_x=no";; #(
5276: *)
5277: # Record where we found X for the cache.
5278: ac_cv_have_x="have_x=yes\
5279: ac_x_includes='$ac_x_includes'\
5280: ac_x_libraries='$ac_x_libraries'"
5281: esac
5282: fi
5283: ;; #(
5284: *) have_x=yes;;
5285: esac
5286: eval "$ac_cv_have_x"
5287: fi # $with_x != no
5288:
5289: if test "$have_x" != yes; then
5290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5291: $as_echo "$have_x" >&6; }
5292: no_x=yes
5293: else
5294: # If each of the values was on the command line, it overrides each guess.
5295: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5296: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5297: # Update the cache value to reflect the command line values.
5298: ac_cv_have_x="have_x=yes\
5299: ac_x_includes='$x_includes'\
5300: ac_x_libraries='$x_libraries'"
5301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5302: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5303: fi
5304:
5305: if test "$no_x" = yes; then
5306: # Not all programs may use this symbol, but it does not hurt to define it.
5307:
5308: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5309:
5310: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5311: else
5312: if test -n "$x_includes"; then
5313: X_CFLAGS="$X_CFLAGS -I$x_includes"
5314: fi
5315:
5316: # It would also be nice to do this for all -L options, not just this one.
5317: if test -n "$x_libraries"; then
5318: X_LIBS="$X_LIBS -L$x_libraries"
5319: # For Solaris; some versions of Sun CC require a space after -R and
5320: # others require no space. Words are not sufficient . . . .
5321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5322: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5323: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5324: ac_xsave_c_werror_flag=$ac_c_werror_flag
5325: ac_c_werror_flag=yes
5326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327: /* end confdefs.h. */
5328:
5329: int
5330: main ()
5331: {
5332:
5333: ;
5334: return 0;
5335: }
5336: _ACEOF
5337: if ac_fn_c_try_link "$LINENO"; then :
5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339: $as_echo "no" >&6; }
5340: X_LIBS="$X_LIBS -R$x_libraries"
5341: else
5342: LIBS="$ac_xsave_LIBS -R $x_libraries"
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
5345:
5346: int
5347: main ()
5348: {
5349:
5350: ;
5351: return 0;
5352: }
5353: _ACEOF
5354: if ac_fn_c_try_link "$LINENO"; then :
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356: $as_echo "yes" >&6; }
5357: X_LIBS="$X_LIBS -R $x_libraries"
5358: else
5359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5360: $as_echo "neither works" >&6; }
5361: fi
5362: rm -f core conftest.err conftest.$ac_objext \
5363: conftest$ac_exeext conftest.$ac_ext
5364: fi
5365: rm -f core conftest.err conftest.$ac_objext \
5366: conftest$ac_exeext conftest.$ac_ext
5367: ac_c_werror_flag=$ac_xsave_c_werror_flag
5368: LIBS=$ac_xsave_LIBS
5369: fi
5370:
5371: # Check for system-dependent libraries X programs must link with.
5372: # Do this before checking for the system-independent R6 libraries
5373: # (-lICE), since we may need -lsocket or whatever for X linking.
5374:
5375: if test "$ISC" = yes; then
5376: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5377: else
5378: # Martyn Johnson says this is needed for Ultrix, if the X
5379: # libraries were built with DECnet support. And Karl Berry says
5380: # the Alpha needs dnet_stub (dnet does not exist).
5381: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5382: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383: /* end confdefs.h. */
5384:
5385: /* Override any GCC internal prototype to avoid an error.
5386: Use char because int might match the return type of a GCC
5387: builtin and then its argument prototype would still apply. */
5388: #ifdef __cplusplus
5389: extern "C"
5390: #endif
5391: char XOpenDisplay ();
5392: int
5393: main ()
5394: {
5395: return XOpenDisplay ();
5396: ;
5397: return 0;
5398: }
5399: _ACEOF
5400: if ac_fn_c_try_link "$LINENO"; then :
5401:
5402: else
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5404: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5405: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5406: $as_echo_n "(cached) " >&6
5407: else
5408: ac_check_lib_save_LIBS=$LIBS
5409: LIBS="-ldnet $LIBS"
5410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411: /* end confdefs.h. */
5412:
5413: /* Override any GCC internal prototype to avoid an error.
5414: Use char because int might match the return type of a GCC
5415: builtin and then its argument prototype would still apply. */
5416: #ifdef __cplusplus
5417: extern "C"
5418: #endif
5419: char dnet_ntoa ();
5420: int
5421: main ()
5422: {
5423: return dnet_ntoa ();
5424: ;
5425: return 0;
5426: }
5427: _ACEOF
5428: if ac_fn_c_try_link "$LINENO"; then :
5429: ac_cv_lib_dnet_dnet_ntoa=yes
5430: else
5431: ac_cv_lib_dnet_dnet_ntoa=no
5432: fi
5433: rm -f core conftest.err conftest.$ac_objext \
5434: conftest$ac_exeext conftest.$ac_ext
5435: LIBS=$ac_check_lib_save_LIBS
5436: fi
5437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5438: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5439: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5440: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5441: fi
5442:
5443: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5445: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5446: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5447: $as_echo_n "(cached) " >&6
5448: else
5449: ac_check_lib_save_LIBS=$LIBS
5450: LIBS="-ldnet_stub $LIBS"
5451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452: /* end confdefs.h. */
5453:
5454: /* Override any GCC internal prototype to avoid an error.
5455: Use char because int might match the return type of a GCC
5456: builtin and then its argument prototype would still apply. */
5457: #ifdef __cplusplus
5458: extern "C"
5459: #endif
5460: char dnet_ntoa ();
5461: int
5462: main ()
5463: {
5464: return dnet_ntoa ();
5465: ;
5466: return 0;
5467: }
5468: _ACEOF
5469: if ac_fn_c_try_link "$LINENO"; then :
5470: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5471: else
5472: ac_cv_lib_dnet_stub_dnet_ntoa=no
5473: fi
5474: rm -f core conftest.err conftest.$ac_objext \
5475: conftest$ac_exeext conftest.$ac_ext
5476: LIBS=$ac_check_lib_save_LIBS
5477: fi
5478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5479: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5480: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5481: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5482: fi
5483:
5484: fi
5485: fi
5486: rm -f core conftest.err conftest.$ac_objext \
5487: conftest$ac_exeext conftest.$ac_ext
5488: LIBS="$ac_xsave_LIBS"
5489:
5490: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5491: # to get the SysV transport functions.
5492: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5493: # needs -lnsl.
5494: # The nsl library prevents programs from opening the X display
5495: # on Irix 5.2, according to T.E. Dickey.
5496: # The functions gethostbyname, getservbyname, and inet_addr are
5497: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5498: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5499: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5500:
5501: fi
5502:
5503: if test $ac_cv_func_gethostbyname = no; then
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5505: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5506: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5507: $as_echo_n "(cached) " >&6
5508: else
5509: ac_check_lib_save_LIBS=$LIBS
5510: LIBS="-lnsl $LIBS"
5511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512: /* end confdefs.h. */
5513:
5514: /* Override any GCC internal prototype to avoid an error.
5515: Use char because int might match the return type of a GCC
5516: builtin and then its argument prototype would still apply. */
5517: #ifdef __cplusplus
5518: extern "C"
5519: #endif
5520: char gethostbyname ();
5521: int
5522: main ()
5523: {
5524: return gethostbyname ();
5525: ;
5526: return 0;
5527: }
5528: _ACEOF
5529: if ac_fn_c_try_link "$LINENO"; then :
5530: ac_cv_lib_nsl_gethostbyname=yes
5531: else
5532: ac_cv_lib_nsl_gethostbyname=no
5533: fi
5534: rm -f core conftest.err conftest.$ac_objext \
5535: conftest$ac_exeext conftest.$ac_ext
5536: LIBS=$ac_check_lib_save_LIBS
5537: fi
5538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5539: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5540: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5541: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5542: fi
5543:
5544: if test $ac_cv_lib_nsl_gethostbyname = no; then
5545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5546: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5547: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5548: $as_echo_n "(cached) " >&6
5549: else
5550: ac_check_lib_save_LIBS=$LIBS
5551: LIBS="-lbsd $LIBS"
5552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553: /* end confdefs.h. */
5554:
5555: /* Override any GCC internal prototype to avoid an error.
5556: Use char because int might match the return type of a GCC
5557: builtin and then its argument prototype would still apply. */
5558: #ifdef __cplusplus
5559: extern "C"
5560: #endif
5561: char gethostbyname ();
5562: int
5563: main ()
5564: {
5565: return gethostbyname ();
5566: ;
5567: return 0;
5568: }
5569: _ACEOF
5570: if ac_fn_c_try_link "$LINENO"; then :
5571: ac_cv_lib_bsd_gethostbyname=yes
5572: else
5573: ac_cv_lib_bsd_gethostbyname=no
5574: fi
5575: rm -f core conftest.err conftest.$ac_objext \
5576: conftest$ac_exeext conftest.$ac_ext
5577: LIBS=$ac_check_lib_save_LIBS
5578: fi
5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5580: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5581: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5582: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5583: fi
5584:
5585: fi
5586: fi
5587:
5588: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5589: # socket/setsockopt and other routines are undefined under SCO ODT
5590: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5591: # on later versions), says Simon Leinen: it contains gethostby*
5592: # variants that don't use the name server (or something). -lsocket
5593: # must be given before -lnsl if both are needed. We assume that
5594: # if connect needs -lnsl, so does gethostbyname.
5595: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5596: if test "x$ac_cv_func_connect" = x""yes; then :
5597:
5598: fi
5599:
5600: if test $ac_cv_func_connect = no; then
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5602: $as_echo_n "checking for connect in -lsocket... " >&6; }
5603: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5604: $as_echo_n "(cached) " >&6
5605: else
5606: ac_check_lib_save_LIBS=$LIBS
5607: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609: /* end confdefs.h. */
5610:
5611: /* Override any GCC internal prototype to avoid an error.
5612: Use char because int might match the return type of a GCC
5613: builtin and then its argument prototype would still apply. */
5614: #ifdef __cplusplus
5615: extern "C"
5616: #endif
5617: char connect ();
5618: int
5619: main ()
5620: {
5621: return connect ();
5622: ;
5623: return 0;
5624: }
5625: _ACEOF
5626: if ac_fn_c_try_link "$LINENO"; then :
5627: ac_cv_lib_socket_connect=yes
5628: else
5629: ac_cv_lib_socket_connect=no
5630: fi
5631: rm -f core conftest.err conftest.$ac_objext \
5632: conftest$ac_exeext conftest.$ac_ext
5633: LIBS=$ac_check_lib_save_LIBS
5634: fi
5635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5636: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5637: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5638: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5639: fi
5640:
5641: fi
5642:
5643: # Guillermo Gomez says -lposix is necessary on A/UX.
5644: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5645: if test "x$ac_cv_func_remove" = x""yes; then :
5646:
5647: fi
5648:
5649: if test $ac_cv_func_remove = no; then
5650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5651: $as_echo_n "checking for remove in -lposix... " >&6; }
5652: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5653: $as_echo_n "(cached) " >&6
5654: else
5655: ac_check_lib_save_LIBS=$LIBS
5656: LIBS="-lposix $LIBS"
5657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658: /* end confdefs.h. */
5659:
5660: /* Override any GCC internal prototype to avoid an error.
5661: Use char because int might match the return type of a GCC
5662: builtin and then its argument prototype would still apply. */
5663: #ifdef __cplusplus
5664: extern "C"
5665: #endif
5666: char remove ();
5667: int
5668: main ()
5669: {
5670: return remove ();
5671: ;
5672: return 0;
5673: }
5674: _ACEOF
5675: if ac_fn_c_try_link "$LINENO"; then :
5676: ac_cv_lib_posix_remove=yes
5677: else
5678: ac_cv_lib_posix_remove=no
5679: fi
5680: rm -f core conftest.err conftest.$ac_objext \
5681: conftest$ac_exeext conftest.$ac_ext
5682: LIBS=$ac_check_lib_save_LIBS
5683: fi
5684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5685: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5686: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5687: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5688: fi
5689:
5690: fi
5691:
5692: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5693: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5694: if test "x$ac_cv_func_shmat" = x""yes; then :
5695:
5696: fi
5697:
5698: if test $ac_cv_func_shmat = no; then
5699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5700: $as_echo_n "checking for shmat in -lipc... " >&6; }
5701: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5702: $as_echo_n "(cached) " >&6
5703: else
5704: ac_check_lib_save_LIBS=$LIBS
5705: LIBS="-lipc $LIBS"
5706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707: /* end confdefs.h. */
5708:
5709: /* Override any GCC internal prototype to avoid an error.
5710: Use char because int might match the return type of a GCC
5711: builtin and then its argument prototype would still apply. */
5712: #ifdef __cplusplus
5713: extern "C"
5714: #endif
5715: char shmat ();
5716: int
5717: main ()
5718: {
5719: return shmat ();
5720: ;
5721: return 0;
5722: }
5723: _ACEOF
5724: if ac_fn_c_try_link "$LINENO"; then :
5725: ac_cv_lib_ipc_shmat=yes
5726: else
5727: ac_cv_lib_ipc_shmat=no
5728: fi
5729: rm -f core conftest.err conftest.$ac_objext \
5730: conftest$ac_exeext conftest.$ac_ext
5731: LIBS=$ac_check_lib_save_LIBS
5732: fi
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5734: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5735: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5736: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5737: fi
5738:
5739: fi
5740: fi
5741:
5742: # Check for libraries that X11R6 Xt/Xaw programs need.
5743: ac_save_LDFLAGS=$LDFLAGS
5744: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5745: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5746: # check for ICE first), but we must link in the order -lSM -lICE or
5747: # we get undefined symbols. So assume we have SM if we have ICE.
5748: # These have to be linked with before -lX11, unlike the other
5749: # libraries we check for below, so use a different variable.
5750: # John Interrante, Karl Berry
5751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5752: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5753: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5754: $as_echo_n "(cached) " >&6
5755: else
5756: ac_check_lib_save_LIBS=$LIBS
5757: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759: /* end confdefs.h. */
5760:
5761: /* Override any GCC internal prototype to avoid an error.
5762: Use char because int might match the return type of a GCC
5763: builtin and then its argument prototype would still apply. */
5764: #ifdef __cplusplus
5765: extern "C"
5766: #endif
5767: char IceConnectionNumber ();
5768: int
5769: main ()
5770: {
5771: return IceConnectionNumber ();
5772: ;
5773: return 0;
5774: }
5775: _ACEOF
5776: if ac_fn_c_try_link "$LINENO"; then :
5777: ac_cv_lib_ICE_IceConnectionNumber=yes
5778: else
5779: ac_cv_lib_ICE_IceConnectionNumber=no
5780: fi
5781: rm -f core conftest.err conftest.$ac_objext \
5782: conftest$ac_exeext conftest.$ac_ext
5783: LIBS=$ac_check_lib_save_LIBS
5784: fi
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5786: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5787: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5788: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5789: fi
5790:
5791: LDFLAGS=$ac_save_LDFLAGS
5792:
5793: fi
5794:
5795:
5796: if test "$ac_x_includes" != "no"; then
5797: if test x"$ac_x_includes" != x; then
5798: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5799: includeX="-I$ac_x_includes"
5800: fi
5801: fi
5802: if test "$ac_x_libraries" != "no"; then
5803: if test x"$ac_x_libraries" != x; then
5804: X_LIBS="$X_LIBS -L$ac_x_libraries"
5805: fi
5806: fi
5807:
5808: # Check whether --enable-optimization was given.
5809: if test "${enable_optimization+set}" = set; then :
5810: enableval=$enable_optimization;
5811: if test "$enableval" = "no"; then
5812: CFLAGS=
5813: FFLAGS=
5814: CXXFLAGS=
5815: FCFLAGS=
5816: else
5817: CFLAGS="$CFLAGS $enable_optimization"
5818: FFLAGS="$FFLAGS $enable_optimization"
5819: FCFLAGS="$FCFLAGS $enable_optimization"
5820: fi
5821: else
5822:
5823: CFLAGS="$CFLAGS $OPTIMISATION_C"
5824: FFLAGS="$FFLAGS $OPTIMISATION_F"
5825: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5826:
5827:
5828: fi
5829:
5830:
5831: # Check whether --enable-final-encoding was given.
5832: if test "${enable_final_encoding+set}" = set; then :
5833: enableval=$enable_final_encoding;
5834: if test "$enableval" = "no"; then
5835: FINAL_ENCODING="\$(shell locale charmap)"
5836: else
5837: FINAL_ENCODING="$enable_final_encoding"
5838: fi
5839: else
5840: FINAL_ENCODING="\$(shell locale charmap)"
5841: fi
5842:
5843:
5844: # Check whether --enable-tex was given.
5845: if test "${enable_tex+set}" = set; then :
5846: enableval=$enable_tex;
5847: if test "$enableval" = "no"; then
5848: TEX_SUPPORT=no
5849: else
5850: TEX_SUPPORT=yes
5851: fi
5852: else
5853: TEX_SUPPORT=guessed
5854: fi
5855:
5856:
5857: # Check whether --enable-vim was given.
5858: if test "${enable_vim+set}" = set; then :
5859: enableval=$enable_vim;
5860: if test "$enableval" = "no"; then
5861: VIM_SUPPORT=no
5862: else
5863: VIM_SUPPORT=yes
5864: fi
5865: else
5866: VIM_SUPPORT=guessed
5867: fi
5868:
5869:
5870: # Check whether --enable-embedded-gnuplot was given.
5871: if test "${enable_embedded_gnuplot+set}" = set; then :
5872: enableval=$enable_embedded_gnuplot;
5873: if test "$enableval" = "no"; then
5874: MYGNUPLOT=no
5875: else
5876: MYGNUPLOT=yes
5877: fi
5878: else
5879:
5880: MYGNUPLOT=yes
5881: fi
5882:
5883:
5884: # Check whether --enable-gnuplot was given.
5885: if test "${enable_gnuplot+set}" = set; then :
5886: enableval=$enable_gnuplot;
5887: if test "$enableval" = "no"; then
5888: GNUPLOT_SUPPORT=no
5889: MYGNUPLOT=no
5890: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5891: else
5892: GNUPLOT_SUPPORT=yes
5893: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5894: fi
5895: else
5896:
5897: if test "$MYGNUPLOT" = "yes"; then
5898: GNUPLOT_SUPPORT=yes
5899: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5900: else
5901: GNUPLOT_SUPPORT=guessed
5902: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5903: fi
5904: fi
5905:
5906:
5907: # Check whether --enable-motif was given.
5908: if test "${enable_motif+set}" = set; then :
5909: enableval=$enable_motif;
5910: if test "$enableval" = "no"; then
5911: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5912: else
5913: CFLAGS_ORIG=$CFLAGS
5914: LIBS_ORIG=$LIBS
5915: CFLAGS="$CFLAGS $X_CFLAGS"
5916: LIBS="$LIB $X_LIBS"
5917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5918: $as_echo_n "checking for main in -lXm... " >&6; }
5919: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5920: $as_echo_n "(cached) " >&6
5921: else
5922: ac_check_lib_save_LIBS=$LIBS
5923: LIBS="-lXm $LIBS"
5924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925: /* end confdefs.h. */
5926:
5927:
5928: int
5929: main ()
5930: {
5931: return main ();
5932: ;
5933: return 0;
5934: }
5935: _ACEOF
5936: if ac_fn_c_try_link "$LINENO"; then :
5937: ac_cv_lib_Xm_main=yes
5938: else
5939: ac_cv_lib_Xm_main=no
5940: fi
5941: rm -f core conftest.err conftest.$ac_objext \
5942: conftest$ac_exeext conftest.$ac_ext
5943: LIBS=$ac_check_lib_save_LIBS
5944: fi
5945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5946: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5947: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5948: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5949: else
5950: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5951: fi
5952:
5953: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5954: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5955: Motif flag is disabled.
5956: " >&5
5957: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5958: Motif flag is disabled.
5959: " >&2;}
5960: fi
5961: LIBS=$LIBS_ORIG
5962: CFLAGS=$CFLAGS_ORIG
5963: fi
5964: else
5965: MOTIF_SUPPORT=guessed
5966: fi
5967:
5968:
5969: # Check whether --enable-experimental was given.
5970: if test "${enable_experimental+set}" = set; then :
5971: enableval=$enable_experimental;
5972: if test "$enableval" = "no"; then
5973: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5974: else
5975: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5976: fi
5977: else
5978: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5979: fi
5980:
5981:
5982: # Check whether --enable-debug was given.
5983: if test "${enable_debug+set}" = set; then :
5984: enableval=$enable_debug;
5985: if test "$enableval" = "no"; then
5986: DEBUG=""
5987: DEBUG_CODE="-UDEBUG"
5988: else
5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEBUG=\"-lefence\" in -lefence" >&5
5990: $as_echo_n "checking for DEBUG=\"-lefence\" in -lefence... " >&6; }
5991: if test "${ac_cv_lib_efence_DEBUG___lefence_+set}" = set; then :
5992: $as_echo_n "(cached) " >&6
5993: else
5994: ac_check_lib_save_LIBS=$LIBS
5995: LIBS="-lefence $LIBS"
5996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997: /* end confdefs.h. */
5998:
5999: /* Override any GCC internal prototype to avoid an error.
6000: Use char because int might match the return type of a GCC
6001: builtin and then its argument prototype would still apply. */
6002: #ifdef __cplusplus
6003: extern "C"
6004: #endif
6005: char DEBUG="-lefence" ();
6006: int
6007: main ()
6008: {
6009: return DEBUG="-lefence" ();
6010: ;
6011: return 0;
6012: }
6013: _ACEOF
6014: if ac_fn_c_try_link "$LINENO"; then :
6015: ac_cv_lib_efence_DEBUG___lefence_=yes
6016: else
6017: ac_cv_lib_efence_DEBUG___lefence_=no
6018: fi
6019: rm -f core conftest.err conftest.$ac_objext \
6020: conftest$ac_exeext conftest.$ac_ext
6021: LIBS=$ac_check_lib_save_LIBS
6022: fi
6023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_DEBUG___lefence_" >&5
6024: $as_echo "$ac_cv_lib_efence_DEBUG___lefence_" >&6; }
6025: if test "x$ac_cv_lib_efence_DEBUG___lefence_" = x""yes; then :
6026: DEBUG=""
6027: fi
6028:
6029: DEBUG_CODE="-DDEBUG"
6030: if test "$DEBUG" = ""; then
6031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find efence! You may install it.
6032: Debug flag is disabled.
6033: " >&5
6034: $as_echo "$as_me: WARNING: Can not find efence! You may install it.
6035: Debug flag is disabled.
6036: " >&2;}
6037: fi
6038: fi
6039: else
6040:
6041: DEBUG_CODE="-UDEBUG"
6042: DEBUG=""
6043: fi
6044:
6045:
6046: # Check whether --enable-profile was given.
6047: if test "${enable_profile+set}" = set; then :
6048: enableval=$enable_profile;
6049: if test "$enableval" = "no"; then
6050: PROFILAGE=""
6051: else
6052: PROFILAGE="-pg"
6053: fi
6054: else
6055: PROFILAGE=""
6056: fi
6057:
6058:
6059:
6060:
6061:
6062: if test ! -d tools; then
6063: mkdir tools
6064: fi
6065: if test ! -d "$srcdir"/tools/$NCURSES; then
6066: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6067: (cd "$srcdir/tools" && tar -xf -)
6068: fi
6069: if test ! -d "$srcdir"/tools/$READLINE; then
6070: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6071: (cd "$srcdir/tools" && tar -xf -)
6072: fi
6073: if test ! -d "$srcdir"/tools/$UNITS; then
6074: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6075: (cd "$srcdir/tools" && tar -xf -)
6076: fi
6077: if test ! -d "$srcdir"/tools/$GSL; then
6078: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6079: (cd "$srcdir/tools" && tar -xf -)
6080: fi
6081: if test ! -d "$srcdir"/tools/$GPP; then
6082: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6083: (cd "$srcdir/tools" && tar -xf -)
6084: fi
6085: if test ! -d "$srcdir"/tools/$FILE; then
6086: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
1.3 bertrand 6087: (cd "$srcdir/tools" && tar -xf - )
1.4 ! bertrand 6088: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
1.3 bertrand 6089: sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > \
6090: "$srcdir"/tools/$FILE/src/Makefile.am2
6091: sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' \
6092: "$srcdir"/tools/$FILE/src/Makefile.am2 | \
6093: sed 's/^file_/rplfile_/g' > \
6094: "$srcdir"/tools/$FILE/src/Makefile.am
6095: \rm -f "$srcdir"/tools/$FILE/src/Makefile.am2
1.1 bertrand 6096: fi
6097: if test ! -d "$srcdir"/tools/$ICONV; then
6098: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6099: (cd "$srcdir/tools" && tar -xf -)
6100: fi
6101:
6102: # Extract the first word of "libtoolize", so it can be a program name with args.
6103: set dummy libtoolize; ac_word=$2
6104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105: $as_echo_n "checking for $ac_word... " >&6; }
6106: if test "${ac_cv_prog_LIBTOOLIZE+set}" = set; then :
6107: $as_echo_n "(cached) " >&6
6108: else
6109: if test -n "$LIBTOOLIZE"; then
6110: ac_cv_prog_LIBTOOLIZE="$LIBTOOLIZE" # Let the user override the test.
6111: else
6112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113: for as_dir in $PATH
6114: do
6115: IFS=$as_save_IFS
6116: test -z "$as_dir" && as_dir=.
6117: for ac_exec_ext in '' $ac_executable_extensions; do
6118: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119: ac_cv_prog_LIBTOOLIZE="yes"
6120: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121: break 2
6122: fi
6123: done
6124: done
6125: IFS=$as_save_IFS
6126:
6127: test -z "$ac_cv_prog_LIBTOOLIZE" && ac_cv_prog_LIBTOOLIZE="no"
6128: fi
6129: fi
6130: LIBTOOLIZE=$ac_cv_prog_LIBTOOLIZE
6131: if test -n "$LIBTOOLIZE"; then
6132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOLIZE" >&5
6133: $as_echo "$LIBTOOLIZE" >&6; }
6134: else
6135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136: $as_echo "no" >&6; }
6137: fi
6138:
6139:
6140: if test "$LIBTOOLIZE" = "no"; then
6141: as_fn_error "Cannot find libtoolize! You have to install it." "$LINENO" 5
6142: fi
6143:
6144: # Extract the first word of "aclocal", so it can be a program name with args.
6145: set dummy aclocal; ac_word=$2
6146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147: $as_echo_n "checking for $ac_word... " >&6; }
6148: if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6149: $as_echo_n "(cached) " >&6
6150: else
6151: if test -n "$ACLOCAL"; then
6152: ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6153: else
6154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155: for as_dir in $PATH
6156: do
6157: IFS=$as_save_IFS
6158: test -z "$as_dir" && as_dir=.
6159: for ac_exec_ext in '' $ac_executable_extensions; do
6160: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161: ac_cv_prog_ACLOCAL="yes"
6162: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163: break 2
6164: fi
6165: done
6166: done
6167: IFS=$as_save_IFS
6168:
6169: test -z "$ac_cv_prog_ACLOCAL" && ac_cv_prog_ACLOCAL="no"
6170: fi
6171: fi
6172: ACLOCAL=$ac_cv_prog_ACLOCAL
6173: if test -n "$ACLOCAL"; then
6174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6175: $as_echo "$ACLOCAL" >&6; }
6176: else
6177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178: $as_echo "no" >&6; }
6179: fi
6180:
6181:
6182: if test "$ACLOCAL" = "no"; then
6183: as_fn_error "Cannot find aclocal! You have to install it." "$LINENO" 5
6184: fi
6185:
6186: # Extract the first word of "automake", so it can be a program name with args.
6187: set dummy automake; ac_word=$2
6188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189: $as_echo_n "checking for $ac_word... " >&6; }
6190: if test "${ac_cv_prog_AUTOMAKE+set}" = set; then :
6191: $as_echo_n "(cached) " >&6
6192: else
6193: if test -n "$AUTOMAKE"; then
6194: ac_cv_prog_AUTOMAKE="$AUTOMAKE" # Let the user override the test.
6195: else
6196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197: for as_dir in $PATH
6198: do
6199: IFS=$as_save_IFS
6200: test -z "$as_dir" && as_dir=.
6201: for ac_exec_ext in '' $ac_executable_extensions; do
6202: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203: ac_cv_prog_AUTOMAKE="yes"
6204: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205: break 2
6206: fi
6207: done
6208: done
6209: IFS=$as_save_IFS
6210:
6211: test -z "$ac_cv_prog_AUTOMAKE" && ac_cv_prog_AUTOMAKE="no"
6212: fi
6213: fi
6214: AUTOMAKE=$ac_cv_prog_AUTOMAKE
6215: if test -n "$AUTOMAKE"; then
6216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
6217: $as_echo "$AUTOMAKE" >&6; }
6218: else
6219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220: $as_echo "no" >&6; }
6221: fi
6222:
6223:
6224: if test "$AUTOMAKE" = "no"; then
6225: as_fn_error "Cannot find automake! You have to install it." "$LINENO" 5
6226: fi
6227:
6228: # Extract the first word of "autoconf", so it can be a program name with args.
6229: set dummy autoconf; ac_word=$2
6230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231: $as_echo_n "checking for $ac_word... " >&6; }
6232: if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6233: $as_echo_n "(cached) " >&6
6234: else
6235: if test -n "$AUTOCONF"; then
6236: ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6237: else
6238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239: for as_dir in $PATH
6240: do
6241: IFS=$as_save_IFS
6242: test -z "$as_dir" && as_dir=.
6243: for ac_exec_ext in '' $ac_executable_extensions; do
6244: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245: ac_cv_prog_AUTOCONF="yes"
6246: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247: break 2
6248: fi
6249: done
6250: done
6251: IFS=$as_save_IFS
6252:
6253: test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="no"
6254: fi
6255: fi
6256: AUTOCONF=$ac_cv_prog_AUTOCONF
6257: if test -n "$AUTOCONF"; then
6258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6259: $as_echo "$AUTOCONF" >&6; }
6260: else
6261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262: $as_echo "no" >&6; }
6263: fi
6264:
6265:
6266: if test "$AUTOCONF" = "no"; then
6267: as_fn_error "Cannot find autoconf! You have to install it." "$LINENO" 5
6268: fi
6269:
6270: (cd "$srcdir"/tools/$FILE && libtoolize --copy --force \
6271: && aclocal && automake -af && autoconf);
6272:
6273:
6274:
6275: # Check whether --enable-final-run-path was given.
6276: if test "${enable_final_run_path+set}" = set; then :
6277: enableval=$enable_final_run_path;
6278: if test "x$enable_final_run_path" = "x"; then
6279: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6280: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6281: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6282: else
6283: RUNPATH="$enable_final_run_path"
6284: fi
6285:
6286: else
6287: RUNPATH="\${prefix}"
6288:
6289: fi
6290:
6291:
6292:
6293:
6294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6295: $as_echo_n "checking whether ln -s works... " >&6; }
6296: LN_S=$as_ln_s
6297: if test "$LN_S" = "ln -s"; then
6298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6299: $as_echo "yes" >&6; }
6300: else
6301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6302: $as_echo "no, using $LN_S" >&6; }
6303: fi
6304:
6305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6306: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6307: set x ${MAKE-make}
6308: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6309: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6310: $as_echo_n "(cached) " >&6
6311: else
6312: cat >conftest.make <<\_ACEOF
6313: SHELL = /bin/sh
6314: all:
6315: @echo '@@@%%%=$(MAKE)=@@@%%%'
6316: _ACEOF
6317: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6318: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6319: *@@@%%%=?*=@@@%%%*)
6320: eval ac_cv_prog_make_${ac_make}_set=yes;;
6321: *)
6322: eval ac_cv_prog_make_${ac_make}_set=no;;
6323: esac
6324: rm -f conftest.make
6325: fi
6326: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6328: $as_echo "yes" >&6; }
6329: SET_MAKE=
6330: else
6331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332: $as_echo "no" >&6; }
6333: SET_MAKE="MAKE=${MAKE-make}"
6334: fi
6335:
6336: if test -n "$ac_tool_prefix"; then
6337: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6338: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340: $as_echo_n "checking for $ac_word... " >&6; }
6341: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6342: $as_echo_n "(cached) " >&6
6343: else
6344: if test -n "$RANLIB"; then
6345: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6346: else
6347: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348: for as_dir in $PATH
6349: do
6350: IFS=$as_save_IFS
6351: test -z "$as_dir" && as_dir=.
6352: for ac_exec_ext in '' $ac_executable_extensions; do
6353: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6355: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356: break 2
6357: fi
6358: done
6359: done
6360: IFS=$as_save_IFS
6361:
6362: fi
6363: fi
6364: RANLIB=$ac_cv_prog_RANLIB
6365: if test -n "$RANLIB"; then
6366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6367: $as_echo "$RANLIB" >&6; }
6368: else
6369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370: $as_echo "no" >&6; }
6371: fi
6372:
6373:
6374: fi
6375: if test -z "$ac_cv_prog_RANLIB"; then
6376: ac_ct_RANLIB=$RANLIB
6377: # Extract the first word of "ranlib", so it can be a program name with args.
6378: set dummy ranlib; ac_word=$2
6379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380: $as_echo_n "checking for $ac_word... " >&6; }
6381: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6382: $as_echo_n "(cached) " >&6
6383: else
6384: if test -n "$ac_ct_RANLIB"; then
6385: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6386: else
6387: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388: for as_dir in $PATH
6389: do
6390: IFS=$as_save_IFS
6391: test -z "$as_dir" && as_dir=.
6392: for ac_exec_ext in '' $ac_executable_extensions; do
6393: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394: ac_cv_prog_ac_ct_RANLIB="ranlib"
6395: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396: break 2
6397: fi
6398: done
6399: done
6400: IFS=$as_save_IFS
6401:
6402: fi
6403: fi
6404: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6405: if test -n "$ac_ct_RANLIB"; then
6406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6407: $as_echo "$ac_ct_RANLIB" >&6; }
6408: else
6409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410: $as_echo "no" >&6; }
6411: fi
6412:
6413: if test "x$ac_ct_RANLIB" = x; then
6414: RANLIB=":"
6415: else
6416: case $cross_compiling:$ac_tool_warned in
6417: yes:)
6418: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420: ac_tool_warned=yes ;;
6421: esac
6422: RANLIB=$ac_ct_RANLIB
6423: fi
6424: else
6425: RANLIB="$ac_cv_prog_RANLIB"
6426: fi
6427:
6428:
6429: # Extract the first word of "awk", so it can be a program name with args.
6430: set dummy awk; ac_word=$2
6431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432: $as_echo_n "checking for $ac_word... " >&6; }
6433: if test "${ac_cv_prog_AWK+set}" = set; then :
6434: $as_echo_n "(cached) " >&6
6435: else
6436: if test -n "$AWK"; then
6437: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6438: else
6439: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440: for as_dir in $PATH
6441: do
6442: IFS=$as_save_IFS
6443: test -z "$as_dir" && as_dir=.
6444: for ac_exec_ext in '' $ac_executable_extensions; do
6445: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446: ac_cv_prog_AWK="yes"
6447: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448: break 2
6449: fi
6450: done
6451: done
6452: IFS=$as_save_IFS
6453:
6454: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6455: fi
6456: fi
6457: AWK=$ac_cv_prog_AWK
6458: if test -n "$AWK"; then
6459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6460: $as_echo "$AWK" >&6; }
6461: else
6462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463: $as_echo "no" >&6; }
6464: fi
6465:
6466:
6467: if test "$AWK" = no; then
6468: as_fn_error "Can not find awk !" "$LINENO" 5
6469: fi
6470:
6471: # Extract the first word of "sed", so it can be a program name with args.
6472: set dummy sed; ac_word=$2
6473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474: $as_echo_n "checking for $ac_word... " >&6; }
6475: if test "${ac_cv_prog_SED+set}" = set; then :
6476: $as_echo_n "(cached) " >&6
6477: else
6478: if test -n "$SED"; then
6479: ac_cv_prog_SED="$SED" # Let the user override the test.
6480: else
6481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482: for as_dir in $PATH
6483: do
6484: IFS=$as_save_IFS
6485: test -z "$as_dir" && as_dir=.
6486: for ac_exec_ext in '' $ac_executable_extensions; do
6487: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488: ac_cv_prog_SED="yes"
6489: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490: break 2
6491: fi
6492: done
6493: done
6494: IFS=$as_save_IFS
6495:
6496: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6497: fi
6498: fi
6499: SED=$ac_cv_prog_SED
6500: if test -n "$SED"; then
6501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6502: $as_echo "$SED" >&6; }
6503: else
6504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505: $as_echo "no" >&6; }
6506: fi
6507:
6508:
6509: if test "$SED" = no; then
6510: as_fn_error "Can not find sed !" "$LINENO" 5
6511: fi
6512:
6513: if test "$TEX_SUPPORT" = guessed; then
6514: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6515:
6516: # Extract the first word of "tex", so it can be a program name with args.
6517: set dummy tex; 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_TEX+set}" = set; then :
6521: $as_echo_n "(cached) " >&6
6522: else
6523: if test -n "$TEX"; then
6524: ac_cv_prog_TEX="$TEX" # 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_TEX="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_TEX" && ac_cv_prog_TEX="no"
6542: fi
6543: fi
6544: TEX=$ac_cv_prog_TEX
6545: if test -n "$TEX"; then
6546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6547: $as_echo "$TEX" >&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 "$TEX" = no; then
6555: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6556: Download at http://tex.loria.fr/
6557: " >&5
6558: $as_echo "$as_me: WARNING: Cannot find TeX! 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 "latex", so it can be a program name with args.
6565: set dummy latex; 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_LATEX+set}" = set; then :
6569: $as_echo_n "(cached) " >&6
6570: else
6571: if test -n "$LATEX"; then
6572: ac_cv_prog_LATEX="$LATEX" # 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_LATEX="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_LATEX" && ac_cv_prog_LATEX="no"
6590: fi
6591: fi
6592: LATEX=$ac_cv_prog_LATEX
6593: if test -n "$LATEX"; then
6594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6595: $as_echo "$LATEX" >&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 "$LATEX" = no; then
6603: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6604: Download at http://tex.loria.fr/
6605: " >&5
6606: $as_echo "$as_me: WARNING: Cannot find LaTeX! 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 "dvips", so it can be a program name with args.
6613: set dummy dvips; 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_DVIPS+set}" = set; then :
6617: $as_echo_n "(cached) " >&6
6618: else
6619: if test -n "$DVIPS"; then
6620: ac_cv_prog_DVIPS="$DVIPS" # 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_DVIPS="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_DVIPS" && ac_cv_prog_DVIPS="no"
6638: fi
6639: fi
6640: DVIPS=$ac_cv_prog_DVIPS
6641: if test -n "$DVIPS"; then
6642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6643: $as_echo "$DVIPS" >&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 "$DVIPS" = no; then
6651: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6652: Download at http://tex.loria.fr/
6653: " >&5
6654: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6655: Download at http://tex.loria.fr/
6656: " >&2;}
6657: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6658: fi
6659:
6660: # Extract the first word of "gs", so it can be a program name with args.
6661: set dummy gs; 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_GS+set}" = set; then :
6665: $as_echo_n "(cached) " >&6
6666: else
6667: if test -n "$GS"; then
6668: ac_cv_prog_GS="$GS" # 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_GS="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_GS" && ac_cv_prog_GS="no"
6686: fi
6687: fi
6688: GS=$ac_cv_prog_GS
6689: if test -n "$GS"; then
6690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6691: $as_echo "$GS" >&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 "$GS" = no; then
6699: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6700: Download at http://ftp.lip6.fr/
6701: " >&5
6702: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6703: Download at http://ftp.lip6.fr/
6704: " >&2;}
6705: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6706: fi
6707:
6708: # Extract the first word of "gv", so it can be a program name with args.
6709: set dummy gv; ac_word=$2
6710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711: $as_echo_n "checking for $ac_word... " >&6; }
6712: if test "${ac_cv_prog_GV+set}" = set; then :
6713: $as_echo_n "(cached) " >&6
6714: else
6715: if test -n "$GV"; then
6716: ac_cv_prog_GV="$GV" # Let the user override the test.
6717: else
6718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719: for as_dir in $PATH
6720: do
6721: IFS=$as_save_IFS
6722: test -z "$as_dir" && as_dir=.
6723: for ac_exec_ext in '' $ac_executable_extensions; do
6724: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725: ac_cv_prog_GV="yes"
6726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727: break 2
6728: fi
6729: done
6730: done
6731: IFS=$as_save_IFS
6732:
6733: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6734: fi
6735: fi
6736: GV=$ac_cv_prog_GV
6737: if test -n "$GV"; then
6738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6739: $as_echo "$GV" >&6; }
6740: else
6741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742: $as_echo "no" >&6; }
6743: fi
6744:
6745:
6746: if test "$GV" = no; then
6747: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6748: Download at http://ftp.lip6.fr/
6749: " >&5
6750: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6751: Download at http://ftp.lip6.fr/
6752: " >&2;}
6753: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6754: fi
6755: else
6756: if test "$TEX_SUPPORT" = no; then
6757: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6758: else
6759: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6760: fi
6761: fi
6762:
6763: if test "$GNUPLOT_SUPPORT" = guessed; then
6764: # Extract the first word of "gnuplot", so it can be a program name with args.
6765: set dummy gnuplot; ac_word=$2
6766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767: $as_echo_n "checking for $ac_word... " >&6; }
6768: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6769: $as_echo_n "(cached) " >&6
6770: else
6771: if test -n "$GNUPLOT_P"; then
6772: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6773: else
6774: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775: for as_dir in $PATH
6776: do
6777: IFS=$as_save_IFS
6778: test -z "$as_dir" && as_dir=.
6779: for ac_exec_ext in '' $ac_executable_extensions; do
6780: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781: ac_cv_prog_GNUPLOT_P="yes"
6782: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783: break 2
6784: fi
6785: done
6786: done
6787: IFS=$as_save_IFS
6788:
6789: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6790: fi
6791: fi
6792: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6793: if test -n "$GNUPLOT_P"; then
6794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6795: $as_echo "$GNUPLOT_P" >&6; }
6796: else
6797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798: $as_echo "no" >&6; }
6799: fi
6800:
6801:
6802: if test "$GNUPLOT_P" = no; then
6803: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6804: Download at http://www.gnuplot.vt.edu/
6805: " >&5
6806: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6807: Download at http://www.gnuplot.vt.edu/
6808: " >&2;}
6809: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6810: else
6811: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6812: fi
6813: else
6814: if test "$GNUPLOT_SUPPORT" = no; then
6815: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6816: else
6817: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6818: fi
6819: fi
6820:
6821: if test "$VIM_SUPPORT" = guessed; then
6822: # Extract the first word of "vim", so it can be a program name with args.
6823: set dummy vim; ac_word=$2
6824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825: $as_echo_n "checking for $ac_word... " >&6; }
6826: if test "${ac_cv_prog_VIM+set}" = set; then :
6827: $as_echo_n "(cached) " >&6
6828: else
6829: if test -n "$VIM"; then
6830: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6831: else
6832: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833: for as_dir in $PATH
6834: do
6835: IFS=$as_save_IFS
6836: test -z "$as_dir" && as_dir=.
6837: for ac_exec_ext in '' $ac_executable_extensions; do
6838: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839: ac_cv_prog_VIM="yes"
6840: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841: break 2
6842: fi
6843: done
6844: done
6845: IFS=$as_save_IFS
6846:
6847: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6848: fi
6849: fi
6850: VIM=$ac_cv_prog_VIM
6851: if test -n "$VIM"; then
6852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6853: $as_echo "$VIM" >&6; }
6854: else
6855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856: $as_echo "no" >&6; }
6857: fi
6858:
6859:
6860: if test "$VIM" = no; then
6861: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6862: Download at http://www.vim.org/
6863: " >&5
6864: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6865: Download at http://www.vim.org/
6866: " >&2;}
6867: VIM_SUPPORT="-UVIM_SUPPORT"
6868: else
6869: VIM_SUPPORT="-DVIM_SUPPORT"
6870: fi
6871: else
6872: if test "$VIM_SUPPORT" = no; then
6873: VIM_SUPPORT="-UVIM_SUPPORT"
6874: else
6875: VIM_SUPPORT="-DVIM_SUPPORT"
6876: fi
6877: fi
6878:
6879: if test "$MOTIF_SUPPORT" = guessed; then
6880: CFLAGS_ORIG=$CFLAGS
6881: LIBS_ORIG=$LIBS
6882: CFLAGS="$CFLAGS $X_CFLAGS"
6883: LIBS="$LIB $X_LIBS"
6884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6885: $as_echo_n "checking for main in -lXm... " >&6; }
6886: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6887: $as_echo_n "(cached) " >&6
6888: else
6889: ac_check_lib_save_LIBS=$LIBS
6890: LIBS="-lXm $LIBS"
6891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892: /* end confdefs.h. */
6893:
6894:
6895: int
6896: main ()
6897: {
6898: return main ();
6899: ;
6900: return 0;
6901: }
6902: _ACEOF
6903: if ac_fn_c_try_link "$LINENO"; then :
6904: ac_cv_lib_Xm_main=yes
6905: else
6906: ac_cv_lib_Xm_main=no
6907: fi
6908: rm -f core conftest.err conftest.$ac_objext \
6909: conftest$ac_exeext conftest.$ac_ext
6910: LIBS=$ac_check_lib_save_LIBS
6911: fi
6912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6913: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6914: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6915: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6916: else
6917: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6918: fi
6919:
6920: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6921: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6922: Motif flag is disabled.
6923: " >&5
6924: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6925: Motif flag is disabled.
6926: " >&2;}
6927: fi
6928: LIBS=$LIBS_ORIG
6929: CFLAGS=$CFLAGS_ORIG
6930: fi
6931:
6932: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6933: CFLAGS_ORIG=$CFLAGS
6934: LIBS_ORIG=$LIBS
6935: CFLAGS="$CFLAGS $X_CFLAGS"
6936: LIBS="$LIB $X_LIBS"
6937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6938: $as_echo_n "checking for main in -lXpm... " >&6; }
6939: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6940: $as_echo_n "(cached) " >&6
6941: else
6942: ac_check_lib_save_LIBS=$LIBS
6943: LIBS="-lXpm $LIBS"
6944: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945: /* end confdefs.h. */
6946:
6947:
6948: int
6949: main ()
6950: {
6951: return main ();
6952: ;
6953: return 0;
6954: }
6955: _ACEOF
6956: if ac_fn_c_try_link "$LINENO"; then :
6957: ac_cv_lib_Xpm_main=yes
6958: else
6959: ac_cv_lib_Xpm_main=no
6960: fi
6961: rm -f core conftest.err conftest.$ac_objext \
6962: conftest$ac_exeext conftest.$ac_ext
6963: LIBS=$ac_check_lib_save_LIBS
6964: fi
6965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6966: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6967: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6968: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6969: else
6970: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6971: fi
6972:
6973: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6974: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6975: else
6976: libX=""
6977: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6978: Motif flag is disabled.
6979: " >&5
6980: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6981: Motif flag is disabled.
6982: " >&2;}
6983: fi
6984: LIBS=$LIBS_ORIG
6985: CFLAGS=$CFLAGS_ORIG
6986: else
6987: libX=""
6988: fi
6989:
6990:
6991:
6992:
6993:
6994:
6995:
6996:
6997:
6998:
6999:
7000: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7001:
7002:
7003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7004: $as_echo_n "checking for main in -lm... " >&6; }
7005: if test "${ac_cv_lib_m_main+set}" = set; then :
7006: $as_echo_n "(cached) " >&6
7007: else
7008: ac_check_lib_save_LIBS=$LIBS
7009: LIBS="-lm $LIBS"
7010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011: /* end confdefs.h. */
7012:
7013:
7014: int
7015: main ()
7016: {
7017: return main ();
7018: ;
7019: return 0;
7020: }
7021: _ACEOF
7022: if ac_fn_c_try_link "$LINENO"; then :
7023: ac_cv_lib_m_main=yes
7024: else
7025: ac_cv_lib_m_main=no
7026: fi
7027: rm -f core conftest.err conftest.$ac_objext \
7028: conftest$ac_exeext conftest.$ac_ext
7029: LIBS=$ac_check_lib_save_LIBS
7030: fi
7031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7032: $as_echo "$ac_cv_lib_m_main" >&6; }
7033: if test "x$ac_cv_lib_m_main" = x""yes; then :
7034: cat >>confdefs.h <<_ACEOF
7035: #define HAVE_LIBM 1
7036: _ACEOF
7037:
7038: LIBS="-lm $LIBS"
7039:
7040: else
7041: as_fn_error "Can not find libm !" "$LINENO" 5
7042: fi
7043:
7044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7045: $as_echo_n "checking for main in -lpthread... " >&6; }
7046: if test "${ac_cv_lib_pthread_main+set}" = set; then :
7047: $as_echo_n "(cached) " >&6
7048: else
7049: ac_check_lib_save_LIBS=$LIBS
7050: LIBS="-lpthread $LIBS"
7051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052: /* end confdefs.h. */
7053:
7054:
7055: int
7056: main ()
7057: {
7058: return main ();
7059: ;
7060: return 0;
7061: }
7062: _ACEOF
7063: if ac_fn_c_try_link "$LINENO"; then :
7064: ac_cv_lib_pthread_main=yes
7065: else
7066: ac_cv_lib_pthread_main=no
7067: fi
7068: rm -f core conftest.err conftest.$ac_objext \
7069: conftest$ac_exeext conftest.$ac_ext
7070: LIBS=$ac_check_lib_save_LIBS
7071: fi
7072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7073: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7074: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7075: cat >>confdefs.h <<_ACEOF
7076: #define HAVE_LIBPTHREAD 1
7077: _ACEOF
7078:
7079: LIBS="-lpthread $LIBS"
7080:
7081: else
7082: as_fn_error "Can not find libpthread !" "$LINENO" 5
7083: fi
7084:
7085:
7086: if test "$CYGWIN" != yes; then
7087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7088: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7089: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7090: $as_echo_n "(cached) " >&6
7091: else
7092: ac_check_lib_save_LIBS=$LIBS
7093: LIBS="-ldl $LIBS"
7094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095: /* end confdefs.h. */
7096:
7097: /* Override any GCC internal prototype to avoid an error.
7098: Use char because int might match the return type of a GCC
7099: builtin and then its argument prototype would still apply. */
7100: #ifdef __cplusplus
7101: extern "C"
7102: #endif
7103: char dlopen ();
7104: int
7105: main ()
7106: {
7107: return dlopen ();
7108: ;
7109: return 0;
7110: }
7111: _ACEOF
7112: if ac_fn_c_try_link "$LINENO"; then :
7113: ac_cv_lib_dl_dlopen=yes
7114: else
7115: ac_cv_lib_dl_dlopen=no
7116: fi
7117: rm -f core conftest.err conftest.$ac_objext \
7118: conftest$ac_exeext conftest.$ac_ext
7119: LIBS=$ac_check_lib_save_LIBS
7120: fi
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7122: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7123: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7124: LIBS="$LIBS -ldl"
7125: else
7126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7127: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7128: fi
7129:
7130: fi
7131:
7132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7133: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7134: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7135: $as_echo_n "(cached) " >&6
7136: else
7137: ac_check_lib_save_LIBS=$LIBS
7138: LIBS="-lrt $LIBS"
7139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140: /* end confdefs.h. */
7141:
7142: /* Override any GCC internal prototype to avoid an error.
7143: Use char because int might match the return type of a GCC
7144: builtin and then its argument prototype would still apply. */
7145: #ifdef __cplusplus
7146: extern "C"
7147: #endif
7148: char nanosleep ();
7149: int
7150: main ()
7151: {
7152: return nanosleep ();
7153: ;
7154: return 0;
7155: }
7156: _ACEOF
7157: if ac_fn_c_try_link "$LINENO"; then :
7158: ac_cv_lib_rt_nanosleep=yes
7159: else
7160: ac_cv_lib_rt_nanosleep=no
7161: fi
7162: rm -f core conftest.err conftest.$ac_objext \
7163: conftest$ac_exeext conftest.$ac_ext
7164: LIBS=$ac_check_lib_save_LIBS
7165: fi
7166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7167: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7168: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7169: LIBS="$LIBS -lrt"
7170: else
7171: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7172: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7173: fi
7174:
7175:
7176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7177: $as_echo_n "checking for bind in -lsocket... " >&6; }
7178: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7179: $as_echo_n "(cached) " >&6
7180: else
7181: ac_check_lib_save_LIBS=$LIBS
7182: LIBS="-lsocket $LIBS"
7183: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184: /* end confdefs.h. */
7185:
7186: /* Override any GCC internal prototype to avoid an error.
7187: Use char because int might match the return type of a GCC
7188: builtin and then its argument prototype would still apply. */
7189: #ifdef __cplusplus
7190: extern "C"
7191: #endif
7192: char bind ();
7193: int
7194: main ()
7195: {
7196: return bind ();
7197: ;
7198: return 0;
7199: }
7200: _ACEOF
7201: if ac_fn_c_try_link "$LINENO"; then :
7202: ac_cv_lib_socket_bind=yes
7203: else
7204: ac_cv_lib_socket_bind=no
7205: fi
7206: rm -f core conftest.err conftest.$ac_objext \
7207: conftest$ac_exeext conftest.$ac_ext
7208: LIBS=$ac_check_lib_save_LIBS
7209: fi
7210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7211: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7212: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7213: LIBS="$LIBS -lsocket"
7214: else
7215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7216: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7217: fi
7218:
7219:
7220: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7221:
7222: # Check whether --with-mysql was given.
7223: if test "${with_mysql+set}" = set; then :
7224: withval=$with_mysql;
7225: else
7226: with_mysql=check
7227: fi
7228:
7229:
7230: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7231: libMySQLinc="-I/usr/include"
7232: libMySQLlib="-L/usr/lib"
7233:
7234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7235: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7236: saved_CFLAGS="$CFLAGS"
7237: CFLAGS="$CFLAGS $libMySQLinc"
7238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239: /* end confdefs.h. */
7240: #include "mysql.h"
7241: int
7242: main ()
7243: {
7244:
7245: ;
7246: return 0;
7247: }
7248: _ACEOF
7249: if ac_fn_c_try_compile "$LINENO"; then :
7250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7251: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7252: libMySQLinc=$libMySQLinc/mysql
7253: else
7254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7256: fi
7257: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258: CFLAGS=$saved_CFLAGS
7259:
7260: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7262: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7263: saved_CFLAGS="$CFLAGS"
7264: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7265: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266: /* end confdefs.h. */
7267: #include "mysql.h"
7268: int
7269: main ()
7270: {
7271:
7272: ;
7273: return 0;
7274: }
7275: _ACEOF
7276: if ac_fn_c_try_compile "$LINENO"; then :
7277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7279: libMySQLinc=$libMySQLinc
7280: else
7281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7283: fi
7284: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285: CFLAGS=$saved_CFLAGS
7286: libMySQLinc=$libMySQLinc/mysql
7287: fi
7288:
7289: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7291: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7292: saved_CFLAGS="$CFLAGS"
7293: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295: /* end confdefs.h. */
7296: #include "mysql.h"
7297: int
7298: main ()
7299: {
7300:
7301: ;
7302: return 0;
7303: }
7304: _ACEOF
7305: if ac_fn_c_try_compile "$LINENO"; then :
7306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7307: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7308: libMySQLinc=$libMySQLinc/mysql
7309: else
7310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7312: fi
7313: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314: CFLAGS=$saved_CFLAGS
7315: libMySQLinc=$libMySQLinc/../local/include
7316: libMySQLlib=$libMySQLlib/../local/lib
7317: fi
7318:
7319: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7321: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7322: saved_CFLAGS="$CFLAGS"
7323: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7324: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325: /* end confdefs.h. */
7326: #include "mysql.h"
7327: int
7328: main ()
7329: {
7330:
7331: ;
7332: return 0;
7333: }
7334: _ACEOF
7335: if ac_fn_c_try_compile "$LINENO"; then :
7336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7337: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7338: libMySQLinc=$libMySQLinc/mysql
7339: else
7340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7342: fi
7343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344: CFLAGS=$saved_CFLAGS
7345: libMySQLinc=$libMySQLinc/../local/include/mysql
7346: libMySQLlib=$libMySQLlib/../local/lib
7347: fi
7348: else
7349: if test "x$with_mysql" != xno; then
7350: libMySQLinc="-I$with_mysql/include"
7351: libMySQLlib="-L$with_mysql/lib"
7352:
7353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7354: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7355: saved_CFLAGS="$CFLAGS"
7356: CFLAGS="$CFLAGS $libMySQLinc"
7357: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358: /* end confdefs.h. */
7359: #include "mysql.h"
7360: int
7361: main ()
7362: {
7363:
7364: ;
7365: return 0;
7366: }
7367: _ACEOF
7368: if ac_fn_c_try_compile "$LINENO"; then :
7369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7370: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7371: libMySQLinc=$libMySQLinc/mysql
7372: else
7373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7375: fi
7376: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377: CFLAGS=$saved_CFLAGS
7378:
7379: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7381: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7382: saved_CFLAGS="$CFLAGS"
7383: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385: /* end confdefs.h. */
7386: #include "mysql.h"
7387: int
7388: main ()
7389: {
7390:
7391: ;
7392: return 0;
7393: }
7394: _ACEOF
7395: if ac_fn_c_try_compile "$LINENO"; then :
7396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7397: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7398: libMySQLinc=$libMySQLinc
7399: else
7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7402: fi
7403: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404: CFLAGS=$saved_CFLAGS
7405: libMySQLinc=$libMySQLinc/mysql
7406: fi
7407: else
7408: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7409: fi
7410: fi
7411:
7412: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7413: MYSQL_LIB=no
7414:
7415: if test $MYSQL_LIB = no; then
7416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7417: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7418: saved_LIBS="$LIBS"
7419: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421: /* end confdefs.h. */
7422: #include "mysql.h"
7423: int
7424: main ()
7425: {
7426: MYSQL mysql; mysql_init(&mysql);
7427: ;
7428: return 0;
7429: }
7430: _ACEOF
7431: if ac_fn_c_try_link "$LINENO"; then :
7432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7434: else
7435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436: $as_echo "no" >&6; }; MYSQL_LIB="no"
7437: fi
7438: rm -f core conftest.err conftest.$ac_objext \
7439: conftest$ac_exeext conftest.$ac_ext
7440: LIBS=$saved_LIBS;
7441: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7442: fi
7443:
7444: if test $MYSQL_LIB = no; then
7445: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7446: fi
7447: fi
7448:
7449: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7450: libMySQLinc=
7451: libMySQLlib=
7452: fi
7453:
7454:
7455:
7456:
7457:
7458: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7459:
7460: # Check whether --with-postgresql was given.
7461: if test "${with_postgresql+set}" = set; then :
7462: withval=$with_postgresql;
7463: else
7464: with_postgresql=check
7465: fi
7466:
7467:
7468: # with_postgresql : check [pas défini], yes [uniquement --with],
7469: # no [--without], valeur [--with=valeur].
7470:
7471: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7472: libPgSQLinc="-I/usr/include"
7473: libPgSQLlib="-L/usr/lib"
7474:
7475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7476: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7477: saved_CFLAGS="$CFLAGS"
7478: CFLAGS="$CFLAGS $libPgSQLinc"
7479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480: /* end confdefs.h. */
7481: #include "libpq-fe.h"
7482: int
7483: main ()
7484: {
7485:
7486: ;
7487: return 0;
7488: }
7489: _ACEOF
7490: if ac_fn_c_try_compile "$LINENO"; then :
7491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7493: else
7494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7496: fi
7497: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498: CFLAGS=$saved_CFLAGS
7499:
7500: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7501: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7502: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7503: saved_CFLAGS="$CFLAGS"
7504: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7505: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506: /* end confdefs.h. */
7507: #include "libpq-fe.h"
7508: int
7509: main ()
7510: {
7511:
7512: ;
7513: return 0;
7514: }
7515: _ACEOF
7516: if ac_fn_c_try_compile "$LINENO"; then :
7517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7518: $as_echo "yes" >&6; };
7519: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7520: else
7521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522: $as_echo "no" >&6; };
7523: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7524: fi
7525: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526: CFLAGS=$saved_CFLAGS
7527: libPgSQLinc=$libPgSQLinc/postgresql
7528: fi
7529:
7530: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7532: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7533: saved_CFLAGS="$CFLAGS"
7534: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536: /* end confdefs.h. */
7537: #include "libpq-fe.h"
7538: int
7539: main ()
7540: {
7541:
7542: ;
7543: return 0;
7544: }
7545: _ACEOF
7546: if ac_fn_c_try_compile "$LINENO"; then :
7547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548: $as_echo "yes" >&6; };
7549: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7550: else
7551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552: $as_echo "no" >&6; };
7553: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7554: fi
7555: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556: CFLAGS=$saved_CFLAGS
7557: libPgSQLinc=$libPgSQLinc/pgsql
7558: fi
7559:
7560: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7562: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7563: saved_CFLAGS="$CFLAGS"
7564: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566: /* end confdefs.h. */
7567: #include "libpq-fe.h"
7568: int
7569: main ()
7570: {
7571:
7572: ;
7573: return 0;
7574: }
7575: _ACEOF
7576: if ac_fn_c_try_compile "$LINENO"; then :
7577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7578: $as_echo "yes" >&6; };
7579: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7580: else
7581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582: $as_echo "no" >&6; };
7583: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7584: fi
7585: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586: CFLAGS=$saved_CFLAGS
7587: libPgSQLinc=$libPgSQLinc/../local/include
7588: libPgSQLlib=$libPgSQLlib/../local/lib
7589: fi
7590:
7591: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7593: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7594: saved_CFLAGS="$CFLAGS"
7595: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7596: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597: /* end confdefs.h. */
7598: #include "libpq-fe.h"
7599: int
7600: main ()
7601: {
7602:
7603: ;
7604: return 0;
7605: }
7606: _ACEOF
7607: if ac_fn_c_try_compile "$LINENO"; then :
7608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7609: $as_echo "yes" >&6; };
7610: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7611: else
7612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613: $as_echo "no" >&6; };
7614: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7615: fi
7616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617: CFLAGS=$saved_CFLAGS
7618: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7619: libPgSQLlib=$libPgSQLlib/../local/lib
7620: fi
7621:
7622: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7624: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7625: saved_CFLAGS="$CFLAGS"
7626: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628: /* end confdefs.h. */
7629: #include "libpq-fe.h"
7630: int
7631: main ()
7632: {
7633:
7634: ;
7635: return 0;
7636: }
7637: _ACEOF
7638: if ac_fn_c_try_compile "$LINENO"; then :
7639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7640: $as_echo "yes" >&6; };
7641: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7642: else
7643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644: $as_echo "no" >&6; };
7645: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7646: fi
7647: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648: CFLAGS=$saved_CFLAGS
7649: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7650: libPgSQLlib=$libPgSQLlib/../local/lib
7651: fi
7652: else
7653: if test "x$with_postgresql" != xno; then
7654: libPgSQLinc="-I$with_postgresql/include"
7655: libPgSQLlib="-L$with_postgresql/lib"
7656:
7657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7658: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7659: saved_CFLAGS="$CFLAGS"
7660: CFLAGS="$CFLAGS $libPgSQLinc"
7661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662: /* end confdefs.h. */
7663: #include "libpq-fe.h"
7664: int
7665: main ()
7666: {
7667:
7668: ;
7669: return 0;
7670: }
7671: _ACEOF
7672: if ac_fn_c_try_compile "$LINENO"; then :
7673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674: $as_echo "yes" >&6; };
7675: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7676: else
7677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678: $as_echo "no" >&6; };
7679: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7680: fi
7681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682: CFLAGS=$saved_CFLAGS
7683:
7684: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7686: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7687: saved_CFLAGS="$CFLAGS"
7688: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690: /* end confdefs.h. */
7691: #include "libpq-fe.h"
7692: int
7693: main ()
7694: {
7695:
7696: ;
7697: return 0;
7698: }
7699: _ACEOF
7700: if ac_fn_c_try_compile "$LINENO"; then :
7701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7702: $as_echo "yes" >&6; };
7703: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7704: else
7705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706: $as_echo "no" >&6; };
7707: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7708: fi
7709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710: CFLAGS=$saved_CFLAGS
7711: libPgSQLinc=$libPgSQLinc/postgresql
7712: fi
7713:
7714: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7716: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7717: saved_CFLAGS="$CFLAGS"
7718: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720: /* end confdefs.h. */
7721: #include "libpq-fe.h"
7722: int
7723: main ()
7724: {
7725:
7726: ;
7727: return 0;
7728: }
7729: _ACEOF
7730: if ac_fn_c_try_compile "$LINENO"; then :
7731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7732: $as_echo "yes" >&6; };
7733: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7734: else
7735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736: $as_echo "no" >&6; };
7737: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7738: fi
7739: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740: CFLAGS=$saved_CFLAGS
7741: libPgSQLinc=$libPgSQLinc/pgsql
7742: fi
7743: else
7744: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7745: fi
7746: fi
7747:
7748: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7749: POSTGRESQL_LIB=no
7750:
7751: if test $POSTGRESQL_LIB = no; then
7752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7753: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7754: saved_LIBS="$LIBS"
7755: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757: /* end confdefs.h. */
7758: #include "libpq-fe.h"
7759: int
7760: main ()
7761: {
7762: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7763: PQconnectdb(conninfo);
7764: ;
7765: return 0;
7766: }
7767: _ACEOF
7768: if ac_fn_c_try_link "$LINENO"; then :
7769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7770: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7771: else
7772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7774: fi
7775: rm -f core conftest.err conftest.$ac_objext \
7776: conftest$ac_exeext conftest.$ac_ext
7777: LIBS=$saved_LIBS;
7778: libPgSQLlib="$libPgSQLlib -lpq"
7779: fi
7780: fi
7781:
7782: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7783: libPgSQLinc=
7784: libPgSQLlib=
7785: fi
7786:
7787:
7788:
7789:
7790:
7791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7792: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7793: if test "${ac_cv_path_GREP+set}" = set; then :
7794: $as_echo_n "(cached) " >&6
7795: else
7796: if test -z "$GREP"; then
7797: ac_path_GREP_found=false
7798: # Loop through the user's path and test for each of PROGNAME-LIST
7799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7801: do
7802: IFS=$as_save_IFS
7803: test -z "$as_dir" && as_dir=.
7804: for ac_prog in grep ggrep; do
7805: for ac_exec_ext in '' $ac_executable_extensions; do
7806: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7807: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7808: # Check for GNU ac_path_GREP and select it if it is found.
7809: # Check for GNU $ac_path_GREP
7810: case `"$ac_path_GREP" --version 2>&1` in
7811: *GNU*)
7812: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7813: *)
7814: ac_count=0
7815: $as_echo_n 0123456789 >"conftest.in"
7816: while :
7817: do
7818: cat "conftest.in" "conftest.in" >"conftest.tmp"
7819: mv "conftest.tmp" "conftest.in"
7820: cp "conftest.in" "conftest.nl"
7821: $as_echo 'GREP' >> "conftest.nl"
7822: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7823: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7824: as_fn_arith $ac_count + 1 && ac_count=$as_val
7825: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7826: # Best one so far, save it but keep looking for a better one
7827: ac_cv_path_GREP="$ac_path_GREP"
7828: ac_path_GREP_max=$ac_count
7829: fi
7830: # 10*(2^10) chars as input seems more than enough
7831: test $ac_count -gt 10 && break
7832: done
7833: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7834: esac
7835:
7836: $ac_path_GREP_found && break 3
7837: done
7838: done
7839: done
7840: IFS=$as_save_IFS
7841: if test -z "$ac_cv_path_GREP"; then
7842: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7843: fi
7844: else
7845: ac_cv_path_GREP=$GREP
7846: fi
7847:
7848: fi
7849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7850: $as_echo "$ac_cv_path_GREP" >&6; }
7851: GREP="$ac_cv_path_GREP"
7852:
7853:
7854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7855: $as_echo_n "checking for egrep... " >&6; }
7856: if test "${ac_cv_path_EGREP+set}" = set; then :
7857: $as_echo_n "(cached) " >&6
7858: else
7859: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7860: then ac_cv_path_EGREP="$GREP -E"
7861: else
7862: if test -z "$EGREP"; then
7863: ac_path_EGREP_found=false
7864: # Loop through the user's path and test for each of PROGNAME-LIST
7865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7867: do
7868: IFS=$as_save_IFS
7869: test -z "$as_dir" && as_dir=.
7870: for ac_prog in egrep; do
7871: for ac_exec_ext in '' $ac_executable_extensions; do
7872: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7873: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7874: # Check for GNU ac_path_EGREP and select it if it is found.
7875: # Check for GNU $ac_path_EGREP
7876: case `"$ac_path_EGREP" --version 2>&1` in
7877: *GNU*)
7878: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7879: *)
7880: ac_count=0
7881: $as_echo_n 0123456789 >"conftest.in"
7882: while :
7883: do
7884: cat "conftest.in" "conftest.in" >"conftest.tmp"
7885: mv "conftest.tmp" "conftest.in"
7886: cp "conftest.in" "conftest.nl"
7887: $as_echo 'EGREP' >> "conftest.nl"
7888: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7889: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7890: as_fn_arith $ac_count + 1 && ac_count=$as_val
7891: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7892: # Best one so far, save it but keep looking for a better one
7893: ac_cv_path_EGREP="$ac_path_EGREP"
7894: ac_path_EGREP_max=$ac_count
7895: fi
7896: # 10*(2^10) chars as input seems more than enough
7897: test $ac_count -gt 10 && break
7898: done
7899: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7900: esac
7901:
7902: $ac_path_EGREP_found && break 3
7903: done
7904: done
7905: done
7906: IFS=$as_save_IFS
7907: if test -z "$ac_cv_path_EGREP"; then
7908: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7909: fi
7910: else
7911: ac_cv_path_EGREP=$EGREP
7912: fi
7913:
7914: fi
7915: fi
7916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7917: $as_echo "$ac_cv_path_EGREP" >&6; }
7918: EGREP="$ac_cv_path_EGREP"
7919:
7920:
7921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7922: $as_echo_n "checking for ANSI C header files... " >&6; }
7923: if test "${ac_cv_header_stdc+set}" = set; then :
7924: $as_echo_n "(cached) " >&6
7925: else
7926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927: /* end confdefs.h. */
7928: #include <stdlib.h>
7929: #include <stdarg.h>
7930: #include <string.h>
7931: #include <float.h>
7932:
7933: int
7934: main ()
7935: {
7936:
7937: ;
7938: return 0;
7939: }
7940: _ACEOF
7941: if ac_fn_c_try_compile "$LINENO"; then :
7942: ac_cv_header_stdc=yes
7943: else
7944: ac_cv_header_stdc=no
7945: fi
7946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947:
7948: if test $ac_cv_header_stdc = yes; then
7949: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951: /* end confdefs.h. */
7952: #include <string.h>
7953:
7954: _ACEOF
7955: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956: $EGREP "memchr" >/dev/null 2>&1; then :
7957:
7958: else
7959: ac_cv_header_stdc=no
7960: fi
7961: rm -f conftest*
7962:
7963: fi
7964:
7965: if test $ac_cv_header_stdc = yes; then
7966: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968: /* end confdefs.h. */
7969: #include <stdlib.h>
7970:
7971: _ACEOF
7972: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973: $EGREP "free" >/dev/null 2>&1; then :
7974:
7975: else
7976: ac_cv_header_stdc=no
7977: fi
7978: rm -f conftest*
7979:
7980: fi
7981:
7982: if test $ac_cv_header_stdc = yes; then
7983: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7984: if test "$cross_compiling" = yes; then :
7985: :
7986: else
7987: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988: /* end confdefs.h. */
7989: #include <ctype.h>
7990: #include <stdlib.h>
7991: #if ((' ' & 0x0FF) == 0x020)
7992: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7993: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7994: #else
7995: # define ISLOWER(c) \
7996: (('a' <= (c) && (c) <= 'i') \
7997: || ('j' <= (c) && (c) <= 'r') \
7998: || ('s' <= (c) && (c) <= 'z'))
7999: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8000: #endif
8001:
8002: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8003: int
8004: main ()
8005: {
8006: int i;
8007: for (i = 0; i < 256; i++)
8008: if (XOR (islower (i), ISLOWER (i))
8009: || toupper (i) != TOUPPER (i))
8010: return 2;
8011: return 0;
8012: }
8013: _ACEOF
8014: if ac_fn_c_try_run "$LINENO"; then :
8015:
8016: else
8017: ac_cv_header_stdc=no
8018: fi
8019: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8020: conftest.$ac_objext conftest.beam conftest.$ac_ext
8021: fi
8022:
8023: fi
8024: fi
8025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8026: $as_echo "$ac_cv_header_stdc" >&6; }
8027: if test $ac_cv_header_stdc = yes; then
8028:
8029: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8030:
8031: fi
8032:
8033: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8034: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8035: inttypes.h stdint.h unistd.h
8036: do :
8037: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8039: "
8040: eval as_val=\$$as_ac_Header
8041: if test "x$as_val" = x""yes; then :
8042: cat >>confdefs.h <<_ACEOF
8043: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8044: _ACEOF
8045:
8046: fi
8047:
8048: done
8049:
8050:
8051: # The cast to long int works around a bug in the HP C Compiler
8052: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8053: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8054: # This bug is HP SR number 8606223364.
8055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8056: $as_echo_n "checking size of void *... " >&6; }
8057: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8058: $as_echo_n "(cached) " >&6
8059: else
8060: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8061:
8062: else
8063: if test "$ac_cv_type_void_p" = yes; then
8064: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8065: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8066: { as_fn_set_status 77
8067: as_fn_error "cannot compute sizeof (void *)
8068: See \`config.log' for more details." "$LINENO" 5; }; }
8069: else
8070: ac_cv_sizeof_void_p=0
8071: fi
8072: fi
8073:
8074: fi
8075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8076: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8077:
8078:
8079:
8080: cat >>confdefs.h <<_ACEOF
8081: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8082: _ACEOF
8083:
8084:
8085: # The cast to long int works around a bug in the HP C Compiler
8086: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8087: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8088: # This bug is HP SR number 8606223364.
8089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8090: $as_echo_n "checking size of char... " >&6; }
8091: if test "${ac_cv_sizeof_char+set}" = set; then :
8092: $as_echo_n "(cached) " >&6
8093: else
8094: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8095:
8096: else
8097: if test "$ac_cv_type_char" = yes; then
8098: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8099: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8100: { as_fn_set_status 77
8101: as_fn_error "cannot compute sizeof (char)
8102: See \`config.log' for more details." "$LINENO" 5; }; }
8103: else
8104: ac_cv_sizeof_char=0
8105: fi
8106: fi
8107:
8108: fi
8109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8110: $as_echo "$ac_cv_sizeof_char" >&6; }
8111:
8112:
8113:
8114: cat >>confdefs.h <<_ACEOF
8115: #define SIZEOF_CHAR $ac_cv_sizeof_char
8116: _ACEOF
8117:
8118:
8119: # The cast to long int works around a bug in the HP C Compiler
8120: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8121: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8122: # This bug is HP SR number 8606223364.
8123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8124: $as_echo_n "checking size of short int... " >&6; }
8125: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8126: $as_echo_n "(cached) " >&6
8127: else
8128: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8129:
8130: else
8131: if test "$ac_cv_type_short_int" = yes; then
8132: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8133: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8134: { as_fn_set_status 77
8135: as_fn_error "cannot compute sizeof (short int)
8136: See \`config.log' for more details." "$LINENO" 5; }; }
8137: else
8138: ac_cv_sizeof_short_int=0
8139: fi
8140: fi
8141:
8142: fi
8143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8144: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8145:
8146:
8147:
8148: cat >>confdefs.h <<_ACEOF
8149: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8150: _ACEOF
8151:
8152:
8153: # The cast to long int works around a bug in the HP C Compiler
8154: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8155: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8156: # This bug is HP SR number 8606223364.
8157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8158: $as_echo_n "checking size of int... " >&6; }
8159: if test "${ac_cv_sizeof_int+set}" = set; then :
8160: $as_echo_n "(cached) " >&6
8161: else
8162: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8163:
8164: else
8165: if test "$ac_cv_type_int" = yes; then
8166: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8168: { as_fn_set_status 77
8169: as_fn_error "cannot compute sizeof (int)
8170: See \`config.log' for more details." "$LINENO" 5; }; }
8171: else
8172: ac_cv_sizeof_int=0
8173: fi
8174: fi
8175:
8176: fi
8177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8178: $as_echo "$ac_cv_sizeof_int" >&6; }
8179:
8180:
8181:
8182: cat >>confdefs.h <<_ACEOF
8183: #define SIZEOF_INT $ac_cv_sizeof_int
8184: _ACEOF
8185:
8186:
8187: # The cast to long int works around a bug in the HP C Compiler
8188: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8189: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8190: # This bug is HP SR number 8606223364.
8191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8192: $as_echo_n "checking size of long int... " >&6; }
8193: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8194: $as_echo_n "(cached) " >&6
8195: else
8196: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8197:
8198: else
8199: if test "$ac_cv_type_long_int" = yes; then
8200: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8201: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8202: { as_fn_set_status 77
8203: as_fn_error "cannot compute sizeof (long int)
8204: See \`config.log' for more details." "$LINENO" 5; }; }
8205: else
8206: ac_cv_sizeof_long_int=0
8207: fi
8208: fi
8209:
8210: fi
8211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8212: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8213:
8214:
8215:
8216: cat >>confdefs.h <<_ACEOF
8217: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8218: _ACEOF
8219:
8220:
8221: # The cast to long int works around a bug in the HP C Compiler
8222: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8223: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8224: # This bug is HP SR number 8606223364.
8225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8226: $as_echo_n "checking size of long long int... " >&6; }
8227: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8228: $as_echo_n "(cached) " >&6
8229: else
8230: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8231:
8232: else
8233: if test "$ac_cv_type_long_long_int" = yes; then
8234: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8235: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8236: { as_fn_set_status 77
8237: as_fn_error "cannot compute sizeof (long long int)
8238: See \`config.log' for more details." "$LINENO" 5; }; }
8239: else
8240: ac_cv_sizeof_long_long_int=0
8241: fi
8242: fi
8243:
8244: fi
8245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8246: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8247:
8248:
8249:
8250: cat >>confdefs.h <<_ACEOF
8251: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8252: _ACEOF
8253:
8254:
8255: # The cast to long int works around a bug in the HP C Compiler
8256: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8257: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8258: # This bug is HP SR number 8606223364.
8259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8260: $as_echo_n "checking size of float... " >&6; }
8261: if test "${ac_cv_sizeof_float+set}" = set; then :
8262: $as_echo_n "(cached) " >&6
8263: else
8264: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8265:
8266: else
8267: if test "$ac_cv_type_float" = yes; then
8268: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8269: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8270: { as_fn_set_status 77
8271: as_fn_error "cannot compute sizeof (float)
8272: See \`config.log' for more details." "$LINENO" 5; }; }
8273: else
8274: ac_cv_sizeof_float=0
8275: fi
8276: fi
8277:
8278: fi
8279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8280: $as_echo "$ac_cv_sizeof_float" >&6; }
8281:
8282:
8283:
8284: cat >>confdefs.h <<_ACEOF
8285: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8286: _ACEOF
8287:
8288:
8289: # The cast to long int works around a bug in the HP C Compiler
8290: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8291: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8292: # This bug is HP SR number 8606223364.
8293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8294: $as_echo_n "checking size of double... " >&6; }
8295: if test "${ac_cv_sizeof_double+set}" = set; then :
8296: $as_echo_n "(cached) " >&6
8297: else
8298: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8299:
8300: else
8301: if test "$ac_cv_type_double" = yes; then
8302: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8303: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8304: { as_fn_set_status 77
8305: as_fn_error "cannot compute sizeof (double)
8306: See \`config.log' for more details." "$LINENO" 5; }; }
8307: else
8308: ac_cv_sizeof_double=0
8309: fi
8310: fi
8311:
8312: fi
8313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8314: $as_echo "$ac_cv_sizeof_double" >&6; }
8315:
8316:
8317:
8318: cat >>confdefs.h <<_ACEOF
8319: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8320: _ACEOF
8321:
8322:
8323: # The cast to long int works around a bug in the HP C Compiler
8324: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8325: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8326: # This bug is HP SR number 8606223364.
8327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8328: $as_echo_n "checking size of long double... " >&6; }
8329: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8330: $as_echo_n "(cached) " >&6
8331: else
8332: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8333:
8334: else
8335: if test "$ac_cv_type_long_double" = yes; then
8336: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8337: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8338: { as_fn_set_status 77
8339: as_fn_error "cannot compute sizeof (long double)
8340: See \`config.log' for more details." "$LINENO" 5; }; }
8341: else
8342: ac_cv_sizeof_long_double=0
8343: fi
8344: fi
8345:
8346: fi
8347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8348: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8349:
8350:
8351:
8352: cat >>confdefs.h <<_ACEOF
8353: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8354: _ACEOF
8355:
8356:
8357:
8358: ac_header_dirent=no
8359: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8360: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8362: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8363: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8364: $as_echo_n "(cached) " >&6
8365: else
8366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367: /* end confdefs.h. */
8368: #include <sys/types.h>
8369: #include <$ac_hdr>
8370:
8371: int
8372: main ()
8373: {
8374: if ((DIR *) 0)
8375: return 0;
8376: ;
8377: return 0;
8378: }
8379: _ACEOF
8380: if ac_fn_c_try_compile "$LINENO"; then :
8381: eval "$as_ac_Header=yes"
8382: else
8383: eval "$as_ac_Header=no"
8384: fi
8385: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386: fi
8387: eval ac_res=\$$as_ac_Header
8388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8389: $as_echo "$ac_res" >&6; }
8390: eval as_val=\$$as_ac_Header
8391: if test "x$as_val" = x""yes; then :
8392: cat >>confdefs.h <<_ACEOF
8393: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8394: _ACEOF
8395:
8396: ac_header_dirent=$ac_hdr; break
8397: fi
8398:
8399: done
8400: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8401: if test $ac_header_dirent = dirent.h; then
8402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8403: $as_echo_n "checking for library containing opendir... " >&6; }
8404: if test "${ac_cv_search_opendir+set}" = set; then :
8405: $as_echo_n "(cached) " >&6
8406: else
8407: ac_func_search_save_LIBS=$LIBS
8408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409: /* end confdefs.h. */
8410:
8411: /* Override any GCC internal prototype to avoid an error.
8412: Use char because int might match the return type of a GCC
8413: builtin and then its argument prototype would still apply. */
8414: #ifdef __cplusplus
8415: extern "C"
8416: #endif
8417: char opendir ();
8418: int
8419: main ()
8420: {
8421: return opendir ();
8422: ;
8423: return 0;
8424: }
8425: _ACEOF
8426: for ac_lib in '' dir; do
8427: if test -z "$ac_lib"; then
8428: ac_res="none required"
8429: else
8430: ac_res=-l$ac_lib
8431: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8432: fi
8433: if ac_fn_c_try_link "$LINENO"; then :
8434: ac_cv_search_opendir=$ac_res
8435: fi
8436: rm -f core conftest.err conftest.$ac_objext \
8437: conftest$ac_exeext
8438: if test "${ac_cv_search_opendir+set}" = set; then :
8439: break
8440: fi
8441: done
8442: if test "${ac_cv_search_opendir+set}" = set; then :
8443:
8444: else
8445: ac_cv_search_opendir=no
8446: fi
8447: rm conftest.$ac_ext
8448: LIBS=$ac_func_search_save_LIBS
8449: fi
8450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8451: $as_echo "$ac_cv_search_opendir" >&6; }
8452: ac_res=$ac_cv_search_opendir
8453: if test "$ac_res" != no; then :
8454: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8455:
8456: fi
8457:
8458: else
8459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8460: $as_echo_n "checking for library containing opendir... " >&6; }
8461: if test "${ac_cv_search_opendir+set}" = set; then :
8462: $as_echo_n "(cached) " >&6
8463: else
8464: ac_func_search_save_LIBS=$LIBS
8465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466: /* end confdefs.h. */
8467:
8468: /* Override any GCC internal prototype to avoid an error.
8469: Use char because int might match the return type of a GCC
8470: builtin and then its argument prototype would still apply. */
8471: #ifdef __cplusplus
8472: extern "C"
8473: #endif
8474: char opendir ();
8475: int
8476: main ()
8477: {
8478: return opendir ();
8479: ;
8480: return 0;
8481: }
8482: _ACEOF
8483: for ac_lib in '' x; do
8484: if test -z "$ac_lib"; then
8485: ac_res="none required"
8486: else
8487: ac_res=-l$ac_lib
8488: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8489: fi
8490: if ac_fn_c_try_link "$LINENO"; then :
8491: ac_cv_search_opendir=$ac_res
8492: fi
8493: rm -f core conftest.err conftest.$ac_objext \
8494: conftest$ac_exeext
8495: if test "${ac_cv_search_opendir+set}" = set; then :
8496: break
8497: fi
8498: done
8499: if test "${ac_cv_search_opendir+set}" = set; then :
8500:
8501: else
8502: ac_cv_search_opendir=no
8503: fi
8504: rm conftest.$ac_ext
8505: LIBS=$ac_func_search_save_LIBS
8506: fi
8507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8508: $as_echo "$ac_cv_search_opendir" >&6; }
8509: ac_res=$ac_cv_search_opendir
8510: if test "$ac_res" != no; then :
8511: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8512:
8513: fi
8514:
8515: fi
8516:
8517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8518: $as_echo_n "checking for ANSI C header files... " >&6; }
8519: if test "${ac_cv_header_stdc+set}" = set; then :
8520: $as_echo_n "(cached) " >&6
8521: else
8522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523: /* end confdefs.h. */
8524: #include <stdlib.h>
8525: #include <stdarg.h>
8526: #include <string.h>
8527: #include <float.h>
8528:
8529: int
8530: main ()
8531: {
8532:
8533: ;
8534: return 0;
8535: }
8536: _ACEOF
8537: if ac_fn_c_try_compile "$LINENO"; then :
8538: ac_cv_header_stdc=yes
8539: else
8540: ac_cv_header_stdc=no
8541: fi
8542: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543:
8544: if test $ac_cv_header_stdc = yes; then
8545: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547: /* end confdefs.h. */
8548: #include <string.h>
8549:
8550: _ACEOF
8551: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8552: $EGREP "memchr" >/dev/null 2>&1; then :
8553:
8554: else
8555: ac_cv_header_stdc=no
8556: fi
8557: rm -f conftest*
8558:
8559: fi
8560:
8561: if test $ac_cv_header_stdc = yes; then
8562: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8563: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564: /* end confdefs.h. */
8565: #include <stdlib.h>
8566:
8567: _ACEOF
8568: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569: $EGREP "free" >/dev/null 2>&1; then :
8570:
8571: else
8572: ac_cv_header_stdc=no
8573: fi
8574: rm -f conftest*
8575:
8576: fi
8577:
8578: if test $ac_cv_header_stdc = yes; then
8579: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8580: if test "$cross_compiling" = yes; then :
8581: :
8582: else
8583: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584: /* end confdefs.h. */
8585: #include <ctype.h>
8586: #include <stdlib.h>
8587: #if ((' ' & 0x0FF) == 0x020)
8588: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8589: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8590: #else
8591: # define ISLOWER(c) \
8592: (('a' <= (c) && (c) <= 'i') \
8593: || ('j' <= (c) && (c) <= 'r') \
8594: || ('s' <= (c) && (c) <= 'z'))
8595: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8596: #endif
8597:
8598: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8599: int
8600: main ()
8601: {
8602: int i;
8603: for (i = 0; i < 256; i++)
8604: if (XOR (islower (i), ISLOWER (i))
8605: || toupper (i) != TOUPPER (i))
8606: return 2;
8607: return 0;
8608: }
8609: _ACEOF
8610: if ac_fn_c_try_run "$LINENO"; then :
8611:
8612: else
8613: ac_cv_header_stdc=no
8614: fi
8615: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8616: conftest.$ac_objext conftest.beam conftest.$ac_ext
8617: fi
8618:
8619: fi
8620: fi
8621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8622: $as_echo "$ac_cv_header_stdc" >&6; }
8623: if test $ac_cv_header_stdc = yes; then
8624:
8625: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8626:
8627: fi
8628:
8629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8630: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8631: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8632: $as_echo_n "(cached) " >&6
8633: else
8634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635: /* end confdefs.h. */
8636: #include <sys/types.h>
8637: #include <sys/wait.h>
8638: #ifndef WEXITSTATUS
8639: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8640: #endif
8641: #ifndef WIFEXITED
8642: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8643: #endif
8644:
8645: int
8646: main ()
8647: {
8648: int s;
8649: wait (&s);
8650: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8651: ;
8652: return 0;
8653: }
8654: _ACEOF
8655: if ac_fn_c_try_compile "$LINENO"; then :
8656: ac_cv_header_sys_wait_h=yes
8657: else
8658: ac_cv_header_sys_wait_h=no
8659: fi
8660: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661: fi
8662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8663: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8664: if test $ac_cv_header_sys_wait_h = yes; then
8665:
8666: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8667:
8668: fi
8669:
8670: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8671: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8672: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8673: do :
8674: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8675: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8676: eval as_val=\$$as_ac_Header
8677: if test "x$as_val" = x""yes; then :
8678: cat >>confdefs.h <<_ACEOF
8679: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8680: _ACEOF
8681:
8682: fi
8683:
8684: done
8685:
8686:
8687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8688: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8689: if test "${ac_cv_c_const+set}" = set; then :
8690: $as_echo_n "(cached) " >&6
8691: else
8692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693: /* end confdefs.h. */
8694:
8695: int
8696: main ()
8697: {
8698: /* FIXME: Include the comments suggested by Paul. */
8699: #ifndef __cplusplus
8700: /* Ultrix mips cc rejects this. */
8701: typedef int charset[2];
8702: const charset cs;
8703: /* SunOS 4.1.1 cc rejects this. */
8704: char const *const *pcpcc;
8705: char **ppc;
8706: /* NEC SVR4.0.2 mips cc rejects this. */
8707: struct point {int x, y;};
8708: static struct point const zero = {0,0};
8709: /* AIX XL C 1.02.0.0 rejects this.
8710: It does not let you subtract one const X* pointer from another in
8711: an arm of an if-expression whose if-part is not a constant
8712: expression */
8713: const char *g = "string";
8714: pcpcc = &g + (g ? g-g : 0);
8715: /* HPUX 7.0 cc rejects these. */
8716: ++pcpcc;
8717: ppc = (char**) pcpcc;
8718: pcpcc = (char const *const *) ppc;
8719: { /* SCO 3.2v4 cc rejects this. */
8720: char *t;
8721: char const *s = 0 ? (char *) 0 : (char const *) 0;
8722:
8723: *t++ = 0;
8724: if (s) return 0;
8725: }
8726: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8727: int x[] = {25, 17};
8728: const int *foo = &x[0];
8729: ++foo;
8730: }
8731: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8732: typedef const int *iptr;
8733: iptr p = 0;
8734: ++p;
8735: }
8736: { /* AIX XL C 1.02.0.0 rejects this saying
8737: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8738: struct s { int j; const int *ap[3]; };
8739: struct s *b; b->j = 5;
8740: }
8741: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8742: const int foo = 10;
8743: if (!foo) return 0;
8744: }
8745: return !cs[0] && !zero.x;
8746: #endif
8747:
8748: ;
8749: return 0;
8750: }
8751: _ACEOF
8752: if ac_fn_c_try_compile "$LINENO"; then :
8753: ac_cv_c_const=yes
8754: else
8755: ac_cv_c_const=no
8756: fi
8757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758: fi
8759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8760: $as_echo "$ac_cv_c_const" >&6; }
8761: if test $ac_cv_c_const = no; then
8762:
8763: $as_echo "#define const /**/" >>confdefs.h
8764:
8765: fi
8766:
8767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8768: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8769: if test "${ac_cv_type_uid_t+set}" = set; then :
8770: $as_echo_n "(cached) " >&6
8771: else
8772: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773: /* end confdefs.h. */
8774: #include <sys/types.h>
8775:
8776: _ACEOF
8777: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8778: $EGREP "uid_t" >/dev/null 2>&1; then :
8779: ac_cv_type_uid_t=yes
8780: else
8781: ac_cv_type_uid_t=no
8782: fi
8783: rm -f conftest*
8784:
8785: fi
8786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8787: $as_echo "$ac_cv_type_uid_t" >&6; }
8788: if test $ac_cv_type_uid_t = no; then
8789:
8790: $as_echo "#define uid_t int" >>confdefs.h
8791:
8792:
8793: $as_echo "#define gid_t int" >>confdefs.h
8794:
8795: fi
8796:
8797: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8798: if test "x$ac_cv_type_pid_t" = x""yes; then :
8799:
8800: else
8801:
8802: cat >>confdefs.h <<_ACEOF
8803: #define pid_t int
8804: _ACEOF
8805:
8806: fi
8807:
8808: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8809: if test "x$ac_cv_type_size_t" = x""yes; then :
8810:
8811: else
8812:
8813: cat >>confdefs.h <<_ACEOF
8814: #define size_t unsigned int
8815: _ACEOF
8816:
8817: fi
8818:
8819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8820: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8821: if test "${ac_cv_header_time+set}" = set; then :
8822: $as_echo_n "(cached) " >&6
8823: else
8824: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825: /* end confdefs.h. */
8826: #include <sys/types.h>
8827: #include <sys/time.h>
8828: #include <time.h>
8829:
8830: int
8831: main ()
8832: {
8833: if ((struct tm *) 0)
8834: return 0;
8835: ;
8836: return 0;
8837: }
8838: _ACEOF
8839: if ac_fn_c_try_compile "$LINENO"; then :
8840: ac_cv_header_time=yes
8841: else
8842: ac_cv_header_time=no
8843: fi
8844: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845: fi
8846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8847: $as_echo "$ac_cv_header_time" >&6; }
8848: if test $ac_cv_header_time = yes; then
8849:
8850: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8851:
8852: fi
8853:
8854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8855: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8856: if test "${ac_cv_struct_tm+set}" = set; then :
8857: $as_echo_n "(cached) " >&6
8858: else
8859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860: /* end confdefs.h. */
8861: #include <sys/types.h>
8862: #include <time.h>
8863:
8864: int
8865: main ()
8866: {
8867: struct tm tm;
8868: int *p = &tm.tm_sec;
8869: return !p;
8870: ;
8871: return 0;
8872: }
8873: _ACEOF
8874: if ac_fn_c_try_compile "$LINENO"; then :
8875: ac_cv_struct_tm=time.h
8876: else
8877: ac_cv_struct_tm=sys/time.h
8878: fi
8879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880: fi
8881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8882: $as_echo "$ac_cv_struct_tm" >&6; }
8883: if test $ac_cv_struct_tm = sys/time.h; then
8884:
8885: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8886:
8887: fi
8888:
8889:
8890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8891: $as_echo_n "checking return type of signal handlers... " >&6; }
8892: if test "${ac_cv_type_signal+set}" = set; then :
8893: $as_echo_n "(cached) " >&6
8894: else
8895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896: /* end confdefs.h. */
8897: #include <sys/types.h>
8898: #include <signal.h>
8899:
8900: int
8901: main ()
8902: {
8903: return *(signal (0, 0)) (0) == 1;
8904: ;
8905: return 0;
8906: }
8907: _ACEOF
8908: if ac_fn_c_try_compile "$LINENO"; then :
8909: ac_cv_type_signal=int
8910: else
8911: ac_cv_type_signal=void
8912: fi
8913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914: fi
8915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8916: $as_echo "$ac_cv_type_signal" >&6; }
8917:
8918: cat >>confdefs.h <<_ACEOF
8919: #define RETSIGTYPE $ac_cv_type_signal
8920: _ACEOF
8921:
8922:
8923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8924: $as_echo_n "checking for working strcoll... " >&6; }
8925: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8926: $as_echo_n "(cached) " >&6
8927: else
8928: if test "$cross_compiling" = yes; then :
8929: ac_cv_func_strcoll_works=no
8930: else
8931: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932: /* end confdefs.h. */
8933: $ac_includes_default
8934: int
8935: main ()
8936: {
8937: return (strcoll ("abc", "def") >= 0 ||
8938: strcoll ("ABC", "DEF") >= 0 ||
8939: strcoll ("123", "456") >= 0)
8940: ;
8941: return 0;
8942: }
8943: _ACEOF
8944: if ac_fn_c_try_run "$LINENO"; then :
8945: ac_cv_func_strcoll_works=yes
8946: else
8947: ac_cv_func_strcoll_works=no
8948: fi
8949: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8950: conftest.$ac_objext conftest.beam conftest.$ac_ext
8951: fi
8952:
8953: fi
8954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8955: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8956: if test $ac_cv_func_strcoll_works = yes; then
8957:
8958: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8959:
8960: fi
8961:
8962: for ac_func in strftime
8963: do :
8964: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8965: if test "x$ac_cv_func_strftime" = x""yes; then :
8966: cat >>confdefs.h <<_ACEOF
8967: #define HAVE_STRFTIME 1
8968: _ACEOF
8969:
8970: else
8971: # strftime is in -lintl on SCO UNIX.
8972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8973: $as_echo_n "checking for strftime in -lintl... " >&6; }
8974: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8975: $as_echo_n "(cached) " >&6
8976: else
8977: ac_check_lib_save_LIBS=$LIBS
8978: LIBS="-lintl $LIBS"
8979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980: /* end confdefs.h. */
8981:
8982: /* Override any GCC internal prototype to avoid an error.
8983: Use char because int might match the return type of a GCC
8984: builtin and then its argument prototype would still apply. */
8985: #ifdef __cplusplus
8986: extern "C"
8987: #endif
8988: char strftime ();
8989: int
8990: main ()
8991: {
8992: return strftime ();
8993: ;
8994: return 0;
8995: }
8996: _ACEOF
8997: if ac_fn_c_try_link "$LINENO"; then :
8998: ac_cv_lib_intl_strftime=yes
8999: else
9000: ac_cv_lib_intl_strftime=no
9001: fi
9002: rm -f core conftest.err conftest.$ac_objext \
9003: conftest$ac_exeext conftest.$ac_ext
9004: LIBS=$ac_check_lib_save_LIBS
9005: fi
9006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9007: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9008: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9009: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9010:
9011: LIBS="-lintl $LIBS"
9012: fi
9013:
9014: fi
9015: done
9016:
9017: for ac_func in vprintf
9018: do :
9019: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9020: if test "x$ac_cv_func_vprintf" = x""yes; then :
9021: cat >>confdefs.h <<_ACEOF
9022: #define HAVE_VPRINTF 1
9023: _ACEOF
9024:
9025: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9026: if test "x$ac_cv_func__doprnt" = x""yes; then :
9027:
9028: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9029:
9030: fi
9031:
9032: fi
9033: done
9034:
9035:
9036: for ac_func in ftime getcwd putenv select strcspn strdup \
9037: strerror strspn strstr strtod
9038: do :
9039: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9040: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9041: eval as_val=\$$as_ac_var
9042: if test "x$as_val" = x""yes; then :
9043: cat >>confdefs.h <<_ACEOF
9044: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9045: _ACEOF
9046:
9047: fi
9048: done
9049:
9050:
9051:
9052:
9053: subdirs="$subdirs tools/$NCURSES"
9054:
9055: subdirs="$subdirs tools/$READLINE"
9056:
9057: subdirs="$subdirs tools/$UNITS"
9058:
9059: subdirs="$subdirs tools/$GSL"
9060:
9061: subdirs="$subdirs tools/$GPP"
9062:
9063: subdirs="$subdirs tools/$FILE"
9064:
9065: subdirs="$subdirs tools/$ICONV"
9066:
9067:
9068: if test "$MYGNUPLOT" = "yes"; then
9069: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9070: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9071: (cd "$srcdir/tools" && tar -xf -)
9072: fi
9073: subdirs="$subdirs tools/$GNUPLOT"
9074:
9075: GNUPLOT_COMPILATION=$GNUPLOT
9076: else
9077: GNUPLOT_COMPILATION=
9078: fi
9079:
9080:
9081:
9082: case $host_cpu in
9083:
9084: i?86)
9085: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9086: -Wno-pointer-sign"
9087: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9088: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9089: break ;;
9090:
9091: x86_64*)
9092: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9093: -Wno-pointer-sign"
9094: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9095: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9096: break ;;
9097:
9098: alpha*)
9099: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9100: -Wno-pointer-sign"
9101: FFLAGS="$FFLAGS -mieee -Wall"
9102: FCFLAGS="$FCFLAGS -mieee -Wall"
9103: break ;;
9104:
9105: sparc*)
9106: CFLAGS="$CFLAGS -Wall -funsigned-char \
9107: -Wno-pointer-sign"
9108: FFLAGS="$FFLAGS -Wall"
9109: FCFLAGS="$FCFLAGS -Wall"
9110: break ;;
9111:
9112: esac
9113:
9114: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9115: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9116:
9117: if test $(uname) = "SunOS"; then
9118: LIBMTMALLOC=-lmtmalloc
9119: else
9120: LIBMTMALLOC=
9121: fi
9122:
9123:
9124:
9125:
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134:
9135:
9136:
9137:
9138:
9139:
9140:
9141:
9142: ac_config_files="$ac_config_files Makefile"
9143:
9144: ac_config_files="$ac_config_files COPYING"
9145:
9146: ac_config_files="$ac_config_files tools/Makefile"
9147:
9148: ac_config_files="$ac_config_files src/Makefile"
9149:
9150: ac_config_files="$ac_config_files man/Makefile"
9151:
9152: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9153:
9154: ac_config_files="$ac_config_files doc/Makefile"
9155:
9156: ac_config_files="$ac_config_files scripts/Makefile"
9157:
9158: ac_config_files="$ac_config_files scripts/mkrplso"
9159:
9160: ac_config_files="$ac_config_files scripts/rplcc"
9161:
9162: ac_config_files="$ac_config_files scripts/rpllink"
9163:
9164: ac_config_files="$ac_config_files rpltags/Makefile"
9165:
9166: ac_config_files="$ac_config_files rpliconv/Makefile"
9167:
9168: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9169:
9170: ac_config_files="$ac_config_files lapack/blas/Makefile"
9171:
9172:
9173: ac_config_files="$ac_config_files man/rpl.1"
9174:
9175: ac_config_files="$ac_config_files man/rplcc.1"
9176:
9177: ac_config_files="$ac_config_files man/rpllink.1"
9178:
9179: ac_config_files="$ac_config_files man/rpltags.1"
9180:
9181: ac_config_files="$ac_config_files man/mkrplso.1"
9182:
9183: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9184:
9185: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9186:
9187: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9188:
9189: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9190:
9191: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9192:
9193:
9194: cat >confcache <<\_ACEOF
9195: # This file is a shell script that caches the results of configure
9196: # tests run on this system so they can be shared between configure
9197: # scripts and configure runs, see configure's option --config-cache.
9198: # It is not useful on other systems. If it contains results you don't
9199: # want to keep, you may remove or edit it.
9200: #
9201: # config.status only pays attention to the cache file if you give it
9202: # the --recheck option to rerun configure.
9203: #
9204: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9205: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9206: # following values.
9207:
9208: _ACEOF
9209:
9210: # The following way of writing the cache mishandles newlines in values,
9211: # but we know of no workaround that is simple, portable, and efficient.
9212: # So, we kill variables containing newlines.
9213: # Ultrix sh set writes to stderr and can't be redirected directly,
9214: # and sets the high bit in the cache file unless we assign to the vars.
9215: (
9216: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9217: eval ac_val=\$$ac_var
9218: case $ac_val in #(
9219: *${as_nl}*)
9220: case $ac_var in #(
9221: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9222: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9223: esac
9224: case $ac_var in #(
9225: _ | IFS | as_nl) ;; #(
9226: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9227: *) { eval $ac_var=; unset $ac_var;} ;;
9228: esac ;;
9229: esac
9230: done
9231:
9232: (set) 2>&1 |
9233: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9234: *${as_nl}ac_space=\ *)
9235: # `set' does not quote correctly, so add quotes: double-quote
9236: # substitution turns \\\\ into \\, and sed turns \\ into \.
9237: sed -n \
9238: "s/'/'\\\\''/g;
9239: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9240: ;; #(
9241: *)
9242: # `set' quotes correctly as required by POSIX, so do not add quotes.
9243: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9244: ;;
9245: esac |
9246: sort
9247: ) |
9248: sed '
9249: /^ac_cv_env_/b end
9250: t clear
9251: :clear
9252: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9253: t end
9254: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9255: :end' >>confcache
9256: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9257: if test -w "$cache_file"; then
9258: test "x$cache_file" != "x/dev/null" &&
9259: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9260: $as_echo "$as_me: updating cache $cache_file" >&6;}
9261: cat confcache >$cache_file
9262: else
9263: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9264: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9265: fi
9266: fi
9267: rm -f confcache
9268:
9269: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9270: # Let make expand exec_prefix.
9271: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9272:
9273: DEFS=-DHAVE_CONFIG_H
9274:
9275: ac_libobjs=
9276: ac_ltlibobjs=
9277: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9278: # 1. Remove the extension, and $U if already installed.
9279: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9280: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9281: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9282: # will be set to the directory where LIBOBJS objects are built.
9283: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9284: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9285: done
9286: LIBOBJS=$ac_libobjs
9287:
9288: LTLIBOBJS=$ac_ltlibobjs
9289:
9290:
9291: if test -n "$EXEEXT"; then
9292: am__EXEEXT_TRUE=
9293: am__EXEEXT_FALSE='#'
9294: else
9295: am__EXEEXT_TRUE='#'
9296: am__EXEEXT_FALSE=
9297: fi
9298:
9299: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9300: as_fn_error "conditional \"AMDEP\" was never defined.
9301: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9302: fi
9303: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9304: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9305: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9306: fi
9307: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9308: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9309: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9310: fi
9311:
9312: : ${CONFIG_STATUS=./config.status}
9313: ac_write_fail=0
9314: ac_clean_files_save=$ac_clean_files
9315: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9316: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9317: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9318: as_write_fail=0
9319: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9320: #! $SHELL
9321: # Generated by $as_me.
9322: # Run this file to recreate the current configuration.
9323: # Compiler output produced by configure, useful for debugging
9324: # configure, is in config.log if it exists.
9325:
9326: debug=false
9327: ac_cs_recheck=false
9328: ac_cs_silent=false
9329:
9330: SHELL=\${CONFIG_SHELL-$SHELL}
9331: export SHELL
9332: _ASEOF
9333: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9334: ## -------------------- ##
9335: ## M4sh Initialization. ##
9336: ## -------------------- ##
9337:
9338: # Be more Bourne compatible
9339: DUALCASE=1; export DUALCASE # for MKS sh
9340: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9341: emulate sh
9342: NULLCMD=:
9343: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9344: # is contrary to our usage. Disable this feature.
9345: alias -g '${1+"$@"}'='"$@"'
9346: setopt NO_GLOB_SUBST
9347: else
9348: case `(set -o) 2>/dev/null` in #(
9349: *posix*) :
9350: set -o posix ;; #(
9351: *) :
9352: ;;
9353: esac
9354: fi
9355:
9356:
9357: as_nl='
9358: '
9359: export as_nl
9360: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9361: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9362: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9363: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9364: # Prefer a ksh shell builtin over an external printf program on Solaris,
9365: # but without wasting forks for bash or zsh.
9366: if test -z "$BASH_VERSION$ZSH_VERSION" \
9367: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9368: as_echo='print -r --'
9369: as_echo_n='print -rn --'
9370: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9371: as_echo='printf %s\n'
9372: as_echo_n='printf %s'
9373: else
9374: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9375: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9376: as_echo_n='/usr/ucb/echo -n'
9377: else
9378: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9379: as_echo_n_body='eval
9380: arg=$1;
9381: case $arg in #(
9382: *"$as_nl"*)
9383: expr "X$arg" : "X\\(.*\\)$as_nl";
9384: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9385: esac;
9386: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9387: '
9388: export as_echo_n_body
9389: as_echo_n='sh -c $as_echo_n_body as_echo'
9390: fi
9391: export as_echo_body
9392: as_echo='sh -c $as_echo_body as_echo'
9393: fi
9394:
9395: # The user is always right.
9396: if test "${PATH_SEPARATOR+set}" != set; then
9397: PATH_SEPARATOR=:
9398: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9399: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9400: PATH_SEPARATOR=';'
9401: }
9402: fi
9403:
9404:
9405: # IFS
9406: # We need space, tab and new line, in precisely that order. Quoting is
9407: # there to prevent editors from complaining about space-tab.
9408: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9409: # splitting by setting IFS to empty value.)
9410: IFS=" "" $as_nl"
9411:
9412: # Find who we are. Look in the path if we contain no directory separator.
9413: case $0 in #((
9414: *[\\/]* ) as_myself=$0 ;;
9415: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416: for as_dir in $PATH
9417: do
9418: IFS=$as_save_IFS
9419: test -z "$as_dir" && as_dir=.
9420: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9421: done
9422: IFS=$as_save_IFS
9423:
9424: ;;
9425: esac
9426: # We did not find ourselves, most probably we were run as `sh COMMAND'
9427: # in which case we are not to be found in the path.
9428: if test "x$as_myself" = x; then
9429: as_myself=$0
9430: fi
9431: if test ! -f "$as_myself"; then
9432: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9433: exit 1
9434: fi
9435:
9436: # Unset variables that we do not need and which cause bugs (e.g. in
9437: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9438: # suppresses any "Segmentation fault" message there. '((' could
9439: # trigger a bug in pdksh 5.2.14.
9440: for as_var in BASH_ENV ENV MAIL MAILPATH
9441: do eval test x\${$as_var+set} = xset \
9442: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9443: done
9444: PS1='$ '
9445: PS2='> '
9446: PS4='+ '
9447:
9448: # NLS nuisances.
9449: LC_ALL=C
9450: export LC_ALL
9451: LANGUAGE=C
9452: export LANGUAGE
9453:
9454: # CDPATH.
9455: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9456:
9457:
9458: # as_fn_error ERROR [LINENO LOG_FD]
9459: # ---------------------------------
9460: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9461: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9462: # script with status $?, using 1 if that was 0.
9463: as_fn_error ()
9464: {
9465: as_status=$?; test $as_status -eq 0 && as_status=1
9466: if test "$3"; then
9467: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9468: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9469: fi
9470: $as_echo "$as_me: error: $1" >&2
9471: as_fn_exit $as_status
9472: } # as_fn_error
9473:
9474:
9475: # as_fn_set_status STATUS
9476: # -----------------------
9477: # Set $? to STATUS, without forking.
9478: as_fn_set_status ()
9479: {
9480: return $1
9481: } # as_fn_set_status
9482:
9483: # as_fn_exit STATUS
9484: # -----------------
9485: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9486: as_fn_exit ()
9487: {
9488: set +e
9489: as_fn_set_status $1
9490: exit $1
9491: } # as_fn_exit
9492:
9493: # as_fn_unset VAR
9494: # ---------------
9495: # Portably unset VAR.
9496: as_fn_unset ()
9497: {
9498: { eval $1=; unset $1;}
9499: }
9500: as_unset=as_fn_unset
9501: # as_fn_append VAR VALUE
9502: # ----------------------
9503: # Append the text in VALUE to the end of the definition contained in VAR. Take
9504: # advantage of any shell optimizations that allow amortized linear growth over
9505: # repeated appends, instead of the typical quadratic growth present in naive
9506: # implementations.
9507: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9508: eval 'as_fn_append ()
9509: {
9510: eval $1+=\$2
9511: }'
9512: else
9513: as_fn_append ()
9514: {
9515: eval $1=\$$1\$2
9516: }
9517: fi # as_fn_append
9518:
9519: # as_fn_arith ARG...
9520: # ------------------
9521: # Perform arithmetic evaluation on the ARGs, and store the result in the
9522: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9523: # must be portable across $(()) and expr.
9524: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9525: eval 'as_fn_arith ()
9526: {
9527: as_val=$(( $* ))
9528: }'
9529: else
9530: as_fn_arith ()
9531: {
9532: as_val=`expr "$@" || test $? -eq 1`
9533: }
9534: fi # as_fn_arith
9535:
9536:
9537: if expr a : '\(a\)' >/dev/null 2>&1 &&
9538: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9539: as_expr=expr
9540: else
9541: as_expr=false
9542: fi
9543:
9544: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9545: as_basename=basename
9546: else
9547: as_basename=false
9548: fi
9549:
9550: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9551: as_dirname=dirname
9552: else
9553: as_dirname=false
9554: fi
9555:
9556: as_me=`$as_basename -- "$0" ||
9557: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9558: X"$0" : 'X\(//\)$' \| \
9559: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9560: $as_echo X/"$0" |
9561: sed '/^.*\/\([^/][^/]*\)\/*$/{
9562: s//\1/
9563: q
9564: }
9565: /^X\/\(\/\/\)$/{
9566: s//\1/
9567: q
9568: }
9569: /^X\/\(\/\).*/{
9570: s//\1/
9571: q
9572: }
9573: s/.*/./; q'`
9574:
9575: # Avoid depending upon Character Ranges.
9576: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9577: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9578: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9579: as_cr_digits='0123456789'
9580: as_cr_alnum=$as_cr_Letters$as_cr_digits
9581:
9582: ECHO_C= ECHO_N= ECHO_T=
9583: case `echo -n x` in #(((((
9584: -n*)
9585: case `echo 'xy\c'` in
9586: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9587: xy) ECHO_C='\c';;
9588: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9589: ECHO_T=' ';;
9590: esac;;
9591: *)
9592: ECHO_N='-n';;
9593: esac
9594:
9595: rm -f conf$$ conf$$.exe conf$$.file
9596: if test -d conf$$.dir; then
9597: rm -f conf$$.dir/conf$$.file
9598: else
9599: rm -f conf$$.dir
9600: mkdir conf$$.dir 2>/dev/null
9601: fi
9602: if (echo >conf$$.file) 2>/dev/null; then
9603: if ln -s conf$$.file conf$$ 2>/dev/null; then
9604: as_ln_s='ln -s'
9605: # ... but there are two gotchas:
9606: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9607: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9608: # In both cases, we have to default to `cp -p'.
9609: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9610: as_ln_s='cp -p'
9611: elif ln conf$$.file conf$$ 2>/dev/null; then
9612: as_ln_s=ln
9613: else
9614: as_ln_s='cp -p'
9615: fi
9616: else
9617: as_ln_s='cp -p'
9618: fi
9619: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9620: rmdir conf$$.dir 2>/dev/null
9621:
9622:
9623: # as_fn_mkdir_p
9624: # -------------
9625: # Create "$as_dir" as a directory, including parents if necessary.
9626: as_fn_mkdir_p ()
9627: {
9628:
9629: case $as_dir in #(
9630: -*) as_dir=./$as_dir;;
9631: esac
9632: test -d "$as_dir" || eval $as_mkdir_p || {
9633: as_dirs=
9634: while :; do
9635: case $as_dir in #(
9636: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9637: *) as_qdir=$as_dir;;
9638: esac
9639: as_dirs="'$as_qdir' $as_dirs"
9640: as_dir=`$as_dirname -- "$as_dir" ||
9641: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9642: X"$as_dir" : 'X\(//\)[^/]' \| \
9643: X"$as_dir" : 'X\(//\)$' \| \
9644: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9645: $as_echo X"$as_dir" |
9646: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9647: s//\1/
9648: q
9649: }
9650: /^X\(\/\/\)[^/].*/{
9651: s//\1/
9652: q
9653: }
9654: /^X\(\/\/\)$/{
9655: s//\1/
9656: q
9657: }
9658: /^X\(\/\).*/{
9659: s//\1/
9660: q
9661: }
9662: s/.*/./; q'`
9663: test -d "$as_dir" && break
9664: done
9665: test -z "$as_dirs" || eval "mkdir $as_dirs"
9666: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9667:
9668:
9669: } # as_fn_mkdir_p
9670: if mkdir -p . 2>/dev/null; then
9671: as_mkdir_p='mkdir -p "$as_dir"'
9672: else
9673: test -d ./-p && rmdir ./-p
9674: as_mkdir_p=false
9675: fi
9676:
9677: if test -x / >/dev/null 2>&1; then
9678: as_test_x='test -x'
9679: else
9680: if ls -dL / >/dev/null 2>&1; then
9681: as_ls_L_option=L
9682: else
9683: as_ls_L_option=
9684: fi
9685: as_test_x='
9686: eval sh -c '\''
9687: if test -d "$1"; then
9688: test -d "$1/.";
9689: else
9690: case $1 in #(
9691: -*)set "./$1";;
9692: esac;
9693: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9694: ???[sx]*):;;*)false;;esac;fi
9695: '\'' sh
9696: '
9697: fi
9698: as_executable_p=$as_test_x
9699:
9700: # Sed expression to map a string onto a valid CPP name.
9701: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9702:
9703: # Sed expression to map a string onto a valid variable name.
9704: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9705:
9706:
9707: exec 6>&1
9708: ## ----------------------------------- ##
9709: ## Main body of $CONFIG_STATUS script. ##
9710: ## ----------------------------------- ##
9711: _ASEOF
9712: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9713:
9714: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9715: # Save the log message, to keep $0 and so on meaningful, and to
9716: # report actual input values of CONFIG_FILES etc. instead of their
9717: # values after options handling.
9718: ac_log="
1.2 bertrand 9719: This file was extended by rpl $as_me 4.0.10, which was
1.1 bertrand 9720: generated by GNU Autoconf 2.65. Invocation command line was
9721:
9722: CONFIG_FILES = $CONFIG_FILES
9723: CONFIG_HEADERS = $CONFIG_HEADERS
9724: CONFIG_LINKS = $CONFIG_LINKS
9725: CONFIG_COMMANDS = $CONFIG_COMMANDS
9726: $ $0 $@
9727:
9728: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9729: "
9730:
9731: _ACEOF
9732:
9733: case $ac_config_files in *"
9734: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9735: esac
9736:
9737: case $ac_config_headers in *"
9738: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9739: esac
9740:
9741:
9742: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9743: # Files that config.status was made for.
9744: config_files="$ac_config_files"
9745: config_headers="$ac_config_headers"
9746: config_commands="$ac_config_commands"
9747:
9748: _ACEOF
9749:
9750: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9751: ac_cs_usage="\
9752: \`$as_me' instantiates files and other configuration actions
9753: from templates according to the current configuration. Unless the files
9754: and actions are specified as TAGs, all are instantiated by default.
9755:
9756: Usage: $0 [OPTION]... [TAG]...
9757:
9758: -h, --help print this help, then exit
9759: -V, --version print version number and configuration settings, then exit
9760: --config print configuration, then exit
9761: -q, --quiet, --silent
9762: do not print progress messages
9763: -d, --debug don't remove temporary files
9764: --recheck update $as_me by reconfiguring in the same conditions
9765: --file=FILE[:TEMPLATE]
9766: instantiate the configuration file FILE
9767: --header=FILE[:TEMPLATE]
9768: instantiate the configuration header FILE
9769:
9770: Configuration files:
9771: $config_files
9772:
9773: Configuration headers:
9774: $config_headers
9775:
9776: Configuration commands:
9777: $config_commands
9778:
9779: Report bugs to the package provider."
9780:
9781: _ACEOF
9782: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9783: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9784: ac_cs_version="\\
1.2 bertrand 9785: rpl config.status 4.0.10
1.1 bertrand 9786: configured by $0, generated by GNU Autoconf 2.65,
9787: with options \\"\$ac_cs_config\\"
9788:
9789: Copyright (C) 2009 Free Software Foundation, Inc.
9790: This config.status script is free software; the Free Software Foundation
9791: gives unlimited permission to copy, distribute and modify it."
9792:
9793: ac_pwd='$ac_pwd'
9794: srcdir='$srcdir'
9795: INSTALL='$INSTALL'
9796: MKDIR_P='$MKDIR_P'
9797: AWK='$AWK'
9798: test -n "\$AWK" || AWK=awk
9799: _ACEOF
9800:
9801: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9802: # The default lists apply if the user does not specify any file.
9803: ac_need_defaults=:
9804: while test $# != 0
9805: do
9806: case $1 in
9807: --*=*)
9808: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9809: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9810: ac_shift=:
9811: ;;
9812: *)
9813: ac_option=$1
9814: ac_optarg=$2
9815: ac_shift=shift
9816: ;;
9817: esac
9818:
9819: case $ac_option in
9820: # Handling of the options.
9821: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9822: ac_cs_recheck=: ;;
9823: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9824: $as_echo "$ac_cs_version"; exit ;;
9825: --config | --confi | --conf | --con | --co | --c )
9826: $as_echo "$ac_cs_config"; exit ;;
9827: --debug | --debu | --deb | --de | --d | -d )
9828: debug=: ;;
9829: --file | --fil | --fi | --f )
9830: $ac_shift
9831: case $ac_optarg in
9832: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9833: esac
9834: as_fn_append CONFIG_FILES " '$ac_optarg'"
9835: ac_need_defaults=false;;
9836: --header | --heade | --head | --hea )
9837: $ac_shift
9838: case $ac_optarg in
9839: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9840: esac
9841: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9842: ac_need_defaults=false;;
9843: --he | --h)
9844: # Conflict between --help and --header
9845: as_fn_error "ambiguous option: \`$1'
9846: Try \`$0 --help' for more information.";;
9847: --help | --hel | -h )
9848: $as_echo "$ac_cs_usage"; exit ;;
9849: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9850: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9851: ac_cs_silent=: ;;
9852:
9853: # This is an error.
9854: -*) as_fn_error "unrecognized option: \`$1'
9855: Try \`$0 --help' for more information." ;;
9856:
9857: *) as_fn_append ac_config_targets " $1"
9858: ac_need_defaults=false ;;
9859:
9860: esac
9861: shift
9862: done
9863:
9864: ac_configure_extra_args=
9865:
9866: if $ac_cs_silent; then
9867: exec 6>/dev/null
9868: ac_configure_extra_args="$ac_configure_extra_args --silent"
9869: fi
9870:
9871: _ACEOF
9872: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9873: if \$ac_cs_recheck; then
9874: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9875: shift
9876: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9877: CONFIG_SHELL='$SHELL'
9878: export CONFIG_SHELL
9879: exec "\$@"
9880: fi
9881:
9882: _ACEOF
9883: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9884: exec 5>>config.log
9885: {
9886: echo
9887: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9888: ## Running $as_me. ##
9889: _ASBOX
9890: $as_echo "$ac_log"
9891: } >&5
9892:
9893: _ACEOF
9894: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9895: #
9896: # INIT-COMMANDS
9897: #
9898: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9899:
9900: _ACEOF
9901:
9902: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9903:
9904: # Handling of arguments.
9905: for ac_config_target in $ac_config_targets
9906: do
9907: case $ac_config_target in
9908: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9909: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9910: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9911: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9912: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9913: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9914: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9915: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9916: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9917: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9918: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9919: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9920: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9921: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9922: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9923: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9924: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9925: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9926: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9927: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9928: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9929: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9930: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9931: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9932: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9933: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9934: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9935:
9936: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9937: esac
9938: done
9939:
9940:
9941: # If the user did not use the arguments to specify the items to instantiate,
9942: # then the envvar interface is used. Set only those that are not.
9943: # We use the long form for the default assignment because of an extremely
9944: # bizarre bug on SunOS 4.1.3.
9945: if $ac_need_defaults; then
9946: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9947: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9948: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9949: fi
9950:
9951: # Have a temporary directory for convenience. Make it in the build tree
9952: # simply because there is no reason against having it here, and in addition,
9953: # creating and moving files from /tmp can sometimes cause problems.
9954: # Hook for its removal unless debugging.
9955: # Note that there is a small window in which the directory will not be cleaned:
9956: # after its creation but before its name has been assigned to `$tmp'.
9957: $debug ||
9958: {
9959: tmp=
9960: trap 'exit_status=$?
9961: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9962: ' 0
9963: trap 'as_fn_exit 1' 1 2 13 15
9964: }
9965: # Create a (secure) tmp directory for tmp files.
9966:
9967: {
9968: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9969: test -n "$tmp" && test -d "$tmp"
9970: } ||
9971: {
9972: tmp=./conf$$-$RANDOM
9973: (umask 077 && mkdir "$tmp")
9974: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9975:
9976: # Set up the scripts for CONFIG_FILES section.
9977: # No need to generate them if there are no CONFIG_FILES.
9978: # This happens for instance with `./config.status config.h'.
9979: if test -n "$CONFIG_FILES"; then
9980:
9981:
9982: ac_cr=`echo X | tr X '\015'`
9983: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9984: # But we know of no other shell where ac_cr would be empty at this
9985: # point, so we can use a bashism as a fallback.
9986: if test "x$ac_cr" = x; then
9987: eval ac_cr=\$\'\\r\'
9988: fi
9989: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9990: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9991: ac_cs_awk_cr='\r'
9992: else
9993: ac_cs_awk_cr=$ac_cr
9994: fi
9995:
9996: echo 'BEGIN {' >"$tmp/subs1.awk" &&
9997: _ACEOF
9998:
9999:
10000: {
10001: echo "cat >conf$$subs.awk <<_ACEOF" &&
10002: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10003: echo "_ACEOF"
10004: } >conf$$subs.sh ||
10005: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10006: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10007: ac_delim='%!_!# '
10008: for ac_last_try in false false false false false :; do
10009: . ./conf$$subs.sh ||
10010: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10011:
10012: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10013: if test $ac_delim_n = $ac_delim_num; then
10014: break
10015: elif $ac_last_try; then
10016: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10017: else
10018: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10019: fi
10020: done
10021: rm -f conf$$subs.sh
10022:
10023: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10024: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10025: _ACEOF
10026: sed -n '
10027: h
10028: s/^/S["/; s/!.*/"]=/
10029: p
10030: g
10031: s/^[^!]*!//
10032: :repl
10033: t repl
10034: s/'"$ac_delim"'$//
10035: t delim
10036: :nl
10037: h
10038: s/\(.\{148\}\)..*/\1/
10039: t more1
10040: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10041: p
10042: n
10043: b repl
10044: :more1
10045: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10046: p
10047: g
10048: s/.\{148\}//
10049: t nl
10050: :delim
10051: h
10052: s/\(.\{148\}\)..*/\1/
10053: t more2
10054: s/["\\]/\\&/g; s/^/"/; s/$/"/
10055: p
10056: b
10057: :more2
10058: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10059: p
10060: g
10061: s/.\{148\}//
10062: t delim
10063: ' <conf$$subs.awk | sed '
10064: /^[^""]/{
10065: N
10066: s/\n//
10067: }
10068: ' >>$CONFIG_STATUS || ac_write_fail=1
10069: rm -f conf$$subs.awk
10070: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10071: _ACAWK
10072: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10073: for (key in S) S_is_set[key] = 1
10074: FS = ""
10075:
10076: }
10077: {
10078: line = $ 0
10079: nfields = split(line, field, "@")
10080: substed = 0
10081: len = length(field[1])
10082: for (i = 2; i < nfields; i++) {
10083: key = field[i]
10084: keylen = length(key)
10085: if (S_is_set[key]) {
10086: value = S[key]
10087: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10088: len += length(value) + length(field[++i])
10089: substed = 1
10090: } else
10091: len += 1 + keylen
10092: }
10093:
10094: print line
10095: }
10096:
10097: _ACAWK
10098: _ACEOF
10099: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10100: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10101: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10102: else
10103: cat
10104: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10105: || as_fn_error "could not setup config files machinery" "$LINENO" 5
10106: _ACEOF
10107:
10108: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10109: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10110: # trailing colons and then remove the whole line if VPATH becomes empty
10111: # (actually we leave an empty line to preserve line numbers).
10112: if test "x$srcdir" = x.; then
10113: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10114: s/:*\$(srcdir):*/:/
10115: s/:*\${srcdir}:*/:/
10116: s/:*@srcdir@:*/:/
10117: s/^\([^=]*=[ ]*\):*/\1/
10118: s/:*$//
10119: s/^[^=]*=[ ]*$//
10120: }'
10121: fi
10122:
10123: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10124: fi # test -n "$CONFIG_FILES"
10125:
10126: # Set up the scripts for CONFIG_HEADERS section.
10127: # No need to generate them if there are no CONFIG_HEADERS.
10128: # This happens for instance with `./config.status Makefile'.
10129: if test -n "$CONFIG_HEADERS"; then
10130: cat >"$tmp/defines.awk" <<\_ACAWK ||
10131: BEGIN {
10132: _ACEOF
10133:
10134: # Transform confdefs.h into an awk script `defines.awk', embedded as
10135: # here-document in config.status, that substitutes the proper values into
10136: # config.h.in to produce config.h.
10137:
10138: # Create a delimiter string that does not exist in confdefs.h, to ease
10139: # handling of long lines.
10140: ac_delim='%!_!# '
10141: for ac_last_try in false false :; do
10142: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10143: if test -z "$ac_t"; then
10144: break
10145: elif $ac_last_try; then
10146: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10147: else
10148: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10149: fi
10150: done
10151:
10152: # For the awk script, D is an array of macro values keyed by name,
10153: # likewise P contains macro parameters if any. Preserve backslash
10154: # newline sequences.
10155:
10156: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10157: sed -n '
10158: s/.\{148\}/&'"$ac_delim"'/g
10159: t rset
10160: :rset
10161: s/^[ ]*#[ ]*define[ ][ ]*/ /
10162: t def
10163: d
10164: :def
10165: s/\\$//
10166: t bsnl
10167: s/["\\]/\\&/g
10168: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10169: D["\1"]=" \3"/p
10170: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10171: d
10172: :bsnl
10173: s/["\\]/\\&/g
10174: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10175: D["\1"]=" \3\\\\\\n"\\/p
10176: t cont
10177: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10178: t cont
10179: d
10180: :cont
10181: n
10182: s/.\{148\}/&'"$ac_delim"'/g
10183: t clear
10184: :clear
10185: s/\\$//
10186: t bsnlc
10187: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10188: d
10189: :bsnlc
10190: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10191: b cont
10192: ' <confdefs.h | sed '
10193: s/'"$ac_delim"'/"\\\
10194: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10195:
10196: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10197: for (key in D) D_is_set[key] = 1
10198: FS = ""
10199: }
10200: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10201: line = \$ 0
10202: split(line, arg, " ")
10203: if (arg[1] == "#") {
10204: defundef = arg[2]
10205: mac1 = arg[3]
10206: } else {
10207: defundef = substr(arg[1], 2)
10208: mac1 = arg[2]
10209: }
10210: split(mac1, mac2, "(") #)
10211: macro = mac2[1]
10212: prefix = substr(line, 1, index(line, defundef) - 1)
10213: if (D_is_set[macro]) {
10214: # Preserve the white space surrounding the "#".
10215: print prefix "define", macro P[macro] D[macro]
10216: next
10217: } else {
10218: # Replace #undef with comments. This is necessary, for example,
10219: # in the case of _POSIX_SOURCE, which is predefined and required
10220: # on some systems where configure will not decide to define it.
10221: if (defundef == "undef") {
10222: print "/*", prefix defundef, macro, "*/"
10223: next
10224: }
10225: }
10226: }
10227: { print }
10228: _ACAWK
10229: _ACEOF
10230: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10231: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10232: fi # test -n "$CONFIG_HEADERS"
10233:
10234:
10235: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10236: shift
10237: for ac_tag
10238: do
10239: case $ac_tag in
10240: :[FHLC]) ac_mode=$ac_tag; continue;;
10241: esac
10242: case $ac_mode$ac_tag in
10243: :[FHL]*:*);;
10244: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10245: :[FH]-) ac_tag=-:-;;
10246: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10247: esac
10248: ac_save_IFS=$IFS
10249: IFS=:
10250: set x $ac_tag
10251: IFS=$ac_save_IFS
10252: shift
10253: ac_file=$1
10254: shift
10255:
10256: case $ac_mode in
10257: :L) ac_source=$1;;
10258: :[FH])
10259: ac_file_inputs=
10260: for ac_f
10261: do
10262: case $ac_f in
10263: -) ac_f="$tmp/stdin";;
10264: *) # Look for the file first in the build tree, then in the source tree
10265: # (if the path is not absolute). The absolute path cannot be DOS-style,
10266: # because $ac_f cannot contain `:'.
10267: test -f "$ac_f" ||
10268: case $ac_f in
10269: [\\/$]*) false;;
10270: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10271: esac ||
10272: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10273: esac
10274: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10275: as_fn_append ac_file_inputs " '$ac_f'"
10276: done
10277:
10278: # Let's still pretend it is `configure' which instantiates (i.e., don't
10279: # use $as_me), people would be surprised to read:
10280: # /* config.h. Generated by config.status. */
10281: configure_input='Generated from '`
10282: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10283: `' by configure.'
10284: if test x"$ac_file" != x-; then
10285: configure_input="$ac_file. $configure_input"
10286: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10287: $as_echo "$as_me: creating $ac_file" >&6;}
10288: fi
10289: # Neutralize special characters interpreted by sed in replacement strings.
10290: case $configure_input in #(
10291: *\&* | *\|* | *\\* )
10292: ac_sed_conf_input=`$as_echo "$configure_input" |
10293: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10294: *) ac_sed_conf_input=$configure_input;;
10295: esac
10296:
10297: case $ac_tag in
10298: *:-:* | *:-) cat >"$tmp/stdin" \
10299: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10300: esac
10301: ;;
10302: esac
10303:
10304: ac_dir=`$as_dirname -- "$ac_file" ||
10305: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10306: X"$ac_file" : 'X\(//\)[^/]' \| \
10307: X"$ac_file" : 'X\(//\)$' \| \
10308: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10309: $as_echo X"$ac_file" |
10310: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10311: s//\1/
10312: q
10313: }
10314: /^X\(\/\/\)[^/].*/{
10315: s//\1/
10316: q
10317: }
10318: /^X\(\/\/\)$/{
10319: s//\1/
10320: q
10321: }
10322: /^X\(\/\).*/{
10323: s//\1/
10324: q
10325: }
10326: s/.*/./; q'`
10327: as_dir="$ac_dir"; as_fn_mkdir_p
10328: ac_builddir=.
10329:
10330: case "$ac_dir" in
10331: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10332: *)
10333: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10334: # A ".." for each directory in $ac_dir_suffix.
10335: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10336: case $ac_top_builddir_sub in
10337: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10338: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10339: esac ;;
10340: esac
10341: ac_abs_top_builddir=$ac_pwd
10342: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10343: # for backward compatibility:
10344: ac_top_builddir=$ac_top_build_prefix
10345:
10346: case $srcdir in
10347: .) # We are building in place.
10348: ac_srcdir=.
10349: ac_top_srcdir=$ac_top_builddir_sub
10350: ac_abs_top_srcdir=$ac_pwd ;;
10351: [\\/]* | ?:[\\/]* ) # Absolute name.
10352: ac_srcdir=$srcdir$ac_dir_suffix;
10353: ac_top_srcdir=$srcdir
10354: ac_abs_top_srcdir=$srcdir ;;
10355: *) # Relative name.
10356: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10357: ac_top_srcdir=$ac_top_build_prefix$srcdir
10358: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10359: esac
10360: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10361:
10362:
10363: case $ac_mode in
10364: :F)
10365: #
10366: # CONFIG_FILE
10367: #
10368:
10369: case $INSTALL in
10370: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10371: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10372: esac
10373: ac_MKDIR_P=$MKDIR_P
10374: case $MKDIR_P in
10375: [\\/$]* | ?:[\\/]* ) ;;
10376: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10377: esac
10378: _ACEOF
10379:
10380: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10381: # If the template does not know about datarootdir, expand it.
10382: # FIXME: This hack should be removed a few years after 2.60.
10383: ac_datarootdir_hack=; ac_datarootdir_seen=
10384: ac_sed_dataroot='
10385: /datarootdir/ {
10386: p
10387: q
10388: }
10389: /@datadir@/p
10390: /@docdir@/p
10391: /@infodir@/p
10392: /@localedir@/p
10393: /@mandir@/p'
10394: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10395: *datarootdir*) ac_datarootdir_seen=yes;;
10396: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10397: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10398: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10399: _ACEOF
10400: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10401: ac_datarootdir_hack='
10402: s&@datadir@&$datadir&g
10403: s&@docdir@&$docdir&g
10404: s&@infodir@&$infodir&g
10405: s&@localedir@&$localedir&g
10406: s&@mandir@&$mandir&g
10407: s&\\\${datarootdir}&$datarootdir&g' ;;
10408: esac
10409: _ACEOF
10410:
10411: # Neutralize VPATH when `$srcdir' = `.'.
10412: # Shell code in configure.ac might set extrasub.
10413: # FIXME: do we really want to maintain this feature?
10414: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10415: ac_sed_extra="$ac_vpsub
10416: $extrasub
10417: _ACEOF
10418: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10419: :t
10420: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10421: s|@configure_input@|$ac_sed_conf_input|;t t
10422: s&@top_builddir@&$ac_top_builddir_sub&;t t
10423: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10424: s&@srcdir@&$ac_srcdir&;t t
10425: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10426: s&@top_srcdir@&$ac_top_srcdir&;t t
10427: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10428: s&@builddir@&$ac_builddir&;t t
10429: s&@abs_builddir@&$ac_abs_builddir&;t t
10430: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10431: s&@INSTALL@&$ac_INSTALL&;t t
10432: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10433: $ac_datarootdir_hack
10434: "
10435: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10436: || as_fn_error "could not create $ac_file" "$LINENO" 5
10437:
10438: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10439: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10440: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10441: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10442: which seems to be undefined. Please make sure it is defined." >&5
10443: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10444: which seems to be undefined. Please make sure it is defined." >&2;}
10445:
10446: rm -f "$tmp/stdin"
10447: case $ac_file in
10448: -) cat "$tmp/out" && rm -f "$tmp/out";;
10449: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10450: esac \
10451: || as_fn_error "could not create $ac_file" "$LINENO" 5
10452: ;;
10453: :H)
10454: #
10455: # CONFIG_HEADER
10456: #
10457: if test x"$ac_file" != x-; then
10458: {
10459: $as_echo "/* $configure_input */" \
10460: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10461: } >"$tmp/config.h" \
10462: || as_fn_error "could not create $ac_file" "$LINENO" 5
10463: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10464: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10465: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10466: else
10467: rm -f "$ac_file"
10468: mv "$tmp/config.h" "$ac_file" \
10469: || as_fn_error "could not create $ac_file" "$LINENO" 5
10470: fi
10471: else
10472: $as_echo "/* $configure_input */" \
10473: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10474: || as_fn_error "could not create -" "$LINENO" 5
10475: fi
10476: # Compute "$ac_file"'s index in $config_headers.
10477: _am_arg="$ac_file"
10478: _am_stamp_count=1
10479: for _am_header in $config_headers :; do
10480: case $_am_header in
10481: $_am_arg | $_am_arg:* )
10482: break ;;
10483: * )
10484: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10485: esac
10486: done
10487: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10488: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10489: X"$_am_arg" : 'X\(//\)[^/]' \| \
10490: X"$_am_arg" : 'X\(//\)$' \| \
10491: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10492: $as_echo X"$_am_arg" |
10493: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10494: s//\1/
10495: q
10496: }
10497: /^X\(\/\/\)[^/].*/{
10498: s//\1/
10499: q
10500: }
10501: /^X\(\/\/\)$/{
10502: s//\1/
10503: q
10504: }
10505: /^X\(\/\).*/{
10506: s//\1/
10507: q
10508: }
10509: s/.*/./; q'`/stamp-h$_am_stamp_count
10510: ;;
10511:
10512: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10513: $as_echo "$as_me: executing $ac_file commands" >&6;}
10514: ;;
10515: esac
10516:
10517:
10518: case $ac_file$ac_mode in
10519: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10520: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10521: # are listed without --file. Let's play safe and only enable the eval
10522: # if we detect the quoting.
10523: case $CONFIG_FILES in
10524: *\'*) eval set x "$CONFIG_FILES" ;;
10525: *) set x $CONFIG_FILES ;;
10526: esac
10527: shift
10528: for mf
10529: do
10530: # Strip MF so we end up with the name of the file.
10531: mf=`echo "$mf" | sed -e 's/:.*$//'`
10532: # Check whether this is an Automake generated Makefile or not.
10533: # We used to match only the files named `Makefile.in', but
10534: # some people rename them; so instead we look at the file content.
10535: # Grep'ing the first line is not enough: some people post-process
10536: # each Makefile.in and add a new line on top of each file to say so.
10537: # Grep'ing the whole file is not good either: AIX grep has a line
10538: # limit of 2048, but all sed's we know have understand at least 4000.
10539: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10540: dirpart=`$as_dirname -- "$mf" ||
10541: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10542: X"$mf" : 'X\(//\)[^/]' \| \
10543: X"$mf" : 'X\(//\)$' \| \
10544: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10545: $as_echo X"$mf" |
10546: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10547: s//\1/
10548: q
10549: }
10550: /^X\(\/\/\)[^/].*/{
10551: s//\1/
10552: q
10553: }
10554: /^X\(\/\/\)$/{
10555: s//\1/
10556: q
10557: }
10558: /^X\(\/\).*/{
10559: s//\1/
10560: q
10561: }
10562: s/.*/./; q'`
10563: else
10564: continue
10565: fi
10566: # Extract the definition of DEPDIR, am__include, and am__quote
10567: # from the Makefile without running `make'.
10568: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10569: test -z "$DEPDIR" && continue
10570: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10571: test -z "am__include" && continue
10572: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10573: # When using ansi2knr, U may be empty or an underscore; expand it
10574: U=`sed -n 's/^U = //p' < "$mf"`
10575: # Find all dependency output files, they are included files with
10576: # $(DEPDIR) in their names. We invoke sed twice because it is the
10577: # simplest approach to changing $(DEPDIR) to its actual value in the
10578: # expansion.
10579: for file in `sed -n "
10580: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10581: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10582: # Make sure the directory exists.
10583: test -f "$dirpart/$file" && continue
10584: fdir=`$as_dirname -- "$file" ||
10585: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10586: X"$file" : 'X\(//\)[^/]' \| \
10587: X"$file" : 'X\(//\)$' \| \
10588: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10589: $as_echo X"$file" |
10590: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10591: s//\1/
10592: q
10593: }
10594: /^X\(\/\/\)[^/].*/{
10595: s//\1/
10596: q
10597: }
10598: /^X\(\/\/\)$/{
10599: s//\1/
10600: q
10601: }
10602: /^X\(\/\).*/{
10603: s//\1/
10604: q
10605: }
10606: s/.*/./; q'`
10607: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10608: # echo "creating $dirpart/$file"
10609: echo '# dummy' > "$dirpart/$file"
10610: done
10611: done
10612: }
10613: ;;
10614:
10615: esac
10616: done # for ac_tag
10617:
10618:
10619: as_fn_exit 0
10620: _ACEOF
10621: ac_clean_files=$ac_clean_files_save
10622:
10623: test $ac_write_fail = 0 ||
10624: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10625:
10626:
10627: # configure is writing to config.log, and then calls config.status.
10628: # config.status does its own redirection, appending to config.log.
10629: # Unfortunately, on DOS this fails, as config.log is still kept open
10630: # by configure, so config.status won't be able to write to it; its
10631: # output is simply discarded. So we exec the FD to /dev/null,
10632: # effectively closing config.log, so it can be properly (re)opened and
10633: # appended to by config.status. When coming back to configure, we
10634: # need to make the FD available again.
10635: if test "$no_create" != yes; then
10636: ac_cs_success=:
10637: ac_config_status_args=
10638: test "$silent" = yes &&
10639: ac_config_status_args="$ac_config_status_args --quiet"
10640: exec 5>/dev/null
10641: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10642: exec 5>>config.log
10643: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10644: # would make configure fail if this is the last instruction.
10645: $ac_cs_success || as_fn_exit $?
10646: fi
10647:
10648: #
10649: # CONFIG_SUBDIRS section.
10650: #
10651: if test "$no_recursion" != yes; then
10652:
10653: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10654: # so they do not pile up.
10655: ac_sub_configure_args=
10656: ac_prev=
10657: eval "set x $ac_configure_args"
10658: shift
10659: for ac_arg
10660: do
10661: if test -n "$ac_prev"; then
10662: ac_prev=
10663: continue
10664: fi
10665: case $ac_arg in
10666: -cache-file | --cache-file | --cache-fil | --cache-fi \
10667: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10668: ac_prev=cache_file ;;
10669: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10670: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10671: | --c=*)
10672: ;;
10673: --config-cache | -C)
10674: ;;
10675: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10676: ac_prev=srcdir ;;
10677: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10678: ;;
10679: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10680: ac_prev=prefix ;;
10681: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10682: ;;
10683: --disable-option-checking)
10684: ;;
10685: *)
10686: case $ac_arg in
10687: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10688: esac
10689: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10690: esac
10691: done
10692:
10693: # Always prepend --prefix to ensure using the same prefix
10694: # in subdir configurations.
10695: ac_arg="--prefix=$prefix"
10696: case $ac_arg in
10697: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10698: esac
10699: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10700:
10701: # Pass --silent
10702: if test "$silent" = yes; then
10703: ac_sub_configure_args="--silent $ac_sub_configure_args"
10704: fi
10705:
10706: # Always prepend --disable-option-checking to silence warnings, since
10707: # different subdirs can have different --enable and --with options.
10708: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10709:
10710: ac_popdir=`pwd`
10711: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10712:
10713: # Do not complain, so a configure script can configure whichever
10714: # parts of a large source tree are present.
10715: test -d "$srcdir/$ac_dir" || continue
10716:
10717: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10718: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10719: $as_echo "$ac_msg" >&6
10720: as_dir="$ac_dir"; as_fn_mkdir_p
10721: ac_builddir=.
10722:
10723: case "$ac_dir" in
10724: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10725: *)
10726: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10727: # A ".." for each directory in $ac_dir_suffix.
10728: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10729: case $ac_top_builddir_sub in
10730: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10731: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10732: esac ;;
10733: esac
10734: ac_abs_top_builddir=$ac_pwd
10735: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10736: # for backward compatibility:
10737: ac_top_builddir=$ac_top_build_prefix
10738:
10739: case $srcdir in
10740: .) # We are building in place.
10741: ac_srcdir=.
10742: ac_top_srcdir=$ac_top_builddir_sub
10743: ac_abs_top_srcdir=$ac_pwd ;;
10744: [\\/]* | ?:[\\/]* ) # Absolute name.
10745: ac_srcdir=$srcdir$ac_dir_suffix;
10746: ac_top_srcdir=$srcdir
10747: ac_abs_top_srcdir=$srcdir ;;
10748: *) # Relative name.
10749: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10750: ac_top_srcdir=$ac_top_build_prefix$srcdir
10751: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10752: esac
10753: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10754:
10755:
10756: cd "$ac_dir"
10757:
10758: # Check for guested configure; otherwise get Cygnus style configure.
10759: if test -f "$ac_srcdir/configure.gnu"; then
10760: ac_sub_configure=$ac_srcdir/configure.gnu
10761: elif test -f "$ac_srcdir/configure"; then
10762: ac_sub_configure=$ac_srcdir/configure
10763: elif test -f "$ac_srcdir/configure.in"; then
10764: # This should be Cygnus configure.
10765: ac_sub_configure=$ac_aux_dir/configure
10766: else
10767: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10768: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10769: ac_sub_configure=
10770: fi
10771:
10772: # The recursion is here.
10773: if test -n "$ac_sub_configure"; then
10774: # Make the cache file name correct relative to the subdirectory.
10775: case $cache_file in
10776: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10777: *) # Relative name.
10778: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10779: esac
10780:
10781: { $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
10782: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10783: # The eval makes quoting arguments work.
10784: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10785: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10786: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10787: fi
10788:
10789: cd "$ac_popdir"
10790: done
10791: fi
10792: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10793: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10794: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10795: fi
10796:
CVSweb interface <joel.bertrand@systella.fr>