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