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