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