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