Annotation of rpl/configure, revision 1.6
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.5 bertrand 3: # Generated by GNU Autoconf 2.65 for rpl 4.0.11.
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.5 bertrand 552: PACKAGE_VERSION='4.0.11'
553: PACKAGE_STRING='rpl 4.0.11'
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.5 bertrand 1335: \`configure' configures rpl 4.0.11 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.5 bertrand 1410: short | recursive ) echo "Configuration of rpl 4.0.11:";;
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.5 bertrand 1522: rpl configure 4.0.11
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.5 bertrand 2233: It was created by rpl $as_me 4.0.11, 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.5 bertrand 3152: VERSION='4.0.11'
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:
1.6 ! bertrand 3196: NCURSES=ncurses-5.7-20100206
1.1 bertrand 3197: READLINE=readline-6.1
3198: UNITS=units-1.87
3199: GSL=gsl-1.13
3200: GPP=gpp-2.24
3201: GNUPLOT=gnuplot-4.2.6
3202: FILE=file-5.03
3203: ICONV=libiconv-1.13.1
3204:
3205: ac_ext=c
3206: ac_cpp='$CPP $CPPFLAGS'
3207: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210: if test -n "$ac_tool_prefix"; then
3211: for ac_prog in gcc-4.4 gcc
3212: do
3213: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216: $as_echo_n "checking for $ac_word... " >&6; }
3217: if test "${ac_cv_prog_CC+set}" = set; then :
3218: $as_echo_n "(cached) " >&6
3219: else
3220: if test -n "$CC"; then
3221: ac_cv_prog_CC="$CC" # Let the user override the test.
3222: else
3223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224: for as_dir in $PATH
3225: do
3226: IFS=$as_save_IFS
3227: test -z "$as_dir" && as_dir=.
3228: for ac_exec_ext in '' $ac_executable_extensions; do
3229: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232: break 2
3233: fi
3234: done
3235: done
3236: IFS=$as_save_IFS
3237:
3238: fi
3239: fi
3240: CC=$ac_cv_prog_CC
3241: if test -n "$CC"; then
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243: $as_echo "$CC" >&6; }
3244: else
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246: $as_echo "no" >&6; }
3247: fi
3248:
3249:
3250: test -n "$CC" && break
3251: done
3252: fi
3253: if test -z "$CC"; then
3254: ac_ct_CC=$CC
3255: for ac_prog in gcc-4.4 gcc
3256: do
3257: # Extract the first word of "$ac_prog", so it can be a program name with args.
3258: set dummy $ac_prog; ac_word=$2
3259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260: $as_echo_n "checking for $ac_word... " >&6; }
3261: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3262: $as_echo_n "(cached) " >&6
3263: else
3264: if test -n "$ac_ct_CC"; then
3265: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266: else
3267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268: for as_dir in $PATH
3269: do
3270: IFS=$as_save_IFS
3271: test -z "$as_dir" && as_dir=.
3272: for ac_exec_ext in '' $ac_executable_extensions; do
3273: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274: ac_cv_prog_ac_ct_CC="$ac_prog"
3275: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276: break 2
3277: fi
3278: done
3279: done
3280: IFS=$as_save_IFS
3281:
3282: fi
3283: fi
3284: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285: if test -n "$ac_ct_CC"; then
3286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287: $as_echo "$ac_ct_CC" >&6; }
3288: else
3289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290: $as_echo "no" >&6; }
3291: fi
3292:
3293:
3294: test -n "$ac_ct_CC" && break
3295: done
3296:
3297: if test "x$ac_ct_CC" = x; then
3298: CC=""
3299: else
3300: case $cross_compiling:$ac_tool_warned in
3301: yes:)
3302: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304: ac_tool_warned=yes ;;
3305: esac
3306: CC=$ac_ct_CC
3307: fi
3308: fi
3309:
3310:
3311: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313: as_fn_error "no acceptable C compiler found in \$PATH
3314: See \`config.log' for more details." "$LINENO" 5; }
3315:
3316: # Provide some information about the compiler.
3317: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318: set X $ac_compile
3319: ac_compiler=$2
3320: for ac_option in --version -v -V -qversion; do
3321: { { ac_try="$ac_compiler $ac_option >&5"
3322: case "(($ac_try" in
3323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324: *) ac_try_echo=$ac_try;;
3325: esac
3326: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327: $as_echo "$ac_try_echo"; } >&5
3328: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329: ac_status=$?
3330: if test -s conftest.err; then
3331: sed '10a\
3332: ... rest of stderr output deleted ...
3333: 10q' conftest.err >conftest.er1
3334: cat conftest.er1 >&5
3335: fi
3336: rm -f conftest.er1 conftest.err
3337: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338: test $ac_status = 0; }
3339: done
3340:
3341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342: /* end confdefs.h. */
3343:
3344: int
3345: main ()
3346: {
3347:
3348: ;
3349: return 0;
3350: }
3351: _ACEOF
3352: ac_clean_files_save=$ac_clean_files
3353: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354: # Try to create an executable without -o first, disregard a.out.
3355: # It will help us diagnose broken compilers, and finding out an intuition
3356: # of exeext.
3357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358: $as_echo_n "checking whether the C compiler works... " >&6; }
3359: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3360:
3361: # The possible output files:
3362: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363:
3364: ac_rmfiles=
3365: for ac_file in $ac_files
3366: do
3367: case $ac_file in
3368: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370: esac
3371: done
3372: rm -f $ac_rmfiles
3373:
3374: if { { ac_try="$ac_link_default"
3375: case "(($ac_try" in
3376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377: *) ac_try_echo=$ac_try;;
3378: esac
3379: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380: $as_echo "$ac_try_echo"; } >&5
3381: (eval "$ac_link_default") 2>&5
3382: ac_status=$?
3383: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384: test $ac_status = 0; }; then :
3385: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388: # so that the user can short-circuit this test for compilers unknown to
3389: # Autoconf.
3390: for ac_file in $ac_files ''
3391: do
3392: test -f "$ac_file" || continue
3393: case $ac_file in
3394: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395: ;;
3396: [ab].out )
3397: # We found the default executable, but exeext='' is most
3398: # certainly right.
3399: break;;
3400: *.* )
3401: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402: then :; else
3403: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404: fi
3405: # We set ac_cv_exeext here because the later test for it is not
3406: # safe: cross compilers may not add the suffix if given an `-o'
3407: # argument, so we may need to know it at that point already.
3408: # Even if this section looks crufty: it has the advantage of
3409: # actually working.
3410: break;;
3411: * )
3412: break;;
3413: esac
3414: done
3415: test "$ac_cv_exeext" = no && ac_cv_exeext=
3416:
3417: else
3418: ac_file=''
3419: fi
3420: if test -z "$ac_file"; then :
3421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422: $as_echo "no" >&6; }
3423: $as_echo "$as_me: failed program was:" >&5
3424: sed 's/^/| /' conftest.$ac_ext >&5
3425:
3426: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428: { as_fn_set_status 77
3429: as_fn_error "C compiler cannot create executables
3430: See \`config.log' for more details." "$LINENO" 5; }; }
3431: else
3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433: $as_echo "yes" >&6; }
3434: fi
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436: $as_echo_n "checking for C compiler default output file name... " >&6; }
3437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438: $as_echo "$ac_file" >&6; }
3439: ac_exeext=$ac_cv_exeext
3440:
3441: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442: ac_clean_files=$ac_clean_files_save
3443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444: $as_echo_n "checking for suffix of executables... " >&6; }
3445: if { { ac_try="$ac_link"
3446: case "(($ac_try" in
3447: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448: *) ac_try_echo=$ac_try;;
3449: esac
3450: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451: $as_echo "$ac_try_echo"; } >&5
3452: (eval "$ac_link") 2>&5
3453: ac_status=$?
3454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455: test $ac_status = 0; }; then :
3456: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3457: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3458: # work properly (i.e., refer to `conftest.exe'), while it won't with
3459: # `rm'.
3460: for ac_file in conftest.exe conftest conftest.*; do
3461: test -f "$ac_file" || continue
3462: case $ac_file in
3463: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465: break;;
3466: * ) break;;
3467: esac
3468: done
3469: else
3470: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472: as_fn_error "cannot compute suffix of executables: cannot compile and link
3473: See \`config.log' for more details." "$LINENO" 5; }
3474: fi
3475: rm -f conftest conftest$ac_cv_exeext
3476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477: $as_echo "$ac_cv_exeext" >&6; }
3478:
3479: rm -f conftest.$ac_ext
3480: EXEEXT=$ac_cv_exeext
3481: ac_exeext=$EXEEXT
3482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483: /* end confdefs.h. */
3484: #include <stdio.h>
3485: int
3486: main ()
3487: {
3488: FILE *f = fopen ("conftest.out", "w");
3489: return ferror (f) || fclose (f) != 0;
3490:
3491: ;
3492: return 0;
3493: }
3494: _ACEOF
3495: ac_clean_files="$ac_clean_files conftest.out"
3496: # Check that the compiler produces executables we can run. If not, either
3497: # the compiler is broken, or we cross compile.
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499: $as_echo_n "checking whether we are cross compiling... " >&6; }
3500: if test "$cross_compiling" != yes; then
3501: { { ac_try="$ac_link"
3502: case "(($ac_try" in
3503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504: *) ac_try_echo=$ac_try;;
3505: esac
3506: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507: $as_echo "$ac_try_echo"; } >&5
3508: (eval "$ac_link") 2>&5
3509: ac_status=$?
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }
3512: if { ac_try='./conftest$ac_cv_exeext'
3513: { { case "(($ac_try" in
3514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515: *) ac_try_echo=$ac_try;;
3516: esac
3517: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518: $as_echo "$ac_try_echo"; } >&5
3519: (eval "$ac_try") 2>&5
3520: ac_status=$?
3521: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522: test $ac_status = 0; }; }; then
3523: cross_compiling=no
3524: else
3525: if test "$cross_compiling" = maybe; then
3526: cross_compiling=yes
3527: else
3528: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530: as_fn_error "cannot run C compiled programs.
3531: If you meant to cross compile, use \`--host'.
3532: See \`config.log' for more details." "$LINENO" 5; }
3533: fi
3534: fi
3535: fi
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537: $as_echo "$cross_compiling" >&6; }
3538:
3539: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3540: ac_clean_files=$ac_clean_files_save
3541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542: $as_echo_n "checking for suffix of object files... " >&6; }
3543: if test "${ac_cv_objext+set}" = set; then :
3544: $as_echo_n "(cached) " >&6
3545: else
3546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547: /* end confdefs.h. */
3548:
3549: int
3550: main ()
3551: {
3552:
3553: ;
3554: return 0;
3555: }
3556: _ACEOF
3557: rm -f conftest.o conftest.obj
3558: if { { ac_try="$ac_compile"
3559: case "(($ac_try" in
3560: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561: *) ac_try_echo=$ac_try;;
3562: esac
3563: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564: $as_echo "$ac_try_echo"; } >&5
3565: (eval "$ac_compile") 2>&5
3566: ac_status=$?
3567: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568: test $ac_status = 0; }; then :
3569: for ac_file in conftest.o conftest.obj conftest.*; do
3570: test -f "$ac_file" || continue;
3571: case $ac_file in
3572: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574: break;;
3575: esac
3576: done
3577: else
3578: $as_echo "$as_me: failed program was:" >&5
3579: sed 's/^/| /' conftest.$ac_ext >&5
3580:
3581: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583: as_fn_error "cannot compute suffix of object files: cannot compile
3584: See \`config.log' for more details." "$LINENO" 5; }
3585: fi
3586: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587: fi
3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589: $as_echo "$ac_cv_objext" >&6; }
3590: OBJEXT=$ac_cv_objext
3591: ac_objext=$OBJEXT
3592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3595: $as_echo_n "(cached) " >&6
3596: else
3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603: #ifndef __GNUC__
3604: choke me
3605: #endif
3606:
3607: ;
3608: return 0;
3609: }
3610: _ACEOF
3611: if ac_fn_c_try_compile "$LINENO"; then :
3612: ac_compiler_gnu=yes
3613: else
3614: ac_compiler_gnu=no
3615: fi
3616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3618:
3619: fi
3620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622: if test $ac_compiler_gnu = yes; then
3623: GCC=yes
3624: else
3625: GCC=
3626: fi
3627: ac_test_CFLAGS=${CFLAGS+set}
3628: ac_save_CFLAGS=$CFLAGS
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631: if test "${ac_cv_prog_cc_g+set}" = set; then :
3632: $as_echo_n "(cached) " >&6
3633: else
3634: ac_save_c_werror_flag=$ac_c_werror_flag
3635: ac_c_werror_flag=yes
3636: ac_cv_prog_cc_g=no
3637: CFLAGS="-g"
3638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639: /* end confdefs.h. */
3640:
3641: int
3642: main ()
3643: {
3644:
3645: ;
3646: return 0;
3647: }
3648: _ACEOF
3649: if ac_fn_c_try_compile "$LINENO"; then :
3650: ac_cv_prog_cc_g=yes
3651: else
3652: CFLAGS=""
3653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654: /* end confdefs.h. */
3655:
3656: int
3657: main ()
3658: {
3659:
3660: ;
3661: return 0;
3662: }
3663: _ACEOF
3664: if ac_fn_c_try_compile "$LINENO"; then :
3665:
3666: else
3667: ac_c_werror_flag=$ac_save_c_werror_flag
3668: CFLAGS="-g"
3669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670: /* end confdefs.h. */
3671:
3672: int
3673: main ()
3674: {
3675:
3676: ;
3677: return 0;
3678: }
3679: _ACEOF
3680: if ac_fn_c_try_compile "$LINENO"; then :
3681: ac_cv_prog_cc_g=yes
3682: fi
3683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684: fi
3685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686: fi
3687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688: ac_c_werror_flag=$ac_save_c_werror_flag
3689: fi
3690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691: $as_echo "$ac_cv_prog_cc_g" >&6; }
3692: if test "$ac_test_CFLAGS" = set; then
3693: CFLAGS=$ac_save_CFLAGS
3694: elif test $ac_cv_prog_cc_g = yes; then
3695: if test "$GCC" = yes; then
3696: CFLAGS="-g -O2"
3697: else
3698: CFLAGS="-g"
3699: fi
3700: else
3701: if test "$GCC" = yes; then
3702: CFLAGS="-O2"
3703: else
3704: CFLAGS=
3705: fi
3706: fi
3707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3710: $as_echo_n "(cached) " >&6
3711: else
3712: ac_cv_prog_cc_c89=no
3713: ac_save_CC=$CC
3714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715: /* end confdefs.h. */
3716: #include <stdarg.h>
3717: #include <stdio.h>
3718: #include <sys/types.h>
3719: #include <sys/stat.h>
3720: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721: struct buf { int x; };
3722: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723: static char *e (p, i)
3724: char **p;
3725: int i;
3726: {
3727: return p[i];
3728: }
3729: static char *f (char * (*g) (char **, int), char **p, ...)
3730: {
3731: char *s;
3732: va_list v;
3733: va_start (v,p);
3734: s = g (p, va_arg (v,int));
3735: va_end (v);
3736: return s;
3737: }
3738:
3739: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740: function prototypes and stuff, but not '\xHH' hex character constants.
3741: These don't provoke an error unfortunately, instead are silently treated
3742: as 'x'. The following induces an error, until -std is added to get
3743: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744: array size at least. It's necessary to write '\x00'==0 to get something
3745: that's true only with -std. */
3746: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747:
3748: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749: inside strings and character constants. */
3750: #define FOO(x) 'x'
3751: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752:
3753: int test (int i, double x);
3754: struct s1 {int (*f) (int a);};
3755: struct s2 {int (*f) (double a);};
3756: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757: int argc;
3758: char **argv;
3759: int
3760: main ()
3761: {
3762: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763: ;
3764: return 0;
3765: }
3766: _ACEOF
3767: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769: do
3770: CC="$ac_save_CC $ac_arg"
3771: if ac_fn_c_try_compile "$LINENO"; then :
3772: ac_cv_prog_cc_c89=$ac_arg
3773: fi
3774: rm -f core conftest.err conftest.$ac_objext
3775: test "x$ac_cv_prog_cc_c89" != "xno" && break
3776: done
3777: rm -f conftest.$ac_ext
3778: CC=$ac_save_CC
3779:
3780: fi
3781: # AC_CACHE_VAL
3782: case "x$ac_cv_prog_cc_c89" in
3783: x)
3784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785: $as_echo "none needed" >&6; } ;;
3786: xno)
3787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788: $as_echo "unsupported" >&6; } ;;
3789: *)
3790: CC="$CC $ac_cv_prog_cc_c89"
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793: esac
3794: if test "x$ac_cv_prog_cc_c89" != xno; then :
3795:
3796: fi
3797:
3798: ac_ext=c
3799: ac_cpp='$CPP $CPPFLAGS'
3800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803: DEPDIR="${am__leading_dot}deps"
3804:
3805: ac_config_commands="$ac_config_commands depfiles"
3806:
3807:
3808: am_make=${MAKE-make}
3809: cat > confinc << 'END'
3810: am__doit:
3811: @echo this is the am__doit target
3812: .PHONY: am__doit
3813: END
3814: # If we don't find an include directive, just comment out the code.
3815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3816: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3817: am__include="#"
3818: am__quote=
3819: _am_result=none
3820: # First try GNU make style include.
3821: echo "include confinc" > confmf
3822: # Ignore all kinds of additional output from `make'.
3823: case `$am_make -s -f confmf 2> /dev/null` in #(
3824: *the\ am__doit\ target*)
3825: am__include=include
3826: am__quote=
3827: _am_result=GNU
3828: ;;
3829: esac
3830: # Now try BSD make style include.
3831: if test "$am__include" = "#"; then
3832: echo '.include "confinc"' > confmf
3833: case `$am_make -s -f confmf 2> /dev/null` in #(
3834: *the\ am__doit\ target*)
3835: am__include=.include
3836: am__quote="\""
3837: _am_result=BSD
3838: ;;
3839: esac
3840: fi
3841:
3842:
3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3844: $as_echo "$_am_result" >&6; }
3845: rm -f confinc confmf
3846:
3847: # Check whether --enable-dependency-tracking was given.
3848: if test "${enable_dependency_tracking+set}" = set; then :
3849: enableval=$enable_dependency_tracking;
3850: fi
3851:
3852: if test "x$enable_dependency_tracking" != xno; then
3853: am_depcomp="$ac_aux_dir/depcomp"
3854: AMDEPBACKSLASH='\'
3855: fi
3856: if test "x$enable_dependency_tracking" != xno; then
3857: AMDEP_TRUE=
3858: AMDEP_FALSE='#'
3859: else
3860: AMDEP_TRUE='#'
3861: AMDEP_FALSE=
3862: fi
3863:
3864:
3865:
3866: depcc="$CC" am_compiler_list=
3867:
3868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3869: $as_echo_n "checking dependency style of $depcc... " >&6; }
3870: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3871: $as_echo_n "(cached) " >&6
3872: else
3873: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874: # We make a subdir and do the tests there. Otherwise we can end up
3875: # making bogus files that we don't know about and never remove. For
3876: # instance it was reported that on HP-UX the gcc test will end up
3877: # making a dummy file named `D' -- because `-MD' means `put the output
3878: # in D'.
3879: mkdir conftest.dir
3880: # Copy depcomp to subdir because otherwise we won't find it if we're
3881: # using a relative directory.
3882: cp "$am_depcomp" conftest.dir
3883: cd conftest.dir
3884: # We will build objects and dependencies in a subdirectory because
3885: # it helps to detect inapplicable dependency modes. For instance
3886: # both Tru64's cc and ICC support -MD to output dependencies as a
3887: # side effect of compilation, but ICC will put the dependencies in
3888: # the current directory while Tru64 will put them in the object
3889: # directory.
3890: mkdir sub
3891:
3892: am_cv_CC_dependencies_compiler_type=none
3893: if test "$am_compiler_list" = ""; then
3894: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895: fi
3896: am__universal=false
3897: case " $depcc " in #(
3898: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899: esac
3900:
3901: for depmode in $am_compiler_list; do
3902: # Setup a source with many dependencies, because some compilers
3903: # like to wrap large dependency lists on column 80 (with \), and
3904: # we should not choose a depcomp mode which is confused by this.
3905: #
3906: # We need to recreate these files for each test, as the compiler may
3907: # overwrite some of them when testing with obscure command lines.
3908: # This happens at least with the AIX C compiler.
3909: : > sub/conftest.c
3910: for i in 1 2 3 4 5 6; do
3911: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3913: # Solaris 8's {/usr,}/bin/sh.
3914: touch sub/conftst$i.h
3915: done
3916: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917:
3918: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3919: # mode. It turns out that the SunPro C++ compiler does not properly
3920: # handle `-M -o', and we need to detect this. Also, some Intel
3921: # versions had trouble with output in subdirs
3922: am__obj=sub/conftest.${OBJEXT-o}
3923: am__minus_obj="-o $am__obj"
3924: case $depmode in
3925: gcc)
3926: # This depmode causes a compiler race in universal mode.
3927: test "$am__universal" = false || continue
3928: ;;
3929: nosideeffect)
3930: # after this tag, mechanisms are not by side-effect, so they'll
3931: # only be used when explicitly requested
3932: if test "x$enable_dependency_tracking" = xyes; then
3933: continue
3934: else
3935: break
3936: fi
3937: ;;
3938: msvisualcpp | msvcmsys)
3939: # This compiler won't grok `-c -o', but also, the minuso test has
3940: # not run yet. These depmodes are late enough in the game, and
3941: # so weak that their functioning should not be impacted.
3942: am__obj=conftest.${OBJEXT-o}
3943: am__minus_obj=
3944: ;;
3945: none) break ;;
3946: esac
3947: if depmode=$depmode \
3948: source=sub/conftest.c object=$am__obj \
3949: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951: >/dev/null 2>conftest.err &&
3952: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956: # icc doesn't choke on unknown options, it will just issue warnings
3957: # or remarks (even with -Werror). So we grep stderr for any message
3958: # that says an option was ignored or not supported.
3959: # When given -MP, icc 7.0 and 7.1 complain thusly:
3960: # icc: Command line warning: ignoring option '-M'; no argument required
3961: # The diagnosis changed in icc 8.0:
3962: # icc: Command line remark: option '-MP' not supported
3963: if (grep 'ignoring option' conftest.err ||
3964: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965: am_cv_CC_dependencies_compiler_type=$depmode
3966: break
3967: fi
3968: fi
3969: done
3970:
3971: cd ..
3972: rm -rf conftest.dir
3973: else
3974: am_cv_CC_dependencies_compiler_type=none
3975: fi
3976:
3977: fi
3978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3979: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981:
3982: if
3983: test "x$enable_dependency_tracking" != xno \
3984: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985: am__fastdepCC_TRUE=
3986: am__fastdepCC_FALSE='#'
3987: else
3988: am__fastdepCC_TRUE='#'
3989: am__fastdepCC_FALSE=
3990: fi
3991:
3992:
3993:
3994: if test x"$CC" != x""; then
3995: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3996: awk -F. '{ printf("%s", $1);}'`
3997: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3998: awk -F. '{ printf("%s", $2);}'`
3999: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4000: OPTIMISATION_C=-O3
4001: else
4002: if test $GCC_VERSION_MAJEURE -ge 5; then
4003: OPTIMISATION_C=-O3
4004: else
4005: OPTIMISATION_C=-O2
4006: fi
4007: fi
4008: fi
4009:
4010: if test "x$CC" != xcc; then
4011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4012: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4013: else
4014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4015: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4016: fi
4017: set dummy $CC; ac_cc=`$as_echo "$2" |
4018: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4019: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4020: $as_echo_n "(cached) " >&6
4021: else
4022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023: /* end confdefs.h. */
4024:
4025: int
4026: main ()
4027: {
4028:
4029: ;
4030: return 0;
4031: }
4032: _ACEOF
4033: # Make sure it works both with $CC and with simple cc.
4034: # We do the test twice because some compilers refuse to overwrite an
4035: # existing .o file with -o, though they will create one.
4036: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4037: rm -f conftest2.*
4038: if { { case "(($ac_try" in
4039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040: *) ac_try_echo=$ac_try;;
4041: esac
4042: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043: $as_echo "$ac_try_echo"; } >&5
4044: (eval "$ac_try") 2>&5
4045: ac_status=$?
4046: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047: test $ac_status = 0; } &&
4048: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4049: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050: *) ac_try_echo=$ac_try;;
4051: esac
4052: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053: $as_echo "$ac_try_echo"; } >&5
4054: (eval "$ac_try") 2>&5
4055: ac_status=$?
4056: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057: test $ac_status = 0; };
4058: then
4059: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4060: if test "x$CC" != xcc; then
4061: # Test first that cc exists at all.
4062: if { ac_try='cc -c conftest.$ac_ext >&5'
4063: { { case "(($ac_try" in
4064: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065: *) ac_try_echo=$ac_try;;
4066: esac
4067: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068: $as_echo "$ac_try_echo"; } >&5
4069: (eval "$ac_try") 2>&5
4070: ac_status=$?
4071: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072: test $ac_status = 0; }; }; then
4073: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4074: rm -f conftest2.*
4075: if { { case "(($ac_try" in
4076: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077: *) ac_try_echo=$ac_try;;
4078: esac
4079: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080: $as_echo "$ac_try_echo"; } >&5
4081: (eval "$ac_try") 2>&5
4082: ac_status=$?
4083: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084: test $ac_status = 0; } &&
4085: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4086: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087: *) ac_try_echo=$ac_try;;
4088: esac
4089: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090: $as_echo "$ac_try_echo"; } >&5
4091: (eval "$ac_try") 2>&5
4092: ac_status=$?
4093: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094: test $ac_status = 0; };
4095: then
4096: # cc works too.
4097: :
4098: else
4099: # cc exists but doesn't like -o.
4100: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4101: fi
4102: fi
4103: fi
4104: else
4105: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4106: fi
4107: rm -f core conftest*
4108:
4109: fi
4110: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112: $as_echo "yes" >&6; }
4113: else
4114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115: $as_echo "no" >&6; }
4116:
4117: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4118:
4119: fi
4120:
4121: # FIXME: we rely on the cache variable name because
4122: # there is no other way.
4123: set dummy $CC
4124: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4125: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4126: if test "$am_t" != yes; then
4127: # Losing compiler, so override with the script.
4128: # FIXME: It is wrong to rewrite CC.
4129: # But if we don't then we get into trouble of one sort or another.
4130: # A longer-term fix would be to have automake use am__CC in this case,
4131: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132: CC="$am_aux_dir/compile $CC"
4133: fi
4134:
4135:
4136:
4137: if test "$GCC" != yes; then
4138: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4139: fi
4140:
4141: ac_ext=cpp
4142: ac_cpp='$CXXCPP $CPPFLAGS'
4143: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4146: if test -z "$CXX"; then
4147: if test -n "$CCC"; then
4148: CXX=$CCC
4149: else
4150: if test -n "$ac_tool_prefix"; then
4151: for ac_prog in g++-4.4 g++
4152: do
4153: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4154: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156: $as_echo_n "checking for $ac_word... " >&6; }
4157: if test "${ac_cv_prog_CXX+set}" = set; then :
4158: $as_echo_n "(cached) " >&6
4159: else
4160: if test -n "$CXX"; then
4161: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4162: else
4163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164: for as_dir in $PATH
4165: do
4166: IFS=$as_save_IFS
4167: test -z "$as_dir" && as_dir=.
4168: for ac_exec_ext in '' $ac_executable_extensions; do
4169: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4171: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172: break 2
4173: fi
4174: done
4175: done
4176: IFS=$as_save_IFS
4177:
4178: fi
4179: fi
4180: CXX=$ac_cv_prog_CXX
4181: if test -n "$CXX"; then
4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4183: $as_echo "$CXX" >&6; }
4184: else
4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186: $as_echo "no" >&6; }
4187: fi
4188:
4189:
4190: test -n "$CXX" && break
4191: done
4192: fi
4193: if test -z "$CXX"; then
4194: ac_ct_CXX=$CXX
4195: for ac_prog in g++-4.4 g++
4196: do
4197: # Extract the first word of "$ac_prog", so it can be a program name with args.
4198: set dummy $ac_prog; ac_word=$2
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200: $as_echo_n "checking for $ac_word... " >&6; }
4201: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4202: $as_echo_n "(cached) " >&6
4203: else
4204: if test -n "$ac_ct_CXX"; then
4205: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4206: else
4207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208: for as_dir in $PATH
4209: do
4210: IFS=$as_save_IFS
4211: test -z "$as_dir" && as_dir=.
4212: for ac_exec_ext in '' $ac_executable_extensions; do
4213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214: ac_cv_prog_ac_ct_CXX="$ac_prog"
4215: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216: break 2
4217: fi
4218: done
4219: done
4220: IFS=$as_save_IFS
4221:
4222: fi
4223: fi
4224: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4225: if test -n "$ac_ct_CXX"; then
4226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4227: $as_echo "$ac_ct_CXX" >&6; }
4228: else
4229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230: $as_echo "no" >&6; }
4231: fi
4232:
4233:
4234: test -n "$ac_ct_CXX" && break
4235: done
4236:
4237: if test "x$ac_ct_CXX" = x; then
4238: CXX="g++"
4239: else
4240: case $cross_compiling:$ac_tool_warned in
4241: yes:)
4242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244: ac_tool_warned=yes ;;
4245: esac
4246: CXX=$ac_ct_CXX
4247: fi
4248: fi
4249:
4250: fi
4251: fi
4252: # Provide some information about the compiler.
4253: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4254: set X $ac_compile
4255: ac_compiler=$2
4256: for ac_option in --version -v -V -qversion; do
4257: { { ac_try="$ac_compiler $ac_option >&5"
4258: case "(($ac_try" in
4259: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260: *) ac_try_echo=$ac_try;;
4261: esac
4262: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263: $as_echo "$ac_try_echo"; } >&5
4264: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4265: ac_status=$?
4266: if test -s conftest.err; then
4267: sed '10a\
4268: ... rest of stderr output deleted ...
4269: 10q' conftest.err >conftest.er1
4270: cat conftest.er1 >&5
4271: fi
4272: rm -f conftest.er1 conftest.err
4273: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274: test $ac_status = 0; }
4275: done
4276:
4277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4278: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4279: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4280: $as_echo_n "(cached) " >&6
4281: else
4282: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283: /* end confdefs.h. */
4284:
4285: int
4286: main ()
4287: {
4288: #ifndef __GNUC__
4289: choke me
4290: #endif
4291:
4292: ;
4293: return 0;
4294: }
4295: _ACEOF
4296: if ac_fn_cxx_try_compile "$LINENO"; then :
4297: ac_compiler_gnu=yes
4298: else
4299: ac_compiler_gnu=no
4300: fi
4301: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4303:
4304: fi
4305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4306: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4307: if test $ac_compiler_gnu = yes; then
4308: GXX=yes
4309: else
4310: GXX=
4311: fi
4312: ac_test_CXXFLAGS=${CXXFLAGS+set}
4313: ac_save_CXXFLAGS=$CXXFLAGS
4314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4315: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4316: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4317: $as_echo_n "(cached) " >&6
4318: else
4319: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4320: ac_cxx_werror_flag=yes
4321: ac_cv_prog_cxx_g=no
4322: CXXFLAGS="-g"
4323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324: /* end confdefs.h. */
4325:
4326: int
4327: main ()
4328: {
4329:
4330: ;
4331: return 0;
4332: }
4333: _ACEOF
4334: if ac_fn_cxx_try_compile "$LINENO"; then :
4335: ac_cv_prog_cxx_g=yes
4336: else
4337: CXXFLAGS=""
4338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339: /* end confdefs.h. */
4340:
4341: int
4342: main ()
4343: {
4344:
4345: ;
4346: return 0;
4347: }
4348: _ACEOF
4349: if ac_fn_cxx_try_compile "$LINENO"; then :
4350:
4351: else
4352: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4353: CXXFLAGS="-g"
4354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355: /* end confdefs.h. */
4356:
4357: int
4358: main ()
4359: {
4360:
4361: ;
4362: return 0;
4363: }
4364: _ACEOF
4365: if ac_fn_cxx_try_compile "$LINENO"; then :
4366: ac_cv_prog_cxx_g=yes
4367: fi
4368: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369: fi
4370: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371: fi
4372: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4374: fi
4375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4376: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4377: if test "$ac_test_CXXFLAGS" = set; then
4378: CXXFLAGS=$ac_save_CXXFLAGS
4379: elif test $ac_cv_prog_cxx_g = yes; then
4380: if test "$GXX" = yes; then
4381: CXXFLAGS="-g -O2"
4382: else
4383: CXXFLAGS="-g"
4384: fi
4385: else
4386: if test "$GXX" = yes; then
4387: CXXFLAGS="-O2"
4388: else
4389: CXXFLAGS=
4390: fi
4391: fi
4392: ac_ext=c
4393: ac_cpp='$CPP $CPPFLAGS'
4394: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397:
4398: depcc="$CXX" am_compiler_list=
4399:
4400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4401: $as_echo_n "checking dependency style of $depcc... " >&6; }
4402: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4403: $as_echo_n "(cached) " >&6
4404: else
4405: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4406: # We make a subdir and do the tests there. Otherwise we can end up
4407: # making bogus files that we don't know about and never remove. For
4408: # instance it was reported that on HP-UX the gcc test will end up
4409: # making a dummy file named `D' -- because `-MD' means `put the output
4410: # in D'.
4411: mkdir conftest.dir
4412: # Copy depcomp to subdir because otherwise we won't find it if we're
4413: # using a relative directory.
4414: cp "$am_depcomp" conftest.dir
4415: cd conftest.dir
4416: # We will build objects and dependencies in a subdirectory because
4417: # it helps to detect inapplicable dependency modes. For instance
4418: # both Tru64's cc and ICC support -MD to output dependencies as a
4419: # side effect of compilation, but ICC will put the dependencies in
4420: # the current directory while Tru64 will put them in the object
4421: # directory.
4422: mkdir sub
4423:
4424: am_cv_CXX_dependencies_compiler_type=none
4425: if test "$am_compiler_list" = ""; then
4426: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4427: fi
4428: am__universal=false
4429: case " $depcc " in #(
4430: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4431: esac
4432:
4433: for depmode in $am_compiler_list; do
4434: # Setup a source with many dependencies, because some compilers
4435: # like to wrap large dependency lists on column 80 (with \), and
4436: # we should not choose a depcomp mode which is confused by this.
4437: #
4438: # We need to recreate these files for each test, as the compiler may
4439: # overwrite some of them when testing with obscure command lines.
4440: # This happens at least with the AIX C compiler.
4441: : > sub/conftest.c
4442: for i in 1 2 3 4 5 6; do
4443: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4444: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4445: # Solaris 8's {/usr,}/bin/sh.
4446: touch sub/conftst$i.h
4447: done
4448: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4449:
4450: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4451: # mode. It turns out that the SunPro C++ compiler does not properly
4452: # handle `-M -o', and we need to detect this. Also, some Intel
4453: # versions had trouble with output in subdirs
4454: am__obj=sub/conftest.${OBJEXT-o}
4455: am__minus_obj="-o $am__obj"
4456: case $depmode in
4457: gcc)
4458: # This depmode causes a compiler race in universal mode.
4459: test "$am__universal" = false || continue
4460: ;;
4461: nosideeffect)
4462: # after this tag, mechanisms are not by side-effect, so they'll
4463: # only be used when explicitly requested
4464: if test "x$enable_dependency_tracking" = xyes; then
4465: continue
4466: else
4467: break
4468: fi
4469: ;;
4470: msvisualcpp | msvcmsys)
4471: # This compiler won't grok `-c -o', but also, the minuso test has
4472: # not run yet. These depmodes are late enough in the game, and
4473: # so weak that their functioning should not be impacted.
4474: am__obj=conftest.${OBJEXT-o}
4475: am__minus_obj=
4476: ;;
4477: none) break ;;
4478: esac
4479: if depmode=$depmode \
4480: source=sub/conftest.c object=$am__obj \
4481: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4482: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4483: >/dev/null 2>conftest.err &&
4484: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4485: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4486: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4487: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4488: # icc doesn't choke on unknown options, it will just issue warnings
4489: # or remarks (even with -Werror). So we grep stderr for any message
4490: # that says an option was ignored or not supported.
4491: # When given -MP, icc 7.0 and 7.1 complain thusly:
4492: # icc: Command line warning: ignoring option '-M'; no argument required
4493: # The diagnosis changed in icc 8.0:
4494: # icc: Command line remark: option '-MP' not supported
4495: if (grep 'ignoring option' conftest.err ||
4496: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4497: am_cv_CXX_dependencies_compiler_type=$depmode
4498: break
4499: fi
4500: fi
4501: done
4502:
4503: cd ..
4504: rm -rf conftest.dir
4505: else
4506: am_cv_CXX_dependencies_compiler_type=none
4507: fi
4508:
4509: fi
4510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4511: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4512: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4513:
4514: if
4515: test "x$enable_dependency_tracking" != xno \
4516: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4517: am__fastdepCXX_TRUE=
4518: am__fastdepCXX_FALSE='#'
4519: else
4520: am__fastdepCXX_TRUE='#'
4521: am__fastdepCXX_FALSE=
4522: fi
4523:
4524:
4525:
4526: if test "$GXX" != yes; then
4527: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4528: fi
4529:
4530: ac_ext=f
4531: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4532: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4534: if test -n "$ac_tool_prefix"; then
4535: for ac_prog in gfortran-4.4 gfortran
4536: do
4537: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540: $as_echo_n "checking for $ac_word... " >&6; }
4541: if test "${ac_cv_prog_F77+set}" = set; then :
4542: $as_echo_n "(cached) " >&6
4543: else
4544: if test -n "$F77"; then
4545: ac_cv_prog_F77="$F77" # Let the user override the test.
4546: else
4547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548: for as_dir in $PATH
4549: do
4550: IFS=$as_save_IFS
4551: test -z "$as_dir" && as_dir=.
4552: for ac_exec_ext in '' $ac_executable_extensions; do
4553: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4555: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556: break 2
4557: fi
4558: done
4559: done
4560: IFS=$as_save_IFS
4561:
4562: fi
4563: fi
4564: F77=$ac_cv_prog_F77
4565: if test -n "$F77"; then
4566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4567: $as_echo "$F77" >&6; }
4568: else
4569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570: $as_echo "no" >&6; }
4571: fi
4572:
4573:
4574: test -n "$F77" && break
4575: done
4576: fi
4577: if test -z "$F77"; then
4578: ac_ct_F77=$F77
4579: for ac_prog in gfortran-4.4 gfortran
4580: do
4581: # Extract the first word of "$ac_prog", so it can be a program name with args.
4582: set dummy $ac_prog; ac_word=$2
4583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584: $as_echo_n "checking for $ac_word... " >&6; }
4585: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4586: $as_echo_n "(cached) " >&6
4587: else
4588: if test -n "$ac_ct_F77"; then
4589: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4590: else
4591: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592: for as_dir in $PATH
4593: do
4594: IFS=$as_save_IFS
4595: test -z "$as_dir" && as_dir=.
4596: for ac_exec_ext in '' $ac_executable_extensions; do
4597: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598: ac_cv_prog_ac_ct_F77="$ac_prog"
4599: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600: break 2
4601: fi
4602: done
4603: done
4604: IFS=$as_save_IFS
4605:
4606: fi
4607: fi
4608: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4609: if test -n "$ac_ct_F77"; then
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4611: $as_echo "$ac_ct_F77" >&6; }
4612: else
4613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614: $as_echo "no" >&6; }
4615: fi
4616:
4617:
4618: test -n "$ac_ct_F77" && break
4619: done
4620:
4621: if test "x$ac_ct_F77" = x; then
4622: F77=""
4623: else
4624: case $cross_compiling:$ac_tool_warned in
4625: yes:)
4626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628: ac_tool_warned=yes ;;
4629: esac
4630: F77=$ac_ct_F77
4631: fi
4632: fi
4633:
4634:
4635: # Provide some information about the compiler.
4636: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4637: set X $ac_compile
4638: ac_compiler=$2
4639: for ac_option in --version -v -V -qversion; do
4640: { { ac_try="$ac_compiler $ac_option >&5"
4641: case "(($ac_try" in
4642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643: *) ac_try_echo=$ac_try;;
4644: esac
4645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646: $as_echo "$ac_try_echo"; } >&5
4647: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4648: ac_status=$?
4649: if test -s conftest.err; then
4650: sed '10a\
4651: ... rest of stderr output deleted ...
4652: 10q' conftest.err >conftest.er1
4653: cat conftest.er1 >&5
4654: fi
4655: rm -f conftest.er1 conftest.err
4656: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657: test $ac_status = 0; }
4658: done
4659: rm -f a.out
4660:
4661: # If we don't use `.F' as extension, the preprocessor is not run on the
4662: # input file. (Note that this only needs to work for GNU compilers.)
4663: ac_save_ext=$ac_ext
4664: ac_ext=F
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4666: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4667: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4668: $as_echo_n "(cached) " >&6
4669: else
4670: cat > conftest.$ac_ext <<_ACEOF
4671: program main
4672: #ifndef __GNUC__
4673: choke me
4674: #endif
4675:
4676: end
4677: _ACEOF
4678: if ac_fn_f77_try_compile "$LINENO"; then :
4679: ac_compiler_gnu=yes
4680: else
4681: ac_compiler_gnu=no
4682: fi
4683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4685:
4686: fi
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4688: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4689: ac_ext=$ac_save_ext
4690: ac_test_FFLAGS=${FFLAGS+set}
4691: ac_save_FFLAGS=$FFLAGS
4692: FFLAGS=
4693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4694: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4695: if test "${ac_cv_prog_f77_g+set}" = set; then :
4696: $as_echo_n "(cached) " >&6
4697: else
4698: FFLAGS=-g
4699: cat > conftest.$ac_ext <<_ACEOF
4700: program main
4701:
4702: end
4703: _ACEOF
4704: if ac_fn_f77_try_compile "$LINENO"; then :
4705: ac_cv_prog_f77_g=yes
4706: else
4707: ac_cv_prog_f77_g=no
4708: fi
4709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710:
4711: fi
4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4713: $as_echo "$ac_cv_prog_f77_g" >&6; }
4714: if test "$ac_test_FFLAGS" = set; then
4715: FFLAGS=$ac_save_FFLAGS
4716: elif test $ac_cv_prog_f77_g = yes; then
4717: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4718: FFLAGS="-g -O2"
4719: else
4720: FFLAGS="-g"
4721: fi
4722: else
4723: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4724: FFLAGS="-O2"
4725: else
4726: FFLAGS=
4727: fi
4728: fi
4729:
4730: if test $ac_compiler_gnu = yes; then
4731: G77=yes
4732: else
4733: G77=
4734: fi
4735: ac_ext=c
4736: ac_cpp='$CPP $CPPFLAGS'
4737: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740:
4741:
4742: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4743: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4744: fi
4745:
4746: ac_ext=${ac_fc_srcext-f}
4747: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4748: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4749: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4750: if test -n "$ac_tool_prefix"; then
4751: for ac_prog in gfortran-4.4 gfortran
4752: do
4753: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756: $as_echo_n "checking for $ac_word... " >&6; }
4757: if test "${ac_cv_prog_FC+set}" = set; then :
4758: $as_echo_n "(cached) " >&6
4759: else
4760: if test -n "$FC"; then
4761: ac_cv_prog_FC="$FC" # Let the user override the test.
4762: else
4763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764: for as_dir in $PATH
4765: do
4766: IFS=$as_save_IFS
4767: test -z "$as_dir" && as_dir=.
4768: for ac_exec_ext in '' $ac_executable_extensions; do
4769: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772: break 2
4773: fi
4774: done
4775: done
4776: IFS=$as_save_IFS
4777:
4778: fi
4779: fi
4780: FC=$ac_cv_prog_FC
4781: if test -n "$FC"; then
4782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4783: $as_echo "$FC" >&6; }
4784: else
4785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786: $as_echo "no" >&6; }
4787: fi
4788:
4789:
4790: test -n "$FC" && break
4791: done
4792: fi
4793: if test -z "$FC"; then
4794: ac_ct_FC=$FC
4795: for ac_prog in gfortran-4.4 gfortran
4796: do
4797: # Extract the first word of "$ac_prog", so it can be a program name with args.
4798: set dummy $ac_prog; ac_word=$2
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800: $as_echo_n "checking for $ac_word... " >&6; }
4801: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4802: $as_echo_n "(cached) " >&6
4803: else
4804: if test -n "$ac_ct_FC"; then
4805: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4806: else
4807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808: for as_dir in $PATH
4809: do
4810: IFS=$as_save_IFS
4811: test -z "$as_dir" && as_dir=.
4812: for ac_exec_ext in '' $ac_executable_extensions; do
4813: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814: ac_cv_prog_ac_ct_FC="$ac_prog"
4815: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816: break 2
4817: fi
4818: done
4819: done
4820: IFS=$as_save_IFS
4821:
4822: fi
4823: fi
4824: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4825: if test -n "$ac_ct_FC"; then
4826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4827: $as_echo "$ac_ct_FC" >&6; }
4828: else
4829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830: $as_echo "no" >&6; }
4831: fi
4832:
4833:
4834: test -n "$ac_ct_FC" && break
4835: done
4836:
4837: if test "x$ac_ct_FC" = x; then
4838: FC=""
4839: else
4840: case $cross_compiling:$ac_tool_warned in
4841: yes:)
4842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844: ac_tool_warned=yes ;;
4845: esac
4846: FC=$ac_ct_FC
4847: fi
4848: fi
4849:
4850:
4851: # Provide some information about the compiler.
4852: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4853: set X $ac_compile
4854: ac_compiler=$2
4855: for ac_option in --version -v -V -qversion; do
4856: { { ac_try="$ac_compiler $ac_option >&5"
4857: case "(($ac_try" in
4858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859: *) ac_try_echo=$ac_try;;
4860: esac
4861: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862: $as_echo "$ac_try_echo"; } >&5
4863: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4864: ac_status=$?
4865: if test -s conftest.err; then
4866: sed '10a\
4867: ... rest of stderr output deleted ...
4868: 10q' conftest.err >conftest.er1
4869: cat conftest.er1 >&5
4870: fi
4871: rm -f conftest.er1 conftest.err
4872: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873: test $ac_status = 0; }
4874: done
4875: rm -f a.out
4876:
4877: # If we don't use `.F' as extension, the preprocessor is not run on the
4878: # input file. (Note that this only needs to work for GNU compilers.)
4879: ac_save_ext=$ac_ext
4880: ac_ext=F
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4882: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4883: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4884: $as_echo_n "(cached) " >&6
4885: else
4886: cat > conftest.$ac_ext <<_ACEOF
4887: program main
4888: #ifndef __GNUC__
4889: choke me
4890: #endif
4891:
4892: end
4893: _ACEOF
4894: if ac_fn_fc_try_compile "$LINENO"; then :
4895: ac_compiler_gnu=yes
4896: else
4897: ac_compiler_gnu=no
4898: fi
4899: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4901:
4902: fi
4903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4904: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4905: ac_ext=$ac_save_ext
4906: ac_test_FCFLAGS=${FCFLAGS+set}
4907: ac_save_FCFLAGS=$FCFLAGS
4908: FCFLAGS=
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4910: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4911: if test "${ac_cv_prog_fc_g+set}" = set; then :
4912: $as_echo_n "(cached) " >&6
4913: else
4914: FCFLAGS=-g
4915: cat > conftest.$ac_ext <<_ACEOF
4916: program main
4917:
4918: end
4919: _ACEOF
4920: if ac_fn_fc_try_compile "$LINENO"; then :
4921: ac_cv_prog_fc_g=yes
4922: else
4923: ac_cv_prog_fc_g=no
4924: fi
4925: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926:
4927: fi
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4929: $as_echo "$ac_cv_prog_fc_g" >&6; }
4930: if test "$ac_test_FCFLAGS" = set; then
4931: FCFLAGS=$ac_save_FCFLAGS
4932: elif test $ac_cv_prog_fc_g = yes; then
4933: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4934: FCFLAGS="-g -O2"
4935: else
4936: FCFLAGS="-g"
4937: fi
4938: else
4939: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4940: FCFLAGS="-O2"
4941: else
4942: FCFLAGS=
4943: fi
4944: fi
4945:
4946: ac_ext=c
4947: ac_cpp='$CPP $CPPFLAGS'
4948: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951:
4952:
4953: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4954: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4955: fi
4956:
4957: if test x"$FC" != x""; then
4958: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4959: awk -F. '{ printf("%s", $1);}'`
4960: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4961: awk -F. '{ printf("%s", $2);}'`
4962: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4963: OPTIMISATION_F=-O3
4964: else
4965: if test $GCC_VERSION_MAJEURE -ge 5; then
4966: OPTIMISATION_F=-O3
4967: else
4968: OPTIMISATION_F=-O2
4969: fi
4970: fi
4971: fi
4972:
4973:
4974: ac_ext=c
4975: ac_cpp='$CPP $CPPFLAGS'
4976: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981: # On Suns, sometimes $CPP names a directory.
4982: if test -n "$CPP" && test -d "$CPP"; then
4983: CPP=
4984: fi
4985: if test -z "$CPP"; then
4986: if test "${ac_cv_prog_CPP+set}" = set; then :
4987: $as_echo_n "(cached) " >&6
4988: else
4989: # Double quotes because CPP needs to be expanded
4990: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991: do
4992: ac_preproc_ok=false
4993: for ac_c_preproc_warn_flag in '' yes
4994: do
4995: # Use a header file that comes with gcc, so configuring glibc
4996: # with a fresh cross-compiler works.
4997: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998: # <limits.h> exists even on freestanding compilers.
4999: # On the NeXT, cc -E runs the code through the compiler's parser,
5000: # not just through cpp. "Syntax error" is here to catch this case.
5001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002: /* end confdefs.h. */
5003: #ifdef __STDC__
5004: # include <limits.h>
5005: #else
5006: # include <assert.h>
5007: #endif
5008: Syntax error
5009: _ACEOF
5010: if ac_fn_c_try_cpp "$LINENO"; then :
5011:
5012: else
5013: # Broken: fails on valid input.
5014: continue
5015: fi
5016: rm -f conftest.err conftest.$ac_ext
5017:
5018: # OK, works on sane cases. Now check whether nonexistent headers
5019: # can be detected and how.
5020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021: /* end confdefs.h. */
5022: #include <ac_nonexistent.h>
5023: _ACEOF
5024: if ac_fn_c_try_cpp "$LINENO"; then :
5025: # Broken: success on invalid input.
5026: continue
5027: else
5028: # Passes both tests.
5029: ac_preproc_ok=:
5030: break
5031: fi
5032: rm -f conftest.err conftest.$ac_ext
5033:
5034: done
5035: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036: rm -f conftest.err conftest.$ac_ext
5037: if $ac_preproc_ok; then :
5038: break
5039: fi
5040:
5041: done
5042: ac_cv_prog_CPP=$CPP
5043:
5044: fi
5045: CPP=$ac_cv_prog_CPP
5046: else
5047: ac_cv_prog_CPP=$CPP
5048: fi
5049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050: $as_echo "$CPP" >&6; }
5051: ac_preproc_ok=false
5052: for ac_c_preproc_warn_flag in '' yes
5053: do
5054: # Use a header file that comes with gcc, so configuring glibc
5055: # with a fresh cross-compiler works.
5056: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057: # <limits.h> exists even on freestanding compilers.
5058: # On the NeXT, cc -E runs the code through the compiler's parser,
5059: # not just through cpp. "Syntax error" is here to catch this case.
5060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061: /* end confdefs.h. */
5062: #ifdef __STDC__
5063: # include <limits.h>
5064: #else
5065: # include <assert.h>
5066: #endif
5067: Syntax error
5068: _ACEOF
5069: if ac_fn_c_try_cpp "$LINENO"; then :
5070:
5071: else
5072: # Broken: fails on valid input.
5073: continue
5074: fi
5075: rm -f conftest.err conftest.$ac_ext
5076:
5077: # OK, works on sane cases. Now check whether nonexistent headers
5078: # can be detected and how.
5079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080: /* end confdefs.h. */
5081: #include <ac_nonexistent.h>
5082: _ACEOF
5083: if ac_fn_c_try_cpp "$LINENO"; then :
5084: # Broken: success on invalid input.
5085: continue
5086: else
5087: # Passes both tests.
5088: ac_preproc_ok=:
5089: break
5090: fi
5091: rm -f conftest.err conftest.$ac_ext
5092:
5093: done
5094: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095: rm -f conftest.err conftest.$ac_ext
5096: if $ac_preproc_ok; then :
5097:
5098: else
5099: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5102: See \`config.log' for more details." "$LINENO" 5; }
5103: fi
5104:
5105: ac_ext=c
5106: ac_cpp='$CPP $CPPFLAGS'
5107: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110:
5111:
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5113: $as_echo_n "checking for X... " >&6; }
5114:
5115:
5116: # Check whether --with-x was given.
5117: if test "${with_x+set}" = set; then :
5118: withval=$with_x;
5119: fi
5120:
5121: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5122: if test "x$with_x" = xno; then
5123: # The user explicitly disabled X.
5124: have_x=disabled
5125: else
5126: case $x_includes,$x_libraries in #(
5127: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5128: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5129: $as_echo_n "(cached) " >&6
5130: else
5131: # One or both of the vars are not set, and there is no cached value.
5132: ac_x_includes=no ac_x_libraries=no
5133: rm -f -r conftest.dir
5134: if mkdir conftest.dir; then
5135: cd conftest.dir
5136: cat >Imakefile <<'_ACEOF'
5137: incroot:
5138: @echo incroot='${INCROOT}'
5139: usrlibdir:
5140: @echo usrlibdir='${USRLIBDIR}'
5141: libdir:
5142: @echo libdir='${LIBDIR}'
5143: _ACEOF
5144: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5145: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5146: for ac_var in incroot usrlibdir libdir; do
5147: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5148: done
5149: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5150: for ac_extension in a so sl dylib la dll; do
5151: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5152: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5153: ac_im_usrlibdir=$ac_im_libdir; break
5154: fi
5155: done
5156: # Screen out bogus values from the imake configuration. They are
5157: # bogus both because they are the default anyway, and because
5158: # using them would break gcc on systems where it needs fixed includes.
5159: case $ac_im_incroot in
5160: /usr/include) ac_x_includes= ;;
5161: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5162: esac
5163: case $ac_im_usrlibdir in
5164: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5165: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5166: esac
5167: fi
5168: cd ..
5169: rm -f -r conftest.dir
5170: fi
5171:
5172: # Standard set of common directories for X headers.
5173: # Check X11 before X11Rn because it is often a symlink to the current release.
5174: ac_x_header_dirs='
5175: /usr/X11/include
5176: /usr/X11R7/include
5177: /usr/X11R6/include
5178: /usr/X11R5/include
5179: /usr/X11R4/include
5180:
5181: /usr/include/X11
5182: /usr/include/X11R7
5183: /usr/include/X11R6
5184: /usr/include/X11R5
5185: /usr/include/X11R4
5186:
5187: /usr/local/X11/include
5188: /usr/local/X11R7/include
5189: /usr/local/X11R6/include
5190: /usr/local/X11R5/include
5191: /usr/local/X11R4/include
5192:
5193: /usr/local/include/X11
5194: /usr/local/include/X11R7
5195: /usr/local/include/X11R6
5196: /usr/local/include/X11R5
5197: /usr/local/include/X11R4
5198:
5199: /usr/X386/include
5200: /usr/x386/include
5201: /usr/XFree86/include/X11
5202:
5203: /usr/include
5204: /usr/local/include
5205: /usr/unsupported/include
5206: /usr/athena/include
5207: /usr/local/x11r5/include
5208: /usr/lpp/Xamples/include
5209:
5210: /usr/openwin/include
5211: /usr/openwin/share/include'
5212:
5213: if test "$ac_x_includes" = no; then
5214: # Guess where to find include files, by looking for Xlib.h.
5215: # First, try using that file with no special directory specified.
5216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217: /* end confdefs.h. */
5218: #include <X11/Xlib.h>
5219: _ACEOF
5220: if ac_fn_c_try_cpp "$LINENO"; then :
5221: # We can compile using X headers with no special include directory.
5222: ac_x_includes=
5223: else
5224: for ac_dir in $ac_x_header_dirs; do
5225: if test -r "$ac_dir/X11/Xlib.h"; then
5226: ac_x_includes=$ac_dir
5227: break
5228: fi
5229: done
5230: fi
5231: rm -f conftest.err conftest.$ac_ext
5232: fi # $ac_x_includes = no
5233:
5234: if test "$ac_x_libraries" = no; then
5235: # Check for the libraries.
5236: # See if we find them without any special options.
5237: # Don't add to $LIBS permanently.
5238: ac_save_LIBS=$LIBS
5239: LIBS="-lX11 $LIBS"
5240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241: /* end confdefs.h. */
5242: #include <X11/Xlib.h>
5243: int
5244: main ()
5245: {
5246: XrmInitialize ()
5247: ;
5248: return 0;
5249: }
5250: _ACEOF
5251: if ac_fn_c_try_link "$LINENO"; then :
5252: LIBS=$ac_save_LIBS
5253: # We can link X programs with no special library path.
5254: ac_x_libraries=
5255: else
5256: LIBS=$ac_save_LIBS
5257: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5258: do
5259: # Don't even attempt the hair of trying to link an X program!
5260: for ac_extension in a so sl dylib la dll; do
5261: if test -r "$ac_dir/libX11.$ac_extension"; then
5262: ac_x_libraries=$ac_dir
5263: break 2
5264: fi
5265: done
5266: done
5267: fi
5268: rm -f core conftest.err conftest.$ac_objext \
5269: conftest$ac_exeext conftest.$ac_ext
5270: fi # $ac_x_libraries = no
5271:
5272: case $ac_x_includes,$ac_x_libraries in #(
5273: no,* | *,no | *\'*)
5274: # Didn't find X, or a directory has "'" in its name.
5275: ac_cv_have_x="have_x=no";; #(
5276: *)
5277: # Record where we found X for the cache.
5278: ac_cv_have_x="have_x=yes\
5279: ac_x_includes='$ac_x_includes'\
5280: ac_x_libraries='$ac_x_libraries'"
5281: esac
5282: fi
5283: ;; #(
5284: *) have_x=yes;;
5285: esac
5286: eval "$ac_cv_have_x"
5287: fi # $with_x != no
5288:
5289: if test "$have_x" != yes; then
5290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5291: $as_echo "$have_x" >&6; }
5292: no_x=yes
5293: else
5294: # If each of the values was on the command line, it overrides each guess.
5295: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5296: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5297: # Update the cache value to reflect the command line values.
5298: ac_cv_have_x="have_x=yes\
5299: ac_x_includes='$x_includes'\
5300: ac_x_libraries='$x_libraries'"
5301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5302: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5303: fi
5304:
5305: if test "$no_x" = yes; then
5306: # Not all programs may use this symbol, but it does not hurt to define it.
5307:
5308: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5309:
5310: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5311: else
5312: if test -n "$x_includes"; then
5313: X_CFLAGS="$X_CFLAGS -I$x_includes"
5314: fi
5315:
5316: # It would also be nice to do this for all -L options, not just this one.
5317: if test -n "$x_libraries"; then
5318: X_LIBS="$X_LIBS -L$x_libraries"
5319: # For Solaris; some versions of Sun CC require a space after -R and
5320: # others require no space. Words are not sufficient . . . .
5321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5322: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5323: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5324: ac_xsave_c_werror_flag=$ac_c_werror_flag
5325: ac_c_werror_flag=yes
5326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327: /* end confdefs.h. */
5328:
5329: int
5330: main ()
5331: {
5332:
5333: ;
5334: return 0;
5335: }
5336: _ACEOF
5337: if ac_fn_c_try_link "$LINENO"; then :
5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339: $as_echo "no" >&6; }
5340: X_LIBS="$X_LIBS -R$x_libraries"
5341: else
5342: LIBS="$ac_xsave_LIBS -R $x_libraries"
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
5345:
5346: int
5347: main ()
5348: {
5349:
5350: ;
5351: return 0;
5352: }
5353: _ACEOF
5354: if ac_fn_c_try_link "$LINENO"; then :
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356: $as_echo "yes" >&6; }
5357: X_LIBS="$X_LIBS -R $x_libraries"
5358: else
5359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5360: $as_echo "neither works" >&6; }
5361: fi
5362: rm -f core conftest.err conftest.$ac_objext \
5363: conftest$ac_exeext conftest.$ac_ext
5364: fi
5365: rm -f core conftest.err conftest.$ac_objext \
5366: conftest$ac_exeext conftest.$ac_ext
5367: ac_c_werror_flag=$ac_xsave_c_werror_flag
5368: LIBS=$ac_xsave_LIBS
5369: fi
5370:
5371: # Check for system-dependent libraries X programs must link with.
5372: # Do this before checking for the system-independent R6 libraries
5373: # (-lICE), since we may need -lsocket or whatever for X linking.
5374:
5375: if test "$ISC" = yes; then
5376: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5377: else
5378: # Martyn Johnson says this is needed for Ultrix, if the X
5379: # libraries were built with DECnet support. And Karl Berry says
5380: # the Alpha needs dnet_stub (dnet does not exist).
5381: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5382: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383: /* end confdefs.h. */
5384:
5385: /* Override any GCC internal prototype to avoid an error.
5386: Use char because int might match the return type of a GCC
5387: builtin and then its argument prototype would still apply. */
5388: #ifdef __cplusplus
5389: extern "C"
5390: #endif
5391: char XOpenDisplay ();
5392: int
5393: main ()
5394: {
5395: return XOpenDisplay ();
5396: ;
5397: return 0;
5398: }
5399: _ACEOF
5400: if ac_fn_c_try_link "$LINENO"; then :
5401:
5402: else
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5404: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5405: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5406: $as_echo_n "(cached) " >&6
5407: else
5408: ac_check_lib_save_LIBS=$LIBS
5409: LIBS="-ldnet $LIBS"
5410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411: /* end confdefs.h. */
5412:
5413: /* Override any GCC internal prototype to avoid an error.
5414: Use char because int might match the return type of a GCC
5415: builtin and then its argument prototype would still apply. */
5416: #ifdef __cplusplus
5417: extern "C"
5418: #endif
5419: char dnet_ntoa ();
5420: int
5421: main ()
5422: {
5423: return dnet_ntoa ();
5424: ;
5425: return 0;
5426: }
5427: _ACEOF
5428: if ac_fn_c_try_link "$LINENO"; then :
5429: ac_cv_lib_dnet_dnet_ntoa=yes
5430: else
5431: ac_cv_lib_dnet_dnet_ntoa=no
5432: fi
5433: rm -f core conftest.err conftest.$ac_objext \
5434: conftest$ac_exeext conftest.$ac_ext
5435: LIBS=$ac_check_lib_save_LIBS
5436: fi
5437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5438: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5439: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5440: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5441: fi
5442:
5443: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5445: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5446: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5447: $as_echo_n "(cached) " >&6
5448: else
5449: ac_check_lib_save_LIBS=$LIBS
5450: LIBS="-ldnet_stub $LIBS"
5451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452: /* end confdefs.h. */
5453:
5454: /* Override any GCC internal prototype to avoid an error.
5455: Use char because int might match the return type of a GCC
5456: builtin and then its argument prototype would still apply. */
5457: #ifdef __cplusplus
5458: extern "C"
5459: #endif
5460: char dnet_ntoa ();
5461: int
5462: main ()
5463: {
5464: return dnet_ntoa ();
5465: ;
5466: return 0;
5467: }
5468: _ACEOF
5469: if ac_fn_c_try_link "$LINENO"; then :
5470: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5471: else
5472: ac_cv_lib_dnet_stub_dnet_ntoa=no
5473: fi
5474: rm -f core conftest.err conftest.$ac_objext \
5475: conftest$ac_exeext conftest.$ac_ext
5476: LIBS=$ac_check_lib_save_LIBS
5477: fi
5478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5479: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5480: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5481: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5482: fi
5483:
5484: fi
5485: fi
5486: rm -f core conftest.err conftest.$ac_objext \
5487: conftest$ac_exeext conftest.$ac_ext
5488: LIBS="$ac_xsave_LIBS"
5489:
5490: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5491: # to get the SysV transport functions.
5492: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5493: # needs -lnsl.
5494: # The nsl library prevents programs from opening the X display
5495: # on Irix 5.2, according to T.E. Dickey.
5496: # The functions gethostbyname, getservbyname, and inet_addr are
5497: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5498: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5499: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5500:
5501: fi
5502:
5503: if test $ac_cv_func_gethostbyname = no; then
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5505: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5506: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5507: $as_echo_n "(cached) " >&6
5508: else
5509: ac_check_lib_save_LIBS=$LIBS
5510: LIBS="-lnsl $LIBS"
5511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512: /* end confdefs.h. */
5513:
5514: /* Override any GCC internal prototype to avoid an error.
5515: Use char because int might match the return type of a GCC
5516: builtin and then its argument prototype would still apply. */
5517: #ifdef __cplusplus
5518: extern "C"
5519: #endif
5520: char gethostbyname ();
5521: int
5522: main ()
5523: {
5524: return gethostbyname ();
5525: ;
5526: return 0;
5527: }
5528: _ACEOF
5529: if ac_fn_c_try_link "$LINENO"; then :
5530: ac_cv_lib_nsl_gethostbyname=yes
5531: else
5532: ac_cv_lib_nsl_gethostbyname=no
5533: fi
5534: rm -f core conftest.err conftest.$ac_objext \
5535: conftest$ac_exeext conftest.$ac_ext
5536: LIBS=$ac_check_lib_save_LIBS
5537: fi
5538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5539: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5540: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5541: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5542: fi
5543:
5544: if test $ac_cv_lib_nsl_gethostbyname = no; then
5545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5546: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5547: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5548: $as_echo_n "(cached) " >&6
5549: else
5550: ac_check_lib_save_LIBS=$LIBS
5551: LIBS="-lbsd $LIBS"
5552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553: /* end confdefs.h. */
5554:
5555: /* Override any GCC internal prototype to avoid an error.
5556: Use char because int might match the return type of a GCC
5557: builtin and then its argument prototype would still apply. */
5558: #ifdef __cplusplus
5559: extern "C"
5560: #endif
5561: char gethostbyname ();
5562: int
5563: main ()
5564: {
5565: return gethostbyname ();
5566: ;
5567: return 0;
5568: }
5569: _ACEOF
5570: if ac_fn_c_try_link "$LINENO"; then :
5571: ac_cv_lib_bsd_gethostbyname=yes
5572: else
5573: ac_cv_lib_bsd_gethostbyname=no
5574: fi
5575: rm -f core conftest.err conftest.$ac_objext \
5576: conftest$ac_exeext conftest.$ac_ext
5577: LIBS=$ac_check_lib_save_LIBS
5578: fi
5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5580: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5581: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5582: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5583: fi
5584:
5585: fi
5586: fi
5587:
5588: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5589: # socket/setsockopt and other routines are undefined under SCO ODT
5590: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5591: # on later versions), says Simon Leinen: it contains gethostby*
5592: # variants that don't use the name server (or something). -lsocket
5593: # must be given before -lnsl if both are needed. We assume that
5594: # if connect needs -lnsl, so does gethostbyname.
5595: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5596: if test "x$ac_cv_func_connect" = x""yes; then :
5597:
5598: fi
5599:
5600: if test $ac_cv_func_connect = no; then
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5602: $as_echo_n "checking for connect in -lsocket... " >&6; }
5603: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5604: $as_echo_n "(cached) " >&6
5605: else
5606: ac_check_lib_save_LIBS=$LIBS
5607: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609: /* end confdefs.h. */
5610:
5611: /* Override any GCC internal prototype to avoid an error.
5612: Use char because int might match the return type of a GCC
5613: builtin and then its argument prototype would still apply. */
5614: #ifdef __cplusplus
5615: extern "C"
5616: #endif
5617: char connect ();
5618: int
5619: main ()
5620: {
5621: return connect ();
5622: ;
5623: return 0;
5624: }
5625: _ACEOF
5626: if ac_fn_c_try_link "$LINENO"; then :
5627: ac_cv_lib_socket_connect=yes
5628: else
5629: ac_cv_lib_socket_connect=no
5630: fi
5631: rm -f core conftest.err conftest.$ac_objext \
5632: conftest$ac_exeext conftest.$ac_ext
5633: LIBS=$ac_check_lib_save_LIBS
5634: fi
5635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5636: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5637: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5638: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5639: fi
5640:
5641: fi
5642:
5643: # Guillermo Gomez says -lposix is necessary on A/UX.
5644: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5645: if test "x$ac_cv_func_remove" = x""yes; then :
5646:
5647: fi
5648:
5649: if test $ac_cv_func_remove = no; then
5650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5651: $as_echo_n "checking for remove in -lposix... " >&6; }
5652: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5653: $as_echo_n "(cached) " >&6
5654: else
5655: ac_check_lib_save_LIBS=$LIBS
5656: LIBS="-lposix $LIBS"
5657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658: /* end confdefs.h. */
5659:
5660: /* Override any GCC internal prototype to avoid an error.
5661: Use char because int might match the return type of a GCC
5662: builtin and then its argument prototype would still apply. */
5663: #ifdef __cplusplus
5664: extern "C"
5665: #endif
5666: char remove ();
5667: int
5668: main ()
5669: {
5670: return remove ();
5671: ;
5672: return 0;
5673: }
5674: _ACEOF
5675: if ac_fn_c_try_link "$LINENO"; then :
5676: ac_cv_lib_posix_remove=yes
5677: else
5678: ac_cv_lib_posix_remove=no
5679: fi
5680: rm -f core conftest.err conftest.$ac_objext \
5681: conftest$ac_exeext conftest.$ac_ext
5682: LIBS=$ac_check_lib_save_LIBS
5683: fi
5684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5685: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5686: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5687: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5688: fi
5689:
5690: fi
5691:
5692: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5693: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5694: if test "x$ac_cv_func_shmat" = x""yes; then :
5695:
5696: fi
5697:
5698: if test $ac_cv_func_shmat = no; then
5699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5700: $as_echo_n "checking for shmat in -lipc... " >&6; }
5701: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5702: $as_echo_n "(cached) " >&6
5703: else
5704: ac_check_lib_save_LIBS=$LIBS
5705: LIBS="-lipc $LIBS"
5706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707: /* end confdefs.h. */
5708:
5709: /* Override any GCC internal prototype to avoid an error.
5710: Use char because int might match the return type of a GCC
5711: builtin and then its argument prototype would still apply. */
5712: #ifdef __cplusplus
5713: extern "C"
5714: #endif
5715: char shmat ();
5716: int
5717: main ()
5718: {
5719: return shmat ();
5720: ;
5721: return 0;
5722: }
5723: _ACEOF
5724: if ac_fn_c_try_link "$LINENO"; then :
5725: ac_cv_lib_ipc_shmat=yes
5726: else
5727: ac_cv_lib_ipc_shmat=no
5728: fi
5729: rm -f core conftest.err conftest.$ac_objext \
5730: conftest$ac_exeext conftest.$ac_ext
5731: LIBS=$ac_check_lib_save_LIBS
5732: fi
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5734: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5735: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5736: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5737: fi
5738:
5739: fi
5740: fi
5741:
5742: # Check for libraries that X11R6 Xt/Xaw programs need.
5743: ac_save_LDFLAGS=$LDFLAGS
5744: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5745: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5746: # check for ICE first), but we must link in the order -lSM -lICE or
5747: # we get undefined symbols. So assume we have SM if we have ICE.
5748: # These have to be linked with before -lX11, unlike the other
5749: # libraries we check for below, so use a different variable.
5750: # John Interrante, Karl Berry
5751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5752: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5753: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5754: $as_echo_n "(cached) " >&6
5755: else
5756: ac_check_lib_save_LIBS=$LIBS
5757: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759: /* end confdefs.h. */
5760:
5761: /* Override any GCC internal prototype to avoid an error.
5762: Use char because int might match the return type of a GCC
5763: builtin and then its argument prototype would still apply. */
5764: #ifdef __cplusplus
5765: extern "C"
5766: #endif
5767: char IceConnectionNumber ();
5768: int
5769: main ()
5770: {
5771: return IceConnectionNumber ();
5772: ;
5773: return 0;
5774: }
5775: _ACEOF
5776: if ac_fn_c_try_link "$LINENO"; then :
5777: ac_cv_lib_ICE_IceConnectionNumber=yes
5778: else
5779: ac_cv_lib_ICE_IceConnectionNumber=no
5780: fi
5781: rm -f core conftest.err conftest.$ac_objext \
5782: conftest$ac_exeext conftest.$ac_ext
5783: LIBS=$ac_check_lib_save_LIBS
5784: fi
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5786: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5787: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5788: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5789: fi
5790:
5791: LDFLAGS=$ac_save_LDFLAGS
5792:
5793: fi
5794:
5795:
5796: if test "$ac_x_includes" != "no"; then
5797: if test x"$ac_x_includes" != x; then
5798: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5799: includeX="-I$ac_x_includes"
5800: fi
5801: fi
5802: if test "$ac_x_libraries" != "no"; then
5803: if test x"$ac_x_libraries" != x; then
5804: X_LIBS="$X_LIBS -L$ac_x_libraries"
5805: fi
5806: fi
5807:
5808: # Check whether --enable-optimization was given.
5809: if test "${enable_optimization+set}" = set; then :
5810: enableval=$enable_optimization;
5811: if test "$enableval" = "no"; then
5812: CFLAGS=
5813: FFLAGS=
5814: CXXFLAGS=
5815: FCFLAGS=
5816: else
5817: CFLAGS="$CFLAGS $enable_optimization"
5818: FFLAGS="$FFLAGS $enable_optimization"
5819: FCFLAGS="$FCFLAGS $enable_optimization"
5820: fi
5821: else
5822:
5823: CFLAGS="$CFLAGS $OPTIMISATION_C"
5824: FFLAGS="$FFLAGS $OPTIMISATION_F"
5825: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5826:
5827:
5828: fi
5829:
5830:
5831: # Check whether --enable-final-encoding was given.
5832: if test "${enable_final_encoding+set}" = set; then :
5833: enableval=$enable_final_encoding;
5834: if test "$enableval" = "no"; then
5835: FINAL_ENCODING="\$(shell locale charmap)"
5836: else
5837: FINAL_ENCODING="$enable_final_encoding"
5838: fi
5839: else
5840: FINAL_ENCODING="\$(shell locale charmap)"
5841: fi
5842:
5843:
5844: # Check whether --enable-tex was given.
5845: if test "${enable_tex+set}" = set; then :
5846: enableval=$enable_tex;
5847: if test "$enableval" = "no"; then
5848: TEX_SUPPORT=no
5849: else
5850: TEX_SUPPORT=yes
5851: fi
5852: else
5853: TEX_SUPPORT=guessed
5854: fi
5855:
5856:
5857: # Check whether --enable-vim was given.
5858: if test "${enable_vim+set}" = set; then :
5859: enableval=$enable_vim;
5860: if test "$enableval" = "no"; then
5861: VIM_SUPPORT=no
5862: else
5863: VIM_SUPPORT=yes
5864: fi
5865: else
5866: VIM_SUPPORT=guessed
5867: fi
5868:
5869:
5870: # Check whether --enable-embedded-gnuplot was given.
5871: if test "${enable_embedded_gnuplot+set}" = set; then :
5872: enableval=$enable_embedded_gnuplot;
5873: if test "$enableval" = "no"; then
5874: MYGNUPLOT=no
5875: else
5876: MYGNUPLOT=yes
5877: fi
5878: else
5879:
5880: MYGNUPLOT=yes
5881: fi
5882:
5883:
5884: # Check whether --enable-gnuplot was given.
5885: if test "${enable_gnuplot+set}" = set; then :
5886: enableval=$enable_gnuplot;
5887: if test "$enableval" = "no"; then
5888: GNUPLOT_SUPPORT=no
5889: MYGNUPLOT=no
5890: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5891: else
5892: GNUPLOT_SUPPORT=yes
5893: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5894: fi
5895: else
5896:
5897: if test "$MYGNUPLOT" = "yes"; then
5898: GNUPLOT_SUPPORT=yes
5899: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5900: else
5901: GNUPLOT_SUPPORT=guessed
5902: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5903: fi
5904: fi
5905:
5906:
5907: # Check whether --enable-motif was given.
5908: if test "${enable_motif+set}" = set; then :
5909: enableval=$enable_motif;
5910: if test "$enableval" = "no"; then
5911: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5912: else
5913: CFLAGS_ORIG=$CFLAGS
5914: LIBS_ORIG=$LIBS
5915: CFLAGS="$CFLAGS $X_CFLAGS"
5916: LIBS="$LIB $X_LIBS"
5917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5918: $as_echo_n "checking for main in -lXm... " >&6; }
5919: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5920: $as_echo_n "(cached) " >&6
5921: else
5922: ac_check_lib_save_LIBS=$LIBS
5923: LIBS="-lXm $LIBS"
5924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925: /* end confdefs.h. */
5926:
5927:
5928: int
5929: main ()
5930: {
5931: return main ();
5932: ;
5933: return 0;
5934: }
5935: _ACEOF
5936: if ac_fn_c_try_link "$LINENO"; then :
5937: ac_cv_lib_Xm_main=yes
5938: else
5939: ac_cv_lib_Xm_main=no
5940: fi
5941: rm -f core conftest.err conftest.$ac_objext \
5942: conftest$ac_exeext conftest.$ac_ext
5943: LIBS=$ac_check_lib_save_LIBS
5944: fi
5945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5946: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5947: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5948: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5949: else
5950: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5951: fi
5952:
5953: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5954: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5955: Motif flag is disabled.
5956: " >&5
5957: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5958: Motif flag is disabled.
5959: " >&2;}
5960: fi
5961: LIBS=$LIBS_ORIG
5962: CFLAGS=$CFLAGS_ORIG
5963: fi
5964: else
5965: MOTIF_SUPPORT=guessed
5966: fi
5967:
5968:
5969: # Check whether --enable-experimental was given.
5970: if test "${enable_experimental+set}" = set; then :
5971: enableval=$enable_experimental;
5972: if test "$enableval" = "no"; then
5973: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5974: else
5975: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5976: fi
5977: else
5978: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5979: fi
5980:
5981:
5982: # Check whether --enable-debug was given.
5983: if test "${enable_debug+set}" = set; then :
5984: enableval=$enable_debug;
5985: if test "$enableval" = "no"; then
5986: DEBUG=""
5987: DEBUG_CODE="-UDEBUG"
5988: else
5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEBUG=\"-lefence\" in -lefence" >&5
5990: $as_echo_n "checking for DEBUG=\"-lefence\" in -lefence... " >&6; }
5991: if test "${ac_cv_lib_efence_DEBUG___lefence_+set}" = set; then :
5992: $as_echo_n "(cached) " >&6
5993: else
5994: ac_check_lib_save_LIBS=$LIBS
5995: LIBS="-lefence $LIBS"
5996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997: /* end confdefs.h. */
5998:
5999: /* Override any GCC internal prototype to avoid an error.
6000: Use char because int might match the return type of a GCC
6001: builtin and then its argument prototype would still apply. */
6002: #ifdef __cplusplus
6003: extern "C"
6004: #endif
6005: char DEBUG="-lefence" ();
6006: int
6007: main ()
6008: {
6009: return DEBUG="-lefence" ();
6010: ;
6011: return 0;
6012: }
6013: _ACEOF
6014: if ac_fn_c_try_link "$LINENO"; then :
6015: ac_cv_lib_efence_DEBUG___lefence_=yes
6016: else
6017: ac_cv_lib_efence_DEBUG___lefence_=no
6018: fi
6019: rm -f core conftest.err conftest.$ac_objext \
6020: conftest$ac_exeext conftest.$ac_ext
6021: LIBS=$ac_check_lib_save_LIBS
6022: fi
6023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_DEBUG___lefence_" >&5
6024: $as_echo "$ac_cv_lib_efence_DEBUG___lefence_" >&6; }
6025: if test "x$ac_cv_lib_efence_DEBUG___lefence_" = x""yes; then :
6026: DEBUG=""
6027: fi
6028:
6029: DEBUG_CODE="-DDEBUG"
6030: if test "$DEBUG" = ""; then
6031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find efence! You may install it.
6032: Debug flag is disabled.
6033: " >&5
6034: $as_echo "$as_me: WARNING: Can not find efence! You may install it.
6035: Debug flag is disabled.
6036: " >&2;}
6037: fi
6038: fi
6039: else
6040:
6041: DEBUG_CODE="-UDEBUG"
6042: DEBUG=""
6043: fi
6044:
6045:
6046: # Check whether --enable-profile was given.
6047: if test "${enable_profile+set}" = set; then :
6048: enableval=$enable_profile;
6049: if test "$enableval" = "no"; then
6050: PROFILAGE=""
6051: else
6052: PROFILAGE="-pg"
6053: fi
6054: else
6055: PROFILAGE=""
6056: fi
6057:
6058:
6059:
6060:
6061:
6062: if test ! -d tools; then
6063: mkdir tools
6064: fi
6065: if test ! -d "$srcdir"/tools/$NCURSES; then
6066: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6067: (cd "$srcdir/tools" && tar -xf -)
6068: fi
6069: if test ! -d "$srcdir"/tools/$READLINE; then
6070: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6071: (cd "$srcdir/tools" && tar -xf -)
6072: fi
6073: if test ! -d "$srcdir"/tools/$UNITS; then
6074: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6075: (cd "$srcdir/tools" && tar -xf -)
6076: fi
6077: if test ! -d "$srcdir"/tools/$GSL; then
6078: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6079: (cd "$srcdir/tools" && tar -xf -)
6080: fi
6081: if test ! -d "$srcdir"/tools/$GPP; then
6082: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6083: (cd "$srcdir/tools" && tar -xf -)
6084: fi
6085: if test ! -d "$srcdir"/tools/$FILE; then
6086: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
1.3 bertrand 6087: (cd "$srcdir/tools" && tar -xf - )
1.4 bertrand 6088: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
1.3 bertrand 6089: sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > \
6090: "$srcdir"/tools/$FILE/src/Makefile.am2
6091: sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' \
6092: "$srcdir"/tools/$FILE/src/Makefile.am2 | \
6093: sed 's/^file_/rplfile_/g' > \
6094: "$srcdir"/tools/$FILE/src/Makefile.am
6095: \rm -f "$srcdir"/tools/$FILE/src/Makefile.am2
1.6 ! bertrand 6096: sed 's/file$/rplfile/g' "$srcdir"/tools/$FILE/magic/Makefile.am > \
! 6097: "$srcdir"/tools/$FILE/magic/Makefile.am2
! 6098: \mv -f "$srcdir"/tools/$FILE/magic/Makefile.am2 \
! 6099: "$srcdir"/tools/$FILE/magic/Makefile.am
1.1 bertrand 6100: fi
6101: if test ! -d "$srcdir"/tools/$ICONV; then
6102: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6103: (cd "$srcdir/tools" && tar -xf -)
6104: fi
6105:
6106: # Extract the first word of "libtoolize", so it can be a program name with args.
6107: set dummy libtoolize; ac_word=$2
6108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109: $as_echo_n "checking for $ac_word... " >&6; }
6110: if test "${ac_cv_prog_LIBTOOLIZE+set}" = set; then :
6111: $as_echo_n "(cached) " >&6
6112: else
6113: if test -n "$LIBTOOLIZE"; then
6114: ac_cv_prog_LIBTOOLIZE="$LIBTOOLIZE" # Let the user override the test.
6115: else
6116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117: for as_dir in $PATH
6118: do
6119: IFS=$as_save_IFS
6120: test -z "$as_dir" && as_dir=.
6121: for ac_exec_ext in '' $ac_executable_extensions; do
6122: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123: ac_cv_prog_LIBTOOLIZE="yes"
6124: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125: break 2
6126: fi
6127: done
6128: done
6129: IFS=$as_save_IFS
6130:
6131: test -z "$ac_cv_prog_LIBTOOLIZE" && ac_cv_prog_LIBTOOLIZE="no"
6132: fi
6133: fi
6134: LIBTOOLIZE=$ac_cv_prog_LIBTOOLIZE
6135: if test -n "$LIBTOOLIZE"; then
6136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOLIZE" >&5
6137: $as_echo "$LIBTOOLIZE" >&6; }
6138: else
6139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140: $as_echo "no" >&6; }
6141: fi
6142:
6143:
6144: if test "$LIBTOOLIZE" = "no"; then
6145: as_fn_error "Cannot find libtoolize! You have to install it." "$LINENO" 5
6146: fi
6147:
6148: # Extract the first word of "aclocal", so it can be a program name with args.
6149: set dummy aclocal; ac_word=$2
6150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151: $as_echo_n "checking for $ac_word... " >&6; }
6152: if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6153: $as_echo_n "(cached) " >&6
6154: else
6155: if test -n "$ACLOCAL"; then
6156: ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6157: else
6158: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159: for as_dir in $PATH
6160: do
6161: IFS=$as_save_IFS
6162: test -z "$as_dir" && as_dir=.
6163: for ac_exec_ext in '' $ac_executable_extensions; do
6164: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165: ac_cv_prog_ACLOCAL="yes"
6166: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167: break 2
6168: fi
6169: done
6170: done
6171: IFS=$as_save_IFS
6172:
6173: test -z "$ac_cv_prog_ACLOCAL" && ac_cv_prog_ACLOCAL="no"
6174: fi
6175: fi
6176: ACLOCAL=$ac_cv_prog_ACLOCAL
6177: if test -n "$ACLOCAL"; then
6178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6179: $as_echo "$ACLOCAL" >&6; }
6180: else
6181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182: $as_echo "no" >&6; }
6183: fi
6184:
6185:
6186: if test "$ACLOCAL" = "no"; then
6187: as_fn_error "Cannot find aclocal! You have to install it." "$LINENO" 5
6188: fi
6189:
6190: # Extract the first word of "automake", so it can be a program name with args.
6191: set dummy automake; ac_word=$2
6192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193: $as_echo_n "checking for $ac_word... " >&6; }
6194: if test "${ac_cv_prog_AUTOMAKE+set}" = set; then :
6195: $as_echo_n "(cached) " >&6
6196: else
6197: if test -n "$AUTOMAKE"; then
6198: ac_cv_prog_AUTOMAKE="$AUTOMAKE" # Let the user override the test.
6199: else
6200: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201: for as_dir in $PATH
6202: do
6203: IFS=$as_save_IFS
6204: test -z "$as_dir" && as_dir=.
6205: for ac_exec_ext in '' $ac_executable_extensions; do
6206: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207: ac_cv_prog_AUTOMAKE="yes"
6208: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209: break 2
6210: fi
6211: done
6212: done
6213: IFS=$as_save_IFS
6214:
6215: test -z "$ac_cv_prog_AUTOMAKE" && ac_cv_prog_AUTOMAKE="no"
6216: fi
6217: fi
6218: AUTOMAKE=$ac_cv_prog_AUTOMAKE
6219: if test -n "$AUTOMAKE"; then
6220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
6221: $as_echo "$AUTOMAKE" >&6; }
6222: else
6223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224: $as_echo "no" >&6; }
6225: fi
6226:
6227:
6228: if test "$AUTOMAKE" = "no"; then
6229: as_fn_error "Cannot find automake! You have to install it." "$LINENO" 5
6230: fi
6231:
6232: # Extract the first word of "autoconf", so it can be a program name with args.
6233: set dummy autoconf; ac_word=$2
6234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235: $as_echo_n "checking for $ac_word... " >&6; }
6236: if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6237: $as_echo_n "(cached) " >&6
6238: else
6239: if test -n "$AUTOCONF"; then
6240: ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6241: else
6242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243: for as_dir in $PATH
6244: do
6245: IFS=$as_save_IFS
6246: test -z "$as_dir" && as_dir=.
6247: for ac_exec_ext in '' $ac_executable_extensions; do
6248: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249: ac_cv_prog_AUTOCONF="yes"
6250: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251: break 2
6252: fi
6253: done
6254: done
6255: IFS=$as_save_IFS
6256:
6257: test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="no"
6258: fi
6259: fi
6260: AUTOCONF=$ac_cv_prog_AUTOCONF
6261: if test -n "$AUTOCONF"; then
6262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6263: $as_echo "$AUTOCONF" >&6; }
6264: else
6265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266: $as_echo "no" >&6; }
6267: fi
6268:
6269:
6270: if test "$AUTOCONF" = "no"; then
6271: as_fn_error "Cannot find autoconf! You have to install it." "$LINENO" 5
6272: fi
6273:
6274: (cd "$srcdir"/tools/$FILE && libtoolize --copy --force \
6275: && aclocal && automake -af && autoconf);
6276:
6277:
6278:
6279: # Check whether --enable-final-run-path was given.
6280: if test "${enable_final_run_path+set}" = set; then :
6281: enableval=$enable_final_run_path;
6282: if test "x$enable_final_run_path" = "x"; then
6283: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6284: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6285: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6286: else
6287: RUNPATH="$enable_final_run_path"
6288: fi
6289:
6290: else
6291: RUNPATH="\${prefix}"
6292:
6293: fi
6294:
6295:
6296:
6297:
6298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6299: $as_echo_n "checking whether ln -s works... " >&6; }
6300: LN_S=$as_ln_s
6301: if test "$LN_S" = "ln -s"; then
6302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303: $as_echo "yes" >&6; }
6304: else
6305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6306: $as_echo "no, using $LN_S" >&6; }
6307: fi
6308:
6309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6310: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6311: set x ${MAKE-make}
6312: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6313: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6314: $as_echo_n "(cached) " >&6
6315: else
6316: cat >conftest.make <<\_ACEOF
6317: SHELL = /bin/sh
6318: all:
6319: @echo '@@@%%%=$(MAKE)=@@@%%%'
6320: _ACEOF
6321: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6322: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6323: *@@@%%%=?*=@@@%%%*)
6324: eval ac_cv_prog_make_${ac_make}_set=yes;;
6325: *)
6326: eval ac_cv_prog_make_${ac_make}_set=no;;
6327: esac
6328: rm -f conftest.make
6329: fi
6330: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6332: $as_echo "yes" >&6; }
6333: SET_MAKE=
6334: else
6335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336: $as_echo "no" >&6; }
6337: SET_MAKE="MAKE=${MAKE-make}"
6338: fi
6339:
6340: if test -n "$ac_tool_prefix"; then
6341: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6342: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6343: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344: $as_echo_n "checking for $ac_word... " >&6; }
6345: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6346: $as_echo_n "(cached) " >&6
6347: else
6348: if test -n "$RANLIB"; then
6349: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6350: else
6351: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352: for as_dir in $PATH
6353: do
6354: IFS=$as_save_IFS
6355: test -z "$as_dir" && as_dir=.
6356: for ac_exec_ext in '' $ac_executable_extensions; do
6357: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6359: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360: break 2
6361: fi
6362: done
6363: done
6364: IFS=$as_save_IFS
6365:
6366: fi
6367: fi
6368: RANLIB=$ac_cv_prog_RANLIB
6369: if test -n "$RANLIB"; then
6370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6371: $as_echo "$RANLIB" >&6; }
6372: else
6373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374: $as_echo "no" >&6; }
6375: fi
6376:
6377:
6378: fi
6379: if test -z "$ac_cv_prog_RANLIB"; then
6380: ac_ct_RANLIB=$RANLIB
6381: # Extract the first word of "ranlib", so it can be a program name with args.
6382: set dummy ranlib; ac_word=$2
6383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384: $as_echo_n "checking for $ac_word... " >&6; }
6385: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6386: $as_echo_n "(cached) " >&6
6387: else
6388: if test -n "$ac_ct_RANLIB"; then
6389: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6390: else
6391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392: for as_dir in $PATH
6393: do
6394: IFS=$as_save_IFS
6395: test -z "$as_dir" && as_dir=.
6396: for ac_exec_ext in '' $ac_executable_extensions; do
6397: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398: ac_cv_prog_ac_ct_RANLIB="ranlib"
6399: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400: break 2
6401: fi
6402: done
6403: done
6404: IFS=$as_save_IFS
6405:
6406: fi
6407: fi
6408: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6409: if test -n "$ac_ct_RANLIB"; then
6410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6411: $as_echo "$ac_ct_RANLIB" >&6; }
6412: else
6413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414: $as_echo "no" >&6; }
6415: fi
6416:
6417: if test "x$ac_ct_RANLIB" = x; then
6418: RANLIB=":"
6419: else
6420: case $cross_compiling:$ac_tool_warned in
6421: yes:)
6422: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424: ac_tool_warned=yes ;;
6425: esac
6426: RANLIB=$ac_ct_RANLIB
6427: fi
6428: else
6429: RANLIB="$ac_cv_prog_RANLIB"
6430: fi
6431:
6432:
6433: # Extract the first word of "awk", so it can be a program name with args.
6434: set dummy awk; ac_word=$2
6435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436: $as_echo_n "checking for $ac_word... " >&6; }
6437: if test "${ac_cv_prog_AWK+set}" = set; then :
6438: $as_echo_n "(cached) " >&6
6439: else
6440: if test -n "$AWK"; then
6441: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6442: else
6443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444: for as_dir in $PATH
6445: do
6446: IFS=$as_save_IFS
6447: test -z "$as_dir" && as_dir=.
6448: for ac_exec_ext in '' $ac_executable_extensions; do
6449: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450: ac_cv_prog_AWK="yes"
6451: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452: break 2
6453: fi
6454: done
6455: done
6456: IFS=$as_save_IFS
6457:
6458: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6459: fi
6460: fi
6461: AWK=$ac_cv_prog_AWK
6462: if test -n "$AWK"; then
6463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6464: $as_echo "$AWK" >&6; }
6465: else
6466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467: $as_echo "no" >&6; }
6468: fi
6469:
6470:
6471: if test "$AWK" = no; then
6472: as_fn_error "Can not find awk !" "$LINENO" 5
6473: fi
6474:
6475: # Extract the first word of "sed", so it can be a program name with args.
6476: set dummy sed; ac_word=$2
6477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478: $as_echo_n "checking for $ac_word... " >&6; }
6479: if test "${ac_cv_prog_SED+set}" = set; then :
6480: $as_echo_n "(cached) " >&6
6481: else
6482: if test -n "$SED"; then
6483: ac_cv_prog_SED="$SED" # Let the user override the test.
6484: else
6485: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486: for as_dir in $PATH
6487: do
6488: IFS=$as_save_IFS
6489: test -z "$as_dir" && as_dir=.
6490: for ac_exec_ext in '' $ac_executable_extensions; do
6491: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492: ac_cv_prog_SED="yes"
6493: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494: break 2
6495: fi
6496: done
6497: done
6498: IFS=$as_save_IFS
6499:
6500: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6501: fi
6502: fi
6503: SED=$ac_cv_prog_SED
6504: if test -n "$SED"; then
6505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6506: $as_echo "$SED" >&6; }
6507: else
6508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509: $as_echo "no" >&6; }
6510: fi
6511:
6512:
6513: if test "$SED" = no; then
6514: as_fn_error "Can not find sed !" "$LINENO" 5
6515: fi
6516:
6517: if test "$TEX_SUPPORT" = guessed; then
6518: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6519:
6520: # Extract the first word of "tex", so it can be a program name with args.
6521: set dummy tex; ac_word=$2
6522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523: $as_echo_n "checking for $ac_word... " >&6; }
6524: if test "${ac_cv_prog_TEX+set}" = set; then :
6525: $as_echo_n "(cached) " >&6
6526: else
6527: if test -n "$TEX"; then
6528: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6529: else
6530: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531: for as_dir in $PATH
6532: do
6533: IFS=$as_save_IFS
6534: test -z "$as_dir" && as_dir=.
6535: for ac_exec_ext in '' $ac_executable_extensions; do
6536: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537: ac_cv_prog_TEX="yes"
6538: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539: break 2
6540: fi
6541: done
6542: done
6543: IFS=$as_save_IFS
6544:
6545: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6546: fi
6547: fi
6548: TEX=$ac_cv_prog_TEX
6549: if test -n "$TEX"; then
6550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6551: $as_echo "$TEX" >&6; }
6552: else
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554: $as_echo "no" >&6; }
6555: fi
6556:
6557:
6558: if test "$TEX" = no; then
6559: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6560: Download at http://tex.loria.fr/
6561: " >&5
6562: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6563: Download at http://tex.loria.fr/
6564: " >&2;}
6565: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6566: fi
6567:
6568: # Extract the first word of "latex", so it can be a program name with args.
6569: set dummy latex; ac_word=$2
6570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571: $as_echo_n "checking for $ac_word... " >&6; }
6572: if test "${ac_cv_prog_LATEX+set}" = set; then :
6573: $as_echo_n "(cached) " >&6
6574: else
6575: if test -n "$LATEX"; then
6576: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6577: else
6578: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579: for as_dir in $PATH
6580: do
6581: IFS=$as_save_IFS
6582: test -z "$as_dir" && as_dir=.
6583: for ac_exec_ext in '' $ac_executable_extensions; do
6584: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585: ac_cv_prog_LATEX="yes"
6586: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587: break 2
6588: fi
6589: done
6590: done
6591: IFS=$as_save_IFS
6592:
6593: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6594: fi
6595: fi
6596: LATEX=$ac_cv_prog_LATEX
6597: if test -n "$LATEX"; then
6598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6599: $as_echo "$LATEX" >&6; }
6600: else
6601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602: $as_echo "no" >&6; }
6603: fi
6604:
6605:
6606: if test "$LATEX" = no; then
6607: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6608: Download at http://tex.loria.fr/
6609: " >&5
6610: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6611: Download at http://tex.loria.fr/
6612: " >&2;}
6613: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6614: fi
6615:
6616: # Extract the first word of "dvips", so it can be a program name with args.
6617: set dummy dvips; ac_word=$2
6618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619: $as_echo_n "checking for $ac_word... " >&6; }
6620: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6621: $as_echo_n "(cached) " >&6
6622: else
6623: if test -n "$DVIPS"; then
6624: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6625: else
6626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627: for as_dir in $PATH
6628: do
6629: IFS=$as_save_IFS
6630: test -z "$as_dir" && as_dir=.
6631: for ac_exec_ext in '' $ac_executable_extensions; do
6632: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633: ac_cv_prog_DVIPS="yes"
6634: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635: break 2
6636: fi
6637: done
6638: done
6639: IFS=$as_save_IFS
6640:
6641: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6642: fi
6643: fi
6644: DVIPS=$ac_cv_prog_DVIPS
6645: if test -n "$DVIPS"; then
6646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6647: $as_echo "$DVIPS" >&6; }
6648: else
6649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650: $as_echo "no" >&6; }
6651: fi
6652:
6653:
6654: if test "$DVIPS" = no; then
6655: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6656: Download at http://tex.loria.fr/
6657: " >&5
6658: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6659: Download at http://tex.loria.fr/
6660: " >&2;}
6661: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6662: fi
6663:
6664: # Extract the first word of "gs", so it can be a program name with args.
6665: set dummy gs; ac_word=$2
6666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667: $as_echo_n "checking for $ac_word... " >&6; }
6668: if test "${ac_cv_prog_GS+set}" = set; then :
6669: $as_echo_n "(cached) " >&6
6670: else
6671: if test -n "$GS"; then
6672: ac_cv_prog_GS="$GS" # Let the user override the test.
6673: else
6674: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675: for as_dir in $PATH
6676: do
6677: IFS=$as_save_IFS
6678: test -z "$as_dir" && as_dir=.
6679: for ac_exec_ext in '' $ac_executable_extensions; do
6680: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681: ac_cv_prog_GS="yes"
6682: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683: break 2
6684: fi
6685: done
6686: done
6687: IFS=$as_save_IFS
6688:
6689: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6690: fi
6691: fi
6692: GS=$ac_cv_prog_GS
6693: if test -n "$GS"; then
6694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6695: $as_echo "$GS" >&6; }
6696: else
6697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698: $as_echo "no" >&6; }
6699: fi
6700:
6701:
6702: if test "$GS" = no; then
6703: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6704: Download at http://ftp.lip6.fr/
6705: " >&5
6706: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6707: Download at http://ftp.lip6.fr/
6708: " >&2;}
6709: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6710: fi
6711:
6712: # Extract the first word of "gv", so it can be a program name with args.
6713: set dummy gv; ac_word=$2
6714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715: $as_echo_n "checking for $ac_word... " >&6; }
6716: if test "${ac_cv_prog_GV+set}" = set; then :
6717: $as_echo_n "(cached) " >&6
6718: else
6719: if test -n "$GV"; then
6720: ac_cv_prog_GV="$GV" # Let the user override the test.
6721: else
6722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723: for as_dir in $PATH
6724: do
6725: IFS=$as_save_IFS
6726: test -z "$as_dir" && as_dir=.
6727: for ac_exec_ext in '' $ac_executable_extensions; do
6728: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729: ac_cv_prog_GV="yes"
6730: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731: break 2
6732: fi
6733: done
6734: done
6735: IFS=$as_save_IFS
6736:
6737: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6738: fi
6739: fi
6740: GV=$ac_cv_prog_GV
6741: if test -n "$GV"; then
6742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6743: $as_echo "$GV" >&6; }
6744: else
6745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746: $as_echo "no" >&6; }
6747: fi
6748:
6749:
6750: if test "$GV" = no; then
6751: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6752: Download at http://ftp.lip6.fr/
6753: " >&5
6754: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6755: Download at http://ftp.lip6.fr/
6756: " >&2;}
6757: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6758: fi
6759: else
6760: if test "$TEX_SUPPORT" = no; then
6761: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6762: else
6763: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6764: fi
6765: fi
6766:
6767: if test "$GNUPLOT_SUPPORT" = guessed; then
6768: # Extract the first word of "gnuplot", so it can be a program name with args.
6769: set dummy gnuplot; ac_word=$2
6770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771: $as_echo_n "checking for $ac_word... " >&6; }
6772: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6773: $as_echo_n "(cached) " >&6
6774: else
6775: if test -n "$GNUPLOT_P"; then
6776: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6777: else
6778: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779: for as_dir in $PATH
6780: do
6781: IFS=$as_save_IFS
6782: test -z "$as_dir" && as_dir=.
6783: for ac_exec_ext in '' $ac_executable_extensions; do
6784: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785: ac_cv_prog_GNUPLOT_P="yes"
6786: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787: break 2
6788: fi
6789: done
6790: done
6791: IFS=$as_save_IFS
6792:
6793: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6794: fi
6795: fi
6796: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6797: if test -n "$GNUPLOT_P"; then
6798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6799: $as_echo "$GNUPLOT_P" >&6; }
6800: else
6801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802: $as_echo "no" >&6; }
6803: fi
6804:
6805:
6806: if test "$GNUPLOT_P" = no; then
6807: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6808: Download at http://www.gnuplot.vt.edu/
6809: " >&5
6810: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6811: Download at http://www.gnuplot.vt.edu/
6812: " >&2;}
6813: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6814: else
6815: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6816: fi
6817: else
6818: if test "$GNUPLOT_SUPPORT" = no; then
6819: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6820: else
6821: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6822: fi
6823: fi
6824:
6825: if test "$VIM_SUPPORT" = guessed; then
6826: # Extract the first word of "vim", so it can be a program name with args.
6827: set dummy vim; ac_word=$2
6828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829: $as_echo_n "checking for $ac_word... " >&6; }
6830: if test "${ac_cv_prog_VIM+set}" = set; then :
6831: $as_echo_n "(cached) " >&6
6832: else
6833: if test -n "$VIM"; then
6834: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6835: else
6836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837: for as_dir in $PATH
6838: do
6839: IFS=$as_save_IFS
6840: test -z "$as_dir" && as_dir=.
6841: for ac_exec_ext in '' $ac_executable_extensions; do
6842: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843: ac_cv_prog_VIM="yes"
6844: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845: break 2
6846: fi
6847: done
6848: done
6849: IFS=$as_save_IFS
6850:
6851: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6852: fi
6853: fi
6854: VIM=$ac_cv_prog_VIM
6855: if test -n "$VIM"; then
6856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6857: $as_echo "$VIM" >&6; }
6858: else
6859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860: $as_echo "no" >&6; }
6861: fi
6862:
6863:
6864: if test "$VIM" = no; then
6865: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6866: Download at http://www.vim.org/
6867: " >&5
6868: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6869: Download at http://www.vim.org/
6870: " >&2;}
6871: VIM_SUPPORT="-UVIM_SUPPORT"
6872: else
6873: VIM_SUPPORT="-DVIM_SUPPORT"
6874: fi
6875: else
6876: if test "$VIM_SUPPORT" = no; then
6877: VIM_SUPPORT="-UVIM_SUPPORT"
6878: else
6879: VIM_SUPPORT="-DVIM_SUPPORT"
6880: fi
6881: fi
6882:
6883: if test "$MOTIF_SUPPORT" = guessed; then
6884: CFLAGS_ORIG=$CFLAGS
6885: LIBS_ORIG=$LIBS
6886: CFLAGS="$CFLAGS $X_CFLAGS"
6887: LIBS="$LIB $X_LIBS"
6888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6889: $as_echo_n "checking for main in -lXm... " >&6; }
6890: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6891: $as_echo_n "(cached) " >&6
6892: else
6893: ac_check_lib_save_LIBS=$LIBS
6894: LIBS="-lXm $LIBS"
6895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896: /* end confdefs.h. */
6897:
6898:
6899: int
6900: main ()
6901: {
6902: return main ();
6903: ;
6904: return 0;
6905: }
6906: _ACEOF
6907: if ac_fn_c_try_link "$LINENO"; then :
6908: ac_cv_lib_Xm_main=yes
6909: else
6910: ac_cv_lib_Xm_main=no
6911: fi
6912: rm -f core conftest.err conftest.$ac_objext \
6913: conftest$ac_exeext conftest.$ac_ext
6914: LIBS=$ac_check_lib_save_LIBS
6915: fi
6916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6917: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6918: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6919: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6920: else
6921: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6922: fi
6923:
6924: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6925: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6926: Motif flag is disabled.
6927: " >&5
6928: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6929: Motif flag is disabled.
6930: " >&2;}
6931: fi
6932: LIBS=$LIBS_ORIG
6933: CFLAGS=$CFLAGS_ORIG
6934: fi
6935:
6936: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6937: CFLAGS_ORIG=$CFLAGS
6938: LIBS_ORIG=$LIBS
6939: CFLAGS="$CFLAGS $X_CFLAGS"
6940: LIBS="$LIB $X_LIBS"
6941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6942: $as_echo_n "checking for main in -lXpm... " >&6; }
6943: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6944: $as_echo_n "(cached) " >&6
6945: else
6946: ac_check_lib_save_LIBS=$LIBS
6947: LIBS="-lXpm $LIBS"
6948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949: /* end confdefs.h. */
6950:
6951:
6952: int
6953: main ()
6954: {
6955: return main ();
6956: ;
6957: return 0;
6958: }
6959: _ACEOF
6960: if ac_fn_c_try_link "$LINENO"; then :
6961: ac_cv_lib_Xpm_main=yes
6962: else
6963: ac_cv_lib_Xpm_main=no
6964: fi
6965: rm -f core conftest.err conftest.$ac_objext \
6966: conftest$ac_exeext conftest.$ac_ext
6967: LIBS=$ac_check_lib_save_LIBS
6968: fi
6969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6970: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6971: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6972: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6973: else
6974: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6975: fi
6976:
6977: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6978: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6979: else
6980: libX=""
6981: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6982: Motif flag is disabled.
6983: " >&5
6984: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6985: Motif flag is disabled.
6986: " >&2;}
6987: fi
6988: LIBS=$LIBS_ORIG
6989: CFLAGS=$CFLAGS_ORIG
6990: else
6991: libX=""
6992: fi
6993:
6994:
6995:
6996:
6997:
6998:
6999:
7000:
7001:
7002:
7003:
7004: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7005:
7006:
7007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7008: $as_echo_n "checking for main in -lm... " >&6; }
7009: if test "${ac_cv_lib_m_main+set}" = set; then :
7010: $as_echo_n "(cached) " >&6
7011: else
7012: ac_check_lib_save_LIBS=$LIBS
7013: LIBS="-lm $LIBS"
7014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015: /* end confdefs.h. */
7016:
7017:
7018: int
7019: main ()
7020: {
7021: return main ();
7022: ;
7023: return 0;
7024: }
7025: _ACEOF
7026: if ac_fn_c_try_link "$LINENO"; then :
7027: ac_cv_lib_m_main=yes
7028: else
7029: ac_cv_lib_m_main=no
7030: fi
7031: rm -f core conftest.err conftest.$ac_objext \
7032: conftest$ac_exeext conftest.$ac_ext
7033: LIBS=$ac_check_lib_save_LIBS
7034: fi
7035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7036: $as_echo "$ac_cv_lib_m_main" >&6; }
7037: if test "x$ac_cv_lib_m_main" = x""yes; then :
7038: cat >>confdefs.h <<_ACEOF
7039: #define HAVE_LIBM 1
7040: _ACEOF
7041:
7042: LIBS="-lm $LIBS"
7043:
7044: else
7045: as_fn_error "Can not find libm !" "$LINENO" 5
7046: fi
7047:
7048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7049: $as_echo_n "checking for main in -lpthread... " >&6; }
7050: if test "${ac_cv_lib_pthread_main+set}" = set; then :
7051: $as_echo_n "(cached) " >&6
7052: else
7053: ac_check_lib_save_LIBS=$LIBS
7054: LIBS="-lpthread $LIBS"
7055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056: /* end confdefs.h. */
7057:
7058:
7059: int
7060: main ()
7061: {
7062: return main ();
7063: ;
7064: return 0;
7065: }
7066: _ACEOF
7067: if ac_fn_c_try_link "$LINENO"; then :
7068: ac_cv_lib_pthread_main=yes
7069: else
7070: ac_cv_lib_pthread_main=no
7071: fi
7072: rm -f core conftest.err conftest.$ac_objext \
7073: conftest$ac_exeext conftest.$ac_ext
7074: LIBS=$ac_check_lib_save_LIBS
7075: fi
7076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7077: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7078: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7079: cat >>confdefs.h <<_ACEOF
7080: #define HAVE_LIBPTHREAD 1
7081: _ACEOF
7082:
7083: LIBS="-lpthread $LIBS"
7084:
7085: else
7086: as_fn_error "Can not find libpthread !" "$LINENO" 5
7087: fi
7088:
7089:
7090: if test "$CYGWIN" != yes; then
7091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7092: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7093: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7094: $as_echo_n "(cached) " >&6
7095: else
7096: ac_check_lib_save_LIBS=$LIBS
7097: LIBS="-ldl $LIBS"
7098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099: /* end confdefs.h. */
7100:
7101: /* Override any GCC internal prototype to avoid an error.
7102: Use char because int might match the return type of a GCC
7103: builtin and then its argument prototype would still apply. */
7104: #ifdef __cplusplus
7105: extern "C"
7106: #endif
7107: char dlopen ();
7108: int
7109: main ()
7110: {
7111: return dlopen ();
7112: ;
7113: return 0;
7114: }
7115: _ACEOF
7116: if ac_fn_c_try_link "$LINENO"; then :
7117: ac_cv_lib_dl_dlopen=yes
7118: else
7119: ac_cv_lib_dl_dlopen=no
7120: fi
7121: rm -f core conftest.err conftest.$ac_objext \
7122: conftest$ac_exeext conftest.$ac_ext
7123: LIBS=$ac_check_lib_save_LIBS
7124: fi
7125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7126: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7127: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7128: LIBS="$LIBS -ldl"
7129: else
7130: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7131: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7132: fi
7133:
7134: fi
7135:
7136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7137: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7138: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7139: $as_echo_n "(cached) " >&6
7140: else
7141: ac_check_lib_save_LIBS=$LIBS
7142: LIBS="-lrt $LIBS"
7143: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144: /* end confdefs.h. */
7145:
7146: /* Override any GCC internal prototype to avoid an error.
7147: Use char because int might match the return type of a GCC
7148: builtin and then its argument prototype would still apply. */
7149: #ifdef __cplusplus
7150: extern "C"
7151: #endif
7152: char nanosleep ();
7153: int
7154: main ()
7155: {
7156: return nanosleep ();
7157: ;
7158: return 0;
7159: }
7160: _ACEOF
7161: if ac_fn_c_try_link "$LINENO"; then :
7162: ac_cv_lib_rt_nanosleep=yes
7163: else
7164: ac_cv_lib_rt_nanosleep=no
7165: fi
7166: rm -f core conftest.err conftest.$ac_objext \
7167: conftest$ac_exeext conftest.$ac_ext
7168: LIBS=$ac_check_lib_save_LIBS
7169: fi
7170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7171: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7172: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7173: LIBS="$LIBS -lrt"
7174: else
7175: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7176: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7177: fi
7178:
7179:
7180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7181: $as_echo_n "checking for bind in -lsocket... " >&6; }
7182: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7183: $as_echo_n "(cached) " >&6
7184: else
7185: ac_check_lib_save_LIBS=$LIBS
7186: LIBS="-lsocket $LIBS"
7187: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188: /* end confdefs.h. */
7189:
7190: /* Override any GCC internal prototype to avoid an error.
7191: Use char because int might match the return type of a GCC
7192: builtin and then its argument prototype would still apply. */
7193: #ifdef __cplusplus
7194: extern "C"
7195: #endif
7196: char bind ();
7197: int
7198: main ()
7199: {
7200: return bind ();
7201: ;
7202: return 0;
7203: }
7204: _ACEOF
7205: if ac_fn_c_try_link "$LINENO"; then :
7206: ac_cv_lib_socket_bind=yes
7207: else
7208: ac_cv_lib_socket_bind=no
7209: fi
7210: rm -f core conftest.err conftest.$ac_objext \
7211: conftest$ac_exeext conftest.$ac_ext
7212: LIBS=$ac_check_lib_save_LIBS
7213: fi
7214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7215: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7216: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7217: LIBS="$LIBS -lsocket"
7218: else
7219: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7220: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7221: fi
7222:
7223:
7224: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7225:
7226: # Check whether --with-mysql was given.
7227: if test "${with_mysql+set}" = set; then :
7228: withval=$with_mysql;
7229: else
7230: with_mysql=check
7231: fi
7232:
7233:
7234: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7235: libMySQLinc="-I/usr/include"
7236: libMySQLlib="-L/usr/lib"
7237:
7238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7239: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7240: saved_CFLAGS="$CFLAGS"
7241: CFLAGS="$CFLAGS $libMySQLinc"
7242: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243: /* end confdefs.h. */
7244: #include "mysql.h"
7245: int
7246: main ()
7247: {
7248:
7249: ;
7250: return 0;
7251: }
7252: _ACEOF
7253: if ac_fn_c_try_compile "$LINENO"; then :
7254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7255: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7256: libMySQLinc=$libMySQLinc/mysql
7257: else
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7260: fi
7261: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262: CFLAGS=$saved_CFLAGS
7263:
7264: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7266: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7267: saved_CFLAGS="$CFLAGS"
7268: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270: /* end confdefs.h. */
7271: #include "mysql.h"
7272: int
7273: main ()
7274: {
7275:
7276: ;
7277: return 0;
7278: }
7279: _ACEOF
7280: if ac_fn_c_try_compile "$LINENO"; then :
7281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7282: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7283: libMySQLinc=$libMySQLinc
7284: else
7285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7287: fi
7288: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289: CFLAGS=$saved_CFLAGS
7290: libMySQLinc=$libMySQLinc/mysql
7291: fi
7292:
7293: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7295: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7296: saved_CFLAGS="$CFLAGS"
7297: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7298: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299: /* end confdefs.h. */
7300: #include "mysql.h"
7301: int
7302: main ()
7303: {
7304:
7305: ;
7306: return 0;
7307: }
7308: _ACEOF
7309: if ac_fn_c_try_compile "$LINENO"; then :
7310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7311: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7312: libMySQLinc=$libMySQLinc/mysql
7313: else
7314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7316: fi
7317: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318: CFLAGS=$saved_CFLAGS
7319: libMySQLinc=$libMySQLinc/../local/include
7320: libMySQLlib=$libMySQLlib/../local/lib
7321: fi
7322:
7323: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7325: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7326: saved_CFLAGS="$CFLAGS"
7327: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7328: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329: /* end confdefs.h. */
7330: #include "mysql.h"
7331: int
7332: main ()
7333: {
7334:
7335: ;
7336: return 0;
7337: }
7338: _ACEOF
7339: if ac_fn_c_try_compile "$LINENO"; then :
7340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7342: libMySQLinc=$libMySQLinc/mysql
7343: else
7344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7346: fi
7347: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348: CFLAGS=$saved_CFLAGS
7349: libMySQLinc=$libMySQLinc/../local/include/mysql
7350: libMySQLlib=$libMySQLlib/../local/lib
7351: fi
7352: else
7353: if test "x$with_mysql" != xno; then
7354: libMySQLinc="-I$with_mysql/include"
7355: libMySQLlib="-L$with_mysql/lib"
7356:
7357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7358: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7359: saved_CFLAGS="$CFLAGS"
7360: CFLAGS="$CFLAGS $libMySQLinc"
7361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362: /* end confdefs.h. */
7363: #include "mysql.h"
7364: int
7365: main ()
7366: {
7367:
7368: ;
7369: return 0;
7370: }
7371: _ACEOF
7372: if ac_fn_c_try_compile "$LINENO"; then :
7373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7374: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7375: libMySQLinc=$libMySQLinc/mysql
7376: else
7377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7379: fi
7380: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381: CFLAGS=$saved_CFLAGS
7382:
7383: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7385: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7386: saved_CFLAGS="$CFLAGS"
7387: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389: /* end confdefs.h. */
7390: #include "mysql.h"
7391: int
7392: main ()
7393: {
7394:
7395: ;
7396: return 0;
7397: }
7398: _ACEOF
7399: if ac_fn_c_try_compile "$LINENO"; then :
7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7401: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7402: libMySQLinc=$libMySQLinc
7403: else
7404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7406: fi
7407: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408: CFLAGS=$saved_CFLAGS
7409: libMySQLinc=$libMySQLinc/mysql
7410: fi
7411: else
7412: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7413: fi
7414: fi
7415:
7416: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7417: MYSQL_LIB=no
7418:
7419: if test $MYSQL_LIB = no; then
7420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7421: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7422: saved_LIBS="$LIBS"
7423: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425: /* end confdefs.h. */
7426: #include "mysql.h"
7427: int
7428: main ()
7429: {
7430: MYSQL mysql; mysql_init(&mysql);
7431: ;
7432: return 0;
7433: }
7434: _ACEOF
7435: if ac_fn_c_try_link "$LINENO"; then :
7436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7437: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7438: else
7439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440: $as_echo "no" >&6; }; MYSQL_LIB="no"
7441: fi
7442: rm -f core conftest.err conftest.$ac_objext \
7443: conftest$ac_exeext conftest.$ac_ext
7444: LIBS=$saved_LIBS;
7445: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7446: fi
7447:
7448: if test $MYSQL_LIB = no; then
7449: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7450: fi
7451: fi
7452:
7453: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7454: libMySQLinc=
7455: libMySQLlib=
7456: fi
7457:
7458:
7459:
7460:
7461:
7462: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7463:
7464: # Check whether --with-postgresql was given.
7465: if test "${with_postgresql+set}" = set; then :
7466: withval=$with_postgresql;
7467: else
7468: with_postgresql=check
7469: fi
7470:
7471:
7472: # with_postgresql : check [pas défini], yes [uniquement --with],
7473: # no [--without], valeur [--with=valeur].
7474:
7475: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7476: libPgSQLinc="-I/usr/include"
7477: libPgSQLlib="-L/usr/lib"
7478:
7479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7480: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7481: saved_CFLAGS="$CFLAGS"
7482: CFLAGS="$CFLAGS $libPgSQLinc"
7483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484: /* end confdefs.h. */
7485: #include "libpq-fe.h"
7486: int
7487: main ()
7488: {
7489:
7490: ;
7491: return 0;
7492: }
7493: _ACEOF
7494: if ac_fn_c_try_compile "$LINENO"; then :
7495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7497: else
7498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7500: fi
7501: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502: CFLAGS=$saved_CFLAGS
7503:
7504: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7506: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7507: saved_CFLAGS="$CFLAGS"
7508: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510: /* end confdefs.h. */
7511: #include "libpq-fe.h"
7512: int
7513: main ()
7514: {
7515:
7516: ;
7517: return 0;
7518: }
7519: _ACEOF
7520: if ac_fn_c_try_compile "$LINENO"; then :
7521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7522: $as_echo "yes" >&6; };
7523: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7524: else
7525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526: $as_echo "no" >&6; };
7527: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7528: fi
7529: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530: CFLAGS=$saved_CFLAGS
7531: libPgSQLinc=$libPgSQLinc/postgresql
7532: fi
7533:
7534: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7536: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7537: saved_CFLAGS="$CFLAGS"
7538: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540: /* end confdefs.h. */
7541: #include "libpq-fe.h"
7542: int
7543: main ()
7544: {
7545:
7546: ;
7547: return 0;
7548: }
7549: _ACEOF
7550: if ac_fn_c_try_compile "$LINENO"; then :
7551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7552: $as_echo "yes" >&6; };
7553: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7554: else
7555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556: $as_echo "no" >&6; };
7557: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7558: fi
7559: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560: CFLAGS=$saved_CFLAGS
7561: libPgSQLinc=$libPgSQLinc/pgsql
7562: fi
7563:
7564: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7566: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7567: saved_CFLAGS="$CFLAGS"
7568: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570: /* end confdefs.h. */
7571: #include "libpq-fe.h"
7572: int
7573: main ()
7574: {
7575:
7576: ;
7577: return 0;
7578: }
7579: _ACEOF
7580: if ac_fn_c_try_compile "$LINENO"; then :
7581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7582: $as_echo "yes" >&6; };
7583: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7584: else
7585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586: $as_echo "no" >&6; };
7587: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7588: fi
7589: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590: CFLAGS=$saved_CFLAGS
7591: libPgSQLinc=$libPgSQLinc/../local/include
7592: libPgSQLlib=$libPgSQLlib/../local/lib
7593: fi
7594:
7595: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7597: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7598: saved_CFLAGS="$CFLAGS"
7599: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7600: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601: /* end confdefs.h. */
7602: #include "libpq-fe.h"
7603: int
7604: main ()
7605: {
7606:
7607: ;
7608: return 0;
7609: }
7610: _ACEOF
7611: if ac_fn_c_try_compile "$LINENO"; then :
7612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7613: $as_echo "yes" >&6; };
7614: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7615: else
7616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617: $as_echo "no" >&6; };
7618: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7619: fi
7620: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621: CFLAGS=$saved_CFLAGS
7622: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7623: libPgSQLlib=$libPgSQLlib/../local/lib
7624: fi
7625:
7626: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7628: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7629: saved_CFLAGS="$CFLAGS"
7630: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7631: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632: /* end confdefs.h. */
7633: #include "libpq-fe.h"
7634: int
7635: main ()
7636: {
7637:
7638: ;
7639: return 0;
7640: }
7641: _ACEOF
7642: if ac_fn_c_try_compile "$LINENO"; then :
7643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7644: $as_echo "yes" >&6; };
7645: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7646: else
7647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648: $as_echo "no" >&6; };
7649: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7650: fi
7651: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652: CFLAGS=$saved_CFLAGS
7653: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7654: libPgSQLlib=$libPgSQLlib/../local/lib
7655: fi
7656: else
7657: if test "x$with_postgresql" != xno; then
7658: libPgSQLinc="-I$with_postgresql/include"
7659: libPgSQLlib="-L$with_postgresql/lib"
7660:
7661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7662: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7663: saved_CFLAGS="$CFLAGS"
7664: CFLAGS="$CFLAGS $libPgSQLinc"
7665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666: /* end confdefs.h. */
7667: #include "libpq-fe.h"
7668: int
7669: main ()
7670: {
7671:
7672: ;
7673: return 0;
7674: }
7675: _ACEOF
7676: if ac_fn_c_try_compile "$LINENO"; then :
7677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7678: $as_echo "yes" >&6; };
7679: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7680: else
7681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682: $as_echo "no" >&6; };
7683: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7684: fi
7685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686: CFLAGS=$saved_CFLAGS
7687:
7688: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7690: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7691: saved_CFLAGS="$CFLAGS"
7692: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694: /* end confdefs.h. */
7695: #include "libpq-fe.h"
7696: int
7697: main ()
7698: {
7699:
7700: ;
7701: return 0;
7702: }
7703: _ACEOF
7704: if ac_fn_c_try_compile "$LINENO"; then :
7705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7706: $as_echo "yes" >&6; };
7707: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7708: else
7709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710: $as_echo "no" >&6; };
7711: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7712: fi
7713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714: CFLAGS=$saved_CFLAGS
7715: libPgSQLinc=$libPgSQLinc/postgresql
7716: fi
7717:
7718: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7720: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7721: saved_CFLAGS="$CFLAGS"
7722: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724: /* end confdefs.h. */
7725: #include "libpq-fe.h"
7726: int
7727: main ()
7728: {
7729:
7730: ;
7731: return 0;
7732: }
7733: _ACEOF
7734: if ac_fn_c_try_compile "$LINENO"; then :
7735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7736: $as_echo "yes" >&6; };
7737: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7738: else
7739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740: $as_echo "no" >&6; };
7741: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7742: fi
7743: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744: CFLAGS=$saved_CFLAGS
7745: libPgSQLinc=$libPgSQLinc/pgsql
7746: fi
7747: else
7748: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7749: fi
7750: fi
7751:
7752: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7753: POSTGRESQL_LIB=no
7754:
7755: if test $POSTGRESQL_LIB = no; then
7756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7757: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7758: saved_LIBS="$LIBS"
7759: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761: /* end confdefs.h. */
7762: #include "libpq-fe.h"
7763: int
7764: main ()
7765: {
7766: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7767: PQconnectdb(conninfo);
7768: ;
7769: return 0;
7770: }
7771: _ACEOF
7772: if ac_fn_c_try_link "$LINENO"; then :
7773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7774: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7775: else
7776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7778: fi
7779: rm -f core conftest.err conftest.$ac_objext \
7780: conftest$ac_exeext conftest.$ac_ext
7781: LIBS=$saved_LIBS;
7782: libPgSQLlib="$libPgSQLlib -lpq"
7783: fi
7784: fi
7785:
7786: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7787: libPgSQLinc=
7788: libPgSQLlib=
7789: fi
7790:
7791:
7792:
7793:
7794:
7795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7796: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7797: if test "${ac_cv_path_GREP+set}" = set; then :
7798: $as_echo_n "(cached) " >&6
7799: else
7800: if test -z "$GREP"; then
7801: ac_path_GREP_found=false
7802: # Loop through the user's path and test for each of PROGNAME-LIST
7803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7805: do
7806: IFS=$as_save_IFS
7807: test -z "$as_dir" && as_dir=.
7808: for ac_prog in grep ggrep; do
7809: for ac_exec_ext in '' $ac_executable_extensions; do
7810: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7811: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7812: # Check for GNU ac_path_GREP and select it if it is found.
7813: # Check for GNU $ac_path_GREP
7814: case `"$ac_path_GREP" --version 2>&1` in
7815: *GNU*)
7816: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7817: *)
7818: ac_count=0
7819: $as_echo_n 0123456789 >"conftest.in"
7820: while :
7821: do
7822: cat "conftest.in" "conftest.in" >"conftest.tmp"
7823: mv "conftest.tmp" "conftest.in"
7824: cp "conftest.in" "conftest.nl"
7825: $as_echo 'GREP' >> "conftest.nl"
7826: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7827: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7828: as_fn_arith $ac_count + 1 && ac_count=$as_val
7829: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7830: # Best one so far, save it but keep looking for a better one
7831: ac_cv_path_GREP="$ac_path_GREP"
7832: ac_path_GREP_max=$ac_count
7833: fi
7834: # 10*(2^10) chars as input seems more than enough
7835: test $ac_count -gt 10 && break
7836: done
7837: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7838: esac
7839:
7840: $ac_path_GREP_found && break 3
7841: done
7842: done
7843: done
7844: IFS=$as_save_IFS
7845: if test -z "$ac_cv_path_GREP"; then
7846: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7847: fi
7848: else
7849: ac_cv_path_GREP=$GREP
7850: fi
7851:
7852: fi
7853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7854: $as_echo "$ac_cv_path_GREP" >&6; }
7855: GREP="$ac_cv_path_GREP"
7856:
7857:
7858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7859: $as_echo_n "checking for egrep... " >&6; }
7860: if test "${ac_cv_path_EGREP+set}" = set; then :
7861: $as_echo_n "(cached) " >&6
7862: else
7863: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7864: then ac_cv_path_EGREP="$GREP -E"
7865: else
7866: if test -z "$EGREP"; then
7867: ac_path_EGREP_found=false
7868: # Loop through the user's path and test for each of PROGNAME-LIST
7869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7871: do
7872: IFS=$as_save_IFS
7873: test -z "$as_dir" && as_dir=.
7874: for ac_prog in egrep; do
7875: for ac_exec_ext in '' $ac_executable_extensions; do
7876: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7877: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7878: # Check for GNU ac_path_EGREP and select it if it is found.
7879: # Check for GNU $ac_path_EGREP
7880: case `"$ac_path_EGREP" --version 2>&1` in
7881: *GNU*)
7882: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7883: *)
7884: ac_count=0
7885: $as_echo_n 0123456789 >"conftest.in"
7886: while :
7887: do
7888: cat "conftest.in" "conftest.in" >"conftest.tmp"
7889: mv "conftest.tmp" "conftest.in"
7890: cp "conftest.in" "conftest.nl"
7891: $as_echo 'EGREP' >> "conftest.nl"
7892: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7893: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7894: as_fn_arith $ac_count + 1 && ac_count=$as_val
7895: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7896: # Best one so far, save it but keep looking for a better one
7897: ac_cv_path_EGREP="$ac_path_EGREP"
7898: ac_path_EGREP_max=$ac_count
7899: fi
7900: # 10*(2^10) chars as input seems more than enough
7901: test $ac_count -gt 10 && break
7902: done
7903: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7904: esac
7905:
7906: $ac_path_EGREP_found && break 3
7907: done
7908: done
7909: done
7910: IFS=$as_save_IFS
7911: if test -z "$ac_cv_path_EGREP"; then
7912: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7913: fi
7914: else
7915: ac_cv_path_EGREP=$EGREP
7916: fi
7917:
7918: fi
7919: fi
7920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7921: $as_echo "$ac_cv_path_EGREP" >&6; }
7922: EGREP="$ac_cv_path_EGREP"
7923:
7924:
7925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7926: $as_echo_n "checking for ANSI C header files... " >&6; }
7927: if test "${ac_cv_header_stdc+set}" = set; then :
7928: $as_echo_n "(cached) " >&6
7929: else
7930: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931: /* end confdefs.h. */
7932: #include <stdlib.h>
7933: #include <stdarg.h>
7934: #include <string.h>
7935: #include <float.h>
7936:
7937: int
7938: main ()
7939: {
7940:
7941: ;
7942: return 0;
7943: }
7944: _ACEOF
7945: if ac_fn_c_try_compile "$LINENO"; then :
7946: ac_cv_header_stdc=yes
7947: else
7948: ac_cv_header_stdc=no
7949: fi
7950: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951:
7952: if test $ac_cv_header_stdc = yes; then
7953: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7954: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955: /* end confdefs.h. */
7956: #include <string.h>
7957:
7958: _ACEOF
7959: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7960: $EGREP "memchr" >/dev/null 2>&1; then :
7961:
7962: else
7963: ac_cv_header_stdc=no
7964: fi
7965: rm -f conftest*
7966:
7967: fi
7968:
7969: if test $ac_cv_header_stdc = yes; then
7970: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972: /* end confdefs.h. */
7973: #include <stdlib.h>
7974:
7975: _ACEOF
7976: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7977: $EGREP "free" >/dev/null 2>&1; then :
7978:
7979: else
7980: ac_cv_header_stdc=no
7981: fi
7982: rm -f conftest*
7983:
7984: fi
7985:
7986: if test $ac_cv_header_stdc = yes; then
7987: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7988: if test "$cross_compiling" = yes; then :
7989: :
7990: else
7991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992: /* end confdefs.h. */
7993: #include <ctype.h>
7994: #include <stdlib.h>
7995: #if ((' ' & 0x0FF) == 0x020)
7996: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7997: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7998: #else
7999: # define ISLOWER(c) \
8000: (('a' <= (c) && (c) <= 'i') \
8001: || ('j' <= (c) && (c) <= 'r') \
8002: || ('s' <= (c) && (c) <= 'z'))
8003: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8004: #endif
8005:
8006: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8007: int
8008: main ()
8009: {
8010: int i;
8011: for (i = 0; i < 256; i++)
8012: if (XOR (islower (i), ISLOWER (i))
8013: || toupper (i) != TOUPPER (i))
8014: return 2;
8015: return 0;
8016: }
8017: _ACEOF
8018: if ac_fn_c_try_run "$LINENO"; then :
8019:
8020: else
8021: ac_cv_header_stdc=no
8022: fi
8023: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8024: conftest.$ac_objext conftest.beam conftest.$ac_ext
8025: fi
8026:
8027: fi
8028: fi
8029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8030: $as_echo "$ac_cv_header_stdc" >&6; }
8031: if test $ac_cv_header_stdc = yes; then
8032:
8033: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8034:
8035: fi
8036:
8037: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8038: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8039: inttypes.h stdint.h unistd.h
8040: do :
8041: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8042: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8043: "
8044: eval as_val=\$$as_ac_Header
8045: if test "x$as_val" = x""yes; then :
8046: cat >>confdefs.h <<_ACEOF
8047: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8048: _ACEOF
8049:
8050: fi
8051:
8052: done
8053:
8054:
8055: # The cast to long int works around a bug in the HP C Compiler
8056: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8057: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8058: # This bug is HP SR number 8606223364.
8059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8060: $as_echo_n "checking size of void *... " >&6; }
8061: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8062: $as_echo_n "(cached) " >&6
8063: else
8064: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8065:
8066: else
8067: if test "$ac_cv_type_void_p" = yes; then
8068: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8069: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8070: { as_fn_set_status 77
8071: as_fn_error "cannot compute sizeof (void *)
8072: See \`config.log' for more details." "$LINENO" 5; }; }
8073: else
8074: ac_cv_sizeof_void_p=0
8075: fi
8076: fi
8077:
8078: fi
8079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8080: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8081:
8082:
8083:
8084: cat >>confdefs.h <<_ACEOF
8085: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8086: _ACEOF
8087:
8088:
8089: # The cast to long int works around a bug in the HP C Compiler
8090: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8091: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8092: # This bug is HP SR number 8606223364.
8093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8094: $as_echo_n "checking size of char... " >&6; }
8095: if test "${ac_cv_sizeof_char+set}" = set; then :
8096: $as_echo_n "(cached) " >&6
8097: else
8098: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8099:
8100: else
8101: if test "$ac_cv_type_char" = yes; then
8102: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8103: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8104: { as_fn_set_status 77
8105: as_fn_error "cannot compute sizeof (char)
8106: See \`config.log' for more details." "$LINENO" 5; }; }
8107: else
8108: ac_cv_sizeof_char=0
8109: fi
8110: fi
8111:
8112: fi
8113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8114: $as_echo "$ac_cv_sizeof_char" >&6; }
8115:
8116:
8117:
8118: cat >>confdefs.h <<_ACEOF
8119: #define SIZEOF_CHAR $ac_cv_sizeof_char
8120: _ACEOF
8121:
8122:
8123: # The cast to long int works around a bug in the HP C Compiler
8124: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8125: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8126: # This bug is HP SR number 8606223364.
8127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8128: $as_echo_n "checking size of short int... " >&6; }
8129: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8130: $as_echo_n "(cached) " >&6
8131: else
8132: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8133:
8134: else
8135: if test "$ac_cv_type_short_int" = yes; then
8136: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8137: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8138: { as_fn_set_status 77
8139: as_fn_error "cannot compute sizeof (short int)
8140: See \`config.log' for more details." "$LINENO" 5; }; }
8141: else
8142: ac_cv_sizeof_short_int=0
8143: fi
8144: fi
8145:
8146: fi
8147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8148: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8149:
8150:
8151:
8152: cat >>confdefs.h <<_ACEOF
8153: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8154: _ACEOF
8155:
8156:
8157: # The cast to long int works around a bug in the HP C Compiler
8158: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8159: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8160: # This bug is HP SR number 8606223364.
8161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8162: $as_echo_n "checking size of int... " >&6; }
8163: if test "${ac_cv_sizeof_int+set}" = set; then :
8164: $as_echo_n "(cached) " >&6
8165: else
8166: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8167:
8168: else
8169: if test "$ac_cv_type_int" = yes; then
8170: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8171: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8172: { as_fn_set_status 77
8173: as_fn_error "cannot compute sizeof (int)
8174: See \`config.log' for more details." "$LINENO" 5; }; }
8175: else
8176: ac_cv_sizeof_int=0
8177: fi
8178: fi
8179:
8180: fi
8181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8182: $as_echo "$ac_cv_sizeof_int" >&6; }
8183:
8184:
8185:
8186: cat >>confdefs.h <<_ACEOF
8187: #define SIZEOF_INT $ac_cv_sizeof_int
8188: _ACEOF
8189:
8190:
8191: # The cast to long int works around a bug in the HP C Compiler
8192: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8193: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8194: # This bug is HP SR number 8606223364.
8195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8196: $as_echo_n "checking size of long int... " >&6; }
8197: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8198: $as_echo_n "(cached) " >&6
8199: else
8200: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8201:
8202: else
8203: if test "$ac_cv_type_long_int" = yes; then
8204: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8205: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8206: { as_fn_set_status 77
8207: as_fn_error "cannot compute sizeof (long int)
8208: See \`config.log' for more details." "$LINENO" 5; }; }
8209: else
8210: ac_cv_sizeof_long_int=0
8211: fi
8212: fi
8213:
8214: fi
8215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8216: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8217:
8218:
8219:
8220: cat >>confdefs.h <<_ACEOF
8221: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8222: _ACEOF
8223:
8224:
8225: # The cast to long int works around a bug in the HP C Compiler
8226: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8227: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8228: # This bug is HP SR number 8606223364.
8229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8230: $as_echo_n "checking size of long long int... " >&6; }
8231: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8232: $as_echo_n "(cached) " >&6
8233: else
8234: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8235:
8236: else
8237: if test "$ac_cv_type_long_long_int" = yes; then
8238: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8239: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8240: { as_fn_set_status 77
8241: as_fn_error "cannot compute sizeof (long long int)
8242: See \`config.log' for more details." "$LINENO" 5; }; }
8243: else
8244: ac_cv_sizeof_long_long_int=0
8245: fi
8246: fi
8247:
8248: fi
8249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8250: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8251:
8252:
8253:
8254: cat >>confdefs.h <<_ACEOF
8255: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8256: _ACEOF
8257:
8258:
8259: # The cast to long int works around a bug in the HP C Compiler
8260: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8261: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8262: # This bug is HP SR number 8606223364.
8263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8264: $as_echo_n "checking size of float... " >&6; }
8265: if test "${ac_cv_sizeof_float+set}" = set; then :
8266: $as_echo_n "(cached) " >&6
8267: else
8268: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8269:
8270: else
8271: if test "$ac_cv_type_float" = yes; then
8272: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8273: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8274: { as_fn_set_status 77
8275: as_fn_error "cannot compute sizeof (float)
8276: See \`config.log' for more details." "$LINENO" 5; }; }
8277: else
8278: ac_cv_sizeof_float=0
8279: fi
8280: fi
8281:
8282: fi
8283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8284: $as_echo "$ac_cv_sizeof_float" >&6; }
8285:
8286:
8287:
8288: cat >>confdefs.h <<_ACEOF
8289: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8290: _ACEOF
8291:
8292:
8293: # The cast to long int works around a bug in the HP C Compiler
8294: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8295: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8296: # This bug is HP SR number 8606223364.
8297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8298: $as_echo_n "checking size of double... " >&6; }
8299: if test "${ac_cv_sizeof_double+set}" = set; then :
8300: $as_echo_n "(cached) " >&6
8301: else
8302: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8303:
8304: else
8305: if test "$ac_cv_type_double" = yes; then
8306: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8307: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8308: { as_fn_set_status 77
8309: as_fn_error "cannot compute sizeof (double)
8310: See \`config.log' for more details." "$LINENO" 5; }; }
8311: else
8312: ac_cv_sizeof_double=0
8313: fi
8314: fi
8315:
8316: fi
8317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8318: $as_echo "$ac_cv_sizeof_double" >&6; }
8319:
8320:
8321:
8322: cat >>confdefs.h <<_ACEOF
8323: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8324: _ACEOF
8325:
8326:
8327: # The cast to long int works around a bug in the HP C Compiler
8328: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8329: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8330: # This bug is HP SR number 8606223364.
8331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8332: $as_echo_n "checking size of long double... " >&6; }
8333: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8334: $as_echo_n "(cached) " >&6
8335: else
8336: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8337:
8338: else
8339: if test "$ac_cv_type_long_double" = yes; then
8340: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8341: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8342: { as_fn_set_status 77
8343: as_fn_error "cannot compute sizeof (long double)
8344: See \`config.log' for more details." "$LINENO" 5; }; }
8345: else
8346: ac_cv_sizeof_long_double=0
8347: fi
8348: fi
8349:
8350: fi
8351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8352: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8353:
8354:
8355:
8356: cat >>confdefs.h <<_ACEOF
8357: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8358: _ACEOF
8359:
8360:
8361:
8362: ac_header_dirent=no
8363: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8364: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8366: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8367: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8368: $as_echo_n "(cached) " >&6
8369: else
8370: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371: /* end confdefs.h. */
8372: #include <sys/types.h>
8373: #include <$ac_hdr>
8374:
8375: int
8376: main ()
8377: {
8378: if ((DIR *) 0)
8379: return 0;
8380: ;
8381: return 0;
8382: }
8383: _ACEOF
8384: if ac_fn_c_try_compile "$LINENO"; then :
8385: eval "$as_ac_Header=yes"
8386: else
8387: eval "$as_ac_Header=no"
8388: fi
8389: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390: fi
8391: eval ac_res=\$$as_ac_Header
8392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8393: $as_echo "$ac_res" >&6; }
8394: eval as_val=\$$as_ac_Header
8395: if test "x$as_val" = x""yes; then :
8396: cat >>confdefs.h <<_ACEOF
8397: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8398: _ACEOF
8399:
8400: ac_header_dirent=$ac_hdr; break
8401: fi
8402:
8403: done
8404: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8405: if test $ac_header_dirent = dirent.h; then
8406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8407: $as_echo_n "checking for library containing opendir... " >&6; }
8408: if test "${ac_cv_search_opendir+set}" = set; then :
8409: $as_echo_n "(cached) " >&6
8410: else
8411: ac_func_search_save_LIBS=$LIBS
8412: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413: /* end confdefs.h. */
8414:
8415: /* Override any GCC internal prototype to avoid an error.
8416: Use char because int might match the return type of a GCC
8417: builtin and then its argument prototype would still apply. */
8418: #ifdef __cplusplus
8419: extern "C"
8420: #endif
8421: char opendir ();
8422: int
8423: main ()
8424: {
8425: return opendir ();
8426: ;
8427: return 0;
8428: }
8429: _ACEOF
8430: for ac_lib in '' dir; do
8431: if test -z "$ac_lib"; then
8432: ac_res="none required"
8433: else
8434: ac_res=-l$ac_lib
8435: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436: fi
8437: if ac_fn_c_try_link "$LINENO"; then :
8438: ac_cv_search_opendir=$ac_res
8439: fi
8440: rm -f core conftest.err conftest.$ac_objext \
8441: conftest$ac_exeext
8442: if test "${ac_cv_search_opendir+set}" = set; then :
8443: break
8444: fi
8445: done
8446: if test "${ac_cv_search_opendir+set}" = set; then :
8447:
8448: else
8449: ac_cv_search_opendir=no
8450: fi
8451: rm conftest.$ac_ext
8452: LIBS=$ac_func_search_save_LIBS
8453: fi
8454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8455: $as_echo "$ac_cv_search_opendir" >&6; }
8456: ac_res=$ac_cv_search_opendir
8457: if test "$ac_res" != no; then :
8458: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8459:
8460: fi
8461:
8462: else
8463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8464: $as_echo_n "checking for library containing opendir... " >&6; }
8465: if test "${ac_cv_search_opendir+set}" = set; then :
8466: $as_echo_n "(cached) " >&6
8467: else
8468: ac_func_search_save_LIBS=$LIBS
8469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470: /* end confdefs.h. */
8471:
8472: /* Override any GCC internal prototype to avoid an error.
8473: Use char because int might match the return type of a GCC
8474: builtin and then its argument prototype would still apply. */
8475: #ifdef __cplusplus
8476: extern "C"
8477: #endif
8478: char opendir ();
8479: int
8480: main ()
8481: {
8482: return opendir ();
8483: ;
8484: return 0;
8485: }
8486: _ACEOF
8487: for ac_lib in '' x; do
8488: if test -z "$ac_lib"; then
8489: ac_res="none required"
8490: else
8491: ac_res=-l$ac_lib
8492: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8493: fi
8494: if ac_fn_c_try_link "$LINENO"; then :
8495: ac_cv_search_opendir=$ac_res
8496: fi
8497: rm -f core conftest.err conftest.$ac_objext \
8498: conftest$ac_exeext
8499: if test "${ac_cv_search_opendir+set}" = set; then :
8500: break
8501: fi
8502: done
8503: if test "${ac_cv_search_opendir+set}" = set; then :
8504:
8505: else
8506: ac_cv_search_opendir=no
8507: fi
8508: rm conftest.$ac_ext
8509: LIBS=$ac_func_search_save_LIBS
8510: fi
8511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8512: $as_echo "$ac_cv_search_opendir" >&6; }
8513: ac_res=$ac_cv_search_opendir
8514: if test "$ac_res" != no; then :
8515: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8516:
8517: fi
8518:
8519: fi
8520:
8521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8522: $as_echo_n "checking for ANSI C header files... " >&6; }
8523: if test "${ac_cv_header_stdc+set}" = set; then :
8524: $as_echo_n "(cached) " >&6
8525: else
8526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527: /* end confdefs.h. */
8528: #include <stdlib.h>
8529: #include <stdarg.h>
8530: #include <string.h>
8531: #include <float.h>
8532:
8533: int
8534: main ()
8535: {
8536:
8537: ;
8538: return 0;
8539: }
8540: _ACEOF
8541: if ac_fn_c_try_compile "$LINENO"; then :
8542: ac_cv_header_stdc=yes
8543: else
8544: ac_cv_header_stdc=no
8545: fi
8546: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547:
8548: if test $ac_cv_header_stdc = yes; then
8549: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551: /* end confdefs.h. */
8552: #include <string.h>
8553:
8554: _ACEOF
8555: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8556: $EGREP "memchr" >/dev/null 2>&1; then :
8557:
8558: else
8559: ac_cv_header_stdc=no
8560: fi
8561: rm -f conftest*
8562:
8563: fi
8564:
8565: if test $ac_cv_header_stdc = yes; then
8566: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568: /* end confdefs.h. */
8569: #include <stdlib.h>
8570:
8571: _ACEOF
8572: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8573: $EGREP "free" >/dev/null 2>&1; then :
8574:
8575: else
8576: ac_cv_header_stdc=no
8577: fi
8578: rm -f conftest*
8579:
8580: fi
8581:
8582: if test $ac_cv_header_stdc = yes; then
8583: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8584: if test "$cross_compiling" = yes; then :
8585: :
8586: else
8587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588: /* end confdefs.h. */
8589: #include <ctype.h>
8590: #include <stdlib.h>
8591: #if ((' ' & 0x0FF) == 0x020)
8592: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8593: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8594: #else
8595: # define ISLOWER(c) \
8596: (('a' <= (c) && (c) <= 'i') \
8597: || ('j' <= (c) && (c) <= 'r') \
8598: || ('s' <= (c) && (c) <= 'z'))
8599: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8600: #endif
8601:
8602: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8603: int
8604: main ()
8605: {
8606: int i;
8607: for (i = 0; i < 256; i++)
8608: if (XOR (islower (i), ISLOWER (i))
8609: || toupper (i) != TOUPPER (i))
8610: return 2;
8611: return 0;
8612: }
8613: _ACEOF
8614: if ac_fn_c_try_run "$LINENO"; then :
8615:
8616: else
8617: ac_cv_header_stdc=no
8618: fi
8619: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8620: conftest.$ac_objext conftest.beam conftest.$ac_ext
8621: fi
8622:
8623: fi
8624: fi
8625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8626: $as_echo "$ac_cv_header_stdc" >&6; }
8627: if test $ac_cv_header_stdc = yes; then
8628:
8629: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8630:
8631: fi
8632:
8633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8634: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8635: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8636: $as_echo_n "(cached) " >&6
8637: else
8638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639: /* end confdefs.h. */
8640: #include <sys/types.h>
8641: #include <sys/wait.h>
8642: #ifndef WEXITSTATUS
8643: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8644: #endif
8645: #ifndef WIFEXITED
8646: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8647: #endif
8648:
8649: int
8650: main ()
8651: {
8652: int s;
8653: wait (&s);
8654: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8655: ;
8656: return 0;
8657: }
8658: _ACEOF
8659: if ac_fn_c_try_compile "$LINENO"; then :
8660: ac_cv_header_sys_wait_h=yes
8661: else
8662: ac_cv_header_sys_wait_h=no
8663: fi
8664: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665: fi
8666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8667: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8668: if test $ac_cv_header_sys_wait_h = yes; then
8669:
8670: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8671:
8672: fi
8673:
8674: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8675: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8676: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8677: do :
8678: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8679: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8680: eval as_val=\$$as_ac_Header
8681: if test "x$as_val" = x""yes; then :
8682: cat >>confdefs.h <<_ACEOF
8683: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8684: _ACEOF
8685:
8686: fi
8687:
8688: done
8689:
8690:
8691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8692: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8693: if test "${ac_cv_c_const+set}" = set; then :
8694: $as_echo_n "(cached) " >&6
8695: else
8696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697: /* end confdefs.h. */
8698:
8699: int
8700: main ()
8701: {
8702: /* FIXME: Include the comments suggested by Paul. */
8703: #ifndef __cplusplus
8704: /* Ultrix mips cc rejects this. */
8705: typedef int charset[2];
8706: const charset cs;
8707: /* SunOS 4.1.1 cc rejects this. */
8708: char const *const *pcpcc;
8709: char **ppc;
8710: /* NEC SVR4.0.2 mips cc rejects this. */
8711: struct point {int x, y;};
8712: static struct point const zero = {0,0};
8713: /* AIX XL C 1.02.0.0 rejects this.
8714: It does not let you subtract one const X* pointer from another in
8715: an arm of an if-expression whose if-part is not a constant
8716: expression */
8717: const char *g = "string";
8718: pcpcc = &g + (g ? g-g : 0);
8719: /* HPUX 7.0 cc rejects these. */
8720: ++pcpcc;
8721: ppc = (char**) pcpcc;
8722: pcpcc = (char const *const *) ppc;
8723: { /* SCO 3.2v4 cc rejects this. */
8724: char *t;
8725: char const *s = 0 ? (char *) 0 : (char const *) 0;
8726:
8727: *t++ = 0;
8728: if (s) return 0;
8729: }
8730: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8731: int x[] = {25, 17};
8732: const int *foo = &x[0];
8733: ++foo;
8734: }
8735: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8736: typedef const int *iptr;
8737: iptr p = 0;
8738: ++p;
8739: }
8740: { /* AIX XL C 1.02.0.0 rejects this saying
8741: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8742: struct s { int j; const int *ap[3]; };
8743: struct s *b; b->j = 5;
8744: }
8745: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8746: const int foo = 10;
8747: if (!foo) return 0;
8748: }
8749: return !cs[0] && !zero.x;
8750: #endif
8751:
8752: ;
8753: return 0;
8754: }
8755: _ACEOF
8756: if ac_fn_c_try_compile "$LINENO"; then :
8757: ac_cv_c_const=yes
8758: else
8759: ac_cv_c_const=no
8760: fi
8761: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762: fi
8763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8764: $as_echo "$ac_cv_c_const" >&6; }
8765: if test $ac_cv_c_const = no; then
8766:
8767: $as_echo "#define const /**/" >>confdefs.h
8768:
8769: fi
8770:
8771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8772: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8773: if test "${ac_cv_type_uid_t+set}" = set; then :
8774: $as_echo_n "(cached) " >&6
8775: else
8776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777: /* end confdefs.h. */
8778: #include <sys/types.h>
8779:
8780: _ACEOF
8781: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8782: $EGREP "uid_t" >/dev/null 2>&1; then :
8783: ac_cv_type_uid_t=yes
8784: else
8785: ac_cv_type_uid_t=no
8786: fi
8787: rm -f conftest*
8788:
8789: fi
8790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8791: $as_echo "$ac_cv_type_uid_t" >&6; }
8792: if test $ac_cv_type_uid_t = no; then
8793:
8794: $as_echo "#define uid_t int" >>confdefs.h
8795:
8796:
8797: $as_echo "#define gid_t int" >>confdefs.h
8798:
8799: fi
8800:
8801: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8802: if test "x$ac_cv_type_pid_t" = x""yes; then :
8803:
8804: else
8805:
8806: cat >>confdefs.h <<_ACEOF
8807: #define pid_t int
8808: _ACEOF
8809:
8810: fi
8811:
8812: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8813: if test "x$ac_cv_type_size_t" = x""yes; then :
8814:
8815: else
8816:
8817: cat >>confdefs.h <<_ACEOF
8818: #define size_t unsigned int
8819: _ACEOF
8820:
8821: fi
8822:
8823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8824: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8825: if test "${ac_cv_header_time+set}" = set; then :
8826: $as_echo_n "(cached) " >&6
8827: else
8828: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829: /* end confdefs.h. */
8830: #include <sys/types.h>
8831: #include <sys/time.h>
8832: #include <time.h>
8833:
8834: int
8835: main ()
8836: {
8837: if ((struct tm *) 0)
8838: return 0;
8839: ;
8840: return 0;
8841: }
8842: _ACEOF
8843: if ac_fn_c_try_compile "$LINENO"; then :
8844: ac_cv_header_time=yes
8845: else
8846: ac_cv_header_time=no
8847: fi
8848: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849: fi
8850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8851: $as_echo "$ac_cv_header_time" >&6; }
8852: if test $ac_cv_header_time = yes; then
8853:
8854: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8855:
8856: fi
8857:
8858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8859: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8860: if test "${ac_cv_struct_tm+set}" = set; then :
8861: $as_echo_n "(cached) " >&6
8862: else
8863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864: /* end confdefs.h. */
8865: #include <sys/types.h>
8866: #include <time.h>
8867:
8868: int
8869: main ()
8870: {
8871: struct tm tm;
8872: int *p = &tm.tm_sec;
8873: return !p;
8874: ;
8875: return 0;
8876: }
8877: _ACEOF
8878: if ac_fn_c_try_compile "$LINENO"; then :
8879: ac_cv_struct_tm=time.h
8880: else
8881: ac_cv_struct_tm=sys/time.h
8882: fi
8883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884: fi
8885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8886: $as_echo "$ac_cv_struct_tm" >&6; }
8887: if test $ac_cv_struct_tm = sys/time.h; then
8888:
8889: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8890:
8891: fi
8892:
8893:
8894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8895: $as_echo_n "checking return type of signal handlers... " >&6; }
8896: if test "${ac_cv_type_signal+set}" = set; then :
8897: $as_echo_n "(cached) " >&6
8898: else
8899: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900: /* end confdefs.h. */
8901: #include <sys/types.h>
8902: #include <signal.h>
8903:
8904: int
8905: main ()
8906: {
8907: return *(signal (0, 0)) (0) == 1;
8908: ;
8909: return 0;
8910: }
8911: _ACEOF
8912: if ac_fn_c_try_compile "$LINENO"; then :
8913: ac_cv_type_signal=int
8914: else
8915: ac_cv_type_signal=void
8916: fi
8917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918: fi
8919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8920: $as_echo "$ac_cv_type_signal" >&6; }
8921:
8922: cat >>confdefs.h <<_ACEOF
8923: #define RETSIGTYPE $ac_cv_type_signal
8924: _ACEOF
8925:
8926:
8927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8928: $as_echo_n "checking for working strcoll... " >&6; }
8929: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8930: $as_echo_n "(cached) " >&6
8931: else
8932: if test "$cross_compiling" = yes; then :
8933: ac_cv_func_strcoll_works=no
8934: else
8935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936: /* end confdefs.h. */
8937: $ac_includes_default
8938: int
8939: main ()
8940: {
8941: return (strcoll ("abc", "def") >= 0 ||
8942: strcoll ("ABC", "DEF") >= 0 ||
8943: strcoll ("123", "456") >= 0)
8944: ;
8945: return 0;
8946: }
8947: _ACEOF
8948: if ac_fn_c_try_run "$LINENO"; then :
8949: ac_cv_func_strcoll_works=yes
8950: else
8951: ac_cv_func_strcoll_works=no
8952: fi
8953: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8954: conftest.$ac_objext conftest.beam conftest.$ac_ext
8955: fi
8956:
8957: fi
8958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8959: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8960: if test $ac_cv_func_strcoll_works = yes; then
8961:
8962: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8963:
8964: fi
8965:
8966: for ac_func in strftime
8967: do :
8968: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8969: if test "x$ac_cv_func_strftime" = x""yes; then :
8970: cat >>confdefs.h <<_ACEOF
8971: #define HAVE_STRFTIME 1
8972: _ACEOF
8973:
8974: else
8975: # strftime is in -lintl on SCO UNIX.
8976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8977: $as_echo_n "checking for strftime in -lintl... " >&6; }
8978: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8979: $as_echo_n "(cached) " >&6
8980: else
8981: ac_check_lib_save_LIBS=$LIBS
8982: LIBS="-lintl $LIBS"
8983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984: /* end confdefs.h. */
8985:
8986: /* Override any GCC internal prototype to avoid an error.
8987: Use char because int might match the return type of a GCC
8988: builtin and then its argument prototype would still apply. */
8989: #ifdef __cplusplus
8990: extern "C"
8991: #endif
8992: char strftime ();
8993: int
8994: main ()
8995: {
8996: return strftime ();
8997: ;
8998: return 0;
8999: }
9000: _ACEOF
9001: if ac_fn_c_try_link "$LINENO"; then :
9002: ac_cv_lib_intl_strftime=yes
9003: else
9004: ac_cv_lib_intl_strftime=no
9005: fi
9006: rm -f core conftest.err conftest.$ac_objext \
9007: conftest$ac_exeext conftest.$ac_ext
9008: LIBS=$ac_check_lib_save_LIBS
9009: fi
9010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9011: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9012: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9013: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9014:
9015: LIBS="-lintl $LIBS"
9016: fi
9017:
9018: fi
9019: done
9020:
9021: for ac_func in vprintf
9022: do :
9023: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9024: if test "x$ac_cv_func_vprintf" = x""yes; then :
9025: cat >>confdefs.h <<_ACEOF
9026: #define HAVE_VPRINTF 1
9027: _ACEOF
9028:
9029: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9030: if test "x$ac_cv_func__doprnt" = x""yes; then :
9031:
9032: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9033:
9034: fi
9035:
9036: fi
9037: done
9038:
9039:
9040: for ac_func in ftime getcwd putenv select strcspn strdup \
9041: strerror strspn strstr strtod
9042: do :
9043: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9044: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9045: eval as_val=\$$as_ac_var
9046: if test "x$as_val" = x""yes; then :
9047: cat >>confdefs.h <<_ACEOF
9048: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9049: _ACEOF
9050:
9051: fi
9052: done
9053:
9054:
9055:
9056:
9057: subdirs="$subdirs tools/$NCURSES"
9058:
9059: subdirs="$subdirs tools/$READLINE"
9060:
9061: subdirs="$subdirs tools/$UNITS"
9062:
9063: subdirs="$subdirs tools/$GSL"
9064:
9065: subdirs="$subdirs tools/$GPP"
9066:
9067: subdirs="$subdirs tools/$FILE"
9068:
9069: subdirs="$subdirs tools/$ICONV"
9070:
9071:
9072: if test "$MYGNUPLOT" = "yes"; then
9073: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9074: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9075: (cd "$srcdir/tools" && tar -xf -)
9076: fi
9077: subdirs="$subdirs tools/$GNUPLOT"
9078:
9079: GNUPLOT_COMPILATION=$GNUPLOT
9080: else
9081: GNUPLOT_COMPILATION=
9082: fi
9083:
9084:
9085:
9086: case $host_cpu in
9087:
9088: i?86)
9089: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9090: -Wno-pointer-sign"
9091: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9092: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9093: break ;;
9094:
9095: x86_64*)
9096: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9097: -Wno-pointer-sign"
9098: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9099: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9100: break ;;
9101:
9102: alpha*)
9103: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9104: -Wno-pointer-sign"
9105: FFLAGS="$FFLAGS -mieee -Wall"
9106: FCFLAGS="$FCFLAGS -mieee -Wall"
9107: break ;;
9108:
9109: sparc*)
9110: CFLAGS="$CFLAGS -Wall -funsigned-char \
9111: -Wno-pointer-sign"
9112: FFLAGS="$FFLAGS -Wall"
9113: FCFLAGS="$FCFLAGS -Wall"
9114: break ;;
9115:
9116: esac
9117:
9118: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9119: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9120:
9121: if test $(uname) = "SunOS"; then
9122: LIBMTMALLOC=-lmtmalloc
9123: else
9124: LIBMTMALLOC=
9125: fi
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134:
9135:
9136:
9137:
9138:
9139:
9140:
9141:
9142:
9143:
9144:
9145:
9146: ac_config_files="$ac_config_files Makefile"
9147:
9148: ac_config_files="$ac_config_files COPYING"
9149:
9150: ac_config_files="$ac_config_files tools/Makefile"
9151:
9152: ac_config_files="$ac_config_files src/Makefile"
9153:
9154: ac_config_files="$ac_config_files man/Makefile"
9155:
9156: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9157:
9158: ac_config_files="$ac_config_files doc/Makefile"
9159:
9160: ac_config_files="$ac_config_files scripts/Makefile"
9161:
9162: ac_config_files="$ac_config_files scripts/mkrplso"
9163:
9164: ac_config_files="$ac_config_files scripts/rplcc"
9165:
9166: ac_config_files="$ac_config_files scripts/rpllink"
9167:
9168: ac_config_files="$ac_config_files rpltags/Makefile"
9169:
9170: ac_config_files="$ac_config_files rpliconv/Makefile"
9171:
9172: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9173:
9174: ac_config_files="$ac_config_files lapack/blas/Makefile"
9175:
9176:
9177: ac_config_files="$ac_config_files man/rpl.1"
9178:
9179: ac_config_files="$ac_config_files man/rplcc.1"
9180:
9181: ac_config_files="$ac_config_files man/rpllink.1"
9182:
9183: ac_config_files="$ac_config_files man/rpltags.1"
9184:
9185: ac_config_files="$ac_config_files man/mkrplso.1"
9186:
9187: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9188:
9189: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9190:
9191: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9192:
9193: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9194:
9195: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9196:
9197:
9198: cat >confcache <<\_ACEOF
9199: # This file is a shell script that caches the results of configure
9200: # tests run on this system so they can be shared between configure
9201: # scripts and configure runs, see configure's option --config-cache.
9202: # It is not useful on other systems. If it contains results you don't
9203: # want to keep, you may remove or edit it.
9204: #
9205: # config.status only pays attention to the cache file if you give it
9206: # the --recheck option to rerun configure.
9207: #
9208: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9209: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9210: # following values.
9211:
9212: _ACEOF
9213:
9214: # The following way of writing the cache mishandles newlines in values,
9215: # but we know of no workaround that is simple, portable, and efficient.
9216: # So, we kill variables containing newlines.
9217: # Ultrix sh set writes to stderr and can't be redirected directly,
9218: # and sets the high bit in the cache file unless we assign to the vars.
9219: (
9220: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9221: eval ac_val=\$$ac_var
9222: case $ac_val in #(
9223: *${as_nl}*)
9224: case $ac_var in #(
9225: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9226: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9227: esac
9228: case $ac_var in #(
9229: _ | IFS | as_nl) ;; #(
9230: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9231: *) { eval $ac_var=; unset $ac_var;} ;;
9232: esac ;;
9233: esac
9234: done
9235:
9236: (set) 2>&1 |
9237: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9238: *${as_nl}ac_space=\ *)
9239: # `set' does not quote correctly, so add quotes: double-quote
9240: # substitution turns \\\\ into \\, and sed turns \\ into \.
9241: sed -n \
9242: "s/'/'\\\\''/g;
9243: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9244: ;; #(
9245: *)
9246: # `set' quotes correctly as required by POSIX, so do not add quotes.
9247: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9248: ;;
9249: esac |
9250: sort
9251: ) |
9252: sed '
9253: /^ac_cv_env_/b end
9254: t clear
9255: :clear
9256: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9257: t end
9258: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9259: :end' >>confcache
9260: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9261: if test -w "$cache_file"; then
9262: test "x$cache_file" != "x/dev/null" &&
9263: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9264: $as_echo "$as_me: updating cache $cache_file" >&6;}
9265: cat confcache >$cache_file
9266: else
9267: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9268: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9269: fi
9270: fi
9271: rm -f confcache
9272:
9273: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9274: # Let make expand exec_prefix.
9275: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9276:
9277: DEFS=-DHAVE_CONFIG_H
9278:
9279: ac_libobjs=
9280: ac_ltlibobjs=
9281: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9282: # 1. Remove the extension, and $U if already installed.
9283: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9284: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9285: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9286: # will be set to the directory where LIBOBJS objects are built.
9287: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9288: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9289: done
9290: LIBOBJS=$ac_libobjs
9291:
9292: LTLIBOBJS=$ac_ltlibobjs
9293:
9294:
9295: if test -n "$EXEEXT"; then
9296: am__EXEEXT_TRUE=
9297: am__EXEEXT_FALSE='#'
9298: else
9299: am__EXEEXT_TRUE='#'
9300: am__EXEEXT_FALSE=
9301: fi
9302:
9303: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9304: as_fn_error "conditional \"AMDEP\" was never defined.
9305: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9306: fi
9307: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9308: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9309: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9310: fi
9311: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9312: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9313: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9314: fi
9315:
9316: : ${CONFIG_STATUS=./config.status}
9317: ac_write_fail=0
9318: ac_clean_files_save=$ac_clean_files
9319: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9320: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9321: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9322: as_write_fail=0
9323: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9324: #! $SHELL
9325: # Generated by $as_me.
9326: # Run this file to recreate the current configuration.
9327: # Compiler output produced by configure, useful for debugging
9328: # configure, is in config.log if it exists.
9329:
9330: debug=false
9331: ac_cs_recheck=false
9332: ac_cs_silent=false
9333:
9334: SHELL=\${CONFIG_SHELL-$SHELL}
9335: export SHELL
9336: _ASEOF
9337: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9338: ## -------------------- ##
9339: ## M4sh Initialization. ##
9340: ## -------------------- ##
9341:
9342: # Be more Bourne compatible
9343: DUALCASE=1; export DUALCASE # for MKS sh
9344: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9345: emulate sh
9346: NULLCMD=:
9347: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9348: # is contrary to our usage. Disable this feature.
9349: alias -g '${1+"$@"}'='"$@"'
9350: setopt NO_GLOB_SUBST
9351: else
9352: case `(set -o) 2>/dev/null` in #(
9353: *posix*) :
9354: set -o posix ;; #(
9355: *) :
9356: ;;
9357: esac
9358: fi
9359:
9360:
9361: as_nl='
9362: '
9363: export as_nl
9364: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9365: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9366: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9367: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9368: # Prefer a ksh shell builtin over an external printf program on Solaris,
9369: # but without wasting forks for bash or zsh.
9370: if test -z "$BASH_VERSION$ZSH_VERSION" \
9371: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9372: as_echo='print -r --'
9373: as_echo_n='print -rn --'
9374: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9375: as_echo='printf %s\n'
9376: as_echo_n='printf %s'
9377: else
9378: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9379: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9380: as_echo_n='/usr/ucb/echo -n'
9381: else
9382: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9383: as_echo_n_body='eval
9384: arg=$1;
9385: case $arg in #(
9386: *"$as_nl"*)
9387: expr "X$arg" : "X\\(.*\\)$as_nl";
9388: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9389: esac;
9390: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9391: '
9392: export as_echo_n_body
9393: as_echo_n='sh -c $as_echo_n_body as_echo'
9394: fi
9395: export as_echo_body
9396: as_echo='sh -c $as_echo_body as_echo'
9397: fi
9398:
9399: # The user is always right.
9400: if test "${PATH_SEPARATOR+set}" != set; then
9401: PATH_SEPARATOR=:
9402: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9403: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9404: PATH_SEPARATOR=';'
9405: }
9406: fi
9407:
9408:
9409: # IFS
9410: # We need space, tab and new line, in precisely that order. Quoting is
9411: # there to prevent editors from complaining about space-tab.
9412: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9413: # splitting by setting IFS to empty value.)
9414: IFS=" "" $as_nl"
9415:
9416: # Find who we are. Look in the path if we contain no directory separator.
9417: case $0 in #((
9418: *[\\/]* ) as_myself=$0 ;;
9419: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420: for as_dir in $PATH
9421: do
9422: IFS=$as_save_IFS
9423: test -z "$as_dir" && as_dir=.
9424: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9425: done
9426: IFS=$as_save_IFS
9427:
9428: ;;
9429: esac
9430: # We did not find ourselves, most probably we were run as `sh COMMAND'
9431: # in which case we are not to be found in the path.
9432: if test "x$as_myself" = x; then
9433: as_myself=$0
9434: fi
9435: if test ! -f "$as_myself"; then
9436: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9437: exit 1
9438: fi
9439:
9440: # Unset variables that we do not need and which cause bugs (e.g. in
9441: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9442: # suppresses any "Segmentation fault" message there. '((' could
9443: # trigger a bug in pdksh 5.2.14.
9444: for as_var in BASH_ENV ENV MAIL MAILPATH
9445: do eval test x\${$as_var+set} = xset \
9446: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9447: done
9448: PS1='$ '
9449: PS2='> '
9450: PS4='+ '
9451:
9452: # NLS nuisances.
9453: LC_ALL=C
9454: export LC_ALL
9455: LANGUAGE=C
9456: export LANGUAGE
9457:
9458: # CDPATH.
9459: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9460:
9461:
9462: # as_fn_error ERROR [LINENO LOG_FD]
9463: # ---------------------------------
9464: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9465: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9466: # script with status $?, using 1 if that was 0.
9467: as_fn_error ()
9468: {
9469: as_status=$?; test $as_status -eq 0 && as_status=1
9470: if test "$3"; then
9471: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9472: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9473: fi
9474: $as_echo "$as_me: error: $1" >&2
9475: as_fn_exit $as_status
9476: } # as_fn_error
9477:
9478:
9479: # as_fn_set_status STATUS
9480: # -----------------------
9481: # Set $? to STATUS, without forking.
9482: as_fn_set_status ()
9483: {
9484: return $1
9485: } # as_fn_set_status
9486:
9487: # as_fn_exit STATUS
9488: # -----------------
9489: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9490: as_fn_exit ()
9491: {
9492: set +e
9493: as_fn_set_status $1
9494: exit $1
9495: } # as_fn_exit
9496:
9497: # as_fn_unset VAR
9498: # ---------------
9499: # Portably unset VAR.
9500: as_fn_unset ()
9501: {
9502: { eval $1=; unset $1;}
9503: }
9504: as_unset=as_fn_unset
9505: # as_fn_append VAR VALUE
9506: # ----------------------
9507: # Append the text in VALUE to the end of the definition contained in VAR. Take
9508: # advantage of any shell optimizations that allow amortized linear growth over
9509: # repeated appends, instead of the typical quadratic growth present in naive
9510: # implementations.
9511: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9512: eval 'as_fn_append ()
9513: {
9514: eval $1+=\$2
9515: }'
9516: else
9517: as_fn_append ()
9518: {
9519: eval $1=\$$1\$2
9520: }
9521: fi # as_fn_append
9522:
9523: # as_fn_arith ARG...
9524: # ------------------
9525: # Perform arithmetic evaluation on the ARGs, and store the result in the
9526: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9527: # must be portable across $(()) and expr.
9528: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9529: eval 'as_fn_arith ()
9530: {
9531: as_val=$(( $* ))
9532: }'
9533: else
9534: as_fn_arith ()
9535: {
9536: as_val=`expr "$@" || test $? -eq 1`
9537: }
9538: fi # as_fn_arith
9539:
9540:
9541: if expr a : '\(a\)' >/dev/null 2>&1 &&
9542: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9543: as_expr=expr
9544: else
9545: as_expr=false
9546: fi
9547:
9548: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9549: as_basename=basename
9550: else
9551: as_basename=false
9552: fi
9553:
9554: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9555: as_dirname=dirname
9556: else
9557: as_dirname=false
9558: fi
9559:
9560: as_me=`$as_basename -- "$0" ||
9561: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9562: X"$0" : 'X\(//\)$' \| \
9563: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9564: $as_echo X/"$0" |
9565: sed '/^.*\/\([^/][^/]*\)\/*$/{
9566: s//\1/
9567: q
9568: }
9569: /^X\/\(\/\/\)$/{
9570: s//\1/
9571: q
9572: }
9573: /^X\/\(\/\).*/{
9574: s//\1/
9575: q
9576: }
9577: s/.*/./; q'`
9578:
9579: # Avoid depending upon Character Ranges.
9580: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9581: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9582: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9583: as_cr_digits='0123456789'
9584: as_cr_alnum=$as_cr_Letters$as_cr_digits
9585:
9586: ECHO_C= ECHO_N= ECHO_T=
9587: case `echo -n x` in #(((((
9588: -n*)
9589: case `echo 'xy\c'` in
9590: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9591: xy) ECHO_C='\c';;
9592: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9593: ECHO_T=' ';;
9594: esac;;
9595: *)
9596: ECHO_N='-n';;
9597: esac
9598:
9599: rm -f conf$$ conf$$.exe conf$$.file
9600: if test -d conf$$.dir; then
9601: rm -f conf$$.dir/conf$$.file
9602: else
9603: rm -f conf$$.dir
9604: mkdir conf$$.dir 2>/dev/null
9605: fi
9606: if (echo >conf$$.file) 2>/dev/null; then
9607: if ln -s conf$$.file conf$$ 2>/dev/null; then
9608: as_ln_s='ln -s'
9609: # ... but there are two gotchas:
9610: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9611: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9612: # In both cases, we have to default to `cp -p'.
9613: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9614: as_ln_s='cp -p'
9615: elif ln conf$$.file conf$$ 2>/dev/null; then
9616: as_ln_s=ln
9617: else
9618: as_ln_s='cp -p'
9619: fi
9620: else
9621: as_ln_s='cp -p'
9622: fi
9623: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9624: rmdir conf$$.dir 2>/dev/null
9625:
9626:
9627: # as_fn_mkdir_p
9628: # -------------
9629: # Create "$as_dir" as a directory, including parents if necessary.
9630: as_fn_mkdir_p ()
9631: {
9632:
9633: case $as_dir in #(
9634: -*) as_dir=./$as_dir;;
9635: esac
9636: test -d "$as_dir" || eval $as_mkdir_p || {
9637: as_dirs=
9638: while :; do
9639: case $as_dir in #(
9640: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9641: *) as_qdir=$as_dir;;
9642: esac
9643: as_dirs="'$as_qdir' $as_dirs"
9644: as_dir=`$as_dirname -- "$as_dir" ||
9645: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9646: X"$as_dir" : 'X\(//\)[^/]' \| \
9647: X"$as_dir" : 'X\(//\)$' \| \
9648: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9649: $as_echo X"$as_dir" |
9650: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9651: s//\1/
9652: q
9653: }
9654: /^X\(\/\/\)[^/].*/{
9655: s//\1/
9656: q
9657: }
9658: /^X\(\/\/\)$/{
9659: s//\1/
9660: q
9661: }
9662: /^X\(\/\).*/{
9663: s//\1/
9664: q
9665: }
9666: s/.*/./; q'`
9667: test -d "$as_dir" && break
9668: done
9669: test -z "$as_dirs" || eval "mkdir $as_dirs"
9670: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9671:
9672:
9673: } # as_fn_mkdir_p
9674: if mkdir -p . 2>/dev/null; then
9675: as_mkdir_p='mkdir -p "$as_dir"'
9676: else
9677: test -d ./-p && rmdir ./-p
9678: as_mkdir_p=false
9679: fi
9680:
9681: if test -x / >/dev/null 2>&1; then
9682: as_test_x='test -x'
9683: else
9684: if ls -dL / >/dev/null 2>&1; then
9685: as_ls_L_option=L
9686: else
9687: as_ls_L_option=
9688: fi
9689: as_test_x='
9690: eval sh -c '\''
9691: if test -d "$1"; then
9692: test -d "$1/.";
9693: else
9694: case $1 in #(
9695: -*)set "./$1";;
9696: esac;
9697: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9698: ???[sx]*):;;*)false;;esac;fi
9699: '\'' sh
9700: '
9701: fi
9702: as_executable_p=$as_test_x
9703:
9704: # Sed expression to map a string onto a valid CPP name.
9705: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9706:
9707: # Sed expression to map a string onto a valid variable name.
9708: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9709:
9710:
9711: exec 6>&1
9712: ## ----------------------------------- ##
9713: ## Main body of $CONFIG_STATUS script. ##
9714: ## ----------------------------------- ##
9715: _ASEOF
9716: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9717:
9718: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9719: # Save the log message, to keep $0 and so on meaningful, and to
9720: # report actual input values of CONFIG_FILES etc. instead of their
9721: # values after options handling.
9722: ac_log="
1.5 bertrand 9723: This file was extended by rpl $as_me 4.0.11, which was
1.1 bertrand 9724: generated by GNU Autoconf 2.65. Invocation command line was
9725:
9726: CONFIG_FILES = $CONFIG_FILES
9727: CONFIG_HEADERS = $CONFIG_HEADERS
9728: CONFIG_LINKS = $CONFIG_LINKS
9729: CONFIG_COMMANDS = $CONFIG_COMMANDS
9730: $ $0 $@
9731:
9732: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9733: "
9734:
9735: _ACEOF
9736:
9737: case $ac_config_files in *"
9738: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9739: esac
9740:
9741: case $ac_config_headers in *"
9742: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9743: esac
9744:
9745:
9746: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9747: # Files that config.status was made for.
9748: config_files="$ac_config_files"
9749: config_headers="$ac_config_headers"
9750: config_commands="$ac_config_commands"
9751:
9752: _ACEOF
9753:
9754: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9755: ac_cs_usage="\
9756: \`$as_me' instantiates files and other configuration actions
9757: from templates according to the current configuration. Unless the files
9758: and actions are specified as TAGs, all are instantiated by default.
9759:
9760: Usage: $0 [OPTION]... [TAG]...
9761:
9762: -h, --help print this help, then exit
9763: -V, --version print version number and configuration settings, then exit
9764: --config print configuration, then exit
9765: -q, --quiet, --silent
9766: do not print progress messages
9767: -d, --debug don't remove temporary files
9768: --recheck update $as_me by reconfiguring in the same conditions
9769: --file=FILE[:TEMPLATE]
9770: instantiate the configuration file FILE
9771: --header=FILE[:TEMPLATE]
9772: instantiate the configuration header FILE
9773:
9774: Configuration files:
9775: $config_files
9776:
9777: Configuration headers:
9778: $config_headers
9779:
9780: Configuration commands:
9781: $config_commands
9782:
9783: Report bugs to the package provider."
9784:
9785: _ACEOF
9786: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9787: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9788: ac_cs_version="\\
1.5 bertrand 9789: rpl config.status 4.0.11
1.1 bertrand 9790: configured by $0, generated by GNU Autoconf 2.65,
9791: with options \\"\$ac_cs_config\\"
9792:
9793: Copyright (C) 2009 Free Software Foundation, Inc.
9794: This config.status script is free software; the Free Software Foundation
9795: gives unlimited permission to copy, distribute and modify it."
9796:
9797: ac_pwd='$ac_pwd'
9798: srcdir='$srcdir'
9799: INSTALL='$INSTALL'
9800: MKDIR_P='$MKDIR_P'
9801: AWK='$AWK'
9802: test -n "\$AWK" || AWK=awk
9803: _ACEOF
9804:
9805: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9806: # The default lists apply if the user does not specify any file.
9807: ac_need_defaults=:
9808: while test $# != 0
9809: do
9810: case $1 in
9811: --*=*)
9812: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9813: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9814: ac_shift=:
9815: ;;
9816: *)
9817: ac_option=$1
9818: ac_optarg=$2
9819: ac_shift=shift
9820: ;;
9821: esac
9822:
9823: case $ac_option in
9824: # Handling of the options.
9825: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9826: ac_cs_recheck=: ;;
9827: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9828: $as_echo "$ac_cs_version"; exit ;;
9829: --config | --confi | --conf | --con | --co | --c )
9830: $as_echo "$ac_cs_config"; exit ;;
9831: --debug | --debu | --deb | --de | --d | -d )
9832: debug=: ;;
9833: --file | --fil | --fi | --f )
9834: $ac_shift
9835: case $ac_optarg in
9836: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9837: esac
9838: as_fn_append CONFIG_FILES " '$ac_optarg'"
9839: ac_need_defaults=false;;
9840: --header | --heade | --head | --hea )
9841: $ac_shift
9842: case $ac_optarg in
9843: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9844: esac
9845: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9846: ac_need_defaults=false;;
9847: --he | --h)
9848: # Conflict between --help and --header
9849: as_fn_error "ambiguous option: \`$1'
9850: Try \`$0 --help' for more information.";;
9851: --help | --hel | -h )
9852: $as_echo "$ac_cs_usage"; exit ;;
9853: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9854: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9855: ac_cs_silent=: ;;
9856:
9857: # This is an error.
9858: -*) as_fn_error "unrecognized option: \`$1'
9859: Try \`$0 --help' for more information." ;;
9860:
9861: *) as_fn_append ac_config_targets " $1"
9862: ac_need_defaults=false ;;
9863:
9864: esac
9865: shift
9866: done
9867:
9868: ac_configure_extra_args=
9869:
9870: if $ac_cs_silent; then
9871: exec 6>/dev/null
9872: ac_configure_extra_args="$ac_configure_extra_args --silent"
9873: fi
9874:
9875: _ACEOF
9876: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9877: if \$ac_cs_recheck; then
9878: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9879: shift
9880: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9881: CONFIG_SHELL='$SHELL'
9882: export CONFIG_SHELL
9883: exec "\$@"
9884: fi
9885:
9886: _ACEOF
9887: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9888: exec 5>>config.log
9889: {
9890: echo
9891: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9892: ## Running $as_me. ##
9893: _ASBOX
9894: $as_echo "$ac_log"
9895: } >&5
9896:
9897: _ACEOF
9898: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9899: #
9900: # INIT-COMMANDS
9901: #
9902: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9903:
9904: _ACEOF
9905:
9906: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9907:
9908: # Handling of arguments.
9909: for ac_config_target in $ac_config_targets
9910: do
9911: case $ac_config_target in
9912: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9913: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9914: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9915: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9916: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9917: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9918: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9919: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9920: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9921: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9922: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9923: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9924: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9925: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9926: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9927: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9928: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9929: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9930: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9931: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9932: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9933: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9934: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9935: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9936: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9937: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9938: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9939:
9940: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9941: esac
9942: done
9943:
9944:
9945: # If the user did not use the arguments to specify the items to instantiate,
9946: # then the envvar interface is used. Set only those that are not.
9947: # We use the long form for the default assignment because of an extremely
9948: # bizarre bug on SunOS 4.1.3.
9949: if $ac_need_defaults; then
9950: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9951: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9952: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9953: fi
9954:
9955: # Have a temporary directory for convenience. Make it in the build tree
9956: # simply because there is no reason against having it here, and in addition,
9957: # creating and moving files from /tmp can sometimes cause problems.
9958: # Hook for its removal unless debugging.
9959: # Note that there is a small window in which the directory will not be cleaned:
9960: # after its creation but before its name has been assigned to `$tmp'.
9961: $debug ||
9962: {
9963: tmp=
9964: trap 'exit_status=$?
9965: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9966: ' 0
9967: trap 'as_fn_exit 1' 1 2 13 15
9968: }
9969: # Create a (secure) tmp directory for tmp files.
9970:
9971: {
9972: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9973: test -n "$tmp" && test -d "$tmp"
9974: } ||
9975: {
9976: tmp=./conf$$-$RANDOM
9977: (umask 077 && mkdir "$tmp")
9978: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9979:
9980: # Set up the scripts for CONFIG_FILES section.
9981: # No need to generate them if there are no CONFIG_FILES.
9982: # This happens for instance with `./config.status config.h'.
9983: if test -n "$CONFIG_FILES"; then
9984:
9985:
9986: ac_cr=`echo X | tr X '\015'`
9987: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9988: # But we know of no other shell where ac_cr would be empty at this
9989: # point, so we can use a bashism as a fallback.
9990: if test "x$ac_cr" = x; then
9991: eval ac_cr=\$\'\\r\'
9992: fi
9993: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9994: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9995: ac_cs_awk_cr='\r'
9996: else
9997: ac_cs_awk_cr=$ac_cr
9998: fi
9999:
10000: echo 'BEGIN {' >"$tmp/subs1.awk" &&
10001: _ACEOF
10002:
10003:
10004: {
10005: echo "cat >conf$$subs.awk <<_ACEOF" &&
10006: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10007: echo "_ACEOF"
10008: } >conf$$subs.sh ||
10009: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10010: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10011: ac_delim='%!_!# '
10012: for ac_last_try in false false false false false :; do
10013: . ./conf$$subs.sh ||
10014: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10015:
10016: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10017: if test $ac_delim_n = $ac_delim_num; then
10018: break
10019: elif $ac_last_try; then
10020: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10021: else
10022: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10023: fi
10024: done
10025: rm -f conf$$subs.sh
10026:
10027: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10028: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10029: _ACEOF
10030: sed -n '
10031: h
10032: s/^/S["/; s/!.*/"]=/
10033: p
10034: g
10035: s/^[^!]*!//
10036: :repl
10037: t repl
10038: s/'"$ac_delim"'$//
10039: t delim
10040: :nl
10041: h
10042: s/\(.\{148\}\)..*/\1/
10043: t more1
10044: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10045: p
10046: n
10047: b repl
10048: :more1
10049: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10050: p
10051: g
10052: s/.\{148\}//
10053: t nl
10054: :delim
10055: h
10056: s/\(.\{148\}\)..*/\1/
10057: t more2
10058: s/["\\]/\\&/g; s/^/"/; s/$/"/
10059: p
10060: b
10061: :more2
10062: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10063: p
10064: g
10065: s/.\{148\}//
10066: t delim
10067: ' <conf$$subs.awk | sed '
10068: /^[^""]/{
10069: N
10070: s/\n//
10071: }
10072: ' >>$CONFIG_STATUS || ac_write_fail=1
10073: rm -f conf$$subs.awk
10074: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10075: _ACAWK
10076: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10077: for (key in S) S_is_set[key] = 1
10078: FS = ""
10079:
10080: }
10081: {
10082: line = $ 0
10083: nfields = split(line, field, "@")
10084: substed = 0
10085: len = length(field[1])
10086: for (i = 2; i < nfields; i++) {
10087: key = field[i]
10088: keylen = length(key)
10089: if (S_is_set[key]) {
10090: value = S[key]
10091: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10092: len += length(value) + length(field[++i])
10093: substed = 1
10094: } else
10095: len += 1 + keylen
10096: }
10097:
10098: print line
10099: }
10100:
10101: _ACAWK
10102: _ACEOF
10103: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10104: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10105: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10106: else
10107: cat
10108: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10109: || as_fn_error "could not setup config files machinery" "$LINENO" 5
10110: _ACEOF
10111:
10112: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10113: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10114: # trailing colons and then remove the whole line if VPATH becomes empty
10115: # (actually we leave an empty line to preserve line numbers).
10116: if test "x$srcdir" = x.; then
10117: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10118: s/:*\$(srcdir):*/:/
10119: s/:*\${srcdir}:*/:/
10120: s/:*@srcdir@:*/:/
10121: s/^\([^=]*=[ ]*\):*/\1/
10122: s/:*$//
10123: s/^[^=]*=[ ]*$//
10124: }'
10125: fi
10126:
10127: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10128: fi # test -n "$CONFIG_FILES"
10129:
10130: # Set up the scripts for CONFIG_HEADERS section.
10131: # No need to generate them if there are no CONFIG_HEADERS.
10132: # This happens for instance with `./config.status Makefile'.
10133: if test -n "$CONFIG_HEADERS"; then
10134: cat >"$tmp/defines.awk" <<\_ACAWK ||
10135: BEGIN {
10136: _ACEOF
10137:
10138: # Transform confdefs.h into an awk script `defines.awk', embedded as
10139: # here-document in config.status, that substitutes the proper values into
10140: # config.h.in to produce config.h.
10141:
10142: # Create a delimiter string that does not exist in confdefs.h, to ease
10143: # handling of long lines.
10144: ac_delim='%!_!# '
10145: for ac_last_try in false false :; do
10146: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10147: if test -z "$ac_t"; then
10148: break
10149: elif $ac_last_try; then
10150: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10151: else
10152: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10153: fi
10154: done
10155:
10156: # For the awk script, D is an array of macro values keyed by name,
10157: # likewise P contains macro parameters if any. Preserve backslash
10158: # newline sequences.
10159:
10160: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10161: sed -n '
10162: s/.\{148\}/&'"$ac_delim"'/g
10163: t rset
10164: :rset
10165: s/^[ ]*#[ ]*define[ ][ ]*/ /
10166: t def
10167: d
10168: :def
10169: s/\\$//
10170: t bsnl
10171: s/["\\]/\\&/g
10172: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10173: D["\1"]=" \3"/p
10174: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10175: d
10176: :bsnl
10177: s/["\\]/\\&/g
10178: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10179: D["\1"]=" \3\\\\\\n"\\/p
10180: t cont
10181: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10182: t cont
10183: d
10184: :cont
10185: n
10186: s/.\{148\}/&'"$ac_delim"'/g
10187: t clear
10188: :clear
10189: s/\\$//
10190: t bsnlc
10191: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10192: d
10193: :bsnlc
10194: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10195: b cont
10196: ' <confdefs.h | sed '
10197: s/'"$ac_delim"'/"\\\
10198: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10199:
10200: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10201: for (key in D) D_is_set[key] = 1
10202: FS = ""
10203: }
10204: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10205: line = \$ 0
10206: split(line, arg, " ")
10207: if (arg[1] == "#") {
10208: defundef = arg[2]
10209: mac1 = arg[3]
10210: } else {
10211: defundef = substr(arg[1], 2)
10212: mac1 = arg[2]
10213: }
10214: split(mac1, mac2, "(") #)
10215: macro = mac2[1]
10216: prefix = substr(line, 1, index(line, defundef) - 1)
10217: if (D_is_set[macro]) {
10218: # Preserve the white space surrounding the "#".
10219: print prefix "define", macro P[macro] D[macro]
10220: next
10221: } else {
10222: # Replace #undef with comments. This is necessary, for example,
10223: # in the case of _POSIX_SOURCE, which is predefined and required
10224: # on some systems where configure will not decide to define it.
10225: if (defundef == "undef") {
10226: print "/*", prefix defundef, macro, "*/"
10227: next
10228: }
10229: }
10230: }
10231: { print }
10232: _ACAWK
10233: _ACEOF
10234: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10235: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10236: fi # test -n "$CONFIG_HEADERS"
10237:
10238:
10239: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10240: shift
10241: for ac_tag
10242: do
10243: case $ac_tag in
10244: :[FHLC]) ac_mode=$ac_tag; continue;;
10245: esac
10246: case $ac_mode$ac_tag in
10247: :[FHL]*:*);;
10248: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10249: :[FH]-) ac_tag=-:-;;
10250: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10251: esac
10252: ac_save_IFS=$IFS
10253: IFS=:
10254: set x $ac_tag
10255: IFS=$ac_save_IFS
10256: shift
10257: ac_file=$1
10258: shift
10259:
10260: case $ac_mode in
10261: :L) ac_source=$1;;
10262: :[FH])
10263: ac_file_inputs=
10264: for ac_f
10265: do
10266: case $ac_f in
10267: -) ac_f="$tmp/stdin";;
10268: *) # Look for the file first in the build tree, then in the source tree
10269: # (if the path is not absolute). The absolute path cannot be DOS-style,
10270: # because $ac_f cannot contain `:'.
10271: test -f "$ac_f" ||
10272: case $ac_f in
10273: [\\/$]*) false;;
10274: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10275: esac ||
10276: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10277: esac
10278: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10279: as_fn_append ac_file_inputs " '$ac_f'"
10280: done
10281:
10282: # Let's still pretend it is `configure' which instantiates (i.e., don't
10283: # use $as_me), people would be surprised to read:
10284: # /* config.h. Generated by config.status. */
10285: configure_input='Generated from '`
10286: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10287: `' by configure.'
10288: if test x"$ac_file" != x-; then
10289: configure_input="$ac_file. $configure_input"
10290: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10291: $as_echo "$as_me: creating $ac_file" >&6;}
10292: fi
10293: # Neutralize special characters interpreted by sed in replacement strings.
10294: case $configure_input in #(
10295: *\&* | *\|* | *\\* )
10296: ac_sed_conf_input=`$as_echo "$configure_input" |
10297: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10298: *) ac_sed_conf_input=$configure_input;;
10299: esac
10300:
10301: case $ac_tag in
10302: *:-:* | *:-) cat >"$tmp/stdin" \
10303: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10304: esac
10305: ;;
10306: esac
10307:
10308: ac_dir=`$as_dirname -- "$ac_file" ||
10309: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10310: X"$ac_file" : 'X\(//\)[^/]' \| \
10311: X"$ac_file" : 'X\(//\)$' \| \
10312: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10313: $as_echo X"$ac_file" |
10314: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10315: s//\1/
10316: q
10317: }
10318: /^X\(\/\/\)[^/].*/{
10319: s//\1/
10320: q
10321: }
10322: /^X\(\/\/\)$/{
10323: s//\1/
10324: q
10325: }
10326: /^X\(\/\).*/{
10327: s//\1/
10328: q
10329: }
10330: s/.*/./; q'`
10331: as_dir="$ac_dir"; as_fn_mkdir_p
10332: ac_builddir=.
10333:
10334: case "$ac_dir" in
10335: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10336: *)
10337: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10338: # A ".." for each directory in $ac_dir_suffix.
10339: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10340: case $ac_top_builddir_sub in
10341: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10342: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10343: esac ;;
10344: esac
10345: ac_abs_top_builddir=$ac_pwd
10346: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10347: # for backward compatibility:
10348: ac_top_builddir=$ac_top_build_prefix
10349:
10350: case $srcdir in
10351: .) # We are building in place.
10352: ac_srcdir=.
10353: ac_top_srcdir=$ac_top_builddir_sub
10354: ac_abs_top_srcdir=$ac_pwd ;;
10355: [\\/]* | ?:[\\/]* ) # Absolute name.
10356: ac_srcdir=$srcdir$ac_dir_suffix;
10357: ac_top_srcdir=$srcdir
10358: ac_abs_top_srcdir=$srcdir ;;
10359: *) # Relative name.
10360: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10361: ac_top_srcdir=$ac_top_build_prefix$srcdir
10362: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10363: esac
10364: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10365:
10366:
10367: case $ac_mode in
10368: :F)
10369: #
10370: # CONFIG_FILE
10371: #
10372:
10373: case $INSTALL in
10374: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10375: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10376: esac
10377: ac_MKDIR_P=$MKDIR_P
10378: case $MKDIR_P in
10379: [\\/$]* | ?:[\\/]* ) ;;
10380: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10381: esac
10382: _ACEOF
10383:
10384: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10385: # If the template does not know about datarootdir, expand it.
10386: # FIXME: This hack should be removed a few years after 2.60.
10387: ac_datarootdir_hack=; ac_datarootdir_seen=
10388: ac_sed_dataroot='
10389: /datarootdir/ {
10390: p
10391: q
10392: }
10393: /@datadir@/p
10394: /@docdir@/p
10395: /@infodir@/p
10396: /@localedir@/p
10397: /@mandir@/p'
10398: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10399: *datarootdir*) ac_datarootdir_seen=yes;;
10400: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10401: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10402: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10403: _ACEOF
10404: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10405: ac_datarootdir_hack='
10406: s&@datadir@&$datadir&g
10407: s&@docdir@&$docdir&g
10408: s&@infodir@&$infodir&g
10409: s&@localedir@&$localedir&g
10410: s&@mandir@&$mandir&g
10411: s&\\\${datarootdir}&$datarootdir&g' ;;
10412: esac
10413: _ACEOF
10414:
10415: # Neutralize VPATH when `$srcdir' = `.'.
10416: # Shell code in configure.ac might set extrasub.
10417: # FIXME: do we really want to maintain this feature?
10418: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10419: ac_sed_extra="$ac_vpsub
10420: $extrasub
10421: _ACEOF
10422: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10423: :t
10424: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10425: s|@configure_input@|$ac_sed_conf_input|;t t
10426: s&@top_builddir@&$ac_top_builddir_sub&;t t
10427: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10428: s&@srcdir@&$ac_srcdir&;t t
10429: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10430: s&@top_srcdir@&$ac_top_srcdir&;t t
10431: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10432: s&@builddir@&$ac_builddir&;t t
10433: s&@abs_builddir@&$ac_abs_builddir&;t t
10434: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10435: s&@INSTALL@&$ac_INSTALL&;t t
10436: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10437: $ac_datarootdir_hack
10438: "
10439: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10440: || as_fn_error "could not create $ac_file" "$LINENO" 5
10441:
10442: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10443: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10444: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10445: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10446: which seems to be undefined. Please make sure it is defined." >&5
10447: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10448: which seems to be undefined. Please make sure it is defined." >&2;}
10449:
10450: rm -f "$tmp/stdin"
10451: case $ac_file in
10452: -) cat "$tmp/out" && rm -f "$tmp/out";;
10453: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10454: esac \
10455: || as_fn_error "could not create $ac_file" "$LINENO" 5
10456: ;;
10457: :H)
10458: #
10459: # CONFIG_HEADER
10460: #
10461: if test x"$ac_file" != x-; then
10462: {
10463: $as_echo "/* $configure_input */" \
10464: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10465: } >"$tmp/config.h" \
10466: || as_fn_error "could not create $ac_file" "$LINENO" 5
10467: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10468: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10469: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10470: else
10471: rm -f "$ac_file"
10472: mv "$tmp/config.h" "$ac_file" \
10473: || as_fn_error "could not create $ac_file" "$LINENO" 5
10474: fi
10475: else
10476: $as_echo "/* $configure_input */" \
10477: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10478: || as_fn_error "could not create -" "$LINENO" 5
10479: fi
10480: # Compute "$ac_file"'s index in $config_headers.
10481: _am_arg="$ac_file"
10482: _am_stamp_count=1
10483: for _am_header in $config_headers :; do
10484: case $_am_header in
10485: $_am_arg | $_am_arg:* )
10486: break ;;
10487: * )
10488: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10489: esac
10490: done
10491: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10492: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10493: X"$_am_arg" : 'X\(//\)[^/]' \| \
10494: X"$_am_arg" : 'X\(//\)$' \| \
10495: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10496: $as_echo X"$_am_arg" |
10497: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10498: s//\1/
10499: q
10500: }
10501: /^X\(\/\/\)[^/].*/{
10502: s//\1/
10503: q
10504: }
10505: /^X\(\/\/\)$/{
10506: s//\1/
10507: q
10508: }
10509: /^X\(\/\).*/{
10510: s//\1/
10511: q
10512: }
10513: s/.*/./; q'`/stamp-h$_am_stamp_count
10514: ;;
10515:
10516: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10517: $as_echo "$as_me: executing $ac_file commands" >&6;}
10518: ;;
10519: esac
10520:
10521:
10522: case $ac_file$ac_mode in
10523: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10524: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10525: # are listed without --file. Let's play safe and only enable the eval
10526: # if we detect the quoting.
10527: case $CONFIG_FILES in
10528: *\'*) eval set x "$CONFIG_FILES" ;;
10529: *) set x $CONFIG_FILES ;;
10530: esac
10531: shift
10532: for mf
10533: do
10534: # Strip MF so we end up with the name of the file.
10535: mf=`echo "$mf" | sed -e 's/:.*$//'`
10536: # Check whether this is an Automake generated Makefile or not.
10537: # We used to match only the files named `Makefile.in', but
10538: # some people rename them; so instead we look at the file content.
10539: # Grep'ing the first line is not enough: some people post-process
10540: # each Makefile.in and add a new line on top of each file to say so.
10541: # Grep'ing the whole file is not good either: AIX grep has a line
10542: # limit of 2048, but all sed's we know have understand at least 4000.
10543: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10544: dirpart=`$as_dirname -- "$mf" ||
10545: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10546: X"$mf" : 'X\(//\)[^/]' \| \
10547: X"$mf" : 'X\(//\)$' \| \
10548: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10549: $as_echo X"$mf" |
10550: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10551: s//\1/
10552: q
10553: }
10554: /^X\(\/\/\)[^/].*/{
10555: s//\1/
10556: q
10557: }
10558: /^X\(\/\/\)$/{
10559: s//\1/
10560: q
10561: }
10562: /^X\(\/\).*/{
10563: s//\1/
10564: q
10565: }
10566: s/.*/./; q'`
10567: else
10568: continue
10569: fi
10570: # Extract the definition of DEPDIR, am__include, and am__quote
10571: # from the Makefile without running `make'.
10572: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10573: test -z "$DEPDIR" && continue
10574: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10575: test -z "am__include" && continue
10576: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10577: # When using ansi2knr, U may be empty or an underscore; expand it
10578: U=`sed -n 's/^U = //p' < "$mf"`
10579: # Find all dependency output files, they are included files with
10580: # $(DEPDIR) in their names. We invoke sed twice because it is the
10581: # simplest approach to changing $(DEPDIR) to its actual value in the
10582: # expansion.
10583: for file in `sed -n "
10584: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10585: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10586: # Make sure the directory exists.
10587: test -f "$dirpart/$file" && continue
10588: fdir=`$as_dirname -- "$file" ||
10589: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10590: X"$file" : 'X\(//\)[^/]' \| \
10591: X"$file" : 'X\(//\)$' \| \
10592: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10593: $as_echo X"$file" |
10594: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10595: s//\1/
10596: q
10597: }
10598: /^X\(\/\/\)[^/].*/{
10599: s//\1/
10600: q
10601: }
10602: /^X\(\/\/\)$/{
10603: s//\1/
10604: q
10605: }
10606: /^X\(\/\).*/{
10607: s//\1/
10608: q
10609: }
10610: s/.*/./; q'`
10611: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10612: # echo "creating $dirpart/$file"
10613: echo '# dummy' > "$dirpart/$file"
10614: done
10615: done
10616: }
10617: ;;
10618:
10619: esac
10620: done # for ac_tag
10621:
10622:
10623: as_fn_exit 0
10624: _ACEOF
10625: ac_clean_files=$ac_clean_files_save
10626:
10627: test $ac_write_fail = 0 ||
10628: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10629:
10630:
10631: # configure is writing to config.log, and then calls config.status.
10632: # config.status does its own redirection, appending to config.log.
10633: # Unfortunately, on DOS this fails, as config.log is still kept open
10634: # by configure, so config.status won't be able to write to it; its
10635: # output is simply discarded. So we exec the FD to /dev/null,
10636: # effectively closing config.log, so it can be properly (re)opened and
10637: # appended to by config.status. When coming back to configure, we
10638: # need to make the FD available again.
10639: if test "$no_create" != yes; then
10640: ac_cs_success=:
10641: ac_config_status_args=
10642: test "$silent" = yes &&
10643: ac_config_status_args="$ac_config_status_args --quiet"
10644: exec 5>/dev/null
10645: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10646: exec 5>>config.log
10647: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10648: # would make configure fail if this is the last instruction.
10649: $ac_cs_success || as_fn_exit $?
10650: fi
10651:
10652: #
10653: # CONFIG_SUBDIRS section.
10654: #
10655: if test "$no_recursion" != yes; then
10656:
10657: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10658: # so they do not pile up.
10659: ac_sub_configure_args=
10660: ac_prev=
10661: eval "set x $ac_configure_args"
10662: shift
10663: for ac_arg
10664: do
10665: if test -n "$ac_prev"; then
10666: ac_prev=
10667: continue
10668: fi
10669: case $ac_arg in
10670: -cache-file | --cache-file | --cache-fil | --cache-fi \
10671: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10672: ac_prev=cache_file ;;
10673: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10674: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10675: | --c=*)
10676: ;;
10677: --config-cache | -C)
10678: ;;
10679: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10680: ac_prev=srcdir ;;
10681: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10682: ;;
10683: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10684: ac_prev=prefix ;;
10685: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10686: ;;
10687: --disable-option-checking)
10688: ;;
10689: *)
10690: case $ac_arg in
10691: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10692: esac
10693: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10694: esac
10695: done
10696:
10697: # Always prepend --prefix to ensure using the same prefix
10698: # in subdir configurations.
10699: ac_arg="--prefix=$prefix"
10700: case $ac_arg in
10701: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10702: esac
10703: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10704:
10705: # Pass --silent
10706: if test "$silent" = yes; then
10707: ac_sub_configure_args="--silent $ac_sub_configure_args"
10708: fi
10709:
10710: # Always prepend --disable-option-checking to silence warnings, since
10711: # different subdirs can have different --enable and --with options.
10712: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10713:
10714: ac_popdir=`pwd`
10715: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10716:
10717: # Do not complain, so a configure script can configure whichever
10718: # parts of a large source tree are present.
10719: test -d "$srcdir/$ac_dir" || continue
10720:
10721: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10722: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10723: $as_echo "$ac_msg" >&6
10724: as_dir="$ac_dir"; as_fn_mkdir_p
10725: ac_builddir=.
10726:
10727: case "$ac_dir" in
10728: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10729: *)
10730: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10731: # A ".." for each directory in $ac_dir_suffix.
10732: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10733: case $ac_top_builddir_sub in
10734: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10735: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10736: esac ;;
10737: esac
10738: ac_abs_top_builddir=$ac_pwd
10739: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10740: # for backward compatibility:
10741: ac_top_builddir=$ac_top_build_prefix
10742:
10743: case $srcdir in
10744: .) # We are building in place.
10745: ac_srcdir=.
10746: ac_top_srcdir=$ac_top_builddir_sub
10747: ac_abs_top_srcdir=$ac_pwd ;;
10748: [\\/]* | ?:[\\/]* ) # Absolute name.
10749: ac_srcdir=$srcdir$ac_dir_suffix;
10750: ac_top_srcdir=$srcdir
10751: ac_abs_top_srcdir=$srcdir ;;
10752: *) # Relative name.
10753: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10754: ac_top_srcdir=$ac_top_build_prefix$srcdir
10755: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10756: esac
10757: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10758:
10759:
10760: cd "$ac_dir"
10761:
10762: # Check for guested configure; otherwise get Cygnus style configure.
10763: if test -f "$ac_srcdir/configure.gnu"; then
10764: ac_sub_configure=$ac_srcdir/configure.gnu
10765: elif test -f "$ac_srcdir/configure"; then
10766: ac_sub_configure=$ac_srcdir/configure
10767: elif test -f "$ac_srcdir/configure.in"; then
10768: # This should be Cygnus configure.
10769: ac_sub_configure=$ac_aux_dir/configure
10770: else
10771: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10772: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10773: ac_sub_configure=
10774: fi
10775:
10776: # The recursion is here.
10777: if test -n "$ac_sub_configure"; then
10778: # Make the cache file name correct relative to the subdirectory.
10779: case $cache_file in
10780: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10781: *) # Relative name.
10782: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10783: esac
10784:
10785: { $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
10786: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10787: # The eval makes quoting arguments work.
10788: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10789: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10790: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10791: fi
10792:
10793: cd "$ac_popdir"
10794: done
10795: fi
10796: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10797: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10798: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10799: fi
10800:
CVSweb interface <joel.bertrand@systella.fr>