Annotation of libaitwww/configure, revision 1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.3 ! misho 3: # Generated by GNU Autoconf 2.68 for libaitwww 1.2.
1.1 misho 4: #
5: # Report bugs to <misho@elwix.org>.
6: #
7: #
8: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10: # Foundation, Inc.
11: #
12: #
13: # This configure script is free software; the Free Software Foundation
14: # gives unlimited permission to copy, distribute and modify it.
15: ## -------------------- ##
16: ## M4sh Initialization. ##
17: ## -------------------- ##
18:
19: # Be more Bourne compatible
20: DUALCASE=1; export DUALCASE # for MKS sh
21: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22: emulate sh
23: NULLCMD=:
24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
27: setopt NO_GLOB_SUBST
28: else
29: case `(set -o) 2>/dev/null` in #(
30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
34: esac
35: fi
36:
37:
38: as_nl='
39: '
40: export as_nl
41: # Printing a long string crashes Solaris 7 /usr/bin/printf.
42: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45: # Prefer a ksh shell builtin over an external printf program on Solaris,
46: # but without wasting forks for bash or zsh.
47: if test -z "$BASH_VERSION$ZSH_VERSION" \
48: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49: as_echo='print -r --'
50: as_echo_n='print -rn --'
51: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52: as_echo='printf %s\n'
53: as_echo_n='printf %s'
54: else
55: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57: as_echo_n='/usr/ucb/echo -n'
58: else
59: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60: as_echo_n_body='eval
61: arg=$1;
62: case $arg in #(
63: *"$as_nl"*)
64: expr "X$arg" : "X\\(.*\\)$as_nl";
65: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66: esac;
67: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68: '
69: export as_echo_n_body
70: as_echo_n='sh -c $as_echo_n_body as_echo'
71: fi
72: export as_echo_body
73: as_echo='sh -c $as_echo_body as_echo'
74: fi
75:
76: # The user is always right.
77: if test "${PATH_SEPARATOR+set}" != set; then
78: PATH_SEPARATOR=:
79: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81: PATH_SEPARATOR=';'
82: }
83: fi
84:
85:
86: # IFS
87: # We need space, tab and new line, in precisely that order. Quoting is
88: # there to prevent editors from complaining about space-tab.
89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90: # splitting by setting IFS to empty value.)
91: IFS=" "" $as_nl"
92:
93: # Find who we are. Look in the path if we contain no directory separator.
94: as_myself=
95: case $0 in #((
96: *[\\/]* ) as_myself=$0 ;;
97: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98: for as_dir in $PATH
99: do
100: IFS=$as_save_IFS
101: test -z "$as_dir" && as_dir=.
102: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103: done
104: IFS=$as_save_IFS
105:
106: ;;
107: esac
108: # We did not find ourselves, most probably we were run as `sh COMMAND'
109: # in which case we are not to be found in the path.
110: if test "x$as_myself" = x; then
111: as_myself=$0
112: fi
113: if test ! -f "$as_myself"; then
114: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115: exit 1
116: fi
117:
118: # Unset variables that we do not need and which cause bugs (e.g. in
119: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120: # suppresses any "Segmentation fault" message there. '((' could
121: # trigger a bug in pdksh 5.2.14.
122: for as_var in BASH_ENV ENV MAIL MAILPATH
123: do eval test x\${$as_var+set} = xset \
124: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125: done
126: PS1='$ '
127: PS2='> '
128: PS4='+ '
129:
130: # NLS nuisances.
131: LC_ALL=C
132: export LC_ALL
133: LANGUAGE=C
134: export LANGUAGE
135:
136: # CDPATH.
137: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138:
139: if test "x$CONFIG_SHELL" = x; then
140: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141: emulate sh
142: NULLCMD=:
143: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144: # is contrary to our usage. Disable this feature.
145: alias -g '\${1+\"\$@\"}'='\"\$@\"'
146: setopt NO_GLOB_SUBST
147: else
148: case \`(set -o) 2>/dev/null\` in #(
149: *posix*) :
150: set -o posix ;; #(
151: *) :
152: ;;
153: esac
154: fi
155: "
156: as_required="as_fn_return () { (exit \$1); }
157: as_fn_success () { as_fn_return 0; }
158: as_fn_failure () { as_fn_return 1; }
159: as_fn_ret_success () { return 0; }
160: as_fn_ret_failure () { return 1; }
161:
162: exitcode=0
163: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168:
169: else
170: exitcode=1; echo positional parameters were not saved.
171: fi
172: test x\$exitcode = x0 || exit 1"
173: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177: test \$(( 1 + 1 )) = 2 || exit 1"
178: if (eval "$as_required") 2>/dev/null; then :
179: as_have_required=yes
180: else
181: as_have_required=no
182: fi
183: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184:
185: else
186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187: as_found=false
188: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189: do
190: IFS=$as_save_IFS
191: test -z "$as_dir" && as_dir=.
192: as_found=:
193: case $as_dir in #(
194: /*)
195: for as_base in sh bash ksh sh5; do
196: # Try only shells that exist, to save several forks.
197: as_shell=$as_dir/$as_base
198: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: CONFIG_SHELL=$as_shell as_have_required=yes
201: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202: break 2
203: fi
204: fi
205: done;;
206: esac
207: as_found=false
208: done
209: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211: CONFIG_SHELL=$SHELL as_have_required=yes
212: fi; }
213: IFS=$as_save_IFS
214:
215:
216: if test "x$CONFIG_SHELL" != x; then :
217: # We cannot yet assume a decent shell, so we have to provide a
218: # neutralization value for shells without unset; and this also
219: # works around shells that cannot unset nonexistent variables.
220: # Preserve -v and -x to the replacement shell.
221: BASH_ENV=/dev/null
222: ENV=/dev/null
223: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224: export CONFIG_SHELL
225: case $- in # ((((
226: *v*x* | *x*v* ) as_opts=-vx ;;
227: *v* ) as_opts=-v ;;
228: *x* ) as_opts=-x ;;
229: * ) as_opts= ;;
230: esac
231: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232: fi
233:
234: if test x$as_have_required = xno; then :
235: $as_echo "$0: This script requires a shell more modern than all"
236: $as_echo "$0: the shells that I found on your system."
237: if test x${ZSH_VERSION+set} = xset ; then
238: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240: else
241: $as_echo "$0: Please tell bug-autoconf@gnu.org and misho@elwix.org
242: $0: about your system, including any error possibly output
243: $0: before this message. Then install a modern shell, or
244: $0: manually run the script under such a shell if you do
245: $0: have one."
246: fi
247: exit 1
248: fi
249: fi
250: fi
251: SHELL=${CONFIG_SHELL-/bin/sh}
252: export SHELL
253: # Unset more variables known to interfere with behavior of common tools.
254: CLICOLOR_FORCE= GREP_OPTIONS=
255: unset CLICOLOR_FORCE GREP_OPTIONS
256:
257: ## --------------------- ##
258: ## M4sh Shell Functions. ##
259: ## --------------------- ##
260: # as_fn_unset VAR
261: # ---------------
262: # Portably unset VAR.
263: as_fn_unset ()
264: {
265: { eval $1=; unset $1;}
266: }
267: as_unset=as_fn_unset
268:
269: # as_fn_set_status STATUS
270: # -----------------------
271: # Set $? to STATUS, without forking.
272: as_fn_set_status ()
273: {
274: return $1
275: } # as_fn_set_status
276:
277: # as_fn_exit STATUS
278: # -----------------
279: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280: as_fn_exit ()
281: {
282: set +e
283: as_fn_set_status $1
284: exit $1
285: } # as_fn_exit
286:
287: # as_fn_mkdir_p
288: # -------------
289: # Create "$as_dir" as a directory, including parents if necessary.
290: as_fn_mkdir_p ()
291: {
292:
293: case $as_dir in #(
294: -*) as_dir=./$as_dir;;
295: esac
296: test -d "$as_dir" || eval $as_mkdir_p || {
297: as_dirs=
298: while :; do
299: case $as_dir in #(
300: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301: *) as_qdir=$as_dir;;
302: esac
303: as_dirs="'$as_qdir' $as_dirs"
304: as_dir=`$as_dirname -- "$as_dir" ||
305: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306: X"$as_dir" : 'X\(//\)[^/]' \| \
307: X"$as_dir" : 'X\(//\)$' \| \
308: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309: $as_echo X"$as_dir" |
310: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311: s//\1/
312: q
313: }
314: /^X\(\/\/\)[^/].*/{
315: s//\1/
316: q
317: }
318: /^X\(\/\/\)$/{
319: s//\1/
320: q
321: }
322: /^X\(\/\).*/{
323: s//\1/
324: q
325: }
326: s/.*/./; q'`
327: test -d "$as_dir" && break
328: done
329: test -z "$as_dirs" || eval "mkdir $as_dirs"
330: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331:
332:
333: } # as_fn_mkdir_p
334: # as_fn_append VAR VALUE
335: # ----------------------
336: # Append the text in VALUE to the end of the definition contained in VAR. Take
337: # advantage of any shell optimizations that allow amortized linear growth over
338: # repeated appends, instead of the typical quadratic growth present in naive
339: # implementations.
340: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341: eval 'as_fn_append ()
342: {
343: eval $1+=\$2
344: }'
345: else
346: as_fn_append ()
347: {
348: eval $1=\$$1\$2
349: }
350: fi # as_fn_append
351:
352: # as_fn_arith ARG...
353: # ------------------
354: # Perform arithmetic evaluation on the ARGs, and store the result in the
355: # global $as_val. Take advantage of shells that can avoid forks. The arguments
356: # must be portable across $(()) and expr.
357: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358: eval 'as_fn_arith ()
359: {
360: as_val=$(( $* ))
361: }'
362: else
363: as_fn_arith ()
364: {
365: as_val=`expr "$@" || test $? -eq 1`
366: }
367: fi # as_fn_arith
368:
369:
370: # as_fn_error STATUS ERROR [LINENO LOG_FD]
371: # ----------------------------------------
372: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374: # script with STATUS, using 1 if that was 0.
375: as_fn_error ()
376: {
377: as_status=$1; test $as_status -eq 0 && as_status=1
378: if test "$4"; then
379: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381: fi
382: $as_echo "$as_me: error: $2" >&2
383: as_fn_exit $as_status
384: } # as_fn_error
385:
386: if expr a : '\(a\)' >/dev/null 2>&1 &&
387: test "X`expr 00001 : '.*\(...\)'`" = X001; then
388: as_expr=expr
389: else
390: as_expr=false
391: fi
392:
393: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394: as_basename=basename
395: else
396: as_basename=false
397: fi
398:
399: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400: as_dirname=dirname
401: else
402: as_dirname=false
403: fi
404:
405: as_me=`$as_basename -- "$0" ||
406: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407: X"$0" : 'X\(//\)$' \| \
408: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409: $as_echo X/"$0" |
410: sed '/^.*\/\([^/][^/]*\)\/*$/{
411: s//\1/
412: q
413: }
414: /^X\/\(\/\/\)$/{
415: s//\1/
416: q
417: }
418: /^X\/\(\/\).*/{
419: s//\1/
420: q
421: }
422: s/.*/./; q'`
423:
424: # Avoid depending upon Character Ranges.
425: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428: as_cr_digits='0123456789'
429: as_cr_alnum=$as_cr_Letters$as_cr_digits
430:
431:
432: as_lineno_1=$LINENO as_lineno_1a=$LINENO
433: as_lineno_2=$LINENO as_lineno_2a=$LINENO
434: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437: sed -n '
438: p
439: /[$]LINENO/=
440: ' <$as_myself |
441: sed '
442: s/[$]LINENO.*/&-/
443: t lineno
444: b
445: :lineno
446: N
447: :loop
448: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449: t loop
450: s/-\n.*//
451: ' >$as_me.lineno &&
452: chmod +x "$as_me.lineno" ||
453: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454:
455: # Don't try to exec as it changes $[0], causing all sort of problems
456: # (the dirname of $[0] is not the place where we might find the
457: # original and so on. Autoconf is especially sensitive to this).
458: . "./$as_me.lineno"
459: # Exit status is that of the last command.
460: exit
461: }
462:
463: ECHO_C= ECHO_N= ECHO_T=
464: case `echo -n x` in #(((((
465: -n*)
466: case `echo 'xy\c'` in
467: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468: xy) ECHO_C='\c';;
469: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470: ECHO_T=' ';;
471: esac;;
472: *)
473: ECHO_N='-n';;
474: esac
475:
476: rm -f conf$$ conf$$.exe conf$$.file
477: if test -d conf$$.dir; then
478: rm -f conf$$.dir/conf$$.file
479: else
480: rm -f conf$$.dir
481: mkdir conf$$.dir 2>/dev/null
482: fi
483: if (echo >conf$$.file) 2>/dev/null; then
484: if ln -s conf$$.file conf$$ 2>/dev/null; then
485: as_ln_s='ln -s'
486: # ... but there are two gotchas:
487: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489: # In both cases, we have to default to `cp -p'.
490: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491: as_ln_s='cp -p'
492: elif ln conf$$.file conf$$ 2>/dev/null; then
493: as_ln_s=ln
494: else
495: as_ln_s='cp -p'
496: fi
497: else
498: as_ln_s='cp -p'
499: fi
500: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501: rmdir conf$$.dir 2>/dev/null
502:
503: if mkdir -p . 2>/dev/null; then
504: as_mkdir_p='mkdir -p "$as_dir"'
505: else
506: test -d ./-p && rmdir ./-p
507: as_mkdir_p=false
508: fi
509:
510: if test -x / >/dev/null 2>&1; then
511: as_test_x='test -x'
512: else
513: if ls -dL / >/dev/null 2>&1; then
514: as_ls_L_option=L
515: else
516: as_ls_L_option=
517: fi
518: as_test_x='
519: eval sh -c '\''
520: if test -d "$1"; then
521: test -d "$1/.";
522: else
523: case $1 in #(
524: -*)set "./$1";;
525: esac;
526: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527: ???[sx]*):;;*)false;;esac;fi
528: '\'' sh
529: '
530: fi
531: as_executable_p=$as_test_x
532:
533: # Sed expression to map a string onto a valid CPP name.
534: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535:
536: # Sed expression to map a string onto a valid variable name.
537: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538:
539:
540: test -n "$DJDIR" || exec 7<&0 </dev/null
541: exec 6>&1
542:
543: # Name of the host.
544: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545: # so uname gets run too.
546: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547:
548: #
549: # Initializations.
550: #
551: ac_default_prefix=/usr/local
552: ac_clean_files=
553: ac_config_libobj_dir=.
554: LIBOBJS=
555: cross_compiling=no
556: subdirs=
557: MFLAGS=
558: MAKEFLAGS=
559:
560: # Identity of this package.
561: PACKAGE_NAME='libaitwww'
562: PACKAGE_TARNAME='libaitwww'
1.3 ! misho 563: PACKAGE_VERSION='1.2'
! 564: PACKAGE_STRING='libaitwww 1.2'
1.1 misho 565: PACKAGE_BUGREPORT='misho@elwix.org'
566: PACKAGE_URL=''
567:
568: ac_unique_file="src/aitwww.c"
569: # Factoring default headers for most tests.
570: ac_includes_default="\
571: #include <stdio.h>
572: #ifdef HAVE_SYS_TYPES_H
573: # include <sys/types.h>
574: #endif
575: #ifdef HAVE_SYS_STAT_H
576: # include <sys/stat.h>
577: #endif
578: #ifdef STDC_HEADERS
579: # include <stdlib.h>
580: # include <stddef.h>
581: #else
582: # ifdef HAVE_STDLIB_H
583: # include <stdlib.h>
584: # endif
585: #endif
586: #ifdef HAVE_STRING_H
587: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588: # include <memory.h>
589: # endif
590: # include <string.h>
591: #endif
592: #ifdef HAVE_STRINGS_H
593: # include <strings.h>
594: #endif
595: #ifdef HAVE_INTTYPES_H
596: # include <inttypes.h>
597: #endif
598: #ifdef HAVE_STDINT_H
599: # include <stdint.h>
600: #endif
601: #ifdef HAVE_UNISTD_H
602: # include <unistd.h>
603: #endif"
604:
605: ac_subst_vars='LTLIBOBJS
606: LIBOBJS
607: EGREP
608: GREP
609: CPP
610: MKDEP
611: target_os
612: target_vendor
613: target_cpu
614: target
615: host_os
616: host_vendor
617: host_cpu
618: host
619: build_os
620: build_vendor
621: build_cpu
622: build
623: INSTALL_DATA
624: INSTALL_SCRIPT
625: INSTALL_PROGRAM
626: OBJEXT
627: EXEEXT
628: ac_ct_CC
629: CPPFLAGS
630: LDFLAGS
631: CFLAGS
632: CC
633: target_alias
634: host_alias
635: build_alias
636: LIBS
637: ECHO_T
638: ECHO_N
639: ECHO_C
640: DEFS
641: mandir
642: localedir
643: libdir
644: psdir
645: pdfdir
646: dvidir
647: htmldir
648: infodir
649: docdir
650: oldincludedir
651: includedir
652: localstatedir
653: sharedstatedir
654: sysconfdir
655: datadir
656: datarootdir
657: libexecdir
658: sbindir
659: bindir
660: program_transform_name
661: prefix
662: exec_prefix
663: PACKAGE_URL
664: PACKAGE_BUGREPORT
665: PACKAGE_STRING
666: PACKAGE_VERSION
667: PACKAGE_TARNAME
668: PACKAGE_NAME
669: PATH_SEPARATOR
670: SHELL'
671: ac_subst_files=''
672: ac_user_opts='
673: enable_option_checking
674: enable_debug
675: '
676: ac_precious_vars='build_alias
677: host_alias
678: target_alias
679: CC
680: CFLAGS
681: LDFLAGS
682: LIBS
683: CPPFLAGS
684: CPP'
685:
686:
687: # Initialize some variables set by options.
688: ac_init_help=
689: ac_init_version=false
690: ac_unrecognized_opts=
691: ac_unrecognized_sep=
692: # The variables have the same names as the options, with
693: # dashes changed to underlines.
694: cache_file=/dev/null
695: exec_prefix=NONE
696: no_create=
697: no_recursion=
698: prefix=NONE
699: program_prefix=NONE
700: program_suffix=NONE
701: program_transform_name=s,x,x,
702: silent=
703: site=
704: srcdir=
705: verbose=
706: x_includes=NONE
707: x_libraries=NONE
708:
709: # Installation directory options.
710: # These are left unexpanded so users can "make install exec_prefix=/foo"
711: # and all the variables that are supposed to be based on exec_prefix
712: # by default will actually change.
713: # Use braces instead of parens because sh, perl, etc. also accept them.
714: # (The list follows the same order as the GNU Coding Standards.)
715: bindir='${exec_prefix}/bin'
716: sbindir='${exec_prefix}/sbin'
717: libexecdir='${exec_prefix}/libexec'
718: datarootdir='${prefix}/share'
719: datadir='${datarootdir}'
720: sysconfdir='${prefix}/etc'
721: sharedstatedir='${prefix}/com'
722: localstatedir='${prefix}/var'
723: includedir='${prefix}/include'
724: oldincludedir='/usr/include'
725: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
726: infodir='${datarootdir}/info'
727: htmldir='${docdir}'
728: dvidir='${docdir}'
729: pdfdir='${docdir}'
730: psdir='${docdir}'
731: libdir='${exec_prefix}/lib'
732: localedir='${datarootdir}/locale'
733: mandir='${datarootdir}/man'
734:
735: ac_prev=
736: ac_dashdash=
737: for ac_option
738: do
739: # If the previous option needs an argument, assign it.
740: if test -n "$ac_prev"; then
741: eval $ac_prev=\$ac_option
742: ac_prev=
743: continue
744: fi
745:
746: case $ac_option in
747: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
748: *=) ac_optarg= ;;
749: *) ac_optarg=yes ;;
750: esac
751:
752: # Accept the important Cygnus configure options, so we can diagnose typos.
753:
754: case $ac_dashdash$ac_option in
755: --)
756: ac_dashdash=yes ;;
757:
758: -bindir | --bindir | --bindi | --bind | --bin | --bi)
759: ac_prev=bindir ;;
760: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761: bindir=$ac_optarg ;;
762:
763: -build | --build | --buil | --bui | --bu)
764: ac_prev=build_alias ;;
765: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766: build_alias=$ac_optarg ;;
767:
768: -cache-file | --cache-file | --cache-fil | --cache-fi \
769: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770: ac_prev=cache_file ;;
771: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773: cache_file=$ac_optarg ;;
774:
775: --config-cache | -C)
776: cache_file=config.cache ;;
777:
778: -datadir | --datadir | --datadi | --datad)
779: ac_prev=datadir ;;
780: -datadir=* | --datadir=* | --datadi=* | --datad=*)
781: datadir=$ac_optarg ;;
782:
783: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784: | --dataroo | --dataro | --datar)
785: ac_prev=datarootdir ;;
786: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788: datarootdir=$ac_optarg ;;
789:
790: -disable-* | --disable-*)
791: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792: # Reject names that are not valid shell variable names.
793: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794: as_fn_error $? "invalid feature name: $ac_useropt"
795: ac_useropt_orig=$ac_useropt
796: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797: case $ac_user_opts in
798: *"
799: "enable_$ac_useropt"
800: "*) ;;
801: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
802: ac_unrecognized_sep=', ';;
803: esac
804: eval enable_$ac_useropt=no ;;
805:
806: -docdir | --docdir | --docdi | --doc | --do)
807: ac_prev=docdir ;;
808: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809: docdir=$ac_optarg ;;
810:
811: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812: ac_prev=dvidir ;;
813: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814: dvidir=$ac_optarg ;;
815:
816: -enable-* | --enable-*)
817: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818: # Reject names that are not valid shell variable names.
819: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820: as_fn_error $? "invalid feature name: $ac_useropt"
821: ac_useropt_orig=$ac_useropt
822: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823: case $ac_user_opts in
824: *"
825: "enable_$ac_useropt"
826: "*) ;;
827: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
828: ac_unrecognized_sep=', ';;
829: esac
830: eval enable_$ac_useropt=\$ac_optarg ;;
831:
832: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834: | --exec | --exe | --ex)
835: ac_prev=exec_prefix ;;
836: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838: | --exec=* | --exe=* | --ex=*)
839: exec_prefix=$ac_optarg ;;
840:
841: -gas | --gas | --ga | --g)
842: # Obsolete; use --with-gas.
843: with_gas=yes ;;
844:
845: -help | --help | --hel | --he | -h)
846: ac_init_help=long ;;
847: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848: ac_init_help=recursive ;;
849: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850: ac_init_help=short ;;
851:
852: -host | --host | --hos | --ho)
853: ac_prev=host_alias ;;
854: -host=* | --host=* | --hos=* | --ho=*)
855: host_alias=$ac_optarg ;;
856:
857: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
858: ac_prev=htmldir ;;
859: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860: | --ht=*)
861: htmldir=$ac_optarg ;;
862:
863: -includedir | --includedir | --includedi | --included | --include \
864: | --includ | --inclu | --incl | --inc)
865: ac_prev=includedir ;;
866: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867: | --includ=* | --inclu=* | --incl=* | --inc=*)
868: includedir=$ac_optarg ;;
869:
870: -infodir | --infodir | --infodi | --infod | --info | --inf)
871: ac_prev=infodir ;;
872: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873: infodir=$ac_optarg ;;
874:
875: -libdir | --libdir | --libdi | --libd)
876: ac_prev=libdir ;;
877: -libdir=* | --libdir=* | --libdi=* | --libd=*)
878: libdir=$ac_optarg ;;
879:
880: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881: | --libexe | --libex | --libe)
882: ac_prev=libexecdir ;;
883: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884: | --libexe=* | --libex=* | --libe=*)
885: libexecdir=$ac_optarg ;;
886:
887: -localedir | --localedir | --localedi | --localed | --locale)
888: ac_prev=localedir ;;
889: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890: localedir=$ac_optarg ;;
891:
892: -localstatedir | --localstatedir | --localstatedi | --localstated \
893: | --localstate | --localstat | --localsta | --localst | --locals)
894: ac_prev=localstatedir ;;
895: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897: localstatedir=$ac_optarg ;;
898:
899: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
900: ac_prev=mandir ;;
901: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902: mandir=$ac_optarg ;;
903:
904: -nfp | --nfp | --nf)
905: # Obsolete; use --without-fp.
906: with_fp=no ;;
907:
908: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909: | --no-cr | --no-c | -n)
910: no_create=yes ;;
911:
912: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914: no_recursion=yes ;;
915:
916: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918: | --oldin | --oldi | --old | --ol | --o)
919: ac_prev=oldincludedir ;;
920: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923: oldincludedir=$ac_optarg ;;
924:
925: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
926: ac_prev=prefix ;;
927: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928: prefix=$ac_optarg ;;
929:
930: -program-prefix | --program-prefix | --program-prefi | --program-pref \
931: | --program-pre | --program-pr | --program-p)
932: ac_prev=program_prefix ;;
933: -program-prefix=* | --program-prefix=* | --program-prefi=* \
934: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935: program_prefix=$ac_optarg ;;
936:
937: -program-suffix | --program-suffix | --program-suffi | --program-suff \
938: | --program-suf | --program-su | --program-s)
939: ac_prev=program_suffix ;;
940: -program-suffix=* | --program-suffix=* | --program-suffi=* \
941: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942: program_suffix=$ac_optarg ;;
943:
944: -program-transform-name | --program-transform-name \
945: | --program-transform-nam | --program-transform-na \
946: | --program-transform-n | --program-transform- \
947: | --program-transform | --program-transfor \
948: | --program-transfo | --program-transf \
949: | --program-trans | --program-tran \
950: | --progr-tra | --program-tr | --program-t)
951: ac_prev=program_transform_name ;;
952: -program-transform-name=* | --program-transform-name=* \
953: | --program-transform-nam=* | --program-transform-na=* \
954: | --program-transform-n=* | --program-transform-=* \
955: | --program-transform=* | --program-transfor=* \
956: | --program-transfo=* | --program-transf=* \
957: | --program-trans=* | --program-tran=* \
958: | --progr-tra=* | --program-tr=* | --program-t=*)
959: program_transform_name=$ac_optarg ;;
960:
961: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
962: ac_prev=pdfdir ;;
963: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964: pdfdir=$ac_optarg ;;
965:
966: -psdir | --psdir | --psdi | --psd | --ps)
967: ac_prev=psdir ;;
968: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969: psdir=$ac_optarg ;;
970:
971: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972: | -silent | --silent | --silen | --sile | --sil)
973: silent=yes ;;
974:
975: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976: ac_prev=sbindir ;;
977: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978: | --sbi=* | --sb=*)
979: sbindir=$ac_optarg ;;
980:
981: -sharedstatedir | --sharedstatedir | --sharedstatedi \
982: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983: | --sharedst | --shareds | --shared | --share | --shar \
984: | --sha | --sh)
985: ac_prev=sharedstatedir ;;
986: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989: | --sha=* | --sh=*)
990: sharedstatedir=$ac_optarg ;;
991:
992: -site | --site | --sit)
993: ac_prev=site ;;
994: -site=* | --site=* | --sit=*)
995: site=$ac_optarg ;;
996:
997: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998: ac_prev=srcdir ;;
999: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000: srcdir=$ac_optarg ;;
1001:
1002: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003: | --syscon | --sysco | --sysc | --sys | --sy)
1004: ac_prev=sysconfdir ;;
1005: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007: sysconfdir=$ac_optarg ;;
1008:
1009: -target | --target | --targe | --targ | --tar | --ta | --t)
1010: ac_prev=target_alias ;;
1011: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012: target_alias=$ac_optarg ;;
1013:
1014: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015: verbose=yes ;;
1016:
1017: -version | --version | --versio | --versi | --vers | -V)
1018: ac_init_version=: ;;
1019:
1020: -with-* | --with-*)
1021: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022: # Reject names that are not valid shell variable names.
1023: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024: as_fn_error $? "invalid package name: $ac_useropt"
1025: ac_useropt_orig=$ac_useropt
1026: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027: case $ac_user_opts in
1028: *"
1029: "with_$ac_useropt"
1030: "*) ;;
1031: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032: ac_unrecognized_sep=', ';;
1033: esac
1034: eval with_$ac_useropt=\$ac_optarg ;;
1035:
1036: -without-* | --without-*)
1037: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038: # Reject names that are not valid shell variable names.
1039: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040: as_fn_error $? "invalid package name: $ac_useropt"
1041: ac_useropt_orig=$ac_useropt
1042: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043: case $ac_user_opts in
1044: *"
1045: "with_$ac_useropt"
1046: "*) ;;
1047: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048: ac_unrecognized_sep=', ';;
1049: esac
1050: eval with_$ac_useropt=no ;;
1051:
1052: --x)
1053: # Obsolete; use --with-x.
1054: with_x=yes ;;
1055:
1056: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057: | --x-incl | --x-inc | --x-in | --x-i)
1058: ac_prev=x_includes ;;
1059: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061: x_includes=$ac_optarg ;;
1062:
1063: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065: ac_prev=x_libraries ;;
1066: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068: x_libraries=$ac_optarg ;;
1069:
1070: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1071: Try \`$0 --help' for more information"
1072: ;;
1073:
1074: *=*)
1075: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076: # Reject names that are not valid shell variable names.
1077: case $ac_envvar in #(
1078: '' | [0-9]* | *[!_$as_cr_alnum]* )
1079: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1080: esac
1081: eval $ac_envvar=\$ac_optarg
1082: export $ac_envvar ;;
1083:
1084: *)
1085: # FIXME: should be removed in autoconf 3.0.
1086: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1090: ;;
1091:
1092: esac
1093: done
1094:
1095: if test -n "$ac_prev"; then
1096: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097: as_fn_error $? "missing argument to $ac_option"
1098: fi
1099:
1100: if test -n "$ac_unrecognized_opts"; then
1101: case $enable_option_checking in
1102: no) ;;
1103: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1104: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105: esac
1106: fi
1107:
1108: # Check all directory arguments for consistency.
1109: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110: datadir sysconfdir sharedstatedir localstatedir includedir \
1111: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112: libdir localedir mandir
1113: do
1114: eval ac_val=\$$ac_var
1115: # Remove trailing slashes.
1116: case $ac_val in
1117: */ )
1118: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119: eval $ac_var=\$ac_val;;
1120: esac
1121: # Be sure to have absolute directory names.
1122: case $ac_val in
1123: [\\/$]* | ?:[\\/]* ) continue;;
1124: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125: esac
1126: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1127: done
1128:
1129: # There might be people who depend on the old broken behavior: `$host'
1130: # used to hold the argument of --host etc.
1131: # FIXME: To remove some day.
1132: build=$build_alias
1133: host=$host_alias
1134: target=$target_alias
1135:
1136: # FIXME: To remove some day.
1137: if test "x$host_alias" != x; then
1138: if test "x$build_alias" = x; then
1139: cross_compiling=maybe
1140: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1141: If a cross compiler is detected then cross compile mode will be used" >&2
1142: elif test "x$build_alias" != "x$host_alias"; then
1143: cross_compiling=yes
1144: fi
1145: fi
1146:
1147: ac_tool_prefix=
1148: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149:
1150: test "$silent" = yes && exec 6>/dev/null
1151:
1152:
1153: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154: ac_ls_di=`ls -di .` &&
1155: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156: as_fn_error $? "working directory cannot be determined"
1157: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158: as_fn_error $? "pwd does not report name of working directory"
1159:
1160:
1161: # Find the source files, if location was not specified.
1162: if test -z "$srcdir"; then
1163: ac_srcdir_defaulted=yes
1164: # Try the directory containing this script, then the parent directory.
1165: ac_confdir=`$as_dirname -- "$as_myself" ||
1166: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167: X"$as_myself" : 'X\(//\)[^/]' \| \
1168: X"$as_myself" : 'X\(//\)$' \| \
1169: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1170: $as_echo X"$as_myself" |
1171: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172: s//\1/
1173: q
1174: }
1175: /^X\(\/\/\)[^/].*/{
1176: s//\1/
1177: q
1178: }
1179: /^X\(\/\/\)$/{
1180: s//\1/
1181: q
1182: }
1183: /^X\(\/\).*/{
1184: s//\1/
1185: q
1186: }
1187: s/.*/./; q'`
1188: srcdir=$ac_confdir
1189: if test ! -r "$srcdir/$ac_unique_file"; then
1190: srcdir=..
1191: fi
1192: else
1193: ac_srcdir_defaulted=no
1194: fi
1195: if test ! -r "$srcdir/$ac_unique_file"; then
1196: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1198: fi
1199: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200: ac_abs_confdir=`(
1201: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1202: pwd)`
1203: # When building in place, set srcdir=.
1204: if test "$ac_abs_confdir" = "$ac_pwd"; then
1205: srcdir=.
1206: fi
1207: # Remove unnecessary trailing slashes from srcdir.
1208: # Double slashes in file names in object file debugging info
1209: # mess up M-x gdb in Emacs.
1210: case $srcdir in
1211: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212: esac
1213: for ac_var in $ac_precious_vars; do
1214: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215: eval ac_env_${ac_var}_value=\$${ac_var}
1216: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218: done
1219:
1220: #
1221: # Report the --help message.
1222: #
1223: if test "$ac_init_help" = "long"; then
1224: # Omit some internal or obsolete options to make the list less imposing.
1225: # This message is too long to be a string in the A/UX 3.1 sh.
1226: cat <<_ACEOF
1.3 ! misho 1227: \`configure' configures libaitwww 1.2 to adapt to many kinds of systems.
1.1 misho 1228:
1229: Usage: $0 [OPTION]... [VAR=VALUE]...
1230:
1231: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232: VAR=VALUE. See below for descriptions of some of the useful variables.
1233:
1234: Defaults for the options are specified in brackets.
1235:
1236: Configuration:
1237: -h, --help display this help and exit
1238: --help=short display options specific to this package
1239: --help=recursive display the short help of all the included packages
1240: -V, --version display version information and exit
1241: -q, --quiet, --silent do not print \`checking ...' messages
1242: --cache-file=FILE cache test results in FILE [disabled]
1243: -C, --config-cache alias for \`--cache-file=config.cache'
1244: -n, --no-create do not create output files
1245: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246:
1247: Installation directories:
1248: --prefix=PREFIX install architecture-independent files in PREFIX
1249: [$ac_default_prefix]
1250: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1251: [PREFIX]
1252:
1253: By default, \`make install' will install all the files in
1254: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256: for instance \`--prefix=\$HOME'.
1257:
1258: For better control, use the options below.
1259:
1260: Fine tuning of the installation directories:
1261: --bindir=DIR user executables [EPREFIX/bin]
1262: --sbindir=DIR system admin executables [EPREFIX/sbin]
1263: --libexecdir=DIR program executables [EPREFIX/libexec]
1264: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267: --libdir=DIR object code libraries [EPREFIX/lib]
1268: --includedir=DIR C header files [PREFIX/include]
1269: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1270: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1271: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1272: --infodir=DIR info documentation [DATAROOTDIR/info]
1273: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1274: --mandir=DIR man documentation [DATAROOTDIR/man]
1275: --docdir=DIR documentation root [DATAROOTDIR/doc/libaitwww]
1276: --htmldir=DIR html documentation [DOCDIR]
1277: --dvidir=DIR dvi documentation [DOCDIR]
1278: --pdfdir=DIR pdf documentation [DOCDIR]
1279: --psdir=DIR ps documentation [DOCDIR]
1280: _ACEOF
1281:
1282: cat <<\_ACEOF
1283:
1284: System types:
1285: --build=BUILD configure for building on BUILD [guessed]
1286: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1287: --target=TARGET configure for building compilers for TARGET [HOST]
1288: _ACEOF
1289: fi
1290:
1291: if test -n "$ac_init_help"; then
1292: case $ac_init_help in
1.3 ! misho 1293: short | recursive ) echo "Configuration of libaitwww 1.2:";;
1.1 misho 1294: esac
1295: cat <<\_ACEOF
1296:
1297: Optional Features:
1298: --disable-option-checking ignore unrecognized --enable/--with options
1299: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1300: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1301: --enable-debug Build library with debug information and additional messages
1302:
1303: Some influential environment variables:
1304: CC C compiler command
1305: CFLAGS C compiler flags
1306: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1307: nonstandard directory <lib dir>
1308: LIBS libraries to pass to the linker, e.g. -l<library>
1309: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1310: you have headers in a nonstandard directory <include dir>
1311: CPP C preprocessor
1312:
1313: Use these variables to override the choices made by `configure' or to help
1314: it to find libraries and programs with nonstandard names/locations.
1315:
1316: Report bugs to <misho@elwix.org>.
1317: _ACEOF
1318: ac_status=$?
1319: fi
1320:
1321: if test "$ac_init_help" = "recursive"; then
1322: # If there are subdirs, report their specific --help.
1323: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1324: test -d "$ac_dir" ||
1325: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1326: continue
1327: ac_builddir=.
1328:
1329: case "$ac_dir" in
1330: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331: *)
1332: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1333: # A ".." for each directory in $ac_dir_suffix.
1334: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1335: case $ac_top_builddir_sub in
1336: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338: esac ;;
1339: esac
1340: ac_abs_top_builddir=$ac_pwd
1341: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1342: # for backward compatibility:
1343: ac_top_builddir=$ac_top_build_prefix
1344:
1345: case $srcdir in
1346: .) # We are building in place.
1347: ac_srcdir=.
1348: ac_top_srcdir=$ac_top_builddir_sub
1349: ac_abs_top_srcdir=$ac_pwd ;;
1350: [\\/]* | ?:[\\/]* ) # Absolute name.
1351: ac_srcdir=$srcdir$ac_dir_suffix;
1352: ac_top_srcdir=$srcdir
1353: ac_abs_top_srcdir=$srcdir ;;
1354: *) # Relative name.
1355: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1356: ac_top_srcdir=$ac_top_build_prefix$srcdir
1357: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1358: esac
1359: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1360:
1361: cd "$ac_dir" || { ac_status=$?; continue; }
1362: # Check for guested configure.
1363: if test -f "$ac_srcdir/configure.gnu"; then
1364: echo &&
1365: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1366: elif test -f "$ac_srcdir/configure"; then
1367: echo &&
1368: $SHELL "$ac_srcdir/configure" --help=recursive
1369: else
1370: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1371: fi || ac_status=$?
1372: cd "$ac_pwd" || { ac_status=$?; break; }
1373: done
1374: fi
1375:
1376: test -n "$ac_init_help" && exit $ac_status
1377: if $ac_init_version; then
1378: cat <<\_ACEOF
1.3 ! misho 1379: libaitwww configure 1.2
1.1 misho 1380: generated by GNU Autoconf 2.68
1381:
1382: Copyright (C) 2010 Free Software Foundation, Inc.
1383: This configure script is free software; the Free Software Foundation
1384: gives unlimited permission to copy, distribute and modify it.
1385: _ACEOF
1386: exit
1387: fi
1388:
1389: ## ------------------------ ##
1390: ## Autoconf initialization. ##
1391: ## ------------------------ ##
1392:
1393: # ac_fn_c_try_compile LINENO
1394: # --------------------------
1395: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1396: ac_fn_c_try_compile ()
1397: {
1398: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1399: rm -f conftest.$ac_objext
1400: if { { ac_try="$ac_compile"
1401: case "(($ac_try" in
1402: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1403: *) ac_try_echo=$ac_try;;
1404: esac
1405: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1406: $as_echo "$ac_try_echo"; } >&5
1407: (eval "$ac_compile") 2>conftest.err
1408: ac_status=$?
1409: if test -s conftest.err; then
1410: grep -v '^ *+' conftest.err >conftest.er1
1411: cat conftest.er1 >&5
1412: mv -f conftest.er1 conftest.err
1413: fi
1414: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1415: test $ac_status = 0; } && {
1416: test -z "$ac_c_werror_flag" ||
1417: test ! -s conftest.err
1418: } && test -s conftest.$ac_objext; then :
1419: ac_retval=0
1420: else
1421: $as_echo "$as_me: failed program was:" >&5
1422: sed 's/^/| /' conftest.$ac_ext >&5
1423:
1424: ac_retval=1
1425: fi
1426: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1427: as_fn_set_status $ac_retval
1428:
1429: } # ac_fn_c_try_compile
1430:
1431: # ac_fn_c_try_cpp LINENO
1432: # ----------------------
1433: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1434: ac_fn_c_try_cpp ()
1435: {
1436: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1437: if { { ac_try="$ac_cpp conftest.$ac_ext"
1438: case "(($ac_try" in
1439: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440: *) ac_try_echo=$ac_try;;
1441: esac
1442: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443: $as_echo "$ac_try_echo"; } >&5
1444: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1445: ac_status=$?
1446: if test -s conftest.err; then
1447: grep -v '^ *+' conftest.err >conftest.er1
1448: cat conftest.er1 >&5
1449: mv -f conftest.er1 conftest.err
1450: fi
1451: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452: test $ac_status = 0; } > conftest.i && {
1453: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1454: test ! -s conftest.err
1455: }; then :
1456: ac_retval=0
1457: else
1458: $as_echo "$as_me: failed program was:" >&5
1459: sed 's/^/| /' conftest.$ac_ext >&5
1460:
1461: ac_retval=1
1462: fi
1463: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464: as_fn_set_status $ac_retval
1465:
1466: } # ac_fn_c_try_cpp
1467:
1468: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1469: # -------------------------------------------------------
1470: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1471: # the include files in INCLUDES and setting the cache variable VAR
1472: # accordingly.
1473: ac_fn_c_check_header_mongrel ()
1474: {
1475: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476: if eval \${$3+:} false; then :
1477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1478: $as_echo_n "checking for $2... " >&6; }
1479: if eval \${$3+:} false; then :
1480: $as_echo_n "(cached) " >&6
1481: fi
1482: eval ac_res=\$$3
1483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1484: $as_echo "$ac_res" >&6; }
1485: else
1486: # Is the header compilable?
1487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1488: $as_echo_n "checking $2 usability... " >&6; }
1489: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1490: /* end confdefs.h. */
1491: $4
1492: #include <$2>
1493: _ACEOF
1494: if ac_fn_c_try_compile "$LINENO"; then :
1495: ac_header_compiler=yes
1496: else
1497: ac_header_compiler=no
1498: fi
1499: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1501: $as_echo "$ac_header_compiler" >&6; }
1502:
1503: # Is the header present?
1504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1505: $as_echo_n "checking $2 presence... " >&6; }
1506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1507: /* end confdefs.h. */
1508: #include <$2>
1509: _ACEOF
1510: if ac_fn_c_try_cpp "$LINENO"; then :
1511: ac_header_preproc=yes
1512: else
1513: ac_header_preproc=no
1514: fi
1515: rm -f conftest.err conftest.i conftest.$ac_ext
1516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1517: $as_echo "$ac_header_preproc" >&6; }
1518:
1519: # So? What about this header?
1520: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1521: yes:no: )
1522: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1523: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1524: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1525: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1526: ;;
1527: no:yes:* )
1528: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1529: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1530: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1531: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1532: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1533: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1534: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1535: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1536: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1537: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1538: ( $as_echo "## ------------------------------ ##
1539: ## Report this to misho@elwix.org ##
1540: ## ------------------------------ ##"
1541: ) | sed "s/^/$as_me: WARNING: /" >&2
1542: ;;
1543: esac
1544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545: $as_echo_n "checking for $2... " >&6; }
1546: if eval \${$3+:} false; then :
1547: $as_echo_n "(cached) " >&6
1548: else
1549: eval "$3=\$ac_header_compiler"
1550: fi
1551: eval ac_res=\$$3
1552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553: $as_echo "$ac_res" >&6; }
1554: fi
1555: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556:
1557: } # ac_fn_c_check_header_mongrel
1558:
1559: # ac_fn_c_try_run LINENO
1560: # ----------------------
1561: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1562: # that executables *can* be run.
1563: ac_fn_c_try_run ()
1564: {
1565: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566: if { { ac_try="$ac_link"
1567: case "(($ac_try" in
1568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569: *) ac_try_echo=$ac_try;;
1570: esac
1571: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572: $as_echo "$ac_try_echo"; } >&5
1573: (eval "$ac_link") 2>&5
1574: ac_status=$?
1575: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1577: { { case "(($ac_try" in
1578: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579: *) ac_try_echo=$ac_try;;
1580: esac
1581: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582: $as_echo "$ac_try_echo"; } >&5
1583: (eval "$ac_try") 2>&5
1584: ac_status=$?
1585: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586: test $ac_status = 0; }; }; then :
1587: ac_retval=0
1588: else
1589: $as_echo "$as_me: program exited with status $ac_status" >&5
1590: $as_echo "$as_me: failed program was:" >&5
1591: sed 's/^/| /' conftest.$ac_ext >&5
1592:
1593: ac_retval=$ac_status
1594: fi
1595: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597: as_fn_set_status $ac_retval
1598:
1599: } # ac_fn_c_try_run
1600:
1601: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602: # -------------------------------------------------------
1603: # Tests whether HEADER exists and can be compiled using the include files in
1604: # INCLUDES, setting the cache variable VAR accordingly.
1605: ac_fn_c_check_header_compile ()
1606: {
1607: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609: $as_echo_n "checking for $2... " >&6; }
1610: if eval \${$3+:} false; then :
1611: $as_echo_n "(cached) " >&6
1612: else
1613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614: /* end confdefs.h. */
1615: $4
1616: #include <$2>
1617: _ACEOF
1618: if ac_fn_c_try_compile "$LINENO"; then :
1619: eval "$3=yes"
1620: else
1621: eval "$3=no"
1622: fi
1623: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624: fi
1625: eval ac_res=\$$3
1626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627: $as_echo "$ac_res" >&6; }
1628: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629:
1630: } # ac_fn_c_check_header_compile
1631:
1632: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1633: # -------------------------------------------
1634: # Tests whether TYPE exists after having included INCLUDES, setting cache
1635: # variable VAR accordingly.
1636: ac_fn_c_check_type ()
1637: {
1638: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640: $as_echo_n "checking for $2... " >&6; }
1641: if eval \${$3+:} false; then :
1642: $as_echo_n "(cached) " >&6
1643: else
1644: eval "$3=no"
1645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646: /* end confdefs.h. */
1647: $4
1648: int
1649: main ()
1650: {
1651: if (sizeof ($2))
1652: return 0;
1653: ;
1654: return 0;
1655: }
1656: _ACEOF
1657: if ac_fn_c_try_compile "$LINENO"; then :
1658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659: /* end confdefs.h. */
1660: $4
1661: int
1662: main ()
1663: {
1664: if (sizeof (($2)))
1665: return 0;
1666: ;
1667: return 0;
1668: }
1669: _ACEOF
1670: if ac_fn_c_try_compile "$LINENO"; then :
1671:
1672: else
1673: eval "$3=yes"
1674: fi
1675: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676: fi
1677: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678: fi
1679: eval ac_res=\$$3
1680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681: $as_echo "$ac_res" >&6; }
1682: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683:
1684: } # ac_fn_c_check_type
1685:
1686: # ac_fn_c_try_link LINENO
1687: # -----------------------
1688: # Try to link conftest.$ac_ext, and return whether this succeeded.
1689: ac_fn_c_try_link ()
1690: {
1691: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692: rm -f conftest.$ac_objext conftest$ac_exeext
1693: if { { ac_try="$ac_link"
1694: case "(($ac_try" in
1695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696: *) ac_try_echo=$ac_try;;
1697: esac
1698: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699: $as_echo "$ac_try_echo"; } >&5
1700: (eval "$ac_link") 2>conftest.err
1701: ac_status=$?
1702: if test -s conftest.err; then
1703: grep -v '^ *+' conftest.err >conftest.er1
1704: cat conftest.er1 >&5
1705: mv -f conftest.er1 conftest.err
1706: fi
1707: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708: test $ac_status = 0; } && {
1709: test -z "$ac_c_werror_flag" ||
1710: test ! -s conftest.err
1711: } && test -s conftest$ac_exeext && {
1712: test "$cross_compiling" = yes ||
1713: $as_test_x conftest$ac_exeext
1714: }; then :
1715: ac_retval=0
1716: else
1717: $as_echo "$as_me: failed program was:" >&5
1718: sed 's/^/| /' conftest.$ac_ext >&5
1719:
1720: ac_retval=1
1721: fi
1722: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724: # interfere with the next link command; also delete a directory that is
1725: # left behind by Apple's compiler. We do this before executing the actions.
1726: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728: as_fn_set_status $ac_retval
1729:
1730: } # ac_fn_c_try_link
1731:
1732: # ac_fn_c_check_func LINENO FUNC VAR
1733: # ----------------------------------
1734: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735: ac_fn_c_check_func ()
1736: {
1737: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739: $as_echo_n "checking for $2... " >&6; }
1740: if eval \${$3+:} false; then :
1741: $as_echo_n "(cached) " >&6
1742: else
1743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744: /* end confdefs.h. */
1745: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747: #define $2 innocuous_$2
1748:
1749: /* System header to define __stub macros and hopefully few prototypes,
1750: which can conflict with char $2 (); below.
1751: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752: <limits.h> exists even on freestanding compilers. */
1753:
1754: #ifdef __STDC__
1755: # include <limits.h>
1756: #else
1757: # include <assert.h>
1758: #endif
1759:
1760: #undef $2
1761:
1762: /* Override any GCC internal prototype to avoid an error.
1763: Use char because int might match the return type of a GCC
1764: builtin and then its argument prototype would still apply. */
1765: #ifdef __cplusplus
1766: extern "C"
1767: #endif
1768: char $2 ();
1769: /* The GNU C library defines this for functions which it implements
1770: to always fail with ENOSYS. Some functions are actually named
1771: something starting with __ and the normal name is an alias. */
1772: #if defined __stub_$2 || defined __stub___$2
1773: choke me
1774: #endif
1775:
1776: int
1777: main ()
1778: {
1779: return $2 ();
1780: ;
1781: return 0;
1782: }
1783: _ACEOF
1784: if ac_fn_c_try_link "$LINENO"; then :
1785: eval "$3=yes"
1786: else
1787: eval "$3=no"
1788: fi
1789: rm -f core conftest.err conftest.$ac_objext \
1790: conftest$ac_exeext conftest.$ac_ext
1791: fi
1792: eval ac_res=\$$3
1793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794: $as_echo "$ac_res" >&6; }
1795: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796:
1797: } # ac_fn_c_check_func
1798: cat >config.log <<_ACEOF
1799: This file contains any messages produced by compilers while
1800: running configure, to aid debugging if configure makes a mistake.
1801:
1.3 ! misho 1802: It was created by libaitwww $as_me 1.2, which was
1.1 misho 1803: generated by GNU Autoconf 2.68. Invocation command line was
1804:
1805: $ $0 $@
1806:
1807: _ACEOF
1808: exec 5>>config.log
1809: {
1810: cat <<_ASUNAME
1811: ## --------- ##
1812: ## Platform. ##
1813: ## --------- ##
1814:
1815: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820:
1821: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1823:
1824: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1825: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1826: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1828: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1829: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1830: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1831:
1832: _ASUNAME
1833:
1834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835: for as_dir in $PATH
1836: do
1837: IFS=$as_save_IFS
1838: test -z "$as_dir" && as_dir=.
1839: $as_echo "PATH: $as_dir"
1840: done
1841: IFS=$as_save_IFS
1842:
1843: } >&5
1844:
1845: cat >&5 <<_ACEOF
1846:
1847:
1848: ## ----------- ##
1849: ## Core tests. ##
1850: ## ----------- ##
1851:
1852: _ACEOF
1853:
1854:
1855: # Keep a trace of the command line.
1856: # Strip out --no-create and --no-recursion so they do not pile up.
1857: # Strip out --silent because we don't want to record it for future runs.
1858: # Also quote any args containing shell meta-characters.
1859: # Make two passes to allow for proper duplicate-argument suppression.
1860: ac_configure_args=
1861: ac_configure_args0=
1862: ac_configure_args1=
1863: ac_must_keep_next=false
1864: for ac_pass in 1 2
1865: do
1866: for ac_arg
1867: do
1868: case $ac_arg in
1869: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871: | -silent | --silent | --silen | --sile | --sil)
1872: continue ;;
1873: *\'*)
1874: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875: esac
1876: case $ac_pass in
1877: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1878: 2)
1879: as_fn_append ac_configure_args1 " '$ac_arg'"
1880: if test $ac_must_keep_next = true; then
1881: ac_must_keep_next=false # Got value, back to normal.
1882: else
1883: case $ac_arg in
1884: *=* | --config-cache | -C | -disable-* | --disable-* \
1885: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887: | -with-* | --with-* | -without-* | --without-* | --x)
1888: case "$ac_configure_args0 " in
1889: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890: esac
1891: ;;
1892: -* ) ac_must_keep_next=true ;;
1893: esac
1894: fi
1895: as_fn_append ac_configure_args " '$ac_arg'"
1896: ;;
1897: esac
1898: done
1899: done
1900: { ac_configure_args0=; unset ac_configure_args0;}
1901: { ac_configure_args1=; unset ac_configure_args1;}
1902:
1903: # When interrupted or exit'd, cleanup temporary files, and complete
1904: # config.log. We remove comments because anyway the quotes in there
1905: # would cause problems or look ugly.
1906: # WARNING: Use '\'' to represent an apostrophe within the trap.
1907: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908: trap 'exit_status=$?
1909: # Save into config.log some information that might help in debugging.
1910: {
1911: echo
1912:
1913: $as_echo "## ---------------- ##
1914: ## Cache variables. ##
1915: ## ---------------- ##"
1916: echo
1917: # The following way of writing the cache mishandles newlines in values,
1918: (
1919: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920: eval ac_val=\$$ac_var
1921: case $ac_val in #(
1922: *${as_nl}*)
1923: case $ac_var in #(
1924: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926: esac
1927: case $ac_var in #(
1928: _ | IFS | as_nl) ;; #(
1929: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930: *) { eval $ac_var=; unset $ac_var;} ;;
1931: esac ;;
1932: esac
1933: done
1934: (set) 2>&1 |
1935: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936: *${as_nl}ac_space=\ *)
1937: sed -n \
1938: "s/'\''/'\''\\\\'\'''\''/g;
1939: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940: ;; #(
1941: *)
1942: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943: ;;
1944: esac |
1945: sort
1946: )
1947: echo
1948:
1949: $as_echo "## ----------------- ##
1950: ## Output variables. ##
1951: ## ----------------- ##"
1952: echo
1953: for ac_var in $ac_subst_vars
1954: do
1955: eval ac_val=\$$ac_var
1956: case $ac_val in
1957: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958: esac
1959: $as_echo "$ac_var='\''$ac_val'\''"
1960: done | sort
1961: echo
1962:
1963: if test -n "$ac_subst_files"; then
1964: $as_echo "## ------------------- ##
1965: ## File substitutions. ##
1966: ## ------------------- ##"
1967: echo
1968: for ac_var in $ac_subst_files
1969: do
1970: eval ac_val=\$$ac_var
1971: case $ac_val in
1972: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973: esac
1974: $as_echo "$ac_var='\''$ac_val'\''"
1975: done | sort
1976: echo
1977: fi
1978:
1979: if test -s confdefs.h; then
1980: $as_echo "## ----------- ##
1981: ## confdefs.h. ##
1982: ## ----------- ##"
1983: echo
1984: cat confdefs.h
1985: echo
1986: fi
1987: test "$ac_signal" != 0 &&
1988: $as_echo "$as_me: caught signal $ac_signal"
1989: $as_echo "$as_me: exit $exit_status"
1990: } >&5
1991: rm -f core *.core core.conftest.* &&
1992: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993: exit $exit_status
1994: ' 0
1995: for ac_signal in 1 2 13 15; do
1996: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997: done
1998: ac_signal=0
1999:
2000: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2001: rm -f -r conftest* confdefs.h
2002:
2003: $as_echo "/* confdefs.h */" > confdefs.h
2004:
2005: # Predefined preprocessor variables.
2006:
2007: cat >>confdefs.h <<_ACEOF
2008: #define PACKAGE_NAME "$PACKAGE_NAME"
2009: _ACEOF
2010:
2011: cat >>confdefs.h <<_ACEOF
2012: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013: _ACEOF
2014:
2015: cat >>confdefs.h <<_ACEOF
2016: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2017: _ACEOF
2018:
2019: cat >>confdefs.h <<_ACEOF
2020: #define PACKAGE_STRING "$PACKAGE_STRING"
2021: _ACEOF
2022:
2023: cat >>confdefs.h <<_ACEOF
2024: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025: _ACEOF
2026:
2027: cat >>confdefs.h <<_ACEOF
2028: #define PACKAGE_URL "$PACKAGE_URL"
2029: _ACEOF
2030:
2031:
2032: # Let the site file select an alternate cache file if it wants to.
2033: # Prefer an explicitly selected file to automatically selected ones.
2034: ac_site_file1=NONE
2035: ac_site_file2=NONE
2036: if test -n "$CONFIG_SITE"; then
2037: # We do not want a PATH search for config.site.
2038: case $CONFIG_SITE in #((
2039: -*) ac_site_file1=./$CONFIG_SITE;;
2040: */*) ac_site_file1=$CONFIG_SITE;;
2041: *) ac_site_file1=./$CONFIG_SITE;;
2042: esac
2043: elif test "x$prefix" != xNONE; then
2044: ac_site_file1=$prefix/share/config.site
2045: ac_site_file2=$prefix/etc/config.site
2046: else
2047: ac_site_file1=$ac_default_prefix/share/config.site
2048: ac_site_file2=$ac_default_prefix/etc/config.site
2049: fi
2050: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2051: do
2052: test "x$ac_site_file" = xNONE && continue
2053: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2054: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056: sed 's/^/| /' "$ac_site_file" >&5
2057: . "$ac_site_file" \
2058: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060: as_fn_error $? "failed to load site script $ac_site_file
2061: See \`config.log' for more details" "$LINENO" 5; }
2062: fi
2063: done
2064:
2065: if test -r "$cache_file"; then
2066: # Some versions of bash will fail to source /dev/null (special files
2067: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2068: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070: $as_echo "$as_me: loading cache $cache_file" >&6;}
2071: case $cache_file in
2072: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073: *) . "./$cache_file";;
2074: esac
2075: fi
2076: else
2077: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078: $as_echo "$as_me: creating cache $cache_file" >&6;}
2079: >$cache_file
2080: fi
2081:
2082: # Check that the precious variables saved in the cache have kept the same
2083: # value.
2084: ac_cache_corrupted=false
2085: for ac_var in $ac_precious_vars; do
2086: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2087: eval ac_new_set=\$ac_env_${ac_var}_set
2088: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2089: eval ac_new_val=\$ac_env_${ac_var}_value
2090: case $ac_old_set,$ac_new_set in
2091: set,)
2092: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2093: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2094: ac_cache_corrupted=: ;;
2095: ,set)
2096: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2097: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2098: ac_cache_corrupted=: ;;
2099: ,);;
2100: *)
2101: if test "x$ac_old_val" != "x$ac_new_val"; then
2102: # differences in whitespace do not lead to failure.
2103: ac_old_val_w=`echo x $ac_old_val`
2104: ac_new_val_w=`echo x $ac_new_val`
2105: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2106: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2107: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2108: ac_cache_corrupted=:
2109: else
2110: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2111: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2112: eval $ac_var=\$ac_old_val
2113: fi
2114: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2115: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2116: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2117: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2118: fi;;
2119: esac
2120: # Pass precious variables to config.status.
2121: if test "$ac_new_set" = set; then
2122: case $ac_new_val in
2123: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2124: *) ac_arg=$ac_var=$ac_new_val ;;
2125: esac
2126: case " $ac_configure_args " in
2127: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2128: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2129: esac
2130: fi
2131: done
2132: if $ac_cache_corrupted; then
2133: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2134: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2135: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2136: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2137: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2138: fi
2139: ## -------------------- ##
2140: ## Main body of script. ##
2141: ## -------------------- ##
2142:
2143: ac_ext=c
2144: ac_cpp='$CPP $CPPFLAGS'
2145: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148:
2149:
2150:
2151: ac_config_headers="$ac_config_headers inc/config.h"
2152:
2153:
2154: # Checks for programs.
2155: ac_ext=c
2156: ac_cpp='$CPP $CPPFLAGS'
2157: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2158: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2159: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160: if test -n "$ac_tool_prefix"; then
2161: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2162: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2164: $as_echo_n "checking for $ac_word... " >&6; }
2165: if ${ac_cv_prog_CC+:} false; then :
2166: $as_echo_n "(cached) " >&6
2167: else
2168: if test -n "$CC"; then
2169: ac_cv_prog_CC="$CC" # Let the user override the test.
2170: else
2171: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172: for as_dir in $PATH
2173: do
2174: IFS=$as_save_IFS
2175: test -z "$as_dir" && as_dir=.
2176: for ac_exec_ext in '' $ac_executable_extensions; do
2177: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2179: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2180: break 2
2181: fi
2182: done
2183: done
2184: IFS=$as_save_IFS
2185:
2186: fi
2187: fi
2188: CC=$ac_cv_prog_CC
2189: if test -n "$CC"; then
2190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2191: $as_echo "$CC" >&6; }
2192: else
2193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2194: $as_echo "no" >&6; }
2195: fi
2196:
2197:
2198: fi
2199: if test -z "$ac_cv_prog_CC"; then
2200: ac_ct_CC=$CC
2201: # Extract the first word of "gcc", so it can be a program name with args.
2202: set dummy gcc; ac_word=$2
2203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2204: $as_echo_n "checking for $ac_word... " >&6; }
2205: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2206: $as_echo_n "(cached) " >&6
2207: else
2208: if test -n "$ac_ct_CC"; then
2209: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2210: else
2211: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212: for as_dir in $PATH
2213: do
2214: IFS=$as_save_IFS
2215: test -z "$as_dir" && as_dir=.
2216: for ac_exec_ext in '' $ac_executable_extensions; do
2217: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2218: ac_cv_prog_ac_ct_CC="gcc"
2219: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2220: break 2
2221: fi
2222: done
2223: done
2224: IFS=$as_save_IFS
2225:
2226: fi
2227: fi
2228: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229: if test -n "$ac_ct_CC"; then
2230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2231: $as_echo "$ac_ct_CC" >&6; }
2232: else
2233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2234: $as_echo "no" >&6; }
2235: fi
2236:
2237: if test "x$ac_ct_CC" = x; then
2238: CC=""
2239: else
2240: case $cross_compiling:$ac_tool_warned in
2241: yes:)
2242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2243: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2244: ac_tool_warned=yes ;;
2245: esac
2246: CC=$ac_ct_CC
2247: fi
2248: else
2249: CC="$ac_cv_prog_CC"
2250: fi
2251:
2252: if test -z "$CC"; then
2253: if test -n "$ac_tool_prefix"; then
2254: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2255: set dummy ${ac_tool_prefix}cc; ac_word=$2
2256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257: $as_echo_n "checking for $ac_word... " >&6; }
2258: if ${ac_cv_prog_CC+:} false; then :
2259: $as_echo_n "(cached) " >&6
2260: else
2261: if test -n "$CC"; then
2262: ac_cv_prog_CC="$CC" # Let the user override the test.
2263: else
2264: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265: for as_dir in $PATH
2266: do
2267: IFS=$as_save_IFS
2268: test -z "$as_dir" && as_dir=.
2269: for ac_exec_ext in '' $ac_executable_extensions; do
2270: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271: ac_cv_prog_CC="${ac_tool_prefix}cc"
2272: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273: break 2
2274: fi
2275: done
2276: done
2277: IFS=$as_save_IFS
2278:
2279: fi
2280: fi
2281: CC=$ac_cv_prog_CC
2282: if test -n "$CC"; then
2283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2284: $as_echo "$CC" >&6; }
2285: else
2286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287: $as_echo "no" >&6; }
2288: fi
2289:
2290:
2291: fi
2292: fi
2293: if test -z "$CC"; then
2294: # Extract the first word of "cc", so it can be a program name with args.
2295: set dummy cc; ac_word=$2
2296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297: $as_echo_n "checking for $ac_word... " >&6; }
2298: if ${ac_cv_prog_CC+:} false; then :
2299: $as_echo_n "(cached) " >&6
2300: else
2301: if test -n "$CC"; then
2302: ac_cv_prog_CC="$CC" # Let the user override the test.
2303: else
2304: ac_prog_rejected=no
2305: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306: for as_dir in $PATH
2307: do
2308: IFS=$as_save_IFS
2309: test -z "$as_dir" && as_dir=.
2310: for ac_exec_ext in '' $ac_executable_extensions; do
2311: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2313: ac_prog_rejected=yes
2314: continue
2315: fi
2316: ac_cv_prog_CC="cc"
2317: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2318: break 2
2319: fi
2320: done
2321: done
2322: IFS=$as_save_IFS
2323:
2324: if test $ac_prog_rejected = yes; then
2325: # We found a bogon in the path, so make sure we never use it.
2326: set dummy $ac_cv_prog_CC
2327: shift
2328: if test $# != 0; then
2329: # We chose a different compiler from the bogus one.
2330: # However, it has the same basename, so the bogon will be chosen
2331: # first if we set CC to just the basename; use the full file name.
2332: shift
2333: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334: fi
2335: fi
2336: fi
2337: fi
2338: CC=$ac_cv_prog_CC
2339: if test -n "$CC"; then
2340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2341: $as_echo "$CC" >&6; }
2342: else
2343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344: $as_echo "no" >&6; }
2345: fi
2346:
2347:
2348: fi
2349: if test -z "$CC"; then
2350: if test -n "$ac_tool_prefix"; then
2351: for ac_prog in cl.exe
2352: do
2353: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2354: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356: $as_echo_n "checking for $ac_word... " >&6; }
2357: if ${ac_cv_prog_CC+:} false; then :
2358: $as_echo_n "(cached) " >&6
2359: else
2360: if test -n "$CC"; then
2361: ac_cv_prog_CC="$CC" # Let the user override the test.
2362: else
2363: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364: for as_dir in $PATH
2365: do
2366: IFS=$as_save_IFS
2367: test -z "$as_dir" && as_dir=.
2368: for ac_exec_ext in '' $ac_executable_extensions; do
2369: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2371: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372: break 2
2373: fi
2374: done
2375: done
2376: IFS=$as_save_IFS
2377:
2378: fi
2379: fi
2380: CC=$ac_cv_prog_CC
2381: if test -n "$CC"; then
2382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2383: $as_echo "$CC" >&6; }
2384: else
2385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386: $as_echo "no" >&6; }
2387: fi
2388:
2389:
2390: test -n "$CC" && break
2391: done
2392: fi
2393: if test -z "$CC"; then
2394: ac_ct_CC=$CC
2395: for ac_prog in cl.exe
2396: do
2397: # Extract the first word of "$ac_prog", so it can be a program name with args.
2398: set dummy $ac_prog; ac_word=$2
2399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2400: $as_echo_n "checking for $ac_word... " >&6; }
2401: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2402: $as_echo_n "(cached) " >&6
2403: else
2404: if test -n "$ac_ct_CC"; then
2405: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406: else
2407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408: for as_dir in $PATH
2409: do
2410: IFS=$as_save_IFS
2411: test -z "$as_dir" && as_dir=.
2412: for ac_exec_ext in '' $ac_executable_extensions; do
2413: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414: ac_cv_prog_ac_ct_CC="$ac_prog"
2415: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2416: break 2
2417: fi
2418: done
2419: done
2420: IFS=$as_save_IFS
2421:
2422: fi
2423: fi
2424: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425: if test -n "$ac_ct_CC"; then
2426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2427: $as_echo "$ac_ct_CC" >&6; }
2428: else
2429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430: $as_echo "no" >&6; }
2431: fi
2432:
2433:
2434: test -n "$ac_ct_CC" && break
2435: done
2436:
2437: if test "x$ac_ct_CC" = x; then
2438: CC=""
2439: else
2440: case $cross_compiling:$ac_tool_warned in
2441: yes:)
2442: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2443: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444: ac_tool_warned=yes ;;
2445: esac
2446: CC=$ac_ct_CC
2447: fi
2448: fi
2449:
2450: fi
2451:
2452:
2453: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455: as_fn_error $? "no acceptable C compiler found in \$PATH
2456: See \`config.log' for more details" "$LINENO" 5; }
2457:
2458: # Provide some information about the compiler.
2459: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2460: set X $ac_compile
2461: ac_compiler=$2
2462: for ac_option in --version -v -V -qversion; do
2463: { { ac_try="$ac_compiler $ac_option >&5"
2464: case "(($ac_try" in
2465: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466: *) ac_try_echo=$ac_try;;
2467: esac
2468: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469: $as_echo "$ac_try_echo"; } >&5
2470: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2471: ac_status=$?
2472: if test -s conftest.err; then
2473: sed '10a\
2474: ... rest of stderr output deleted ...
2475: 10q' conftest.err >conftest.er1
2476: cat conftest.er1 >&5
2477: fi
2478: rm -f conftest.er1 conftest.err
2479: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480: test $ac_status = 0; }
2481: done
2482:
2483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484: /* end confdefs.h. */
2485:
2486: int
2487: main ()
2488: {
2489:
2490: ;
2491: return 0;
2492: }
2493: _ACEOF
2494: ac_clean_files_save=$ac_clean_files
2495: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2496: # Try to create an executable without -o first, disregard a.out.
2497: # It will help us diagnose broken compilers, and finding out an intuition
2498: # of exeext.
2499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2500: $as_echo_n "checking whether the C compiler works... " >&6; }
2501: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502:
2503: # The possible output files:
2504: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2505:
2506: ac_rmfiles=
2507: for ac_file in $ac_files
2508: do
2509: case $ac_file in
2510: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2511: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2512: esac
2513: done
2514: rm -f $ac_rmfiles
2515:
2516: if { { ac_try="$ac_link_default"
2517: case "(($ac_try" in
2518: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519: *) ac_try_echo=$ac_try;;
2520: esac
2521: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522: $as_echo "$ac_try_echo"; } >&5
2523: (eval "$ac_link_default") 2>&5
2524: ac_status=$?
2525: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526: test $ac_status = 0; }; then :
2527: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2530: # so that the user can short-circuit this test for compilers unknown to
2531: # Autoconf.
2532: for ac_file in $ac_files ''
2533: do
2534: test -f "$ac_file" || continue
2535: case $ac_file in
2536: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2537: ;;
2538: [ab].out )
2539: # We found the default executable, but exeext='' is most
2540: # certainly right.
2541: break;;
2542: *.* )
2543: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2544: then :; else
2545: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546: fi
2547: # We set ac_cv_exeext here because the later test for it is not
2548: # safe: cross compilers may not add the suffix if given an `-o'
2549: # argument, so we may need to know it at that point already.
2550: # Even if this section looks crufty: it has the advantage of
2551: # actually working.
2552: break;;
2553: * )
2554: break;;
2555: esac
2556: done
2557: test "$ac_cv_exeext" = no && ac_cv_exeext=
2558:
2559: else
2560: ac_file=''
2561: fi
2562: if test -z "$ac_file"; then :
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564: $as_echo "no" >&6; }
2565: $as_echo "$as_me: failed program was:" >&5
2566: sed 's/^/| /' conftest.$ac_ext >&5
2567:
2568: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570: as_fn_error 77 "C compiler cannot create executables
2571: See \`config.log' for more details" "$LINENO" 5; }
2572: else
2573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574: $as_echo "yes" >&6; }
2575: fi
2576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2577: $as_echo_n "checking for C compiler default output file name... " >&6; }
2578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2579: $as_echo "$ac_file" >&6; }
2580: ac_exeext=$ac_cv_exeext
2581:
2582: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2583: ac_clean_files=$ac_clean_files_save
2584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2585: $as_echo_n "checking for suffix of executables... " >&6; }
2586: if { { ac_try="$ac_link"
2587: case "(($ac_try" in
2588: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589: *) ac_try_echo=$ac_try;;
2590: esac
2591: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592: $as_echo "$ac_try_echo"; } >&5
2593: (eval "$ac_link") 2>&5
2594: ac_status=$?
2595: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596: test $ac_status = 0; }; then :
2597: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2599: # work properly (i.e., refer to `conftest.exe'), while it won't with
2600: # `rm'.
2601: for ac_file in conftest.exe conftest conftest.*; do
2602: test -f "$ac_file" || continue
2603: case $ac_file in
2604: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606: break;;
2607: * ) break;;
2608: esac
2609: done
2610: else
2611: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2614: See \`config.log' for more details" "$LINENO" 5; }
2615: fi
2616: rm -f conftest conftest$ac_cv_exeext
2617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2618: $as_echo "$ac_cv_exeext" >&6; }
2619:
2620: rm -f conftest.$ac_ext
2621: EXEEXT=$ac_cv_exeext
2622: ac_exeext=$EXEEXT
2623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624: /* end confdefs.h. */
2625: #include <stdio.h>
2626: int
2627: main ()
2628: {
2629: FILE *f = fopen ("conftest.out", "w");
2630: return ferror (f) || fclose (f) != 0;
2631:
2632: ;
2633: return 0;
2634: }
2635: _ACEOF
2636: ac_clean_files="$ac_clean_files conftest.out"
2637: # Check that the compiler produces executables we can run. If not, either
2638: # the compiler is broken, or we cross compile.
2639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2640: $as_echo_n "checking whether we are cross compiling... " >&6; }
2641: if test "$cross_compiling" != yes; then
2642: { { ac_try="$ac_link"
2643: case "(($ac_try" in
2644: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645: *) ac_try_echo=$ac_try;;
2646: esac
2647: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648: $as_echo "$ac_try_echo"; } >&5
2649: (eval "$ac_link") 2>&5
2650: ac_status=$?
2651: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652: test $ac_status = 0; }
2653: if { ac_try='./conftest$ac_cv_exeext'
2654: { { case "(($ac_try" in
2655: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656: *) ac_try_echo=$ac_try;;
2657: esac
2658: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659: $as_echo "$ac_try_echo"; } >&5
2660: (eval "$ac_try") 2>&5
2661: ac_status=$?
2662: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663: test $ac_status = 0; }; }; then
2664: cross_compiling=no
2665: else
2666: if test "$cross_compiling" = maybe; then
2667: cross_compiling=yes
2668: else
2669: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671: as_fn_error $? "cannot run C compiled programs.
2672: If you meant to cross compile, use \`--host'.
2673: See \`config.log' for more details" "$LINENO" 5; }
2674: fi
2675: fi
2676: fi
2677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2678: $as_echo "$cross_compiling" >&6; }
2679:
2680: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2681: ac_clean_files=$ac_clean_files_save
2682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2683: $as_echo_n "checking for suffix of object files... " >&6; }
2684: if ${ac_cv_objext+:} false; then :
2685: $as_echo_n "(cached) " >&6
2686: else
2687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688: /* end confdefs.h. */
2689:
2690: int
2691: main ()
2692: {
2693:
2694: ;
2695: return 0;
2696: }
2697: _ACEOF
2698: rm -f conftest.o conftest.obj
2699: if { { ac_try="$ac_compile"
2700: case "(($ac_try" in
2701: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702: *) ac_try_echo=$ac_try;;
2703: esac
2704: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705: $as_echo "$ac_try_echo"; } >&5
2706: (eval "$ac_compile") 2>&5
2707: ac_status=$?
2708: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709: test $ac_status = 0; }; then :
2710: for ac_file in conftest.o conftest.obj conftest.*; do
2711: test -f "$ac_file" || continue;
2712: case $ac_file in
2713: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2714: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2715: break;;
2716: esac
2717: done
2718: else
2719: $as_echo "$as_me: failed program was:" >&5
2720: sed 's/^/| /' conftest.$ac_ext >&5
2721:
2722: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724: as_fn_error $? "cannot compute suffix of object files: cannot compile
2725: See \`config.log' for more details" "$LINENO" 5; }
2726: fi
2727: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2728: fi
2729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2730: $as_echo "$ac_cv_objext" >&6; }
2731: OBJEXT=$ac_cv_objext
2732: ac_objext=$OBJEXT
2733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2734: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2735: if ${ac_cv_c_compiler_gnu+:} false; then :
2736: $as_echo_n "(cached) " >&6
2737: else
2738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739: /* end confdefs.h. */
2740:
2741: int
2742: main ()
2743: {
2744: #ifndef __GNUC__
2745: choke me
2746: #endif
2747:
2748: ;
2749: return 0;
2750: }
2751: _ACEOF
2752: if ac_fn_c_try_compile "$LINENO"; then :
2753: ac_compiler_gnu=yes
2754: else
2755: ac_compiler_gnu=no
2756: fi
2757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2759:
2760: fi
2761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2762: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2763: if test $ac_compiler_gnu = yes; then
2764: GCC=yes
2765: else
2766: GCC=
2767: fi
2768: ac_test_CFLAGS=${CFLAGS+set}
2769: ac_save_CFLAGS=$CFLAGS
2770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2771: $as_echo_n "checking whether $CC accepts -g... " >&6; }
2772: if ${ac_cv_prog_cc_g+:} false; then :
2773: $as_echo_n "(cached) " >&6
2774: else
2775: ac_save_c_werror_flag=$ac_c_werror_flag
2776: ac_c_werror_flag=yes
2777: ac_cv_prog_cc_g=no
2778: CFLAGS="-g"
2779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780: /* end confdefs.h. */
2781:
2782: int
2783: main ()
2784: {
2785:
2786: ;
2787: return 0;
2788: }
2789: _ACEOF
2790: if ac_fn_c_try_compile "$LINENO"; then :
2791: ac_cv_prog_cc_g=yes
2792: else
2793: CFLAGS=""
2794: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795: /* end confdefs.h. */
2796:
2797: int
2798: main ()
2799: {
2800:
2801: ;
2802: return 0;
2803: }
2804: _ACEOF
2805: if ac_fn_c_try_compile "$LINENO"; then :
2806:
2807: else
2808: ac_c_werror_flag=$ac_save_c_werror_flag
2809: CFLAGS="-g"
2810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811: /* end confdefs.h. */
2812:
2813: int
2814: main ()
2815: {
2816:
2817: ;
2818: return 0;
2819: }
2820: _ACEOF
2821: if ac_fn_c_try_compile "$LINENO"; then :
2822: ac_cv_prog_cc_g=yes
2823: fi
2824: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825: fi
2826: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827: fi
2828: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829: ac_c_werror_flag=$ac_save_c_werror_flag
2830: fi
2831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2832: $as_echo "$ac_cv_prog_cc_g" >&6; }
2833: if test "$ac_test_CFLAGS" = set; then
2834: CFLAGS=$ac_save_CFLAGS
2835: elif test $ac_cv_prog_cc_g = yes; then
2836: if test "$GCC" = yes; then
2837: CFLAGS="-g -O2"
2838: else
2839: CFLAGS="-g"
2840: fi
2841: else
2842: if test "$GCC" = yes; then
2843: CFLAGS="-O2"
2844: else
2845: CFLAGS=
2846: fi
2847: fi
2848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2849: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2850: if ${ac_cv_prog_cc_c89+:} false; then :
2851: $as_echo_n "(cached) " >&6
2852: else
2853: ac_cv_prog_cc_c89=no
2854: ac_save_CC=$CC
2855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856: /* end confdefs.h. */
2857: #include <stdarg.h>
2858: #include <stdio.h>
2859: #include <sys/types.h>
2860: #include <sys/stat.h>
2861: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2862: struct buf { int x; };
2863: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2864: static char *e (p, i)
2865: char **p;
2866: int i;
2867: {
2868: return p[i];
2869: }
2870: static char *f (char * (*g) (char **, int), char **p, ...)
2871: {
2872: char *s;
2873: va_list v;
2874: va_start (v,p);
2875: s = g (p, va_arg (v,int));
2876: va_end (v);
2877: return s;
2878: }
2879:
2880: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2881: function prototypes and stuff, but not '\xHH' hex character constants.
2882: These don't provoke an error unfortunately, instead are silently treated
2883: as 'x'. The following induces an error, until -std is added to get
2884: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2885: array size at least. It's necessary to write '\x00'==0 to get something
2886: that's true only with -std. */
2887: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2888:
2889: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2890: inside strings and character constants. */
2891: #define FOO(x) 'x'
2892: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2893:
2894: int test (int i, double x);
2895: struct s1 {int (*f) (int a);};
2896: struct s2 {int (*f) (double a);};
2897: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2898: int argc;
2899: char **argv;
2900: int
2901: main ()
2902: {
2903: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2904: ;
2905: return 0;
2906: }
2907: _ACEOF
2908: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2909: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2910: do
2911: CC="$ac_save_CC $ac_arg"
2912: if ac_fn_c_try_compile "$LINENO"; then :
2913: ac_cv_prog_cc_c89=$ac_arg
2914: fi
2915: rm -f core conftest.err conftest.$ac_objext
2916: test "x$ac_cv_prog_cc_c89" != "xno" && break
2917: done
2918: rm -f conftest.$ac_ext
2919: CC=$ac_save_CC
2920:
2921: fi
2922: # AC_CACHE_VAL
2923: case "x$ac_cv_prog_cc_c89" in
2924: x)
2925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2926: $as_echo "none needed" >&6; } ;;
2927: xno)
2928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2929: $as_echo "unsupported" >&6; } ;;
2930: *)
2931: CC="$CC $ac_cv_prog_cc_c89"
2932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2933: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2934: esac
2935: if test "x$ac_cv_prog_cc_c89" != xno; then :
2936:
2937: fi
2938:
2939: ac_ext=c
2940: ac_cpp='$CPP $CPPFLAGS'
2941: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944:
2945: ac_aux_dir=
2946: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2947: if test -f "$ac_dir/install-sh"; then
2948: ac_aux_dir=$ac_dir
2949: ac_install_sh="$ac_aux_dir/install-sh -c"
2950: break
2951: elif test -f "$ac_dir/install.sh"; then
2952: ac_aux_dir=$ac_dir
2953: ac_install_sh="$ac_aux_dir/install.sh -c"
2954: break
2955: elif test -f "$ac_dir/shtool"; then
2956: ac_aux_dir=$ac_dir
2957: ac_install_sh="$ac_aux_dir/shtool install -c"
2958: break
2959: fi
2960: done
2961: if test -z "$ac_aux_dir"; then
2962: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2963: fi
2964:
2965: # These three variables are undocumented and unsupported,
2966: # and are intended to be withdrawn in a future Autoconf release.
2967: # They can cause serious problems if a builder's source tree is in a directory
2968: # whose full name contains unusual characters.
2969: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2970: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2971: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2972:
2973:
2974: # Find a good install program. We prefer a C program (faster),
2975: # so one script is as good as another. But avoid the broken or
2976: # incompatible versions:
2977: # SysV /etc/install, /usr/sbin/install
2978: # SunOS /usr/etc/install
2979: # IRIX /sbin/install
2980: # AIX /bin/install
2981: # AmigaOS /C/install, which installs bootblocks on floppy discs
2982: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2983: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2984: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2985: # OS/2's system install, which has a completely different semantic
2986: # ./install, which can be erroneously created by make from ./install.sh.
2987: # Reject install programs that cannot install multiple files.
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2989: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2990: if test -z "$INSTALL"; then
2991: if ${ac_cv_path_install+:} false; then :
2992: $as_echo_n "(cached) " >&6
2993: else
2994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995: for as_dir in $PATH
2996: do
2997: IFS=$as_save_IFS
2998: test -z "$as_dir" && as_dir=.
2999: # Account for people who put trailing slashes in PATH elements.
3000: case $as_dir/ in #((
3001: ./ | .// | /[cC]/* | \
3002: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3003: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3004: /usr/ucb/* ) ;;
3005: *)
3006: # OSF1 and SCO ODT 3.0 have their own names for install.
3007: # Don't use installbsd from OSF since it installs stuff as root
3008: # by default.
3009: for ac_prog in ginstall scoinst install; do
3010: for ac_exec_ext in '' $ac_executable_extensions; do
3011: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3012: if test $ac_prog = install &&
3013: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3014: # AIX install. It has an incompatible calling convention.
3015: :
3016: elif test $ac_prog = install &&
3017: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3018: # program-specific install script used by HP pwplus--don't use.
3019: :
3020: else
3021: rm -rf conftest.one conftest.two conftest.dir
3022: echo one > conftest.one
3023: echo two > conftest.two
3024: mkdir conftest.dir
3025: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3026: test -s conftest.one && test -s conftest.two &&
3027: test -s conftest.dir/conftest.one &&
3028: test -s conftest.dir/conftest.two
3029: then
3030: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3031: break 3
3032: fi
3033: fi
3034: fi
3035: done
3036: done
3037: ;;
3038: esac
3039:
3040: done
3041: IFS=$as_save_IFS
3042:
3043: rm -rf conftest.one conftest.two conftest.dir
3044:
3045: fi
3046: if test "${ac_cv_path_install+set}" = set; then
3047: INSTALL=$ac_cv_path_install
3048: else
3049: # As a last resort, use the slow shell script. Don't cache a
3050: # value for INSTALL within a source directory, because that will
3051: # break other packages using the cache if that directory is
3052: # removed, or if the value is a relative name.
3053: INSTALL=$ac_install_sh
3054: fi
3055: fi
3056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3057: $as_echo "$INSTALL" >&6; }
3058:
3059: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3060: # It thinks the first close brace ends the variable substitution.
3061: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3062:
3063: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3064:
3065: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3066:
3067:
3068: # Checks for libraries.
3069: # Make sure we can run config.sub.
3070: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3071: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3072:
3073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3074: $as_echo_n "checking build system type... " >&6; }
3075: if ${ac_cv_build+:} false; then :
3076: $as_echo_n "(cached) " >&6
3077: else
3078: ac_build_alias=$build_alias
3079: test "x$ac_build_alias" = x &&
3080: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3081: test "x$ac_build_alias" = x &&
3082: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3083: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3084: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085:
3086: fi
3087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3088: $as_echo "$ac_cv_build" >&6; }
3089: case $ac_cv_build in
3090: *-*-*) ;;
3091: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3092: esac
3093: build=$ac_cv_build
3094: ac_save_IFS=$IFS; IFS='-'
3095: set x $ac_cv_build
3096: shift
3097: build_cpu=$1
3098: build_vendor=$2
3099: shift; shift
3100: # Remember, the first character of IFS is used to create $*,
3101: # except with old shells:
3102: build_os=$*
3103: IFS=$ac_save_IFS
3104: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105:
3106:
3107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3108: $as_echo_n "checking host system type... " >&6; }
3109: if ${ac_cv_host+:} false; then :
3110: $as_echo_n "(cached) " >&6
3111: else
3112: if test "x$host_alias" = x; then
3113: ac_cv_host=$ac_cv_build
3114: else
3115: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3116: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3117: fi
3118:
3119: fi
3120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3121: $as_echo "$ac_cv_host" >&6; }
3122: case $ac_cv_host in
3123: *-*-*) ;;
3124: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3125: esac
3126: host=$ac_cv_host
3127: ac_save_IFS=$IFS; IFS='-'
3128: set x $ac_cv_host
3129: shift
3130: host_cpu=$1
3131: host_vendor=$2
3132: shift; shift
3133: # Remember, the first character of IFS is used to create $*,
3134: # except with old shells:
3135: host_os=$*
3136: IFS=$ac_save_IFS
3137: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138:
3139:
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3141: $as_echo_n "checking target system type... " >&6; }
3142: if ${ac_cv_target+:} false; then :
3143: $as_echo_n "(cached) " >&6
3144: else
3145: if test "x$target_alias" = x; then
3146: ac_cv_target=$ac_cv_host
3147: else
3148: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3149: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3150: fi
3151:
3152: fi
3153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3154: $as_echo "$ac_cv_target" >&6; }
3155: case $ac_cv_target in
3156: *-*-*) ;;
3157: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3158: esac
3159: target=$ac_cv_target
3160: ac_save_IFS=$IFS; IFS='-'
3161: set x $ac_cv_target
3162: shift
3163: target_cpu=$1
3164: target_vendor=$2
3165: shift; shift
3166: # Remember, the first character of IFS is used to create $*,
3167: # except with old shells:
3168: target_os=$*
3169: IFS=$ac_save_IFS
3170: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171:
3172:
3173: # The aliases save the names the user supplied, while $host etc.
3174: # will get canonicalized.
3175: test -n "$target_alias" &&
3176: test "$program_prefix$program_suffix$program_transform_name" = \
3177: NONENONEs,x,x, &&
3178: program_prefix=${target_alias}-
3179:
3180: if test -n "$ac_tool_prefix"; then
3181: # Extract the first word of "${ac_tool_prefix}mkdep", so it can be a program name with args.
3182: set dummy ${ac_tool_prefix}mkdep; ac_word=$2
3183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184: $as_echo_n "checking for $ac_word... " >&6; }
3185: if ${ac_cv_prog_MKDEP+:} false; then :
3186: $as_echo_n "(cached) " >&6
3187: else
3188: if test -n "$MKDEP"; then
3189: ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
3190: else
3191: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192: for as_dir in $PATH
3193: do
3194: IFS=$as_save_IFS
3195: test -z "$as_dir" && as_dir=.
3196: for ac_exec_ext in '' $ac_executable_extensions; do
3197: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198: ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
3199: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200: break 2
3201: fi
3202: done
3203: done
3204: IFS=$as_save_IFS
3205:
3206: fi
3207: fi
3208: MKDEP=$ac_cv_prog_MKDEP
3209: if test -n "$MKDEP"; then
3210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
3211: $as_echo "$MKDEP" >&6; }
3212: else
3213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214: $as_echo "no" >&6; }
3215: fi
3216:
3217:
3218: fi
3219: if test -z "$ac_cv_prog_MKDEP"; then
3220: ac_ct_MKDEP=$MKDEP
3221: # Extract the first word of "mkdep", so it can be a program name with args.
3222: set dummy mkdep; ac_word=$2
3223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224: $as_echo_n "checking for $ac_word... " >&6; }
3225: if ${ac_cv_prog_ac_ct_MKDEP+:} false; then :
3226: $as_echo_n "(cached) " >&6
3227: else
3228: if test -n "$ac_ct_MKDEP"; then
3229: ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
3230: else
3231: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232: for as_dir in $PATH
3233: do
3234: IFS=$as_save_IFS
3235: test -z "$as_dir" && as_dir=.
3236: for ac_exec_ext in '' $ac_executable_extensions; do
3237: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238: ac_cv_prog_ac_ct_MKDEP="mkdep"
3239: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240: break 2
3241: fi
3242: done
3243: done
3244: IFS=$as_save_IFS
3245:
3246: fi
3247: fi
3248: ac_ct_MKDEP=$ac_cv_prog_ac_ct_MKDEP
3249: if test -n "$ac_ct_MKDEP"; then
3250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDEP" >&5
3251: $as_echo "$ac_ct_MKDEP" >&6; }
3252: else
3253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254: $as_echo "no" >&6; }
3255: fi
3256:
3257: if test "x$ac_ct_MKDEP" = x; then
3258: MKDEP="no"
3259: else
3260: case $cross_compiling:$ac_tool_warned in
3261: yes:)
3262: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264: ac_tool_warned=yes ;;
3265: esac
3266: MKDEP=$ac_ct_MKDEP
3267: fi
3268: else
3269: MKDEP="$ac_cv_prog_MKDEP"
3270: fi
3271:
3272:
3273:
3274: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
3275: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
3276:
3277:
3278: # Checks for header files.
3279:
3280: ac_ext=c
3281: ac_cpp='$CPP $CPPFLAGS'
3282: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3286: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3287: # On Suns, sometimes $CPP names a directory.
3288: if test -n "$CPP" && test -d "$CPP"; then
3289: CPP=
3290: fi
3291: if test -z "$CPP"; then
3292: if ${ac_cv_prog_CPP+:} false; then :
3293: $as_echo_n "(cached) " >&6
3294: else
3295: # Double quotes because CPP needs to be expanded
3296: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3297: do
3298: ac_preproc_ok=false
3299: for ac_c_preproc_warn_flag in '' yes
3300: do
3301: # Use a header file that comes with gcc, so configuring glibc
3302: # with a fresh cross-compiler works.
3303: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304: # <limits.h> exists even on freestanding compilers.
3305: # On the NeXT, cc -E runs the code through the compiler's parser,
3306: # not just through cpp. "Syntax error" is here to catch this case.
3307: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308: /* end confdefs.h. */
3309: #ifdef __STDC__
3310: # include <limits.h>
3311: #else
3312: # include <assert.h>
3313: #endif
3314: Syntax error
3315: _ACEOF
3316: if ac_fn_c_try_cpp "$LINENO"; then :
3317:
3318: else
3319: # Broken: fails on valid input.
3320: continue
3321: fi
3322: rm -f conftest.err conftest.i conftest.$ac_ext
3323:
3324: # OK, works on sane cases. Now check whether nonexistent headers
3325: # can be detected and how.
3326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327: /* end confdefs.h. */
3328: #include <ac_nonexistent.h>
3329: _ACEOF
3330: if ac_fn_c_try_cpp "$LINENO"; then :
3331: # Broken: success on invalid input.
3332: continue
3333: else
3334: # Passes both tests.
3335: ac_preproc_ok=:
3336: break
3337: fi
3338: rm -f conftest.err conftest.i conftest.$ac_ext
3339:
3340: done
3341: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342: rm -f conftest.i conftest.err conftest.$ac_ext
3343: if $ac_preproc_ok; then :
3344: break
3345: fi
3346:
3347: done
3348: ac_cv_prog_CPP=$CPP
3349:
3350: fi
3351: CPP=$ac_cv_prog_CPP
3352: else
3353: ac_cv_prog_CPP=$CPP
3354: fi
3355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3356: $as_echo "$CPP" >&6; }
3357: ac_preproc_ok=false
3358: for ac_c_preproc_warn_flag in '' yes
3359: do
3360: # Use a header file that comes with gcc, so configuring glibc
3361: # with a fresh cross-compiler works.
3362: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363: # <limits.h> exists even on freestanding compilers.
3364: # On the NeXT, cc -E runs the code through the compiler's parser,
3365: # not just through cpp. "Syntax error" is here to catch this case.
3366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367: /* end confdefs.h. */
3368: #ifdef __STDC__
3369: # include <limits.h>
3370: #else
3371: # include <assert.h>
3372: #endif
3373: Syntax error
3374: _ACEOF
3375: if ac_fn_c_try_cpp "$LINENO"; then :
3376:
3377: else
3378: # Broken: fails on valid input.
3379: continue
3380: fi
3381: rm -f conftest.err conftest.i conftest.$ac_ext
3382:
3383: # OK, works on sane cases. Now check whether nonexistent headers
3384: # can be detected and how.
3385: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386: /* end confdefs.h. */
3387: #include <ac_nonexistent.h>
3388: _ACEOF
3389: if ac_fn_c_try_cpp "$LINENO"; then :
3390: # Broken: success on invalid input.
3391: continue
3392: else
3393: # Passes both tests.
3394: ac_preproc_ok=:
3395: break
3396: fi
3397: rm -f conftest.err conftest.i conftest.$ac_ext
3398:
3399: done
3400: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3401: rm -f conftest.i conftest.err conftest.$ac_ext
3402: if $ac_preproc_ok; then :
3403:
3404: else
3405: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3408: See \`config.log' for more details" "$LINENO" 5; }
3409: fi
3410:
3411: ac_ext=c
3412: ac_cpp='$CPP $CPPFLAGS'
3413: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416:
3417:
3418: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3419: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3420: if ${ac_cv_path_GREP+:} false; then :
3421: $as_echo_n "(cached) " >&6
3422: else
3423: if test -z "$GREP"; then
3424: ac_path_GREP_found=false
3425: # Loop through the user's path and test for each of PROGNAME-LIST
3426: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3428: do
3429: IFS=$as_save_IFS
3430: test -z "$as_dir" && as_dir=.
3431: for ac_prog in grep ggrep; do
3432: for ac_exec_ext in '' $ac_executable_extensions; do
3433: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3434: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3435: # Check for GNU ac_path_GREP and select it if it is found.
3436: # Check for GNU $ac_path_GREP
3437: case `"$ac_path_GREP" --version 2>&1` in
3438: *GNU*)
3439: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3440: *)
3441: ac_count=0
3442: $as_echo_n 0123456789 >"conftest.in"
3443: while :
3444: do
3445: cat "conftest.in" "conftest.in" >"conftest.tmp"
3446: mv "conftest.tmp" "conftest.in"
3447: cp "conftest.in" "conftest.nl"
3448: $as_echo 'GREP' >> "conftest.nl"
3449: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3450: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3451: as_fn_arith $ac_count + 1 && ac_count=$as_val
3452: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3453: # Best one so far, save it but keep looking for a better one
3454: ac_cv_path_GREP="$ac_path_GREP"
3455: ac_path_GREP_max=$ac_count
3456: fi
3457: # 10*(2^10) chars as input seems more than enough
3458: test $ac_count -gt 10 && break
3459: done
3460: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3461: esac
3462:
3463: $ac_path_GREP_found && break 3
3464: done
3465: done
3466: done
3467: IFS=$as_save_IFS
3468: if test -z "$ac_cv_path_GREP"; then
3469: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3470: fi
3471: else
3472: ac_cv_path_GREP=$GREP
3473: fi
3474:
3475: fi
3476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3477: $as_echo "$ac_cv_path_GREP" >&6; }
3478: GREP="$ac_cv_path_GREP"
3479:
3480:
3481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3482: $as_echo_n "checking for egrep... " >&6; }
3483: if ${ac_cv_path_EGREP+:} false; then :
3484: $as_echo_n "(cached) " >&6
3485: else
3486: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3487: then ac_cv_path_EGREP="$GREP -E"
3488: else
3489: if test -z "$EGREP"; then
3490: ac_path_EGREP_found=false
3491: # Loop through the user's path and test for each of PROGNAME-LIST
3492: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3494: do
3495: IFS=$as_save_IFS
3496: test -z "$as_dir" && as_dir=.
3497: for ac_prog in egrep; do
3498: for ac_exec_ext in '' $ac_executable_extensions; do
3499: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3500: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3501: # Check for GNU ac_path_EGREP and select it if it is found.
3502: # Check for GNU $ac_path_EGREP
3503: case `"$ac_path_EGREP" --version 2>&1` in
3504: *GNU*)
3505: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3506: *)
3507: ac_count=0
3508: $as_echo_n 0123456789 >"conftest.in"
3509: while :
3510: do
3511: cat "conftest.in" "conftest.in" >"conftest.tmp"
3512: mv "conftest.tmp" "conftest.in"
3513: cp "conftest.in" "conftest.nl"
3514: $as_echo 'EGREP' >> "conftest.nl"
3515: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3516: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3517: as_fn_arith $ac_count + 1 && ac_count=$as_val
3518: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3519: # Best one so far, save it but keep looking for a better one
3520: ac_cv_path_EGREP="$ac_path_EGREP"
3521: ac_path_EGREP_max=$ac_count
3522: fi
3523: # 10*(2^10) chars as input seems more than enough
3524: test $ac_count -gt 10 && break
3525: done
3526: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3527: esac
3528:
3529: $ac_path_EGREP_found && break 3
3530: done
3531: done
3532: done
3533: IFS=$as_save_IFS
3534: if test -z "$ac_cv_path_EGREP"; then
3535: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3536: fi
3537: else
3538: ac_cv_path_EGREP=$EGREP
3539: fi
3540:
3541: fi
3542: fi
3543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3544: $as_echo "$ac_cv_path_EGREP" >&6; }
3545: EGREP="$ac_cv_path_EGREP"
3546:
3547:
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3549: $as_echo_n "checking for ANSI C header files... " >&6; }
3550: if ${ac_cv_header_stdc+:} false; then :
3551: $as_echo_n "(cached) " >&6
3552: else
3553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554: /* end confdefs.h. */
3555: #include <stdlib.h>
3556: #include <stdarg.h>
3557: #include <string.h>
3558: #include <float.h>
3559:
3560: int
3561: main ()
3562: {
3563:
3564: ;
3565: return 0;
3566: }
3567: _ACEOF
3568: if ac_fn_c_try_compile "$LINENO"; then :
3569: ac_cv_header_stdc=yes
3570: else
3571: ac_cv_header_stdc=no
3572: fi
3573: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574:
3575: if test $ac_cv_header_stdc = yes; then
3576: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578: /* end confdefs.h. */
3579: #include <string.h>
3580:
3581: _ACEOF
3582: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583: $EGREP "memchr" >/dev/null 2>&1; then :
3584:
3585: else
3586: ac_cv_header_stdc=no
3587: fi
3588: rm -f conftest*
3589:
3590: fi
3591:
3592: if test $ac_cv_header_stdc = yes; then
3593: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3594: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595: /* end confdefs.h. */
3596: #include <stdlib.h>
3597:
3598: _ACEOF
3599: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600: $EGREP "free" >/dev/null 2>&1; then :
3601:
3602: else
3603: ac_cv_header_stdc=no
3604: fi
3605: rm -f conftest*
3606:
3607: fi
3608:
3609: if test $ac_cv_header_stdc = yes; then
3610: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3611: if test "$cross_compiling" = yes; then :
3612: :
3613: else
3614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615: /* end confdefs.h. */
3616: #include <ctype.h>
3617: #include <stdlib.h>
3618: #if ((' ' & 0x0FF) == 0x020)
3619: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3620: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3621: #else
3622: # define ISLOWER(c) \
3623: (('a' <= (c) && (c) <= 'i') \
3624: || ('j' <= (c) && (c) <= 'r') \
3625: || ('s' <= (c) && (c) <= 'z'))
3626: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3627: #endif
3628:
3629: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3630: int
3631: main ()
3632: {
3633: int i;
3634: for (i = 0; i < 256; i++)
3635: if (XOR (islower (i), ISLOWER (i))
3636: || toupper (i) != TOUPPER (i))
3637: return 2;
3638: return 0;
3639: }
3640: _ACEOF
3641: if ac_fn_c_try_run "$LINENO"; then :
3642:
3643: else
3644: ac_cv_header_stdc=no
3645: fi
3646: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3647: conftest.$ac_objext conftest.beam conftest.$ac_ext
3648: fi
3649:
3650: fi
3651: fi
3652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3653: $as_echo "$ac_cv_header_stdc" >&6; }
3654: if test $ac_cv_header_stdc = yes; then
3655:
3656: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3657:
3658: fi
3659:
3660: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3661: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3662: inttypes.h stdint.h unistd.h
3663: do :
3664: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3665: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3666: "
3667: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3668: cat >>confdefs.h <<_ACEOF
3669: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3670: _ACEOF
3671:
3672: fi
3673:
3674: done
3675:
3676:
3677: for ac_header in fcntl.h stdlib.h string.h sys/socket.h unistd.h
3678: do :
3679: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3680: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3681: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3682: cat >>confdefs.h <<_ACEOF
3683: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3684: _ACEOF
3685:
3686: fi
3687:
3688: done
3689:
3690:
3691: # Checks for typedefs, structures, and compiler characteristics.
3692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3693: $as_echo_n "checking for inline... " >&6; }
3694: if ${ac_cv_c_inline+:} false; then :
3695: $as_echo_n "(cached) " >&6
3696: else
3697: ac_cv_c_inline=no
3698: for ac_kw in inline __inline__ __inline; do
3699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700: /* end confdefs.h. */
3701: #ifndef __cplusplus
3702: typedef int foo_t;
3703: static $ac_kw foo_t static_foo () {return 0; }
3704: $ac_kw foo_t foo () {return 0; }
3705: #endif
3706:
3707: _ACEOF
3708: if ac_fn_c_try_compile "$LINENO"; then :
3709: ac_cv_c_inline=$ac_kw
3710: fi
3711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712: test "$ac_cv_c_inline" != no && break
3713: done
3714:
3715: fi
3716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3717: $as_echo "$ac_cv_c_inline" >&6; }
3718:
3719: case $ac_cv_c_inline in
3720: inline | yes) ;;
3721: *)
3722: case $ac_cv_c_inline in
3723: no) ac_val=;;
3724: *) ac_val=$ac_cv_c_inline;;
3725: esac
3726: cat >>confdefs.h <<_ACEOF
3727: #ifndef __cplusplus
3728: #define inline $ac_val
3729: #endif
3730: _ACEOF
3731: ;;
3732: esac
3733:
3734: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3735: if test "x$ac_cv_type_size_t" = xyes; then :
3736:
3737: else
3738:
3739: cat >>confdefs.h <<_ACEOF
3740: #define size_t unsigned int
3741: _ACEOF
3742:
3743: fi
3744:
3745:
3746: # Checks for library functions.
3747: for ac_header in stdlib.h
3748: do :
3749: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3750: if test "x$ac_cv_header_stdlib_h" = xyes; then :
3751: cat >>confdefs.h <<_ACEOF
3752: #define HAVE_STDLIB_H 1
3753: _ACEOF
3754:
3755: fi
3756:
3757: done
3758:
3759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
3760: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
3761: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
3762: $as_echo_n "(cached) " >&6
3763: else
3764: if test "$cross_compiling" = yes; then :
3765: ac_cv_func_malloc_0_nonnull=no
3766: else
3767: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768: /* end confdefs.h. */
3769: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3770: # include <stdlib.h>
3771: #else
3772: char *malloc ();
3773: #endif
3774:
3775: int
3776: main ()
3777: {
3778: return ! malloc (0);
3779: ;
3780: return 0;
3781: }
3782: _ACEOF
3783: if ac_fn_c_try_run "$LINENO"; then :
3784: ac_cv_func_malloc_0_nonnull=yes
3785: else
3786: ac_cv_func_malloc_0_nonnull=no
3787: fi
3788: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3789: conftest.$ac_objext conftest.beam conftest.$ac_ext
3790: fi
3791:
3792: fi
3793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
3794: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
3795: if test $ac_cv_func_malloc_0_nonnull = yes; then :
3796:
3797: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
3798:
3799: else
3800: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
3801:
3802: case " $LIBOBJS " in
3803: *" malloc.$ac_objext "* ) ;;
3804: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3805: ;;
3806: esac
3807:
3808:
3809: $as_echo "#define malloc rpl_malloc" >>confdefs.h
3810:
3811: fi
3812:
3813:
3814: for ac_header in stdlib.h
3815: do :
3816: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3817: if test "x$ac_cv_header_stdlib_h" = xyes; then :
3818: cat >>confdefs.h <<_ACEOF
3819: #define HAVE_STDLIB_H 1
3820: _ACEOF
3821:
3822: fi
3823:
3824: done
3825:
3826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
3827: $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
3828: if ${ac_cv_func_realloc_0_nonnull+:} false; then :
3829: $as_echo_n "(cached) " >&6
3830: else
3831: if test "$cross_compiling" = yes; then :
3832: ac_cv_func_realloc_0_nonnull=no
3833: else
3834: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835: /* end confdefs.h. */
3836: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3837: # include <stdlib.h>
3838: #else
3839: char *realloc ();
3840: #endif
3841:
3842: int
3843: main ()
3844: {
3845: return ! realloc (0, 0);
3846: ;
3847: return 0;
3848: }
3849: _ACEOF
3850: if ac_fn_c_try_run "$LINENO"; then :
3851: ac_cv_func_realloc_0_nonnull=yes
3852: else
3853: ac_cv_func_realloc_0_nonnull=no
3854: fi
3855: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3856: conftest.$ac_objext conftest.beam conftest.$ac_ext
3857: fi
3858:
3859: fi
3860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
3861: $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
3862: if test $ac_cv_func_realloc_0_nonnull = yes; then :
3863:
3864: $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
3865:
3866: else
3867: $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
3868:
3869: case " $LIBOBJS " in
3870: *" realloc.$ac_objext "* ) ;;
3871: *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
3872: ;;
3873: esac
3874:
3875:
3876: $as_echo "#define realloc rpl_realloc" >>confdefs.h
3877:
3878: fi
3879:
3880:
3881: for ac_func in memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol
3882: do :
3883: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3884: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3885: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3886: cat >>confdefs.h <<_ACEOF
3887: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3888: _ACEOF
3889:
3890: fi
3891: done
3892:
3893:
3894: DEBUG=no
3895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
3896: $as_echo_n "checking Debug Build... " >&6; }
3897: # Check whether --enable-debug was given.
3898: if test "${enable_debug+set}" = set; then :
3899: enableval=$enable_debug; DEBUG=$enableval
3900: case "$enableval" in
3901: yes)
3902:
3903: $as_echo "#define __DEBUG /**/" >>confdefs.h
3904:
3905: CFLAGS="-g ${CFLAGS}"
3906: ;;
3907: *)
3908:
3909: $as_echo "#define NDEBUG /**/" >>confdefs.h
3910:
3911: ;;
3912: esac
3913: fi
3914:
3915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
3916: $as_echo "$DEBUG" >&6; }
3917:
3918:
3919: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"
3920:
3921: cat >confcache <<\_ACEOF
3922: # This file is a shell script that caches the results of configure
3923: # tests run on this system so they can be shared between configure
3924: # scripts and configure runs, see configure's option --config-cache.
3925: # It is not useful on other systems. If it contains results you don't
3926: # want to keep, you may remove or edit it.
3927: #
3928: # config.status only pays attention to the cache file if you give it
3929: # the --recheck option to rerun configure.
3930: #
3931: # `ac_cv_env_foo' variables (set or unset) will be overridden when
3932: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3933: # following values.
3934:
3935: _ACEOF
3936:
3937: # The following way of writing the cache mishandles newlines in values,
3938: # but we know of no workaround that is simple, portable, and efficient.
3939: # So, we kill variables containing newlines.
3940: # Ultrix sh set writes to stderr and can't be redirected directly,
3941: # and sets the high bit in the cache file unless we assign to the vars.
3942: (
3943: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3944: eval ac_val=\$$ac_var
3945: case $ac_val in #(
3946: *${as_nl}*)
3947: case $ac_var in #(
3948: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3949: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3950: esac
3951: case $ac_var in #(
3952: _ | IFS | as_nl) ;; #(
3953: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3954: *) { eval $ac_var=; unset $ac_var;} ;;
3955: esac ;;
3956: esac
3957: done
3958:
3959: (set) 2>&1 |
3960: case $as_nl`(ac_space=' '; set) 2>&1` in #(
3961: *${as_nl}ac_space=\ *)
3962: # `set' does not quote correctly, so add quotes: double-quote
3963: # substitution turns \\\\ into \\, and sed turns \\ into \.
3964: sed -n \
3965: "s/'/'\\\\''/g;
3966: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3967: ;; #(
3968: *)
3969: # `set' quotes correctly as required by POSIX, so do not add quotes.
3970: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3971: ;;
3972: esac |
3973: sort
3974: ) |
3975: sed '
3976: /^ac_cv_env_/b end
3977: t clear
3978: :clear
3979: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3980: t end
3981: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3982: :end' >>confcache
3983: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3984: if test -w "$cache_file"; then
3985: if test "x$cache_file" != "x/dev/null"; then
3986: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3987: $as_echo "$as_me: updating cache $cache_file" >&6;}
3988: if test ! -f "$cache_file" || test -h "$cache_file"; then
3989: cat confcache >"$cache_file"
3990: else
3991: case $cache_file in #(
3992: */* | ?:*)
3993: mv -f confcache "$cache_file"$$ &&
3994: mv -f "$cache_file"$$ "$cache_file" ;; #(
3995: *)
3996: mv -f confcache "$cache_file" ;;
3997: esac
3998: fi
3999: fi
4000: else
4001: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4002: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4003: fi
4004: fi
4005: rm -f confcache
4006:
4007: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4008: # Let make expand exec_prefix.
4009: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4010:
4011: DEFS=-DHAVE_CONFIG_H
4012:
4013: ac_libobjs=
4014: ac_ltlibobjs=
4015: U=
4016: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4017: # 1. Remove the extension, and $U if already installed.
4018: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4019: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4020: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4021: # will be set to the directory where LIBOBJS objects are built.
4022: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4023: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4024: done
4025: LIBOBJS=$ac_libobjs
4026:
4027: LTLIBOBJS=$ac_ltlibobjs
4028:
4029:
4030:
4031: : "${CONFIG_STATUS=./config.status}"
4032: ac_write_fail=0
4033: ac_clean_files_save=$ac_clean_files
4034: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4035: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4036: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4037: as_write_fail=0
4038: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4039: #! $SHELL
4040: # Generated by $as_me.
4041: # Run this file to recreate the current configuration.
4042: # Compiler output produced by configure, useful for debugging
4043: # configure, is in config.log if it exists.
4044:
4045: debug=false
4046: ac_cs_recheck=false
4047: ac_cs_silent=false
4048:
4049: SHELL=\${CONFIG_SHELL-$SHELL}
4050: export SHELL
4051: _ASEOF
4052: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4053: ## -------------------- ##
4054: ## M4sh Initialization. ##
4055: ## -------------------- ##
4056:
4057: # Be more Bourne compatible
4058: DUALCASE=1; export DUALCASE # for MKS sh
4059: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4060: emulate sh
4061: NULLCMD=:
4062: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4063: # is contrary to our usage. Disable this feature.
4064: alias -g '${1+"$@"}'='"$@"'
4065: setopt NO_GLOB_SUBST
4066: else
4067: case `(set -o) 2>/dev/null` in #(
4068: *posix*) :
4069: set -o posix ;; #(
4070: *) :
4071: ;;
4072: esac
4073: fi
4074:
4075:
4076: as_nl='
4077: '
4078: export as_nl
4079: # Printing a long string crashes Solaris 7 /usr/bin/printf.
4080: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4081: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4082: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4083: # Prefer a ksh shell builtin over an external printf program on Solaris,
4084: # but without wasting forks for bash or zsh.
4085: if test -z "$BASH_VERSION$ZSH_VERSION" \
4086: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4087: as_echo='print -r --'
4088: as_echo_n='print -rn --'
4089: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4090: as_echo='printf %s\n'
4091: as_echo_n='printf %s'
4092: else
4093: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4094: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4095: as_echo_n='/usr/ucb/echo -n'
4096: else
4097: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4098: as_echo_n_body='eval
4099: arg=$1;
4100: case $arg in #(
4101: *"$as_nl"*)
4102: expr "X$arg" : "X\\(.*\\)$as_nl";
4103: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4104: esac;
4105: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4106: '
4107: export as_echo_n_body
4108: as_echo_n='sh -c $as_echo_n_body as_echo'
4109: fi
4110: export as_echo_body
4111: as_echo='sh -c $as_echo_body as_echo'
4112: fi
4113:
4114: # The user is always right.
4115: if test "${PATH_SEPARATOR+set}" != set; then
4116: PATH_SEPARATOR=:
4117: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4118: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4119: PATH_SEPARATOR=';'
4120: }
4121: fi
4122:
4123:
4124: # IFS
4125: # We need space, tab and new line, in precisely that order. Quoting is
4126: # there to prevent editors from complaining about space-tab.
4127: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4128: # splitting by setting IFS to empty value.)
4129: IFS=" "" $as_nl"
4130:
4131: # Find who we are. Look in the path if we contain no directory separator.
4132: as_myself=
4133: case $0 in #((
4134: *[\\/]* ) as_myself=$0 ;;
4135: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136: for as_dir in $PATH
4137: do
4138: IFS=$as_save_IFS
4139: test -z "$as_dir" && as_dir=.
4140: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4141: done
4142: IFS=$as_save_IFS
4143:
4144: ;;
4145: esac
4146: # We did not find ourselves, most probably we were run as `sh COMMAND'
4147: # in which case we are not to be found in the path.
4148: if test "x$as_myself" = x; then
4149: as_myself=$0
4150: fi
4151: if test ! -f "$as_myself"; then
4152: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4153: exit 1
4154: fi
4155:
4156: # Unset variables that we do not need and which cause bugs (e.g. in
4157: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4158: # suppresses any "Segmentation fault" message there. '((' could
4159: # trigger a bug in pdksh 5.2.14.
4160: for as_var in BASH_ENV ENV MAIL MAILPATH
4161: do eval test x\${$as_var+set} = xset \
4162: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4163: done
4164: PS1='$ '
4165: PS2='> '
4166: PS4='+ '
4167:
4168: # NLS nuisances.
4169: LC_ALL=C
4170: export LC_ALL
4171: LANGUAGE=C
4172: export LANGUAGE
4173:
4174: # CDPATH.
4175: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4176:
4177:
4178: # as_fn_error STATUS ERROR [LINENO LOG_FD]
4179: # ----------------------------------------
4180: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4181: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4182: # script with STATUS, using 1 if that was 0.
4183: as_fn_error ()
4184: {
4185: as_status=$1; test $as_status -eq 0 && as_status=1
4186: if test "$4"; then
4187: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4188: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4189: fi
4190: $as_echo "$as_me: error: $2" >&2
4191: as_fn_exit $as_status
4192: } # as_fn_error
4193:
4194:
4195: # as_fn_set_status STATUS
4196: # -----------------------
4197: # Set $? to STATUS, without forking.
4198: as_fn_set_status ()
4199: {
4200: return $1
4201: } # as_fn_set_status
4202:
4203: # as_fn_exit STATUS
4204: # -----------------
4205: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4206: as_fn_exit ()
4207: {
4208: set +e
4209: as_fn_set_status $1
4210: exit $1
4211: } # as_fn_exit
4212:
4213: # as_fn_unset VAR
4214: # ---------------
4215: # Portably unset VAR.
4216: as_fn_unset ()
4217: {
4218: { eval $1=; unset $1;}
4219: }
4220: as_unset=as_fn_unset
4221: # as_fn_append VAR VALUE
4222: # ----------------------
4223: # Append the text in VALUE to the end of the definition contained in VAR. Take
4224: # advantage of any shell optimizations that allow amortized linear growth over
4225: # repeated appends, instead of the typical quadratic growth present in naive
4226: # implementations.
4227: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4228: eval 'as_fn_append ()
4229: {
4230: eval $1+=\$2
4231: }'
4232: else
4233: as_fn_append ()
4234: {
4235: eval $1=\$$1\$2
4236: }
4237: fi # as_fn_append
4238:
4239: # as_fn_arith ARG...
4240: # ------------------
4241: # Perform arithmetic evaluation on the ARGs, and store the result in the
4242: # global $as_val. Take advantage of shells that can avoid forks. The arguments
4243: # must be portable across $(()) and expr.
4244: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4245: eval 'as_fn_arith ()
4246: {
4247: as_val=$(( $* ))
4248: }'
4249: else
4250: as_fn_arith ()
4251: {
4252: as_val=`expr "$@" || test $? -eq 1`
4253: }
4254: fi # as_fn_arith
4255:
4256:
4257: if expr a : '\(a\)' >/dev/null 2>&1 &&
4258: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4259: as_expr=expr
4260: else
4261: as_expr=false
4262: fi
4263:
4264: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4265: as_basename=basename
4266: else
4267: as_basename=false
4268: fi
4269:
4270: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4271: as_dirname=dirname
4272: else
4273: as_dirname=false
4274: fi
4275:
4276: as_me=`$as_basename -- "$0" ||
4277: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4278: X"$0" : 'X\(//\)$' \| \
4279: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4280: $as_echo X/"$0" |
4281: sed '/^.*\/\([^/][^/]*\)\/*$/{
4282: s//\1/
4283: q
4284: }
4285: /^X\/\(\/\/\)$/{
4286: s//\1/
4287: q
4288: }
4289: /^X\/\(\/\).*/{
4290: s//\1/
4291: q
4292: }
4293: s/.*/./; q'`
4294:
4295: # Avoid depending upon Character Ranges.
4296: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4297: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4298: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4299: as_cr_digits='0123456789'
4300: as_cr_alnum=$as_cr_Letters$as_cr_digits
4301:
4302: ECHO_C= ECHO_N= ECHO_T=
4303: case `echo -n x` in #(((((
4304: -n*)
4305: case `echo 'xy\c'` in
4306: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4307: xy) ECHO_C='\c';;
4308: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4309: ECHO_T=' ';;
4310: esac;;
4311: *)
4312: ECHO_N='-n';;
4313: esac
4314:
4315: rm -f conf$$ conf$$.exe conf$$.file
4316: if test -d conf$$.dir; then
4317: rm -f conf$$.dir/conf$$.file
4318: else
4319: rm -f conf$$.dir
4320: mkdir conf$$.dir 2>/dev/null
4321: fi
4322: if (echo >conf$$.file) 2>/dev/null; then
4323: if ln -s conf$$.file conf$$ 2>/dev/null; then
4324: as_ln_s='ln -s'
4325: # ... but there are two gotchas:
4326: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4327: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4328: # In both cases, we have to default to `cp -p'.
4329: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4330: as_ln_s='cp -p'
4331: elif ln conf$$.file conf$$ 2>/dev/null; then
4332: as_ln_s=ln
4333: else
4334: as_ln_s='cp -p'
4335: fi
4336: else
4337: as_ln_s='cp -p'
4338: fi
4339: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4340: rmdir conf$$.dir 2>/dev/null
4341:
4342:
4343: # as_fn_mkdir_p
4344: # -------------
4345: # Create "$as_dir" as a directory, including parents if necessary.
4346: as_fn_mkdir_p ()
4347: {
4348:
4349: case $as_dir in #(
4350: -*) as_dir=./$as_dir;;
4351: esac
4352: test -d "$as_dir" || eval $as_mkdir_p || {
4353: as_dirs=
4354: while :; do
4355: case $as_dir in #(
4356: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4357: *) as_qdir=$as_dir;;
4358: esac
4359: as_dirs="'$as_qdir' $as_dirs"
4360: as_dir=`$as_dirname -- "$as_dir" ||
4361: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4362: X"$as_dir" : 'X\(//\)[^/]' \| \
4363: X"$as_dir" : 'X\(//\)$' \| \
4364: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4365: $as_echo X"$as_dir" |
4366: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4367: s//\1/
4368: q
4369: }
4370: /^X\(\/\/\)[^/].*/{
4371: s//\1/
4372: q
4373: }
4374: /^X\(\/\/\)$/{
4375: s//\1/
4376: q
4377: }
4378: /^X\(\/\).*/{
4379: s//\1/
4380: q
4381: }
4382: s/.*/./; q'`
4383: test -d "$as_dir" && break
4384: done
4385: test -z "$as_dirs" || eval "mkdir $as_dirs"
4386: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4387:
4388:
4389: } # as_fn_mkdir_p
4390: if mkdir -p . 2>/dev/null; then
4391: as_mkdir_p='mkdir -p "$as_dir"'
4392: else
4393: test -d ./-p && rmdir ./-p
4394: as_mkdir_p=false
4395: fi
4396:
4397: if test -x / >/dev/null 2>&1; then
4398: as_test_x='test -x'
4399: else
4400: if ls -dL / >/dev/null 2>&1; then
4401: as_ls_L_option=L
4402: else
4403: as_ls_L_option=
4404: fi
4405: as_test_x='
4406: eval sh -c '\''
4407: if test -d "$1"; then
4408: test -d "$1/.";
4409: else
4410: case $1 in #(
4411: -*)set "./$1";;
4412: esac;
4413: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4414: ???[sx]*):;;*)false;;esac;fi
4415: '\'' sh
4416: '
4417: fi
4418: as_executable_p=$as_test_x
4419:
4420: # Sed expression to map a string onto a valid CPP name.
4421: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4422:
4423: # Sed expression to map a string onto a valid variable name.
4424: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4425:
4426:
4427: exec 6>&1
4428: ## ----------------------------------- ##
4429: ## Main body of $CONFIG_STATUS script. ##
4430: ## ----------------------------------- ##
4431: _ASEOF
4432: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4433:
4434: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4435: # Save the log message, to keep $0 and so on meaningful, and to
4436: # report actual input values of CONFIG_FILES etc. instead of their
4437: # values after options handling.
4438: ac_log="
1.3 ! misho 4439: This file was extended by libaitwww $as_me 1.2, which was
1.1 misho 4440: generated by GNU Autoconf 2.68. Invocation command line was
4441:
4442: CONFIG_FILES = $CONFIG_FILES
4443: CONFIG_HEADERS = $CONFIG_HEADERS
4444: CONFIG_LINKS = $CONFIG_LINKS
4445: CONFIG_COMMANDS = $CONFIG_COMMANDS
4446: $ $0 $@
4447:
4448: on `(hostname || uname -n) 2>/dev/null | sed 1q`
4449: "
4450:
4451: _ACEOF
4452:
4453: case $ac_config_files in *"
4454: "*) set x $ac_config_files; shift; ac_config_files=$*;;
4455: esac
4456:
4457: case $ac_config_headers in *"
4458: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4459: esac
4460:
4461:
4462: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4463: # Files that config.status was made for.
4464: config_files="$ac_config_files"
4465: config_headers="$ac_config_headers"
4466:
4467: _ACEOF
4468:
4469: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4470: ac_cs_usage="\
4471: \`$as_me' instantiates files and other configuration actions
4472: from templates according to the current configuration. Unless the files
4473: and actions are specified as TAGs, all are instantiated by default.
4474:
4475: Usage: $0 [OPTION]... [TAG]...
4476:
4477: -h, --help print this help, then exit
4478: -V, --version print version number and configuration settings, then exit
4479: --config print configuration, then exit
4480: -q, --quiet, --silent
4481: do not print progress messages
4482: -d, --debug don't remove temporary files
4483: --recheck update $as_me by reconfiguring in the same conditions
4484: --file=FILE[:TEMPLATE]
4485: instantiate the configuration file FILE
4486: --header=FILE[:TEMPLATE]
4487: instantiate the configuration header FILE
4488:
4489: Configuration files:
4490: $config_files
4491:
4492: Configuration headers:
4493: $config_headers
4494:
4495: Report bugs to <misho@elwix.org>."
4496:
4497: _ACEOF
4498: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4499: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4500: ac_cs_version="\\
1.3 ! misho 4501: libaitwww config.status 1.2
1.1 misho 4502: configured by $0, generated by GNU Autoconf 2.68,
4503: with options \\"\$ac_cs_config\\"
4504:
4505: Copyright (C) 2010 Free Software Foundation, Inc.
4506: This config.status script is free software; the Free Software Foundation
4507: gives unlimited permission to copy, distribute and modify it."
4508:
4509: ac_pwd='$ac_pwd'
4510: srcdir='$srcdir'
4511: INSTALL='$INSTALL'
4512: test -n "\$AWK" || AWK=awk
4513: _ACEOF
4514:
4515: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4516: # The default lists apply if the user does not specify any file.
4517: ac_need_defaults=:
4518: while test $# != 0
4519: do
4520: case $1 in
4521: --*=?*)
4522: ac_option=`expr "X$1" : 'X\([^=]*\)='`
4523: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4524: ac_shift=:
4525: ;;
4526: --*=)
4527: ac_option=`expr "X$1" : 'X\([^=]*\)='`
4528: ac_optarg=
4529: ac_shift=:
4530: ;;
4531: *)
4532: ac_option=$1
4533: ac_optarg=$2
4534: ac_shift=shift
4535: ;;
4536: esac
4537:
4538: case $ac_option in
4539: # Handling of the options.
4540: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4541: ac_cs_recheck=: ;;
4542: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4543: $as_echo "$ac_cs_version"; exit ;;
4544: --config | --confi | --conf | --con | --co | --c )
4545: $as_echo "$ac_cs_config"; exit ;;
4546: --debug | --debu | --deb | --de | --d | -d )
4547: debug=: ;;
4548: --file | --fil | --fi | --f )
4549: $ac_shift
4550: case $ac_optarg in
4551: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4552: '') as_fn_error $? "missing file argument" ;;
4553: esac
4554: as_fn_append CONFIG_FILES " '$ac_optarg'"
4555: ac_need_defaults=false;;
4556: --header | --heade | --head | --hea )
4557: $ac_shift
4558: case $ac_optarg in
4559: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4560: esac
4561: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4562: ac_need_defaults=false;;
4563: --he | --h)
4564: # Conflict between --help and --header
4565: as_fn_error $? "ambiguous option: \`$1'
4566: Try \`$0 --help' for more information.";;
4567: --help | --hel | -h )
4568: $as_echo "$ac_cs_usage"; exit ;;
4569: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4570: | -silent | --silent | --silen | --sile | --sil | --si | --s)
4571: ac_cs_silent=: ;;
4572:
4573: # This is an error.
4574: -*) as_fn_error $? "unrecognized option: \`$1'
4575: Try \`$0 --help' for more information." ;;
4576:
4577: *) as_fn_append ac_config_targets " $1"
4578: ac_need_defaults=false ;;
4579:
4580: esac
4581: shift
4582: done
4583:
4584: ac_configure_extra_args=
4585:
4586: if $ac_cs_silent; then
4587: exec 6>/dev/null
4588: ac_configure_extra_args="$ac_configure_extra_args --silent"
4589: fi
4590:
4591: _ACEOF
4592: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4593: if \$ac_cs_recheck; then
4594: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4595: shift
4596: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4597: CONFIG_SHELL='$SHELL'
4598: export CONFIG_SHELL
4599: exec "\$@"
4600: fi
4601:
4602: _ACEOF
4603: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4604: exec 5>>config.log
4605: {
4606: echo
4607: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4608: ## Running $as_me. ##
4609: _ASBOX
4610: $as_echo "$ac_log"
4611: } >&5
4612:
4613: _ACEOF
4614: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4615: _ACEOF
4616:
4617: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4618:
4619: # Handling of arguments.
4620: for ac_config_target in $ac_config_targets
4621: do
4622: case $ac_config_target in
4623: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
4624: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4625: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
4626: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4627: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4628:
4629: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4630: esac
4631: done
4632:
4633:
4634: # If the user did not use the arguments to specify the items to instantiate,
4635: # then the envvar interface is used. Set only those that are not.
4636: # We use the long form for the default assignment because of an extremely
4637: # bizarre bug on SunOS 4.1.3.
4638: if $ac_need_defaults; then
4639: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4640: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4641: fi
4642:
4643: # Have a temporary directory for convenience. Make it in the build tree
4644: # simply because there is no reason against having it here, and in addition,
4645: # creating and moving files from /tmp can sometimes cause problems.
4646: # Hook for its removal unless debugging.
4647: # Note that there is a small window in which the directory will not be cleaned:
4648: # after its creation but before its name has been assigned to `$tmp'.
4649: $debug ||
4650: {
4651: tmp= ac_tmp=
4652: trap 'exit_status=$?
4653: : "${ac_tmp:=$tmp}"
4654: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4655: ' 0
4656: trap 'as_fn_exit 1' 1 2 13 15
4657: }
4658: # Create a (secure) tmp directory for tmp files.
4659:
4660: {
4661: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4662: test -d "$tmp"
4663: } ||
4664: {
4665: tmp=./conf$$-$RANDOM
4666: (umask 077 && mkdir "$tmp")
4667: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4668: ac_tmp=$tmp
4669:
4670: # Set up the scripts for CONFIG_FILES section.
4671: # No need to generate them if there are no CONFIG_FILES.
4672: # This happens for instance with `./config.status config.h'.
4673: if test -n "$CONFIG_FILES"; then
4674:
4675:
4676: ac_cr=`echo X | tr X '\015'`
4677: # On cygwin, bash can eat \r inside `` if the user requested igncr.
4678: # But we know of no other shell where ac_cr would be empty at this
4679: # point, so we can use a bashism as a fallback.
4680: if test "x$ac_cr" = x; then
4681: eval ac_cr=\$\'\\r\'
4682: fi
4683: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4684: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4685: ac_cs_awk_cr='\\r'
4686: else
4687: ac_cs_awk_cr=$ac_cr
4688: fi
4689:
4690: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4691: _ACEOF
4692:
4693:
4694: {
4695: echo "cat >conf$$subs.awk <<_ACEOF" &&
4696: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4697: echo "_ACEOF"
4698: } >conf$$subs.sh ||
4699: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4700: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4701: ac_delim='%!_!# '
4702: for ac_last_try in false false false false false :; do
4703: . ./conf$$subs.sh ||
4704: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4705:
4706: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4707: if test $ac_delim_n = $ac_delim_num; then
4708: break
4709: elif $ac_last_try; then
4710: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4711: else
4712: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4713: fi
4714: done
4715: rm -f conf$$subs.sh
4716:
4717: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4718: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4719: _ACEOF
4720: sed -n '
4721: h
4722: s/^/S["/; s/!.*/"]=/
4723: p
4724: g
4725: s/^[^!]*!//
4726: :repl
4727: t repl
4728: s/'"$ac_delim"'$//
4729: t delim
4730: :nl
4731: h
4732: s/\(.\{148\}\)..*/\1/
4733: t more1
4734: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4735: p
4736: n
4737: b repl
4738: :more1
4739: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4740: p
4741: g
4742: s/.\{148\}//
4743: t nl
4744: :delim
4745: h
4746: s/\(.\{148\}\)..*/\1/
4747: t more2
4748: s/["\\]/\\&/g; s/^/"/; s/$/"/
4749: p
4750: b
4751: :more2
4752: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4753: p
4754: g
4755: s/.\{148\}//
4756: t delim
4757: ' <conf$$subs.awk | sed '
4758: /^[^""]/{
4759: N
4760: s/\n//
4761: }
4762: ' >>$CONFIG_STATUS || ac_write_fail=1
4763: rm -f conf$$subs.awk
4764: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4765: _ACAWK
4766: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4767: for (key in S) S_is_set[key] = 1
4768: FS = ""
4769:
4770: }
4771: {
4772: line = $ 0
4773: nfields = split(line, field, "@")
4774: substed = 0
4775: len = length(field[1])
4776: for (i = 2; i < nfields; i++) {
4777: key = field[i]
4778: keylen = length(key)
4779: if (S_is_set[key]) {
4780: value = S[key]
4781: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4782: len += length(value) + length(field[++i])
4783: substed = 1
4784: } else
4785: len += 1 + keylen
4786: }
4787:
4788: print line
4789: }
4790:
4791: _ACAWK
4792: _ACEOF
4793: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4794: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4795: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4796: else
4797: cat
4798: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4799: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4800: _ACEOF
4801:
4802: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4803: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4804: # trailing colons and then remove the whole line if VPATH becomes empty
4805: # (actually we leave an empty line to preserve line numbers).
4806: if test "x$srcdir" = x.; then
4807: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4808: h
4809: s///
4810: s/^/:/
4811: s/[ ]*$/:/
4812: s/:\$(srcdir):/:/g
4813: s/:\${srcdir}:/:/g
4814: s/:@srcdir@:/:/g
4815: s/^:*//
4816: s/:*$//
4817: x
4818: s/\(=[ ]*\).*/\1/
4819: G
4820: s/\n//
4821: s/^[^=]*=[ ]*$//
4822: }'
4823: fi
4824:
4825: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4826: fi # test -n "$CONFIG_FILES"
4827:
4828: # Set up the scripts for CONFIG_HEADERS section.
4829: # No need to generate them if there are no CONFIG_HEADERS.
4830: # This happens for instance with `./config.status Makefile'.
4831: if test -n "$CONFIG_HEADERS"; then
4832: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4833: BEGIN {
4834: _ACEOF
4835:
4836: # Transform confdefs.h into an awk script `defines.awk', embedded as
4837: # here-document in config.status, that substitutes the proper values into
4838: # config.h.in to produce config.h.
4839:
4840: # Create a delimiter string that does not exist in confdefs.h, to ease
4841: # handling of long lines.
4842: ac_delim='%!_!# '
4843: for ac_last_try in false false :; do
4844: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4845: if test -z "$ac_tt"; then
4846: break
4847: elif $ac_last_try; then
4848: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4849: else
4850: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4851: fi
4852: done
4853:
4854: # For the awk script, D is an array of macro values keyed by name,
4855: # likewise P contains macro parameters if any. Preserve backslash
4856: # newline sequences.
4857:
4858: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4859: sed -n '
4860: s/.\{148\}/&'"$ac_delim"'/g
4861: t rset
4862: :rset
4863: s/^[ ]*#[ ]*define[ ][ ]*/ /
4864: t def
4865: d
4866: :def
4867: s/\\$//
4868: t bsnl
4869: s/["\\]/\\&/g
4870: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4871: D["\1"]=" \3"/p
4872: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4873: d
4874: :bsnl
4875: s/["\\]/\\&/g
4876: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4877: D["\1"]=" \3\\\\\\n"\\/p
4878: t cont
4879: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4880: t cont
4881: d
4882: :cont
4883: n
4884: s/.\{148\}/&'"$ac_delim"'/g
4885: t clear
4886: :clear
4887: s/\\$//
4888: t bsnlc
4889: s/["\\]/\\&/g; s/^/"/; s/$/"/p
4890: d
4891: :bsnlc
4892: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4893: b cont
4894: ' <confdefs.h | sed '
4895: s/'"$ac_delim"'/"\\\
4896: "/g' >>$CONFIG_STATUS || ac_write_fail=1
4897:
4898: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4899: for (key in D) D_is_set[key] = 1
4900: FS = ""
4901: }
4902: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4903: line = \$ 0
4904: split(line, arg, " ")
4905: if (arg[1] == "#") {
4906: defundef = arg[2]
4907: mac1 = arg[3]
4908: } else {
4909: defundef = substr(arg[1], 2)
4910: mac1 = arg[2]
4911: }
4912: split(mac1, mac2, "(") #)
4913: macro = mac2[1]
4914: prefix = substr(line, 1, index(line, defundef) - 1)
4915: if (D_is_set[macro]) {
4916: # Preserve the white space surrounding the "#".
4917: print prefix "define", macro P[macro] D[macro]
4918: next
4919: } else {
4920: # Replace #undef with comments. This is necessary, for example,
4921: # in the case of _POSIX_SOURCE, which is predefined and required
4922: # on some systems where configure will not decide to define it.
4923: if (defundef == "undef") {
4924: print "/*", prefix defundef, macro, "*/"
4925: next
4926: }
4927: }
4928: }
4929: { print }
4930: _ACAWK
4931: _ACEOF
4932: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4933: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4934: fi # test -n "$CONFIG_HEADERS"
4935:
4936:
4937: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4938: shift
4939: for ac_tag
4940: do
4941: case $ac_tag in
4942: :[FHLC]) ac_mode=$ac_tag; continue;;
4943: esac
4944: case $ac_mode$ac_tag in
4945: :[FHL]*:*);;
4946: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4947: :[FH]-) ac_tag=-:-;;
4948: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4949: esac
4950: ac_save_IFS=$IFS
4951: IFS=:
4952: set x $ac_tag
4953: IFS=$ac_save_IFS
4954: shift
4955: ac_file=$1
4956: shift
4957:
4958: case $ac_mode in
4959: :L) ac_source=$1;;
4960: :[FH])
4961: ac_file_inputs=
4962: for ac_f
4963: do
4964: case $ac_f in
4965: -) ac_f="$ac_tmp/stdin";;
4966: *) # Look for the file first in the build tree, then in the source tree
4967: # (if the path is not absolute). The absolute path cannot be DOS-style,
4968: # because $ac_f cannot contain `:'.
4969: test -f "$ac_f" ||
4970: case $ac_f in
4971: [\\/$]*) false;;
4972: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4973: esac ||
4974: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4975: esac
4976: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4977: as_fn_append ac_file_inputs " '$ac_f'"
4978: done
4979:
4980: # Let's still pretend it is `configure' which instantiates (i.e., don't
4981: # use $as_me), people would be surprised to read:
4982: # /* config.h. Generated by config.status. */
4983: configure_input='Generated from '`
4984: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4985: `' by configure.'
4986: if test x"$ac_file" != x-; then
4987: configure_input="$ac_file. $configure_input"
4988: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4989: $as_echo "$as_me: creating $ac_file" >&6;}
4990: fi
4991: # Neutralize special characters interpreted by sed in replacement strings.
4992: case $configure_input in #(
4993: *\&* | *\|* | *\\* )
4994: ac_sed_conf_input=`$as_echo "$configure_input" |
4995: sed 's/[\\\\&|]/\\\\&/g'`;; #(
4996: *) ac_sed_conf_input=$configure_input;;
4997: esac
4998:
4999: case $ac_tag in
5000: *:-:* | *:-) cat >"$ac_tmp/stdin" \
5001: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5002: esac
5003: ;;
5004: esac
5005:
5006: ac_dir=`$as_dirname -- "$ac_file" ||
5007: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5008: X"$ac_file" : 'X\(//\)[^/]' \| \
5009: X"$ac_file" : 'X\(//\)$' \| \
5010: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5011: $as_echo X"$ac_file" |
5012: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5013: s//\1/
5014: q
5015: }
5016: /^X\(\/\/\)[^/].*/{
5017: s//\1/
5018: q
5019: }
5020: /^X\(\/\/\)$/{
5021: s//\1/
5022: q
5023: }
5024: /^X\(\/\).*/{
5025: s//\1/
5026: q
5027: }
5028: s/.*/./; q'`
5029: as_dir="$ac_dir"; as_fn_mkdir_p
5030: ac_builddir=.
5031:
5032: case "$ac_dir" in
5033: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5034: *)
5035: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5036: # A ".." for each directory in $ac_dir_suffix.
5037: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5038: case $ac_top_builddir_sub in
5039: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5040: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5041: esac ;;
5042: esac
5043: ac_abs_top_builddir=$ac_pwd
5044: ac_abs_builddir=$ac_pwd$ac_dir_suffix
5045: # for backward compatibility:
5046: ac_top_builddir=$ac_top_build_prefix
5047:
5048: case $srcdir in
5049: .) # We are building in place.
5050: ac_srcdir=.
5051: ac_top_srcdir=$ac_top_builddir_sub
5052: ac_abs_top_srcdir=$ac_pwd ;;
5053: [\\/]* | ?:[\\/]* ) # Absolute name.
5054: ac_srcdir=$srcdir$ac_dir_suffix;
5055: ac_top_srcdir=$srcdir
5056: ac_abs_top_srcdir=$srcdir ;;
5057: *) # Relative name.
5058: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5059: ac_top_srcdir=$ac_top_build_prefix$srcdir
5060: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5061: esac
5062: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5063:
5064:
5065: case $ac_mode in
5066: :F)
5067: #
5068: # CONFIG_FILE
5069: #
5070:
5071: case $INSTALL in
5072: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5073: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5074: esac
5075: _ACEOF
5076:
5077: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5078: # If the template does not know about datarootdir, expand it.
5079: # FIXME: This hack should be removed a few years after 2.60.
5080: ac_datarootdir_hack=; ac_datarootdir_seen=
5081: ac_sed_dataroot='
5082: /datarootdir/ {
5083: p
5084: q
5085: }
5086: /@datadir@/p
5087: /@docdir@/p
5088: /@infodir@/p
5089: /@localedir@/p
5090: /@mandir@/p'
5091: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5092: *datarootdir*) ac_datarootdir_seen=yes;;
5093: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5094: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5095: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5096: _ACEOF
5097: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5098: ac_datarootdir_hack='
5099: s&@datadir@&$datadir&g
5100: s&@docdir@&$docdir&g
5101: s&@infodir@&$infodir&g
5102: s&@localedir@&$localedir&g
5103: s&@mandir@&$mandir&g
5104: s&\\\${datarootdir}&$datarootdir&g' ;;
5105: esac
5106: _ACEOF
5107:
5108: # Neutralize VPATH when `$srcdir' = `.'.
5109: # Shell code in configure.ac might set extrasub.
5110: # FIXME: do we really want to maintain this feature?
5111: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5112: ac_sed_extra="$ac_vpsub
5113: $extrasub
5114: _ACEOF
5115: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5116: :t
5117: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5118: s|@configure_input@|$ac_sed_conf_input|;t t
5119: s&@top_builddir@&$ac_top_builddir_sub&;t t
5120: s&@top_build_prefix@&$ac_top_build_prefix&;t t
5121: s&@srcdir@&$ac_srcdir&;t t
5122: s&@abs_srcdir@&$ac_abs_srcdir&;t t
5123: s&@top_srcdir@&$ac_top_srcdir&;t t
5124: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5125: s&@builddir@&$ac_builddir&;t t
5126: s&@abs_builddir@&$ac_abs_builddir&;t t
5127: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5128: s&@INSTALL@&$ac_INSTALL&;t t
5129: $ac_datarootdir_hack
5130: "
5131: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5132: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5133:
5134: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5135: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5136: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5137: "$ac_tmp/out"`; test -z "$ac_out"; } &&
5138: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5139: which seems to be undefined. Please make sure it is defined" >&5
5140: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5141: which seems to be undefined. Please make sure it is defined" >&2;}
5142:
5143: rm -f "$ac_tmp/stdin"
5144: case $ac_file in
5145: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5146: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5147: esac \
5148: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5149: ;;
5150: :H)
5151: #
5152: # CONFIG_HEADER
5153: #
5154: if test x"$ac_file" != x-; then
5155: {
5156: $as_echo "/* $configure_input */" \
5157: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5158: } >"$ac_tmp/config.h" \
5159: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5160: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5161: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5162: $as_echo "$as_me: $ac_file is unchanged" >&6;}
5163: else
5164: rm -f "$ac_file"
5165: mv "$ac_tmp/config.h" "$ac_file" \
5166: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5167: fi
5168: else
5169: $as_echo "/* $configure_input */" \
5170: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5171: || as_fn_error $? "could not create -" "$LINENO" 5
5172: fi
5173: ;;
5174:
5175:
5176: esac
5177:
5178: done # for ac_tag
5179:
5180:
5181: as_fn_exit 0
5182: _ACEOF
5183: ac_clean_files=$ac_clean_files_save
5184:
5185: test $ac_write_fail = 0 ||
5186: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5187:
5188:
5189: # configure is writing to config.log, and then calls config.status.
5190: # config.status does its own redirection, appending to config.log.
5191: # Unfortunately, on DOS this fails, as config.log is still kept open
5192: # by configure, so config.status won't be able to write to it; its
5193: # output is simply discarded. So we exec the FD to /dev/null,
5194: # effectively closing config.log, so it can be properly (re)opened and
5195: # appended to by config.status. When coming back to configure, we
5196: # need to make the FD available again.
5197: if test "$no_create" != yes; then
5198: ac_cs_success=:
5199: ac_config_status_args=
5200: test "$silent" = yes &&
5201: ac_config_status_args="$ac_config_status_args --quiet"
5202: exec 5>/dev/null
5203: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5204: exec 5>>config.log
5205: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5206: # would make configure fail if this is the last instruction.
5207: $ac_cs_success || as_fn_exit 1
5208: fi
5209: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5210: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5211: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5212: fi
5213:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>