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