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