Annotation of rpl/configure, revision 1.3
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.2 bertrand 3: # Generated by GNU Autoconf 2.65 for rpl 4.0.10.
1.1 bertrand 4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8: # Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: case $0 in #((
93: *[\\/]* ) as_myself=$0 ;;
94: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95: for as_dir in $PATH
96: do
97: IFS=$as_save_IFS
98: test -z "$as_dir" && as_dir=.
99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100: done
101: IFS=$as_save_IFS
102:
103: ;;
104: esac
105: # We did not find ourselves, most probably we were run as `sh COMMAND'
106: # in which case we are not to be found in the path.
107: if test "x$as_myself" = x; then
108: as_myself=$0
109: fi
110: if test ! -f "$as_myself"; then
111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112: exit 1
113: fi
114:
115: # Unset variables that we do not need and which cause bugs (e.g. in
116: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117: # suppresses any "Segmentation fault" message there. '((' could
118: # trigger a bug in pdksh 5.2.14.
119: for as_var in BASH_ENV ENV MAIL MAILPATH
120: do eval test x\${$as_var+set} = xset \
121: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122: done
123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
128: LC_ALL=C
129: export LC_ALL
130: LANGUAGE=C
131: export LANGUAGE
132:
133: # CDPATH.
134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135:
136: if test "x$CONFIG_SHELL" = x; then
137: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138: emulate sh
139: NULLCMD=:
140: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141: # is contrary to our usage. Disable this feature.
142: alias -g '\${1+\"\$@\"}'='\"\$@\"'
143: setopt NO_GLOB_SUBST
144: else
145: case \`(set -o) 2>/dev/null\` in #(
146: *posix*) :
147: set -o posix ;; #(
148: *) :
149: ;;
150: esac
151: fi
152: "
153: as_required="as_fn_return () { (exit \$1); }
154: as_fn_success () { as_fn_return 0; }
155: as_fn_failure () { as_fn_return 1; }
156: as_fn_ret_success () { return 0; }
157: as_fn_ret_failure () { return 1; }
158:
159: exitcode=0
160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165:
166: else
167: exitcode=1; echo positional parameters were not saved.
168: fi
169: test x\$exitcode = x0 || exit 1"
170: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174: test \$(( 1 + 1 )) = 2 || exit 1"
175: if (eval "$as_required") 2>/dev/null; then :
176: as_have_required=yes
177: else
178: as_have_required=no
179: fi
180: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181:
182: else
183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184: as_found=false
185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186: do
187: IFS=$as_save_IFS
188: test -z "$as_dir" && as_dir=.
189: as_found=:
190: case $as_dir in #(
191: /*)
192: for as_base in sh bash ksh sh5; do
193: # Try only shells that exist, to save several forks.
194: as_shell=$as_dir/$as_base
195: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197: CONFIG_SHELL=$as_shell as_have_required=yes
198: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199: break 2
200: fi
201: fi
202: done;;
203: esac
204: as_found=false
205: done
206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208: CONFIG_SHELL=$SHELL as_have_required=yes
209: fi; }
210: IFS=$as_save_IFS
211:
212:
213: if test "x$CONFIG_SHELL" != x; then :
214: # We cannot yet assume a decent shell, so we have to provide a
215: # neutralization value for shells without unset; and this also
216: # works around shells that cannot unset nonexistent variables.
217: BASH_ENV=/dev/null
218: ENV=/dev/null
219: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220: export CONFIG_SHELL
221: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222: fi
223:
224: if test x$as_have_required = xno; then :
225: $as_echo "$0: This script requires a shell more modern than all"
226: $as_echo "$0: the shells that I found on your system."
227: if test x${ZSH_VERSION+set} = xset ; then
228: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230: else
231: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232: $0: including any error possibly output before this
233: $0: message. Then install a modern shell, or manually run
234: $0: the script under such a shell if you do have one."
235: fi
236: exit 1
237: fi
238: fi
239: fi
240: SHELL=${CONFIG_SHELL-/bin/sh}
241: export SHELL
242: # Unset more variables known to interfere with behavior of common tools.
243: CLICOLOR_FORCE= GREP_OPTIONS=
244: unset CLICOLOR_FORCE GREP_OPTIONS
245:
246: ## --------------------- ##
247: ## M4sh Shell Functions. ##
248: ## --------------------- ##
249: # as_fn_unset VAR
250: # ---------------
251: # Portably unset VAR.
252: as_fn_unset ()
253: {
254: { eval $1=; unset $1;}
255: }
256: as_unset=as_fn_unset
257:
258: # as_fn_set_status STATUS
259: # -----------------------
260: # Set $? to STATUS, without forking.
261: as_fn_set_status ()
262: {
263: return $1
264: } # as_fn_set_status
265:
266: # as_fn_exit STATUS
267: # -----------------
268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269: as_fn_exit ()
270: {
271: set +e
272: as_fn_set_status $1
273: exit $1
274: } # as_fn_exit
275:
276: # as_fn_mkdir_p
277: # -------------
278: # Create "$as_dir" as a directory, including parents if necessary.
279: as_fn_mkdir_p ()
280: {
281:
282: case $as_dir in #(
283: -*) as_dir=./$as_dir;;
284: esac
285: test -d "$as_dir" || eval $as_mkdir_p || {
286: as_dirs=
287: while :; do
288: case $as_dir in #(
289: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290: *) as_qdir=$as_dir;;
291: esac
292: as_dirs="'$as_qdir' $as_dirs"
293: as_dir=`$as_dirname -- "$as_dir" ||
294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295: X"$as_dir" : 'X\(//\)[^/]' \| \
296: X"$as_dir" : 'X\(//\)$' \| \
297: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298: $as_echo X"$as_dir" |
299: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300: s//\1/
301: q
302: }
303: /^X\(\/\/\)[^/].*/{
304: s//\1/
305: q
306: }
307: /^X\(\/\/\)$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\).*/{
312: s//\1/
313: q
314: }
315: s/.*/./; q'`
316: test -d "$as_dir" && break
317: done
318: test -z "$as_dirs" || eval "mkdir $as_dirs"
319: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320:
321:
322: } # as_fn_mkdir_p
323: # as_fn_append VAR VALUE
324: # ----------------------
325: # Append the text in VALUE to the end of the definition contained in VAR. Take
326: # advantage of any shell optimizations that allow amortized linear growth over
327: # repeated appends, instead of the typical quadratic growth present in naive
328: # implementations.
329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330: eval 'as_fn_append ()
331: {
332: eval $1+=\$2
333: }'
334: else
335: as_fn_append ()
336: {
337: eval $1=\$$1\$2
338: }
339: fi # as_fn_append
340:
341: # as_fn_arith ARG...
342: # ------------------
343: # Perform arithmetic evaluation on the ARGs, and store the result in the
344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
345: # must be portable across $(()) and expr.
346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347: eval 'as_fn_arith ()
348: {
349: as_val=$(( $* ))
350: }'
351: else
352: as_fn_arith ()
353: {
354: as_val=`expr "$@" || test $? -eq 1`
355: }
356: fi # as_fn_arith
357:
358:
359: # as_fn_error ERROR [LINENO LOG_FD]
360: # ---------------------------------
361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363: # script with status $?, using 1 if that was 0.
364: as_fn_error ()
365: {
366: as_status=$?; test $as_status -eq 0 && as_status=1
367: if test "$3"; then
368: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370: fi
371: $as_echo "$as_me: error: $1" >&2
372: as_fn_exit $as_status
373: } # as_fn_error
374:
375: if expr a : '\(a\)' >/dev/null 2>&1 &&
376: test "X`expr 00001 : '.*\(...\)'`" = X001; then
377: as_expr=expr
378: else
379: as_expr=false
380: fi
381:
382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383: as_basename=basename
384: else
385: as_basename=false
386: fi
387:
388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389: as_dirname=dirname
390: else
391: as_dirname=false
392: fi
393:
394: as_me=`$as_basename -- "$0" ||
395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396: X"$0" : 'X\(//\)$' \| \
397: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398: $as_echo X/"$0" |
399: sed '/^.*\/\([^/][^/]*\)\/*$/{
400: s//\1/
401: q
402: }
403: /^X\/\(\/\/\)$/{
404: s//\1/
405: q
406: }
407: /^X\/\(\/\).*/{
408: s//\1/
409: q
410: }
411: s/.*/./; q'`
412:
413: # Avoid depending upon Character Ranges.
414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417: as_cr_digits='0123456789'
418: as_cr_alnum=$as_cr_Letters$as_cr_digits
419:
420:
421: as_lineno_1=$LINENO as_lineno_1a=$LINENO
422: as_lineno_2=$LINENO as_lineno_2a=$LINENO
423: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426: sed -n '
427: p
428: /[$]LINENO/=
429: ' <$as_myself |
430: sed '
431: s/[$]LINENO.*/&-/
432: t lineno
433: b
434: :lineno
435: N
436: :loop
437: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438: t loop
439: s/-\n.*//
440: ' >$as_me.lineno &&
441: chmod +x "$as_me.lineno" ||
442: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443:
444: # Don't try to exec as it changes $[0], causing all sort of problems
445: # (the dirname of $[0] is not the place where we might find the
446: # original and so on. Autoconf is especially sensitive to this).
447: . "./$as_me.lineno"
448: # Exit status is that of the last command.
449: exit
450: }
451:
452: ECHO_C= ECHO_N= ECHO_T=
453: case `echo -n x` in #(((((
454: -n*)
455: case `echo 'xy\c'` in
456: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457: xy) ECHO_C='\c';;
458: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459: ECHO_T=' ';;
460: esac;;
461: *)
462: ECHO_N='-n';;
463: esac
464:
465: rm -f conf$$ conf$$.exe conf$$.file
466: if test -d conf$$.dir; then
467: rm -f conf$$.dir/conf$$.file
468: else
469: rm -f conf$$.dir
470: mkdir conf$$.dir 2>/dev/null
471: fi
472: if (echo >conf$$.file) 2>/dev/null; then
473: if ln -s conf$$.file conf$$ 2>/dev/null; then
474: as_ln_s='ln -s'
475: # ... but there are two gotchas:
476: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478: # In both cases, we have to default to `cp -p'.
479: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480: as_ln_s='cp -p'
481: elif ln conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s=ln
483: else
484: as_ln_s='cp -p'
485: fi
486: else
487: as_ln_s='cp -p'
488: fi
489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490: rmdir conf$$.dir 2>/dev/null
491:
492: if mkdir -p . 2>/dev/null; then
493: as_mkdir_p='mkdir -p "$as_dir"'
494: else
495: test -d ./-p && rmdir ./-p
496: as_mkdir_p=false
497: fi
498:
499: if test -x / >/dev/null 2>&1; then
500: as_test_x='test -x'
501: else
502: if ls -dL / >/dev/null 2>&1; then
503: as_ls_L_option=L
504: else
505: as_ls_L_option=
506: fi
507: as_test_x='
508: eval sh -c '\''
509: if test -d "$1"; then
510: test -d "$1/.";
511: else
512: case $1 in #(
513: -*)set "./$1";;
514: esac;
515: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516: ???[sx]*):;;*)false;;esac;fi
517: '\'' sh
518: '
519: fi
520: as_executable_p=$as_test_x
521:
522: # Sed expression to map a string onto a valid CPP name.
523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524:
525: # Sed expression to map a string onto a valid variable name.
526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527:
528:
529: test -n "$DJDIR" || exec 7<&0 </dev/null
530: exec 6>&1
531:
532: # Name of the host.
533: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534: # so uname gets run too.
535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536:
537: #
538: # Initializations.
539: #
540: ac_default_prefix=/usr/local
541: ac_clean_files=
542: ac_config_libobj_dir=.
543: LIBOBJS=
544: cross_compiling=no
545: subdirs=
546: MFLAGS=
547: MAKEFLAGS=
548:
549: # Identity of this package.
550: PACKAGE_NAME='rpl'
551: PACKAGE_TARNAME='rpl'
1.2 bertrand 552: PACKAGE_VERSION='4.0.10'
553: PACKAGE_STRING='rpl 4.0.10'
1.1 bertrand 554: PACKAGE_BUGREPORT=''
555: PACKAGE_URL=''
556:
557: ac_default_prefix=/usr/local
558: # Factoring default headers for most tests.
559: ac_includes_default="\
560: #include <stdio.h>
561: #ifdef HAVE_SYS_TYPES_H
562: # include <sys/types.h>
563: #endif
564: #ifdef HAVE_SYS_STAT_H
565: # include <sys/stat.h>
566: #endif
567: #ifdef STDC_HEADERS
568: # include <stdlib.h>
569: # include <stddef.h>
570: #else
571: # ifdef HAVE_STDLIB_H
572: # include <stdlib.h>
573: # endif
574: #endif
575: #ifdef HAVE_STRING_H
576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577: # include <memory.h>
578: # endif
579: # include <string.h>
580: #endif
581: #ifdef HAVE_STRINGS_H
582: # include <strings.h>
583: #endif
584: #ifdef HAVE_INTTYPES_H
585: # include <inttypes.h>
586: #endif
587: #ifdef HAVE_STDINT_H
588: # include <stdint.h>
589: #endif
590: #ifdef HAVE_UNISTD_H
591: # include <unistd.h>
592: #endif"
593:
594: enable_option_checking=no
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
599: DATE_FR
600: FINAL_ENCODING
601: ICONV
602: FILE
603: GNUPLOT
604: GPP
605: GSL
606: UNITS
607: READLINE
608: NCURSES
609: LIBMTMALLOC
610: GNUPLOT_COMPILATION
611: subdirs
612: EGREP
613: GREP
614: libPgSQLlib
615: libPgSQLinc
616: POSTGRESQL_SUPPORT
617: libMySQLlib
618: libMySQLinc
619: MYSQL_SUPPORT
620: DATE
621: includeX
622: libX
623: MOTIF_SUPPORT
624: DEBUG
625: EXPERIMENTAL_CODE
626: VIM_SUPPORT
627: POSTSCRIPT_SUPPORT
628: FORCE_GNUPLOT_PATH
629: GNUPLOT_SUPPORT
630: VIM
631: GNUPLOT_P
632: GV
633: GS
634: DVIPS
635: LATEX
636: TEX
637: SED
638: RANLIB
639: LN_S
640: RUNPATH
641: LIBTOOLIZE
642: PROFILAGE
643: DEBUG_CODE
644: X_EXTRA_LIBS
645: X_LIBS
646: X_PRE_LIBS
647: X_CFLAGS
648: CPP
649: XMKMF
650: ac_ct_FC
651: FCFLAGS
652: FC
653: ac_ct_F77
654: FFLAGS
655: F77
656: am__fastdepCXX_FALSE
657: am__fastdepCXX_TRUE
658: CXXDEPMODE
659: ac_ct_CXX
660: CXXFLAGS
661: CXX
662: am__fastdepCC_FALSE
663: am__fastdepCC_TRUE
664: CCDEPMODE
665: AMDEPBACKSLASH
666: AMDEP_FALSE
667: AMDEP_TRUE
668: am__quote
669: am__include
670: DEPDIR
671: OBJEXT
672: EXEEXT
673: ac_ct_CC
674: CPPFLAGS
675: LDFLAGS
676: CFLAGS
677: CC
678: am__untar
679: am__tar
680: AMTAR
681: am__leading_dot
682: SET_MAKE
683: AWK
684: mkdir_p
685: MKDIR_P
686: INSTALL_STRIP_PROGRAM
687: STRIP
688: install_sh
689: MAKEINFO
690: AUTOHEADER
691: AUTOMAKE
692: AUTOCONF
693: ACLOCAL
694: VERSION
695: PACKAGE
696: CYGPATH_W
697: am__isrc
698: INSTALL_DATA
699: INSTALL_SCRIPT
700: INSTALL_PROGRAM
701: target_os
702: target_vendor
703: target_cpu
704: target
705: host_os
706: host_vendor
707: host_cpu
708: host
709: build_os
710: build_vendor
711: build_cpu
712: build
713: target_alias
714: host_alias
715: build_alias
716: LIBS
717: ECHO_T
718: ECHO_N
719: ECHO_C
720: DEFS
721: mandir
722: localedir
723: libdir
724: psdir
725: pdfdir
726: dvidir
727: htmldir
728: infodir
729: docdir
730: oldincludedir
731: includedir
732: localstatedir
733: sharedstatedir
734: sysconfdir
735: datadir
736: datarootdir
737: libexecdir
738: sbindir
739: bindir
740: program_transform_name
741: prefix
742: exec_prefix
743: PACKAGE_URL
744: PACKAGE_BUGREPORT
745: PACKAGE_STRING
746: PACKAGE_VERSION
747: PACKAGE_TARNAME
748: PACKAGE_NAME
749: PATH_SEPARATOR
750: SHELL'
751: ac_subst_files=''
752: ac_user_opts='
753: enable_option_checking
754: enable_dependency_tracking
755: with_x
756: enable_optimization
757: enable_final_encoding
758: enable_tex
759: enable_vim
760: enable_embedded_gnuplot
761: enable_gnuplot
762: enable_motif
763: enable_experimental
764: enable_debug
765: enable_profile
766: enable_final_run_path
767: with_mysql
768: with_postgresql
769: '
770: ac_precious_vars='build_alias
771: host_alias
772: target_alias
773: CC
774: CFLAGS
775: LDFLAGS
776: LIBS
777: CPPFLAGS
778: CXX
779: CXXFLAGS
780: CCC
781: F77
782: FFLAGS
783: FC
784: FCFLAGS
785: XMKMF
786: CPP'
787: ac_subdirs_all='tools/$NCURSES
788: tools/$READLINE
789: tools/$UNITS
790: tools/$GSL
791: tools/$GPP
792: tools/$FILE
793: tools/$ICONV
794: tools/$GNUPLOT'
795:
796: # Initialize some variables set by options.
797: ac_init_help=
798: ac_init_version=false
799: ac_unrecognized_opts=
800: ac_unrecognized_sep=
801: # The variables have the same names as the options, with
802: # dashes changed to underlines.
803: cache_file=/dev/null
804: exec_prefix=NONE
805: no_create=
806: no_recursion=
807: prefix=NONE
808: program_prefix=NONE
809: program_suffix=NONE
810: program_transform_name=s,x,x,
811: silent=
812: site=
813: srcdir=
814: verbose=
815: x_includes=NONE
816: x_libraries=NONE
817:
818: # Installation directory options.
819: # These are left unexpanded so users can "make install exec_prefix=/foo"
820: # and all the variables that are supposed to be based on exec_prefix
821: # by default will actually change.
822: # Use braces instead of parens because sh, perl, etc. also accept them.
823: # (The list follows the same order as the GNU Coding Standards.)
824: bindir='${exec_prefix}/bin'
825: sbindir='${exec_prefix}/sbin'
826: libexecdir='${exec_prefix}/libexec'
827: datarootdir='${prefix}/share'
828: datadir='${datarootdir}'
829: sysconfdir='${prefix}/etc'
830: sharedstatedir='${prefix}/com'
831: localstatedir='${prefix}/var'
832: includedir='${prefix}/include'
833: oldincludedir='/usr/include'
834: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835: infodir='${datarootdir}/info'
836: htmldir='${docdir}'
837: dvidir='${docdir}'
838: pdfdir='${docdir}'
839: psdir='${docdir}'
840: libdir='${exec_prefix}/lib'
841: localedir='${datarootdir}/locale'
842: mandir='${datarootdir}/man'
843:
844: ac_prev=
845: ac_dashdash=
846: for ac_option
847: do
848: # If the previous option needs an argument, assign it.
849: if test -n "$ac_prev"; then
850: eval $ac_prev=\$ac_option
851: ac_prev=
852: continue
853: fi
854:
855: case $ac_option in
856: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857: *) ac_optarg=yes ;;
858: esac
859:
860: # Accept the important Cygnus configure options, so we can diagnose typos.
861:
862: case $ac_dashdash$ac_option in
863: --)
864: ac_dashdash=yes ;;
865:
866: -bindir | --bindir | --bindi | --bind | --bin | --bi)
867: ac_prev=bindir ;;
868: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869: bindir=$ac_optarg ;;
870:
871: -build | --build | --buil | --bui | --bu)
872: ac_prev=build_alias ;;
873: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874: build_alias=$ac_optarg ;;
875:
876: -cache-file | --cache-file | --cache-fil | --cache-fi \
877: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878: ac_prev=cache_file ;;
879: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881: cache_file=$ac_optarg ;;
882:
883: --config-cache | -C)
884: cache_file=config.cache ;;
885:
886: -datadir | --datadir | --datadi | --datad)
887: ac_prev=datadir ;;
888: -datadir=* | --datadir=* | --datadi=* | --datad=*)
889: datadir=$ac_optarg ;;
890:
891: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892: | --dataroo | --dataro | --datar)
893: ac_prev=datarootdir ;;
894: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896: datarootdir=$ac_optarg ;;
897:
898: -disable-* | --disable-*)
899: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900: # Reject names that are not valid shell variable names.
901: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902: as_fn_error "invalid feature name: $ac_useropt"
903: ac_useropt_orig=$ac_useropt
904: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905: case $ac_user_opts in
906: *"
907: "enable_$ac_useropt"
908: "*) ;;
909: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910: ac_unrecognized_sep=', ';;
911: esac
912: eval enable_$ac_useropt=no ;;
913:
914: -docdir | --docdir | --docdi | --doc | --do)
915: ac_prev=docdir ;;
916: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917: docdir=$ac_optarg ;;
918:
919: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920: ac_prev=dvidir ;;
921: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922: dvidir=$ac_optarg ;;
923:
924: -enable-* | --enable-*)
925: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926: # Reject names that are not valid shell variable names.
927: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928: as_fn_error "invalid feature name: $ac_useropt"
929: ac_useropt_orig=$ac_useropt
930: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931: case $ac_user_opts in
932: *"
933: "enable_$ac_useropt"
934: "*) ;;
935: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936: ac_unrecognized_sep=', ';;
937: esac
938: eval enable_$ac_useropt=\$ac_optarg ;;
939:
940: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942: | --exec | --exe | --ex)
943: ac_prev=exec_prefix ;;
944: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946: | --exec=* | --exe=* | --ex=*)
947: exec_prefix=$ac_optarg ;;
948:
949: -gas | --gas | --ga | --g)
950: # Obsolete; use --with-gas.
951: with_gas=yes ;;
952:
953: -help | --help | --hel | --he | -h)
954: ac_init_help=long ;;
955: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956: ac_init_help=recursive ;;
957: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958: ac_init_help=short ;;
959:
960: -host | --host | --hos | --ho)
961: ac_prev=host_alias ;;
962: -host=* | --host=* | --hos=* | --ho=*)
963: host_alias=$ac_optarg ;;
964:
965: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966: ac_prev=htmldir ;;
967: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968: | --ht=*)
969: htmldir=$ac_optarg ;;
970:
971: -includedir | --includedir | --includedi | --included | --include \
972: | --includ | --inclu | --incl | --inc)
973: ac_prev=includedir ;;
974: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975: | --includ=* | --inclu=* | --incl=* | --inc=*)
976: includedir=$ac_optarg ;;
977:
978: -infodir | --infodir | --infodi | --infod | --info | --inf)
979: ac_prev=infodir ;;
980: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981: infodir=$ac_optarg ;;
982:
983: -libdir | --libdir | --libdi | --libd)
984: ac_prev=libdir ;;
985: -libdir=* | --libdir=* | --libdi=* | --libd=*)
986: libdir=$ac_optarg ;;
987:
988: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989: | --libexe | --libex | --libe)
990: ac_prev=libexecdir ;;
991: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992: | --libexe=* | --libex=* | --libe=*)
993: libexecdir=$ac_optarg ;;
994:
995: -localedir | --localedir | --localedi | --localed | --locale)
996: ac_prev=localedir ;;
997: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998: localedir=$ac_optarg ;;
999:
1000: -localstatedir | --localstatedir | --localstatedi | --localstated \
1001: | --localstate | --localstat | --localsta | --localst | --locals)
1002: ac_prev=localstatedir ;;
1003: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005: localstatedir=$ac_optarg ;;
1006:
1007: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008: ac_prev=mandir ;;
1009: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010: mandir=$ac_optarg ;;
1011:
1012: -nfp | --nfp | --nf)
1013: # Obsolete; use --without-fp.
1014: with_fp=no ;;
1015:
1016: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017: | --no-cr | --no-c | -n)
1018: no_create=yes ;;
1019:
1020: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022: no_recursion=yes ;;
1023:
1024: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026: | --oldin | --oldi | --old | --ol | --o)
1027: ac_prev=oldincludedir ;;
1028: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031: oldincludedir=$ac_optarg ;;
1032:
1033: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034: ac_prev=prefix ;;
1035: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036: prefix=$ac_optarg ;;
1037:
1038: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039: | --program-pre | --program-pr | --program-p)
1040: ac_prev=program_prefix ;;
1041: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043: program_prefix=$ac_optarg ;;
1044:
1045: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046: | --program-suf | --program-su | --program-s)
1047: ac_prev=program_suffix ;;
1048: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050: program_suffix=$ac_optarg ;;
1051:
1052: -program-transform-name | --program-transform-name \
1053: | --program-transform-nam | --program-transform-na \
1054: | --program-transform-n | --program-transform- \
1055: | --program-transform | --program-transfor \
1056: | --program-transfo | --program-transf \
1057: | --program-trans | --program-tran \
1058: | --progr-tra | --program-tr | --program-t)
1059: ac_prev=program_transform_name ;;
1060: -program-transform-name=* | --program-transform-name=* \
1061: | --program-transform-nam=* | --program-transform-na=* \
1062: | --program-transform-n=* | --program-transform-=* \
1063: | --program-transform=* | --program-transfor=* \
1064: | --program-transfo=* | --program-transf=* \
1065: | --program-trans=* | --program-tran=* \
1066: | --progr-tra=* | --program-tr=* | --program-t=*)
1067: program_transform_name=$ac_optarg ;;
1068:
1069: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070: ac_prev=pdfdir ;;
1071: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072: pdfdir=$ac_optarg ;;
1073:
1074: -psdir | --psdir | --psdi | --psd | --ps)
1075: ac_prev=psdir ;;
1076: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077: psdir=$ac_optarg ;;
1078:
1079: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080: | -silent | --silent | --silen | --sile | --sil)
1081: silent=yes ;;
1082:
1083: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084: ac_prev=sbindir ;;
1085: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086: | --sbi=* | --sb=*)
1087: sbindir=$ac_optarg ;;
1088:
1089: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091: | --sharedst | --shareds | --shared | --share | --shar \
1092: | --sha | --sh)
1093: ac_prev=sharedstatedir ;;
1094: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097: | --sha=* | --sh=*)
1098: sharedstatedir=$ac_optarg ;;
1099:
1100: -site | --site | --sit)
1101: ac_prev=site ;;
1102: -site=* | --site=* | --sit=*)
1103: site=$ac_optarg ;;
1104:
1105: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106: ac_prev=srcdir ;;
1107: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108: srcdir=$ac_optarg ;;
1109:
1110: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111: | --syscon | --sysco | --sysc | --sys | --sy)
1112: ac_prev=sysconfdir ;;
1113: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115: sysconfdir=$ac_optarg ;;
1116:
1117: -target | --target | --targe | --targ | --tar | --ta | --t)
1118: ac_prev=target_alias ;;
1119: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120: target_alias=$ac_optarg ;;
1121:
1122: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123: verbose=yes ;;
1124:
1125: -version | --version | --versio | --versi | --vers | -V)
1126: ac_init_version=: ;;
1127:
1128: -with-* | --with-*)
1129: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130: # Reject names that are not valid shell variable names.
1131: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132: as_fn_error "invalid package name: $ac_useropt"
1133: ac_useropt_orig=$ac_useropt
1134: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135: case $ac_user_opts in
1136: *"
1137: "with_$ac_useropt"
1138: "*) ;;
1139: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140: ac_unrecognized_sep=', ';;
1141: esac
1142: eval with_$ac_useropt=\$ac_optarg ;;
1143:
1144: -without-* | --without-*)
1145: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146: # Reject names that are not valid shell variable names.
1147: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148: as_fn_error "invalid package name: $ac_useropt"
1149: ac_useropt_orig=$ac_useropt
1150: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151: case $ac_user_opts in
1152: *"
1153: "with_$ac_useropt"
1154: "*) ;;
1155: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156: ac_unrecognized_sep=', ';;
1157: esac
1158: eval with_$ac_useropt=no ;;
1159:
1160: --x)
1161: # Obsolete; use --with-x.
1162: with_x=yes ;;
1163:
1164: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165: | --x-incl | --x-inc | --x-in | --x-i)
1166: ac_prev=x_includes ;;
1167: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169: x_includes=$ac_optarg ;;
1170:
1171: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173: ac_prev=x_libraries ;;
1174: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176: x_libraries=$ac_optarg ;;
1177:
1178: -*) as_fn_error "unrecognized option: \`$ac_option'
1179: Try \`$0 --help' for more information."
1180: ;;
1181:
1182: *=*)
1183: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184: # Reject names that are not valid shell variable names.
1185: case $ac_envvar in #(
1186: '' | [0-9]* | *[!_$as_cr_alnum]* )
1187: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1188: esac
1189: eval $ac_envvar=\$ac_optarg
1190: export $ac_envvar ;;
1191:
1192: *)
1193: # FIXME: should be removed in autoconf 3.0.
1194: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198: ;;
1199:
1200: esac
1201: done
1202:
1203: if test -n "$ac_prev"; then
1204: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205: as_fn_error "missing argument to $ac_option"
1206: fi
1207:
1208: if test -n "$ac_unrecognized_opts"; then
1209: case $enable_option_checking in
1210: no) ;;
1211: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1212: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213: esac
1214: fi
1215:
1216: # Check all directory arguments for consistency.
1217: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218: datadir sysconfdir sharedstatedir localstatedir includedir \
1219: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220: libdir localedir mandir
1221: do
1222: eval ac_val=\$$ac_var
1223: # Remove trailing slashes.
1224: case $ac_val in
1225: */ )
1226: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227: eval $ac_var=\$ac_val;;
1228: esac
1229: # Be sure to have absolute directory names.
1230: case $ac_val in
1231: [\\/$]* | ?:[\\/]* ) continue;;
1232: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233: esac
1234: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1235: done
1236:
1237: # There might be people who depend on the old broken behavior: `$host'
1238: # used to hold the argument of --host etc.
1239: # FIXME: To remove some day.
1240: build=$build_alias
1241: host=$host_alias
1242: target=$target_alias
1243:
1244: # FIXME: To remove some day.
1245: if test "x$host_alias" != x; then
1246: if test "x$build_alias" = x; then
1247: cross_compiling=maybe
1248: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1249: If a cross compiler is detected then cross compile mode will be used." >&2
1250: elif test "x$build_alias" != "x$host_alias"; then
1251: cross_compiling=yes
1252: fi
1253: fi
1254:
1255: ac_tool_prefix=
1256: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257:
1258: test "$silent" = yes && exec 6>/dev/null
1259:
1260:
1261: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262: ac_ls_di=`ls -di .` &&
1263: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264: as_fn_error "working directory cannot be determined"
1265: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266: as_fn_error "pwd does not report name of working directory"
1267:
1268:
1269: # Find the source files, if location was not specified.
1270: if test -z "$srcdir"; then
1271: ac_srcdir_defaulted=yes
1272: # Try the directory containing this script, then the parent directory.
1273: ac_confdir=`$as_dirname -- "$as_myself" ||
1274: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275: X"$as_myself" : 'X\(//\)[^/]' \| \
1276: X"$as_myself" : 'X\(//\)$' \| \
1277: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278: $as_echo X"$as_myself" |
1279: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280: s//\1/
1281: q
1282: }
1283: /^X\(\/\/\)[^/].*/{
1284: s//\1/
1285: q
1286: }
1287: /^X\(\/\/\)$/{
1288: s//\1/
1289: q
1290: }
1291: /^X\(\/\).*/{
1292: s//\1/
1293: q
1294: }
1295: s/.*/./; q'`
1296: srcdir=$ac_confdir
1297: if test ! -r "$srcdir/$ac_unique_file"; then
1298: srcdir=..
1299: fi
1300: else
1301: ac_srcdir_defaulted=no
1302: fi
1303: if test ! -r "$srcdir/$ac_unique_file"; then
1304: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1306: fi
1307: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308: ac_abs_confdir=`(
1309: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1310: pwd)`
1311: # When building in place, set srcdir=.
1312: if test "$ac_abs_confdir" = "$ac_pwd"; then
1313: srcdir=.
1314: fi
1315: # Remove unnecessary trailing slashes from srcdir.
1316: # Double slashes in file names in object file debugging info
1317: # mess up M-x gdb in Emacs.
1318: case $srcdir in
1319: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320: esac
1321: for ac_var in $ac_precious_vars; do
1322: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323: eval ac_env_${ac_var}_value=\$${ac_var}
1324: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326: done
1327:
1328: #
1329: # Report the --help message.
1330: #
1331: if test "$ac_init_help" = "long"; then
1332: # Omit some internal or obsolete options to make the list less imposing.
1333: # This message is too long to be a string in the A/UX 3.1 sh.
1334: cat <<_ACEOF
1.2 bertrand 1335: \`configure' configures rpl 4.0.10 to adapt to many kinds of systems.
1.1 bertrand 1336:
1337: Usage: $0 [OPTION]... [VAR=VALUE]...
1338:
1339: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340: VAR=VALUE. See below for descriptions of some of the useful variables.
1341:
1342: Defaults for the options are specified in brackets.
1343:
1344: Configuration:
1345: -h, --help display this help and exit
1346: --help=short display options specific to this package
1347: --help=recursive display the short help of all the included packages
1348: -V, --version display version information and exit
1349: -q, --quiet, --silent do not print \`checking...' messages
1350: --cache-file=FILE cache test results in FILE [disabled]
1351: -C, --config-cache alias for \`--cache-file=config.cache'
1352: -n, --no-create do not create output files
1353: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354:
1355: Installation directories:
1356: --prefix=PREFIX install architecture-independent files in PREFIX
1357: [$ac_default_prefix]
1358: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359: [PREFIX]
1360:
1361: By default, \`make install' will install all the files in
1362: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364: for instance \`--prefix=\$HOME'.
1365:
1366: For better control, use the options below.
1367:
1368: Fine tuning of the installation directories:
1369: --bindir=DIR user executables [EPREFIX/bin]
1370: --sbindir=DIR system admin executables [EPREFIX/sbin]
1371: --libexecdir=DIR program executables [EPREFIX/libexec]
1372: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375: --libdir=DIR object code libraries [EPREFIX/lib]
1376: --includedir=DIR C header files [PREFIX/include]
1377: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380: --infodir=DIR info documentation [DATAROOTDIR/info]
1381: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382: --mandir=DIR man documentation [DATAROOTDIR/man]
1383: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1384: --htmldir=DIR html documentation [DOCDIR]
1385: --dvidir=DIR dvi documentation [DOCDIR]
1386: --pdfdir=DIR pdf documentation [DOCDIR]
1387: --psdir=DIR ps documentation [DOCDIR]
1388: _ACEOF
1389:
1390: cat <<\_ACEOF
1391:
1392: Program names:
1393: --program-prefix=PREFIX prepend PREFIX to installed program names
1394: --program-suffix=SUFFIX append SUFFIX to installed program names
1395: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396:
1397: X features:
1398: --x-includes=DIR X include files are in DIR
1399: --x-libraries=DIR X library files are in DIR
1400:
1401: System types:
1402: --build=BUILD configure for building on BUILD [guessed]
1403: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404: --target=TARGET configure for building compilers for TARGET [HOST]
1405: _ACEOF
1406: fi
1407:
1408: if test -n "$ac_init_help"; then
1409: case $ac_init_help in
1.2 bertrand 1410: short | recursive ) echo "Configuration of rpl 4.0.10:";;
1.1 bertrand 1411: esac
1412: cat <<\_ACEOF
1413:
1414: Optional Features:
1415: --disable-option-checking ignore unrecognized --enable/--with options
1416: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418: --disable-dependency-tracking speeds up one-time build
1419: --enable-dependency-tracking do not reject slow dependency extractors
1420: --enable-optimization set compiler flags [default=environment variables -O3]
1421: --enable-final-encoding force final encoding [default=guessed]
1422: --enable-tex provide the TeX support [default=guessed]
1423: --enable-vim provide the vim support [default=guessed]
1424: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1425: --enable-gnuplot provide the GnuPlot support [default=guessed]
1426: --enable-motif provide the Motif support [default=guessed]
1427: --enable-experimental enable experimental code [default=no]
1428: --enable-debug enable debug code [default=no]
1429: --enable-profile enable profile code [default=no]
1430: --enable-final-run-path=PATH enable another final run path than PREFIX
1431:
1432: Optional Packages:
1433: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435: --with-x use the X Window System
1436: --with-mysql=PATH specify directory for installed mysql
1437: --with-postgresql=PATH specify directory for installed postgresql
1438:
1439: Some influential environment variables:
1440: CC C compiler command
1441: CFLAGS C compiler flags
1442: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443: nonstandard directory <lib dir>
1444: LIBS libraries to pass to the linker, e.g. -l<library>
1445: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446: you have headers in a nonstandard directory <include dir>
1447: CXX C++ compiler command
1448: CXXFLAGS C++ compiler flags
1449: F77 Fortran 77 compiler command
1450: FFLAGS Fortran 77 compiler flags
1451: FC Fortran compiler command
1452: FCFLAGS Fortran compiler flags
1453: XMKMF Path to xmkmf, Makefile generator for X Window System
1454: CPP C preprocessor
1455:
1456: Use these variables to override the choices made by `configure' or to help
1457: it to find libraries and programs with nonstandard names/locations.
1458:
1459: Report bugs to the package provider.
1460: _ACEOF
1461: ac_status=$?
1462: fi
1463:
1464: if test "$ac_init_help" = "recursive"; then
1465: # If there are subdirs, report their specific --help.
1466: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467: test -d "$ac_dir" ||
1468: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469: continue
1470: ac_builddir=.
1471:
1472: case "$ac_dir" in
1473: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474: *)
1475: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476: # A ".." for each directory in $ac_dir_suffix.
1477: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478: case $ac_top_builddir_sub in
1479: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481: esac ;;
1482: esac
1483: ac_abs_top_builddir=$ac_pwd
1484: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485: # for backward compatibility:
1486: ac_top_builddir=$ac_top_build_prefix
1487:
1488: case $srcdir in
1489: .) # We are building in place.
1490: ac_srcdir=.
1491: ac_top_srcdir=$ac_top_builddir_sub
1492: ac_abs_top_srcdir=$ac_pwd ;;
1493: [\\/]* | ?:[\\/]* ) # Absolute name.
1494: ac_srcdir=$srcdir$ac_dir_suffix;
1495: ac_top_srcdir=$srcdir
1496: ac_abs_top_srcdir=$srcdir ;;
1497: *) # Relative name.
1498: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499: ac_top_srcdir=$ac_top_build_prefix$srcdir
1500: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501: esac
1502: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503:
1504: cd "$ac_dir" || { ac_status=$?; continue; }
1505: # Check for guested configure.
1506: if test -f "$ac_srcdir/configure.gnu"; then
1507: echo &&
1508: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509: elif test -f "$ac_srcdir/configure"; then
1510: echo &&
1511: $SHELL "$ac_srcdir/configure" --help=recursive
1512: else
1513: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514: fi || ac_status=$?
1515: cd "$ac_pwd" || { ac_status=$?; break; }
1516: done
1517: fi
1518:
1519: test -n "$ac_init_help" && exit $ac_status
1520: if $ac_init_version; then
1521: cat <<\_ACEOF
1.2 bertrand 1522: rpl configure 4.0.10
1.1 bertrand 1523: generated by GNU Autoconf 2.65
1524:
1525: Copyright (C) 2009 Free Software Foundation, Inc.
1526: This configure script is free software; the Free Software Foundation
1527: gives unlimited permission to copy, distribute and modify it.
1528: _ACEOF
1529: exit
1530: fi
1531:
1532: ## ------------------------ ##
1533: ## Autoconf initialization. ##
1534: ## ------------------------ ##
1535:
1536: # ac_fn_c_try_compile LINENO
1537: # --------------------------
1538: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539: ac_fn_c_try_compile ()
1540: {
1541: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542: rm -f conftest.$ac_objext
1543: if { { ac_try="$ac_compile"
1544: case "(($ac_try" in
1545: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546: *) ac_try_echo=$ac_try;;
1547: esac
1548: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549: $as_echo "$ac_try_echo"; } >&5
1550: (eval "$ac_compile") 2>conftest.err
1551: ac_status=$?
1552: if test -s conftest.err; then
1553: grep -v '^ *+' conftest.err >conftest.er1
1554: cat conftest.er1 >&5
1555: mv -f conftest.er1 conftest.err
1556: fi
1557: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558: test $ac_status = 0; } && {
1559: test -z "$ac_c_werror_flag" ||
1560: test ! -s conftest.err
1561: } && test -s conftest.$ac_objext; then :
1562: ac_retval=0
1563: else
1564: $as_echo "$as_me: failed program was:" >&5
1565: sed 's/^/| /' conftest.$ac_ext >&5
1566:
1567: ac_retval=1
1568: fi
1569: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570: as_fn_set_status $ac_retval
1571:
1572: } # ac_fn_c_try_compile
1573:
1574: # ac_fn_cxx_try_compile LINENO
1575: # ----------------------------
1576: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577: ac_fn_cxx_try_compile ()
1578: {
1579: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580: rm -f conftest.$ac_objext
1581: if { { ac_try="$ac_compile"
1582: case "(($ac_try" in
1583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584: *) ac_try_echo=$ac_try;;
1585: esac
1586: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587: $as_echo "$ac_try_echo"; } >&5
1588: (eval "$ac_compile") 2>conftest.err
1589: ac_status=$?
1590: if test -s conftest.err; then
1591: grep -v '^ *+' conftest.err >conftest.er1
1592: cat conftest.er1 >&5
1593: mv -f conftest.er1 conftest.err
1594: fi
1595: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596: test $ac_status = 0; } && {
1597: test -z "$ac_cxx_werror_flag" ||
1598: test ! -s conftest.err
1599: } && test -s conftest.$ac_objext; then :
1600: ac_retval=0
1601: else
1602: $as_echo "$as_me: failed program was:" >&5
1603: sed 's/^/| /' conftest.$ac_ext >&5
1604:
1605: ac_retval=1
1606: fi
1607: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608: as_fn_set_status $ac_retval
1609:
1610: } # ac_fn_cxx_try_compile
1611:
1612: # ac_fn_f77_try_compile LINENO
1613: # ----------------------------
1614: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615: ac_fn_f77_try_compile ()
1616: {
1617: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618: rm -f conftest.$ac_objext
1619: if { { ac_try="$ac_compile"
1620: case "(($ac_try" in
1621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622: *) ac_try_echo=$ac_try;;
1623: esac
1624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625: $as_echo "$ac_try_echo"; } >&5
1626: (eval "$ac_compile") 2>conftest.err
1627: ac_status=$?
1628: if test -s conftest.err; then
1629: grep -v '^ *+' conftest.err >conftest.er1
1630: cat conftest.er1 >&5
1631: mv -f conftest.er1 conftest.err
1632: fi
1633: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634: test $ac_status = 0; } && {
1635: test -z "$ac_f77_werror_flag" ||
1636: test ! -s conftest.err
1637: } && test -s conftest.$ac_objext; then :
1638: ac_retval=0
1639: else
1640: $as_echo "$as_me: failed program was:" >&5
1641: sed 's/^/| /' conftest.$ac_ext >&5
1642:
1643: ac_retval=1
1644: fi
1645: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646: as_fn_set_status $ac_retval
1647:
1648: } # ac_fn_f77_try_compile
1649:
1650: # ac_fn_fc_try_compile LINENO
1651: # ---------------------------
1652: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653: ac_fn_fc_try_compile ()
1654: {
1655: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656: rm -f conftest.$ac_objext
1657: if { { ac_try="$ac_compile"
1658: case "(($ac_try" in
1659: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660: *) ac_try_echo=$ac_try;;
1661: esac
1662: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663: $as_echo "$ac_try_echo"; } >&5
1664: (eval "$ac_compile") 2>conftest.err
1665: ac_status=$?
1666: if test -s conftest.err; then
1667: grep -v '^ *+' conftest.err >conftest.er1
1668: cat conftest.er1 >&5
1669: mv -f conftest.er1 conftest.err
1670: fi
1671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672: test $ac_status = 0; } && {
1673: test -z "$ac_fc_werror_flag" ||
1674: test ! -s conftest.err
1675: } && test -s conftest.$ac_objext; then :
1676: ac_retval=0
1677: else
1678: $as_echo "$as_me: failed program was:" >&5
1679: sed 's/^/| /' conftest.$ac_ext >&5
1680:
1681: ac_retval=1
1682: fi
1683: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684: as_fn_set_status $ac_retval
1685:
1686: } # ac_fn_fc_try_compile
1687:
1688: # ac_fn_c_try_cpp LINENO
1689: # ----------------------
1690: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691: ac_fn_c_try_cpp ()
1692: {
1693: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694: if { { ac_try="$ac_cpp conftest.$ac_ext"
1695: case "(($ac_try" in
1696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697: *) ac_try_echo=$ac_try;;
1698: esac
1699: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700: $as_echo "$ac_try_echo"; } >&5
1701: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702: ac_status=$?
1703: if test -s conftest.err; then
1704: grep -v '^ *+' conftest.err >conftest.er1
1705: cat conftest.er1 >&5
1706: mv -f conftest.er1 conftest.err
1707: fi
1708: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709: test $ac_status = 0; } >/dev/null && {
1710: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711: test ! -s conftest.err
1712: }; then :
1713: ac_retval=0
1714: else
1715: $as_echo "$as_me: failed program was:" >&5
1716: sed 's/^/| /' conftest.$ac_ext >&5
1717:
1718: ac_retval=1
1719: fi
1720: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721: as_fn_set_status $ac_retval
1722:
1723: } # ac_fn_c_try_cpp
1724:
1725: # ac_fn_c_try_link LINENO
1726: # -----------------------
1727: # Try to link conftest.$ac_ext, and return whether this succeeded.
1728: ac_fn_c_try_link ()
1729: {
1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731: rm -f conftest.$ac_objext conftest$ac_exeext
1732: if { { ac_try="$ac_link"
1733: case "(($ac_try" in
1734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735: *) ac_try_echo=$ac_try;;
1736: esac
1737: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738: $as_echo "$ac_try_echo"; } >&5
1739: (eval "$ac_link") 2>conftest.err
1740: ac_status=$?
1741: if test -s conftest.err; then
1742: grep -v '^ *+' conftest.err >conftest.er1
1743: cat conftest.er1 >&5
1744: mv -f conftest.er1 conftest.err
1745: fi
1746: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747: test $ac_status = 0; } && {
1748: test -z "$ac_c_werror_flag" ||
1749: test ! -s conftest.err
1750: } && test -s conftest$ac_exeext && {
1751: test "$cross_compiling" = yes ||
1752: $as_test_x conftest$ac_exeext
1753: }; then :
1754: ac_retval=0
1755: else
1756: $as_echo "$as_me: failed program was:" >&5
1757: sed 's/^/| /' conftest.$ac_ext >&5
1758:
1759: ac_retval=1
1760: fi
1761: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763: # interfere with the next link command; also delete a directory that is
1764: # left behind by Apple's compiler. We do this before executing the actions.
1765: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767: as_fn_set_status $ac_retval
1768:
1769: } # ac_fn_c_try_link
1770:
1771: # ac_fn_c_check_func LINENO FUNC VAR
1772: # ----------------------------------
1773: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774: ac_fn_c_check_func ()
1775: {
1776: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778: $as_echo_n "checking for $2... " >&6; }
1779: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780: $as_echo_n "(cached) " >&6
1781: else
1782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783: /* end confdefs.h. */
1784: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786: #define $2 innocuous_$2
1787:
1788: /* System header to define __stub macros and hopefully few prototypes,
1789: which can conflict with char $2 (); below.
1790: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791: <limits.h> exists even on freestanding compilers. */
1792:
1793: #ifdef __STDC__
1794: # include <limits.h>
1795: #else
1796: # include <assert.h>
1797: #endif
1798:
1799: #undef $2
1800:
1801: /* Override any GCC internal prototype to avoid an error.
1802: Use char because int might match the return type of a GCC
1803: builtin and then its argument prototype would still apply. */
1804: #ifdef __cplusplus
1805: extern "C"
1806: #endif
1807: char $2 ();
1808: /* The GNU C library defines this for functions which it implements
1809: to always fail with ENOSYS. Some functions are actually named
1810: something starting with __ and the normal name is an alias. */
1811: #if defined __stub_$2 || defined __stub___$2
1812: choke me
1813: #endif
1814:
1815: int
1816: main ()
1817: {
1818: return $2 ();
1819: ;
1820: return 0;
1821: }
1822: _ACEOF
1823: if ac_fn_c_try_link "$LINENO"; then :
1824: eval "$3=yes"
1825: else
1826: eval "$3=no"
1827: fi
1828: rm -f core conftest.err conftest.$ac_objext \
1829: conftest$ac_exeext conftest.$ac_ext
1830: fi
1831: eval ac_res=\$$3
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833: $as_echo "$ac_res" >&6; }
1834: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835:
1836: } # ac_fn_c_check_func
1837:
1838: # ac_fn_c_try_run LINENO
1839: # ----------------------
1840: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841: # that executables *can* be run.
1842: ac_fn_c_try_run ()
1843: {
1844: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845: if { { ac_try="$ac_link"
1846: case "(($ac_try" in
1847: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848: *) ac_try_echo=$ac_try;;
1849: esac
1850: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851: $as_echo "$ac_try_echo"; } >&5
1852: (eval "$ac_link") 2>&5
1853: ac_status=$?
1854: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856: { { case "(($ac_try" in
1857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858: *) ac_try_echo=$ac_try;;
1859: esac
1860: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861: $as_echo "$ac_try_echo"; } >&5
1862: (eval "$ac_try") 2>&5
1863: ac_status=$?
1864: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865: test $ac_status = 0; }; }; then :
1866: ac_retval=0
1867: else
1868: $as_echo "$as_me: program exited with status $ac_status" >&5
1869: $as_echo "$as_me: failed program was:" >&5
1870: sed 's/^/| /' conftest.$ac_ext >&5
1871:
1872: ac_retval=$ac_status
1873: fi
1874: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876: as_fn_set_status $ac_retval
1877:
1878: } # ac_fn_c_try_run
1879:
1880: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881: # --------------------------------------------
1882: # Tries to find the compile-time value of EXPR in a program that includes
1883: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884: # computed
1885: ac_fn_c_compute_int ()
1886: {
1887: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888: if test "$cross_compiling" = yes; then
1889: # Depending upon the size, compute the lo and hi bounds.
1890: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891: /* end confdefs.h. */
1892: $4
1893: int
1894: main ()
1895: {
1896: static int test_array [1 - 2 * !(($2) >= 0)];
1897: test_array [0] = 0
1898:
1899: ;
1900: return 0;
1901: }
1902: _ACEOF
1903: if ac_fn_c_try_compile "$LINENO"; then :
1904: ac_lo=0 ac_mid=0
1905: while :; do
1906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907: /* end confdefs.h. */
1908: $4
1909: int
1910: main ()
1911: {
1912: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913: test_array [0] = 0
1914:
1915: ;
1916: return 0;
1917: }
1918: _ACEOF
1919: if ac_fn_c_try_compile "$LINENO"; then :
1920: ac_hi=$ac_mid; break
1921: else
1922: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923: if test $ac_lo -le $ac_mid; then
1924: ac_lo= ac_hi=
1925: break
1926: fi
1927: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1928: fi
1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930: done
1931: else
1932: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933: /* end confdefs.h. */
1934: $4
1935: int
1936: main ()
1937: {
1938: static int test_array [1 - 2 * !(($2) < 0)];
1939: test_array [0] = 0
1940:
1941: ;
1942: return 0;
1943: }
1944: _ACEOF
1945: if ac_fn_c_try_compile "$LINENO"; then :
1946: ac_hi=-1 ac_mid=-1
1947: while :; do
1948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949: /* end confdefs.h. */
1950: $4
1951: int
1952: main ()
1953: {
1954: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955: test_array [0] = 0
1956:
1957: ;
1958: return 0;
1959: }
1960: _ACEOF
1961: if ac_fn_c_try_compile "$LINENO"; then :
1962: ac_lo=$ac_mid; break
1963: else
1964: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965: if test $ac_mid -le $ac_hi; then
1966: ac_lo= ac_hi=
1967: break
1968: fi
1969: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1970: fi
1971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972: done
1973: else
1974: ac_lo= ac_hi=
1975: fi
1976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977: fi
1978: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979: # Binary search between lo and hi bounds.
1980: while test "x$ac_lo" != "x$ac_hi"; do
1981: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983: /* end confdefs.h. */
1984: $4
1985: int
1986: main ()
1987: {
1988: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989: test_array [0] = 0
1990:
1991: ;
1992: return 0;
1993: }
1994: _ACEOF
1995: if ac_fn_c_try_compile "$LINENO"; then :
1996: ac_hi=$ac_mid
1997: else
1998: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1999: fi
2000: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001: done
2002: case $ac_lo in #((
2003: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004: '') ac_retval=1 ;;
2005: esac
2006: else
2007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008: /* end confdefs.h. */
2009: $4
2010: static long int longval () { return $2; }
2011: static unsigned long int ulongval () { return $2; }
2012: #include <stdio.h>
2013: #include <stdlib.h>
2014: int
2015: main ()
2016: {
2017:
2018: FILE *f = fopen ("conftest.val", "w");
2019: if (! f)
2020: return 1;
2021: if (($2) < 0)
2022: {
2023: long int i = longval ();
2024: if (i != ($2))
2025: return 1;
2026: fprintf (f, "%ld", i);
2027: }
2028: else
2029: {
2030: unsigned long int i = ulongval ();
2031: if (i != ($2))
2032: return 1;
2033: fprintf (f, "%lu", i);
2034: }
2035: /* Do not output a trailing newline, as this causes \r\n confusion
2036: on some platforms. */
2037: return ferror (f) || fclose (f) != 0;
2038:
2039: ;
2040: return 0;
2041: }
2042: _ACEOF
2043: if ac_fn_c_try_run "$LINENO"; then :
2044: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045: else
2046: ac_retval=1
2047: fi
2048: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049: conftest.$ac_objext conftest.beam conftest.$ac_ext
2050: rm -f conftest.val
2051:
2052: fi
2053: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054: as_fn_set_status $ac_retval
2055:
2056: } # ac_fn_c_compute_int
2057:
2058: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2059: # -------------------------------------------------------
2060: # Tests whether HEADER exists and can be compiled using the include files in
2061: # INCLUDES, setting the cache variable VAR accordingly.
2062: ac_fn_c_check_header_compile ()
2063: {
2064: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066: $as_echo_n "checking for $2... " >&6; }
2067: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068: $as_echo_n "(cached) " >&6
2069: else
2070: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071: /* end confdefs.h. */
2072: $4
2073: #include <$2>
2074: _ACEOF
2075: if ac_fn_c_try_compile "$LINENO"; then :
2076: eval "$3=yes"
2077: else
2078: eval "$3=no"
2079: fi
2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081: fi
2082: eval ac_res=\$$3
2083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084: $as_echo "$ac_res" >&6; }
2085: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086:
2087: } # ac_fn_c_check_header_compile
2088:
2089: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2090: # -------------------------------------------------------
2091: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2092: # the include files in INCLUDES and setting the cache variable VAR
2093: # accordingly.
2094: ac_fn_c_check_header_mongrel ()
2095: {
2096: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099: $as_echo_n "checking for $2... " >&6; }
2100: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101: $as_echo_n "(cached) " >&6
2102: fi
2103: eval ac_res=\$$3
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105: $as_echo "$ac_res" >&6; }
2106: else
2107: # Is the header compilable?
2108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2109: $as_echo_n "checking $2 usability... " >&6; }
2110: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111: /* end confdefs.h. */
2112: $4
2113: #include <$2>
2114: _ACEOF
2115: if ac_fn_c_try_compile "$LINENO"; then :
2116: ac_header_compiler=yes
2117: else
2118: ac_header_compiler=no
2119: fi
2120: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2122: $as_echo "$ac_header_compiler" >&6; }
2123:
2124: # Is the header present?
2125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2126: $as_echo_n "checking $2 presence... " >&6; }
2127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128: /* end confdefs.h. */
2129: #include <$2>
2130: _ACEOF
2131: if ac_fn_c_try_cpp "$LINENO"; then :
2132: ac_header_preproc=yes
2133: else
2134: ac_header_preproc=no
2135: fi
2136: rm -f conftest.err conftest.$ac_ext
2137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2138: $as_echo "$ac_header_preproc" >&6; }
2139:
2140: # So? What about this header?
2141: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2142: yes:no: )
2143: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2144: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2145: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147: ;;
2148: no:yes:* )
2149: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2150: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2151: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2152: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2153: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2154: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2156: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2157: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159: ;;
2160: esac
2161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162: $as_echo_n "checking for $2... " >&6; }
2163: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164: $as_echo_n "(cached) " >&6
2165: else
2166: eval "$3=\$ac_header_compiler"
2167: fi
2168: eval ac_res=\$$3
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170: $as_echo "$ac_res" >&6; }
2171: fi
2172: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173:
2174: } # ac_fn_c_check_header_mongrel
2175:
2176: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177: # -------------------------------------------
2178: # Tests whether TYPE exists after having included INCLUDES, setting cache
2179: # variable VAR accordingly.
2180: ac_fn_c_check_type ()
2181: {
2182: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184: $as_echo_n "checking for $2... " >&6; }
2185: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186: $as_echo_n "(cached) " >&6
2187: else
2188: eval "$3=no"
2189: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190: /* end confdefs.h. */
2191: $4
2192: int
2193: main ()
2194: {
2195: if (sizeof ($2))
2196: return 0;
2197: ;
2198: return 0;
2199: }
2200: _ACEOF
2201: if ac_fn_c_try_compile "$LINENO"; then :
2202: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203: /* end confdefs.h. */
2204: $4
2205: int
2206: main ()
2207: {
2208: if (sizeof (($2)))
2209: return 0;
2210: ;
2211: return 0;
2212: }
2213: _ACEOF
2214: if ac_fn_c_try_compile "$LINENO"; then :
2215:
2216: else
2217: eval "$3=yes"
2218: fi
2219: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220: fi
2221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222: fi
2223: eval ac_res=\$$3
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225: $as_echo "$ac_res" >&6; }
2226: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227:
2228: } # ac_fn_c_check_type
2229: cat >config.log <<_ACEOF
2230: This file contains any messages produced by compilers while
2231: running configure, to aid debugging if configure makes a mistake.
2232:
1.2 bertrand 2233: It was created by rpl $as_me 4.0.10, which was
1.1 bertrand 2234: generated by GNU Autoconf 2.65. Invocation command line was
2235:
2236: $ $0 $@
2237:
2238: _ACEOF
2239: exec 5>>config.log
2240: {
2241: cat <<_ASUNAME
2242: ## --------- ##
2243: ## Platform. ##
2244: ## --------- ##
2245:
2246: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251:
2252: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254:
2255: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2262:
2263: _ASUNAME
2264:
2265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266: for as_dir in $PATH
2267: do
2268: IFS=$as_save_IFS
2269: test -z "$as_dir" && as_dir=.
2270: $as_echo "PATH: $as_dir"
2271: done
2272: IFS=$as_save_IFS
2273:
2274: } >&5
2275:
2276: cat >&5 <<_ACEOF
2277:
2278:
2279: ## ----------- ##
2280: ## Core tests. ##
2281: ## ----------- ##
2282:
2283: _ACEOF
2284:
2285:
2286: # Keep a trace of the command line.
2287: # Strip out --no-create and --no-recursion so they do not pile up.
2288: # Strip out --silent because we don't want to record it for future runs.
2289: # Also quote any args containing shell meta-characters.
2290: # Make two passes to allow for proper duplicate-argument suppression.
2291: ac_configure_args=
2292: ac_configure_args0=
2293: ac_configure_args1=
2294: ac_must_keep_next=false
2295: for ac_pass in 1 2
2296: do
2297: for ac_arg
2298: do
2299: case $ac_arg in
2300: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302: | -silent | --silent | --silen | --sile | --sil)
2303: continue ;;
2304: *\'*)
2305: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306: esac
2307: case $ac_pass in
2308: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309: 2)
2310: as_fn_append ac_configure_args1 " '$ac_arg'"
2311: if test $ac_must_keep_next = true; then
2312: ac_must_keep_next=false # Got value, back to normal.
2313: else
2314: case $ac_arg in
2315: *=* | --config-cache | -C | -disable-* | --disable-* \
2316: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318: | -with-* | --with-* | -without-* | --without-* | --x)
2319: case "$ac_configure_args0 " in
2320: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321: esac
2322: ;;
2323: -* ) ac_must_keep_next=true ;;
2324: esac
2325: fi
2326: as_fn_append ac_configure_args " '$ac_arg'"
2327: ;;
2328: esac
2329: done
2330: done
2331: { ac_configure_args0=; unset ac_configure_args0;}
2332: { ac_configure_args1=; unset ac_configure_args1;}
2333:
2334: # When interrupted or exit'd, cleanup temporary files, and complete
2335: # config.log. We remove comments because anyway the quotes in there
2336: # would cause problems or look ugly.
2337: # WARNING: Use '\'' to represent an apostrophe within the trap.
2338: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339: trap 'exit_status=$?
2340: # Save into config.log some information that might help in debugging.
2341: {
2342: echo
2343:
2344: cat <<\_ASBOX
2345: ## ---------------- ##
2346: ## Cache variables. ##
2347: ## ---------------- ##
2348: _ASBOX
2349: echo
2350: # The following way of writing the cache mishandles newlines in values,
2351: (
2352: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2353: eval ac_val=\$$ac_var
2354: case $ac_val in #(
2355: *${as_nl}*)
2356: case $ac_var in #(
2357: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2358: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359: esac
2360: case $ac_var in #(
2361: _ | IFS | as_nl) ;; #(
2362: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2363: *) { eval $ac_var=; unset $ac_var;} ;;
2364: esac ;;
2365: esac
2366: done
2367: (set) 2>&1 |
2368: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2369: *${as_nl}ac_space=\ *)
2370: sed -n \
2371: "s/'\''/'\''\\\\'\'''\''/g;
2372: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373: ;; #(
2374: *)
2375: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376: ;;
2377: esac |
2378: sort
2379: )
2380: echo
2381:
2382: cat <<\_ASBOX
2383: ## ----------------- ##
2384: ## Output variables. ##
2385: ## ----------------- ##
2386: _ASBOX
2387: echo
2388: for ac_var in $ac_subst_vars
2389: do
2390: eval ac_val=\$$ac_var
2391: case $ac_val in
2392: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393: esac
2394: $as_echo "$ac_var='\''$ac_val'\''"
2395: done | sort
2396: echo
2397:
2398: if test -n "$ac_subst_files"; then
2399: cat <<\_ASBOX
2400: ## ------------------- ##
2401: ## File substitutions. ##
2402: ## ------------------- ##
2403: _ASBOX
2404: echo
2405: for ac_var in $ac_subst_files
2406: do
2407: eval ac_val=\$$ac_var
2408: case $ac_val in
2409: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410: esac
2411: $as_echo "$ac_var='\''$ac_val'\''"
2412: done | sort
2413: echo
2414: fi
2415:
2416: if test -s confdefs.h; then
2417: cat <<\_ASBOX
2418: ## ----------- ##
2419: ## confdefs.h. ##
2420: ## ----------- ##
2421: _ASBOX
2422: echo
2423: cat confdefs.h
2424: echo
2425: fi
2426: test "$ac_signal" != 0 &&
2427: $as_echo "$as_me: caught signal $ac_signal"
2428: $as_echo "$as_me: exit $exit_status"
2429: } >&5
2430: rm -f core *.core core.conftest.* &&
2431: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432: exit $exit_status
2433: ' 0
2434: for ac_signal in 1 2 13 15; do
2435: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436: done
2437: ac_signal=0
2438:
2439: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440: rm -f -r conftest* confdefs.h
2441:
2442: $as_echo "/* confdefs.h */" > confdefs.h
2443:
2444: # Predefined preprocessor variables.
2445:
2446: cat >>confdefs.h <<_ACEOF
2447: #define PACKAGE_NAME "$PACKAGE_NAME"
2448: _ACEOF
2449:
2450: cat >>confdefs.h <<_ACEOF
2451: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452: _ACEOF
2453:
2454: cat >>confdefs.h <<_ACEOF
2455: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2456: _ACEOF
2457:
2458: cat >>confdefs.h <<_ACEOF
2459: #define PACKAGE_STRING "$PACKAGE_STRING"
2460: _ACEOF
2461:
2462: cat >>confdefs.h <<_ACEOF
2463: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464: _ACEOF
2465:
2466: cat >>confdefs.h <<_ACEOF
2467: #define PACKAGE_URL "$PACKAGE_URL"
2468: _ACEOF
2469:
2470:
2471: # Let the site file select an alternate cache file if it wants to.
2472: # Prefer an explicitly selected file to automatically selected ones.
2473: ac_site_file1=NONE
2474: ac_site_file2=NONE
2475: if test -n "$CONFIG_SITE"; then
2476: ac_site_file1=$CONFIG_SITE
2477: elif test "x$prefix" != xNONE; then
2478: ac_site_file1=$prefix/share/config.site
2479: ac_site_file2=$prefix/etc/config.site
2480: else
2481: ac_site_file1=$ac_default_prefix/share/config.site
2482: ac_site_file2=$ac_default_prefix/etc/config.site
2483: fi
2484: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2485: do
2486: test "x$ac_site_file" = xNONE && continue
2487: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2488: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2489: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2490: sed 's/^/| /' "$ac_site_file" >&5
2491: . "$ac_site_file"
2492: fi
2493: done
2494:
2495: if test -r "$cache_file"; then
2496: # Some versions of bash will fail to source /dev/null (special files
2497: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2498: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2499: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2500: $as_echo "$as_me: loading cache $cache_file" >&6;}
2501: case $cache_file in
2502: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2503: *) . "./$cache_file";;
2504: esac
2505: fi
2506: else
2507: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2508: $as_echo "$as_me: creating cache $cache_file" >&6;}
2509: >$cache_file
2510: fi
2511:
2512: # Check that the precious variables saved in the cache have kept the same
2513: # value.
2514: ac_cache_corrupted=false
2515: for ac_var in $ac_precious_vars; do
2516: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2517: eval ac_new_set=\$ac_env_${ac_var}_set
2518: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2519: eval ac_new_val=\$ac_env_${ac_var}_value
2520: case $ac_old_set,$ac_new_set in
2521: set,)
2522: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2523: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2524: ac_cache_corrupted=: ;;
2525: ,set)
2526: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2527: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2528: ac_cache_corrupted=: ;;
2529: ,);;
2530: *)
2531: if test "x$ac_old_val" != "x$ac_new_val"; then
2532: # differences in whitespace do not lead to failure.
2533: ac_old_val_w=`echo x $ac_old_val`
2534: ac_new_val_w=`echo x $ac_new_val`
2535: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2536: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2537: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2538: ac_cache_corrupted=:
2539: else
2540: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2541: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2542: eval $ac_var=\$ac_old_val
2543: fi
2544: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2545: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2546: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2547: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2548: fi;;
2549: esac
2550: # Pass precious variables to config.status.
2551: if test "$ac_new_set" = set; then
2552: case $ac_new_val in
2553: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2554: *) ac_arg=$ac_var=$ac_new_val ;;
2555: esac
2556: case " $ac_configure_args " in
2557: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2558: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2559: esac
2560: fi
2561: done
2562: if $ac_cache_corrupted; then
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2566: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2567: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2568: fi
2569: ## -------------------- ##
2570: ## Main body of script. ##
2571: ## -------------------- ##
2572:
2573: ac_ext=c
2574: ac_cpp='$CPP $CPPFLAGS'
2575: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578:
2579:
2580: ac_aux_dir=
2581: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2582: for ac_t in install-sh install.sh shtool; do
2583: if test -f "$ac_dir/$ac_t"; then
2584: ac_aux_dir=$ac_dir
2585: ac_install_sh="$ac_aux_dir/$ac_t -c"
2586: break 2
2587: fi
2588: done
2589: done
2590: if test -z "$ac_aux_dir"; then
2591: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592: fi
2593:
2594: # These three variables are undocumented and unsupported,
2595: # and are intended to be withdrawn in a future Autoconf release.
2596: # They can cause serious problems if a builder's source tree is in a directory
2597: # whose full name contains unusual characters.
2598: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601:
2602:
2603: # Make sure we can run config.sub.
2604: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606:
2607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608: $as_echo_n "checking build system type... " >&6; }
2609: if test "${ac_cv_build+set}" = set; then :
2610: $as_echo_n "(cached) " >&6
2611: else
2612: ac_build_alias=$build_alias
2613: test "x$ac_build_alias" = x &&
2614: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615: test "x$ac_build_alias" = x &&
2616: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2617: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619:
2620: fi
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622: $as_echo "$ac_cv_build" >&6; }
2623: case $ac_cv_build in
2624: *-*-*) ;;
2625: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2626: esac
2627: build=$ac_cv_build
2628: ac_save_IFS=$IFS; IFS='-'
2629: set x $ac_cv_build
2630: shift
2631: build_cpu=$1
2632: build_vendor=$2
2633: shift; shift
2634: # Remember, the first character of IFS is used to create $*,
2635: # except with old shells:
2636: build_os=$*
2637: IFS=$ac_save_IFS
2638: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639:
2640:
2641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642: $as_echo_n "checking host system type... " >&6; }
2643: if test "${ac_cv_host+set}" = set; then :
2644: $as_echo_n "(cached) " >&6
2645: else
2646: if test "x$host_alias" = x; then
2647: ac_cv_host=$ac_cv_build
2648: else
2649: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2651: fi
2652:
2653: fi
2654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655: $as_echo "$ac_cv_host" >&6; }
2656: case $ac_cv_host in
2657: *-*-*) ;;
2658: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2659: esac
2660: host=$ac_cv_host
2661: ac_save_IFS=$IFS; IFS='-'
2662: set x $ac_cv_host
2663: shift
2664: host_cpu=$1
2665: host_vendor=$2
2666: shift; shift
2667: # Remember, the first character of IFS is used to create $*,
2668: # except with old shells:
2669: host_os=$*
2670: IFS=$ac_save_IFS
2671: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672:
2673:
2674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675: $as_echo_n "checking target system type... " >&6; }
2676: if test "${ac_cv_target+set}" = set; then :
2677: $as_echo_n "(cached) " >&6
2678: else
2679: if test "x$target_alias" = x; then
2680: ac_cv_target=$ac_cv_host
2681: else
2682: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2684: fi
2685:
2686: fi
2687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688: $as_echo "$ac_cv_target" >&6; }
2689: case $ac_cv_target in
2690: *-*-*) ;;
2691: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2692: esac
2693: target=$ac_cv_target
2694: ac_save_IFS=$IFS; IFS='-'
2695: set x $ac_cv_target
2696: shift
2697: target_cpu=$1
2698: target_vendor=$2
2699: shift; shift
2700: # Remember, the first character of IFS is used to create $*,
2701: # except with old shells:
2702: target_os=$*
2703: IFS=$ac_save_IFS
2704: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2705:
2706:
2707: # The aliases save the names the user supplied, while $host etc.
2708: # will get canonicalized.
2709: test -n "$target_alias" &&
2710: test "$program_prefix$program_suffix$program_transform_name" = \
2711: NONENONEs,x,x, &&
2712: program_prefix=${target_alias}-
2713:
2714: am__api_version='1.11'
2715:
2716: # Find a good install program. We prefer a C program (faster),
2717: # so one script is as good as another. But avoid the broken or
2718: # incompatible versions:
2719: # SysV /etc/install, /usr/sbin/install
2720: # SunOS /usr/etc/install
2721: # IRIX /sbin/install
2722: # AIX /bin/install
2723: # AmigaOS /C/install, which installs bootblocks on floppy discs
2724: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2725: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2726: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2727: # OS/2's system install, which has a completely different semantic
2728: # ./install, which can be erroneously created by make from ./install.sh.
2729: # Reject install programs that cannot install multiple files.
2730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2731: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2732: if test -z "$INSTALL"; then
2733: if test "${ac_cv_path_install+set}" = set; then :
2734: $as_echo_n "(cached) " >&6
2735: else
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: # Account for people who put trailing slashes in PATH elements.
2742: case $as_dir/ in #((
2743: ./ | .// | /[cC]/* | \
2744: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2745: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2746: /usr/ucb/* ) ;;
2747: *)
2748: # OSF1 and SCO ODT 3.0 have their own names for install.
2749: # Don't use installbsd from OSF since it installs stuff as root
2750: # by default.
2751: for ac_prog in ginstall scoinst install; do
2752: for ac_exec_ext in '' $ac_executable_extensions; do
2753: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2754: if test $ac_prog = install &&
2755: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2756: # AIX install. It has an incompatible calling convention.
2757: :
2758: elif test $ac_prog = install &&
2759: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2760: # program-specific install script used by HP pwplus--don't use.
2761: :
2762: else
2763: rm -rf conftest.one conftest.two conftest.dir
2764: echo one > conftest.one
2765: echo two > conftest.two
2766: mkdir conftest.dir
2767: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2768: test -s conftest.one && test -s conftest.two &&
2769: test -s conftest.dir/conftest.one &&
2770: test -s conftest.dir/conftest.two
2771: then
2772: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2773: break 3
2774: fi
2775: fi
2776: fi
2777: done
2778: done
2779: ;;
2780: esac
2781:
2782: done
2783: IFS=$as_save_IFS
2784:
2785: rm -rf conftest.one conftest.two conftest.dir
2786:
2787: fi
2788: if test "${ac_cv_path_install+set}" = set; then
2789: INSTALL=$ac_cv_path_install
2790: else
2791: # As a last resort, use the slow shell script. Don't cache a
2792: # value for INSTALL within a source directory, because that will
2793: # break other packages using the cache if that directory is
2794: # removed, or if the value is a relative name.
2795: INSTALL=$ac_install_sh
2796: fi
2797: fi
2798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2799: $as_echo "$INSTALL" >&6; }
2800:
2801: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2802: # It thinks the first close brace ends the variable substitution.
2803: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2804:
2805: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2806:
2807: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2808:
2809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2810: $as_echo_n "checking whether build environment is sane... " >&6; }
2811: # Just in case
2812: sleep 1
2813: echo timestamp > conftest.file
2814: # Reject unsafe characters in $srcdir or the absolute working directory
2815: # name. Accept space and tab only in the latter.
2816: am_lf='
2817: '
2818: case `pwd` in
2819: *[\\\"\#\$\&\'\`$am_lf]*)
2820: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2821: esac
2822: case $srcdir in
2823: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2824: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2825: esac
2826:
2827: # Do `set' in a subshell so we don't clobber the current shell's
2828: # arguments. Must try -L first in case configure is actually a
2829: # symlink; some systems play weird games with the mod time of symlinks
2830: # (eg FreeBSD returns the mod time of the symlink's containing
2831: # directory).
2832: if (
2833: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2834: if test "$*" = "X"; then
2835: # -L didn't work.
2836: set X `ls -t "$srcdir/configure" conftest.file`
2837: fi
2838: rm -f conftest.file
2839: if test "$*" != "X $srcdir/configure conftest.file" \
2840: && test "$*" != "X conftest.file $srcdir/configure"; then
2841:
2842: # If neither matched, then we have a broken ls. This can happen
2843: # if, for instance, CONFIG_SHELL is bash and it inherits a
2844: # broken ls alias from the environment. This has actually
2845: # happened. Such a system could not be considered "sane".
2846: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2847: alias in your environment" "$LINENO" 5
2848: fi
2849:
2850: test "$2" = conftest.file
2851: )
2852: then
2853: # Ok.
2854: :
2855: else
2856: as_fn_error "newly created file is older than distributed files!
2857: Check your system clock" "$LINENO" 5
2858: fi
2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2860: $as_echo "yes" >&6; }
2861: test "$program_prefix" != NONE &&
2862: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2863: # Use a double $ so make ignores it.
2864: test "$program_suffix" != NONE &&
2865: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2866: # Double any \ or $.
2867: # By default was `s,x,x', remove it if useless.
2868: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2869: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2870:
2871: # expand $ac_aux_dir to an absolute path
2872: am_aux_dir=`cd $ac_aux_dir && pwd`
2873:
2874: if test x"${MISSING+set}" != xset; then
2875: case $am_aux_dir in
2876: *\ * | *\ *)
2877: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2878: *)
2879: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2880: esac
2881: fi
2882: # Use eval to expand $SHELL
2883: if eval "$MISSING --run true"; then
2884: am_missing_run="$MISSING --run "
2885: else
2886: am_missing_run=
2887: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2888: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2889: fi
2890:
2891: if test x"${install_sh}" != xset; then
2892: case $am_aux_dir in
2893: *\ * | *\ *)
2894: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2895: *)
2896: install_sh="\${SHELL} $am_aux_dir/install-sh"
2897: esac
2898: fi
2899:
2900: # Installed binaries are usually stripped using `strip' when the user
2901: # run `make install-strip'. However `strip' might not be the right
2902: # tool to use in cross-compilation environments, therefore Automake
2903: # will honor the `STRIP' environment variable to overrule this program.
2904: if test "$cross_compiling" != no; then
2905: if test -n "$ac_tool_prefix"; then
2906: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2907: set dummy ${ac_tool_prefix}strip; ac_word=$2
2908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909: $as_echo_n "checking for $ac_word... " >&6; }
2910: if test "${ac_cv_prog_STRIP+set}" = set; then :
2911: $as_echo_n "(cached) " >&6
2912: else
2913: if test -n "$STRIP"; then
2914: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2915: else
2916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917: for as_dir in $PATH
2918: do
2919: IFS=$as_save_IFS
2920: test -z "$as_dir" && as_dir=.
2921: for ac_exec_ext in '' $ac_executable_extensions; do
2922: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2924: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925: break 2
2926: fi
2927: done
2928: done
2929: IFS=$as_save_IFS
2930:
2931: fi
2932: fi
2933: STRIP=$ac_cv_prog_STRIP
2934: if test -n "$STRIP"; then
2935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2936: $as_echo "$STRIP" >&6; }
2937: else
2938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939: $as_echo "no" >&6; }
2940: fi
2941:
2942:
2943: fi
2944: if test -z "$ac_cv_prog_STRIP"; then
2945: ac_ct_STRIP=$STRIP
2946: # Extract the first word of "strip", so it can be a program name with args.
2947: set dummy strip; ac_word=$2
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949: $as_echo_n "checking for $ac_word... " >&6; }
2950: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2951: $as_echo_n "(cached) " >&6
2952: else
2953: if test -n "$ac_ct_STRIP"; then
2954: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2955: else
2956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957: for as_dir in $PATH
2958: do
2959: IFS=$as_save_IFS
2960: test -z "$as_dir" && as_dir=.
2961: for ac_exec_ext in '' $ac_executable_extensions; do
2962: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963: ac_cv_prog_ac_ct_STRIP="strip"
2964: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965: break 2
2966: fi
2967: done
2968: done
2969: IFS=$as_save_IFS
2970:
2971: fi
2972: fi
2973: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974: if test -n "$ac_ct_STRIP"; then
2975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976: $as_echo "$ac_ct_STRIP" >&6; }
2977: else
2978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979: $as_echo "no" >&6; }
2980: fi
2981:
2982: if test "x$ac_ct_STRIP" = x; then
2983: STRIP=":"
2984: else
2985: case $cross_compiling:$ac_tool_warned in
2986: yes:)
2987: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989: ac_tool_warned=yes ;;
2990: esac
2991: STRIP=$ac_ct_STRIP
2992: fi
2993: else
2994: STRIP="$ac_cv_prog_STRIP"
2995: fi
2996:
2997: fi
2998: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999:
3000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3001: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3002: if test -z "$MKDIR_P"; then
3003: if test "${ac_cv_path_mkdir+set}" = set; then :
3004: $as_echo_n "(cached) " >&6
3005: else
3006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3008: do
3009: IFS=$as_save_IFS
3010: test -z "$as_dir" && as_dir=.
3011: for ac_prog in mkdir gmkdir; do
3012: for ac_exec_ext in '' $ac_executable_extensions; do
3013: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3014: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015: 'mkdir (GNU coreutils) '* | \
3016: 'mkdir (coreutils) '* | \
3017: 'mkdir (fileutils) '4.1*)
3018: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3019: break 3;;
3020: esac
3021: done
3022: done
3023: done
3024: IFS=$as_save_IFS
3025:
3026: fi
3027:
3028: test -d ./--version && rmdir ./--version
3029: if test "${ac_cv_path_mkdir+set}" = set; then
3030: MKDIR_P="$ac_cv_path_mkdir -p"
3031: else
3032: # As a last resort, use the slow shell script. Don't cache a
3033: # value for MKDIR_P within a source directory, because that will
3034: # break other packages using the cache if that directory is
3035: # removed, or if the value is a relative name.
3036: MKDIR_P="$ac_install_sh -d"
3037: fi
3038: fi
3039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040: $as_echo "$MKDIR_P" >&6; }
3041:
3042: mkdir_p="$MKDIR_P"
3043: case $mkdir_p in
3044: [\\/$]* | ?:[\\/]*) ;;
3045: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3046: esac
3047:
3048: for ac_prog in gawk mawk nawk awk
3049: do
3050: # Extract the first word of "$ac_prog", so it can be a program name with args.
3051: set dummy $ac_prog; ac_word=$2
3052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053: $as_echo_n "checking for $ac_word... " >&6; }
3054: if test "${ac_cv_prog_AWK+set}" = set; then :
3055: $as_echo_n "(cached) " >&6
3056: else
3057: if test -n "$AWK"; then
3058: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3059: else
3060: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061: for as_dir in $PATH
3062: do
3063: IFS=$as_save_IFS
3064: test -z "$as_dir" && as_dir=.
3065: for ac_exec_ext in '' $ac_executable_extensions; do
3066: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067: ac_cv_prog_AWK="$ac_prog"
3068: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069: break 2
3070: fi
3071: done
3072: done
3073: IFS=$as_save_IFS
3074:
3075: fi
3076: fi
3077: AWK=$ac_cv_prog_AWK
3078: if test -n "$AWK"; then
3079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3080: $as_echo "$AWK" >&6; }
3081: else
3082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083: $as_echo "no" >&6; }
3084: fi
3085:
3086:
3087: test -n "$AWK" && break
3088: done
3089:
3090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3091: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092: set x ${MAKE-make}
3093: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3094: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3095: $as_echo_n "(cached) " >&6
3096: else
3097: cat >conftest.make <<\_ACEOF
3098: SHELL = /bin/sh
3099: all:
3100: @echo '@@@%%%=$(MAKE)=@@@%%%'
3101: _ACEOF
3102: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3103: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104: *@@@%%%=?*=@@@%%%*)
3105: eval ac_cv_prog_make_${ac_make}_set=yes;;
3106: *)
3107: eval ac_cv_prog_make_${ac_make}_set=no;;
3108: esac
3109: rm -f conftest.make
3110: fi
3111: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113: $as_echo "yes" >&6; }
3114: SET_MAKE=
3115: else
3116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117: $as_echo "no" >&6; }
3118: SET_MAKE="MAKE=${MAKE-make}"
3119: fi
3120:
3121: rm -rf .tst 2>/dev/null
3122: mkdir .tst 2>/dev/null
3123: if test -d .tst; then
3124: am__leading_dot=.
3125: else
3126: am__leading_dot=_
3127: fi
3128: rmdir .tst 2>/dev/null
3129:
3130: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132: # is not polluted with repeated "-I."
3133: am__isrc=' -I$(srcdir)'
3134: # test to see if srcdir already configured
3135: if test -f $srcdir/config.status; then
3136: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3137: fi
3138: fi
3139:
3140: # test whether we have cygpath
3141: if test -z "$CYGPATH_W"; then
3142: if (cygpath --version) >/dev/null 2>/dev/null; then
3143: CYGPATH_W='cygpath -w'
3144: else
3145: CYGPATH_W=echo
3146: fi
3147: fi
3148:
3149:
3150: # Define the identity of the package.
3151: PACKAGE='rpl'
1.2 bertrand 3152: VERSION='4.0.10'
1.1 bertrand 3153:
3154:
3155: cat >>confdefs.h <<_ACEOF
3156: #define PACKAGE "$PACKAGE"
3157: _ACEOF
3158:
3159:
3160: cat >>confdefs.h <<_ACEOF
3161: #define VERSION "$VERSION"
3162: _ACEOF
3163:
3164: # Some tools Automake needs.
3165:
3166: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167:
3168:
3169: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170:
3171:
3172: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173:
3174:
3175: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176:
3177:
3178: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179:
3180: # We need awk for the "check" target. The system "awk" is bad on
3181: # some platforms.
3182: # Always define AMTAR for backward compatibility.
3183:
3184: AMTAR=${AMTAR-"${am_missing_run}tar"}
3185:
3186: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3187:
3188:
3189:
3190:
3191:
3192:
3193: ac_config_headers="$ac_config_headers rplconfig.h"
3194:
3195:
3196: NCURSES=ncurses-5.7-20100102
3197: READLINE=readline-6.1
3198: UNITS=units-1.87
3199: GSL=gsl-1.13
3200: GPP=gpp-2.24
3201: GNUPLOT=gnuplot-4.2.6
3202: FILE=file-5.03
3203: ICONV=libiconv-1.13.1
3204:
3205: ac_ext=c
3206: ac_cpp='$CPP $CPPFLAGS'
3207: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210: if test -n "$ac_tool_prefix"; then
3211: for ac_prog in gcc-4.4 gcc
3212: do
3213: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216: $as_echo_n "checking for $ac_word... " >&6; }
3217: if test "${ac_cv_prog_CC+set}" = set; then :
3218: $as_echo_n "(cached) " >&6
3219: else
3220: if test -n "$CC"; then
3221: ac_cv_prog_CC="$CC" # Let the user override the test.
3222: else
3223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224: for as_dir in $PATH
3225: do
3226: IFS=$as_save_IFS
3227: test -z "$as_dir" && as_dir=.
3228: for ac_exec_ext in '' $ac_executable_extensions; do
3229: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232: break 2
3233: fi
3234: done
3235: done
3236: IFS=$as_save_IFS
3237:
3238: fi
3239: fi
3240: CC=$ac_cv_prog_CC
3241: if test -n "$CC"; then
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243: $as_echo "$CC" >&6; }
3244: else
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246: $as_echo "no" >&6; }
3247: fi
3248:
3249:
3250: test -n "$CC" && break
3251: done
3252: fi
3253: if test -z "$CC"; then
3254: ac_ct_CC=$CC
3255: for ac_prog in gcc-4.4 gcc
3256: do
3257: # Extract the first word of "$ac_prog", so it can be a program name with args.
3258: set dummy $ac_prog; ac_word=$2
3259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260: $as_echo_n "checking for $ac_word... " >&6; }
3261: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3262: $as_echo_n "(cached) " >&6
3263: else
3264: if test -n "$ac_ct_CC"; then
3265: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266: else
3267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268: for as_dir in $PATH
3269: do
3270: IFS=$as_save_IFS
3271: test -z "$as_dir" && as_dir=.
3272: for ac_exec_ext in '' $ac_executable_extensions; do
3273: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274: ac_cv_prog_ac_ct_CC="$ac_prog"
3275: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276: break 2
3277: fi
3278: done
3279: done
3280: IFS=$as_save_IFS
3281:
3282: fi
3283: fi
3284: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285: if test -n "$ac_ct_CC"; then
3286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287: $as_echo "$ac_ct_CC" >&6; }
3288: else
3289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290: $as_echo "no" >&6; }
3291: fi
3292:
3293:
3294: test -n "$ac_ct_CC" && break
3295: done
3296:
3297: if test "x$ac_ct_CC" = x; then
3298: CC=""
3299: else
3300: case $cross_compiling:$ac_tool_warned in
3301: yes:)
3302: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304: ac_tool_warned=yes ;;
3305: esac
3306: CC=$ac_ct_CC
3307: fi
3308: fi
3309:
3310:
3311: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313: as_fn_error "no acceptable C compiler found in \$PATH
3314: See \`config.log' for more details." "$LINENO" 5; }
3315:
3316: # Provide some information about the compiler.
3317: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318: set X $ac_compile
3319: ac_compiler=$2
3320: for ac_option in --version -v -V -qversion; do
3321: { { ac_try="$ac_compiler $ac_option >&5"
3322: case "(($ac_try" in
3323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324: *) ac_try_echo=$ac_try;;
3325: esac
3326: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327: $as_echo "$ac_try_echo"; } >&5
3328: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329: ac_status=$?
3330: if test -s conftest.err; then
3331: sed '10a\
3332: ... rest of stderr output deleted ...
3333: 10q' conftest.err >conftest.er1
3334: cat conftest.er1 >&5
3335: fi
3336: rm -f conftest.er1 conftest.err
3337: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338: test $ac_status = 0; }
3339: done
3340:
3341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342: /* end confdefs.h. */
3343:
3344: int
3345: main ()
3346: {
3347:
3348: ;
3349: return 0;
3350: }
3351: _ACEOF
3352: ac_clean_files_save=$ac_clean_files
3353: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354: # Try to create an executable without -o first, disregard a.out.
3355: # It will help us diagnose broken compilers, and finding out an intuition
3356: # of exeext.
3357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358: $as_echo_n "checking whether the C compiler works... " >&6; }
3359: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3360:
3361: # The possible output files:
3362: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363:
3364: ac_rmfiles=
3365: for ac_file in $ac_files
3366: do
3367: case $ac_file in
3368: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370: esac
3371: done
3372: rm -f $ac_rmfiles
3373:
3374: if { { ac_try="$ac_link_default"
3375: case "(($ac_try" in
3376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377: *) ac_try_echo=$ac_try;;
3378: esac
3379: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380: $as_echo "$ac_try_echo"; } >&5
3381: (eval "$ac_link_default") 2>&5
3382: ac_status=$?
3383: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384: test $ac_status = 0; }; then :
3385: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388: # so that the user can short-circuit this test for compilers unknown to
3389: # Autoconf.
3390: for ac_file in $ac_files ''
3391: do
3392: test -f "$ac_file" || continue
3393: case $ac_file in
3394: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395: ;;
3396: [ab].out )
3397: # We found the default executable, but exeext='' is most
3398: # certainly right.
3399: break;;
3400: *.* )
3401: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402: then :; else
3403: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404: fi
3405: # We set ac_cv_exeext here because the later test for it is not
3406: # safe: cross compilers may not add the suffix if given an `-o'
3407: # argument, so we may need to know it at that point already.
3408: # Even if this section looks crufty: it has the advantage of
3409: # actually working.
3410: break;;
3411: * )
3412: break;;
3413: esac
3414: done
3415: test "$ac_cv_exeext" = no && ac_cv_exeext=
3416:
3417: else
3418: ac_file=''
3419: fi
3420: if test -z "$ac_file"; then :
3421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422: $as_echo "no" >&6; }
3423: $as_echo "$as_me: failed program was:" >&5
3424: sed 's/^/| /' conftest.$ac_ext >&5
3425:
3426: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428: { as_fn_set_status 77
3429: as_fn_error "C compiler cannot create executables
3430: See \`config.log' for more details." "$LINENO" 5; }; }
3431: else
3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433: $as_echo "yes" >&6; }
3434: fi
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436: $as_echo_n "checking for C compiler default output file name... " >&6; }
3437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438: $as_echo "$ac_file" >&6; }
3439: ac_exeext=$ac_cv_exeext
3440:
3441: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442: ac_clean_files=$ac_clean_files_save
3443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444: $as_echo_n "checking for suffix of executables... " >&6; }
3445: if { { ac_try="$ac_link"
3446: case "(($ac_try" in
3447: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448: *) ac_try_echo=$ac_try;;
3449: esac
3450: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451: $as_echo "$ac_try_echo"; } >&5
3452: (eval "$ac_link") 2>&5
3453: ac_status=$?
3454: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455: test $ac_status = 0; }; then :
3456: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3457: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3458: # work properly (i.e., refer to `conftest.exe'), while it won't with
3459: # `rm'.
3460: for ac_file in conftest.exe conftest conftest.*; do
3461: test -f "$ac_file" || continue
3462: case $ac_file in
3463: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465: break;;
3466: * ) break;;
3467: esac
3468: done
3469: else
3470: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472: as_fn_error "cannot compute suffix of executables: cannot compile and link
3473: See \`config.log' for more details." "$LINENO" 5; }
3474: fi
3475: rm -f conftest conftest$ac_cv_exeext
3476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477: $as_echo "$ac_cv_exeext" >&6; }
3478:
3479: rm -f conftest.$ac_ext
3480: EXEEXT=$ac_cv_exeext
3481: ac_exeext=$EXEEXT
3482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483: /* end confdefs.h. */
3484: #include <stdio.h>
3485: int
3486: main ()
3487: {
3488: FILE *f = fopen ("conftest.out", "w");
3489: return ferror (f) || fclose (f) != 0;
3490:
3491: ;
3492: return 0;
3493: }
3494: _ACEOF
3495: ac_clean_files="$ac_clean_files conftest.out"
3496: # Check that the compiler produces executables we can run. If not, either
3497: # the compiler is broken, or we cross compile.
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499: $as_echo_n "checking whether we are cross compiling... " >&6; }
3500: if test "$cross_compiling" != yes; then
3501: { { ac_try="$ac_link"
3502: case "(($ac_try" in
3503: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504: *) ac_try_echo=$ac_try;;
3505: esac
3506: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507: $as_echo "$ac_try_echo"; } >&5
3508: (eval "$ac_link") 2>&5
3509: ac_status=$?
3510: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511: test $ac_status = 0; }
3512: if { ac_try='./conftest$ac_cv_exeext'
3513: { { case "(($ac_try" in
3514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515: *) ac_try_echo=$ac_try;;
3516: esac
3517: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518: $as_echo "$ac_try_echo"; } >&5
3519: (eval "$ac_try") 2>&5
3520: ac_status=$?
3521: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522: test $ac_status = 0; }; }; then
3523: cross_compiling=no
3524: else
3525: if test "$cross_compiling" = maybe; then
3526: cross_compiling=yes
3527: else
3528: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530: as_fn_error "cannot run C compiled programs.
3531: If you meant to cross compile, use \`--host'.
3532: See \`config.log' for more details." "$LINENO" 5; }
3533: fi
3534: fi
3535: fi
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537: $as_echo "$cross_compiling" >&6; }
3538:
3539: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3540: ac_clean_files=$ac_clean_files_save
3541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542: $as_echo_n "checking for suffix of object files... " >&6; }
3543: if test "${ac_cv_objext+set}" = set; then :
3544: $as_echo_n "(cached) " >&6
3545: else
3546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547: /* end confdefs.h. */
3548:
3549: int
3550: main ()
3551: {
3552:
3553: ;
3554: return 0;
3555: }
3556: _ACEOF
3557: rm -f conftest.o conftest.obj
3558: if { { ac_try="$ac_compile"
3559: case "(($ac_try" in
3560: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561: *) ac_try_echo=$ac_try;;
3562: esac
3563: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564: $as_echo "$ac_try_echo"; } >&5
3565: (eval "$ac_compile") 2>&5
3566: ac_status=$?
3567: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568: test $ac_status = 0; }; then :
3569: for ac_file in conftest.o conftest.obj conftest.*; do
3570: test -f "$ac_file" || continue;
3571: case $ac_file in
3572: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574: break;;
3575: esac
3576: done
3577: else
3578: $as_echo "$as_me: failed program was:" >&5
3579: sed 's/^/| /' conftest.$ac_ext >&5
3580:
3581: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583: as_fn_error "cannot compute suffix of object files: cannot compile
3584: See \`config.log' for more details." "$LINENO" 5; }
3585: fi
3586: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587: fi
3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589: $as_echo "$ac_cv_objext" >&6; }
3590: OBJEXT=$ac_cv_objext
3591: ac_objext=$OBJEXT
3592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3595: $as_echo_n "(cached) " >&6
3596: else
3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598: /* end confdefs.h. */
3599:
3600: int
3601: main ()
3602: {
3603: #ifndef __GNUC__
3604: choke me
3605: #endif
3606:
3607: ;
3608: return 0;
3609: }
3610: _ACEOF
3611: if ac_fn_c_try_compile "$LINENO"; then :
3612: ac_compiler_gnu=yes
3613: else
3614: ac_compiler_gnu=no
3615: fi
3616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3618:
3619: fi
3620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622: if test $ac_compiler_gnu = yes; then
3623: GCC=yes
3624: else
3625: GCC=
3626: fi
3627: ac_test_CFLAGS=${CFLAGS+set}
3628: ac_save_CFLAGS=$CFLAGS
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631: if test "${ac_cv_prog_cc_g+set}" = set; then :
3632: $as_echo_n "(cached) " >&6
3633: else
3634: ac_save_c_werror_flag=$ac_c_werror_flag
3635: ac_c_werror_flag=yes
3636: ac_cv_prog_cc_g=no
3637: CFLAGS="-g"
3638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639: /* end confdefs.h. */
3640:
3641: int
3642: main ()
3643: {
3644:
3645: ;
3646: return 0;
3647: }
3648: _ACEOF
3649: if ac_fn_c_try_compile "$LINENO"; then :
3650: ac_cv_prog_cc_g=yes
3651: else
3652: CFLAGS=""
3653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654: /* end confdefs.h. */
3655:
3656: int
3657: main ()
3658: {
3659:
3660: ;
3661: return 0;
3662: }
3663: _ACEOF
3664: if ac_fn_c_try_compile "$LINENO"; then :
3665:
3666: else
3667: ac_c_werror_flag=$ac_save_c_werror_flag
3668: CFLAGS="-g"
3669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670: /* end confdefs.h. */
3671:
3672: int
3673: main ()
3674: {
3675:
3676: ;
3677: return 0;
3678: }
3679: _ACEOF
3680: if ac_fn_c_try_compile "$LINENO"; then :
3681: ac_cv_prog_cc_g=yes
3682: fi
3683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684: fi
3685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686: fi
3687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688: ac_c_werror_flag=$ac_save_c_werror_flag
3689: fi
3690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691: $as_echo "$ac_cv_prog_cc_g" >&6; }
3692: if test "$ac_test_CFLAGS" = set; then
3693: CFLAGS=$ac_save_CFLAGS
3694: elif test $ac_cv_prog_cc_g = yes; then
3695: if test "$GCC" = yes; then
3696: CFLAGS="-g -O2"
3697: else
3698: CFLAGS="-g"
3699: fi
3700: else
3701: if test "$GCC" = yes; then
3702: CFLAGS="-O2"
3703: else
3704: CFLAGS=
3705: fi
3706: fi
3707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3710: $as_echo_n "(cached) " >&6
3711: else
3712: ac_cv_prog_cc_c89=no
3713: ac_save_CC=$CC
3714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715: /* end confdefs.h. */
3716: #include <stdarg.h>
3717: #include <stdio.h>
3718: #include <sys/types.h>
3719: #include <sys/stat.h>
3720: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721: struct buf { int x; };
3722: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723: static char *e (p, i)
3724: char **p;
3725: int i;
3726: {
3727: return p[i];
3728: }
3729: static char *f (char * (*g) (char **, int), char **p, ...)
3730: {
3731: char *s;
3732: va_list v;
3733: va_start (v,p);
3734: s = g (p, va_arg (v,int));
3735: va_end (v);
3736: return s;
3737: }
3738:
3739: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740: function prototypes and stuff, but not '\xHH' hex character constants.
3741: These don't provoke an error unfortunately, instead are silently treated
3742: as 'x'. The following induces an error, until -std is added to get
3743: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744: array size at least. It's necessary to write '\x00'==0 to get something
3745: that's true only with -std. */
3746: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747:
3748: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749: inside strings and character constants. */
3750: #define FOO(x) 'x'
3751: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752:
3753: int test (int i, double x);
3754: struct s1 {int (*f) (int a);};
3755: struct s2 {int (*f) (double a);};
3756: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757: int argc;
3758: char **argv;
3759: int
3760: main ()
3761: {
3762: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763: ;
3764: return 0;
3765: }
3766: _ACEOF
3767: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769: do
3770: CC="$ac_save_CC $ac_arg"
3771: if ac_fn_c_try_compile "$LINENO"; then :
3772: ac_cv_prog_cc_c89=$ac_arg
3773: fi
3774: rm -f core conftest.err conftest.$ac_objext
3775: test "x$ac_cv_prog_cc_c89" != "xno" && break
3776: done
3777: rm -f conftest.$ac_ext
3778: CC=$ac_save_CC
3779:
3780: fi
3781: # AC_CACHE_VAL
3782: case "x$ac_cv_prog_cc_c89" in
3783: x)
3784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785: $as_echo "none needed" >&6; } ;;
3786: xno)
3787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788: $as_echo "unsupported" >&6; } ;;
3789: *)
3790: CC="$CC $ac_cv_prog_cc_c89"
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793: esac
3794: if test "x$ac_cv_prog_cc_c89" != xno; then :
3795:
3796: fi
3797:
3798: ac_ext=c
3799: ac_cpp='$CPP $CPPFLAGS'
3800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803: DEPDIR="${am__leading_dot}deps"
3804:
3805: ac_config_commands="$ac_config_commands depfiles"
3806:
3807:
3808: am_make=${MAKE-make}
3809: cat > confinc << 'END'
3810: am__doit:
3811: @echo this is the am__doit target
3812: .PHONY: am__doit
3813: END
3814: # If we don't find an include directive, just comment out the code.
3815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3816: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3817: am__include="#"
3818: am__quote=
3819: _am_result=none
3820: # First try GNU make style include.
3821: echo "include confinc" > confmf
3822: # Ignore all kinds of additional output from `make'.
3823: case `$am_make -s -f confmf 2> /dev/null` in #(
3824: *the\ am__doit\ target*)
3825: am__include=include
3826: am__quote=
3827: _am_result=GNU
3828: ;;
3829: esac
3830: # Now try BSD make style include.
3831: if test "$am__include" = "#"; then
3832: echo '.include "confinc"' > confmf
3833: case `$am_make -s -f confmf 2> /dev/null` in #(
3834: *the\ am__doit\ target*)
3835: am__include=.include
3836: am__quote="\""
3837: _am_result=BSD
3838: ;;
3839: esac
3840: fi
3841:
3842:
3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3844: $as_echo "$_am_result" >&6; }
3845: rm -f confinc confmf
3846:
3847: # Check whether --enable-dependency-tracking was given.
3848: if test "${enable_dependency_tracking+set}" = set; then :
3849: enableval=$enable_dependency_tracking;
3850: fi
3851:
3852: if test "x$enable_dependency_tracking" != xno; then
3853: am_depcomp="$ac_aux_dir/depcomp"
3854: AMDEPBACKSLASH='\'
3855: fi
3856: if test "x$enable_dependency_tracking" != xno; then
3857: AMDEP_TRUE=
3858: AMDEP_FALSE='#'
3859: else
3860: AMDEP_TRUE='#'
3861: AMDEP_FALSE=
3862: fi
3863:
3864:
3865:
3866: depcc="$CC" am_compiler_list=
3867:
3868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3869: $as_echo_n "checking dependency style of $depcc... " >&6; }
3870: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3871: $as_echo_n "(cached) " >&6
3872: else
3873: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874: # We make a subdir and do the tests there. Otherwise we can end up
3875: # making bogus files that we don't know about and never remove. For
3876: # instance it was reported that on HP-UX the gcc test will end up
3877: # making a dummy file named `D' -- because `-MD' means `put the output
3878: # in D'.
3879: mkdir conftest.dir
3880: # Copy depcomp to subdir because otherwise we won't find it if we're
3881: # using a relative directory.
3882: cp "$am_depcomp" conftest.dir
3883: cd conftest.dir
3884: # We will build objects and dependencies in a subdirectory because
3885: # it helps to detect inapplicable dependency modes. For instance
3886: # both Tru64's cc and ICC support -MD to output dependencies as a
3887: # side effect of compilation, but ICC will put the dependencies in
3888: # the current directory while Tru64 will put them in the object
3889: # directory.
3890: mkdir sub
3891:
3892: am_cv_CC_dependencies_compiler_type=none
3893: if test "$am_compiler_list" = ""; then
3894: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895: fi
3896: am__universal=false
3897: case " $depcc " in #(
3898: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3899: esac
3900:
3901: for depmode in $am_compiler_list; do
3902: # Setup a source with many dependencies, because some compilers
3903: # like to wrap large dependency lists on column 80 (with \), and
3904: # we should not choose a depcomp mode which is confused by this.
3905: #
3906: # We need to recreate these files for each test, as the compiler may
3907: # overwrite some of them when testing with obscure command lines.
3908: # This happens at least with the AIX C compiler.
3909: : > sub/conftest.c
3910: for i in 1 2 3 4 5 6; do
3911: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3913: # Solaris 8's {/usr,}/bin/sh.
3914: touch sub/conftst$i.h
3915: done
3916: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917:
3918: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3919: # mode. It turns out that the SunPro C++ compiler does not properly
3920: # handle `-M -o', and we need to detect this. Also, some Intel
3921: # versions had trouble with output in subdirs
3922: am__obj=sub/conftest.${OBJEXT-o}
3923: am__minus_obj="-o $am__obj"
3924: case $depmode in
3925: gcc)
3926: # This depmode causes a compiler race in universal mode.
3927: test "$am__universal" = false || continue
3928: ;;
3929: nosideeffect)
3930: # after this tag, mechanisms are not by side-effect, so they'll
3931: # only be used when explicitly requested
3932: if test "x$enable_dependency_tracking" = xyes; then
3933: continue
3934: else
3935: break
3936: fi
3937: ;;
3938: msvisualcpp | msvcmsys)
3939: # This compiler won't grok `-c -o', but also, the minuso test has
3940: # not run yet. These depmodes are late enough in the game, and
3941: # so weak that their functioning should not be impacted.
3942: am__obj=conftest.${OBJEXT-o}
3943: am__minus_obj=
3944: ;;
3945: none) break ;;
3946: esac
3947: if depmode=$depmode \
3948: source=sub/conftest.c object=$am__obj \
3949: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951: >/dev/null 2>conftest.err &&
3952: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956: # icc doesn't choke on unknown options, it will just issue warnings
3957: # or remarks (even with -Werror). So we grep stderr for any message
3958: # that says an option was ignored or not supported.
3959: # When given -MP, icc 7.0 and 7.1 complain thusly:
3960: # icc: Command line warning: ignoring option '-M'; no argument required
3961: # The diagnosis changed in icc 8.0:
3962: # icc: Command line remark: option '-MP' not supported
3963: if (grep 'ignoring option' conftest.err ||
3964: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965: am_cv_CC_dependencies_compiler_type=$depmode
3966: break
3967: fi
3968: fi
3969: done
3970:
3971: cd ..
3972: rm -rf conftest.dir
3973: else
3974: am_cv_CC_dependencies_compiler_type=none
3975: fi
3976:
3977: fi
3978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3979: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3981:
3982: if
3983: test "x$enable_dependency_tracking" != xno \
3984: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985: am__fastdepCC_TRUE=
3986: am__fastdepCC_FALSE='#'
3987: else
3988: am__fastdepCC_TRUE='#'
3989: am__fastdepCC_FALSE=
3990: fi
3991:
3992:
3993:
3994: if test x"$CC" != x""; then
3995: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3996: awk -F. '{ printf("%s", $1);}'`
3997: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3998: awk -F. '{ printf("%s", $2);}'`
3999: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4000: OPTIMISATION_C=-O3
4001: else
4002: if test $GCC_VERSION_MAJEURE -ge 5; then
4003: OPTIMISATION_C=-O3
4004: else
4005: OPTIMISATION_C=-O2
4006: fi
4007: fi
4008: fi
4009:
4010: if test "x$CC" != xcc; then
4011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4012: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4013: else
4014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4015: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4016: fi
4017: set dummy $CC; ac_cc=`$as_echo "$2" |
4018: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4019: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4020: $as_echo_n "(cached) " >&6
4021: else
4022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023: /* end confdefs.h. */
4024:
4025: int
4026: main ()
4027: {
4028:
4029: ;
4030: return 0;
4031: }
4032: _ACEOF
4033: # Make sure it works both with $CC and with simple cc.
4034: # We do the test twice because some compilers refuse to overwrite an
4035: # existing .o file with -o, though they will create one.
4036: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4037: rm -f conftest2.*
4038: if { { case "(($ac_try" in
4039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040: *) ac_try_echo=$ac_try;;
4041: esac
4042: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043: $as_echo "$ac_try_echo"; } >&5
4044: (eval "$ac_try") 2>&5
4045: ac_status=$?
4046: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047: test $ac_status = 0; } &&
4048: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4049: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050: *) ac_try_echo=$ac_try;;
4051: esac
4052: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053: $as_echo "$ac_try_echo"; } >&5
4054: (eval "$ac_try") 2>&5
4055: ac_status=$?
4056: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057: test $ac_status = 0; };
4058: then
4059: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4060: if test "x$CC" != xcc; then
4061: # Test first that cc exists at all.
4062: if { ac_try='cc -c conftest.$ac_ext >&5'
4063: { { case "(($ac_try" in
4064: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065: *) ac_try_echo=$ac_try;;
4066: esac
4067: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068: $as_echo "$ac_try_echo"; } >&5
4069: (eval "$ac_try") 2>&5
4070: ac_status=$?
4071: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072: test $ac_status = 0; }; }; then
4073: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4074: rm -f conftest2.*
4075: if { { case "(($ac_try" in
4076: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077: *) ac_try_echo=$ac_try;;
4078: esac
4079: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080: $as_echo "$ac_try_echo"; } >&5
4081: (eval "$ac_try") 2>&5
4082: ac_status=$?
4083: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084: test $ac_status = 0; } &&
4085: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4086: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087: *) ac_try_echo=$ac_try;;
4088: esac
4089: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090: $as_echo "$ac_try_echo"; } >&5
4091: (eval "$ac_try") 2>&5
4092: ac_status=$?
4093: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094: test $ac_status = 0; };
4095: then
4096: # cc works too.
4097: :
4098: else
4099: # cc exists but doesn't like -o.
4100: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4101: fi
4102: fi
4103: fi
4104: else
4105: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4106: fi
4107: rm -f core conftest*
4108:
4109: fi
4110: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112: $as_echo "yes" >&6; }
4113: else
4114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115: $as_echo "no" >&6; }
4116:
4117: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4118:
4119: fi
4120:
4121: # FIXME: we rely on the cache variable name because
4122: # there is no other way.
4123: set dummy $CC
4124: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4125: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4126: if test "$am_t" != yes; then
4127: # Losing compiler, so override with the script.
4128: # FIXME: It is wrong to rewrite CC.
4129: # But if we don't then we get into trouble of one sort or another.
4130: # A longer-term fix would be to have automake use am__CC in this case,
4131: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132: CC="$am_aux_dir/compile $CC"
4133: fi
4134:
4135:
4136:
4137: if test "$GCC" != yes; then
4138: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4139: fi
4140:
4141: ac_ext=cpp
4142: ac_cpp='$CXXCPP $CPPFLAGS'
4143: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4146: if test -z "$CXX"; then
4147: if test -n "$CCC"; then
4148: CXX=$CCC
4149: else
4150: if test -n "$ac_tool_prefix"; then
4151: for ac_prog in g++-4.4 g++
4152: do
4153: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4154: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156: $as_echo_n "checking for $ac_word... " >&6; }
4157: if test "${ac_cv_prog_CXX+set}" = set; then :
4158: $as_echo_n "(cached) " >&6
4159: else
4160: if test -n "$CXX"; then
4161: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4162: else
4163: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164: for as_dir in $PATH
4165: do
4166: IFS=$as_save_IFS
4167: test -z "$as_dir" && as_dir=.
4168: for ac_exec_ext in '' $ac_executable_extensions; do
4169: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4171: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172: break 2
4173: fi
4174: done
4175: done
4176: IFS=$as_save_IFS
4177:
4178: fi
4179: fi
4180: CXX=$ac_cv_prog_CXX
4181: if test -n "$CXX"; then
4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4183: $as_echo "$CXX" >&6; }
4184: else
4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186: $as_echo "no" >&6; }
4187: fi
4188:
4189:
4190: test -n "$CXX" && break
4191: done
4192: fi
4193: if test -z "$CXX"; then
4194: ac_ct_CXX=$CXX
4195: for ac_prog in g++-4.4 g++
4196: do
4197: # Extract the first word of "$ac_prog", so it can be a program name with args.
4198: set dummy $ac_prog; ac_word=$2
4199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200: $as_echo_n "checking for $ac_word... " >&6; }
4201: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4202: $as_echo_n "(cached) " >&6
4203: else
4204: if test -n "$ac_ct_CXX"; then
4205: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4206: else
4207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208: for as_dir in $PATH
4209: do
4210: IFS=$as_save_IFS
4211: test -z "$as_dir" && as_dir=.
4212: for ac_exec_ext in '' $ac_executable_extensions; do
4213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214: ac_cv_prog_ac_ct_CXX="$ac_prog"
4215: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216: break 2
4217: fi
4218: done
4219: done
4220: IFS=$as_save_IFS
4221:
4222: fi
4223: fi
4224: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4225: if test -n "$ac_ct_CXX"; then
4226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4227: $as_echo "$ac_ct_CXX" >&6; }
4228: else
4229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230: $as_echo "no" >&6; }
4231: fi
4232:
4233:
4234: test -n "$ac_ct_CXX" && break
4235: done
4236:
4237: if test "x$ac_ct_CXX" = x; then
4238: CXX="g++"
4239: else
4240: case $cross_compiling:$ac_tool_warned in
4241: yes:)
4242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244: ac_tool_warned=yes ;;
4245: esac
4246: CXX=$ac_ct_CXX
4247: fi
4248: fi
4249:
4250: fi
4251: fi
4252: # Provide some information about the compiler.
4253: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4254: set X $ac_compile
4255: ac_compiler=$2
4256: for ac_option in --version -v -V -qversion; do
4257: { { ac_try="$ac_compiler $ac_option >&5"
4258: case "(($ac_try" in
4259: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260: *) ac_try_echo=$ac_try;;
4261: esac
4262: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263: $as_echo "$ac_try_echo"; } >&5
4264: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4265: ac_status=$?
4266: if test -s conftest.err; then
4267: sed '10a\
4268: ... rest of stderr output deleted ...
4269: 10q' conftest.err >conftest.er1
4270: cat conftest.er1 >&5
4271: fi
4272: rm -f conftest.er1 conftest.err
4273: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274: test $ac_status = 0; }
4275: done
4276:
4277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4278: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4279: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4280: $as_echo_n "(cached) " >&6
4281: else
4282: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283: /* end confdefs.h. */
4284:
4285: int
4286: main ()
4287: {
4288: #ifndef __GNUC__
4289: choke me
4290: #endif
4291:
4292: ;
4293: return 0;
4294: }
4295: _ACEOF
4296: if ac_fn_cxx_try_compile "$LINENO"; then :
4297: ac_compiler_gnu=yes
4298: else
4299: ac_compiler_gnu=no
4300: fi
4301: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4303:
4304: fi
4305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4306: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4307: if test $ac_compiler_gnu = yes; then
4308: GXX=yes
4309: else
4310: GXX=
4311: fi
4312: ac_test_CXXFLAGS=${CXXFLAGS+set}
4313: ac_save_CXXFLAGS=$CXXFLAGS
4314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4315: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4316: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4317: $as_echo_n "(cached) " >&6
4318: else
4319: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4320: ac_cxx_werror_flag=yes
4321: ac_cv_prog_cxx_g=no
4322: CXXFLAGS="-g"
4323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324: /* end confdefs.h. */
4325:
4326: int
4327: main ()
4328: {
4329:
4330: ;
4331: return 0;
4332: }
4333: _ACEOF
4334: if ac_fn_cxx_try_compile "$LINENO"; then :
4335: ac_cv_prog_cxx_g=yes
4336: else
4337: CXXFLAGS=""
4338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339: /* end confdefs.h. */
4340:
4341: int
4342: main ()
4343: {
4344:
4345: ;
4346: return 0;
4347: }
4348: _ACEOF
4349: if ac_fn_cxx_try_compile "$LINENO"; then :
4350:
4351: else
4352: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4353: CXXFLAGS="-g"
4354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355: /* end confdefs.h. */
4356:
4357: int
4358: main ()
4359: {
4360:
4361: ;
4362: return 0;
4363: }
4364: _ACEOF
4365: if ac_fn_cxx_try_compile "$LINENO"; then :
4366: ac_cv_prog_cxx_g=yes
4367: fi
4368: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369: fi
4370: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371: fi
4372: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4374: fi
4375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4376: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4377: if test "$ac_test_CXXFLAGS" = set; then
4378: CXXFLAGS=$ac_save_CXXFLAGS
4379: elif test $ac_cv_prog_cxx_g = yes; then
4380: if test "$GXX" = yes; then
4381: CXXFLAGS="-g -O2"
4382: else
4383: CXXFLAGS="-g"
4384: fi
4385: else
4386: if test "$GXX" = yes; then
4387: CXXFLAGS="-O2"
4388: else
4389: CXXFLAGS=
4390: fi
4391: fi
4392: ac_ext=c
4393: ac_cpp='$CPP $CPPFLAGS'
4394: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397:
4398: depcc="$CXX" am_compiler_list=
4399:
4400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4401: $as_echo_n "checking dependency style of $depcc... " >&6; }
4402: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4403: $as_echo_n "(cached) " >&6
4404: else
4405: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4406: # We make a subdir and do the tests there. Otherwise we can end up
4407: # making bogus files that we don't know about and never remove. For
4408: # instance it was reported that on HP-UX the gcc test will end up
4409: # making a dummy file named `D' -- because `-MD' means `put the output
4410: # in D'.
4411: mkdir conftest.dir
4412: # Copy depcomp to subdir because otherwise we won't find it if we're
4413: # using a relative directory.
4414: cp "$am_depcomp" conftest.dir
4415: cd conftest.dir
4416: # We will build objects and dependencies in a subdirectory because
4417: # it helps to detect inapplicable dependency modes. For instance
4418: # both Tru64's cc and ICC support -MD to output dependencies as a
4419: # side effect of compilation, but ICC will put the dependencies in
4420: # the current directory while Tru64 will put them in the object
4421: # directory.
4422: mkdir sub
4423:
4424: am_cv_CXX_dependencies_compiler_type=none
4425: if test "$am_compiler_list" = ""; then
4426: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4427: fi
4428: am__universal=false
4429: case " $depcc " in #(
4430: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4431: esac
4432:
4433: for depmode in $am_compiler_list; do
4434: # Setup a source with many dependencies, because some compilers
4435: # like to wrap large dependency lists on column 80 (with \), and
4436: # we should not choose a depcomp mode which is confused by this.
4437: #
4438: # We need to recreate these files for each test, as the compiler may
4439: # overwrite some of them when testing with obscure command lines.
4440: # This happens at least with the AIX C compiler.
4441: : > sub/conftest.c
4442: for i in 1 2 3 4 5 6; do
4443: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4444: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4445: # Solaris 8's {/usr,}/bin/sh.
4446: touch sub/conftst$i.h
4447: done
4448: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4449:
4450: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4451: # mode. It turns out that the SunPro C++ compiler does not properly
4452: # handle `-M -o', and we need to detect this. Also, some Intel
4453: # versions had trouble with output in subdirs
4454: am__obj=sub/conftest.${OBJEXT-o}
4455: am__minus_obj="-o $am__obj"
4456: case $depmode in
4457: gcc)
4458: # This depmode causes a compiler race in universal mode.
4459: test "$am__universal" = false || continue
4460: ;;
4461: nosideeffect)
4462: # after this tag, mechanisms are not by side-effect, so they'll
4463: # only be used when explicitly requested
4464: if test "x$enable_dependency_tracking" = xyes; then
4465: continue
4466: else
4467: break
4468: fi
4469: ;;
4470: msvisualcpp | msvcmsys)
4471: # This compiler won't grok `-c -o', but also, the minuso test has
4472: # not run yet. These depmodes are late enough in the game, and
4473: # so weak that their functioning should not be impacted.
4474: am__obj=conftest.${OBJEXT-o}
4475: am__minus_obj=
4476: ;;
4477: none) break ;;
4478: esac
4479: if depmode=$depmode \
4480: source=sub/conftest.c object=$am__obj \
4481: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4482: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4483: >/dev/null 2>conftest.err &&
4484: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4485: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4486: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4487: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4488: # icc doesn't choke on unknown options, it will just issue warnings
4489: # or remarks (even with -Werror). So we grep stderr for any message
4490: # that says an option was ignored or not supported.
4491: # When given -MP, icc 7.0 and 7.1 complain thusly:
4492: # icc: Command line warning: ignoring option '-M'; no argument required
4493: # The diagnosis changed in icc 8.0:
4494: # icc: Command line remark: option '-MP' not supported
4495: if (grep 'ignoring option' conftest.err ||
4496: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4497: am_cv_CXX_dependencies_compiler_type=$depmode
4498: break
4499: fi
4500: fi
4501: done
4502:
4503: cd ..
4504: rm -rf conftest.dir
4505: else
4506: am_cv_CXX_dependencies_compiler_type=none
4507: fi
4508:
4509: fi
4510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4511: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4512: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4513:
4514: if
4515: test "x$enable_dependency_tracking" != xno \
4516: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4517: am__fastdepCXX_TRUE=
4518: am__fastdepCXX_FALSE='#'
4519: else
4520: am__fastdepCXX_TRUE='#'
4521: am__fastdepCXX_FALSE=
4522: fi
4523:
4524:
4525:
4526: if test "$GXX" != yes; then
4527: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4528: fi
4529:
4530: ac_ext=f
4531: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4532: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4534: if test -n "$ac_tool_prefix"; then
4535: for ac_prog in gfortran-4.4 gfortran
4536: do
4537: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540: $as_echo_n "checking for $ac_word... " >&6; }
4541: if test "${ac_cv_prog_F77+set}" = set; then :
4542: $as_echo_n "(cached) " >&6
4543: else
4544: if test -n "$F77"; then
4545: ac_cv_prog_F77="$F77" # Let the user override the test.
4546: else
4547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548: for as_dir in $PATH
4549: do
4550: IFS=$as_save_IFS
4551: test -z "$as_dir" && as_dir=.
4552: for ac_exec_ext in '' $ac_executable_extensions; do
4553: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4555: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556: break 2
4557: fi
4558: done
4559: done
4560: IFS=$as_save_IFS
4561:
4562: fi
4563: fi
4564: F77=$ac_cv_prog_F77
4565: if test -n "$F77"; then
4566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4567: $as_echo "$F77" >&6; }
4568: else
4569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570: $as_echo "no" >&6; }
4571: fi
4572:
4573:
4574: test -n "$F77" && break
4575: done
4576: fi
4577: if test -z "$F77"; then
4578: ac_ct_F77=$F77
4579: for ac_prog in gfortran-4.4 gfortran
4580: do
4581: # Extract the first word of "$ac_prog", so it can be a program name with args.
4582: set dummy $ac_prog; ac_word=$2
4583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584: $as_echo_n "checking for $ac_word... " >&6; }
4585: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4586: $as_echo_n "(cached) " >&6
4587: else
4588: if test -n "$ac_ct_F77"; then
4589: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4590: else
4591: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592: for as_dir in $PATH
4593: do
4594: IFS=$as_save_IFS
4595: test -z "$as_dir" && as_dir=.
4596: for ac_exec_ext in '' $ac_executable_extensions; do
4597: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598: ac_cv_prog_ac_ct_F77="$ac_prog"
4599: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600: break 2
4601: fi
4602: done
4603: done
4604: IFS=$as_save_IFS
4605:
4606: fi
4607: fi
4608: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4609: if test -n "$ac_ct_F77"; then
4610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4611: $as_echo "$ac_ct_F77" >&6; }
4612: else
4613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614: $as_echo "no" >&6; }
4615: fi
4616:
4617:
4618: test -n "$ac_ct_F77" && break
4619: done
4620:
4621: if test "x$ac_ct_F77" = x; then
4622: F77=""
4623: else
4624: case $cross_compiling:$ac_tool_warned in
4625: yes:)
4626: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628: ac_tool_warned=yes ;;
4629: esac
4630: F77=$ac_ct_F77
4631: fi
4632: fi
4633:
4634:
4635: # Provide some information about the compiler.
4636: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4637: set X $ac_compile
4638: ac_compiler=$2
4639: for ac_option in --version -v -V -qversion; do
4640: { { ac_try="$ac_compiler $ac_option >&5"
4641: case "(($ac_try" in
4642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643: *) ac_try_echo=$ac_try;;
4644: esac
4645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646: $as_echo "$ac_try_echo"; } >&5
4647: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4648: ac_status=$?
4649: if test -s conftest.err; then
4650: sed '10a\
4651: ... rest of stderr output deleted ...
4652: 10q' conftest.err >conftest.er1
4653: cat conftest.er1 >&5
4654: fi
4655: rm -f conftest.er1 conftest.err
4656: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657: test $ac_status = 0; }
4658: done
4659: rm -f a.out
4660:
4661: # If we don't use `.F' as extension, the preprocessor is not run on the
4662: # input file. (Note that this only needs to work for GNU compilers.)
4663: ac_save_ext=$ac_ext
4664: ac_ext=F
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4666: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4667: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4668: $as_echo_n "(cached) " >&6
4669: else
4670: cat > conftest.$ac_ext <<_ACEOF
4671: program main
4672: #ifndef __GNUC__
4673: choke me
4674: #endif
4675:
4676: end
4677: _ACEOF
4678: if ac_fn_f77_try_compile "$LINENO"; then :
4679: ac_compiler_gnu=yes
4680: else
4681: ac_compiler_gnu=no
4682: fi
4683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4685:
4686: fi
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4688: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4689: ac_ext=$ac_save_ext
4690: ac_test_FFLAGS=${FFLAGS+set}
4691: ac_save_FFLAGS=$FFLAGS
4692: FFLAGS=
4693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4694: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4695: if test "${ac_cv_prog_f77_g+set}" = set; then :
4696: $as_echo_n "(cached) " >&6
4697: else
4698: FFLAGS=-g
4699: cat > conftest.$ac_ext <<_ACEOF
4700: program main
4701:
4702: end
4703: _ACEOF
4704: if ac_fn_f77_try_compile "$LINENO"; then :
4705: ac_cv_prog_f77_g=yes
4706: else
4707: ac_cv_prog_f77_g=no
4708: fi
4709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710:
4711: fi
4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4713: $as_echo "$ac_cv_prog_f77_g" >&6; }
4714: if test "$ac_test_FFLAGS" = set; then
4715: FFLAGS=$ac_save_FFLAGS
4716: elif test $ac_cv_prog_f77_g = yes; then
4717: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4718: FFLAGS="-g -O2"
4719: else
4720: FFLAGS="-g"
4721: fi
4722: else
4723: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4724: FFLAGS="-O2"
4725: else
4726: FFLAGS=
4727: fi
4728: fi
4729:
4730: if test $ac_compiler_gnu = yes; then
4731: G77=yes
4732: else
4733: G77=
4734: fi
4735: ac_ext=c
4736: ac_cpp='$CPP $CPPFLAGS'
4737: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740:
4741:
4742: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4743: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4744: fi
4745:
4746: ac_ext=${ac_fc_srcext-f}
4747: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4748: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4749: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4750: if test -n "$ac_tool_prefix"; then
4751: for ac_prog in gfortran-4.4 gfortran
4752: do
4753: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756: $as_echo_n "checking for $ac_word... " >&6; }
4757: if test "${ac_cv_prog_FC+set}" = set; then :
4758: $as_echo_n "(cached) " >&6
4759: else
4760: if test -n "$FC"; then
4761: ac_cv_prog_FC="$FC" # Let the user override the test.
4762: else
4763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764: for as_dir in $PATH
4765: do
4766: IFS=$as_save_IFS
4767: test -z "$as_dir" && as_dir=.
4768: for ac_exec_ext in '' $ac_executable_extensions; do
4769: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772: break 2
4773: fi
4774: done
4775: done
4776: IFS=$as_save_IFS
4777:
4778: fi
4779: fi
4780: FC=$ac_cv_prog_FC
4781: if test -n "$FC"; then
4782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4783: $as_echo "$FC" >&6; }
4784: else
4785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786: $as_echo "no" >&6; }
4787: fi
4788:
4789:
4790: test -n "$FC" && break
4791: done
4792: fi
4793: if test -z "$FC"; then
4794: ac_ct_FC=$FC
4795: for ac_prog in gfortran-4.4 gfortran
4796: do
4797: # Extract the first word of "$ac_prog", so it can be a program name with args.
4798: set dummy $ac_prog; ac_word=$2
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800: $as_echo_n "checking for $ac_word... " >&6; }
4801: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4802: $as_echo_n "(cached) " >&6
4803: else
4804: if test -n "$ac_ct_FC"; then
4805: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4806: else
4807: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808: for as_dir in $PATH
4809: do
4810: IFS=$as_save_IFS
4811: test -z "$as_dir" && as_dir=.
4812: for ac_exec_ext in '' $ac_executable_extensions; do
4813: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814: ac_cv_prog_ac_ct_FC="$ac_prog"
4815: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816: break 2
4817: fi
4818: done
4819: done
4820: IFS=$as_save_IFS
4821:
4822: fi
4823: fi
4824: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4825: if test -n "$ac_ct_FC"; then
4826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4827: $as_echo "$ac_ct_FC" >&6; }
4828: else
4829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830: $as_echo "no" >&6; }
4831: fi
4832:
4833:
4834: test -n "$ac_ct_FC" && break
4835: done
4836:
4837: if test "x$ac_ct_FC" = x; then
4838: FC=""
4839: else
4840: case $cross_compiling:$ac_tool_warned in
4841: yes:)
4842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844: ac_tool_warned=yes ;;
4845: esac
4846: FC=$ac_ct_FC
4847: fi
4848: fi
4849:
4850:
4851: # Provide some information about the compiler.
4852: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4853: set X $ac_compile
4854: ac_compiler=$2
4855: for ac_option in --version -v -V -qversion; do
4856: { { ac_try="$ac_compiler $ac_option >&5"
4857: case "(($ac_try" in
4858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859: *) ac_try_echo=$ac_try;;
4860: esac
4861: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862: $as_echo "$ac_try_echo"; } >&5
4863: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4864: ac_status=$?
4865: if test -s conftest.err; then
4866: sed '10a\
4867: ... rest of stderr output deleted ...
4868: 10q' conftest.err >conftest.er1
4869: cat conftest.er1 >&5
4870: fi
4871: rm -f conftest.er1 conftest.err
4872: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873: test $ac_status = 0; }
4874: done
4875: rm -f a.out
4876:
4877: # If we don't use `.F' as extension, the preprocessor is not run on the
4878: # input file. (Note that this only needs to work for GNU compilers.)
4879: ac_save_ext=$ac_ext
4880: ac_ext=F
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4882: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4883: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4884: $as_echo_n "(cached) " >&6
4885: else
4886: cat > conftest.$ac_ext <<_ACEOF
4887: program main
4888: #ifndef __GNUC__
4889: choke me
4890: #endif
4891:
4892: end
4893: _ACEOF
4894: if ac_fn_fc_try_compile "$LINENO"; then :
4895: ac_compiler_gnu=yes
4896: else
4897: ac_compiler_gnu=no
4898: fi
4899: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4901:
4902: fi
4903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4904: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4905: ac_ext=$ac_save_ext
4906: ac_test_FCFLAGS=${FCFLAGS+set}
4907: ac_save_FCFLAGS=$FCFLAGS
4908: FCFLAGS=
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4910: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4911: if test "${ac_cv_prog_fc_g+set}" = set; then :
4912: $as_echo_n "(cached) " >&6
4913: else
4914: FCFLAGS=-g
4915: cat > conftest.$ac_ext <<_ACEOF
4916: program main
4917:
4918: end
4919: _ACEOF
4920: if ac_fn_fc_try_compile "$LINENO"; then :
4921: ac_cv_prog_fc_g=yes
4922: else
4923: ac_cv_prog_fc_g=no
4924: fi
4925: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926:
4927: fi
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4929: $as_echo "$ac_cv_prog_fc_g" >&6; }
4930: if test "$ac_test_FCFLAGS" = set; then
4931: FCFLAGS=$ac_save_FCFLAGS
4932: elif test $ac_cv_prog_fc_g = yes; then
4933: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4934: FCFLAGS="-g -O2"
4935: else
4936: FCFLAGS="-g"
4937: fi
4938: else
4939: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4940: FCFLAGS="-O2"
4941: else
4942: FCFLAGS=
4943: fi
4944: fi
4945:
4946: ac_ext=c
4947: ac_cpp='$CPP $CPPFLAGS'
4948: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951:
4952:
4953: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4954: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4955: fi
4956:
4957: if test x"$FC" != x""; then
4958: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4959: awk -F. '{ printf("%s", $1);}'`
4960: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4961: awk -F. '{ printf("%s", $2);}'`
4962: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4963: OPTIMISATION_F=-O3
4964: else
4965: if test $GCC_VERSION_MAJEURE -ge 5; then
4966: OPTIMISATION_F=-O3
4967: else
4968: OPTIMISATION_F=-O2
4969: fi
4970: fi
4971: fi
4972:
4973:
4974: ac_ext=c
4975: ac_cpp='$CPP $CPPFLAGS'
4976: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981: # On Suns, sometimes $CPP names a directory.
4982: if test -n "$CPP" && test -d "$CPP"; then
4983: CPP=
4984: fi
4985: if test -z "$CPP"; then
4986: if test "${ac_cv_prog_CPP+set}" = set; then :
4987: $as_echo_n "(cached) " >&6
4988: else
4989: # Double quotes because CPP needs to be expanded
4990: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991: do
4992: ac_preproc_ok=false
4993: for ac_c_preproc_warn_flag in '' yes
4994: do
4995: # Use a header file that comes with gcc, so configuring glibc
4996: # with a fresh cross-compiler works.
4997: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998: # <limits.h> exists even on freestanding compilers.
4999: # On the NeXT, cc -E runs the code through the compiler's parser,
5000: # not just through cpp. "Syntax error" is here to catch this case.
5001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002: /* end confdefs.h. */
5003: #ifdef __STDC__
5004: # include <limits.h>
5005: #else
5006: # include <assert.h>
5007: #endif
5008: Syntax error
5009: _ACEOF
5010: if ac_fn_c_try_cpp "$LINENO"; then :
5011:
5012: else
5013: # Broken: fails on valid input.
5014: continue
5015: fi
5016: rm -f conftest.err conftest.$ac_ext
5017:
5018: # OK, works on sane cases. Now check whether nonexistent headers
5019: # can be detected and how.
5020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021: /* end confdefs.h. */
5022: #include <ac_nonexistent.h>
5023: _ACEOF
5024: if ac_fn_c_try_cpp "$LINENO"; then :
5025: # Broken: success on invalid input.
5026: continue
5027: else
5028: # Passes both tests.
5029: ac_preproc_ok=:
5030: break
5031: fi
5032: rm -f conftest.err conftest.$ac_ext
5033:
5034: done
5035: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036: rm -f conftest.err conftest.$ac_ext
5037: if $ac_preproc_ok; then :
5038: break
5039: fi
5040:
5041: done
5042: ac_cv_prog_CPP=$CPP
5043:
5044: fi
5045: CPP=$ac_cv_prog_CPP
5046: else
5047: ac_cv_prog_CPP=$CPP
5048: fi
5049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050: $as_echo "$CPP" >&6; }
5051: ac_preproc_ok=false
5052: for ac_c_preproc_warn_flag in '' yes
5053: do
5054: # Use a header file that comes with gcc, so configuring glibc
5055: # with a fresh cross-compiler works.
5056: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057: # <limits.h> exists even on freestanding compilers.
5058: # On the NeXT, cc -E runs the code through the compiler's parser,
5059: # not just through cpp. "Syntax error" is here to catch this case.
5060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061: /* end confdefs.h. */
5062: #ifdef __STDC__
5063: # include <limits.h>
5064: #else
5065: # include <assert.h>
5066: #endif
5067: Syntax error
5068: _ACEOF
5069: if ac_fn_c_try_cpp "$LINENO"; then :
5070:
5071: else
5072: # Broken: fails on valid input.
5073: continue
5074: fi
5075: rm -f conftest.err conftest.$ac_ext
5076:
5077: # OK, works on sane cases. Now check whether nonexistent headers
5078: # can be detected and how.
5079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080: /* end confdefs.h. */
5081: #include <ac_nonexistent.h>
5082: _ACEOF
5083: if ac_fn_c_try_cpp "$LINENO"; then :
5084: # Broken: success on invalid input.
5085: continue
5086: else
5087: # Passes both tests.
5088: ac_preproc_ok=:
5089: break
5090: fi
5091: rm -f conftest.err conftest.$ac_ext
5092:
5093: done
5094: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095: rm -f conftest.err conftest.$ac_ext
5096: if $ac_preproc_ok; then :
5097:
5098: else
5099: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5102: See \`config.log' for more details." "$LINENO" 5; }
5103: fi
5104:
5105: ac_ext=c
5106: ac_cpp='$CPP $CPPFLAGS'
5107: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110:
5111:
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5113: $as_echo_n "checking for X... " >&6; }
5114:
5115:
5116: # Check whether --with-x was given.
5117: if test "${with_x+set}" = set; then :
5118: withval=$with_x;
5119: fi
5120:
5121: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5122: if test "x$with_x" = xno; then
5123: # The user explicitly disabled X.
5124: have_x=disabled
5125: else
5126: case $x_includes,$x_libraries in #(
5127: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5128: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5129: $as_echo_n "(cached) " >&6
5130: else
5131: # One or both of the vars are not set, and there is no cached value.
5132: ac_x_includes=no ac_x_libraries=no
5133: rm -f -r conftest.dir
5134: if mkdir conftest.dir; then
5135: cd conftest.dir
5136: cat >Imakefile <<'_ACEOF'
5137: incroot:
5138: @echo incroot='${INCROOT}'
5139: usrlibdir:
5140: @echo usrlibdir='${USRLIBDIR}'
5141: libdir:
5142: @echo libdir='${LIBDIR}'
5143: _ACEOF
5144: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5145: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5146: for ac_var in incroot usrlibdir libdir; do
5147: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5148: done
5149: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5150: for ac_extension in a so sl dylib la dll; do
5151: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5152: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5153: ac_im_usrlibdir=$ac_im_libdir; break
5154: fi
5155: done
5156: # Screen out bogus values from the imake configuration. They are
5157: # bogus both because they are the default anyway, and because
5158: # using them would break gcc on systems where it needs fixed includes.
5159: case $ac_im_incroot in
5160: /usr/include) ac_x_includes= ;;
5161: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5162: esac
5163: case $ac_im_usrlibdir in
5164: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5165: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5166: esac
5167: fi
5168: cd ..
5169: rm -f -r conftest.dir
5170: fi
5171:
5172: # Standard set of common directories for X headers.
5173: # Check X11 before X11Rn because it is often a symlink to the current release.
5174: ac_x_header_dirs='
5175: /usr/X11/include
5176: /usr/X11R7/include
5177: /usr/X11R6/include
5178: /usr/X11R5/include
5179: /usr/X11R4/include
5180:
5181: /usr/include/X11
5182: /usr/include/X11R7
5183: /usr/include/X11R6
5184: /usr/include/X11R5
5185: /usr/include/X11R4
5186:
5187: /usr/local/X11/include
5188: /usr/local/X11R7/include
5189: /usr/local/X11R6/include
5190: /usr/local/X11R5/include
5191: /usr/local/X11R4/include
5192:
5193: /usr/local/include/X11
5194: /usr/local/include/X11R7
5195: /usr/local/include/X11R6
5196: /usr/local/include/X11R5
5197: /usr/local/include/X11R4
5198:
5199: /usr/X386/include
5200: /usr/x386/include
5201: /usr/XFree86/include/X11
5202:
5203: /usr/include
5204: /usr/local/include
5205: /usr/unsupported/include
5206: /usr/athena/include
5207: /usr/local/x11r5/include
5208: /usr/lpp/Xamples/include
5209:
5210: /usr/openwin/include
5211: /usr/openwin/share/include'
5212:
5213: if test "$ac_x_includes" = no; then
5214: # Guess where to find include files, by looking for Xlib.h.
5215: # First, try using that file with no special directory specified.
5216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217: /* end confdefs.h. */
5218: #include <X11/Xlib.h>
5219: _ACEOF
5220: if ac_fn_c_try_cpp "$LINENO"; then :
5221: # We can compile using X headers with no special include directory.
5222: ac_x_includes=
5223: else
5224: for ac_dir in $ac_x_header_dirs; do
5225: if test -r "$ac_dir/X11/Xlib.h"; then
5226: ac_x_includes=$ac_dir
5227: break
5228: fi
5229: done
5230: fi
5231: rm -f conftest.err conftest.$ac_ext
5232: fi # $ac_x_includes = no
5233:
5234: if test "$ac_x_libraries" = no; then
5235: # Check for the libraries.
5236: # See if we find them without any special options.
5237: # Don't add to $LIBS permanently.
5238: ac_save_LIBS=$LIBS
5239: LIBS="-lX11 $LIBS"
5240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241: /* end confdefs.h. */
5242: #include <X11/Xlib.h>
5243: int
5244: main ()
5245: {
5246: XrmInitialize ()
5247: ;
5248: return 0;
5249: }
5250: _ACEOF
5251: if ac_fn_c_try_link "$LINENO"; then :
5252: LIBS=$ac_save_LIBS
5253: # We can link X programs with no special library path.
5254: ac_x_libraries=
5255: else
5256: LIBS=$ac_save_LIBS
5257: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5258: do
5259: # Don't even attempt the hair of trying to link an X program!
5260: for ac_extension in a so sl dylib la dll; do
5261: if test -r "$ac_dir/libX11.$ac_extension"; then
5262: ac_x_libraries=$ac_dir
5263: break 2
5264: fi
5265: done
5266: done
5267: fi
5268: rm -f core conftest.err conftest.$ac_objext \
5269: conftest$ac_exeext conftest.$ac_ext
5270: fi # $ac_x_libraries = no
5271:
5272: case $ac_x_includes,$ac_x_libraries in #(
5273: no,* | *,no | *\'*)
5274: # Didn't find X, or a directory has "'" in its name.
5275: ac_cv_have_x="have_x=no";; #(
5276: *)
5277: # Record where we found X for the cache.
5278: ac_cv_have_x="have_x=yes\
5279: ac_x_includes='$ac_x_includes'\
5280: ac_x_libraries='$ac_x_libraries'"
5281: esac
5282: fi
5283: ;; #(
5284: *) have_x=yes;;
5285: esac
5286: eval "$ac_cv_have_x"
5287: fi # $with_x != no
5288:
5289: if test "$have_x" != yes; then
5290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5291: $as_echo "$have_x" >&6; }
5292: no_x=yes
5293: else
5294: # If each of the values was on the command line, it overrides each guess.
5295: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5296: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5297: # Update the cache value to reflect the command line values.
5298: ac_cv_have_x="have_x=yes\
5299: ac_x_includes='$x_includes'\
5300: ac_x_libraries='$x_libraries'"
5301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5302: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5303: fi
5304:
5305: if test "$no_x" = yes; then
5306: # Not all programs may use this symbol, but it does not hurt to define it.
5307:
5308: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5309:
5310: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5311: else
5312: if test -n "$x_includes"; then
5313: X_CFLAGS="$X_CFLAGS -I$x_includes"
5314: fi
5315:
5316: # It would also be nice to do this for all -L options, not just this one.
5317: if test -n "$x_libraries"; then
5318: X_LIBS="$X_LIBS -L$x_libraries"
5319: # For Solaris; some versions of Sun CC require a space after -R and
5320: # others require no space. Words are not sufficient . . . .
5321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5322: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5323: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5324: ac_xsave_c_werror_flag=$ac_c_werror_flag
5325: ac_c_werror_flag=yes
5326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327: /* end confdefs.h. */
5328:
5329: int
5330: main ()
5331: {
5332:
5333: ;
5334: return 0;
5335: }
5336: _ACEOF
5337: if ac_fn_c_try_link "$LINENO"; then :
5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339: $as_echo "no" >&6; }
5340: X_LIBS="$X_LIBS -R$x_libraries"
5341: else
5342: LIBS="$ac_xsave_LIBS -R $x_libraries"
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
5345:
5346: int
5347: main ()
5348: {
5349:
5350: ;
5351: return 0;
5352: }
5353: _ACEOF
5354: if ac_fn_c_try_link "$LINENO"; then :
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356: $as_echo "yes" >&6; }
5357: X_LIBS="$X_LIBS -R $x_libraries"
5358: else
5359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5360: $as_echo "neither works" >&6; }
5361: fi
5362: rm -f core conftest.err conftest.$ac_objext \
5363: conftest$ac_exeext conftest.$ac_ext
5364: fi
5365: rm -f core conftest.err conftest.$ac_objext \
5366: conftest$ac_exeext conftest.$ac_ext
5367: ac_c_werror_flag=$ac_xsave_c_werror_flag
5368: LIBS=$ac_xsave_LIBS
5369: fi
5370:
5371: # Check for system-dependent libraries X programs must link with.
5372: # Do this before checking for the system-independent R6 libraries
5373: # (-lICE), since we may need -lsocket or whatever for X linking.
5374:
5375: if test "$ISC" = yes; then
5376: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5377: else
5378: # Martyn Johnson says this is needed for Ultrix, if the X
5379: # libraries were built with DECnet support. And Karl Berry says
5380: # the Alpha needs dnet_stub (dnet does not exist).
5381: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5382: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383: /* end confdefs.h. */
5384:
5385: /* Override any GCC internal prototype to avoid an error.
5386: Use char because int might match the return type of a GCC
5387: builtin and then its argument prototype would still apply. */
5388: #ifdef __cplusplus
5389: extern "C"
5390: #endif
5391: char XOpenDisplay ();
5392: int
5393: main ()
5394: {
5395: return XOpenDisplay ();
5396: ;
5397: return 0;
5398: }
5399: _ACEOF
5400: if ac_fn_c_try_link "$LINENO"; then :
5401:
5402: else
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5404: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5405: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5406: $as_echo_n "(cached) " >&6
5407: else
5408: ac_check_lib_save_LIBS=$LIBS
5409: LIBS="-ldnet $LIBS"
5410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411: /* end confdefs.h. */
5412:
5413: /* Override any GCC internal prototype to avoid an error.
5414: Use char because int might match the return type of a GCC
5415: builtin and then its argument prototype would still apply. */
5416: #ifdef __cplusplus
5417: extern "C"
5418: #endif
5419: char dnet_ntoa ();
5420: int
5421: main ()
5422: {
5423: return dnet_ntoa ();
5424: ;
5425: return 0;
5426: }
5427: _ACEOF
5428: if ac_fn_c_try_link "$LINENO"; then :
5429: ac_cv_lib_dnet_dnet_ntoa=yes
5430: else
5431: ac_cv_lib_dnet_dnet_ntoa=no
5432: fi
5433: rm -f core conftest.err conftest.$ac_objext \
5434: conftest$ac_exeext conftest.$ac_ext
5435: LIBS=$ac_check_lib_save_LIBS
5436: fi
5437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5438: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5439: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5440: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5441: fi
5442:
5443: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5445: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5446: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5447: $as_echo_n "(cached) " >&6
5448: else
5449: ac_check_lib_save_LIBS=$LIBS
5450: LIBS="-ldnet_stub $LIBS"
5451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452: /* end confdefs.h. */
5453:
5454: /* Override any GCC internal prototype to avoid an error.
5455: Use char because int might match the return type of a GCC
5456: builtin and then its argument prototype would still apply. */
5457: #ifdef __cplusplus
5458: extern "C"
5459: #endif
5460: char dnet_ntoa ();
5461: int
5462: main ()
5463: {
5464: return dnet_ntoa ();
5465: ;
5466: return 0;
5467: }
5468: _ACEOF
5469: if ac_fn_c_try_link "$LINENO"; then :
5470: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5471: else
5472: ac_cv_lib_dnet_stub_dnet_ntoa=no
5473: fi
5474: rm -f core conftest.err conftest.$ac_objext \
5475: conftest$ac_exeext conftest.$ac_ext
5476: LIBS=$ac_check_lib_save_LIBS
5477: fi
5478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5479: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5480: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5481: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5482: fi
5483:
5484: fi
5485: fi
5486: rm -f core conftest.err conftest.$ac_objext \
5487: conftest$ac_exeext conftest.$ac_ext
5488: LIBS="$ac_xsave_LIBS"
5489:
5490: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5491: # to get the SysV transport functions.
5492: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5493: # needs -lnsl.
5494: # The nsl library prevents programs from opening the X display
5495: # on Irix 5.2, according to T.E. Dickey.
5496: # The functions gethostbyname, getservbyname, and inet_addr are
5497: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5498: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5499: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5500:
5501: fi
5502:
5503: if test $ac_cv_func_gethostbyname = no; then
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5505: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5506: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5507: $as_echo_n "(cached) " >&6
5508: else
5509: ac_check_lib_save_LIBS=$LIBS
5510: LIBS="-lnsl $LIBS"
5511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512: /* end confdefs.h. */
5513:
5514: /* Override any GCC internal prototype to avoid an error.
5515: Use char because int might match the return type of a GCC
5516: builtin and then its argument prototype would still apply. */
5517: #ifdef __cplusplus
5518: extern "C"
5519: #endif
5520: char gethostbyname ();
5521: int
5522: main ()
5523: {
5524: return gethostbyname ();
5525: ;
5526: return 0;
5527: }
5528: _ACEOF
5529: if ac_fn_c_try_link "$LINENO"; then :
5530: ac_cv_lib_nsl_gethostbyname=yes
5531: else
5532: ac_cv_lib_nsl_gethostbyname=no
5533: fi
5534: rm -f core conftest.err conftest.$ac_objext \
5535: conftest$ac_exeext conftest.$ac_ext
5536: LIBS=$ac_check_lib_save_LIBS
5537: fi
5538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5539: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5540: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5541: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5542: fi
5543:
5544: if test $ac_cv_lib_nsl_gethostbyname = no; then
5545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5546: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5547: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5548: $as_echo_n "(cached) " >&6
5549: else
5550: ac_check_lib_save_LIBS=$LIBS
5551: LIBS="-lbsd $LIBS"
5552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553: /* end confdefs.h. */
5554:
5555: /* Override any GCC internal prototype to avoid an error.
5556: Use char because int might match the return type of a GCC
5557: builtin and then its argument prototype would still apply. */
5558: #ifdef __cplusplus
5559: extern "C"
5560: #endif
5561: char gethostbyname ();
5562: int
5563: main ()
5564: {
5565: return gethostbyname ();
5566: ;
5567: return 0;
5568: }
5569: _ACEOF
5570: if ac_fn_c_try_link "$LINENO"; then :
5571: ac_cv_lib_bsd_gethostbyname=yes
5572: else
5573: ac_cv_lib_bsd_gethostbyname=no
5574: fi
5575: rm -f core conftest.err conftest.$ac_objext \
5576: conftest$ac_exeext conftest.$ac_ext
5577: LIBS=$ac_check_lib_save_LIBS
5578: fi
5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5580: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5581: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5582: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5583: fi
5584:
5585: fi
5586: fi
5587:
5588: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5589: # socket/setsockopt and other routines are undefined under SCO ODT
5590: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5591: # on later versions), says Simon Leinen: it contains gethostby*
5592: # variants that don't use the name server (or something). -lsocket
5593: # must be given before -lnsl if both are needed. We assume that
5594: # if connect needs -lnsl, so does gethostbyname.
5595: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5596: if test "x$ac_cv_func_connect" = x""yes; then :
5597:
5598: fi
5599:
5600: if test $ac_cv_func_connect = no; then
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5602: $as_echo_n "checking for connect in -lsocket... " >&6; }
5603: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5604: $as_echo_n "(cached) " >&6
5605: else
5606: ac_check_lib_save_LIBS=$LIBS
5607: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609: /* end confdefs.h. */
5610:
5611: /* Override any GCC internal prototype to avoid an error.
5612: Use char because int might match the return type of a GCC
5613: builtin and then its argument prototype would still apply. */
5614: #ifdef __cplusplus
5615: extern "C"
5616: #endif
5617: char connect ();
5618: int
5619: main ()
5620: {
5621: return connect ();
5622: ;
5623: return 0;
5624: }
5625: _ACEOF
5626: if ac_fn_c_try_link "$LINENO"; then :
5627: ac_cv_lib_socket_connect=yes
5628: else
5629: ac_cv_lib_socket_connect=no
5630: fi
5631: rm -f core conftest.err conftest.$ac_objext \
5632: conftest$ac_exeext conftest.$ac_ext
5633: LIBS=$ac_check_lib_save_LIBS
5634: fi
5635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5636: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5637: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5638: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5639: fi
5640:
5641: fi
5642:
5643: # Guillermo Gomez says -lposix is necessary on A/UX.
5644: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5645: if test "x$ac_cv_func_remove" = x""yes; then :
5646:
5647: fi
5648:
5649: if test $ac_cv_func_remove = no; then
5650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5651: $as_echo_n "checking for remove in -lposix... " >&6; }
5652: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5653: $as_echo_n "(cached) " >&6
5654: else
5655: ac_check_lib_save_LIBS=$LIBS
5656: LIBS="-lposix $LIBS"
5657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658: /* end confdefs.h. */
5659:
5660: /* Override any GCC internal prototype to avoid an error.
5661: Use char because int might match the return type of a GCC
5662: builtin and then its argument prototype would still apply. */
5663: #ifdef __cplusplus
5664: extern "C"
5665: #endif
5666: char remove ();
5667: int
5668: main ()
5669: {
5670: return remove ();
5671: ;
5672: return 0;
5673: }
5674: _ACEOF
5675: if ac_fn_c_try_link "$LINENO"; then :
5676: ac_cv_lib_posix_remove=yes
5677: else
5678: ac_cv_lib_posix_remove=no
5679: fi
5680: rm -f core conftest.err conftest.$ac_objext \
5681: conftest$ac_exeext conftest.$ac_ext
5682: LIBS=$ac_check_lib_save_LIBS
5683: fi
5684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5685: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5686: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5687: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5688: fi
5689:
5690: fi
5691:
5692: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5693: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5694: if test "x$ac_cv_func_shmat" = x""yes; then :
5695:
5696: fi
5697:
5698: if test $ac_cv_func_shmat = no; then
5699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5700: $as_echo_n "checking for shmat in -lipc... " >&6; }
5701: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5702: $as_echo_n "(cached) " >&6
5703: else
5704: ac_check_lib_save_LIBS=$LIBS
5705: LIBS="-lipc $LIBS"
5706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707: /* end confdefs.h. */
5708:
5709: /* Override any GCC internal prototype to avoid an error.
5710: Use char because int might match the return type of a GCC
5711: builtin and then its argument prototype would still apply. */
5712: #ifdef __cplusplus
5713: extern "C"
5714: #endif
5715: char shmat ();
5716: int
5717: main ()
5718: {
5719: return shmat ();
5720: ;
5721: return 0;
5722: }
5723: _ACEOF
5724: if ac_fn_c_try_link "$LINENO"; then :
5725: ac_cv_lib_ipc_shmat=yes
5726: else
5727: ac_cv_lib_ipc_shmat=no
5728: fi
5729: rm -f core conftest.err conftest.$ac_objext \
5730: conftest$ac_exeext conftest.$ac_ext
5731: LIBS=$ac_check_lib_save_LIBS
5732: fi
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5734: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5735: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5736: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5737: fi
5738:
5739: fi
5740: fi
5741:
5742: # Check for libraries that X11R6 Xt/Xaw programs need.
5743: ac_save_LDFLAGS=$LDFLAGS
5744: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5745: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5746: # check for ICE first), but we must link in the order -lSM -lICE or
5747: # we get undefined symbols. So assume we have SM if we have ICE.
5748: # These have to be linked with before -lX11, unlike the other
5749: # libraries we check for below, so use a different variable.
5750: # John Interrante, Karl Berry
5751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5752: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5753: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5754: $as_echo_n "(cached) " >&6
5755: else
5756: ac_check_lib_save_LIBS=$LIBS
5757: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759: /* end confdefs.h. */
5760:
5761: /* Override any GCC internal prototype to avoid an error.
5762: Use char because int might match the return type of a GCC
5763: builtin and then its argument prototype would still apply. */
5764: #ifdef __cplusplus
5765: extern "C"
5766: #endif
5767: char IceConnectionNumber ();
5768: int
5769: main ()
5770: {
5771: return IceConnectionNumber ();
5772: ;
5773: return 0;
5774: }
5775: _ACEOF
5776: if ac_fn_c_try_link "$LINENO"; then :
5777: ac_cv_lib_ICE_IceConnectionNumber=yes
5778: else
5779: ac_cv_lib_ICE_IceConnectionNumber=no
5780: fi
5781: rm -f core conftest.err conftest.$ac_objext \
5782: conftest$ac_exeext conftest.$ac_ext
5783: LIBS=$ac_check_lib_save_LIBS
5784: fi
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5786: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5787: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5788: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5789: fi
5790:
5791: LDFLAGS=$ac_save_LDFLAGS
5792:
5793: fi
5794:
5795:
5796: if test "$ac_x_includes" != "no"; then
5797: if test x"$ac_x_includes" != x; then
5798: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5799: includeX="-I$ac_x_includes"
5800: fi
5801: fi
5802: if test "$ac_x_libraries" != "no"; then
5803: if test x"$ac_x_libraries" != x; then
5804: X_LIBS="$X_LIBS -L$ac_x_libraries"
5805: fi
5806: fi
5807:
5808: # Check whether --enable-optimization was given.
5809: if test "${enable_optimization+set}" = set; then :
5810: enableval=$enable_optimization;
5811: if test "$enableval" = "no"; then
5812: CFLAGS=
5813: FFLAGS=
5814: CXXFLAGS=
5815: FCFLAGS=
5816: else
5817: CFLAGS="$CFLAGS $enable_optimization"
5818: FFLAGS="$FFLAGS $enable_optimization"
5819: FCFLAGS="$FCFLAGS $enable_optimization"
5820: fi
5821: else
5822:
5823: CFLAGS="$CFLAGS $OPTIMISATION_C"
5824: FFLAGS="$FFLAGS $OPTIMISATION_F"
5825: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5826:
5827:
5828: fi
5829:
5830:
5831: # Check whether --enable-final-encoding was given.
5832: if test "${enable_final_encoding+set}" = set; then :
5833: enableval=$enable_final_encoding;
5834: if test "$enableval" = "no"; then
5835: FINAL_ENCODING="\$(shell locale charmap)"
5836: else
5837: FINAL_ENCODING="$enable_final_encoding"
5838: fi
5839: else
5840: FINAL_ENCODING="\$(shell locale charmap)"
5841: fi
5842:
5843:
5844: # Check whether --enable-tex was given.
5845: if test "${enable_tex+set}" = set; then :
5846: enableval=$enable_tex;
5847: if test "$enableval" = "no"; then
5848: TEX_SUPPORT=no
5849: else
5850: TEX_SUPPORT=yes
5851: fi
5852: else
5853: TEX_SUPPORT=guessed
5854: fi
5855:
5856:
5857: # Check whether --enable-vim was given.
5858: if test "${enable_vim+set}" = set; then :
5859: enableval=$enable_vim;
5860: if test "$enableval" = "no"; then
5861: VIM_SUPPORT=no
5862: else
5863: VIM_SUPPORT=yes
5864: fi
5865: else
5866: VIM_SUPPORT=guessed
5867: fi
5868:
5869:
5870: # Check whether --enable-embedded-gnuplot was given.
5871: if test "${enable_embedded_gnuplot+set}" = set; then :
5872: enableval=$enable_embedded_gnuplot;
5873: if test "$enableval" = "no"; then
5874: MYGNUPLOT=no
5875: else
5876: MYGNUPLOT=yes
5877: fi
5878: else
5879:
5880: MYGNUPLOT=yes
5881: fi
5882:
5883:
5884: # Check whether --enable-gnuplot was given.
5885: if test "${enable_gnuplot+set}" = set; then :
5886: enableval=$enable_gnuplot;
5887: if test "$enableval" = "no"; then
5888: GNUPLOT_SUPPORT=no
5889: MYGNUPLOT=no
5890: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5891: else
5892: GNUPLOT_SUPPORT=yes
5893: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5894: fi
5895: else
5896:
5897: if test "$MYGNUPLOT" = "yes"; then
5898: GNUPLOT_SUPPORT=yes
5899: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5900: else
5901: GNUPLOT_SUPPORT=guessed
5902: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5903: fi
5904: fi
5905:
5906:
5907: # Check whether --enable-motif was given.
5908: if test "${enable_motif+set}" = set; then :
5909: enableval=$enable_motif;
5910: if test "$enableval" = "no"; then
5911: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5912: else
5913: CFLAGS_ORIG=$CFLAGS
5914: LIBS_ORIG=$LIBS
5915: CFLAGS="$CFLAGS $X_CFLAGS"
5916: LIBS="$LIB $X_LIBS"
5917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5918: $as_echo_n "checking for main in -lXm... " >&6; }
5919: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5920: $as_echo_n "(cached) " >&6
5921: else
5922: ac_check_lib_save_LIBS=$LIBS
5923: LIBS="-lXm $LIBS"
5924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925: /* end confdefs.h. */
5926:
5927:
5928: int
5929: main ()
5930: {
5931: return main ();
5932: ;
5933: return 0;
5934: }
5935: _ACEOF
5936: if ac_fn_c_try_link "$LINENO"; then :
5937: ac_cv_lib_Xm_main=yes
5938: else
5939: ac_cv_lib_Xm_main=no
5940: fi
5941: rm -f core conftest.err conftest.$ac_objext \
5942: conftest$ac_exeext conftest.$ac_ext
5943: LIBS=$ac_check_lib_save_LIBS
5944: fi
5945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5946: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5947: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5948: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5949: else
5950: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5951: fi
5952:
5953: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5954: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5955: Motif flag is disabled.
5956: " >&5
5957: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5958: Motif flag is disabled.
5959: " >&2;}
5960: fi
5961: LIBS=$LIBS_ORIG
5962: CFLAGS=$CFLAGS_ORIG
5963: fi
5964: else
5965: MOTIF_SUPPORT=guessed
5966: fi
5967:
5968:
5969: # Check whether --enable-experimental was given.
5970: if test "${enable_experimental+set}" = set; then :
5971: enableval=$enable_experimental;
5972: if test "$enableval" = "no"; then
5973: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5974: else
5975: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5976: fi
5977: else
5978: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5979: fi
5980:
5981:
5982: # Check whether --enable-debug was given.
5983: if test "${enable_debug+set}" = set; then :
5984: enableval=$enable_debug;
5985: if test "$enableval" = "no"; then
5986: DEBUG=""
5987: DEBUG_CODE="-UDEBUG"
5988: else
5989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEBUG=\"-lefence\" in -lefence" >&5
5990: $as_echo_n "checking for DEBUG=\"-lefence\" in -lefence... " >&6; }
5991: if test "${ac_cv_lib_efence_DEBUG___lefence_+set}" = set; then :
5992: $as_echo_n "(cached) " >&6
5993: else
5994: ac_check_lib_save_LIBS=$LIBS
5995: LIBS="-lefence $LIBS"
5996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997: /* end confdefs.h. */
5998:
5999: /* Override any GCC internal prototype to avoid an error.
6000: Use char because int might match the return type of a GCC
6001: builtin and then its argument prototype would still apply. */
6002: #ifdef __cplusplus
6003: extern "C"
6004: #endif
6005: char DEBUG="-lefence" ();
6006: int
6007: main ()
6008: {
6009: return DEBUG="-lefence" ();
6010: ;
6011: return 0;
6012: }
6013: _ACEOF
6014: if ac_fn_c_try_link "$LINENO"; then :
6015: ac_cv_lib_efence_DEBUG___lefence_=yes
6016: else
6017: ac_cv_lib_efence_DEBUG___lefence_=no
6018: fi
6019: rm -f core conftest.err conftest.$ac_objext \
6020: conftest$ac_exeext conftest.$ac_ext
6021: LIBS=$ac_check_lib_save_LIBS
6022: fi
6023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_DEBUG___lefence_" >&5
6024: $as_echo "$ac_cv_lib_efence_DEBUG___lefence_" >&6; }
6025: if test "x$ac_cv_lib_efence_DEBUG___lefence_" = x""yes; then :
6026: DEBUG=""
6027: fi
6028:
6029: DEBUG_CODE="-DDEBUG"
6030: if test "$DEBUG" = ""; then
6031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find efence! You may install it.
6032: Debug flag is disabled.
6033: " >&5
6034: $as_echo "$as_me: WARNING: Can not find efence! You may install it.
6035: Debug flag is disabled.
6036: " >&2;}
6037: fi
6038: fi
6039: else
6040:
6041: DEBUG_CODE="-UDEBUG"
6042: DEBUG=""
6043: fi
6044:
6045:
6046: # Check whether --enable-profile was given.
6047: if test "${enable_profile+set}" = set; then :
6048: enableval=$enable_profile;
6049: if test "$enableval" = "no"; then
6050: PROFILAGE=""
6051: else
6052: PROFILAGE="-pg"
6053: fi
6054: else
6055: PROFILAGE=""
6056: fi
6057:
6058:
6059:
6060:
6061:
6062: if test ! -d tools; then
6063: mkdir tools
6064: fi
6065: if test ! -d "$srcdir"/tools/$NCURSES; then
6066: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6067: (cd "$srcdir/tools" && tar -xf -)
6068: fi
6069: if test ! -d "$srcdir"/tools/$READLINE; then
6070: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6071: (cd "$srcdir/tools" && tar -xf -)
6072: fi
6073: if test ! -d "$srcdir"/tools/$UNITS; then
6074: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6075: (cd "$srcdir/tools" && tar -xf -)
6076: fi
6077: if test ! -d "$srcdir"/tools/$GSL; then
6078: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6079: (cd "$srcdir/tools" && tar -xf -)
6080: fi
6081: if test ! -d "$srcdir"/tools/$GPP; then
6082: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6083: (cd "$srcdir/tools" && tar -xf -)
6084: fi
6085: if test ! -d "$srcdir"/tools/$FILE; then
6086: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
1.3 ! bertrand 6087: (cd "$srcdir/tools" && tar -xf - )
! 6088: sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > \
! 6089: "$srcdir"/tools/$FILE/src/Makefile.am2
! 6090: sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' \
! 6091: "$srcdir"/tools/$FILE/src/Makefile.am2 | \
! 6092: sed 's/^file_/rplfile_/g' > \
! 6093: "$srcdir"/tools/$FILE/src/Makefile.am
! 6094: \rm -f "$srcdir"/tools/$FILE/src/Makefile.am2
! 6095: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
! 6096: (cd "$srcdir/tools"; autoreconf)
1.1 bertrand 6097: fi
6098: if test ! -d "$srcdir"/tools/$ICONV; then
6099: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6100: (cd "$srcdir/tools" && tar -xf -)
6101: fi
6102:
6103: # Extract the first word of "libtoolize", so it can be a program name with args.
6104: set dummy libtoolize; ac_word=$2
6105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106: $as_echo_n "checking for $ac_word... " >&6; }
6107: if test "${ac_cv_prog_LIBTOOLIZE+set}" = set; then :
6108: $as_echo_n "(cached) " >&6
6109: else
6110: if test -n "$LIBTOOLIZE"; then
6111: ac_cv_prog_LIBTOOLIZE="$LIBTOOLIZE" # Let the user override the test.
6112: else
6113: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114: for as_dir in $PATH
6115: do
6116: IFS=$as_save_IFS
6117: test -z "$as_dir" && as_dir=.
6118: for ac_exec_ext in '' $ac_executable_extensions; do
6119: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120: ac_cv_prog_LIBTOOLIZE="yes"
6121: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122: break 2
6123: fi
6124: done
6125: done
6126: IFS=$as_save_IFS
6127:
6128: test -z "$ac_cv_prog_LIBTOOLIZE" && ac_cv_prog_LIBTOOLIZE="no"
6129: fi
6130: fi
6131: LIBTOOLIZE=$ac_cv_prog_LIBTOOLIZE
6132: if test -n "$LIBTOOLIZE"; then
6133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOLIZE" >&5
6134: $as_echo "$LIBTOOLIZE" >&6; }
6135: else
6136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137: $as_echo "no" >&6; }
6138: fi
6139:
6140:
6141: if test "$LIBTOOLIZE" = "no"; then
6142: as_fn_error "Cannot find libtoolize! You have to install it." "$LINENO" 5
6143: fi
6144:
6145: # Extract the first word of "aclocal", so it can be a program name with args.
6146: set dummy aclocal; ac_word=$2
6147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148: $as_echo_n "checking for $ac_word... " >&6; }
6149: if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6150: $as_echo_n "(cached) " >&6
6151: else
6152: if test -n "$ACLOCAL"; then
6153: ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6154: else
6155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156: for as_dir in $PATH
6157: do
6158: IFS=$as_save_IFS
6159: test -z "$as_dir" && as_dir=.
6160: for ac_exec_ext in '' $ac_executable_extensions; do
6161: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162: ac_cv_prog_ACLOCAL="yes"
6163: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164: break 2
6165: fi
6166: done
6167: done
6168: IFS=$as_save_IFS
6169:
6170: test -z "$ac_cv_prog_ACLOCAL" && ac_cv_prog_ACLOCAL="no"
6171: fi
6172: fi
6173: ACLOCAL=$ac_cv_prog_ACLOCAL
6174: if test -n "$ACLOCAL"; then
6175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6176: $as_echo "$ACLOCAL" >&6; }
6177: else
6178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179: $as_echo "no" >&6; }
6180: fi
6181:
6182:
6183: if test "$ACLOCAL" = "no"; then
6184: as_fn_error "Cannot find aclocal! You have to install it." "$LINENO" 5
6185: fi
6186:
6187: # Extract the first word of "automake", so it can be a program name with args.
6188: set dummy automake; ac_word=$2
6189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190: $as_echo_n "checking for $ac_word... " >&6; }
6191: if test "${ac_cv_prog_AUTOMAKE+set}" = set; then :
6192: $as_echo_n "(cached) " >&6
6193: else
6194: if test -n "$AUTOMAKE"; then
6195: ac_cv_prog_AUTOMAKE="$AUTOMAKE" # Let the user override the test.
6196: else
6197: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198: for as_dir in $PATH
6199: do
6200: IFS=$as_save_IFS
6201: test -z "$as_dir" && as_dir=.
6202: for ac_exec_ext in '' $ac_executable_extensions; do
6203: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204: ac_cv_prog_AUTOMAKE="yes"
6205: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206: break 2
6207: fi
6208: done
6209: done
6210: IFS=$as_save_IFS
6211:
6212: test -z "$ac_cv_prog_AUTOMAKE" && ac_cv_prog_AUTOMAKE="no"
6213: fi
6214: fi
6215: AUTOMAKE=$ac_cv_prog_AUTOMAKE
6216: if test -n "$AUTOMAKE"; then
6217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
6218: $as_echo "$AUTOMAKE" >&6; }
6219: else
6220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221: $as_echo "no" >&6; }
6222: fi
6223:
6224:
6225: if test "$AUTOMAKE" = "no"; then
6226: as_fn_error "Cannot find automake! You have to install it." "$LINENO" 5
6227: fi
6228:
6229: # Extract the first word of "autoconf", so it can be a program name with args.
6230: set dummy autoconf; ac_word=$2
6231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232: $as_echo_n "checking for $ac_word... " >&6; }
6233: if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6234: $as_echo_n "(cached) " >&6
6235: else
6236: if test -n "$AUTOCONF"; then
6237: ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6238: else
6239: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240: for as_dir in $PATH
6241: do
6242: IFS=$as_save_IFS
6243: test -z "$as_dir" && as_dir=.
6244: for ac_exec_ext in '' $ac_executable_extensions; do
6245: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246: ac_cv_prog_AUTOCONF="yes"
6247: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248: break 2
6249: fi
6250: done
6251: done
6252: IFS=$as_save_IFS
6253:
6254: test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="no"
6255: fi
6256: fi
6257: AUTOCONF=$ac_cv_prog_AUTOCONF
6258: if test -n "$AUTOCONF"; then
6259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6260: $as_echo "$AUTOCONF" >&6; }
6261: else
6262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263: $as_echo "no" >&6; }
6264: fi
6265:
6266:
6267: if test "$AUTOCONF" = "no"; then
6268: as_fn_error "Cannot find autoconf! You have to install it." "$LINENO" 5
6269: fi
6270:
6271: (cd "$srcdir"/tools/$FILE && libtoolize --copy --force \
6272: && aclocal && automake -af && autoconf);
6273:
6274:
6275:
6276: # Check whether --enable-final-run-path was given.
6277: if test "${enable_final_run_path+set}" = set; then :
6278: enableval=$enable_final_run_path;
6279: if test "x$enable_final_run_path" = "x"; then
6280: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6281: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6282: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6283: else
6284: RUNPATH="$enable_final_run_path"
6285: fi
6286:
6287: else
6288: RUNPATH="\${prefix}"
6289:
6290: fi
6291:
6292:
6293:
6294:
6295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6296: $as_echo_n "checking whether ln -s works... " >&6; }
6297: LN_S=$as_ln_s
6298: if test "$LN_S" = "ln -s"; then
6299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6300: $as_echo "yes" >&6; }
6301: else
6302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6303: $as_echo "no, using $LN_S" >&6; }
6304: fi
6305:
6306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6307: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6308: set x ${MAKE-make}
6309: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6310: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6311: $as_echo_n "(cached) " >&6
6312: else
6313: cat >conftest.make <<\_ACEOF
6314: SHELL = /bin/sh
6315: all:
6316: @echo '@@@%%%=$(MAKE)=@@@%%%'
6317: _ACEOF
6318: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6319: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6320: *@@@%%%=?*=@@@%%%*)
6321: eval ac_cv_prog_make_${ac_make}_set=yes;;
6322: *)
6323: eval ac_cv_prog_make_${ac_make}_set=no;;
6324: esac
6325: rm -f conftest.make
6326: fi
6327: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6329: $as_echo "yes" >&6; }
6330: SET_MAKE=
6331: else
6332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333: $as_echo "no" >&6; }
6334: SET_MAKE="MAKE=${MAKE-make}"
6335: fi
6336:
6337: if test -n "$ac_tool_prefix"; then
6338: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6339: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341: $as_echo_n "checking for $ac_word... " >&6; }
6342: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6343: $as_echo_n "(cached) " >&6
6344: else
6345: if test -n "$RANLIB"; then
6346: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6347: else
6348: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349: for as_dir in $PATH
6350: do
6351: IFS=$as_save_IFS
6352: test -z "$as_dir" && as_dir=.
6353: for ac_exec_ext in '' $ac_executable_extensions; do
6354: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6356: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357: break 2
6358: fi
6359: done
6360: done
6361: IFS=$as_save_IFS
6362:
6363: fi
6364: fi
6365: RANLIB=$ac_cv_prog_RANLIB
6366: if test -n "$RANLIB"; then
6367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6368: $as_echo "$RANLIB" >&6; }
6369: else
6370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371: $as_echo "no" >&6; }
6372: fi
6373:
6374:
6375: fi
6376: if test -z "$ac_cv_prog_RANLIB"; then
6377: ac_ct_RANLIB=$RANLIB
6378: # Extract the first word of "ranlib", so it can be a program name with args.
6379: set dummy ranlib; ac_word=$2
6380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381: $as_echo_n "checking for $ac_word... " >&6; }
6382: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6383: $as_echo_n "(cached) " >&6
6384: else
6385: if test -n "$ac_ct_RANLIB"; then
6386: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6387: else
6388: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389: for as_dir in $PATH
6390: do
6391: IFS=$as_save_IFS
6392: test -z "$as_dir" && as_dir=.
6393: for ac_exec_ext in '' $ac_executable_extensions; do
6394: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395: ac_cv_prog_ac_ct_RANLIB="ranlib"
6396: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397: break 2
6398: fi
6399: done
6400: done
6401: IFS=$as_save_IFS
6402:
6403: fi
6404: fi
6405: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6406: if test -n "$ac_ct_RANLIB"; then
6407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6408: $as_echo "$ac_ct_RANLIB" >&6; }
6409: else
6410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411: $as_echo "no" >&6; }
6412: fi
6413:
6414: if test "x$ac_ct_RANLIB" = x; then
6415: RANLIB=":"
6416: else
6417: case $cross_compiling:$ac_tool_warned in
6418: yes:)
6419: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421: ac_tool_warned=yes ;;
6422: esac
6423: RANLIB=$ac_ct_RANLIB
6424: fi
6425: else
6426: RANLIB="$ac_cv_prog_RANLIB"
6427: fi
6428:
6429:
6430: # Extract the first word of "awk", so it can be a program name with args.
6431: set dummy awk; ac_word=$2
6432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433: $as_echo_n "checking for $ac_word... " >&6; }
6434: if test "${ac_cv_prog_AWK+set}" = set; then :
6435: $as_echo_n "(cached) " >&6
6436: else
6437: if test -n "$AWK"; then
6438: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6439: else
6440: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441: for as_dir in $PATH
6442: do
6443: IFS=$as_save_IFS
6444: test -z "$as_dir" && as_dir=.
6445: for ac_exec_ext in '' $ac_executable_extensions; do
6446: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447: ac_cv_prog_AWK="yes"
6448: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449: break 2
6450: fi
6451: done
6452: done
6453: IFS=$as_save_IFS
6454:
6455: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6456: fi
6457: fi
6458: AWK=$ac_cv_prog_AWK
6459: if test -n "$AWK"; then
6460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6461: $as_echo "$AWK" >&6; }
6462: else
6463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464: $as_echo "no" >&6; }
6465: fi
6466:
6467:
6468: if test "$AWK" = no; then
6469: as_fn_error "Can not find awk !" "$LINENO" 5
6470: fi
6471:
6472: # Extract the first word of "sed", so it can be a program name with args.
6473: set dummy sed; ac_word=$2
6474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475: $as_echo_n "checking for $ac_word... " >&6; }
6476: if test "${ac_cv_prog_SED+set}" = set; then :
6477: $as_echo_n "(cached) " >&6
6478: else
6479: if test -n "$SED"; then
6480: ac_cv_prog_SED="$SED" # Let the user override the test.
6481: else
6482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483: for as_dir in $PATH
6484: do
6485: IFS=$as_save_IFS
6486: test -z "$as_dir" && as_dir=.
6487: for ac_exec_ext in '' $ac_executable_extensions; do
6488: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489: ac_cv_prog_SED="yes"
6490: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491: break 2
6492: fi
6493: done
6494: done
6495: IFS=$as_save_IFS
6496:
6497: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6498: fi
6499: fi
6500: SED=$ac_cv_prog_SED
6501: if test -n "$SED"; then
6502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6503: $as_echo "$SED" >&6; }
6504: else
6505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506: $as_echo "no" >&6; }
6507: fi
6508:
6509:
6510: if test "$SED" = no; then
6511: as_fn_error "Can not find sed !" "$LINENO" 5
6512: fi
6513:
6514: if test "$TEX_SUPPORT" = guessed; then
6515: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6516:
6517: # Extract the first word of "tex", so it can be a program name with args.
6518: set dummy tex; ac_word=$2
6519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520: $as_echo_n "checking for $ac_word... " >&6; }
6521: if test "${ac_cv_prog_TEX+set}" = set; then :
6522: $as_echo_n "(cached) " >&6
6523: else
6524: if test -n "$TEX"; then
6525: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6526: else
6527: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528: for as_dir in $PATH
6529: do
6530: IFS=$as_save_IFS
6531: test -z "$as_dir" && as_dir=.
6532: for ac_exec_ext in '' $ac_executable_extensions; do
6533: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534: ac_cv_prog_TEX="yes"
6535: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536: break 2
6537: fi
6538: done
6539: done
6540: IFS=$as_save_IFS
6541:
6542: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6543: fi
6544: fi
6545: TEX=$ac_cv_prog_TEX
6546: if test -n "$TEX"; then
6547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6548: $as_echo "$TEX" >&6; }
6549: else
6550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551: $as_echo "no" >&6; }
6552: fi
6553:
6554:
6555: if test "$TEX" = no; then
6556: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6557: Download at http://tex.loria.fr/
6558: " >&5
6559: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6560: Download at http://tex.loria.fr/
6561: " >&2;}
6562: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6563: fi
6564:
6565: # Extract the first word of "latex", so it can be a program name with args.
6566: set dummy latex; ac_word=$2
6567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568: $as_echo_n "checking for $ac_word... " >&6; }
6569: if test "${ac_cv_prog_LATEX+set}" = set; then :
6570: $as_echo_n "(cached) " >&6
6571: else
6572: if test -n "$LATEX"; then
6573: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6574: else
6575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576: for as_dir in $PATH
6577: do
6578: IFS=$as_save_IFS
6579: test -z "$as_dir" && as_dir=.
6580: for ac_exec_ext in '' $ac_executable_extensions; do
6581: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582: ac_cv_prog_LATEX="yes"
6583: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584: break 2
6585: fi
6586: done
6587: done
6588: IFS=$as_save_IFS
6589:
6590: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6591: fi
6592: fi
6593: LATEX=$ac_cv_prog_LATEX
6594: if test -n "$LATEX"; then
6595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6596: $as_echo "$LATEX" >&6; }
6597: else
6598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599: $as_echo "no" >&6; }
6600: fi
6601:
6602:
6603: if test "$LATEX" = no; then
6604: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6605: Download at http://tex.loria.fr/
6606: " >&5
6607: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6608: Download at http://tex.loria.fr/
6609: " >&2;}
6610: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6611: fi
6612:
6613: # Extract the first word of "dvips", so it can be a program name with args.
6614: set dummy dvips; ac_word=$2
6615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616: $as_echo_n "checking for $ac_word... " >&6; }
6617: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6618: $as_echo_n "(cached) " >&6
6619: else
6620: if test -n "$DVIPS"; then
6621: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6622: else
6623: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624: for as_dir in $PATH
6625: do
6626: IFS=$as_save_IFS
6627: test -z "$as_dir" && as_dir=.
6628: for ac_exec_ext in '' $ac_executable_extensions; do
6629: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630: ac_cv_prog_DVIPS="yes"
6631: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632: break 2
6633: fi
6634: done
6635: done
6636: IFS=$as_save_IFS
6637:
6638: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6639: fi
6640: fi
6641: DVIPS=$ac_cv_prog_DVIPS
6642: if test -n "$DVIPS"; then
6643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6644: $as_echo "$DVIPS" >&6; }
6645: else
6646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647: $as_echo "no" >&6; }
6648: fi
6649:
6650:
6651: if test "$DVIPS" = no; then
6652: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6653: Download at http://tex.loria.fr/
6654: " >&5
6655: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6656: Download at http://tex.loria.fr/
6657: " >&2;}
6658: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6659: fi
6660:
6661: # Extract the first word of "gs", so it can be a program name with args.
6662: set dummy gs; ac_word=$2
6663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664: $as_echo_n "checking for $ac_word... " >&6; }
6665: if test "${ac_cv_prog_GS+set}" = set; then :
6666: $as_echo_n "(cached) " >&6
6667: else
6668: if test -n "$GS"; then
6669: ac_cv_prog_GS="$GS" # Let the user override the test.
6670: else
6671: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672: for as_dir in $PATH
6673: do
6674: IFS=$as_save_IFS
6675: test -z "$as_dir" && as_dir=.
6676: for ac_exec_ext in '' $ac_executable_extensions; do
6677: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678: ac_cv_prog_GS="yes"
6679: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680: break 2
6681: fi
6682: done
6683: done
6684: IFS=$as_save_IFS
6685:
6686: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6687: fi
6688: fi
6689: GS=$ac_cv_prog_GS
6690: if test -n "$GS"; then
6691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6692: $as_echo "$GS" >&6; }
6693: else
6694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695: $as_echo "no" >&6; }
6696: fi
6697:
6698:
6699: if test "$GS" = no; then
6700: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6701: Download at http://ftp.lip6.fr/
6702: " >&5
6703: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6704: Download at http://ftp.lip6.fr/
6705: " >&2;}
6706: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6707: fi
6708:
6709: # Extract the first word of "gv", so it can be a program name with args.
6710: set dummy gv; ac_word=$2
6711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712: $as_echo_n "checking for $ac_word... " >&6; }
6713: if test "${ac_cv_prog_GV+set}" = set; then :
6714: $as_echo_n "(cached) " >&6
6715: else
6716: if test -n "$GV"; then
6717: ac_cv_prog_GV="$GV" # Let the user override the test.
6718: else
6719: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720: for as_dir in $PATH
6721: do
6722: IFS=$as_save_IFS
6723: test -z "$as_dir" && as_dir=.
6724: for ac_exec_ext in '' $ac_executable_extensions; do
6725: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726: ac_cv_prog_GV="yes"
6727: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728: break 2
6729: fi
6730: done
6731: done
6732: IFS=$as_save_IFS
6733:
6734: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6735: fi
6736: fi
6737: GV=$ac_cv_prog_GV
6738: if test -n "$GV"; then
6739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6740: $as_echo "$GV" >&6; }
6741: else
6742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743: $as_echo "no" >&6; }
6744: fi
6745:
6746:
6747: if test "$GV" = no; then
6748: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6749: Download at http://ftp.lip6.fr/
6750: " >&5
6751: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6752: Download at http://ftp.lip6.fr/
6753: " >&2;}
6754: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6755: fi
6756: else
6757: if test "$TEX_SUPPORT" = no; then
6758: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6759: else
6760: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6761: fi
6762: fi
6763:
6764: if test "$GNUPLOT_SUPPORT" = guessed; then
6765: # Extract the first word of "gnuplot", so it can be a program name with args.
6766: set dummy gnuplot; ac_word=$2
6767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768: $as_echo_n "checking for $ac_word... " >&6; }
6769: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6770: $as_echo_n "(cached) " >&6
6771: else
6772: if test -n "$GNUPLOT_P"; then
6773: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6774: else
6775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776: for as_dir in $PATH
6777: do
6778: IFS=$as_save_IFS
6779: test -z "$as_dir" && as_dir=.
6780: for ac_exec_ext in '' $ac_executable_extensions; do
6781: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782: ac_cv_prog_GNUPLOT_P="yes"
6783: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784: break 2
6785: fi
6786: done
6787: done
6788: IFS=$as_save_IFS
6789:
6790: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6791: fi
6792: fi
6793: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6794: if test -n "$GNUPLOT_P"; then
6795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6796: $as_echo "$GNUPLOT_P" >&6; }
6797: else
6798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799: $as_echo "no" >&6; }
6800: fi
6801:
6802:
6803: if test "$GNUPLOT_P" = no; then
6804: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6805: Download at http://www.gnuplot.vt.edu/
6806: " >&5
6807: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6808: Download at http://www.gnuplot.vt.edu/
6809: " >&2;}
6810: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6811: else
6812: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6813: fi
6814: else
6815: if test "$GNUPLOT_SUPPORT" = no; then
6816: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6817: else
6818: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6819: fi
6820: fi
6821:
6822: if test "$VIM_SUPPORT" = guessed; then
6823: # Extract the first word of "vim", so it can be a program name with args.
6824: set dummy vim; ac_word=$2
6825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826: $as_echo_n "checking for $ac_word... " >&6; }
6827: if test "${ac_cv_prog_VIM+set}" = set; then :
6828: $as_echo_n "(cached) " >&6
6829: else
6830: if test -n "$VIM"; then
6831: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6832: else
6833: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834: for as_dir in $PATH
6835: do
6836: IFS=$as_save_IFS
6837: test -z "$as_dir" && as_dir=.
6838: for ac_exec_ext in '' $ac_executable_extensions; do
6839: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840: ac_cv_prog_VIM="yes"
6841: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842: break 2
6843: fi
6844: done
6845: done
6846: IFS=$as_save_IFS
6847:
6848: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6849: fi
6850: fi
6851: VIM=$ac_cv_prog_VIM
6852: if test -n "$VIM"; then
6853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6854: $as_echo "$VIM" >&6; }
6855: else
6856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857: $as_echo "no" >&6; }
6858: fi
6859:
6860:
6861: if test "$VIM" = no; then
6862: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6863: Download at http://www.vim.org/
6864: " >&5
6865: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6866: Download at http://www.vim.org/
6867: " >&2;}
6868: VIM_SUPPORT="-UVIM_SUPPORT"
6869: else
6870: VIM_SUPPORT="-DVIM_SUPPORT"
6871: fi
6872: else
6873: if test "$VIM_SUPPORT" = no; then
6874: VIM_SUPPORT="-UVIM_SUPPORT"
6875: else
6876: VIM_SUPPORT="-DVIM_SUPPORT"
6877: fi
6878: fi
6879:
6880: if test "$MOTIF_SUPPORT" = guessed; then
6881: CFLAGS_ORIG=$CFLAGS
6882: LIBS_ORIG=$LIBS
6883: CFLAGS="$CFLAGS $X_CFLAGS"
6884: LIBS="$LIB $X_LIBS"
6885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6886: $as_echo_n "checking for main in -lXm... " >&6; }
6887: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6888: $as_echo_n "(cached) " >&6
6889: else
6890: ac_check_lib_save_LIBS=$LIBS
6891: LIBS="-lXm $LIBS"
6892: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893: /* end confdefs.h. */
6894:
6895:
6896: int
6897: main ()
6898: {
6899: return main ();
6900: ;
6901: return 0;
6902: }
6903: _ACEOF
6904: if ac_fn_c_try_link "$LINENO"; then :
6905: ac_cv_lib_Xm_main=yes
6906: else
6907: ac_cv_lib_Xm_main=no
6908: fi
6909: rm -f core conftest.err conftest.$ac_objext \
6910: conftest$ac_exeext conftest.$ac_ext
6911: LIBS=$ac_check_lib_save_LIBS
6912: fi
6913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6914: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6915: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6916: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6917: else
6918: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6919: fi
6920:
6921: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6922: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6923: Motif flag is disabled.
6924: " >&5
6925: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6926: Motif flag is disabled.
6927: " >&2;}
6928: fi
6929: LIBS=$LIBS_ORIG
6930: CFLAGS=$CFLAGS_ORIG
6931: fi
6932:
6933: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6934: CFLAGS_ORIG=$CFLAGS
6935: LIBS_ORIG=$LIBS
6936: CFLAGS="$CFLAGS $X_CFLAGS"
6937: LIBS="$LIB $X_LIBS"
6938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6939: $as_echo_n "checking for main in -lXpm... " >&6; }
6940: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6941: $as_echo_n "(cached) " >&6
6942: else
6943: ac_check_lib_save_LIBS=$LIBS
6944: LIBS="-lXpm $LIBS"
6945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946: /* end confdefs.h. */
6947:
6948:
6949: int
6950: main ()
6951: {
6952: return main ();
6953: ;
6954: return 0;
6955: }
6956: _ACEOF
6957: if ac_fn_c_try_link "$LINENO"; then :
6958: ac_cv_lib_Xpm_main=yes
6959: else
6960: ac_cv_lib_Xpm_main=no
6961: fi
6962: rm -f core conftest.err conftest.$ac_objext \
6963: conftest$ac_exeext conftest.$ac_ext
6964: LIBS=$ac_check_lib_save_LIBS
6965: fi
6966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6967: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6968: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6969: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6970: else
6971: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6972: fi
6973:
6974: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6975: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6976: else
6977: libX=""
6978: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6979: Motif flag is disabled.
6980: " >&5
6981: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6982: Motif flag is disabled.
6983: " >&2;}
6984: fi
6985: LIBS=$LIBS_ORIG
6986: CFLAGS=$CFLAGS_ORIG
6987: else
6988: libX=""
6989: fi
6990:
6991:
6992:
6993:
6994:
6995:
6996:
6997:
6998:
6999:
7000:
7001: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7002:
7003:
7004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7005: $as_echo_n "checking for main in -lm... " >&6; }
7006: if test "${ac_cv_lib_m_main+set}" = set; then :
7007: $as_echo_n "(cached) " >&6
7008: else
7009: ac_check_lib_save_LIBS=$LIBS
7010: LIBS="-lm $LIBS"
7011: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012: /* end confdefs.h. */
7013:
7014:
7015: int
7016: main ()
7017: {
7018: return main ();
7019: ;
7020: return 0;
7021: }
7022: _ACEOF
7023: if ac_fn_c_try_link "$LINENO"; then :
7024: ac_cv_lib_m_main=yes
7025: else
7026: ac_cv_lib_m_main=no
7027: fi
7028: rm -f core conftest.err conftest.$ac_objext \
7029: conftest$ac_exeext conftest.$ac_ext
7030: LIBS=$ac_check_lib_save_LIBS
7031: fi
7032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7033: $as_echo "$ac_cv_lib_m_main" >&6; }
7034: if test "x$ac_cv_lib_m_main" = x""yes; then :
7035: cat >>confdefs.h <<_ACEOF
7036: #define HAVE_LIBM 1
7037: _ACEOF
7038:
7039: LIBS="-lm $LIBS"
7040:
7041: else
7042: as_fn_error "Can not find libm !" "$LINENO" 5
7043: fi
7044:
7045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7046: $as_echo_n "checking for main in -lpthread... " >&6; }
7047: if test "${ac_cv_lib_pthread_main+set}" = set; then :
7048: $as_echo_n "(cached) " >&6
7049: else
7050: ac_check_lib_save_LIBS=$LIBS
7051: LIBS="-lpthread $LIBS"
7052: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053: /* end confdefs.h. */
7054:
7055:
7056: int
7057: main ()
7058: {
7059: return main ();
7060: ;
7061: return 0;
7062: }
7063: _ACEOF
7064: if ac_fn_c_try_link "$LINENO"; then :
7065: ac_cv_lib_pthread_main=yes
7066: else
7067: ac_cv_lib_pthread_main=no
7068: fi
7069: rm -f core conftest.err conftest.$ac_objext \
7070: conftest$ac_exeext conftest.$ac_ext
7071: LIBS=$ac_check_lib_save_LIBS
7072: fi
7073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7074: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7075: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7076: cat >>confdefs.h <<_ACEOF
7077: #define HAVE_LIBPTHREAD 1
7078: _ACEOF
7079:
7080: LIBS="-lpthread $LIBS"
7081:
7082: else
7083: as_fn_error "Can not find libpthread !" "$LINENO" 5
7084: fi
7085:
7086:
7087: if test "$CYGWIN" != yes; then
7088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7089: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7090: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7091: $as_echo_n "(cached) " >&6
7092: else
7093: ac_check_lib_save_LIBS=$LIBS
7094: LIBS="-ldl $LIBS"
7095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096: /* end confdefs.h. */
7097:
7098: /* Override any GCC internal prototype to avoid an error.
7099: Use char because int might match the return type of a GCC
7100: builtin and then its argument prototype would still apply. */
7101: #ifdef __cplusplus
7102: extern "C"
7103: #endif
7104: char dlopen ();
7105: int
7106: main ()
7107: {
7108: return dlopen ();
7109: ;
7110: return 0;
7111: }
7112: _ACEOF
7113: if ac_fn_c_try_link "$LINENO"; then :
7114: ac_cv_lib_dl_dlopen=yes
7115: else
7116: ac_cv_lib_dl_dlopen=no
7117: fi
7118: rm -f core conftest.err conftest.$ac_objext \
7119: conftest$ac_exeext conftest.$ac_ext
7120: LIBS=$ac_check_lib_save_LIBS
7121: fi
7122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7123: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7124: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7125: LIBS="$LIBS -ldl"
7126: else
7127: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7128: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7129: fi
7130:
7131: fi
7132:
7133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7134: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7135: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7136: $as_echo_n "(cached) " >&6
7137: else
7138: ac_check_lib_save_LIBS=$LIBS
7139: LIBS="-lrt $LIBS"
7140: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141: /* end confdefs.h. */
7142:
7143: /* Override any GCC internal prototype to avoid an error.
7144: Use char because int might match the return type of a GCC
7145: builtin and then its argument prototype would still apply. */
7146: #ifdef __cplusplus
7147: extern "C"
7148: #endif
7149: char nanosleep ();
7150: int
7151: main ()
7152: {
7153: return nanosleep ();
7154: ;
7155: return 0;
7156: }
7157: _ACEOF
7158: if ac_fn_c_try_link "$LINENO"; then :
7159: ac_cv_lib_rt_nanosleep=yes
7160: else
7161: ac_cv_lib_rt_nanosleep=no
7162: fi
7163: rm -f core conftest.err conftest.$ac_objext \
7164: conftest$ac_exeext conftest.$ac_ext
7165: LIBS=$ac_check_lib_save_LIBS
7166: fi
7167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7168: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7169: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7170: LIBS="$LIBS -lrt"
7171: else
7172: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7173: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7174: fi
7175:
7176:
7177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7178: $as_echo_n "checking for bind in -lsocket... " >&6; }
7179: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7180: $as_echo_n "(cached) " >&6
7181: else
7182: ac_check_lib_save_LIBS=$LIBS
7183: LIBS="-lsocket $LIBS"
7184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185: /* end confdefs.h. */
7186:
7187: /* Override any GCC internal prototype to avoid an error.
7188: Use char because int might match the return type of a GCC
7189: builtin and then its argument prototype would still apply. */
7190: #ifdef __cplusplus
7191: extern "C"
7192: #endif
7193: char bind ();
7194: int
7195: main ()
7196: {
7197: return bind ();
7198: ;
7199: return 0;
7200: }
7201: _ACEOF
7202: if ac_fn_c_try_link "$LINENO"; then :
7203: ac_cv_lib_socket_bind=yes
7204: else
7205: ac_cv_lib_socket_bind=no
7206: fi
7207: rm -f core conftest.err conftest.$ac_objext \
7208: conftest$ac_exeext conftest.$ac_ext
7209: LIBS=$ac_check_lib_save_LIBS
7210: fi
7211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7212: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7213: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7214: LIBS="$LIBS -lsocket"
7215: else
7216: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7217: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7218: fi
7219:
7220:
7221: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7222:
7223: # Check whether --with-mysql was given.
7224: if test "${with_mysql+set}" = set; then :
7225: withval=$with_mysql;
7226: else
7227: with_mysql=check
7228: fi
7229:
7230:
7231: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7232: libMySQLinc="-I/usr/include"
7233: libMySQLlib="-L/usr/lib"
7234:
7235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7236: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7237: saved_CFLAGS="$CFLAGS"
7238: CFLAGS="$CFLAGS $libMySQLinc"
7239: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240: /* end confdefs.h. */
7241: #include "mysql.h"
7242: int
7243: main ()
7244: {
7245:
7246: ;
7247: return 0;
7248: }
7249: _ACEOF
7250: if ac_fn_c_try_compile "$LINENO"; then :
7251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7252: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7253: libMySQLinc=$libMySQLinc/mysql
7254: else
7255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7257: fi
7258: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259: CFLAGS=$saved_CFLAGS
7260:
7261: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7263: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7264: saved_CFLAGS="$CFLAGS"
7265: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267: /* end confdefs.h. */
7268: #include "mysql.h"
7269: int
7270: main ()
7271: {
7272:
7273: ;
7274: return 0;
7275: }
7276: _ACEOF
7277: if ac_fn_c_try_compile "$LINENO"; then :
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7280: libMySQLinc=$libMySQLinc
7281: else
7282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7284: fi
7285: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286: CFLAGS=$saved_CFLAGS
7287: libMySQLinc=$libMySQLinc/mysql
7288: fi
7289:
7290: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7292: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7293: saved_CFLAGS="$CFLAGS"
7294: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7295: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296: /* end confdefs.h. */
7297: #include "mysql.h"
7298: int
7299: main ()
7300: {
7301:
7302: ;
7303: return 0;
7304: }
7305: _ACEOF
7306: if ac_fn_c_try_compile "$LINENO"; then :
7307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7308: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7309: libMySQLinc=$libMySQLinc/mysql
7310: else
7311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7313: fi
7314: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315: CFLAGS=$saved_CFLAGS
7316: libMySQLinc=$libMySQLinc/../local/include
7317: libMySQLlib=$libMySQLlib/../local/lib
7318: fi
7319:
7320: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7322: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7323: saved_CFLAGS="$CFLAGS"
7324: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326: /* end confdefs.h. */
7327: #include "mysql.h"
7328: int
7329: main ()
7330: {
7331:
7332: ;
7333: return 0;
7334: }
7335: _ACEOF
7336: if ac_fn_c_try_compile "$LINENO"; then :
7337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7338: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7339: libMySQLinc=$libMySQLinc/mysql
7340: else
7341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7343: fi
7344: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345: CFLAGS=$saved_CFLAGS
7346: libMySQLinc=$libMySQLinc/../local/include/mysql
7347: libMySQLlib=$libMySQLlib/../local/lib
7348: fi
7349: else
7350: if test "x$with_mysql" != xno; then
7351: libMySQLinc="-I$with_mysql/include"
7352: libMySQLlib="-L$with_mysql/lib"
7353:
7354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7355: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7356: saved_CFLAGS="$CFLAGS"
7357: CFLAGS="$CFLAGS $libMySQLinc"
7358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359: /* end confdefs.h. */
7360: #include "mysql.h"
7361: int
7362: main ()
7363: {
7364:
7365: ;
7366: return 0;
7367: }
7368: _ACEOF
7369: if ac_fn_c_try_compile "$LINENO"; then :
7370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7371: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7372: libMySQLinc=$libMySQLinc/mysql
7373: else
7374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7376: fi
7377: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378: CFLAGS=$saved_CFLAGS
7379:
7380: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7382: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7383: saved_CFLAGS="$CFLAGS"
7384: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7385: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386: /* end confdefs.h. */
7387: #include "mysql.h"
7388: int
7389: main ()
7390: {
7391:
7392: ;
7393: return 0;
7394: }
7395: _ACEOF
7396: if ac_fn_c_try_compile "$LINENO"; then :
7397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7398: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7399: libMySQLinc=$libMySQLinc
7400: else
7401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7403: fi
7404: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405: CFLAGS=$saved_CFLAGS
7406: libMySQLinc=$libMySQLinc/mysql
7407: fi
7408: else
7409: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7410: fi
7411: fi
7412:
7413: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7414: MYSQL_LIB=no
7415:
7416: if test $MYSQL_LIB = no; then
7417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7418: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7419: saved_LIBS="$LIBS"
7420: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422: /* end confdefs.h. */
7423: #include "mysql.h"
7424: int
7425: main ()
7426: {
7427: MYSQL mysql; mysql_init(&mysql);
7428: ;
7429: return 0;
7430: }
7431: _ACEOF
7432: if ac_fn_c_try_link "$LINENO"; then :
7433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7434: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7435: else
7436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437: $as_echo "no" >&6; }; MYSQL_LIB="no"
7438: fi
7439: rm -f core conftest.err conftest.$ac_objext \
7440: conftest$ac_exeext conftest.$ac_ext
7441: LIBS=$saved_LIBS;
7442: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7443: fi
7444:
7445: if test $MYSQL_LIB = no; then
7446: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7447: fi
7448: fi
7449:
7450: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7451: libMySQLinc=
7452: libMySQLlib=
7453: fi
7454:
7455:
7456:
7457:
7458:
7459: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7460:
7461: # Check whether --with-postgresql was given.
7462: if test "${with_postgresql+set}" = set; then :
7463: withval=$with_postgresql;
7464: else
7465: with_postgresql=check
7466: fi
7467:
7468:
7469: # with_postgresql : check [pas défini], yes [uniquement --with],
7470: # no [--without], valeur [--with=valeur].
7471:
7472: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7473: libPgSQLinc="-I/usr/include"
7474: libPgSQLlib="-L/usr/lib"
7475:
7476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7477: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7478: saved_CFLAGS="$CFLAGS"
7479: CFLAGS="$CFLAGS $libPgSQLinc"
7480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481: /* end confdefs.h. */
7482: #include "libpq-fe.h"
7483: int
7484: main ()
7485: {
7486:
7487: ;
7488: return 0;
7489: }
7490: _ACEOF
7491: if ac_fn_c_try_compile "$LINENO"; then :
7492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7494: else
7495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7497: fi
7498: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499: CFLAGS=$saved_CFLAGS
7500:
7501: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7503: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7504: saved_CFLAGS="$CFLAGS"
7505: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507: /* end confdefs.h. */
7508: #include "libpq-fe.h"
7509: int
7510: main ()
7511: {
7512:
7513: ;
7514: return 0;
7515: }
7516: _ACEOF
7517: if ac_fn_c_try_compile "$LINENO"; then :
7518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519: $as_echo "yes" >&6; };
7520: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7521: else
7522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523: $as_echo "no" >&6; };
7524: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7525: fi
7526: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527: CFLAGS=$saved_CFLAGS
7528: libPgSQLinc=$libPgSQLinc/postgresql
7529: fi
7530:
7531: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7533: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7534: saved_CFLAGS="$CFLAGS"
7535: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537: /* end confdefs.h. */
7538: #include "libpq-fe.h"
7539: int
7540: main ()
7541: {
7542:
7543: ;
7544: return 0;
7545: }
7546: _ACEOF
7547: if ac_fn_c_try_compile "$LINENO"; then :
7548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7549: $as_echo "yes" >&6; };
7550: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7551: else
7552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553: $as_echo "no" >&6; };
7554: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7555: fi
7556: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557: CFLAGS=$saved_CFLAGS
7558: libPgSQLinc=$libPgSQLinc/pgsql
7559: fi
7560:
7561: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7563: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7564: saved_CFLAGS="$CFLAGS"
7565: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7566: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567: /* end confdefs.h. */
7568: #include "libpq-fe.h"
7569: int
7570: main ()
7571: {
7572:
7573: ;
7574: return 0;
7575: }
7576: _ACEOF
7577: if ac_fn_c_try_compile "$LINENO"; then :
7578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579: $as_echo "yes" >&6; };
7580: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7581: else
7582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583: $as_echo "no" >&6; };
7584: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7585: fi
7586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587: CFLAGS=$saved_CFLAGS
7588: libPgSQLinc=$libPgSQLinc/../local/include
7589: libPgSQLlib=$libPgSQLlib/../local/lib
7590: fi
7591:
7592: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7594: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7595: saved_CFLAGS="$CFLAGS"
7596: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598: /* end confdefs.h. */
7599: #include "libpq-fe.h"
7600: int
7601: main ()
7602: {
7603:
7604: ;
7605: return 0;
7606: }
7607: _ACEOF
7608: if ac_fn_c_try_compile "$LINENO"; then :
7609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7610: $as_echo "yes" >&6; };
7611: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7612: else
7613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614: $as_echo "no" >&6; };
7615: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7616: fi
7617: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618: CFLAGS=$saved_CFLAGS
7619: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7620: libPgSQLlib=$libPgSQLlib/../local/lib
7621: fi
7622:
7623: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7625: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7626: saved_CFLAGS="$CFLAGS"
7627: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7628: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629: /* end confdefs.h. */
7630: #include "libpq-fe.h"
7631: int
7632: main ()
7633: {
7634:
7635: ;
7636: return 0;
7637: }
7638: _ACEOF
7639: if ac_fn_c_try_compile "$LINENO"; then :
7640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7641: $as_echo "yes" >&6; };
7642: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7643: else
7644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645: $as_echo "no" >&6; };
7646: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7647: fi
7648: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649: CFLAGS=$saved_CFLAGS
7650: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7651: libPgSQLlib=$libPgSQLlib/../local/lib
7652: fi
7653: else
7654: if test "x$with_postgresql" != xno; then
7655: libPgSQLinc="-I$with_postgresql/include"
7656: libPgSQLlib="-L$with_postgresql/lib"
7657:
7658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7659: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7660: saved_CFLAGS="$CFLAGS"
7661: CFLAGS="$CFLAGS $libPgSQLinc"
7662: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663: /* end confdefs.h. */
7664: #include "libpq-fe.h"
7665: int
7666: main ()
7667: {
7668:
7669: ;
7670: return 0;
7671: }
7672: _ACEOF
7673: if ac_fn_c_try_compile "$LINENO"; then :
7674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675: $as_echo "yes" >&6; };
7676: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7677: else
7678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679: $as_echo "no" >&6; };
7680: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7681: fi
7682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683: CFLAGS=$saved_CFLAGS
7684:
7685: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7687: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7688: saved_CFLAGS="$CFLAGS"
7689: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691: /* end confdefs.h. */
7692: #include "libpq-fe.h"
7693: int
7694: main ()
7695: {
7696:
7697: ;
7698: return 0;
7699: }
7700: _ACEOF
7701: if ac_fn_c_try_compile "$LINENO"; then :
7702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7703: $as_echo "yes" >&6; };
7704: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7705: else
7706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707: $as_echo "no" >&6; };
7708: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7709: fi
7710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711: CFLAGS=$saved_CFLAGS
7712: libPgSQLinc=$libPgSQLinc/postgresql
7713: fi
7714:
7715: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7717: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7718: saved_CFLAGS="$CFLAGS"
7719: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721: /* end confdefs.h. */
7722: #include "libpq-fe.h"
7723: int
7724: main ()
7725: {
7726:
7727: ;
7728: return 0;
7729: }
7730: _ACEOF
7731: if ac_fn_c_try_compile "$LINENO"; then :
7732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7733: $as_echo "yes" >&6; };
7734: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7735: else
7736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737: $as_echo "no" >&6; };
7738: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7739: fi
7740: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741: CFLAGS=$saved_CFLAGS
7742: libPgSQLinc=$libPgSQLinc/pgsql
7743: fi
7744: else
7745: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7746: fi
7747: fi
7748:
7749: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7750: POSTGRESQL_LIB=no
7751:
7752: if test $POSTGRESQL_LIB = no; then
7753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7754: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7755: saved_LIBS="$LIBS"
7756: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758: /* end confdefs.h. */
7759: #include "libpq-fe.h"
7760: int
7761: main ()
7762: {
7763: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7764: PQconnectdb(conninfo);
7765: ;
7766: return 0;
7767: }
7768: _ACEOF
7769: if ac_fn_c_try_link "$LINENO"; then :
7770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7772: else
7773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7775: fi
7776: rm -f core conftest.err conftest.$ac_objext \
7777: conftest$ac_exeext conftest.$ac_ext
7778: LIBS=$saved_LIBS;
7779: libPgSQLlib="$libPgSQLlib -lpq"
7780: fi
7781: fi
7782:
7783: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7784: libPgSQLinc=
7785: libPgSQLlib=
7786: fi
7787:
7788:
7789:
7790:
7791:
7792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7793: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7794: if test "${ac_cv_path_GREP+set}" = set; then :
7795: $as_echo_n "(cached) " >&6
7796: else
7797: if test -z "$GREP"; then
7798: ac_path_GREP_found=false
7799: # Loop through the user's path and test for each of PROGNAME-LIST
7800: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7802: do
7803: IFS=$as_save_IFS
7804: test -z "$as_dir" && as_dir=.
7805: for ac_prog in grep ggrep; do
7806: for ac_exec_ext in '' $ac_executable_extensions; do
7807: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7808: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7809: # Check for GNU ac_path_GREP and select it if it is found.
7810: # Check for GNU $ac_path_GREP
7811: case `"$ac_path_GREP" --version 2>&1` in
7812: *GNU*)
7813: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7814: *)
7815: ac_count=0
7816: $as_echo_n 0123456789 >"conftest.in"
7817: while :
7818: do
7819: cat "conftest.in" "conftest.in" >"conftest.tmp"
7820: mv "conftest.tmp" "conftest.in"
7821: cp "conftest.in" "conftest.nl"
7822: $as_echo 'GREP' >> "conftest.nl"
7823: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7824: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7825: as_fn_arith $ac_count + 1 && ac_count=$as_val
7826: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7827: # Best one so far, save it but keep looking for a better one
7828: ac_cv_path_GREP="$ac_path_GREP"
7829: ac_path_GREP_max=$ac_count
7830: fi
7831: # 10*(2^10) chars as input seems more than enough
7832: test $ac_count -gt 10 && break
7833: done
7834: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7835: esac
7836:
7837: $ac_path_GREP_found && break 3
7838: done
7839: done
7840: done
7841: IFS=$as_save_IFS
7842: if test -z "$ac_cv_path_GREP"; then
7843: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7844: fi
7845: else
7846: ac_cv_path_GREP=$GREP
7847: fi
7848:
7849: fi
7850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7851: $as_echo "$ac_cv_path_GREP" >&6; }
7852: GREP="$ac_cv_path_GREP"
7853:
7854:
7855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7856: $as_echo_n "checking for egrep... " >&6; }
7857: if test "${ac_cv_path_EGREP+set}" = set; then :
7858: $as_echo_n "(cached) " >&6
7859: else
7860: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7861: then ac_cv_path_EGREP="$GREP -E"
7862: else
7863: if test -z "$EGREP"; then
7864: ac_path_EGREP_found=false
7865: # Loop through the user's path and test for each of PROGNAME-LIST
7866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7868: do
7869: IFS=$as_save_IFS
7870: test -z "$as_dir" && as_dir=.
7871: for ac_prog in egrep; do
7872: for ac_exec_ext in '' $ac_executable_extensions; do
7873: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7874: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7875: # Check for GNU ac_path_EGREP and select it if it is found.
7876: # Check for GNU $ac_path_EGREP
7877: case `"$ac_path_EGREP" --version 2>&1` in
7878: *GNU*)
7879: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7880: *)
7881: ac_count=0
7882: $as_echo_n 0123456789 >"conftest.in"
7883: while :
7884: do
7885: cat "conftest.in" "conftest.in" >"conftest.tmp"
7886: mv "conftest.tmp" "conftest.in"
7887: cp "conftest.in" "conftest.nl"
7888: $as_echo 'EGREP' >> "conftest.nl"
7889: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7890: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7891: as_fn_arith $ac_count + 1 && ac_count=$as_val
7892: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7893: # Best one so far, save it but keep looking for a better one
7894: ac_cv_path_EGREP="$ac_path_EGREP"
7895: ac_path_EGREP_max=$ac_count
7896: fi
7897: # 10*(2^10) chars as input seems more than enough
7898: test $ac_count -gt 10 && break
7899: done
7900: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7901: esac
7902:
7903: $ac_path_EGREP_found && break 3
7904: done
7905: done
7906: done
7907: IFS=$as_save_IFS
7908: if test -z "$ac_cv_path_EGREP"; then
7909: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7910: fi
7911: else
7912: ac_cv_path_EGREP=$EGREP
7913: fi
7914:
7915: fi
7916: fi
7917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7918: $as_echo "$ac_cv_path_EGREP" >&6; }
7919: EGREP="$ac_cv_path_EGREP"
7920:
7921:
7922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7923: $as_echo_n "checking for ANSI C header files... " >&6; }
7924: if test "${ac_cv_header_stdc+set}" = set; then :
7925: $as_echo_n "(cached) " >&6
7926: else
7927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928: /* end confdefs.h. */
7929: #include <stdlib.h>
7930: #include <stdarg.h>
7931: #include <string.h>
7932: #include <float.h>
7933:
7934: int
7935: main ()
7936: {
7937:
7938: ;
7939: return 0;
7940: }
7941: _ACEOF
7942: if ac_fn_c_try_compile "$LINENO"; then :
7943: ac_cv_header_stdc=yes
7944: else
7945: ac_cv_header_stdc=no
7946: fi
7947: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948:
7949: if test $ac_cv_header_stdc = yes; then
7950: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7951: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952: /* end confdefs.h. */
7953: #include <string.h>
7954:
7955: _ACEOF
7956: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957: $EGREP "memchr" >/dev/null 2>&1; then :
7958:
7959: else
7960: ac_cv_header_stdc=no
7961: fi
7962: rm -f conftest*
7963:
7964: fi
7965:
7966: if test $ac_cv_header_stdc = yes; then
7967: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969: /* end confdefs.h. */
7970: #include <stdlib.h>
7971:
7972: _ACEOF
7973: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974: $EGREP "free" >/dev/null 2>&1; then :
7975:
7976: else
7977: ac_cv_header_stdc=no
7978: fi
7979: rm -f conftest*
7980:
7981: fi
7982:
7983: if test $ac_cv_header_stdc = yes; then
7984: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7985: if test "$cross_compiling" = yes; then :
7986: :
7987: else
7988: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989: /* end confdefs.h. */
7990: #include <ctype.h>
7991: #include <stdlib.h>
7992: #if ((' ' & 0x0FF) == 0x020)
7993: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7994: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7995: #else
7996: # define ISLOWER(c) \
7997: (('a' <= (c) && (c) <= 'i') \
7998: || ('j' <= (c) && (c) <= 'r') \
7999: || ('s' <= (c) && (c) <= 'z'))
8000: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8001: #endif
8002:
8003: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8004: int
8005: main ()
8006: {
8007: int i;
8008: for (i = 0; i < 256; i++)
8009: if (XOR (islower (i), ISLOWER (i))
8010: || toupper (i) != TOUPPER (i))
8011: return 2;
8012: return 0;
8013: }
8014: _ACEOF
8015: if ac_fn_c_try_run "$LINENO"; then :
8016:
8017: else
8018: ac_cv_header_stdc=no
8019: fi
8020: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8021: conftest.$ac_objext conftest.beam conftest.$ac_ext
8022: fi
8023:
8024: fi
8025: fi
8026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8027: $as_echo "$ac_cv_header_stdc" >&6; }
8028: if test $ac_cv_header_stdc = yes; then
8029:
8030: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8031:
8032: fi
8033:
8034: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8035: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8036: inttypes.h stdint.h unistd.h
8037: do :
8038: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8039: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8040: "
8041: eval as_val=\$$as_ac_Header
8042: if test "x$as_val" = x""yes; then :
8043: cat >>confdefs.h <<_ACEOF
8044: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045: _ACEOF
8046:
8047: fi
8048:
8049: done
8050:
8051:
8052: # The cast to long int works around a bug in the HP C Compiler
8053: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8054: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8055: # This bug is HP SR number 8606223364.
8056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8057: $as_echo_n "checking size of void *... " >&6; }
8058: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8059: $as_echo_n "(cached) " >&6
8060: else
8061: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8062:
8063: else
8064: if test "$ac_cv_type_void_p" = yes; then
8065: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8066: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8067: { as_fn_set_status 77
8068: as_fn_error "cannot compute sizeof (void *)
8069: See \`config.log' for more details." "$LINENO" 5; }; }
8070: else
8071: ac_cv_sizeof_void_p=0
8072: fi
8073: fi
8074:
8075: fi
8076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8077: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8078:
8079:
8080:
8081: cat >>confdefs.h <<_ACEOF
8082: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8083: _ACEOF
8084:
8085:
8086: # The cast to long int works around a bug in the HP C Compiler
8087: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8088: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8089: # This bug is HP SR number 8606223364.
8090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8091: $as_echo_n "checking size of char... " >&6; }
8092: if test "${ac_cv_sizeof_char+set}" = set; then :
8093: $as_echo_n "(cached) " >&6
8094: else
8095: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8096:
8097: else
8098: if test "$ac_cv_type_char" = yes; then
8099: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8100: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8101: { as_fn_set_status 77
8102: as_fn_error "cannot compute sizeof (char)
8103: See \`config.log' for more details." "$LINENO" 5; }; }
8104: else
8105: ac_cv_sizeof_char=0
8106: fi
8107: fi
8108:
8109: fi
8110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8111: $as_echo "$ac_cv_sizeof_char" >&6; }
8112:
8113:
8114:
8115: cat >>confdefs.h <<_ACEOF
8116: #define SIZEOF_CHAR $ac_cv_sizeof_char
8117: _ACEOF
8118:
8119:
8120: # The cast to long int works around a bug in the HP C Compiler
8121: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8122: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8123: # This bug is HP SR number 8606223364.
8124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8125: $as_echo_n "checking size of short int... " >&6; }
8126: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8127: $as_echo_n "(cached) " >&6
8128: else
8129: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8130:
8131: else
8132: if test "$ac_cv_type_short_int" = yes; then
8133: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8134: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8135: { as_fn_set_status 77
8136: as_fn_error "cannot compute sizeof (short int)
8137: See \`config.log' for more details." "$LINENO" 5; }; }
8138: else
8139: ac_cv_sizeof_short_int=0
8140: fi
8141: fi
8142:
8143: fi
8144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8145: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8146:
8147:
8148:
8149: cat >>confdefs.h <<_ACEOF
8150: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8151: _ACEOF
8152:
8153:
8154: # The cast to long int works around a bug in the HP C Compiler
8155: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8156: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8157: # This bug is HP SR number 8606223364.
8158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8159: $as_echo_n "checking size of int... " >&6; }
8160: if test "${ac_cv_sizeof_int+set}" = set; then :
8161: $as_echo_n "(cached) " >&6
8162: else
8163: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8164:
8165: else
8166: if test "$ac_cv_type_int" = yes; then
8167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8168: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8169: { as_fn_set_status 77
8170: as_fn_error "cannot compute sizeof (int)
8171: See \`config.log' for more details." "$LINENO" 5; }; }
8172: else
8173: ac_cv_sizeof_int=0
8174: fi
8175: fi
8176:
8177: fi
8178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8179: $as_echo "$ac_cv_sizeof_int" >&6; }
8180:
8181:
8182:
8183: cat >>confdefs.h <<_ACEOF
8184: #define SIZEOF_INT $ac_cv_sizeof_int
8185: _ACEOF
8186:
8187:
8188: # The cast to long int works around a bug in the HP C Compiler
8189: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8190: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8191: # This bug is HP SR number 8606223364.
8192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8193: $as_echo_n "checking size of long int... " >&6; }
8194: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8195: $as_echo_n "(cached) " >&6
8196: else
8197: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8198:
8199: else
8200: if test "$ac_cv_type_long_int" = yes; then
8201: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8202: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8203: { as_fn_set_status 77
8204: as_fn_error "cannot compute sizeof (long int)
8205: See \`config.log' for more details." "$LINENO" 5; }; }
8206: else
8207: ac_cv_sizeof_long_int=0
8208: fi
8209: fi
8210:
8211: fi
8212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8213: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8214:
8215:
8216:
8217: cat >>confdefs.h <<_ACEOF
8218: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8219: _ACEOF
8220:
8221:
8222: # The cast to long int works around a bug in the HP C Compiler
8223: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8224: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8225: # This bug is HP SR number 8606223364.
8226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8227: $as_echo_n "checking size of long long int... " >&6; }
8228: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8229: $as_echo_n "(cached) " >&6
8230: else
8231: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8232:
8233: else
8234: if test "$ac_cv_type_long_long_int" = yes; then
8235: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8236: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8237: { as_fn_set_status 77
8238: as_fn_error "cannot compute sizeof (long long int)
8239: See \`config.log' for more details." "$LINENO" 5; }; }
8240: else
8241: ac_cv_sizeof_long_long_int=0
8242: fi
8243: fi
8244:
8245: fi
8246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8247: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8248:
8249:
8250:
8251: cat >>confdefs.h <<_ACEOF
8252: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8253: _ACEOF
8254:
8255:
8256: # The cast to long int works around a bug in the HP C Compiler
8257: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8258: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8259: # This bug is HP SR number 8606223364.
8260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8261: $as_echo_n "checking size of float... " >&6; }
8262: if test "${ac_cv_sizeof_float+set}" = set; then :
8263: $as_echo_n "(cached) " >&6
8264: else
8265: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8266:
8267: else
8268: if test "$ac_cv_type_float" = yes; then
8269: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8270: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8271: { as_fn_set_status 77
8272: as_fn_error "cannot compute sizeof (float)
8273: See \`config.log' for more details." "$LINENO" 5; }; }
8274: else
8275: ac_cv_sizeof_float=0
8276: fi
8277: fi
8278:
8279: fi
8280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8281: $as_echo "$ac_cv_sizeof_float" >&6; }
8282:
8283:
8284:
8285: cat >>confdefs.h <<_ACEOF
8286: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8287: _ACEOF
8288:
8289:
8290: # The cast to long int works around a bug in the HP C Compiler
8291: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8292: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8293: # This bug is HP SR number 8606223364.
8294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8295: $as_echo_n "checking size of double... " >&6; }
8296: if test "${ac_cv_sizeof_double+set}" = set; then :
8297: $as_echo_n "(cached) " >&6
8298: else
8299: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8300:
8301: else
8302: if test "$ac_cv_type_double" = yes; then
8303: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8304: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8305: { as_fn_set_status 77
8306: as_fn_error "cannot compute sizeof (double)
8307: See \`config.log' for more details." "$LINENO" 5; }; }
8308: else
8309: ac_cv_sizeof_double=0
8310: fi
8311: fi
8312:
8313: fi
8314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8315: $as_echo "$ac_cv_sizeof_double" >&6; }
8316:
8317:
8318:
8319: cat >>confdefs.h <<_ACEOF
8320: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8321: _ACEOF
8322:
8323:
8324: # The cast to long int works around a bug in the HP C Compiler
8325: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8326: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8327: # This bug is HP SR number 8606223364.
8328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8329: $as_echo_n "checking size of long double... " >&6; }
8330: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8331: $as_echo_n "(cached) " >&6
8332: else
8333: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8334:
8335: else
8336: if test "$ac_cv_type_long_double" = yes; then
8337: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8338: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8339: { as_fn_set_status 77
8340: as_fn_error "cannot compute sizeof (long double)
8341: See \`config.log' for more details." "$LINENO" 5; }; }
8342: else
8343: ac_cv_sizeof_long_double=0
8344: fi
8345: fi
8346:
8347: fi
8348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8349: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8350:
8351:
8352:
8353: cat >>confdefs.h <<_ACEOF
8354: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8355: _ACEOF
8356:
8357:
8358:
8359: ac_header_dirent=no
8360: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8361: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8363: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8364: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8365: $as_echo_n "(cached) " >&6
8366: else
8367: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368: /* end confdefs.h. */
8369: #include <sys/types.h>
8370: #include <$ac_hdr>
8371:
8372: int
8373: main ()
8374: {
8375: if ((DIR *) 0)
8376: return 0;
8377: ;
8378: return 0;
8379: }
8380: _ACEOF
8381: if ac_fn_c_try_compile "$LINENO"; then :
8382: eval "$as_ac_Header=yes"
8383: else
8384: eval "$as_ac_Header=no"
8385: fi
8386: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387: fi
8388: eval ac_res=\$$as_ac_Header
8389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8390: $as_echo "$ac_res" >&6; }
8391: eval as_val=\$$as_ac_Header
8392: if test "x$as_val" = x""yes; then :
8393: cat >>confdefs.h <<_ACEOF
8394: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8395: _ACEOF
8396:
8397: ac_header_dirent=$ac_hdr; break
8398: fi
8399:
8400: done
8401: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8402: if test $ac_header_dirent = dirent.h; then
8403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8404: $as_echo_n "checking for library containing opendir... " >&6; }
8405: if test "${ac_cv_search_opendir+set}" = set; then :
8406: $as_echo_n "(cached) " >&6
8407: else
8408: ac_func_search_save_LIBS=$LIBS
8409: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410: /* end confdefs.h. */
8411:
8412: /* Override any GCC internal prototype to avoid an error.
8413: Use char because int might match the return type of a GCC
8414: builtin and then its argument prototype would still apply. */
8415: #ifdef __cplusplus
8416: extern "C"
8417: #endif
8418: char opendir ();
8419: int
8420: main ()
8421: {
8422: return opendir ();
8423: ;
8424: return 0;
8425: }
8426: _ACEOF
8427: for ac_lib in '' dir; do
8428: if test -z "$ac_lib"; then
8429: ac_res="none required"
8430: else
8431: ac_res=-l$ac_lib
8432: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8433: fi
8434: if ac_fn_c_try_link "$LINENO"; then :
8435: ac_cv_search_opendir=$ac_res
8436: fi
8437: rm -f core conftest.err conftest.$ac_objext \
8438: conftest$ac_exeext
8439: if test "${ac_cv_search_opendir+set}" = set; then :
8440: break
8441: fi
8442: done
8443: if test "${ac_cv_search_opendir+set}" = set; then :
8444:
8445: else
8446: ac_cv_search_opendir=no
8447: fi
8448: rm conftest.$ac_ext
8449: LIBS=$ac_func_search_save_LIBS
8450: fi
8451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8452: $as_echo "$ac_cv_search_opendir" >&6; }
8453: ac_res=$ac_cv_search_opendir
8454: if test "$ac_res" != no; then :
8455: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8456:
8457: fi
8458:
8459: else
8460: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8461: $as_echo_n "checking for library containing opendir... " >&6; }
8462: if test "${ac_cv_search_opendir+set}" = set; then :
8463: $as_echo_n "(cached) " >&6
8464: else
8465: ac_func_search_save_LIBS=$LIBS
8466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467: /* end confdefs.h. */
8468:
8469: /* Override any GCC internal prototype to avoid an error.
8470: Use char because int might match the return type of a GCC
8471: builtin and then its argument prototype would still apply. */
8472: #ifdef __cplusplus
8473: extern "C"
8474: #endif
8475: char opendir ();
8476: int
8477: main ()
8478: {
8479: return opendir ();
8480: ;
8481: return 0;
8482: }
8483: _ACEOF
8484: for ac_lib in '' x; do
8485: if test -z "$ac_lib"; then
8486: ac_res="none required"
8487: else
8488: ac_res=-l$ac_lib
8489: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8490: fi
8491: if ac_fn_c_try_link "$LINENO"; then :
8492: ac_cv_search_opendir=$ac_res
8493: fi
8494: rm -f core conftest.err conftest.$ac_objext \
8495: conftest$ac_exeext
8496: if test "${ac_cv_search_opendir+set}" = set; then :
8497: break
8498: fi
8499: done
8500: if test "${ac_cv_search_opendir+set}" = set; then :
8501:
8502: else
8503: ac_cv_search_opendir=no
8504: fi
8505: rm conftest.$ac_ext
8506: LIBS=$ac_func_search_save_LIBS
8507: fi
8508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8509: $as_echo "$ac_cv_search_opendir" >&6; }
8510: ac_res=$ac_cv_search_opendir
8511: if test "$ac_res" != no; then :
8512: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8513:
8514: fi
8515:
8516: fi
8517:
8518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8519: $as_echo_n "checking for ANSI C header files... " >&6; }
8520: if test "${ac_cv_header_stdc+set}" = set; then :
8521: $as_echo_n "(cached) " >&6
8522: else
8523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524: /* end confdefs.h. */
8525: #include <stdlib.h>
8526: #include <stdarg.h>
8527: #include <string.h>
8528: #include <float.h>
8529:
8530: int
8531: main ()
8532: {
8533:
8534: ;
8535: return 0;
8536: }
8537: _ACEOF
8538: if ac_fn_c_try_compile "$LINENO"; then :
8539: ac_cv_header_stdc=yes
8540: else
8541: ac_cv_header_stdc=no
8542: fi
8543: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544:
8545: if test $ac_cv_header_stdc = yes; then
8546: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548: /* end confdefs.h. */
8549: #include <string.h>
8550:
8551: _ACEOF
8552: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8553: $EGREP "memchr" >/dev/null 2>&1; then :
8554:
8555: else
8556: ac_cv_header_stdc=no
8557: fi
8558: rm -f conftest*
8559:
8560: fi
8561:
8562: if test $ac_cv_header_stdc = yes; then
8563: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565: /* end confdefs.h. */
8566: #include <stdlib.h>
8567:
8568: _ACEOF
8569: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570: $EGREP "free" >/dev/null 2>&1; then :
8571:
8572: else
8573: ac_cv_header_stdc=no
8574: fi
8575: rm -f conftest*
8576:
8577: fi
8578:
8579: if test $ac_cv_header_stdc = yes; then
8580: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8581: if test "$cross_compiling" = yes; then :
8582: :
8583: else
8584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585: /* end confdefs.h. */
8586: #include <ctype.h>
8587: #include <stdlib.h>
8588: #if ((' ' & 0x0FF) == 0x020)
8589: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8590: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8591: #else
8592: # define ISLOWER(c) \
8593: (('a' <= (c) && (c) <= 'i') \
8594: || ('j' <= (c) && (c) <= 'r') \
8595: || ('s' <= (c) && (c) <= 'z'))
8596: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8597: #endif
8598:
8599: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8600: int
8601: main ()
8602: {
8603: int i;
8604: for (i = 0; i < 256; i++)
8605: if (XOR (islower (i), ISLOWER (i))
8606: || toupper (i) != TOUPPER (i))
8607: return 2;
8608: return 0;
8609: }
8610: _ACEOF
8611: if ac_fn_c_try_run "$LINENO"; then :
8612:
8613: else
8614: ac_cv_header_stdc=no
8615: fi
8616: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8617: conftest.$ac_objext conftest.beam conftest.$ac_ext
8618: fi
8619:
8620: fi
8621: fi
8622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8623: $as_echo "$ac_cv_header_stdc" >&6; }
8624: if test $ac_cv_header_stdc = yes; then
8625:
8626: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8627:
8628: fi
8629:
8630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8631: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8632: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8633: $as_echo_n "(cached) " >&6
8634: else
8635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636: /* end confdefs.h. */
8637: #include <sys/types.h>
8638: #include <sys/wait.h>
8639: #ifndef WEXITSTATUS
8640: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8641: #endif
8642: #ifndef WIFEXITED
8643: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8644: #endif
8645:
8646: int
8647: main ()
8648: {
8649: int s;
8650: wait (&s);
8651: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8652: ;
8653: return 0;
8654: }
8655: _ACEOF
8656: if ac_fn_c_try_compile "$LINENO"; then :
8657: ac_cv_header_sys_wait_h=yes
8658: else
8659: ac_cv_header_sys_wait_h=no
8660: fi
8661: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662: fi
8663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8664: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8665: if test $ac_cv_header_sys_wait_h = yes; then
8666:
8667: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8668:
8669: fi
8670:
8671: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8672: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8673: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8674: do :
8675: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8676: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8677: eval as_val=\$$as_ac_Header
8678: if test "x$as_val" = x""yes; then :
8679: cat >>confdefs.h <<_ACEOF
8680: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8681: _ACEOF
8682:
8683: fi
8684:
8685: done
8686:
8687:
8688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8689: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8690: if test "${ac_cv_c_const+set}" = set; then :
8691: $as_echo_n "(cached) " >&6
8692: else
8693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694: /* end confdefs.h. */
8695:
8696: int
8697: main ()
8698: {
8699: /* FIXME: Include the comments suggested by Paul. */
8700: #ifndef __cplusplus
8701: /* Ultrix mips cc rejects this. */
8702: typedef int charset[2];
8703: const charset cs;
8704: /* SunOS 4.1.1 cc rejects this. */
8705: char const *const *pcpcc;
8706: char **ppc;
8707: /* NEC SVR4.0.2 mips cc rejects this. */
8708: struct point {int x, y;};
8709: static struct point const zero = {0,0};
8710: /* AIX XL C 1.02.0.0 rejects this.
8711: It does not let you subtract one const X* pointer from another in
8712: an arm of an if-expression whose if-part is not a constant
8713: expression */
8714: const char *g = "string";
8715: pcpcc = &g + (g ? g-g : 0);
8716: /* HPUX 7.0 cc rejects these. */
8717: ++pcpcc;
8718: ppc = (char**) pcpcc;
8719: pcpcc = (char const *const *) ppc;
8720: { /* SCO 3.2v4 cc rejects this. */
8721: char *t;
8722: char const *s = 0 ? (char *) 0 : (char const *) 0;
8723:
8724: *t++ = 0;
8725: if (s) return 0;
8726: }
8727: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8728: int x[] = {25, 17};
8729: const int *foo = &x[0];
8730: ++foo;
8731: }
8732: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8733: typedef const int *iptr;
8734: iptr p = 0;
8735: ++p;
8736: }
8737: { /* AIX XL C 1.02.0.0 rejects this saying
8738: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8739: struct s { int j; const int *ap[3]; };
8740: struct s *b; b->j = 5;
8741: }
8742: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8743: const int foo = 10;
8744: if (!foo) return 0;
8745: }
8746: return !cs[0] && !zero.x;
8747: #endif
8748:
8749: ;
8750: return 0;
8751: }
8752: _ACEOF
8753: if ac_fn_c_try_compile "$LINENO"; then :
8754: ac_cv_c_const=yes
8755: else
8756: ac_cv_c_const=no
8757: fi
8758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759: fi
8760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8761: $as_echo "$ac_cv_c_const" >&6; }
8762: if test $ac_cv_c_const = no; then
8763:
8764: $as_echo "#define const /**/" >>confdefs.h
8765:
8766: fi
8767:
8768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8769: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8770: if test "${ac_cv_type_uid_t+set}" = set; then :
8771: $as_echo_n "(cached) " >&6
8772: else
8773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774: /* end confdefs.h. */
8775: #include <sys/types.h>
8776:
8777: _ACEOF
8778: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779: $EGREP "uid_t" >/dev/null 2>&1; then :
8780: ac_cv_type_uid_t=yes
8781: else
8782: ac_cv_type_uid_t=no
8783: fi
8784: rm -f conftest*
8785:
8786: fi
8787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8788: $as_echo "$ac_cv_type_uid_t" >&6; }
8789: if test $ac_cv_type_uid_t = no; then
8790:
8791: $as_echo "#define uid_t int" >>confdefs.h
8792:
8793:
8794: $as_echo "#define gid_t int" >>confdefs.h
8795:
8796: fi
8797:
8798: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8799: if test "x$ac_cv_type_pid_t" = x""yes; then :
8800:
8801: else
8802:
8803: cat >>confdefs.h <<_ACEOF
8804: #define pid_t int
8805: _ACEOF
8806:
8807: fi
8808:
8809: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8810: if test "x$ac_cv_type_size_t" = x""yes; then :
8811:
8812: else
8813:
8814: cat >>confdefs.h <<_ACEOF
8815: #define size_t unsigned int
8816: _ACEOF
8817:
8818: fi
8819:
8820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8821: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8822: if test "${ac_cv_header_time+set}" = set; then :
8823: $as_echo_n "(cached) " >&6
8824: else
8825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826: /* end confdefs.h. */
8827: #include <sys/types.h>
8828: #include <sys/time.h>
8829: #include <time.h>
8830:
8831: int
8832: main ()
8833: {
8834: if ((struct tm *) 0)
8835: return 0;
8836: ;
8837: return 0;
8838: }
8839: _ACEOF
8840: if ac_fn_c_try_compile "$LINENO"; then :
8841: ac_cv_header_time=yes
8842: else
8843: ac_cv_header_time=no
8844: fi
8845: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846: fi
8847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8848: $as_echo "$ac_cv_header_time" >&6; }
8849: if test $ac_cv_header_time = yes; then
8850:
8851: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8852:
8853: fi
8854:
8855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8856: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8857: if test "${ac_cv_struct_tm+set}" = set; then :
8858: $as_echo_n "(cached) " >&6
8859: else
8860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861: /* end confdefs.h. */
8862: #include <sys/types.h>
8863: #include <time.h>
8864:
8865: int
8866: main ()
8867: {
8868: struct tm tm;
8869: int *p = &tm.tm_sec;
8870: return !p;
8871: ;
8872: return 0;
8873: }
8874: _ACEOF
8875: if ac_fn_c_try_compile "$LINENO"; then :
8876: ac_cv_struct_tm=time.h
8877: else
8878: ac_cv_struct_tm=sys/time.h
8879: fi
8880: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881: fi
8882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8883: $as_echo "$ac_cv_struct_tm" >&6; }
8884: if test $ac_cv_struct_tm = sys/time.h; then
8885:
8886: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8887:
8888: fi
8889:
8890:
8891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8892: $as_echo_n "checking return type of signal handlers... " >&6; }
8893: if test "${ac_cv_type_signal+set}" = set; then :
8894: $as_echo_n "(cached) " >&6
8895: else
8896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897: /* end confdefs.h. */
8898: #include <sys/types.h>
8899: #include <signal.h>
8900:
8901: int
8902: main ()
8903: {
8904: return *(signal (0, 0)) (0) == 1;
8905: ;
8906: return 0;
8907: }
8908: _ACEOF
8909: if ac_fn_c_try_compile "$LINENO"; then :
8910: ac_cv_type_signal=int
8911: else
8912: ac_cv_type_signal=void
8913: fi
8914: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915: fi
8916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8917: $as_echo "$ac_cv_type_signal" >&6; }
8918:
8919: cat >>confdefs.h <<_ACEOF
8920: #define RETSIGTYPE $ac_cv_type_signal
8921: _ACEOF
8922:
8923:
8924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8925: $as_echo_n "checking for working strcoll... " >&6; }
8926: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8927: $as_echo_n "(cached) " >&6
8928: else
8929: if test "$cross_compiling" = yes; then :
8930: ac_cv_func_strcoll_works=no
8931: else
8932: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933: /* end confdefs.h. */
8934: $ac_includes_default
8935: int
8936: main ()
8937: {
8938: return (strcoll ("abc", "def") >= 0 ||
8939: strcoll ("ABC", "DEF") >= 0 ||
8940: strcoll ("123", "456") >= 0)
8941: ;
8942: return 0;
8943: }
8944: _ACEOF
8945: if ac_fn_c_try_run "$LINENO"; then :
8946: ac_cv_func_strcoll_works=yes
8947: else
8948: ac_cv_func_strcoll_works=no
8949: fi
8950: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8951: conftest.$ac_objext conftest.beam conftest.$ac_ext
8952: fi
8953:
8954: fi
8955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8956: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8957: if test $ac_cv_func_strcoll_works = yes; then
8958:
8959: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8960:
8961: fi
8962:
8963: for ac_func in strftime
8964: do :
8965: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8966: if test "x$ac_cv_func_strftime" = x""yes; then :
8967: cat >>confdefs.h <<_ACEOF
8968: #define HAVE_STRFTIME 1
8969: _ACEOF
8970:
8971: else
8972: # strftime is in -lintl on SCO UNIX.
8973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8974: $as_echo_n "checking for strftime in -lintl... " >&6; }
8975: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8976: $as_echo_n "(cached) " >&6
8977: else
8978: ac_check_lib_save_LIBS=$LIBS
8979: LIBS="-lintl $LIBS"
8980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981: /* end confdefs.h. */
8982:
8983: /* Override any GCC internal prototype to avoid an error.
8984: Use char because int might match the return type of a GCC
8985: builtin and then its argument prototype would still apply. */
8986: #ifdef __cplusplus
8987: extern "C"
8988: #endif
8989: char strftime ();
8990: int
8991: main ()
8992: {
8993: return strftime ();
8994: ;
8995: return 0;
8996: }
8997: _ACEOF
8998: if ac_fn_c_try_link "$LINENO"; then :
8999: ac_cv_lib_intl_strftime=yes
9000: else
9001: ac_cv_lib_intl_strftime=no
9002: fi
9003: rm -f core conftest.err conftest.$ac_objext \
9004: conftest$ac_exeext conftest.$ac_ext
9005: LIBS=$ac_check_lib_save_LIBS
9006: fi
9007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9008: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9009: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
9010: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9011:
9012: LIBS="-lintl $LIBS"
9013: fi
9014:
9015: fi
9016: done
9017:
9018: for ac_func in vprintf
9019: do :
9020: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9021: if test "x$ac_cv_func_vprintf" = x""yes; then :
9022: cat >>confdefs.h <<_ACEOF
9023: #define HAVE_VPRINTF 1
9024: _ACEOF
9025:
9026: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9027: if test "x$ac_cv_func__doprnt" = x""yes; then :
9028:
9029: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9030:
9031: fi
9032:
9033: fi
9034: done
9035:
9036:
9037: for ac_func in ftime getcwd putenv select strcspn strdup \
9038: strerror strspn strstr strtod
9039: do :
9040: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9041: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9042: eval as_val=\$$as_ac_var
9043: if test "x$as_val" = x""yes; then :
9044: cat >>confdefs.h <<_ACEOF
9045: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9046: _ACEOF
9047:
9048: fi
9049: done
9050:
9051:
9052:
9053:
9054: subdirs="$subdirs tools/$NCURSES"
9055:
9056: subdirs="$subdirs tools/$READLINE"
9057:
9058: subdirs="$subdirs tools/$UNITS"
9059:
9060: subdirs="$subdirs tools/$GSL"
9061:
9062: subdirs="$subdirs tools/$GPP"
9063:
9064: subdirs="$subdirs tools/$FILE"
9065:
9066: subdirs="$subdirs tools/$ICONV"
9067:
9068:
9069: if test "$MYGNUPLOT" = "yes"; then
9070: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9071: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9072: (cd "$srcdir/tools" && tar -xf -)
9073: fi
9074: subdirs="$subdirs tools/$GNUPLOT"
9075:
9076: GNUPLOT_COMPILATION=$GNUPLOT
9077: else
9078: GNUPLOT_COMPILATION=
9079: fi
9080:
9081:
9082:
9083: case $host_cpu in
9084:
9085: i?86)
9086: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9087: -Wno-pointer-sign"
9088: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9089: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9090: break ;;
9091:
9092: x86_64*)
9093: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9094: -Wno-pointer-sign"
9095: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9096: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9097: break ;;
9098:
9099: alpha*)
9100: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9101: -Wno-pointer-sign"
9102: FFLAGS="$FFLAGS -mieee -Wall"
9103: FCFLAGS="$FCFLAGS -mieee -Wall"
9104: break ;;
9105:
9106: sparc*)
9107: CFLAGS="$CFLAGS -Wall -funsigned-char \
9108: -Wno-pointer-sign"
9109: FFLAGS="$FFLAGS -Wall"
9110: FCFLAGS="$FCFLAGS -Wall"
9111: break ;;
9112:
9113: esac
9114:
9115: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9116: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9117:
9118: if test $(uname) = "SunOS"; then
9119: LIBMTMALLOC=-lmtmalloc
9120: else
9121: LIBMTMALLOC=
9122: fi
9123:
9124:
9125:
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134:
9135:
9136:
9137:
9138:
9139:
9140:
9141:
9142:
9143: ac_config_files="$ac_config_files Makefile"
9144:
9145: ac_config_files="$ac_config_files COPYING"
9146:
9147: ac_config_files="$ac_config_files tools/Makefile"
9148:
9149: ac_config_files="$ac_config_files src/Makefile"
9150:
9151: ac_config_files="$ac_config_files man/Makefile"
9152:
9153: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9154:
9155: ac_config_files="$ac_config_files doc/Makefile"
9156:
9157: ac_config_files="$ac_config_files scripts/Makefile"
9158:
9159: ac_config_files="$ac_config_files scripts/mkrplso"
9160:
9161: ac_config_files="$ac_config_files scripts/rplcc"
9162:
9163: ac_config_files="$ac_config_files scripts/rpllink"
9164:
9165: ac_config_files="$ac_config_files rpltags/Makefile"
9166:
9167: ac_config_files="$ac_config_files rpliconv/Makefile"
9168:
9169: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9170:
9171: ac_config_files="$ac_config_files lapack/blas/Makefile"
9172:
9173:
9174: ac_config_files="$ac_config_files man/rpl.1"
9175:
9176: ac_config_files="$ac_config_files man/rplcc.1"
9177:
9178: ac_config_files="$ac_config_files man/rpllink.1"
9179:
9180: ac_config_files="$ac_config_files man/rpltags.1"
9181:
9182: ac_config_files="$ac_config_files man/mkrplso.1"
9183:
9184: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9185:
9186: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9187:
9188: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9189:
9190: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9191:
9192: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9193:
9194:
9195: cat >confcache <<\_ACEOF
9196: # This file is a shell script that caches the results of configure
9197: # tests run on this system so they can be shared between configure
9198: # scripts and configure runs, see configure's option --config-cache.
9199: # It is not useful on other systems. If it contains results you don't
9200: # want to keep, you may remove or edit it.
9201: #
9202: # config.status only pays attention to the cache file if you give it
9203: # the --recheck option to rerun configure.
9204: #
9205: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9206: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9207: # following values.
9208:
9209: _ACEOF
9210:
9211: # The following way of writing the cache mishandles newlines in values,
9212: # but we know of no workaround that is simple, portable, and efficient.
9213: # So, we kill variables containing newlines.
9214: # Ultrix sh set writes to stderr and can't be redirected directly,
9215: # and sets the high bit in the cache file unless we assign to the vars.
9216: (
9217: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9218: eval ac_val=\$$ac_var
9219: case $ac_val in #(
9220: *${as_nl}*)
9221: case $ac_var in #(
9222: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9223: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9224: esac
9225: case $ac_var in #(
9226: _ | IFS | as_nl) ;; #(
9227: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9228: *) { eval $ac_var=; unset $ac_var;} ;;
9229: esac ;;
9230: esac
9231: done
9232:
9233: (set) 2>&1 |
9234: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9235: *${as_nl}ac_space=\ *)
9236: # `set' does not quote correctly, so add quotes: double-quote
9237: # substitution turns \\\\ into \\, and sed turns \\ into \.
9238: sed -n \
9239: "s/'/'\\\\''/g;
9240: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9241: ;; #(
9242: *)
9243: # `set' quotes correctly as required by POSIX, so do not add quotes.
9244: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9245: ;;
9246: esac |
9247: sort
9248: ) |
9249: sed '
9250: /^ac_cv_env_/b end
9251: t clear
9252: :clear
9253: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9254: t end
9255: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9256: :end' >>confcache
9257: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9258: if test -w "$cache_file"; then
9259: test "x$cache_file" != "x/dev/null" &&
9260: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9261: $as_echo "$as_me: updating cache $cache_file" >&6;}
9262: cat confcache >$cache_file
9263: else
9264: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9265: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9266: fi
9267: fi
9268: rm -f confcache
9269:
9270: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9271: # Let make expand exec_prefix.
9272: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9273:
9274: DEFS=-DHAVE_CONFIG_H
9275:
9276: ac_libobjs=
9277: ac_ltlibobjs=
9278: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9279: # 1. Remove the extension, and $U if already installed.
9280: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9281: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9282: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9283: # will be set to the directory where LIBOBJS objects are built.
9284: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9285: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9286: done
9287: LIBOBJS=$ac_libobjs
9288:
9289: LTLIBOBJS=$ac_ltlibobjs
9290:
9291:
9292: if test -n "$EXEEXT"; then
9293: am__EXEEXT_TRUE=
9294: am__EXEEXT_FALSE='#'
9295: else
9296: am__EXEEXT_TRUE='#'
9297: am__EXEEXT_FALSE=
9298: fi
9299:
9300: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9301: as_fn_error "conditional \"AMDEP\" was never defined.
9302: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9303: fi
9304: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9305: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9306: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9307: fi
9308: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9309: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9310: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9311: fi
9312:
9313: : ${CONFIG_STATUS=./config.status}
9314: ac_write_fail=0
9315: ac_clean_files_save=$ac_clean_files
9316: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9317: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9318: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9319: as_write_fail=0
9320: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9321: #! $SHELL
9322: # Generated by $as_me.
9323: # Run this file to recreate the current configuration.
9324: # Compiler output produced by configure, useful for debugging
9325: # configure, is in config.log if it exists.
9326:
9327: debug=false
9328: ac_cs_recheck=false
9329: ac_cs_silent=false
9330:
9331: SHELL=\${CONFIG_SHELL-$SHELL}
9332: export SHELL
9333: _ASEOF
9334: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9335: ## -------------------- ##
9336: ## M4sh Initialization. ##
9337: ## -------------------- ##
9338:
9339: # Be more Bourne compatible
9340: DUALCASE=1; export DUALCASE # for MKS sh
9341: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9342: emulate sh
9343: NULLCMD=:
9344: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9345: # is contrary to our usage. Disable this feature.
9346: alias -g '${1+"$@"}'='"$@"'
9347: setopt NO_GLOB_SUBST
9348: else
9349: case `(set -o) 2>/dev/null` in #(
9350: *posix*) :
9351: set -o posix ;; #(
9352: *) :
9353: ;;
9354: esac
9355: fi
9356:
9357:
9358: as_nl='
9359: '
9360: export as_nl
9361: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9362: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9363: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9364: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9365: # Prefer a ksh shell builtin over an external printf program on Solaris,
9366: # but without wasting forks for bash or zsh.
9367: if test -z "$BASH_VERSION$ZSH_VERSION" \
9368: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9369: as_echo='print -r --'
9370: as_echo_n='print -rn --'
9371: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9372: as_echo='printf %s\n'
9373: as_echo_n='printf %s'
9374: else
9375: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9376: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9377: as_echo_n='/usr/ucb/echo -n'
9378: else
9379: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9380: as_echo_n_body='eval
9381: arg=$1;
9382: case $arg in #(
9383: *"$as_nl"*)
9384: expr "X$arg" : "X\\(.*\\)$as_nl";
9385: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9386: esac;
9387: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9388: '
9389: export as_echo_n_body
9390: as_echo_n='sh -c $as_echo_n_body as_echo'
9391: fi
9392: export as_echo_body
9393: as_echo='sh -c $as_echo_body as_echo'
9394: fi
9395:
9396: # The user is always right.
9397: if test "${PATH_SEPARATOR+set}" != set; then
9398: PATH_SEPARATOR=:
9399: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9400: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9401: PATH_SEPARATOR=';'
9402: }
9403: fi
9404:
9405:
9406: # IFS
9407: # We need space, tab and new line, in precisely that order. Quoting is
9408: # there to prevent editors from complaining about space-tab.
9409: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9410: # splitting by setting IFS to empty value.)
9411: IFS=" "" $as_nl"
9412:
9413: # Find who we are. Look in the path if we contain no directory separator.
9414: case $0 in #((
9415: *[\\/]* ) as_myself=$0 ;;
9416: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417: for as_dir in $PATH
9418: do
9419: IFS=$as_save_IFS
9420: test -z "$as_dir" && as_dir=.
9421: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9422: done
9423: IFS=$as_save_IFS
9424:
9425: ;;
9426: esac
9427: # We did not find ourselves, most probably we were run as `sh COMMAND'
9428: # in which case we are not to be found in the path.
9429: if test "x$as_myself" = x; then
9430: as_myself=$0
9431: fi
9432: if test ! -f "$as_myself"; then
9433: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9434: exit 1
9435: fi
9436:
9437: # Unset variables that we do not need and which cause bugs (e.g. in
9438: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9439: # suppresses any "Segmentation fault" message there. '((' could
9440: # trigger a bug in pdksh 5.2.14.
9441: for as_var in BASH_ENV ENV MAIL MAILPATH
9442: do eval test x\${$as_var+set} = xset \
9443: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9444: done
9445: PS1='$ '
9446: PS2='> '
9447: PS4='+ '
9448:
9449: # NLS nuisances.
9450: LC_ALL=C
9451: export LC_ALL
9452: LANGUAGE=C
9453: export LANGUAGE
9454:
9455: # CDPATH.
9456: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9457:
9458:
9459: # as_fn_error ERROR [LINENO LOG_FD]
9460: # ---------------------------------
9461: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9462: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9463: # script with status $?, using 1 if that was 0.
9464: as_fn_error ()
9465: {
9466: as_status=$?; test $as_status -eq 0 && as_status=1
9467: if test "$3"; then
9468: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9469: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9470: fi
9471: $as_echo "$as_me: error: $1" >&2
9472: as_fn_exit $as_status
9473: } # as_fn_error
9474:
9475:
9476: # as_fn_set_status STATUS
9477: # -----------------------
9478: # Set $? to STATUS, without forking.
9479: as_fn_set_status ()
9480: {
9481: return $1
9482: } # as_fn_set_status
9483:
9484: # as_fn_exit STATUS
9485: # -----------------
9486: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9487: as_fn_exit ()
9488: {
9489: set +e
9490: as_fn_set_status $1
9491: exit $1
9492: } # as_fn_exit
9493:
9494: # as_fn_unset VAR
9495: # ---------------
9496: # Portably unset VAR.
9497: as_fn_unset ()
9498: {
9499: { eval $1=; unset $1;}
9500: }
9501: as_unset=as_fn_unset
9502: # as_fn_append VAR VALUE
9503: # ----------------------
9504: # Append the text in VALUE to the end of the definition contained in VAR. Take
9505: # advantage of any shell optimizations that allow amortized linear growth over
9506: # repeated appends, instead of the typical quadratic growth present in naive
9507: # implementations.
9508: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9509: eval 'as_fn_append ()
9510: {
9511: eval $1+=\$2
9512: }'
9513: else
9514: as_fn_append ()
9515: {
9516: eval $1=\$$1\$2
9517: }
9518: fi # as_fn_append
9519:
9520: # as_fn_arith ARG...
9521: # ------------------
9522: # Perform arithmetic evaluation on the ARGs, and store the result in the
9523: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9524: # must be portable across $(()) and expr.
9525: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9526: eval 'as_fn_arith ()
9527: {
9528: as_val=$(( $* ))
9529: }'
9530: else
9531: as_fn_arith ()
9532: {
9533: as_val=`expr "$@" || test $? -eq 1`
9534: }
9535: fi # as_fn_arith
9536:
9537:
9538: if expr a : '\(a\)' >/dev/null 2>&1 &&
9539: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9540: as_expr=expr
9541: else
9542: as_expr=false
9543: fi
9544:
9545: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9546: as_basename=basename
9547: else
9548: as_basename=false
9549: fi
9550:
9551: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9552: as_dirname=dirname
9553: else
9554: as_dirname=false
9555: fi
9556:
9557: as_me=`$as_basename -- "$0" ||
9558: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9559: X"$0" : 'X\(//\)$' \| \
9560: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9561: $as_echo X/"$0" |
9562: sed '/^.*\/\([^/][^/]*\)\/*$/{
9563: s//\1/
9564: q
9565: }
9566: /^X\/\(\/\/\)$/{
9567: s//\1/
9568: q
9569: }
9570: /^X\/\(\/\).*/{
9571: s//\1/
9572: q
9573: }
9574: s/.*/./; q'`
9575:
9576: # Avoid depending upon Character Ranges.
9577: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9578: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9579: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9580: as_cr_digits='0123456789'
9581: as_cr_alnum=$as_cr_Letters$as_cr_digits
9582:
9583: ECHO_C= ECHO_N= ECHO_T=
9584: case `echo -n x` in #(((((
9585: -n*)
9586: case `echo 'xy\c'` in
9587: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9588: xy) ECHO_C='\c';;
9589: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9590: ECHO_T=' ';;
9591: esac;;
9592: *)
9593: ECHO_N='-n';;
9594: esac
9595:
9596: rm -f conf$$ conf$$.exe conf$$.file
9597: if test -d conf$$.dir; then
9598: rm -f conf$$.dir/conf$$.file
9599: else
9600: rm -f conf$$.dir
9601: mkdir conf$$.dir 2>/dev/null
9602: fi
9603: if (echo >conf$$.file) 2>/dev/null; then
9604: if ln -s conf$$.file conf$$ 2>/dev/null; then
9605: as_ln_s='ln -s'
9606: # ... but there are two gotchas:
9607: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9608: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9609: # In both cases, we have to default to `cp -p'.
9610: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9611: as_ln_s='cp -p'
9612: elif ln conf$$.file conf$$ 2>/dev/null; then
9613: as_ln_s=ln
9614: else
9615: as_ln_s='cp -p'
9616: fi
9617: else
9618: as_ln_s='cp -p'
9619: fi
9620: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9621: rmdir conf$$.dir 2>/dev/null
9622:
9623:
9624: # as_fn_mkdir_p
9625: # -------------
9626: # Create "$as_dir" as a directory, including parents if necessary.
9627: as_fn_mkdir_p ()
9628: {
9629:
9630: case $as_dir in #(
9631: -*) as_dir=./$as_dir;;
9632: esac
9633: test -d "$as_dir" || eval $as_mkdir_p || {
9634: as_dirs=
9635: while :; do
9636: case $as_dir in #(
9637: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9638: *) as_qdir=$as_dir;;
9639: esac
9640: as_dirs="'$as_qdir' $as_dirs"
9641: as_dir=`$as_dirname -- "$as_dir" ||
9642: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9643: X"$as_dir" : 'X\(//\)[^/]' \| \
9644: X"$as_dir" : 'X\(//\)$' \| \
9645: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9646: $as_echo X"$as_dir" |
9647: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9648: s//\1/
9649: q
9650: }
9651: /^X\(\/\/\)[^/].*/{
9652: s//\1/
9653: q
9654: }
9655: /^X\(\/\/\)$/{
9656: s//\1/
9657: q
9658: }
9659: /^X\(\/\).*/{
9660: s//\1/
9661: q
9662: }
9663: s/.*/./; q'`
9664: test -d "$as_dir" && break
9665: done
9666: test -z "$as_dirs" || eval "mkdir $as_dirs"
9667: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9668:
9669:
9670: } # as_fn_mkdir_p
9671: if mkdir -p . 2>/dev/null; then
9672: as_mkdir_p='mkdir -p "$as_dir"'
9673: else
9674: test -d ./-p && rmdir ./-p
9675: as_mkdir_p=false
9676: fi
9677:
9678: if test -x / >/dev/null 2>&1; then
9679: as_test_x='test -x'
9680: else
9681: if ls -dL / >/dev/null 2>&1; then
9682: as_ls_L_option=L
9683: else
9684: as_ls_L_option=
9685: fi
9686: as_test_x='
9687: eval sh -c '\''
9688: if test -d "$1"; then
9689: test -d "$1/.";
9690: else
9691: case $1 in #(
9692: -*)set "./$1";;
9693: esac;
9694: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9695: ???[sx]*):;;*)false;;esac;fi
9696: '\'' sh
9697: '
9698: fi
9699: as_executable_p=$as_test_x
9700:
9701: # Sed expression to map a string onto a valid CPP name.
9702: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9703:
9704: # Sed expression to map a string onto a valid variable name.
9705: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9706:
9707:
9708: exec 6>&1
9709: ## ----------------------------------- ##
9710: ## Main body of $CONFIG_STATUS script. ##
9711: ## ----------------------------------- ##
9712: _ASEOF
9713: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9714:
9715: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9716: # Save the log message, to keep $0 and so on meaningful, and to
9717: # report actual input values of CONFIG_FILES etc. instead of their
9718: # values after options handling.
9719: ac_log="
1.2 bertrand 9720: This file was extended by rpl $as_me 4.0.10, which was
1.1 bertrand 9721: generated by GNU Autoconf 2.65. Invocation command line was
9722:
9723: CONFIG_FILES = $CONFIG_FILES
9724: CONFIG_HEADERS = $CONFIG_HEADERS
9725: CONFIG_LINKS = $CONFIG_LINKS
9726: CONFIG_COMMANDS = $CONFIG_COMMANDS
9727: $ $0 $@
9728:
9729: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9730: "
9731:
9732: _ACEOF
9733:
9734: case $ac_config_files in *"
9735: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9736: esac
9737:
9738: case $ac_config_headers in *"
9739: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9740: esac
9741:
9742:
9743: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9744: # Files that config.status was made for.
9745: config_files="$ac_config_files"
9746: config_headers="$ac_config_headers"
9747: config_commands="$ac_config_commands"
9748:
9749: _ACEOF
9750:
9751: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9752: ac_cs_usage="\
9753: \`$as_me' instantiates files and other configuration actions
9754: from templates according to the current configuration. Unless the files
9755: and actions are specified as TAGs, all are instantiated by default.
9756:
9757: Usage: $0 [OPTION]... [TAG]...
9758:
9759: -h, --help print this help, then exit
9760: -V, --version print version number and configuration settings, then exit
9761: --config print configuration, then exit
9762: -q, --quiet, --silent
9763: do not print progress messages
9764: -d, --debug don't remove temporary files
9765: --recheck update $as_me by reconfiguring in the same conditions
9766: --file=FILE[:TEMPLATE]
9767: instantiate the configuration file FILE
9768: --header=FILE[:TEMPLATE]
9769: instantiate the configuration header FILE
9770:
9771: Configuration files:
9772: $config_files
9773:
9774: Configuration headers:
9775: $config_headers
9776:
9777: Configuration commands:
9778: $config_commands
9779:
9780: Report bugs to the package provider."
9781:
9782: _ACEOF
9783: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9784: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9785: ac_cs_version="\\
1.2 bertrand 9786: rpl config.status 4.0.10
1.1 bertrand 9787: configured by $0, generated by GNU Autoconf 2.65,
9788: with options \\"\$ac_cs_config\\"
9789:
9790: Copyright (C) 2009 Free Software Foundation, Inc.
9791: This config.status script is free software; the Free Software Foundation
9792: gives unlimited permission to copy, distribute and modify it."
9793:
9794: ac_pwd='$ac_pwd'
9795: srcdir='$srcdir'
9796: INSTALL='$INSTALL'
9797: MKDIR_P='$MKDIR_P'
9798: AWK='$AWK'
9799: test -n "\$AWK" || AWK=awk
9800: _ACEOF
9801:
9802: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9803: # The default lists apply if the user does not specify any file.
9804: ac_need_defaults=:
9805: while test $# != 0
9806: do
9807: case $1 in
9808: --*=*)
9809: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9810: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9811: ac_shift=:
9812: ;;
9813: *)
9814: ac_option=$1
9815: ac_optarg=$2
9816: ac_shift=shift
9817: ;;
9818: esac
9819:
9820: case $ac_option in
9821: # Handling of the options.
9822: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9823: ac_cs_recheck=: ;;
9824: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9825: $as_echo "$ac_cs_version"; exit ;;
9826: --config | --confi | --conf | --con | --co | --c )
9827: $as_echo "$ac_cs_config"; exit ;;
9828: --debug | --debu | --deb | --de | --d | -d )
9829: debug=: ;;
9830: --file | --fil | --fi | --f )
9831: $ac_shift
9832: case $ac_optarg in
9833: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9834: esac
9835: as_fn_append CONFIG_FILES " '$ac_optarg'"
9836: ac_need_defaults=false;;
9837: --header | --heade | --head | --hea )
9838: $ac_shift
9839: case $ac_optarg in
9840: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9841: esac
9842: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9843: ac_need_defaults=false;;
9844: --he | --h)
9845: # Conflict between --help and --header
9846: as_fn_error "ambiguous option: \`$1'
9847: Try \`$0 --help' for more information.";;
9848: --help | --hel | -h )
9849: $as_echo "$ac_cs_usage"; exit ;;
9850: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9851: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9852: ac_cs_silent=: ;;
9853:
9854: # This is an error.
9855: -*) as_fn_error "unrecognized option: \`$1'
9856: Try \`$0 --help' for more information." ;;
9857:
9858: *) as_fn_append ac_config_targets " $1"
9859: ac_need_defaults=false ;;
9860:
9861: esac
9862: shift
9863: done
9864:
9865: ac_configure_extra_args=
9866:
9867: if $ac_cs_silent; then
9868: exec 6>/dev/null
9869: ac_configure_extra_args="$ac_configure_extra_args --silent"
9870: fi
9871:
9872: _ACEOF
9873: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9874: if \$ac_cs_recheck; then
9875: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9876: shift
9877: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9878: CONFIG_SHELL='$SHELL'
9879: export CONFIG_SHELL
9880: exec "\$@"
9881: fi
9882:
9883: _ACEOF
9884: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9885: exec 5>>config.log
9886: {
9887: echo
9888: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9889: ## Running $as_me. ##
9890: _ASBOX
9891: $as_echo "$ac_log"
9892: } >&5
9893:
9894: _ACEOF
9895: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9896: #
9897: # INIT-COMMANDS
9898: #
9899: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9900:
9901: _ACEOF
9902:
9903: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9904:
9905: # Handling of arguments.
9906: for ac_config_target in $ac_config_targets
9907: do
9908: case $ac_config_target in
9909: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9910: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9911: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9912: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9913: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9914: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9915: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9916: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9917: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9918: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9919: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9920: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9921: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9922: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9923: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9924: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9925: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9926: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9927: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9928: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9929: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9930: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9931: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9932: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9933: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9934: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9935: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9936:
9937: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9938: esac
9939: done
9940:
9941:
9942: # If the user did not use the arguments to specify the items to instantiate,
9943: # then the envvar interface is used. Set only those that are not.
9944: # We use the long form for the default assignment because of an extremely
9945: # bizarre bug on SunOS 4.1.3.
9946: if $ac_need_defaults; then
9947: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9948: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9949: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9950: fi
9951:
9952: # Have a temporary directory for convenience. Make it in the build tree
9953: # simply because there is no reason against having it here, and in addition,
9954: # creating and moving files from /tmp can sometimes cause problems.
9955: # Hook for its removal unless debugging.
9956: # Note that there is a small window in which the directory will not be cleaned:
9957: # after its creation but before its name has been assigned to `$tmp'.
9958: $debug ||
9959: {
9960: tmp=
9961: trap 'exit_status=$?
9962: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9963: ' 0
9964: trap 'as_fn_exit 1' 1 2 13 15
9965: }
9966: # Create a (secure) tmp directory for tmp files.
9967:
9968: {
9969: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9970: test -n "$tmp" && test -d "$tmp"
9971: } ||
9972: {
9973: tmp=./conf$$-$RANDOM
9974: (umask 077 && mkdir "$tmp")
9975: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9976:
9977: # Set up the scripts for CONFIG_FILES section.
9978: # No need to generate them if there are no CONFIG_FILES.
9979: # This happens for instance with `./config.status config.h'.
9980: if test -n "$CONFIG_FILES"; then
9981:
9982:
9983: ac_cr=`echo X | tr X '\015'`
9984: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9985: # But we know of no other shell where ac_cr would be empty at this
9986: # point, so we can use a bashism as a fallback.
9987: if test "x$ac_cr" = x; then
9988: eval ac_cr=\$\'\\r\'
9989: fi
9990: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9991: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9992: ac_cs_awk_cr='\r'
9993: else
9994: ac_cs_awk_cr=$ac_cr
9995: fi
9996:
9997: echo 'BEGIN {' >"$tmp/subs1.awk" &&
9998: _ACEOF
9999:
10000:
10001: {
10002: echo "cat >conf$$subs.awk <<_ACEOF" &&
10003: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10004: echo "_ACEOF"
10005: } >conf$$subs.sh ||
10006: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10007: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10008: ac_delim='%!_!# '
10009: for ac_last_try in false false false false false :; do
10010: . ./conf$$subs.sh ||
10011: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10012:
10013: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10014: if test $ac_delim_n = $ac_delim_num; then
10015: break
10016: elif $ac_last_try; then
10017: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10018: else
10019: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10020: fi
10021: done
10022: rm -f conf$$subs.sh
10023:
10024: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10025: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10026: _ACEOF
10027: sed -n '
10028: h
10029: s/^/S["/; s/!.*/"]=/
10030: p
10031: g
10032: s/^[^!]*!//
10033: :repl
10034: t repl
10035: s/'"$ac_delim"'$//
10036: t delim
10037: :nl
10038: h
10039: s/\(.\{148\}\)..*/\1/
10040: t more1
10041: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10042: p
10043: n
10044: b repl
10045: :more1
10046: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10047: p
10048: g
10049: s/.\{148\}//
10050: t nl
10051: :delim
10052: h
10053: s/\(.\{148\}\)..*/\1/
10054: t more2
10055: s/["\\]/\\&/g; s/^/"/; s/$/"/
10056: p
10057: b
10058: :more2
10059: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10060: p
10061: g
10062: s/.\{148\}//
10063: t delim
10064: ' <conf$$subs.awk | sed '
10065: /^[^""]/{
10066: N
10067: s/\n//
10068: }
10069: ' >>$CONFIG_STATUS || ac_write_fail=1
10070: rm -f conf$$subs.awk
10071: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10072: _ACAWK
10073: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10074: for (key in S) S_is_set[key] = 1
10075: FS = ""
10076:
10077: }
10078: {
10079: line = $ 0
10080: nfields = split(line, field, "@")
10081: substed = 0
10082: len = length(field[1])
10083: for (i = 2; i < nfields; i++) {
10084: key = field[i]
10085: keylen = length(key)
10086: if (S_is_set[key]) {
10087: value = S[key]
10088: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10089: len += length(value) + length(field[++i])
10090: substed = 1
10091: } else
10092: len += 1 + keylen
10093: }
10094:
10095: print line
10096: }
10097:
10098: _ACAWK
10099: _ACEOF
10100: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10101: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10102: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10103: else
10104: cat
10105: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10106: || as_fn_error "could not setup config files machinery" "$LINENO" 5
10107: _ACEOF
10108:
10109: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10110: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10111: # trailing colons and then remove the whole line if VPATH becomes empty
10112: # (actually we leave an empty line to preserve line numbers).
10113: if test "x$srcdir" = x.; then
10114: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10115: s/:*\$(srcdir):*/:/
10116: s/:*\${srcdir}:*/:/
10117: s/:*@srcdir@:*/:/
10118: s/^\([^=]*=[ ]*\):*/\1/
10119: s/:*$//
10120: s/^[^=]*=[ ]*$//
10121: }'
10122: fi
10123:
10124: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10125: fi # test -n "$CONFIG_FILES"
10126:
10127: # Set up the scripts for CONFIG_HEADERS section.
10128: # No need to generate them if there are no CONFIG_HEADERS.
10129: # This happens for instance with `./config.status Makefile'.
10130: if test -n "$CONFIG_HEADERS"; then
10131: cat >"$tmp/defines.awk" <<\_ACAWK ||
10132: BEGIN {
10133: _ACEOF
10134:
10135: # Transform confdefs.h into an awk script `defines.awk', embedded as
10136: # here-document in config.status, that substitutes the proper values into
10137: # config.h.in to produce config.h.
10138:
10139: # Create a delimiter string that does not exist in confdefs.h, to ease
10140: # handling of long lines.
10141: ac_delim='%!_!# '
10142: for ac_last_try in false false :; do
10143: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10144: if test -z "$ac_t"; then
10145: break
10146: elif $ac_last_try; then
10147: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10148: else
10149: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10150: fi
10151: done
10152:
10153: # For the awk script, D is an array of macro values keyed by name,
10154: # likewise P contains macro parameters if any. Preserve backslash
10155: # newline sequences.
10156:
10157: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10158: sed -n '
10159: s/.\{148\}/&'"$ac_delim"'/g
10160: t rset
10161: :rset
10162: s/^[ ]*#[ ]*define[ ][ ]*/ /
10163: t def
10164: d
10165: :def
10166: s/\\$//
10167: t bsnl
10168: s/["\\]/\\&/g
10169: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10170: D["\1"]=" \3"/p
10171: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10172: d
10173: :bsnl
10174: s/["\\]/\\&/g
10175: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10176: D["\1"]=" \3\\\\\\n"\\/p
10177: t cont
10178: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10179: t cont
10180: d
10181: :cont
10182: n
10183: s/.\{148\}/&'"$ac_delim"'/g
10184: t clear
10185: :clear
10186: s/\\$//
10187: t bsnlc
10188: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10189: d
10190: :bsnlc
10191: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10192: b cont
10193: ' <confdefs.h | sed '
10194: s/'"$ac_delim"'/"\\\
10195: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10196:
10197: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10198: for (key in D) D_is_set[key] = 1
10199: FS = ""
10200: }
10201: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10202: line = \$ 0
10203: split(line, arg, " ")
10204: if (arg[1] == "#") {
10205: defundef = arg[2]
10206: mac1 = arg[3]
10207: } else {
10208: defundef = substr(arg[1], 2)
10209: mac1 = arg[2]
10210: }
10211: split(mac1, mac2, "(") #)
10212: macro = mac2[1]
10213: prefix = substr(line, 1, index(line, defundef) - 1)
10214: if (D_is_set[macro]) {
10215: # Preserve the white space surrounding the "#".
10216: print prefix "define", macro P[macro] D[macro]
10217: next
10218: } else {
10219: # Replace #undef with comments. This is necessary, for example,
10220: # in the case of _POSIX_SOURCE, which is predefined and required
10221: # on some systems where configure will not decide to define it.
10222: if (defundef == "undef") {
10223: print "/*", prefix defundef, macro, "*/"
10224: next
10225: }
10226: }
10227: }
10228: { print }
10229: _ACAWK
10230: _ACEOF
10231: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10232: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10233: fi # test -n "$CONFIG_HEADERS"
10234:
10235:
10236: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10237: shift
10238: for ac_tag
10239: do
10240: case $ac_tag in
10241: :[FHLC]) ac_mode=$ac_tag; continue;;
10242: esac
10243: case $ac_mode$ac_tag in
10244: :[FHL]*:*);;
10245: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10246: :[FH]-) ac_tag=-:-;;
10247: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10248: esac
10249: ac_save_IFS=$IFS
10250: IFS=:
10251: set x $ac_tag
10252: IFS=$ac_save_IFS
10253: shift
10254: ac_file=$1
10255: shift
10256:
10257: case $ac_mode in
10258: :L) ac_source=$1;;
10259: :[FH])
10260: ac_file_inputs=
10261: for ac_f
10262: do
10263: case $ac_f in
10264: -) ac_f="$tmp/stdin";;
10265: *) # Look for the file first in the build tree, then in the source tree
10266: # (if the path is not absolute). The absolute path cannot be DOS-style,
10267: # because $ac_f cannot contain `:'.
10268: test -f "$ac_f" ||
10269: case $ac_f in
10270: [\\/$]*) false;;
10271: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10272: esac ||
10273: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10274: esac
10275: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10276: as_fn_append ac_file_inputs " '$ac_f'"
10277: done
10278:
10279: # Let's still pretend it is `configure' which instantiates (i.e., don't
10280: # use $as_me), people would be surprised to read:
10281: # /* config.h. Generated by config.status. */
10282: configure_input='Generated from '`
10283: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10284: `' by configure.'
10285: if test x"$ac_file" != x-; then
10286: configure_input="$ac_file. $configure_input"
10287: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10288: $as_echo "$as_me: creating $ac_file" >&6;}
10289: fi
10290: # Neutralize special characters interpreted by sed in replacement strings.
10291: case $configure_input in #(
10292: *\&* | *\|* | *\\* )
10293: ac_sed_conf_input=`$as_echo "$configure_input" |
10294: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10295: *) ac_sed_conf_input=$configure_input;;
10296: esac
10297:
10298: case $ac_tag in
10299: *:-:* | *:-) cat >"$tmp/stdin" \
10300: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10301: esac
10302: ;;
10303: esac
10304:
10305: ac_dir=`$as_dirname -- "$ac_file" ||
10306: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10307: X"$ac_file" : 'X\(//\)[^/]' \| \
10308: X"$ac_file" : 'X\(//\)$' \| \
10309: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10310: $as_echo X"$ac_file" |
10311: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10312: s//\1/
10313: q
10314: }
10315: /^X\(\/\/\)[^/].*/{
10316: s//\1/
10317: q
10318: }
10319: /^X\(\/\/\)$/{
10320: s//\1/
10321: q
10322: }
10323: /^X\(\/\).*/{
10324: s//\1/
10325: q
10326: }
10327: s/.*/./; q'`
10328: as_dir="$ac_dir"; as_fn_mkdir_p
10329: ac_builddir=.
10330:
10331: case "$ac_dir" in
10332: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10333: *)
10334: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10335: # A ".." for each directory in $ac_dir_suffix.
10336: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10337: case $ac_top_builddir_sub in
10338: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10339: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10340: esac ;;
10341: esac
10342: ac_abs_top_builddir=$ac_pwd
10343: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10344: # for backward compatibility:
10345: ac_top_builddir=$ac_top_build_prefix
10346:
10347: case $srcdir in
10348: .) # We are building in place.
10349: ac_srcdir=.
10350: ac_top_srcdir=$ac_top_builddir_sub
10351: ac_abs_top_srcdir=$ac_pwd ;;
10352: [\\/]* | ?:[\\/]* ) # Absolute name.
10353: ac_srcdir=$srcdir$ac_dir_suffix;
10354: ac_top_srcdir=$srcdir
10355: ac_abs_top_srcdir=$srcdir ;;
10356: *) # Relative name.
10357: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10358: ac_top_srcdir=$ac_top_build_prefix$srcdir
10359: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10360: esac
10361: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10362:
10363:
10364: case $ac_mode in
10365: :F)
10366: #
10367: # CONFIG_FILE
10368: #
10369:
10370: case $INSTALL in
10371: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10372: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10373: esac
10374: ac_MKDIR_P=$MKDIR_P
10375: case $MKDIR_P in
10376: [\\/$]* | ?:[\\/]* ) ;;
10377: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10378: esac
10379: _ACEOF
10380:
10381: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10382: # If the template does not know about datarootdir, expand it.
10383: # FIXME: This hack should be removed a few years after 2.60.
10384: ac_datarootdir_hack=; ac_datarootdir_seen=
10385: ac_sed_dataroot='
10386: /datarootdir/ {
10387: p
10388: q
10389: }
10390: /@datadir@/p
10391: /@docdir@/p
10392: /@infodir@/p
10393: /@localedir@/p
10394: /@mandir@/p'
10395: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10396: *datarootdir*) ac_datarootdir_seen=yes;;
10397: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10398: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10399: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10400: _ACEOF
10401: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10402: ac_datarootdir_hack='
10403: s&@datadir@&$datadir&g
10404: s&@docdir@&$docdir&g
10405: s&@infodir@&$infodir&g
10406: s&@localedir@&$localedir&g
10407: s&@mandir@&$mandir&g
10408: s&\\\${datarootdir}&$datarootdir&g' ;;
10409: esac
10410: _ACEOF
10411:
10412: # Neutralize VPATH when `$srcdir' = `.'.
10413: # Shell code in configure.ac might set extrasub.
10414: # FIXME: do we really want to maintain this feature?
10415: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10416: ac_sed_extra="$ac_vpsub
10417: $extrasub
10418: _ACEOF
10419: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10420: :t
10421: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10422: s|@configure_input@|$ac_sed_conf_input|;t t
10423: s&@top_builddir@&$ac_top_builddir_sub&;t t
10424: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10425: s&@srcdir@&$ac_srcdir&;t t
10426: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10427: s&@top_srcdir@&$ac_top_srcdir&;t t
10428: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10429: s&@builddir@&$ac_builddir&;t t
10430: s&@abs_builddir@&$ac_abs_builddir&;t t
10431: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10432: s&@INSTALL@&$ac_INSTALL&;t t
10433: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10434: $ac_datarootdir_hack
10435: "
10436: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10437: || as_fn_error "could not create $ac_file" "$LINENO" 5
10438:
10439: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10440: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10441: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10442: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10443: which seems to be undefined. Please make sure it is defined." >&5
10444: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10445: which seems to be undefined. Please make sure it is defined." >&2;}
10446:
10447: rm -f "$tmp/stdin"
10448: case $ac_file in
10449: -) cat "$tmp/out" && rm -f "$tmp/out";;
10450: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10451: esac \
10452: || as_fn_error "could not create $ac_file" "$LINENO" 5
10453: ;;
10454: :H)
10455: #
10456: # CONFIG_HEADER
10457: #
10458: if test x"$ac_file" != x-; then
10459: {
10460: $as_echo "/* $configure_input */" \
10461: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10462: } >"$tmp/config.h" \
10463: || as_fn_error "could not create $ac_file" "$LINENO" 5
10464: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10465: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10466: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10467: else
10468: rm -f "$ac_file"
10469: mv "$tmp/config.h" "$ac_file" \
10470: || as_fn_error "could not create $ac_file" "$LINENO" 5
10471: fi
10472: else
10473: $as_echo "/* $configure_input */" \
10474: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10475: || as_fn_error "could not create -" "$LINENO" 5
10476: fi
10477: # Compute "$ac_file"'s index in $config_headers.
10478: _am_arg="$ac_file"
10479: _am_stamp_count=1
10480: for _am_header in $config_headers :; do
10481: case $_am_header in
10482: $_am_arg | $_am_arg:* )
10483: break ;;
10484: * )
10485: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10486: esac
10487: done
10488: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10489: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10490: X"$_am_arg" : 'X\(//\)[^/]' \| \
10491: X"$_am_arg" : 'X\(//\)$' \| \
10492: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10493: $as_echo X"$_am_arg" |
10494: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10495: s//\1/
10496: q
10497: }
10498: /^X\(\/\/\)[^/].*/{
10499: s//\1/
10500: q
10501: }
10502: /^X\(\/\/\)$/{
10503: s//\1/
10504: q
10505: }
10506: /^X\(\/\).*/{
10507: s//\1/
10508: q
10509: }
10510: s/.*/./; q'`/stamp-h$_am_stamp_count
10511: ;;
10512:
10513: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10514: $as_echo "$as_me: executing $ac_file commands" >&6;}
10515: ;;
10516: esac
10517:
10518:
10519: case $ac_file$ac_mode in
10520: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10521: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10522: # are listed without --file. Let's play safe and only enable the eval
10523: # if we detect the quoting.
10524: case $CONFIG_FILES in
10525: *\'*) eval set x "$CONFIG_FILES" ;;
10526: *) set x $CONFIG_FILES ;;
10527: esac
10528: shift
10529: for mf
10530: do
10531: # Strip MF so we end up with the name of the file.
10532: mf=`echo "$mf" | sed -e 's/:.*$//'`
10533: # Check whether this is an Automake generated Makefile or not.
10534: # We used to match only the files named `Makefile.in', but
10535: # some people rename them; so instead we look at the file content.
10536: # Grep'ing the first line is not enough: some people post-process
10537: # each Makefile.in and add a new line on top of each file to say so.
10538: # Grep'ing the whole file is not good either: AIX grep has a line
10539: # limit of 2048, but all sed's we know have understand at least 4000.
10540: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10541: dirpart=`$as_dirname -- "$mf" ||
10542: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10543: X"$mf" : 'X\(//\)[^/]' \| \
10544: X"$mf" : 'X\(//\)$' \| \
10545: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10546: $as_echo X"$mf" |
10547: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10548: s//\1/
10549: q
10550: }
10551: /^X\(\/\/\)[^/].*/{
10552: s//\1/
10553: q
10554: }
10555: /^X\(\/\/\)$/{
10556: s//\1/
10557: q
10558: }
10559: /^X\(\/\).*/{
10560: s//\1/
10561: q
10562: }
10563: s/.*/./; q'`
10564: else
10565: continue
10566: fi
10567: # Extract the definition of DEPDIR, am__include, and am__quote
10568: # from the Makefile without running `make'.
10569: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10570: test -z "$DEPDIR" && continue
10571: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10572: test -z "am__include" && continue
10573: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10574: # When using ansi2knr, U may be empty or an underscore; expand it
10575: U=`sed -n 's/^U = //p' < "$mf"`
10576: # Find all dependency output files, they are included files with
10577: # $(DEPDIR) in their names. We invoke sed twice because it is the
10578: # simplest approach to changing $(DEPDIR) to its actual value in the
10579: # expansion.
10580: for file in `sed -n "
10581: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10582: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10583: # Make sure the directory exists.
10584: test -f "$dirpart/$file" && continue
10585: fdir=`$as_dirname -- "$file" ||
10586: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10587: X"$file" : 'X\(//\)[^/]' \| \
10588: X"$file" : 'X\(//\)$' \| \
10589: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10590: $as_echo X"$file" |
10591: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10592: s//\1/
10593: q
10594: }
10595: /^X\(\/\/\)[^/].*/{
10596: s//\1/
10597: q
10598: }
10599: /^X\(\/\/\)$/{
10600: s//\1/
10601: q
10602: }
10603: /^X\(\/\).*/{
10604: s//\1/
10605: q
10606: }
10607: s/.*/./; q'`
10608: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10609: # echo "creating $dirpart/$file"
10610: echo '# dummy' > "$dirpart/$file"
10611: done
10612: done
10613: }
10614: ;;
10615:
10616: esac
10617: done # for ac_tag
10618:
10619:
10620: as_fn_exit 0
10621: _ACEOF
10622: ac_clean_files=$ac_clean_files_save
10623:
10624: test $ac_write_fail = 0 ||
10625: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10626:
10627:
10628: # configure is writing to config.log, and then calls config.status.
10629: # config.status does its own redirection, appending to config.log.
10630: # Unfortunately, on DOS this fails, as config.log is still kept open
10631: # by configure, so config.status won't be able to write to it; its
10632: # output is simply discarded. So we exec the FD to /dev/null,
10633: # effectively closing config.log, so it can be properly (re)opened and
10634: # appended to by config.status. When coming back to configure, we
10635: # need to make the FD available again.
10636: if test "$no_create" != yes; then
10637: ac_cs_success=:
10638: ac_config_status_args=
10639: test "$silent" = yes &&
10640: ac_config_status_args="$ac_config_status_args --quiet"
10641: exec 5>/dev/null
10642: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10643: exec 5>>config.log
10644: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10645: # would make configure fail if this is the last instruction.
10646: $ac_cs_success || as_fn_exit $?
10647: fi
10648:
10649: #
10650: # CONFIG_SUBDIRS section.
10651: #
10652: if test "$no_recursion" != yes; then
10653:
10654: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10655: # so they do not pile up.
10656: ac_sub_configure_args=
10657: ac_prev=
10658: eval "set x $ac_configure_args"
10659: shift
10660: for ac_arg
10661: do
10662: if test -n "$ac_prev"; then
10663: ac_prev=
10664: continue
10665: fi
10666: case $ac_arg in
10667: -cache-file | --cache-file | --cache-fil | --cache-fi \
10668: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10669: ac_prev=cache_file ;;
10670: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10671: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10672: | --c=*)
10673: ;;
10674: --config-cache | -C)
10675: ;;
10676: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10677: ac_prev=srcdir ;;
10678: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10679: ;;
10680: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10681: ac_prev=prefix ;;
10682: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10683: ;;
10684: --disable-option-checking)
10685: ;;
10686: *)
10687: case $ac_arg in
10688: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10689: esac
10690: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10691: esac
10692: done
10693:
10694: # Always prepend --prefix to ensure using the same prefix
10695: # in subdir configurations.
10696: ac_arg="--prefix=$prefix"
10697: case $ac_arg in
10698: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10699: esac
10700: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10701:
10702: # Pass --silent
10703: if test "$silent" = yes; then
10704: ac_sub_configure_args="--silent $ac_sub_configure_args"
10705: fi
10706:
10707: # Always prepend --disable-option-checking to silence warnings, since
10708: # different subdirs can have different --enable and --with options.
10709: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10710:
10711: ac_popdir=`pwd`
10712: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10713:
10714: # Do not complain, so a configure script can configure whichever
10715: # parts of a large source tree are present.
10716: test -d "$srcdir/$ac_dir" || continue
10717:
10718: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10719: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10720: $as_echo "$ac_msg" >&6
10721: as_dir="$ac_dir"; as_fn_mkdir_p
10722: ac_builddir=.
10723:
10724: case "$ac_dir" in
10725: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10726: *)
10727: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10728: # A ".." for each directory in $ac_dir_suffix.
10729: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10730: case $ac_top_builddir_sub in
10731: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10732: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10733: esac ;;
10734: esac
10735: ac_abs_top_builddir=$ac_pwd
10736: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10737: # for backward compatibility:
10738: ac_top_builddir=$ac_top_build_prefix
10739:
10740: case $srcdir in
10741: .) # We are building in place.
10742: ac_srcdir=.
10743: ac_top_srcdir=$ac_top_builddir_sub
10744: ac_abs_top_srcdir=$ac_pwd ;;
10745: [\\/]* | ?:[\\/]* ) # Absolute name.
10746: ac_srcdir=$srcdir$ac_dir_suffix;
10747: ac_top_srcdir=$srcdir
10748: ac_abs_top_srcdir=$srcdir ;;
10749: *) # Relative name.
10750: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10751: ac_top_srcdir=$ac_top_build_prefix$srcdir
10752: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10753: esac
10754: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10755:
10756:
10757: cd "$ac_dir"
10758:
10759: # Check for guested configure; otherwise get Cygnus style configure.
10760: if test -f "$ac_srcdir/configure.gnu"; then
10761: ac_sub_configure=$ac_srcdir/configure.gnu
10762: elif test -f "$ac_srcdir/configure"; then
10763: ac_sub_configure=$ac_srcdir/configure
10764: elif test -f "$ac_srcdir/configure.in"; then
10765: # This should be Cygnus configure.
10766: ac_sub_configure=$ac_aux_dir/configure
10767: else
10768: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10769: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10770: ac_sub_configure=
10771: fi
10772:
10773: # The recursion is here.
10774: if test -n "$ac_sub_configure"; then
10775: # Make the cache file name correct relative to the subdirectory.
10776: case $cache_file in
10777: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10778: *) # Relative name.
10779: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10780: esac
10781:
10782: { $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
10783: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10784: # The eval makes quoting arguments work.
10785: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10786: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10787: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10788: fi
10789:
10790: cd "$ac_popdir"
10791: done
10792: fi
10793: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10794: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10795: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10796: fi
10797:
CVSweb interface <joel.bertrand@systella.fr>