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