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