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