Annotation of libelwix/configure, revision 1.80
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.80 ! misho 3: # Generated by GNU Autoconf 2.72 for libelwix 6.12.
1.1 misho 4: #
5: # Report bugs to <misho@elwix.org>.
6: #
7: #
1.71 misho 8: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
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.71 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.71 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.71 misho 34: esac ;;
1.1 misho 35: esac
36: fi
37:
38:
1.71 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.71 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.71 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.71 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.71 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.71 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.71 misho 136: # out after a failed 'exec'.
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.71 misho 143: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
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.71 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.71 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.71 misho 172: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173: then :
1.1 misho 174:
1.71 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.71 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.71 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.71 misho 190: else case e in #(
191: e) as_have_required=no ;;
192: esac
1.1 misho 193: fi
1.71 misho 194: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195: then :
1.1 misho 196:
1.71 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.71 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.71 misho 213: as_shell=$as_dir$as_base
1.1 misho 214: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.71 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.71 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.71 misho 227: IFS=$as_save_IFS
228: if $as_found
229: then :
230:
231: else case e in #(
232: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234: then :
1.70 misho 235: CONFIG_SHELL=$SHELL as_have_required=yes
1.71 misho 236: fi ;;
237: esac
238: fi
1.1 misho 239:
240:
1.71 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.71 misho 259: # out after a failed 'exec'.
260: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.1 misho 261: exit 255
262: fi
263:
1.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 misho 387: else case e in #(
388: e) as_fn_append ()
1.1 misho 389: {
390: eval $1=\$$1\$2
1.71 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.71 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.71 misho 406: else case e in #(
407: e) as_fn_arith ()
1.1 misho 408: {
409: as_val=`expr "$@" || test $? -eq 1`
1.71 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.71 misho 425: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 426: fi
1.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.80 ! misho 606: PACKAGE_VERSION='6.12'
! 607: PACKAGE_STRING='libelwix 6.12'
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.71 misho 614: #include <stddef.h>
615: #ifdef HAVE_STDIO_H
616: # include <stdio.h>
1.1 misho 617: #endif
1.71 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.71 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.71 misho 643: ac_header_c_list=
1.1 misho 644: ac_subst_vars='LTLIBOBJS
1.69 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.69 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.71 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.71 misho 835: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.1 misho 836: ac_useropt_orig=$ac_useropt
1.71 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.71 misho 861: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.1 misho 862: ac_useropt_orig=$ac_useropt
1.71 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.71 misho 1074: as_fn_error $? "invalid package name: '$ac_useropt'"
1.1 misho 1075: ac_useropt_orig=$ac_useropt
1.71 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.71 misho 1090: as_fn_error $? "invalid package name: '$ac_useropt'"
1.1 misho 1091: ac_useropt_orig=$ac_useropt
1.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.80 ! misho 1275: 'configure' configures libelwix 6.12 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.71 misho 1289: -q, --quiet, --silent do not print 'checking ...' messages
1.1 misho 1290: --cache-file=FILE cache test results in FILE [disabled]
1.71 misho 1291: -C, --config-cache alias for '--cache-file=config.cache'
1.1 misho 1292: -n, --no-create do not create output files
1.71 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.71 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.80 ! misho 1342: short | recursive ) echo "Configuration of libelwix 6.12:";;
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.69 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.71 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.71 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.71 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.71 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.71 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.80 ! misho 1436: libelwix configure 6.12
1.71 misho 1437: generated by GNU Autoconf 2.72
1.1 misho 1438:
1.71 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.71 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.71 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.71 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.71 misho 1475: } && test -s conftest.$ac_objext
1476: then :
1.1 misho 1477: ac_retval=0
1.71 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.71 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.71 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.71 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.71 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.71 misho 1518: }
1519: then :
1.1 misho 1520: ac_retval=0
1.71 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.71 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.71 misho 1538: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1.1 misho 1539: # -------------------------------------------------------
1.71 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.71 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
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.71 misho 1556: if ac_fn_c_try_compile "$LINENO"
1557: then :
1558: eval "$3=yes"
1559: else case e in #(
1560: e) eval "$3=no" ;;
1561: esac
1.1 misho 1562: fi
1.71 misho 1563: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1.69 misho 1564: esac
1.1 misho 1565: fi
1566: eval ac_res=\$$3
1.71 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.71 misho 1571: } # ac_fn_c_check_header_compile
1.1 misho 1572:
1.80 ! misho 1573: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
! 1574: # -------------------------------------------
! 1575: # Tests whether TYPE exists after having included INCLUDES, setting cache
! 1576: # variable VAR accordingly.
! 1577: ac_fn_c_check_type ()
! 1578: {
! 1579: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1580: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1581: printf %s "checking for $2... " >&6; }
! 1582: if eval test \${$3+y}
! 1583: then :
! 1584: printf %s "(cached) " >&6
! 1585: else case e in #(
! 1586: e) eval "$3=no"
! 1587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1588: /* end confdefs.h. */
! 1589: $4
! 1590: int
! 1591: main (void)
! 1592: {
! 1593: if (sizeof ($2))
! 1594: return 0;
! 1595: ;
! 1596: return 0;
! 1597: }
! 1598: _ACEOF
! 1599: if ac_fn_c_try_compile "$LINENO"
! 1600: then :
! 1601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1602: /* end confdefs.h. */
! 1603: $4
! 1604: int
! 1605: main (void)
! 1606: {
! 1607: if (sizeof (($2)))
! 1608: return 0;
! 1609: ;
! 1610: return 0;
! 1611: }
! 1612: _ACEOF
! 1613: if ac_fn_c_try_compile "$LINENO"
! 1614: then :
! 1615:
! 1616: else case e in #(
! 1617: e) eval "$3=yes" ;;
! 1618: esac
! 1619: fi
! 1620: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 1621: fi
! 1622: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 1623: esac
! 1624: fi
! 1625: eval ac_res=\$$3
! 1626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1627: printf "%s\n" "$ac_res" >&6; }
! 1628: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1629:
! 1630: } # ac_fn_c_check_type
! 1631:
1.1 misho 1632: # ac_fn_c_try_run LINENO
1633: # ----------------------
1.71 misho 1634: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1635: # executables *can* be run.
1.1 misho 1636: ac_fn_c_try_run ()
1637: {
1638: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639: if { { ac_try="$ac_link"
1640: case "(($ac_try" in
1641: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642: *) ac_try_echo=$ac_try;;
1643: esac
1644: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 1645: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1646: (eval "$ac_link") 2>&5
1647: ac_status=$?
1.71 misho 1648: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 1649: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650: { { case "(($ac_try" in
1651: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652: *) ac_try_echo=$ac_try;;
1653: esac
1654: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 1655: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1656: (eval "$ac_try") 2>&5
1657: ac_status=$?
1.71 misho 1658: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659: test $ac_status = 0; }; }
1660: then :
1.1 misho 1661: ac_retval=0
1.71 misho 1662: else case e in #(
1663: e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1664: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 1665: sed 's/^/| /' conftest.$ac_ext >&5
1666:
1.71 misho 1667: ac_retval=$ac_status ;;
1668: esac
1.1 misho 1669: fi
1670: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672: as_fn_set_status $ac_retval
1673:
1674: } # ac_fn_c_try_run
1675:
1676: # ac_fn_c_check_func LINENO FUNC VAR
1677: # ----------------------------------
1678: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1679: ac_fn_c_check_func ()
1680: {
1681: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 1682: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683: printf %s "checking for $2... " >&6; }
1684: if eval test \${$3+y}
1685: then :
1686: printf %s "(cached) " >&6
1687: else case e in #(
1688: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 1689: /* end confdefs.h. */
1690: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1691: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1692: #define $2 innocuous_$2
1693:
1694: /* System header to define __stub macros and hopefully few prototypes,
1.71 misho 1695: which can conflict with char $2 (void); below. */
1.1 misho 1696:
1.71 misho 1697: #include <limits.h>
1.1 misho 1698: #undef $2
1699:
1700: /* Override any GCC internal prototype to avoid an error.
1701: Use char because int might match the return type of a GCC
1702: builtin and then its argument prototype would still apply. */
1703: #ifdef __cplusplus
1704: extern "C"
1705: #endif
1.71 misho 1706: char $2 (void);
1.1 misho 1707: /* The GNU C library defines this for functions which it implements
1708: to always fail with ENOSYS. Some functions are actually named
1709: something starting with __ and the normal name is an alias. */
1710: #if defined __stub_$2 || defined __stub___$2
1711: choke me
1712: #endif
1713:
1714: int
1.71 misho 1715: main (void)
1.1 misho 1716: {
1717: return $2 ();
1718: ;
1719: return 0;
1720: }
1721: _ACEOF
1.71 misho 1722: if ac_fn_c_try_link "$LINENO"
1723: then :
1.1 misho 1724: eval "$3=yes"
1.71 misho 1725: else case e in #(
1726: e) eval "$3=no" ;;
1727: esac
1.1 misho 1728: fi
1.71 misho 1729: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1730: conftest$ac_exeext conftest.$ac_ext ;;
1731: esac
1.1 misho 1732: fi
1733: eval ac_res=\$$3
1.71 misho 1734: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735: printf "%s\n" "$ac_res" >&6; }
1.1 misho 1736: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737:
1738: } # ac_fn_c_check_func
1.71 misho 1739: ac_configure_args_raw=
1740: for ac_arg
1741: do
1742: case $ac_arg in
1743: *\'*)
1744: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745: esac
1746: as_fn_append ac_configure_args_raw " '$ac_arg'"
1747: done
1748:
1749: case $ac_configure_args_raw in
1750: *$as_nl*)
1751: ac_safe_unquote= ;;
1752: *)
1753: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1754: ac_unsafe_a="$ac_unsafe_z#~"
1755: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1756: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1757: esac
1758:
1.1 misho 1759: cat >config.log <<_ACEOF
1760: This file contains any messages produced by compilers while
1761: running configure, to aid debugging if configure makes a mistake.
1762:
1.80 ! misho 1763: It was created by libelwix $as_me 6.12, which was
1.71 misho 1764: generated by GNU Autoconf 2.72. Invocation command line was
1.1 misho 1765:
1.71 misho 1766: $ $0$ac_configure_args_raw
1.1 misho 1767:
1768: _ACEOF
1769: exec 5>>config.log
1770: {
1771: cat <<_ASUNAME
1772: ## --------- ##
1773: ## Platform. ##
1774: ## --------- ##
1775:
1776: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1781:
1782: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1784:
1785: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1789: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1792:
1793: _ASUNAME
1794:
1795: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796: for as_dir in $PATH
1797: do
1798: IFS=$as_save_IFS
1.71 misho 1799: case $as_dir in #(((
1800: '') as_dir=./ ;;
1801: */) ;;
1802: *) as_dir=$as_dir/ ;;
1803: esac
1804: printf "%s\n" "PATH: $as_dir"
1.1 misho 1805: done
1806: IFS=$as_save_IFS
1807:
1808: } >&5
1809:
1810: cat >&5 <<_ACEOF
1811:
1812:
1813: ## ----------- ##
1814: ## Core tests. ##
1815: ## ----------- ##
1816:
1817: _ACEOF
1818:
1819:
1820: # Keep a trace of the command line.
1821: # Strip out --no-create and --no-recursion so they do not pile up.
1822: # Strip out --silent because we don't want to record it for future runs.
1823: # Also quote any args containing shell meta-characters.
1824: # Make two passes to allow for proper duplicate-argument suppression.
1825: ac_configure_args=
1826: ac_configure_args0=
1827: ac_configure_args1=
1828: ac_must_keep_next=false
1829: for ac_pass in 1 2
1830: do
1831: for ac_arg
1832: do
1833: case $ac_arg in
1834: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1835: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836: | -silent | --silent | --silen | --sile | --sil)
1837: continue ;;
1838: *\'*)
1.71 misho 1839: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 1840: esac
1841: case $ac_pass in
1842: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1843: 2)
1844: as_fn_append ac_configure_args1 " '$ac_arg'"
1845: if test $ac_must_keep_next = true; then
1846: ac_must_keep_next=false # Got value, back to normal.
1847: else
1848: case $ac_arg in
1849: *=* | --config-cache | -C | -disable-* | --disable-* \
1850: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1851: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1852: | -with-* | --with-* | -without-* | --without-* | --x)
1853: case "$ac_configure_args0 " in
1854: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1855: esac
1856: ;;
1857: -* ) ac_must_keep_next=true ;;
1858: esac
1859: fi
1860: as_fn_append ac_configure_args " '$ac_arg'"
1861: ;;
1862: esac
1863: done
1864: done
1865: { ac_configure_args0=; unset ac_configure_args0;}
1866: { ac_configure_args1=; unset ac_configure_args1;}
1867:
1868: # When interrupted or exit'd, cleanup temporary files, and complete
1869: # config.log. We remove comments because anyway the quotes in there
1870: # would cause problems or look ugly.
1871: # WARNING: Use '\'' to represent an apostrophe within the trap.
1872: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1873: trap 'exit_status=$?
1.71 misho 1874: # Sanitize IFS.
1875: IFS=" "" $as_nl"
1.1 misho 1876: # Save into config.log some information that might help in debugging.
1877: {
1878: echo
1879:
1.71 misho 1880: printf "%s\n" "## ---------------- ##
1.1 misho 1881: ## Cache variables. ##
1882: ## ---------------- ##"
1883: echo
1884: # The following way of writing the cache mishandles newlines in values,
1885: (
1886: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1887: eval ac_val=\$$ac_var
1888: case $ac_val in #(
1889: *${as_nl}*)
1890: case $ac_var in #(
1.71 misho 1891: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1892: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 1893: esac
1894: case $ac_var in #(
1895: _ | IFS | as_nl) ;; #(
1896: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1897: *) { eval $ac_var=; unset $ac_var;} ;;
1898: esac ;;
1899: esac
1900: done
1901: (set) 2>&1 |
1902: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1903: *${as_nl}ac_space=\ *)
1904: sed -n \
1905: "s/'\''/'\''\\\\'\'''\''/g;
1906: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1907: ;; #(
1908: *)
1909: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1910: ;;
1911: esac |
1912: sort
1913: )
1914: echo
1915:
1.71 misho 1916: printf "%s\n" "## ----------------- ##
1.1 misho 1917: ## Output variables. ##
1918: ## ----------------- ##"
1919: echo
1920: for ac_var in $ac_subst_vars
1921: do
1922: eval ac_val=\$$ac_var
1923: case $ac_val in
1.71 misho 1924: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 1925: esac
1.71 misho 1926: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 misho 1927: done | sort
1928: echo
1929:
1930: if test -n "$ac_subst_files"; then
1.71 misho 1931: printf "%s\n" "## ------------------- ##
1.1 misho 1932: ## File substitutions. ##
1933: ## ------------------- ##"
1934: echo
1935: for ac_var in $ac_subst_files
1936: do
1937: eval ac_val=\$$ac_var
1938: case $ac_val in
1.71 misho 1939: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 1940: esac
1.71 misho 1941: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 misho 1942: done | sort
1943: echo
1944: fi
1945:
1946: if test -s confdefs.h; then
1.71 misho 1947: printf "%s\n" "## ----------- ##
1.1 misho 1948: ## confdefs.h. ##
1949: ## ----------- ##"
1950: echo
1951: cat confdefs.h
1952: echo
1953: fi
1954: test "$ac_signal" != 0 &&
1.71 misho 1955: printf "%s\n" "$as_me: caught signal $ac_signal"
1956: printf "%s\n" "$as_me: exit $exit_status"
1.1 misho 1957: } >&5
1958: rm -f core *.core core.conftest.* &&
1959: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1960: exit $exit_status
1961: ' 0
1962: for ac_signal in 1 2 13 15; do
1963: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1964: done
1965: ac_signal=0
1966:
1967: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1968: rm -f -r conftest* confdefs.h
1969:
1.71 misho 1970: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.1 misho 1971:
1972: # Predefined preprocessor variables.
1973:
1.71 misho 1974: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.1 misho 1975:
1.71 misho 1976: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.1 misho 1977:
1.71 misho 1978: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.1 misho 1979:
1.71 misho 1980: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.1 misho 1981:
1.71 misho 1982: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.1 misho 1983:
1.71 misho 1984: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.1 misho 1985:
1986:
1987: # Let the site file select an alternate cache file if it wants to.
1988: # Prefer an explicitly selected file to automatically selected ones.
1989: if test -n "$CONFIG_SITE"; then
1.71 misho 1990: ac_site_files="$CONFIG_SITE"
1.1 misho 1991: elif test "x$prefix" != xNONE; then
1.71 misho 1992: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.1 misho 1993: else
1.71 misho 1994: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1 misho 1995: fi
1.71 misho 1996:
1997: for ac_site_file in $ac_site_files
1.1 misho 1998: do
1.71 misho 1999: case $ac_site_file in #(
2000: */*) :
2001: ;; #(
2002: *) :
2003: ac_site_file=./$ac_site_file ;;
2004: esac
2005: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2006: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2007: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.1 misho 2008: sed 's/^/| /' "$ac_site_file" >&5
2009: . "$ac_site_file" \
1.71 misho 2010: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2011: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 misho 2012: as_fn_error $? "failed to load site script $ac_site_file
1.71 misho 2013: See 'config.log' for more details" "$LINENO" 5; }
1.1 misho 2014: fi
2015: done
2016:
2017: if test -r "$cache_file"; then
2018: # Some versions of bash will fail to source /dev/null (special files
2019: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2020: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.71 misho 2021: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2022: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.1 misho 2023: case $cache_file in
2024: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2025: *) . "./$cache_file";;
2026: esac
2027: fi
2028: else
1.71 misho 2029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2030: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.1 misho 2031: >$cache_file
2032: fi
2033:
1.71 misho 2034: # Test code for whether the C compiler supports C89 (global declarations)
2035: ac_c_conftest_c89_globals='
2036: /* Does the compiler advertise C89 conformance?
2037: Do not test the value of __STDC__, because some compilers set it to 0
2038: while being otherwise adequately conformant. */
2039: #if !defined __STDC__
2040: # error "Compiler does not advertise C89 conformance"
2041: #endif
2042:
2043: #include <stddef.h>
2044: #include <stdarg.h>
2045: struct stat;
2046: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2047: struct buf { int x; };
2048: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2049: static char *e (char **p, int i)
2050: {
2051: return p[i];
2052: }
2053: static char *f (char * (*g) (char **, int), char **p, ...)
2054: {
2055: char *s;
2056: va_list v;
2057: va_start (v,p);
2058: s = g (p, va_arg (v,int));
2059: va_end (v);
2060: return s;
2061: }
1.65 misho 2062:
1.71 misho 2063: /* C89 style stringification. */
2064: #define noexpand_stringify(a) #a
2065: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2066:
2067: /* C89 style token pasting. Exercises some of the corner cases that
2068: e.g. old MSVC gets wrong, but not very hard. */
2069: #define noexpand_concat(a,b) a##b
2070: #define expand_concat(a,b) noexpand_concat(a,b)
2071: extern int vA;
2072: extern int vbee;
2073: #define aye A
2074: #define bee B
2075: int *pvA = &expand_concat(v,aye);
2076: int *pvbee = &noexpand_concat(v,bee);
1.63 misho 2077:
1.71 misho 2078: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2079: function prototypes and stuff, but not \xHH hex character constants.
2080: These do not provoke an error unfortunately, instead are silently treated
2081: as an "x". The following induces an error, until -std is added to get
2082: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2083: array size at least. It is necessary to write \x00 == 0 to get something
2084: that is true only with -std. */
2085: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1.69 misho 2086:
1.71 misho 2087: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2088: inside strings and character constants. */
2089: #define FOO(x) '\''x'\''
2090: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1.1 misho 2091:
1.71 misho 2092: int test (int i, double x);
2093: struct s1 {int (*f) (int a);};
2094: struct s2 {int (*f) (double a);};
2095: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2096: int, int);'
1.1 misho 2097:
1.71 misho 2098: # Test code for whether the C compiler supports C89 (body of main).
2099: ac_c_conftest_c89_main='
2100: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2101: '
1.1 misho 2102:
1.71 misho 2103: # Test code for whether the C compiler supports C99 (global declarations)
2104: ac_c_conftest_c99_globals='
2105: /* Does the compiler advertise C99 conformance? */
2106: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2107: # error "Compiler does not advertise C99 conformance"
2108: #endif
2109:
2110: // See if C++-style comments work.
2111:
2112: #include <stdbool.h>
2113: extern int puts (const char *);
2114: extern int printf (const char *, ...);
2115: extern int dprintf (int, const char *, ...);
2116: extern void *malloc (size_t);
2117: extern void free (void *);
2118:
2119: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2120: // dprintf is used instead of fprintf to avoid needing to declare
2121: // FILE and stderr.
2122: #define debug(...) dprintf (2, __VA_ARGS__)
2123: #define showlist(...) puts (#__VA_ARGS__)
2124: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2125: static void
2126: test_varargs_macros (void)
2127: {
2128: int x = 1234;
2129: int y = 5678;
2130: debug ("Flag");
2131: debug ("X = %d\n", x);
2132: showlist (The first, second, and third items.);
2133: report (x>y, "x is %d but y is %d", x, y);
2134: }
2135:
2136: // Check long long types.
2137: #define BIG64 18446744073709551615ull
2138: #define BIG32 4294967295ul
2139: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2140: #if !BIG_OK
2141: #error "your preprocessor is broken"
2142: #endif
2143: #if BIG_OK
2144: #else
2145: #error "your preprocessor is broken"
2146: #endif
2147: static long long int bignum = -9223372036854775807LL;
2148: static unsigned long long int ubignum = BIG64;
2149:
2150: struct incomplete_array
2151: {
2152: int datasize;
2153: double data[];
2154: };
2155:
2156: struct named_init {
2157: int number;
2158: const wchar_t *name;
2159: double average;
2160: };
2161:
2162: typedef const char *ccp;
2163:
2164: static inline int
2165: test_restrict (ccp restrict text)
2166: {
2167: // Iterate through items via the restricted pointer.
2168: // Also check for declarations in for loops.
2169: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2170: continue;
2171: return 0;
2172: }
2173:
2174: // Check varargs and va_copy.
2175: static bool
2176: test_varargs (const char *format, ...)
2177: {
2178: va_list args;
2179: va_start (args, format);
2180: va_list args_copy;
2181: va_copy (args_copy, args);
2182:
2183: const char *str = "";
2184: int number = 0;
2185: float fnumber = 0;
2186:
2187: while (*format)
2188: {
2189: switch (*format++)
2190: {
2191: case '\''s'\'': // string
2192: str = va_arg (args_copy, const char *);
2193: break;
2194: case '\''d'\'': // int
2195: number = va_arg (args_copy, int);
2196: break;
2197: case '\''f'\'': // float
2198: fnumber = va_arg (args_copy, double);
2199: break;
2200: default:
2201: break;
2202: }
2203: }
2204: va_end (args_copy);
2205: va_end (args);
2206:
2207: return *str && number && fnumber;
2208: }
2209: '
2210:
2211: # Test code for whether the C compiler supports C99 (body of main).
2212: ac_c_conftest_c99_main='
2213: // Check bool.
2214: _Bool success = false;
2215: success |= (argc != 0);
2216:
2217: // Check restrict.
2218: if (test_restrict ("String literal") == 0)
2219: success = true;
2220: char *restrict newvar = "Another string";
2221:
2222: // Check varargs.
2223: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2224: test_varargs_macros ();
2225:
2226: // Check flexible array members.
2227: struct incomplete_array *ia =
2228: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2229: ia->datasize = 10;
2230: for (int i = 0; i < ia->datasize; ++i)
2231: ia->data[i] = i * 1.234;
2232: // Work around memory leak warnings.
2233: free (ia);
2234:
2235: // Check named initializers.
2236: struct named_init ni = {
2237: .number = 34,
2238: .name = L"Test wide string",
2239: .average = 543.34343,
2240: };
2241:
2242: ni.number = 58;
2243:
2244: int dynamic_array[ni.number];
2245: dynamic_array[0] = argv[0][0];
2246: dynamic_array[ni.number - 1] = 543;
2247:
2248: // work around unused variable warnings
2249: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2250: || dynamic_array[ni.number - 1] != 543);
2251: '
2252:
2253: # Test code for whether the C compiler supports C11 (global declarations)
2254: ac_c_conftest_c11_globals='
2255: /* Does the compiler advertise C11 conformance? */
2256: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2257: # error "Compiler does not advertise C11 conformance"
2258: #endif
2259:
2260: // Check _Alignas.
2261: char _Alignas (double) aligned_as_double;
2262: char _Alignas (0) no_special_alignment;
2263: extern char aligned_as_int;
2264: char _Alignas (0) _Alignas (int) aligned_as_int;
2265:
2266: // Check _Alignof.
2267: enum
2268: {
2269: int_alignment = _Alignof (int),
2270: int_array_alignment = _Alignof (int[100]),
2271: char_alignment = _Alignof (char)
2272: };
2273: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2274:
2275: // Check _Noreturn.
2276: int _Noreturn does_not_return (void) { for (;;) continue; }
2277:
2278: // Check _Static_assert.
2279: struct test_static_assert
2280: {
2281: int x;
2282: _Static_assert (sizeof (int) <= sizeof (long int),
2283: "_Static_assert does not work in struct");
2284: long int y;
2285: };
2286:
2287: // Check UTF-8 literals.
2288: #define u8 syntax error!
2289: char const utf8_literal[] = u8"happens to be ASCII" "another string";
2290:
2291: // Check duplicate typedefs.
2292: typedef long *long_ptr;
2293: typedef long int *long_ptr;
2294: typedef long_ptr long_ptr;
2295:
2296: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2297: struct anonymous
2298: {
2299: union {
2300: struct { int i; int j; };
2301: struct { int k; long int l; } w;
2302: };
2303: int m;
2304: } v1;
2305: '
2306:
2307: # Test code for whether the C compiler supports C11 (body of main).
2308: ac_c_conftest_c11_main='
2309: _Static_assert ((offsetof (struct anonymous, i)
2310: == offsetof (struct anonymous, w.k)),
2311: "Anonymous union alignment botch");
2312: v1.i = 2;
2313: v1.w.k = 5;
2314: ok |= v1.i != 5;
2315: '
2316:
2317: # Test code for whether the C compiler supports C11 (complete).
2318: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2319: ${ac_c_conftest_c99_globals}
2320: ${ac_c_conftest_c11_globals}
2321:
2322: int
2323: main (int argc, char **argv)
2324: {
2325: int ok = 0;
2326: ${ac_c_conftest_c89_main}
2327: ${ac_c_conftest_c99_main}
2328: ${ac_c_conftest_c11_main}
2329: return ok;
2330: }
2331: "
2332:
2333: # Test code for whether the C compiler supports C99 (complete).
2334: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2335: ${ac_c_conftest_c99_globals}
2336:
2337: int
2338: main (int argc, char **argv)
2339: {
2340: int ok = 0;
2341: ${ac_c_conftest_c89_main}
2342: ${ac_c_conftest_c99_main}
2343: return ok;
2344: }
2345: "
2346:
2347: # Test code for whether the C compiler supports C89 (complete).
2348: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2349:
2350: int
2351: main (int argc, char **argv)
2352: {
2353: int ok = 0;
2354: ${ac_c_conftest_c89_main}
2355: return ok;
2356: }
2357: "
2358:
2359: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2360: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2361: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2362: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2363: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2364: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2365: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2366: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2367: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2368:
2369: # Auxiliary files required by this configure script.
2370: ac_aux_files="config.guess config.sub install-sh"
2371:
2372: # Locations in which to look for auxiliary files.
2373: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2374:
2375: # Search for a directory containing all of the required auxiliary files,
2376: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2377: # If we don't find one directory that contains all the files we need,
2378: # we report the set of missing files from the *first* directory in
2379: # $ac_aux_dir_candidates and give up.
2380: ac_missing_aux_files=""
2381: ac_first_candidate=:
2382: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2383: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384: as_found=false
2385: for as_dir in $ac_aux_dir_candidates
2386: do
2387: IFS=$as_save_IFS
2388: case $as_dir in #(((
2389: '') as_dir=./ ;;
2390: */) ;;
2391: *) as_dir=$as_dir/ ;;
2392: esac
2393: as_found=:
2394:
2395: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2396: ac_aux_dir_found=yes
2397: ac_install_sh=
2398: for ac_aux in $ac_aux_files
2399: do
2400: # As a special case, if "install-sh" is required, that requirement
2401: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2402: # and $ac_install_sh is set appropriately for whichever one is found.
2403: if test x"$ac_aux" = x"install-sh"
2404: then
2405: if test -f "${as_dir}install-sh"; then
2406: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2407: ac_install_sh="${as_dir}install-sh -c"
2408: elif test -f "${as_dir}install.sh"; then
2409: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2410: ac_install_sh="${as_dir}install.sh -c"
2411: elif test -f "${as_dir}shtool"; then
2412: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2413: ac_install_sh="${as_dir}shtool install -c"
2414: else
2415: ac_aux_dir_found=no
2416: if $ac_first_candidate; then
2417: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2418: else
2419: break
2420: fi
2421: fi
2422: else
2423: if test -f "${as_dir}${ac_aux}"; then
2424: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2425: else
2426: ac_aux_dir_found=no
2427: if $ac_first_candidate; then
2428: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2429: else
2430: break
2431: fi
2432: fi
2433: fi
2434: done
2435: if test "$ac_aux_dir_found" = yes; then
2436: ac_aux_dir="$as_dir"
2437: break
2438: fi
2439: ac_first_candidate=false
2440:
2441: as_found=false
2442: done
2443: IFS=$as_save_IFS
2444: if $as_found
2445: then :
2446:
2447: else case e in #(
2448: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2449: esac
2450: fi
2451:
2452:
2453: # These three variables are undocumented and unsupported,
2454: # and are intended to be withdrawn in a future Autoconf release.
2455: # They can cause serious problems if a builder's source tree is in a directory
2456: # whose full name contains unusual characters.
2457: if test -f "${ac_aux_dir}config.guess"; then
2458: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2459: fi
2460: if test -f "${ac_aux_dir}config.sub"; then
2461: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2462: fi
2463: if test -f "$ac_aux_dir/configure"; then
2464: ac_configure="$SHELL ${ac_aux_dir}configure"
2465: fi
2466:
2467: # Check that the precious variables saved in the cache have kept the same
2468: # value.
2469: ac_cache_corrupted=false
2470: for ac_var in $ac_precious_vars; do
2471: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472: eval ac_new_set=\$ac_env_${ac_var}_set
2473: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474: eval ac_new_val=\$ac_env_${ac_var}_value
2475: case $ac_old_set,$ac_new_set in
2476: set,)
2477: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2478: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2479: ac_cache_corrupted=: ;;
2480: ,set)
2481: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2482: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2483: ac_cache_corrupted=: ;;
2484: ,);;
2485: *)
2486: if test "x$ac_old_val" != "x$ac_new_val"; then
2487: # differences in whitespace do not lead to failure.
2488: ac_old_val_w=`echo x $ac_old_val`
2489: ac_new_val_w=`echo x $ac_new_val`
2490: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2492: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2493: ac_cache_corrupted=:
2494: else
2495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2496: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2497: eval $ac_var=\$ac_old_val
2498: fi
2499: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2500: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2501: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2502: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2503: fi;;
2504: esac
2505: # Pass precious variables to config.status.
2506: if test "$ac_new_set" = set; then
2507: case $ac_new_val in
2508: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509: *) ac_arg=$ac_var=$ac_new_val ;;
2510: esac
2511: case " $ac_configure_args " in
2512: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2513: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514: esac
2515: fi
2516: done
2517: if $ac_cache_corrupted; then
2518: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2519: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2520: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2522: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2523: and start over" "$LINENO" 5
2524: fi
2525: ## -------------------- ##
2526: ## Main body of script. ##
2527: ## -------------------- ##
2528:
2529: ac_ext=c
2530: ac_cpp='$CPP $CPPFLAGS'
2531: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534:
2535:
2536:
2537: ac_config_headers="$ac_config_headers inc/config.h"
2538:
2539:
2540: ac_cv_func_malloc_0_nonnull="yes"
2541: ac_cv_func_realloc_0_nonnull="yes"
1.1 misho 2542:
1.70 misho 2543: # Checks for programs.
1.71 misho 2544:
2545:
2546:
2547:
2548:
2549:
2550:
2551:
2552:
1.70 misho 2553: ac_ext=c
1.64 misho 2554: ac_cpp='$CPP $CPPFLAGS'
2555: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1 misho 2557: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558: if test -n "$ac_tool_prefix"; then
2559: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2560: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.71 misho 2561: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562: printf %s "checking for $ac_word... " >&6; }
2563: if test ${ac_cv_prog_CC+y}
2564: then :
2565: printf %s "(cached) " >&6
2566: else case e in #(
2567: e) if test -n "$CC"; then
1.1 misho 2568: ac_cv_prog_CC="$CC" # Let the user override the test.
2569: else
2570: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571: for as_dir in $PATH
2572: do
2573: IFS=$as_save_IFS
1.71 misho 2574: case $as_dir in #(((
2575: '') as_dir=./ ;;
2576: */) ;;
2577: *) as_dir=$as_dir/ ;;
2578: esac
1.1 misho 2579: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 2580: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2581: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.71 misho 2582: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2583: break 2
2584: fi
2585: done
2586: done
2587: IFS=$as_save_IFS
2588:
1.71 misho 2589: fi ;;
2590: esac
1.1 misho 2591: fi
2592: CC=$ac_cv_prog_CC
2593: if test -n "$CC"; then
1.71 misho 2594: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595: printf "%s\n" "$CC" >&6; }
1.1 misho 2596: else
1.71 misho 2597: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598: printf "%s\n" "no" >&6; }
1.1 misho 2599: fi
2600:
2601:
2602: fi
2603: if test -z "$ac_cv_prog_CC"; then
2604: ac_ct_CC=$CC
2605: # Extract the first word of "gcc", so it can be a program name with args.
2606: set dummy gcc; ac_word=$2
1.71 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_ac_ct_CC+y}
2610: then :
2611: printf %s "(cached) " >&6
2612: else case e in #(
2613: e) if test -n "$ac_ct_CC"; then
1.1 misho 2614: ac_cv_prog_ac_ct_CC="$ac_ct_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.71 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.71 misho 2626: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2627: ac_cv_prog_ac_ct_CC="gcc"
1.71 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.71 misho 2635: fi ;;
2636: esac
1.1 misho 2637: fi
2638: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639: if test -n "$ac_ct_CC"; then
1.71 misho 2640: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2641: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 misho 2642: else
1.71 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: if test "x$ac_ct_CC" = x; then
2648: CC=""
2649: else
2650: case $cross_compiling:$ac_tool_warned in
2651: yes:)
1.71 misho 2652: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2653: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 2654: ac_tool_warned=yes ;;
2655: esac
2656: CC=$ac_ct_CC
2657: fi
2658: else
2659: CC="$ac_cv_prog_CC"
2660: fi
2661:
2662: if test -z "$CC"; then
2663: if test -n "$ac_tool_prefix"; then
2664: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2665: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.71 misho 2666: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667: printf %s "checking for $ac_word... " >&6; }
2668: if test ${ac_cv_prog_CC+y}
2669: then :
2670: printf %s "(cached) " >&6
2671: else case e in #(
2672: e) if test -n "$CC"; then
1.1 misho 2673: ac_cv_prog_CC="$CC" # Let the user override the test.
2674: else
2675: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676: for as_dir in $PATH
2677: do
2678: IFS=$as_save_IFS
1.71 misho 2679: case $as_dir in #(((
2680: '') as_dir=./ ;;
2681: */) ;;
2682: *) as_dir=$as_dir/ ;;
2683: esac
1.1 misho 2684: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 2685: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2686: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.71 misho 2687: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2688: break 2
2689: fi
2690: done
2691: done
2692: IFS=$as_save_IFS
2693:
1.71 misho 2694: fi ;;
2695: esac
1.1 misho 2696: fi
2697: CC=$ac_cv_prog_CC
2698: if test -n "$CC"; then
1.71 misho 2699: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700: printf "%s\n" "$CC" >&6; }
1.1 misho 2701: else
1.71 misho 2702: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703: printf "%s\n" "no" >&6; }
1.1 misho 2704: fi
2705:
2706:
2707: fi
2708: fi
2709: if test -z "$CC"; then
2710: # Extract the first word of "cc", so it can be a program name with args.
2711: set dummy cc; ac_word=$2
1.71 misho 2712: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713: printf %s "checking for $ac_word... " >&6; }
2714: if test ${ac_cv_prog_CC+y}
2715: then :
2716: printf %s "(cached) " >&6
2717: else case e in #(
2718: e) if test -n "$CC"; then
1.1 misho 2719: ac_cv_prog_CC="$CC" # Let the user override the test.
2720: else
2721: ac_prog_rejected=no
2722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723: for as_dir in $PATH
2724: do
2725: IFS=$as_save_IFS
1.71 misho 2726: case $as_dir in #(((
2727: '') as_dir=./ ;;
2728: */) ;;
2729: *) as_dir=$as_dir/ ;;
2730: esac
1.1 misho 2731: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 2732: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2733: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1 misho 2734: ac_prog_rejected=yes
2735: continue
2736: fi
2737: ac_cv_prog_CC="cc"
1.71 misho 2738: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2739: break 2
2740: fi
2741: done
2742: done
2743: IFS=$as_save_IFS
2744:
2745: if test $ac_prog_rejected = yes; then
2746: # We found a bogon in the path, so make sure we never use it.
2747: set dummy $ac_cv_prog_CC
2748: shift
2749: if test $# != 0; then
2750: # We chose a different compiler from the bogus one.
2751: # However, it has the same basename, so the bogon will be chosen
2752: # first if we set CC to just the basename; use the full file name.
2753: shift
1.71 misho 2754: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1 misho 2755: fi
2756: fi
1.71 misho 2757: fi ;;
2758: esac
1.1 misho 2759: fi
2760: CC=$ac_cv_prog_CC
2761: if test -n "$CC"; then
1.71 misho 2762: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763: printf "%s\n" "$CC" >&6; }
1.1 misho 2764: else
1.71 misho 2765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766: printf "%s\n" "no" >&6; }
1.1 misho 2767: fi
2768:
2769:
2770: fi
2771: if test -z "$CC"; then
2772: if test -n "$ac_tool_prefix"; then
2773: for ac_prog in cl.exe
2774: do
2775: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.71 misho 2777: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778: printf %s "checking for $ac_word... " >&6; }
2779: if test ${ac_cv_prog_CC+y}
2780: then :
2781: printf %s "(cached) " >&6
2782: else case e in #(
2783: e) if test -n "$CC"; then
1.1 misho 2784: ac_cv_prog_CC="$CC" # Let the user override the test.
2785: else
2786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787: for as_dir in $PATH
2788: do
2789: IFS=$as_save_IFS
1.71 misho 2790: case $as_dir in #(((
2791: '') as_dir=./ ;;
2792: */) ;;
2793: *) as_dir=$as_dir/ ;;
2794: esac
1.1 misho 2795: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 2796: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2797: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.71 misho 2798: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2799: break 2
2800: fi
2801: done
2802: done
2803: IFS=$as_save_IFS
2804:
1.71 misho 2805: fi ;;
2806: esac
1.1 misho 2807: fi
2808: CC=$ac_cv_prog_CC
2809: if test -n "$CC"; then
1.71 misho 2810: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811: printf "%s\n" "$CC" >&6; }
1.1 misho 2812: else
1.71 misho 2813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814: printf "%s\n" "no" >&6; }
1.1 misho 2815: fi
2816:
2817:
2818: test -n "$CC" && break
2819: done
2820: fi
2821: if test -z "$CC"; then
2822: ac_ct_CC=$CC
2823: for ac_prog in cl.exe
2824: do
2825: # Extract the first word of "$ac_prog", so it can be a program name with args.
2826: set dummy $ac_prog; ac_word=$2
1.71 misho 2827: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828: printf %s "checking for $ac_word... " >&6; }
2829: if test ${ac_cv_prog_ac_ct_CC+y}
2830: then :
2831: printf %s "(cached) " >&6
2832: else case e in #(
2833: e) if test -n "$ac_ct_CC"; then
1.1 misho 2834: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835: else
2836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837: for as_dir in $PATH
2838: do
2839: IFS=$as_save_IFS
1.71 misho 2840: case $as_dir in #(((
2841: '') as_dir=./ ;;
2842: */) ;;
2843: *) as_dir=$as_dir/ ;;
2844: esac
1.1 misho 2845: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 2846: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2847: ac_cv_prog_ac_ct_CC="$ac_prog"
1.71 misho 2848: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2849: break 2
2850: fi
2851: done
2852: done
2853: IFS=$as_save_IFS
2854:
1.71 misho 2855: fi ;;
2856: esac
1.1 misho 2857: fi
2858: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859: if test -n "$ac_ct_CC"; then
1.71 misho 2860: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 misho 2862: else
1.71 misho 2863: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864: printf "%s\n" "no" >&6; }
1.1 misho 2865: fi
2866:
2867:
2868: test -n "$ac_ct_CC" && break
2869: done
2870:
2871: if test "x$ac_ct_CC" = x; then
2872: CC=""
2873: else
2874: case $cross_compiling:$ac_tool_warned in
2875: yes:)
1.71 misho 2876: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.65 misho 2878: ac_tool_warned=yes ;;
2879: esac
2880: CC=$ac_ct_CC
2881: fi
2882: fi
2883:
2884: fi
1.71 misho 2885: if test -z "$CC"; then
2886: if test -n "$ac_tool_prefix"; then
2887: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2888: set dummy ${ac_tool_prefix}clang; ac_word=$2
2889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890: printf %s "checking for $ac_word... " >&6; }
2891: if test ${ac_cv_prog_CC+y}
2892: then :
2893: printf %s "(cached) " >&6
2894: else case e in #(
2895: e) if test -n "$CC"; then
2896: ac_cv_prog_CC="$CC" # Let the user override the test.
2897: else
2898: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899: for as_dir in $PATH
2900: do
2901: IFS=$as_save_IFS
2902: case $as_dir in #(((
2903: '') as_dir=./ ;;
2904: */) ;;
2905: *) as_dir=$as_dir/ ;;
2906: esac
2907: for ac_exec_ext in '' $ac_executable_extensions; do
2908: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909: ac_cv_prog_CC="${ac_tool_prefix}clang"
2910: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2911: break 2
2912: fi
2913: done
2914: done
2915: IFS=$as_save_IFS
1.65 misho 2916:
1.71 misho 2917: fi ;;
2918: esac
2919: fi
2920: CC=$ac_cv_prog_CC
2921: if test -n "$CC"; then
2922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923: printf "%s\n" "$CC" >&6; }
2924: else
2925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926: printf "%s\n" "no" >&6; }
2927: fi
1.65 misho 2928:
1.71 misho 2929:
2930: fi
2931: if test -z "$ac_cv_prog_CC"; then
2932: ac_ct_CC=$CC
2933: # Extract the first word of "clang", so it can be a program name with args.
2934: set dummy clang; ac_word=$2
2935: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936: printf %s "checking for $ac_word... " >&6; }
2937: if test ${ac_cv_prog_ac_ct_CC+y}
2938: then :
2939: printf %s "(cached) " >&6
2940: else case e in #(
2941: e) if test -n "$ac_ct_CC"; then
2942: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943: else
2944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945: for as_dir in $PATH
2946: do
2947: IFS=$as_save_IFS
2948: case $as_dir in #(((
2949: '') as_dir=./ ;;
2950: */) ;;
2951: *) as_dir=$as_dir/ ;;
2952: esac
2953: for ac_exec_ext in '' $ac_executable_extensions; do
2954: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2955: ac_cv_prog_ac_ct_CC="clang"
2956: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957: break 2
2958: fi
2959: done
2960: done
2961: IFS=$as_save_IFS
2962:
2963: fi ;;
2964: esac
2965: fi
2966: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967: if test -n "$ac_ct_CC"; then
2968: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2969: printf "%s\n" "$ac_ct_CC" >&6; }
2970: else
2971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972: printf "%s\n" "no" >&6; }
2973: fi
2974:
2975: if test "x$ac_ct_CC" = x; then
2976: CC=""
2977: else
2978: case $cross_compiling:$ac_tool_warned in
2979: yes:)
2980: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982: ac_tool_warned=yes ;;
2983: esac
2984: CC=$ac_ct_CC
2985: fi
2986: else
2987: CC="$ac_cv_prog_CC"
2988: fi
2989:
2990: fi
2991:
2992:
2993: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2994: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 misho 2995: as_fn_error $? "no acceptable C compiler found in \$PATH
1.71 misho 2996: See 'config.log' for more details" "$LINENO" 5; }
1.1 misho 2997:
2998: # Provide some information about the compiler.
1.71 misho 2999: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 misho 3000: set X $ac_compile
3001: ac_compiler=$2
1.71 misho 3002: for ac_option in --version -v -V -qversion -version; do
1.1 misho 3003: { { ac_try="$ac_compiler $ac_option >&5"
3004: case "(($ac_try" in
3005: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006: *) ac_try_echo=$ac_try;;
3007: esac
3008: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 3009: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3010: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3011: ac_status=$?
3012: if test -s conftest.err; then
3013: sed '10a\
3014: ... rest of stderr output deleted ...
3015: 10q' conftest.err >conftest.er1
3016: cat conftest.er1 >&5
3017: fi
3018: rm -f conftest.er1 conftest.err
1.71 misho 3019: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 3020: test $ac_status = 0; }
3021: done
3022:
3023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024: /* end confdefs.h. */
3025:
3026: int
1.71 misho 3027: main (void)
1.1 misho 3028: {
3029:
3030: ;
3031: return 0;
3032: }
3033: _ACEOF
3034: ac_clean_files_save=$ac_clean_files
3035: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3036: # Try to create an executable without -o first, disregard a.out.
3037: # It will help us diagnose broken compilers, and finding out an intuition
3038: # of exeext.
1.71 misho 3039: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3040: printf %s "checking whether the C compiler works... " >&6; }
3041: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1 misho 3042:
3043: # The possible output files:
3044: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045:
3046: ac_rmfiles=
3047: for ac_file in $ac_files
3048: do
3049: case $ac_file in
3050: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3052: esac
3053: done
3054: rm -f $ac_rmfiles
3055:
3056: if { { ac_try="$ac_link_default"
3057: case "(($ac_try" in
3058: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059: *) ac_try_echo=$ac_try;;
3060: esac
3061: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 3062: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3063: (eval "$ac_link_default") 2>&5
3064: ac_status=$?
1.71 misho 3065: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066: test $ac_status = 0; }
3067: then :
3068: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3069: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.1 misho 3070: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3071: # so that the user can short-circuit this test for compilers unknown to
3072: # Autoconf.
3073: for ac_file in $ac_files ''
3074: do
3075: test -f "$ac_file" || continue
3076: case $ac_file in
3077: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3078: ;;
3079: [ab].out )
3080: # We found the default executable, but exeext='' is most
3081: # certainly right.
3082: break;;
3083: *.* )
1.71 misho 3084: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.1 misho 3085: then :; else
3086: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3087: fi
3088: # We set ac_cv_exeext here because the later test for it is not
1.71 misho 3089: # safe: cross compilers may not add the suffix if given an '-o'
1.1 misho 3090: # argument, so we may need to know it at that point already.
3091: # Even if this section looks crufty: it has the advantage of
3092: # actually working.
3093: break;;
3094: * )
3095: break;;
3096: esac
3097: done
3098: test "$ac_cv_exeext" = no && ac_cv_exeext=
3099:
1.71 misho 3100: else case e in #(
3101: e) ac_file='' ;;
3102: esac
1.1 misho 3103: fi
1.71 misho 3104: if test -z "$ac_file"
3105: then :
3106: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107: printf "%s\n" "no" >&6; }
3108: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 3109: sed 's/^/| /' conftest.$ac_ext >&5
3110:
1.71 misho 3111: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3112: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 misho 3113: as_fn_error 77 "C compiler cannot create executables
1.71 misho 3114: See 'config.log' for more details" "$LINENO" 5; }
3115: else case e in #(
3116: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117: printf "%s\n" "yes" >&6; } ;;
3118: esac
1.65 misho 3119: fi
1.71 misho 3120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121: printf %s "checking for C compiler default output file name... " >&6; }
3122: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123: printf "%s\n" "$ac_file" >&6; }
1.1 misho 3124: ac_exeext=$ac_cv_exeext
3125:
3126: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3127: ac_clean_files=$ac_clean_files_save
1.71 misho 3128: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3129: printf %s "checking for suffix of executables... " >&6; }
1.1 misho 3130: if { { ac_try="$ac_link"
3131: case "(($ac_try" in
3132: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133: *) ac_try_echo=$ac_try;;
3134: esac
3135: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 3136: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3137: (eval "$ac_link") 2>&5
3138: ac_status=$?
1.71 misho 3139: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140: test $ac_status = 0; }
3141: then :
3142: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3143: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3144: # work properly (i.e., refer to 'conftest.exe'), while it won't with
3145: # 'rm'.
1.1 misho 3146: for ac_file in conftest.exe conftest conftest.*; do
3147: test -f "$ac_file" || continue
3148: case $ac_file in
3149: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3150: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151: break;;
3152: * ) break;;
3153: esac
3154: done
1.71 misho 3155: else case e in #(
3156: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3157: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 misho 3158: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.71 misho 3159: See 'config.log' for more details" "$LINENO" 5; } ;;
3160: esac
1.1 misho 3161: fi
3162: rm -f conftest conftest$ac_cv_exeext
1.71 misho 3163: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3164: printf "%s\n" "$ac_cv_exeext" >&6; }
1.1 misho 3165:
3166: rm -f conftest.$ac_ext
3167: EXEEXT=$ac_cv_exeext
3168: ac_exeext=$EXEEXT
3169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170: /* end confdefs.h. */
3171: #include <stdio.h>
3172: int
1.71 misho 3173: main (void)
1.1 misho 3174: {
3175: FILE *f = fopen ("conftest.out", "w");
1.71 misho 3176: if (!f)
3177: return 1;
1.1 misho 3178: return ferror (f) || fclose (f) != 0;
3179:
3180: ;
3181: return 0;
3182: }
3183: _ACEOF
3184: ac_clean_files="$ac_clean_files conftest.out"
3185: # Check that the compiler produces executables we can run. If not, either
3186: # the compiler is broken, or we cross compile.
1.71 misho 3187: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3188: printf %s "checking whether we are cross compiling... " >&6; }
1.1 misho 3189: if test "$cross_compiling" != yes; then
3190: { { ac_try="$ac_link"
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.71 misho 3196: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3197: (eval "$ac_link") 2>&5
3198: ac_status=$?
1.71 misho 3199: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 3200: test $ac_status = 0; }
3201: if { ac_try='./conftest$ac_cv_exeext'
3202: { { case "(($ac_try" in
3203: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204: *) ac_try_echo=$ac_try;;
3205: esac
3206: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 3207: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3208: (eval "$ac_try") 2>&5
3209: ac_status=$?
1.71 misho 3210: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 3211: test $ac_status = 0; }; }; then
3212: cross_compiling=no
3213: else
3214: if test "$cross_compiling" = maybe; then
3215: cross_compiling=yes
3216: else
1.71 misho 3217: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3218: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3219: as_fn_error 77 "cannot run C compiled programs.
3220: If you meant to cross compile, use '--host'.
3221: See 'config.log' for more details" "$LINENO" 5; }
1.1 misho 3222: fi
3223: fi
3224: fi
1.71 misho 3225: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3226: printf "%s\n" "$cross_compiling" >&6; }
1.1 misho 3227:
1.71 misho 3228: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3229: conftest.o conftest.obj conftest.out
1.1 misho 3230: ac_clean_files=$ac_clean_files_save
1.71 misho 3231: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3232: printf %s "checking for suffix of object files... " >&6; }
3233: if test ${ac_cv_objext+y}
3234: then :
3235: printf %s "(cached) " >&6
3236: else case e in #(
3237: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3238: /* end confdefs.h. */
3239:
3240: int
1.71 misho 3241: main (void)
1.1 misho 3242: {
3243:
3244: ;
3245: return 0;
3246: }
3247: _ACEOF
3248: rm -f conftest.o conftest.obj
3249: if { { ac_try="$ac_compile"
3250: case "(($ac_try" in
3251: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252: *) ac_try_echo=$ac_try;;
3253: esac
3254: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 3255: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3256: (eval "$ac_compile") 2>&5
3257: ac_status=$?
1.71 misho 3258: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259: test $ac_status = 0; }
3260: then :
1.1 misho 3261: for ac_file in conftest.o conftest.obj conftest.*; do
3262: test -f "$ac_file" || continue;
3263: case $ac_file in
3264: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3265: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3266: break;;
3267: esac
3268: done
1.71 misho 3269: else case e in #(
3270: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 3271: sed 's/^/| /' conftest.$ac_ext >&5
3272:
1.71 misho 3273: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3274: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 misho 3275: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.71 misho 3276: See 'config.log' for more details" "$LINENO" 5; } ;;
3277: esac
1.1 misho 3278: fi
1.71 misho 3279: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3280: esac
1.1 misho 3281: fi
1.71 misho 3282: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283: printf "%s\n" "$ac_cv_objext" >&6; }
1.1 misho 3284: OBJEXT=$ac_cv_objext
3285: ac_objext=$OBJEXT
1.71 misho 3286: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3287: printf %s "checking whether the compiler supports GNU C... " >&6; }
3288: if test ${ac_cv_c_compiler_gnu+y}
3289: then :
3290: printf %s "(cached) " >&6
3291: else case e in #(
3292: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3293: /* end confdefs.h. */
3294:
3295: int
1.71 misho 3296: main (void)
1.1 misho 3297: {
3298: #ifndef __GNUC__
3299: choke me
3300: #endif
3301:
3302: ;
3303: return 0;
3304: }
3305: _ACEOF
1.71 misho 3306: if ac_fn_c_try_compile "$LINENO"
3307: then :
1.1 misho 3308: ac_compiler_gnu=yes
1.71 misho 3309: else case e in #(
3310: e) ac_compiler_gnu=no ;;
3311: esac
1.1 misho 3312: fi
1.71 misho 3313: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3314: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.71 misho 3315: ;;
3316: esac
3317: fi
3318: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3320: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.70 misho 3321:
3322: if test $ac_compiler_gnu = yes; then
1.1 misho 3323: GCC=yes
3324: else
3325: GCC=
3326: fi
1.71 misho 3327: ac_test_CFLAGS=${CFLAGS+y}
1.1 misho 3328: ac_save_CFLAGS=$CFLAGS
1.71 misho 3329: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3330: printf %s "checking whether $CC accepts -g... " >&6; }
3331: if test ${ac_cv_prog_cc_g+y}
3332: then :
3333: printf %s "(cached) " >&6
3334: else case e in #(
3335: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.1 misho 3336: ac_c_werror_flag=yes
3337: ac_cv_prog_cc_g=no
3338: CFLAGS="-g"
3339: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340: /* end confdefs.h. */
3341:
3342: int
1.71 misho 3343: main (void)
1.1 misho 3344: {
3345:
3346: ;
3347: return 0;
3348: }
3349: _ACEOF
1.71 misho 3350: if ac_fn_c_try_compile "$LINENO"
3351: then :
1.1 misho 3352: ac_cv_prog_cc_g=yes
1.71 misho 3353: else case e in #(
3354: e) CFLAGS=""
1.1 misho 3355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356: /* end confdefs.h. */
3357:
3358: int
1.71 misho 3359: main (void)
1.1 misho 3360: {
3361:
3362: ;
3363: return 0;
3364: }
3365: _ACEOF
1.71 misho 3366: if ac_fn_c_try_compile "$LINENO"
3367: then :
1.1 misho 3368:
1.71 misho 3369: else case e in #(
3370: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misho 3371: CFLAGS="-g"
3372: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373: /* end confdefs.h. */
3374:
3375: int
1.71 misho 3376: main (void)
1.1 misho 3377: {
3378:
3379: ;
3380: return 0;
3381: }
3382: _ACEOF
1.71 misho 3383: if ac_fn_c_try_compile "$LINENO"
3384: then :
1.1 misho 3385: ac_cv_prog_cc_g=yes
3386: fi
1.71 misho 3387: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3388: esac
1.1 misho 3389: fi
1.71 misho 3390: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3391: esac
1.1 misho 3392: fi
1.71 misho 3393: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3394: ac_c_werror_flag=$ac_save_c_werror_flag ;;
3395: esac
1.1 misho 3396: fi
1.71 misho 3397: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3398: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3399: if test $ac_test_CFLAGS; then
1.1 misho 3400: CFLAGS=$ac_save_CFLAGS
3401: elif test $ac_cv_prog_cc_g = yes; then
3402: if test "$GCC" = yes; then
3403: CFLAGS="-g -O2"
3404: else
3405: CFLAGS="-g"
3406: fi
3407: else
3408: if test "$GCC" = yes; then
3409: CFLAGS="-O2"
3410: else
3411: CFLAGS=
3412: fi
3413: fi
1.71 misho 3414: ac_prog_cc_stdc=no
3415: if test x$ac_prog_cc_stdc = xno
3416: then :
3417: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3418: printf %s "checking for $CC option to enable C11 features... " >&6; }
3419: if test ${ac_cv_prog_cc_c11+y}
3420: then :
3421: printf %s "(cached) " >&6
3422: else case e in #(
3423: e) ac_cv_prog_cc_c11=no
1.1 misho 3424: ac_save_CC=$CC
3425: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426: /* end confdefs.h. */
1.71 misho 3427: $ac_c_conftest_c11_program
3428: _ACEOF
3429: for ac_arg in '' -std=gnu11
3430: do
3431: CC="$ac_save_CC $ac_arg"
3432: if ac_fn_c_try_compile "$LINENO"
3433: then :
3434: ac_cv_prog_cc_c11=$ac_arg
3435: fi
3436: rm -f core conftest.err conftest.$ac_objext conftest.beam
3437: test "x$ac_cv_prog_cc_c11" != "xno" && break
3438: done
3439: rm -f conftest.$ac_ext
3440: CC=$ac_save_CC ;;
3441: esac
3442: fi
1.70 misho 3443:
1.71 misho 3444: if test "x$ac_cv_prog_cc_c11" = xno
3445: then :
3446: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447: printf "%s\n" "unsupported" >&6; }
3448: else case e in #(
3449: e) if test "x$ac_cv_prog_cc_c11" = x
3450: then :
3451: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3452: printf "%s\n" "none needed" >&6; }
3453: else case e in #(
3454: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3455: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3456: CC="$CC $ac_cv_prog_cc_c11" ;;
3457: esac
3458: fi
3459: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3460: ac_prog_cc_stdc=c11 ;;
3461: esac
3462: fi
3463: fi
3464: if test x$ac_prog_cc_stdc = xno
3465: then :
3466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3467: printf %s "checking for $CC option to enable C99 features... " >&6; }
3468: if test ${ac_cv_prog_cc_c99+y}
3469: then :
3470: printf %s "(cached) " >&6
3471: else case e in #(
3472: e) ac_cv_prog_cc_c99=no
3473: ac_save_CC=$CC
3474: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475: /* end confdefs.h. */
3476: $ac_c_conftest_c99_program
3477: _ACEOF
3478: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3479: do
3480: CC="$ac_save_CC $ac_arg"
3481: if ac_fn_c_try_compile "$LINENO"
3482: then :
3483: ac_cv_prog_cc_c99=$ac_arg
3484: fi
3485: rm -f core conftest.err conftest.$ac_objext conftest.beam
3486: test "x$ac_cv_prog_cc_c99" != "xno" && break
3487: done
3488: rm -f conftest.$ac_ext
3489: CC=$ac_save_CC ;;
3490: esac
3491: fi
1.64 misho 3492:
1.71 misho 3493: if test "x$ac_cv_prog_cc_c99" = xno
3494: then :
3495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496: printf "%s\n" "unsupported" >&6; }
3497: else case e in #(
3498: e) if test "x$ac_cv_prog_cc_c99" = x
3499: then :
3500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3501: printf "%s\n" "none needed" >&6; }
3502: else case e in #(
3503: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3504: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3505: CC="$CC $ac_cv_prog_cc_c99" ;;
3506: esac
3507: fi
3508: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3509: ac_prog_cc_stdc=c99 ;;
3510: esac
3511: fi
3512: fi
3513: if test x$ac_prog_cc_stdc = xno
3514: then :
3515: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3516: printf %s "checking for $CC option to enable C89 features... " >&6; }
3517: if test ${ac_cv_prog_cc_c89+y}
3518: then :
3519: printf %s "(cached) " >&6
3520: else case e in #(
3521: e) ac_cv_prog_cc_c89=no
3522: ac_save_CC=$CC
3523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524: /* end confdefs.h. */
3525: $ac_c_conftest_c89_program
1.1 misho 3526: _ACEOF
1.71 misho 3527: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misho 3528: do
3529: CC="$ac_save_CC $ac_arg"
1.71 misho 3530: if ac_fn_c_try_compile "$LINENO"
3531: then :
1.1 misho 3532: ac_cv_prog_cc_c89=$ac_arg
3533: fi
1.71 misho 3534: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.1 misho 3535: test "x$ac_cv_prog_cc_c89" != "xno" && break
3536: done
3537: rm -f conftest.$ac_ext
1.71 misho 3538: CC=$ac_save_CC ;;
3539: esac
3540: fi
1.64 misho 3541:
1.71 misho 3542: if test "x$ac_cv_prog_cc_c89" = xno
3543: then :
3544: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545: printf "%s\n" "unsupported" >&6; }
3546: else case e in #(
3547: e) if test "x$ac_cv_prog_cc_c89" = x
3548: then :
3549: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3550: printf "%s\n" "none needed" >&6; }
3551: else case e in #(
3552: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3554: CC="$CC $ac_cv_prog_cc_c89" ;;
3555: esac
1.65 misho 3556: fi
1.71 misho 3557: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3558: ac_prog_cc_stdc=c89 ;;
1.69 misho 3559: esac
1.71 misho 3560: fi
1.1 misho 3561: fi
3562:
3563: ac_ext=c
3564: ac_cpp='$CPP $CPPFLAGS'
3565: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568:
1.70 misho 3569:
1.1 misho 3570:
1.71 misho 3571: # Find a good install program. We prefer a C program (faster),
1.1 misho 3572: # so one script is as good as another. But avoid the broken or
3573: # incompatible versions:
3574: # SysV /etc/install, /usr/sbin/install
3575: # SunOS /usr/etc/install
3576: # IRIX /sbin/install
3577: # AIX /bin/install
3578: # AmigaOS /C/install, which installs bootblocks on floppy discs
3579: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3580: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3581: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3582: # OS/2's system install, which has a completely different semantic
3583: # ./install, which can be erroneously created by make from ./install.sh.
3584: # Reject install programs that cannot install multiple files.
1.71 misho 3585: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3586: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 misho 3587: if test -z "$INSTALL"; then
1.71 misho 3588: if test ${ac_cv_path_install+y}
3589: then :
3590: printf %s "(cached) " >&6
3591: else case e in #(
3592: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 3593: for as_dir in $PATH
3594: do
3595: IFS=$as_save_IFS
1.71 misho 3596: case $as_dir in #(((
3597: '') as_dir=./ ;;
3598: */) ;;
3599: *) as_dir=$as_dir/ ;;
3600: esac
3601: # Account for fact that we put trailing slashes in our PATH walk.
3602: case $as_dir in #((
3603: ./ | /[cC]/* | \
1.1 misho 3604: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3605: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3606: /usr/ucb/* ) ;;
3607: *)
3608: # OSF1 and SCO ODT 3.0 have their own names for install.
3609: # Don't use installbsd from OSF since it installs stuff as root
3610: # by default.
3611: for ac_prog in ginstall scoinst install; do
3612: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 3613: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.1 misho 3614: if test $ac_prog = install &&
1.71 misho 3615: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 misho 3616: # AIX install. It has an incompatible calling convention.
3617: :
3618: elif test $ac_prog = install &&
1.71 misho 3619: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 misho 3620: # program-specific install script used by HP pwplus--don't use.
3621: :
3622: else
3623: rm -rf conftest.one conftest.two conftest.dir
3624: echo one > conftest.one
3625: echo two > conftest.two
3626: mkdir conftest.dir
1.71 misho 3627: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.1 misho 3628: test -s conftest.one && test -s conftest.two &&
3629: test -s conftest.dir/conftest.one &&
3630: test -s conftest.dir/conftest.two
3631: then
1.71 misho 3632: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.1 misho 3633: break 3
3634: fi
3635: fi
3636: fi
3637: done
3638: done
3639: ;;
3640: esac
3641:
3642: done
3643: IFS=$as_save_IFS
3644:
3645: rm -rf conftest.one conftest.two conftest.dir
1.71 misho 3646: ;;
3647: esac
1.1 misho 3648: fi
1.71 misho 3649: if test ${ac_cv_path_install+y}; then
1.1 misho 3650: INSTALL=$ac_cv_path_install
3651: else
3652: # As a last resort, use the slow shell script. Don't cache a
3653: # value for INSTALL within a source directory, because that will
3654: # break other packages using the cache if that directory is
3655: # removed, or if the value is a relative name.
3656: INSTALL=$ac_install_sh
3657: fi
3658: fi
1.71 misho 3659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3660: printf "%s\n" "$INSTALL" >&6; }
1.1 misho 3661:
3662: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3663: # It thinks the first close brace ends the variable substitution.
3664: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3665:
3666: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3667:
3668: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3669:
1.2 misho 3670: if test -n "$ac_tool_prefix"; then
3671: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3672: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.71 misho 3673: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674: printf %s "checking for $ac_word... " >&6; }
3675: if test ${ac_cv_prog_RANLIB+y}
3676: then :
3677: printf %s "(cached) " >&6
3678: else case e in #(
3679: e) if test -n "$RANLIB"; then
1.2 misho 3680: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3681: else
3682: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683: for as_dir in $PATH
3684: do
3685: IFS=$as_save_IFS
1.71 misho 3686: case $as_dir in #(((
3687: '') as_dir=./ ;;
3688: */) ;;
3689: *) as_dir=$as_dir/ ;;
3690: esac
1.2 misho 3691: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 3692: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 misho 3693: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.71 misho 3694: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 misho 3695: break 2
3696: fi
3697: done
3698: done
3699: IFS=$as_save_IFS
3700:
1.71 misho 3701: fi ;;
3702: esac
1.2 misho 3703: fi
3704: RANLIB=$ac_cv_prog_RANLIB
3705: if test -n "$RANLIB"; then
1.71 misho 3706: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3707: printf "%s\n" "$RANLIB" >&6; }
1.2 misho 3708: else
1.71 misho 3709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710: printf "%s\n" "no" >&6; }
1.2 misho 3711: fi
3712:
3713:
3714: fi
3715: if test -z "$ac_cv_prog_RANLIB"; then
3716: ac_ct_RANLIB=$RANLIB
3717: # Extract the first word of "ranlib", so it can be a program name with args.
3718: set dummy ranlib; ac_word=$2
1.71 misho 3719: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720: printf %s "checking for $ac_word... " >&6; }
3721: if test ${ac_cv_prog_ac_ct_RANLIB+y}
3722: then :
3723: printf %s "(cached) " >&6
3724: else case e in #(
3725: e) if test -n "$ac_ct_RANLIB"; then
1.2 misho 3726: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3727: else
3728: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729: for as_dir in $PATH
3730: do
3731: IFS=$as_save_IFS
1.71 misho 3732: case $as_dir in #(((
3733: '') as_dir=./ ;;
3734: */) ;;
3735: *) as_dir=$as_dir/ ;;
3736: esac
1.2 misho 3737: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 3738: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.2 misho 3739: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.71 misho 3740: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.2 misho 3741: break 2
3742: fi
3743: done
3744: done
3745: IFS=$as_save_IFS
3746:
1.71 misho 3747: fi ;;
3748: esac
1.2 misho 3749: fi
3750: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3751: if test -n "$ac_ct_RANLIB"; then
1.71 misho 3752: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3753: printf "%s\n" "$ac_ct_RANLIB" >&6; }
1.2 misho 3754: else
1.71 misho 3755: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756: printf "%s\n" "no" >&6; }
1.2 misho 3757: fi
3758:
3759: if test "x$ac_ct_RANLIB" = x; then
3760: RANLIB=":"
3761: else
3762: case $cross_compiling:$ac_tool_warned in
3763: yes:)
1.71 misho 3764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.2 misho 3766: ac_tool_warned=yes ;;
3767: esac
3768: RANLIB=$ac_ct_RANLIB
3769: fi
3770: else
3771: RANLIB="$ac_cv_prog_RANLIB"
3772: fi
3773:
1.1 misho 3774:
1.71 misho 3775:
3776:
3777: # Make sure we can run config.sub.
3778: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3779: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3780:
3781: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782: printf %s "checking build system type... " >&6; }
3783: if test ${ac_cv_build+y}
3784: then :
3785: printf %s "(cached) " >&6
3786: else case e in #(
3787: e) ac_build_alias=$build_alias
1.1 misho 3788: test "x$ac_build_alias" = x &&
1.71 misho 3789: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.1 misho 3790: test "x$ac_build_alias" = x &&
3791: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.71 misho 3792: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3793: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3794: ;;
3795: esac
1.1 misho 3796: fi
1.71 misho 3797: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3798: printf "%s\n" "$ac_cv_build" >&6; }
1.1 misho 3799: case $ac_cv_build in
3800: *-*-*) ;;
3801: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3802: esac
3803: build=$ac_cv_build
3804: ac_save_IFS=$IFS; IFS='-'
3805: set x $ac_cv_build
3806: shift
3807: build_cpu=$1
3808: build_vendor=$2
3809: shift; shift
3810: # Remember, the first character of IFS is used to create $*,
3811: # except with old shells:
3812: build_os=$*
3813: IFS=$ac_save_IFS
3814: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3815:
3816:
1.71 misho 3817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3818: printf %s "checking host system type... " >&6; }
3819: if test ${ac_cv_host+y}
3820: then :
3821: printf %s "(cached) " >&6
3822: else case e in #(
3823: e) if test "x$host_alias" = x; then
1.1 misho 3824: ac_cv_host=$ac_cv_build
3825: else
1.71 misho 3826: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3827: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.1 misho 3828: fi
1.71 misho 3829: ;;
3830: esac
1.1 misho 3831: fi
1.71 misho 3832: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3833: printf "%s\n" "$ac_cv_host" >&6; }
1.1 misho 3834: case $ac_cv_host in
3835: *-*-*) ;;
3836: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3837: esac
3838: host=$ac_cv_host
3839: ac_save_IFS=$IFS; IFS='-'
3840: set x $ac_cv_host
3841: shift
3842: host_cpu=$1
3843: host_vendor=$2
3844: shift; shift
3845: # Remember, the first character of IFS is used to create $*,
3846: # except with old shells:
3847: host_os=$*
3848: IFS=$ac_save_IFS
3849: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3850:
3851:
1.71 misho 3852: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3853: printf %s "checking target system type... " >&6; }
3854: if test ${ac_cv_target+y}
3855: then :
3856: printf %s "(cached) " >&6
3857: else case e in #(
3858: e) if test "x$target_alias" = x; then
1.1 misho 3859: ac_cv_target=$ac_cv_host
3860: else
1.71 misho 3861: ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3862: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
1.1 misho 3863: fi
1.71 misho 3864: ;;
3865: esac
1.1 misho 3866: fi
1.71 misho 3867: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3868: printf "%s\n" "$ac_cv_target" >&6; }
1.1 misho 3869: case $ac_cv_target in
3870: *-*-*) ;;
3871: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3872: esac
3873: target=$ac_cv_target
3874: ac_save_IFS=$IFS; IFS='-'
3875: set x $ac_cv_target
3876: shift
3877: target_cpu=$1
3878: target_vendor=$2
3879: shift; shift
3880: # Remember, the first character of IFS is used to create $*,
3881: # except with old shells:
3882: target_os=$*
1.70 misho 3883: IFS=$ac_save_IFS
3884: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3885:
3886:
3887: # The aliases save the names the user supplied, while $host etc.
3888: # will get canonicalized.
3889: test -n "$target_alias" &&
3890: test "$program_prefix$program_suffix$program_transform_name" = \
3891: NONENONEs,x,x, &&
3892: program_prefix=${target_alias}-
3893:
3894: if test -n "$ac_tool_prefix"; then
3895: # Extract the first word of "${ac_tool_prefix}mkdep", so it can be a program name with args.
3896: set dummy ${ac_tool_prefix}mkdep; ac_word=$2
1.71 misho 3897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898: printf %s "checking for $ac_word... " >&6; }
3899: if test ${ac_cv_prog_MKDEP+y}
3900: then :
3901: printf %s "(cached) " >&6
3902: else case e in #(
3903: e) if test -n "$MKDEP"; then
1.70 misho 3904: ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
3905: else
3906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907: for as_dir in $PATH
3908: do
3909: IFS=$as_save_IFS
1.71 misho 3910: case $as_dir in #(((
3911: '') as_dir=./ ;;
3912: */) ;;
3913: *) as_dir=$as_dir/ ;;
3914: esac
1.70 misho 3915: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 3916: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.70 misho 3917: ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
1.71 misho 3918: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.70 misho 3919: break 2
3920: fi
3921: done
3922: done
3923: IFS=$as_save_IFS
3924:
1.71 misho 3925: fi ;;
3926: esac
1.70 misho 3927: fi
1.71 misho 3928: MKDEP=$ac_cv_prog_MKDEP
3929: if test -n "$MKDEP"; then
3930: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
3931: printf "%s\n" "$MKDEP" >&6; }
1.70 misho 3932: else
1.71 misho 3933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934: printf "%s\n" "no" >&6; }
1.70 misho 3935: fi
3936:
3937:
1.71 misho 3938: fi
3939: if test -z "$ac_cv_prog_MKDEP"; then
3940: ac_ct_MKDEP=$MKDEP
3941: # Extract the first word of "mkdep", so it can be a program name with args.
3942: set dummy mkdep; ac_word=$2
3943: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944: printf %s "checking for $ac_word... " >&6; }
3945: if test ${ac_cv_prog_ac_ct_MKDEP+y}
3946: then :
3947: printf %s "(cached) " >&6
3948: else case e in #(
3949: e) if test -n "$ac_ct_MKDEP"; then
3950: ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
1.70 misho 3951: else
1.71 misho 3952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953: for as_dir in $PATH
1.1 misho 3954: do
3955: IFS=$as_save_IFS
1.71 misho 3956: case $as_dir in #(((
3957: '') as_dir=./ ;;
3958: */) ;;
3959: *) as_dir=$as_dir/ ;;
3960: esac
1.1 misho 3961: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 3962: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3963: ac_cv_prog_ac_ct_MKDEP="mkdep"
3964: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3965: break 2
3966: fi
3967: done
1.70 misho 3968: done
1.71 misho 3969: IFS=$as_save_IFS
3970:
3971: fi ;;
1.70 misho 3972: esac
1.71 misho 3973: fi
3974: ac_ct_MKDEP=$ac_cv_prog_ac_ct_MKDEP
3975: if test -n "$ac_ct_MKDEP"; then
3976: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDEP" >&5
3977: printf "%s\n" "$ac_ct_MKDEP" >&6; }
3978: else
3979: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980: printf "%s\n" "no" >&6; }
3981: fi
1.70 misho 3982:
1.71 misho 3983: if test "x$ac_ct_MKDEP" = x; then
3984: MKDEP="../mkdep"
3985: else
3986: case $cross_compiling:$ac_tool_warned in
3987: yes:)
3988: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990: ac_tool_warned=yes ;;
3991: esac
3992: MKDEP=$ac_ct_MKDEP
1.70 misho 3993: fi
3994: else
1.71 misho 3995: MKDEP="$ac_cv_prog_MKDEP"
1.70 misho 3996: fi
1.1 misho 3997:
1.64 misho 3998:
3999:
1.71 misho 4000: if test "${ac_cv_env_CFLAGS_set}" != "set"; then
4001: CFLAGS="-Wall -O2"
1.64 misho 4002: else
1.71 misho 4003: CFLAGS="${ac_cv_env_CFLAGS_value}"
1.64 misho 4004: fi
1.71 misho 4005: if test "${ac_cv_env_LDFLAGS_set}" = "set"; then
4006: LDFLAGS="${ac_cv_env_LDFLAGS_value}"
1.70 misho 4007: fi
1.64 misho 4008:
4009:
1.71 misho 4010: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
4011: printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
4012: if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
4013: then :
4014: printf %s "(cached) " >&6
4015: else case e in #(
4016: e) ac_check_lib_save_LIBS=$LIBS
4017: LIBS="-lpthread $LIBS"
4018: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 misho 4019: /* end confdefs.h. */
1.1 misho 4020:
1.71 misho 4021: /* Override any GCC internal prototype to avoid an error.
4022: Use char because int might match the return type of a GCC
4023: builtin and then its argument prototype would still apply.
4024: The 'extern "C"' is for builds by C++ compilers;
4025: although this is not generally supported in C code supporting it here
4026: has little cost and some practical benefit (sr 110532). */
4027: #ifdef __cplusplus
4028: extern "C"
4029: #endif
4030: char pthread_mutex_init (void);
1.64 misho 4031: int
1.71 misho 4032: main (void)
1.64 misho 4033: {
1.71 misho 4034: return pthread_mutex_init ();
1.64 misho 4035: ;
4036: return 0;
4037: }
4038: _ACEOF
1.71 misho 4039: if ac_fn_c_try_link "$LINENO"
4040: then :
4041: ac_cv_lib_pthread_pthread_mutex_init=yes
4042: else case e in #(
4043: e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
4044: esac
4045: fi
4046: rm -f core conftest.err conftest.$ac_objext conftest.beam \
4047: conftest$ac_exeext conftest.$ac_ext
4048: LIBS=$ac_check_lib_save_LIBS ;;
4049: esac
1.65 misho 4050: fi
1.71 misho 4051: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
4052: printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
4053: if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
4054: then :
4055: printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
1.70 misho 4056:
1.71 misho 4057: LIBS="-lpthread $LIBS"
1.70 misho 4058:
1.71 misho 4059: fi
1.70 misho 4060:
1.1 misho 4061:
1.71 misho 4062: # Checks for header files.
4063: ac_header= ac_cache=
4064: for ac_item in $ac_header_c_list
4065: do
4066: if test $ac_cache; then
4067: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4068: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4069: printf "%s\n" "#define $ac_item 1" >> confdefs.h
4070: fi
4071: ac_header= ac_cache=
4072: elif test $ac_header; then
4073: ac_cache=$ac_item
4074: else
4075: ac_header=$ac_item
4076: fi
4077: done
1.1 misho 4078:
4079:
4080:
4081:
4082:
4083:
4084:
1.64 misho 4085:
1.71 misho 4086: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4087: then :
1.64 misho 4088:
1.71 misho 4089: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.1 misho 4090:
1.70 misho 4091: fi
1.71 misho 4092: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4093: if test "x$ac_cv_header_stdlib_h" = xyes
4094: then :
4095: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
1.64 misho 4096:
1.71 misho 4097: fi
4098: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4099: if test "x$ac_cv_header_string_h" = xyes
4100: then :
4101: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
1.1 misho 4102:
4103: fi
1.71 misho 4104: ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4105: if test "x$ac_cv_header_sys_ioctl_h" = xyes
4106: then :
4107: printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
1.64 misho 4108:
1.71 misho 4109: fi
4110: ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
4111: if test "x$ac_cv_header_termios_h" = xyes
4112: then :
4113: printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
1.1 misho 4114:
1.71 misho 4115: fi
4116: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4117: if test "x$ac_cv_header_unistd_h" = xyes
4118: then :
4119: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
1.1 misho 4120:
4121: fi
1.62 misho 4122:
1.1 misho 4123:
4124: # Checks for typedefs, structures, and compiler characteristics.
1.71 misho 4125: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4126: printf %s "checking for inline... " >&6; }
4127: if test ${ac_cv_c_inline+y}
4128: then :
4129: printf %s "(cached) " >&6
4130: else case e in #(
4131: e) ac_cv_c_inline=no
1.1 misho 4132: for ac_kw in inline __inline__ __inline; do
4133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134: /* end confdefs.h. */
4135: #ifndef __cplusplus
4136: typedef int foo_t;
1.71 misho 4137: static $ac_kw foo_t static_foo (void) {return 0; }
4138: $ac_kw foo_t foo (void) {return 0; }
1.1 misho 4139: #endif
4140:
4141: _ACEOF
1.71 misho 4142: if ac_fn_c_try_compile "$LINENO"
4143: then :
1.1 misho 4144: ac_cv_c_inline=$ac_kw
4145: fi
1.71 misho 4146: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4147: test "$ac_cv_c_inline" != no && break
4148: done
1.71 misho 4149: ;;
4150: esac
1.1 misho 4151: fi
1.71 misho 4152: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4153: printf "%s\n" "$ac_cv_c_inline" >&6; }
1.1 misho 4154:
4155: case $ac_cv_c_inline in
4156: inline | yes) ;;
4157: *)
4158: case $ac_cv_c_inline in
4159: no) ac_val=;;
4160: *) ac_val=$ac_cv_c_inline;;
4161: esac
4162: cat >>confdefs.h <<_ACEOF
4163: #ifndef __cplusplus
4164: #define inline $ac_val
4165: #endif
4166: _ACEOF
4167: ;;
4168: esac
4169:
1.80 ! misho 4170: ac_fn_c_check_type "$LINENO" "uuid_t" "ac_cv_type_uuid_t" "$ac_includes_default"
! 4171: if test "x$ac_cv_type_uuid_t" = xyes
! 4172: then :
! 4173:
! 4174: printf "%s\n" "#define HAVE_UUID_T 1" >>confdefs.h
! 4175:
! 4176:
! 4177: fi
! 4178:
1.1 misho 4179:
4180: # Checks for library functions.
1.71 misho 4181: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4182: printf %s "checking for GNU libc compatible malloc... " >&6; }
4183: if test ${ac_cv_func_malloc_0_nonnull+y}
4184: then :
4185: printf %s "(cached) " >&6
4186: else case e in #(
4187: e) if test "$cross_compiling" = yes
4188: then :
4189: case "$host_os" in # ((
4190: # Guess yes on platforms where we know the result.
4191: *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4192: | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
4193: ac_cv_func_malloc_0_nonnull=yes ;;
4194: # If we don't know, assume the worst.
4195: *) ac_cv_func_malloc_0_nonnull=no ;;
4196: esac
4197: else case e in #(
4198: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4199: /* end confdefs.h. */
1.71 misho 4200: #include <stdlib.h>
1.1 misho 4201:
4202: int
1.71 misho 4203: main (void)
1.1 misho 4204: {
1.71 misho 4205: void *p = malloc (0);
4206: int result = !p;
4207: free (p);
4208: return result;
1.1 misho 4209: ;
4210: return 0;
4211: }
4212: _ACEOF
1.71 misho 4213: if ac_fn_c_try_run "$LINENO"
4214: then :
1.1 misho 4215: ac_cv_func_malloc_0_nonnull=yes
1.71 misho 4216: else case e in #(
4217: e) ac_cv_func_malloc_0_nonnull=no ;;
4218: esac
1.1 misho 4219: fi
4220: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.71 misho 4221: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4222: esac
1.1 misho 4223: fi
1.71 misho 4224: ;;
4225: esac
1.1 misho 4226: fi
1.71 misho 4227: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4228: printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
4229: if test $ac_cv_func_malloc_0_nonnull = yes
4230: then :
1.1 misho 4231:
1.71 misho 4232: printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
1.1 misho 4233:
1.71 misho 4234: else case e in #(
4235: e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
1.1 misho 4236:
4237: case " $LIBOBJS " in
4238: *" malloc.$ac_objext "* ) ;;
4239: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4240: ;;
4241: esac
4242:
4243:
1.71 misho 4244: printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
4245: ;;
4246: esac
1.70 misho 4247: fi
4248:
4249:
1.71 misho 4250: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4251: printf %s "checking for GNU libc compatible realloc... " >&6; }
4252: if test ${ac_cv_func_realloc_0_nonnull+y}
4253: then :
4254: printf %s "(cached) " >&6
4255: else case e in #(
4256: e) if test "$cross_compiling" = yes
4257: then :
4258: case "$host_os" in # ((
4259: # Guess yes on platforms where we know the result.
4260: *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4261: | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
4262: ac_cv_func_realloc_0_nonnull=yes ;;
4263: # If we don't know, assume the worst.
4264: *) ac_cv_func_realloc_0_nonnull=no ;;
4265: esac
4266: else case e in #(
4267: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4268: /* end confdefs.h. */
1.71 misho 4269: #include <stdlib.h>
1.1 misho 4270:
4271: int
1.71 misho 4272: main (void)
1.1 misho 4273: {
1.71 misho 4274: void *p = realloc (0, 0);
4275: int result = !p;
4276: free (p);
4277: return result;
1.1 misho 4278: ;
4279: return 0;
4280: }
4281: _ACEOF
1.71 misho 4282: if ac_fn_c_try_run "$LINENO"
4283: then :
1.1 misho 4284: ac_cv_func_realloc_0_nonnull=yes
1.71 misho 4285: else case e in #(
4286: e) ac_cv_func_realloc_0_nonnull=no ;;
4287: esac
1.1 misho 4288: fi
4289: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.71 misho 4290: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4291: esac
1.1 misho 4292: fi
1.71 misho 4293: ;;
4294: esac
1.1 misho 4295: fi
1.71 misho 4296: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4297: printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
4298: if test $ac_cv_func_realloc_0_nonnull = yes
4299: then :
1.1 misho 4300:
1.71 misho 4301: printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
1.1 misho 4302:
1.71 misho 4303: else case e in #(
4304: e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
1.1 misho 4305:
4306: case " $LIBOBJS " in
4307: *" realloc.$ac_objext "* ) ;;
4308: *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4309: ;;
4310: esac
4311:
4312:
1.71 misho 4313: printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
4314: ;;
4315: esac
4316: fi
4317:
4318:
4319: ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4320: if test "x$ac_cv_func_memset" = xyes
4321: then :
4322: printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4323:
4324: fi
4325: ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
4326: if test "x$ac_cv_func_regcomp" = xyes
4327: then :
4328: printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
4329:
4330: fi
4331: ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4332: if test "x$ac_cv_func_strchr" = xyes
4333: then :
4334: printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4335:
4336: fi
4337: ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
4338: if test "x$ac_cv_func_strerror" = xyes
4339: then :
4340: printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
1.65 misho 4341:
4342: fi
1.71 misho 4343: ac_fn_c_check_func "$LINENO" "link_addr" "ac_cv_func_link_addr"
4344: if test "x$ac_cv_func_link_addr" = xyes
4345: then :
4346: printf "%s\n" "#define HAVE_LINK_ADDR 1" >>confdefs.h
1.65 misho 4347:
1.71 misho 4348: fi
4349: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
4350: if test "x$ac_cv_func_strlcpy" = xyes
4351: then :
4352: printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
1.65 misho 4353:
1.71 misho 4354: fi
4355: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
4356: if test "x$ac_cv_func_strlcat" = xyes
4357: then :
4358: printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
1.1 misho 4359:
4360: fi
4361:
4362:
4363: DEBUG=no
1.71 misho 4364: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
4365: printf %s "checking Debug Build... " >&6; }
1.1 misho 4366: # Check whether --enable-debug was given.
1.71 misho 4367: if test ${enable_debug+y}
4368: then :
1.1 misho 4369: enableval=$enable_debug; DEBUG=$enableval
4370: case "$enableval" in
4371: yes)
4372: CFLAGS="-g ${CFLAGS}"
4373: ;;
4374: *)
4375:
1.71 misho 4376: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
1.1 misho 4377:
4378: ;;
4379: esac
4380: fi
4381:
1.71 misho 4382: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
4383: printf "%s\n" "$DEBUG" >&6; }
1.1 misho 4384:
1.27 misho 4385: MEMMGR="elwix"
1.71 misho 4386: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Memory management" >&5
4387: printf %s "checking Memory management... " >&6; }
1.27 misho 4388:
4389: # Check whether --with-memmgr was given.
1.71 misho 4390: if test ${with_memmgr+y}
4391: then :
1.27 misho 4392: withval=$with_memmgr; case "$withval" in
4393: sys|system)
4394: MEMMGR="system"
4395:
1.71 misho 4396: printf "%s\n" "#define MEMMGR ELWIX_SYSM" >>confdefs.h
1.27 misho 4397:
4398: ;;
4399: *)
4400: MEMMGR="elwix"
4401:
1.71 misho 4402: printf "%s\n" "#define MEMMGR ELWIX_MPOOL" >>confdefs.h
1.27 misho 4403:
4404: ;;
4405: esac
1.71 misho 4406: else case e in #(
4407: e)
4408: printf "%s\n" "#define MEMMGR ELWIX_MPOOL" >>confdefs.h
4409: ;;
4410: esac
1.65 misho 4411: fi
4412:
1.71 misho 4413: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MEMMGR" >&5
4414: printf "%s\n" "$MEMMGR" >&6; }
1.65 misho 4415:
1.69 misho 4416: MPOOL_MEM_ZERO=no
1.71 misho 4417: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MPoll zeroing allocated memory" >&5
4418: printf %s "checking MPoll zeroing allocated memory... " >&6; }
1.69 misho 4419: # Check whether --enable-mpool-mem-zero was given.
1.71 misho 4420: if test ${enable_mpool_mem_zero+y}
4421: then :
1.69 misho 4422: enableval=$enable_mpool_mem_zero; case "$enableval" in
4423: yes)
4424:
1.71 misho 4425: printf "%s\n" "#define MPOOL_MEM_ZERO /**/" >>confdefs.h
1.69 misho 4426:
4427: MPOOL_MEM_ZERO=yes
4428: ;;
4429: *)
4430: MPOOL_MEM_ZERO=no
4431: ;;
4432: esac
4433: fi
4434:
1.71 misho 4435: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPOOL_MEM_ZERO" >&5
4436: printf "%s\n" "$MPOOL_MEM_ZERO" >&6; }
1.69 misho 4437:
1.65 misho 4438: PATRICIA=no
1.71 misho 4439: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Patricia support" >&5
4440: printf %s "checking Patricia support... " >&6; }
1.65 misho 4441: # Check whether --enable-patricia was given.
1.71 misho 4442: if test ${enable_patricia+y}
4443: then :
1.65 misho 4444: enableval=$enable_patricia; case "$enableval" in
4445: yes)
4446:
1.71 misho 4447: printf "%s\n" "#define PATRICIA_SUPPORT /**/" >>confdefs.h
1.65 misho 4448:
4449: PATRICIA=yes
4450: ;;
4451: *)
4452: ;;
4453: esac
4454: fi
4455:
1.71 misho 4456: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATRICIA" >&5
4457: printf "%s\n" "$PATRICIA" >&6; }
1.65 misho 4458:
4459: PELCO=no
1.71 misho 4460: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Pelco support" >&5
4461: printf %s "checking Pelco support... " >&6; }
1.65 misho 4462: # Check whether --enable-pelco was given.
1.71 misho 4463: if test ${enable_pelco+y}
4464: then :
1.65 misho 4465: enableval=$enable_pelco; case "$enableval" in
4466: yes)
1.27 misho 4467:
1.71 misho 4468: printf "%s\n" "#define PELCO_SUPPORT /**/" >>confdefs.h
1.27 misho 4469:
1.65 misho 4470: PELCO=yes
4471: ;;
4472: *)
4473: ;;
4474: esac
1.27 misho 4475: fi
4476:
1.71 misho 4477: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PELCO" >&5
4478: printf "%s\n" "$PELCO" >&6; }
1.27 misho 4479:
1.69 misho 4480: DEBIAN_ARCH=$target_cpu
1.71 misho 4481: if test "x$target_cpu" = "xarm6l" -o "x$target_cpu" = "xarm7l"
4482: then :
1.69 misho 4483: DEBIAN_ARCH="armhf"
4484: fi
1.71 misho 4485: if test "x$target_cpu" = "xaarch64"
4486: then :
1.69 misho 4487: DEBIAN_ARCH="arm64"
4488: fi
1.71 misho 4489: if test "x$target_cpu" = "xi686"
4490: then :
1.69 misho 4491: DEBIAN_ARCH="i386"
4492: fi
1.71 misho 4493: if test "x$target_cpu" = "xx86_64"
4494: then :
1.69 misho 4495: DEBIAN_ARCH="amd64"
4496: fi
4497:
4498:
4499:
4500: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile debian/Makefile debian/control src/Makefile"
1.1 misho 4501:
4502: cat >confcache <<\_ACEOF
4503: # This file is a shell script that caches the results of configure
4504: # tests run on this system so they can be shared between configure
4505: # scripts and configure runs, see configure's option --config-cache.
4506: # It is not useful on other systems. If it contains results you don't
4507: # want to keep, you may remove or edit it.
4508: #
4509: # config.status only pays attention to the cache file if you give it
4510: # the --recheck option to rerun configure.
4511: #
1.71 misho 4512: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4513: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.1 misho 4514: # following values.
4515:
4516: _ACEOF
4517:
4518: # The following way of writing the cache mishandles newlines in values,
4519: # but we know of no workaround that is simple, portable, and efficient.
4520: # So, we kill variables containing newlines.
4521: # Ultrix sh set writes to stderr and can't be redirected directly,
4522: # and sets the high bit in the cache file unless we assign to the vars.
4523: (
4524: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4525: eval ac_val=\$$ac_var
4526: case $ac_val in #(
4527: *${as_nl}*)
4528: case $ac_var in #(
1.71 misho 4529: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4530: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 4531: esac
4532: case $ac_var in #(
4533: _ | IFS | as_nl) ;; #(
4534: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4535: *) { eval $ac_var=; unset $ac_var;} ;;
4536: esac ;;
4537: esac
4538: done
4539:
4540: (set) 2>&1 |
4541: case $as_nl`(ac_space=' '; set) 2>&1` in #(
4542: *${as_nl}ac_space=\ *)
1.71 misho 4543: # 'set' does not quote correctly, so add quotes: double-quote
1.1 misho 4544: # substitution turns \\\\ into \\, and sed turns \\ into \.
4545: sed -n \
4546: "s/'/'\\\\''/g;
4547: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4548: ;; #(
4549: *)
1.71 misho 4550: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.1 misho 4551: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4552: ;;
4553: esac |
4554: sort
4555: ) |
4556: sed '
4557: /^ac_cv_env_/b end
4558: t clear
4559: :clear
1.71 misho 4560: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.1 misho 4561: t end
4562: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4563: :end' >>confcache
4564: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4565: if test -w "$cache_file"; then
4566: if test "x$cache_file" != "x/dev/null"; then
1.71 misho 4567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4568: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.1 misho 4569: if test ! -f "$cache_file" || test -h "$cache_file"; then
4570: cat confcache >"$cache_file"
4571: else
4572: case $cache_file in #(
4573: */* | ?:*)
4574: mv -f confcache "$cache_file"$$ &&
4575: mv -f "$cache_file"$$ "$cache_file" ;; #(
4576: *)
4577: mv -f confcache "$cache_file" ;;
4578: esac
4579: fi
4580: fi
4581: else
1.71 misho 4582: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4583: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 misho 4584: fi
4585: fi
4586: rm -f confcache
4587:
4588: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4589: # Let make expand exec_prefix.
4590: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4591:
4592: DEFS=-DHAVE_CONFIG_H
4593:
4594: ac_libobjs=
4595: ac_ltlibobjs=
4596: U=
4597: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4598: # 1. Remove the extension, and $U if already installed.
4599: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.71 misho 4600: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.1 misho 4601: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4602: # will be set to the directory where LIBOBJS objects are built.
4603: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4604: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4605: done
4606: LIBOBJS=$ac_libobjs
4607:
4608: LTLIBOBJS=$ac_ltlibobjs
4609:
4610:
4611:
4612: : "${CONFIG_STATUS=./config.status}"
4613: ac_write_fail=0
4614: ac_clean_files_save=$ac_clean_files
4615: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.71 misho 4616: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4617: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.1 misho 4618: as_write_fail=0
4619: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4620: #! $SHELL
4621: # Generated by $as_me.
4622: # Run this file to recreate the current configuration.
4623: # Compiler output produced by configure, useful for debugging
4624: # configure, is in config.log if it exists.
4625:
4626: debug=false
4627: ac_cs_recheck=false
4628: ac_cs_silent=false
4629:
4630: SHELL=\${CONFIG_SHELL-$SHELL}
4631: export SHELL
4632: _ASEOF
4633: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4634: ## -------------------- ##
4635: ## M4sh Initialization. ##
4636: ## -------------------- ##
4637:
4638: # Be more Bourne compatible
4639: DUALCASE=1; export DUALCASE # for MKS sh
1.71 misho 4640: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4641: then :
1.1 misho 4642: emulate sh
4643: NULLCMD=:
4644: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4645: # is contrary to our usage. Disable this feature.
4646: alias -g '${1+"$@"}'='"$@"'
4647: setopt NO_GLOB_SUBST
1.71 misho 4648: else case e in #(
4649: e) case `(set -o) 2>/dev/null` in #(
1.1 misho 4650: *posix*) :
4651: set -o posix ;; #(
4652: *) :
4653: ;;
1.71 misho 4654: esac ;;
1.1 misho 4655: esac
4656: fi
4657:
4658:
1.71 misho 4659:
4660: # Reset variables that may have inherited troublesome values from
4661: # the environment.
4662:
4663: # IFS needs to be set, to space, tab, and newline, in precisely that order.
4664: # (If _AS_PATH_WALK were called with IFS unset, it would have the
4665: # side effect of setting IFS to empty, thus disabling word splitting.)
4666: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 4667: as_nl='
4668: '
4669: export as_nl
1.71 misho 4670: IFS=" "" $as_nl"
4671:
4672: PS1='$ '
4673: PS2='> '
4674: PS4='+ '
4675:
4676: # Ensure predictable behavior from utilities with locale-dependent output.
4677: LC_ALL=C
4678: export LC_ALL
4679: LANGUAGE=C
4680: export LANGUAGE
4681:
4682: # We cannot yet rely on "unset" to work, but we need these variables
4683: # to be unset--not just set to an empty or harmless value--now, to
4684: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4685: # also avoids known problems related to "unset" and subshell syntax
4686: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4687: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4688: do eval test \${$as_var+y} \
4689: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4690: done
4691:
4692: # Ensure that fds 0, 1, and 2 are open.
4693: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4694: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4695: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 4696:
4697: # The user is always right.
1.71 misho 4698: if ${PATH_SEPARATOR+false} :; then
1.1 misho 4699: PATH_SEPARATOR=:
4700: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4701: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4702: PATH_SEPARATOR=';'
4703: }
4704: fi
4705:
4706:
4707: # Find who we are. Look in the path if we contain no directory separator.
4708: as_myself=
4709: case $0 in #((
4710: *[\\/]* ) as_myself=$0 ;;
4711: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712: for as_dir in $PATH
4713: do
4714: IFS=$as_save_IFS
1.71 misho 4715: case $as_dir in #(((
4716: '') as_dir=./ ;;
4717: */) ;;
4718: *) as_dir=$as_dir/ ;;
4719: esac
4720: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 misho 4721: done
4722: IFS=$as_save_IFS
4723:
4724: ;;
4725: esac
1.71 misho 4726: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.1 misho 4727: # in which case we are not to be found in the path.
4728: if test "x$as_myself" = x; then
4729: as_myself=$0
4730: fi
4731: if test ! -f "$as_myself"; then
1.71 misho 4732: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 misho 4733: exit 1
4734: fi
4735:
4736:
4737:
4738: # as_fn_error STATUS ERROR [LINENO LOG_FD]
4739: # ----------------------------------------
4740: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4741: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4742: # script with STATUS, using 1 if that was 0.
4743: as_fn_error ()
4744: {
4745: as_status=$1; test $as_status -eq 0 && as_status=1
4746: if test "$4"; then
4747: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 4748: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 4749: fi
1.71 misho 4750: printf "%s\n" "$as_me: error: $2" >&2
1.1 misho 4751: as_fn_exit $as_status
4752: } # as_fn_error
4753:
4754:
4755: # as_fn_set_status STATUS
4756: # -----------------------
4757: # Set $? to STATUS, without forking.
4758: as_fn_set_status ()
4759: {
4760: return $1
4761: } # as_fn_set_status
4762:
4763: # as_fn_exit STATUS
4764: # -----------------
4765: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4766: as_fn_exit ()
4767: {
4768: set +e
4769: as_fn_set_status $1
4770: exit $1
4771: } # as_fn_exit
4772:
4773: # as_fn_unset VAR
4774: # ---------------
4775: # Portably unset VAR.
4776: as_fn_unset ()
4777: {
4778: { eval $1=; unset $1;}
4779: }
4780: as_unset=as_fn_unset
1.71 misho 4781:
1.1 misho 4782: # as_fn_append VAR VALUE
4783: # ----------------------
4784: # Append the text in VALUE to the end of the definition contained in VAR. Take
4785: # advantage of any shell optimizations that allow amortized linear growth over
4786: # repeated appends, instead of the typical quadratic growth present in naive
4787: # implementations.
1.71 misho 4788: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4789: then :
1.1 misho 4790: eval 'as_fn_append ()
4791: {
4792: eval $1+=\$2
4793: }'
1.71 misho 4794: else case e in #(
4795: e) as_fn_append ()
1.1 misho 4796: {
4797: eval $1=\$$1\$2
1.71 misho 4798: } ;;
4799: esac
1.1 misho 4800: fi # as_fn_append
4801:
4802: # as_fn_arith ARG...
4803: # ------------------
4804: # Perform arithmetic evaluation on the ARGs, and store the result in the
4805: # global $as_val. Take advantage of shells that can avoid forks. The arguments
4806: # must be portable across $(()) and expr.
1.71 misho 4807: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4808: then :
1.1 misho 4809: eval 'as_fn_arith ()
4810: {
4811: as_val=$(( $* ))
4812: }'
1.71 misho 4813: else case e in #(
4814: e) as_fn_arith ()
1.1 misho 4815: {
4816: as_val=`expr "$@" || test $? -eq 1`
1.71 misho 4817: } ;;
4818: esac
1.1 misho 4819: fi # as_fn_arith
4820:
4821:
4822: if expr a : '\(a\)' >/dev/null 2>&1 &&
4823: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4824: as_expr=expr
4825: else
4826: as_expr=false
4827: fi
4828:
4829: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4830: as_basename=basename
4831: else
4832: as_basename=false
4833: fi
4834:
4835: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4836: as_dirname=dirname
4837: else
4838: as_dirname=false
4839: fi
4840:
4841: as_me=`$as_basename -- "$0" ||
4842: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4843: X"$0" : 'X\(//\)$' \| \
4844: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 4845: printf "%s\n" X/"$0" |
1.1 misho 4846: sed '/^.*\/\([^/][^/]*\)\/*$/{
4847: s//\1/
4848: q
4849: }
4850: /^X\/\(\/\/\)$/{
4851: s//\1/
4852: q
4853: }
4854: /^X\/\(\/\).*/{
4855: s//\1/
4856: q
4857: }
4858: s/.*/./; q'`
4859:
4860: # Avoid depending upon Character Ranges.
4861: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4862: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4863: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4864: as_cr_digits='0123456789'
4865: as_cr_alnum=$as_cr_Letters$as_cr_digits
4866:
1.71 misho 4867:
4868: # Determine whether it's possible to make 'echo' print without a newline.
4869: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4870: # for compatibility with existing Makefiles.
1.1 misho 4871: ECHO_C= ECHO_N= ECHO_T=
4872: case `echo -n x` in #(((((
4873: -n*)
4874: case `echo 'xy\c'` in
4875: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4876: xy) ECHO_C='\c';;
4877: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4878: ECHO_T=' ';;
4879: esac;;
4880: *)
4881: ECHO_N='-n';;
4882: esac
4883:
1.71 misho 4884: # For backward compatibility with old third-party macros, we provide
4885: # the shell variables $as_echo and $as_echo_n. New code should use
4886: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4887: as_echo='printf %s\n'
4888: as_echo_n='printf %s'
4889:
1.1 misho 4890: rm -f conf$$ conf$$.exe conf$$.file
4891: if test -d conf$$.dir; then
4892: rm -f conf$$.dir/conf$$.file
4893: else
4894: rm -f conf$$.dir
4895: mkdir conf$$.dir 2>/dev/null
4896: fi
4897: if (echo >conf$$.file) 2>/dev/null; then
4898: if ln -s conf$$.file conf$$ 2>/dev/null; then
4899: as_ln_s='ln -s'
4900: # ... but there are two gotchas:
1.71 misho 4901: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
4902: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
4903: # In both cases, we have to default to 'cp -pR'.
1.1 misho 4904: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4905: as_ln_s='cp -pR'
4906: elif ln conf$$.file conf$$ 2>/dev/null; then
4907: as_ln_s=ln
4908: else
4909: as_ln_s='cp -pR'
4910: fi
4911: else
4912: as_ln_s='cp -pR'
4913: fi
4914: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4915: rmdir conf$$.dir 2>/dev/null
4916:
4917:
4918: # as_fn_mkdir_p
4919: # -------------
4920: # Create "$as_dir" as a directory, including parents if necessary.
4921: as_fn_mkdir_p ()
4922: {
4923:
4924: case $as_dir in #(
4925: -*) as_dir=./$as_dir;;
4926: esac
4927: test -d "$as_dir" || eval $as_mkdir_p || {
4928: as_dirs=
4929: while :; do
4930: case $as_dir in #(
1.71 misho 4931: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 misho 4932: *) as_qdir=$as_dir;;
4933: esac
4934: as_dirs="'$as_qdir' $as_dirs"
4935: as_dir=`$as_dirname -- "$as_dir" ||
4936: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4937: X"$as_dir" : 'X\(//\)[^/]' \| \
4938: X"$as_dir" : 'X\(//\)$' \| \
4939: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 4940: printf "%s\n" X"$as_dir" |
1.1 misho 4941: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4942: s//\1/
4943: q
4944: }
4945: /^X\(\/\/\)[^/].*/{
4946: s//\1/
4947: q
4948: }
4949: /^X\(\/\/\)$/{
4950: s//\1/
4951: q
4952: }
4953: /^X\(\/\).*/{
4954: s//\1/
4955: q
4956: }
4957: s/.*/./; q'`
4958: test -d "$as_dir" && break
4959: done
4960: test -z "$as_dirs" || eval "mkdir $as_dirs"
4961: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4962:
4963:
4964: } # as_fn_mkdir_p
4965: if mkdir -p . 2>/dev/null; then
4966: as_mkdir_p='mkdir -p "$as_dir"'
4967: else
4968: test -d ./-p && rmdir ./-p
4969: as_mkdir_p=false
4970: fi
4971:
4972:
4973: # as_fn_executable_p FILE
4974: # -----------------------
4975: # Test if FILE is an executable regular file.
4976: as_fn_executable_p ()
4977: {
4978: test -f "$1" && test -x "$1"
4979: } # as_fn_executable_p
4980: as_test_x='test -x'
4981: as_executable_p=as_fn_executable_p
4982:
4983: # Sed expression to map a string onto a valid CPP name.
1.71 misho 4984: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4985: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.1 misho 4986:
4987: # Sed expression to map a string onto a valid variable name.
1.71 misho 4988: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4989: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.1 misho 4990:
4991:
4992: exec 6>&1
4993: ## ----------------------------------- ##
4994: ## Main body of $CONFIG_STATUS script. ##
4995: ## ----------------------------------- ##
4996: _ASEOF
4997: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4998:
4999: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5000: # Save the log message, to keep $0 and so on meaningful, and to
5001: # report actual input values of CONFIG_FILES etc. instead of their
5002: # values after options handling.
5003: ac_log="
1.80 ! misho 5004: This file was extended by libelwix $as_me 6.12, which was
1.71 misho 5005: generated by GNU Autoconf 2.72. Invocation command line was
1.1 misho 5006:
5007: CONFIG_FILES = $CONFIG_FILES
5008: CONFIG_HEADERS = $CONFIG_HEADERS
5009: CONFIG_LINKS = $CONFIG_LINKS
5010: CONFIG_COMMANDS = $CONFIG_COMMANDS
5011: $ $0 $@
5012:
5013: on `(hostname || uname -n) 2>/dev/null | sed 1q`
5014: "
5015:
5016: _ACEOF
5017:
5018: case $ac_config_files in *"
5019: "*) set x $ac_config_files; shift; ac_config_files=$*;;
5020: esac
5021:
5022: case $ac_config_headers in *"
5023: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5024: esac
5025:
5026:
5027: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5028: # Files that config.status was made for.
5029: config_files="$ac_config_files"
5030: config_headers="$ac_config_headers"
5031:
5032: _ACEOF
5033:
5034: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5035: ac_cs_usage="\
1.71 misho 5036: '$as_me' instantiates files and other configuration actions
1.1 misho 5037: from templates according to the current configuration. Unless the files
5038: and actions are specified as TAGs, all are instantiated by default.
5039:
5040: Usage: $0 [OPTION]... [TAG]...
5041:
5042: -h, --help print this help, then exit
5043: -V, --version print version number and configuration settings, then exit
5044: --config print configuration, then exit
5045: -q, --quiet, --silent
5046: do not print progress messages
5047: -d, --debug don't remove temporary files
5048: --recheck update $as_me by reconfiguring in the same conditions
5049: --file=FILE[:TEMPLATE]
5050: instantiate the configuration file FILE
5051: --header=FILE[:TEMPLATE]
5052: instantiate the configuration header FILE
5053:
5054: Configuration files:
5055: $config_files
5056:
5057: Configuration headers:
5058: $config_headers
5059:
5060: Report bugs to <misho@elwix.org>."
5061:
5062: _ACEOF
1.71 misho 5063: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5064: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.1 misho 5065: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.71 misho 5066: ac_cs_config='$ac_cs_config_escaped'
1.1 misho 5067: ac_cs_version="\\
1.80 ! misho 5068: libelwix config.status 6.12
1.71 misho 5069: configured by $0, generated by GNU Autoconf 2.72,
1.1 misho 5070: with options \\"\$ac_cs_config\\"
5071:
1.71 misho 5072: Copyright (C) 2023 Free Software Foundation, Inc.
1.1 misho 5073: This config.status script is free software; the Free Software Foundation
5074: gives unlimited permission to copy, distribute and modify it."
5075:
5076: ac_pwd='$ac_pwd'
5077: srcdir='$srcdir'
5078: INSTALL='$INSTALL'
5079: test -n "\$AWK" || AWK=awk
5080: _ACEOF
5081:
5082: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5083: # The default lists apply if the user does not specify any file.
5084: ac_need_defaults=:
5085: while test $# != 0
5086: do
5087: case $1 in
5088: --*=?*)
5089: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5090: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5091: ac_shift=:
5092: ;;
5093: --*=)
5094: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5095: ac_optarg=
5096: ac_shift=:
5097: ;;
5098: *)
5099: ac_option=$1
5100: ac_optarg=$2
5101: ac_shift=shift
5102: ;;
5103: esac
5104:
5105: case $ac_option in
5106: # Handling of the options.
5107: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5108: ac_cs_recheck=: ;;
5109: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.71 misho 5110: printf "%s\n" "$ac_cs_version"; exit ;;
1.1 misho 5111: --config | --confi | --conf | --con | --co | --c )
1.71 misho 5112: printf "%s\n" "$ac_cs_config"; exit ;;
1.1 misho 5113: --debug | --debu | --deb | --de | --d | -d )
5114: debug=: ;;
5115: --file | --fil | --fi | --f )
5116: $ac_shift
5117: case $ac_optarg in
1.71 misho 5118: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 5119: '') as_fn_error $? "missing file argument" ;;
5120: esac
5121: as_fn_append CONFIG_FILES " '$ac_optarg'"
5122: ac_need_defaults=false;;
5123: --header | --heade | --head | --hea )
5124: $ac_shift
5125: case $ac_optarg in
1.71 misho 5126: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 5127: esac
5128: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5129: ac_need_defaults=false;;
5130: --he | --h)
5131: # Conflict between --help and --header
1.71 misho 5132: as_fn_error $? "ambiguous option: '$1'
5133: Try '$0 --help' for more information.";;
1.1 misho 5134: --help | --hel | -h )
1.71 misho 5135: printf "%s\n" "$ac_cs_usage"; exit ;;
1.1 misho 5136: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5137: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5138: ac_cs_silent=: ;;
5139:
5140: # This is an error.
1.71 misho 5141: -*) as_fn_error $? "unrecognized option: '$1'
5142: Try '$0 --help' for more information." ;;
1.1 misho 5143:
5144: *) as_fn_append ac_config_targets " $1"
5145: ac_need_defaults=false ;;
5146:
5147: esac
5148: shift
5149: done
5150:
5151: ac_configure_extra_args=
5152:
5153: if $ac_cs_silent; then
5154: exec 6>/dev/null
5155: ac_configure_extra_args="$ac_configure_extra_args --silent"
5156: fi
5157:
5158: _ACEOF
5159: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5160: if \$ac_cs_recheck; then
5161: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5162: shift
1.71 misho 5163: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.1 misho 5164: CONFIG_SHELL='$SHELL'
5165: export CONFIG_SHELL
5166: exec "\$@"
5167: fi
5168:
5169: _ACEOF
5170: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5171: exec 5>>config.log
5172: {
5173: echo
5174: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5175: ## Running $as_me. ##
5176: _ASBOX
1.71 misho 5177: printf "%s\n" "$ac_log"
1.1 misho 5178: } >&5
5179:
5180: _ACEOF
5181: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5182: _ACEOF
5183:
5184: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5185:
5186: # Handling of arguments.
5187: for ac_config_target in $ac_config_targets
5188: do
5189: case $ac_config_target in
5190: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
5191: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5192: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
5193: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
1.67 misho 5194: "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
1.69 misho 5195: "debian/control") CONFIG_FILES="$CONFIG_FILES debian/control" ;;
1.1 misho 5196: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5197:
1.71 misho 5198: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 misho 5199: esac
5200: done
5201:
5202:
5203: # If the user did not use the arguments to specify the items to instantiate,
5204: # then the envvar interface is used. Set only those that are not.
5205: # We use the long form for the default assignment because of an extremely
5206: # bizarre bug on SunOS 4.1.3.
5207: if $ac_need_defaults; then
1.71 misho 5208: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5209: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1.1 misho 5210: fi
5211:
5212: # Have a temporary directory for convenience. Make it in the build tree
5213: # simply because there is no reason against having it here, and in addition,
5214: # creating and moving files from /tmp can sometimes cause problems.
5215: # Hook for its removal unless debugging.
5216: # Note that there is a small window in which the directory will not be cleaned:
1.71 misho 5217: # after its creation but before its name has been assigned to '$tmp'.
1.1 misho 5218: $debug ||
5219: {
5220: tmp= ac_tmp=
5221: trap 'exit_status=$?
5222: : "${ac_tmp:=$tmp}"
5223: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5224: ' 0
5225: trap 'as_fn_exit 1' 1 2 13 15
5226: }
5227: # Create a (secure) tmp directory for tmp files.
5228:
5229: {
5230: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5231: test -d "$tmp"
5232: } ||
5233: {
5234: tmp=./conf$$-$RANDOM
5235: (umask 077 && mkdir "$tmp")
5236: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5237: ac_tmp=$tmp
5238:
5239: # Set up the scripts for CONFIG_FILES section.
5240: # No need to generate them if there are no CONFIG_FILES.
1.71 misho 5241: # This happens for instance with './config.status config.h'.
1.1 misho 5242: if test -n "$CONFIG_FILES"; then
5243:
5244:
5245: ac_cr=`echo X | tr X '\015'`
5246: # On cygwin, bash can eat \r inside `` if the user requested igncr.
5247: # But we know of no other shell where ac_cr would be empty at this
5248: # point, so we can use a bashism as a fallback.
5249: if test "x$ac_cr" = x; then
5250: eval ac_cr=\$\'\\r\'
5251: fi
5252: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5253: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5254: ac_cs_awk_cr='\\r'
5255: else
5256: ac_cs_awk_cr=$ac_cr
5257: fi
5258:
5259: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5260: _ACEOF
5261:
5262:
5263: {
5264: echo "cat >conf$$subs.awk <<_ACEOF" &&
5265: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5266: echo "_ACEOF"
5267: } >conf$$subs.sh ||
5268: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5269: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5270: ac_delim='%!_!# '
5271: for ac_last_try in false false false false false :; do
5272: . ./conf$$subs.sh ||
5273: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5274:
5275: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5276: if test $ac_delim_n = $ac_delim_num; then
5277: break
5278: elif $ac_last_try; then
5279: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5280: else
5281: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5282: fi
5283: done
5284: rm -f conf$$subs.sh
5285:
5286: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5287: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5288: _ACEOF
5289: sed -n '
5290: h
5291: s/^/S["/; s/!.*/"]=/
5292: p
5293: g
5294: s/^[^!]*!//
5295: :repl
5296: t repl
5297: s/'"$ac_delim"'$//
5298: t delim
5299: :nl
5300: h
5301: s/\(.\{148\}\)..*/\1/
5302: t more1
5303: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5304: p
5305: n
5306: b repl
5307: :more1
5308: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5309: p
5310: g
5311: s/.\{148\}//
5312: t nl
5313: :delim
5314: h
5315: s/\(.\{148\}\)..*/\1/
5316: t more2
5317: s/["\\]/\\&/g; s/^/"/; s/$/"/
5318: p
5319: b
5320: :more2
5321: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5322: p
5323: g
5324: s/.\{148\}//
5325: t delim
5326: ' <conf$$subs.awk | sed '
5327: /^[^""]/{
5328: N
5329: s/\n//
5330: }
5331: ' >>$CONFIG_STATUS || ac_write_fail=1
5332: rm -f conf$$subs.awk
5333: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5334: _ACAWK
5335: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5336: for (key in S) S_is_set[key] = 1
5337: FS = ""
5338:
5339: }
5340: {
5341: line = $ 0
5342: nfields = split(line, field, "@")
5343: substed = 0
5344: len = length(field[1])
5345: for (i = 2; i < nfields; i++) {
5346: key = field[i]
5347: keylen = length(key)
5348: if (S_is_set[key]) {
5349: value = S[key]
5350: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5351: len += length(value) + length(field[++i])
5352: substed = 1
5353: } else
5354: len += 1 + keylen
5355: }
5356:
5357: print line
5358: }
5359:
5360: _ACAWK
5361: _ACEOF
5362: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5363: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5364: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5365: else
5366: cat
5367: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5368: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5369: _ACEOF
5370:
5371: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5372: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5373: # trailing colons and then remove the whole line if VPATH becomes empty
5374: # (actually we leave an empty line to preserve line numbers).
5375: if test "x$srcdir" = x.; then
5376: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5377: h
5378: s///
5379: s/^/:/
5380: s/[ ]*$/:/
5381: s/:\$(srcdir):/:/g
5382: s/:\${srcdir}:/:/g
5383: s/:@srcdir@:/:/g
5384: s/^:*//
5385: s/:*$//
5386: x
5387: s/\(=[ ]*\).*/\1/
5388: G
5389: s/\n//
5390: s/^[^=]*=[ ]*$//
5391: }'
5392: fi
5393:
5394: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5395: fi # test -n "$CONFIG_FILES"
5396:
5397: # Set up the scripts for CONFIG_HEADERS section.
5398: # No need to generate them if there are no CONFIG_HEADERS.
1.71 misho 5399: # This happens for instance with './config.status Makefile'.
1.1 misho 5400: if test -n "$CONFIG_HEADERS"; then
5401: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5402: BEGIN {
5403: _ACEOF
5404:
1.71 misho 5405: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.1 misho 5406: # here-document in config.status, that substitutes the proper values into
5407: # config.h.in to produce config.h.
5408:
5409: # Create a delimiter string that does not exist in confdefs.h, to ease
5410: # handling of long lines.
5411: ac_delim='%!_!# '
5412: for ac_last_try in false false :; do
5413: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5414: if test -z "$ac_tt"; then
5415: break
5416: elif $ac_last_try; then
5417: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5418: else
5419: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5420: fi
5421: done
5422:
5423: # For the awk script, D is an array of macro values keyed by name,
5424: # likewise P contains macro parameters if any. Preserve backslash
5425: # newline sequences.
5426:
5427: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5428: sed -n '
5429: s/.\{148\}/&'"$ac_delim"'/g
5430: t rset
5431: :rset
5432: s/^[ ]*#[ ]*define[ ][ ]*/ /
5433: t def
5434: d
5435: :def
5436: s/\\$//
5437: t bsnl
5438: s/["\\]/\\&/g
5439: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5440: D["\1"]=" \3"/p
5441: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5442: d
5443: :bsnl
5444: s/["\\]/\\&/g
5445: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5446: D["\1"]=" \3\\\\\\n"\\/p
5447: t cont
5448: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5449: t cont
5450: d
5451: :cont
5452: n
5453: s/.\{148\}/&'"$ac_delim"'/g
5454: t clear
5455: :clear
5456: s/\\$//
5457: t bsnlc
5458: s/["\\]/\\&/g; s/^/"/; s/$/"/p
5459: d
5460: :bsnlc
5461: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5462: b cont
5463: ' <confdefs.h | sed '
5464: s/'"$ac_delim"'/"\\\
5465: "/g' >>$CONFIG_STATUS || ac_write_fail=1
5466:
5467: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5468: for (key in D) D_is_set[key] = 1
5469: FS = ""
5470: }
5471: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5472: line = \$ 0
5473: split(line, arg, " ")
5474: if (arg[1] == "#") {
5475: defundef = arg[2]
5476: mac1 = arg[3]
5477: } else {
5478: defundef = substr(arg[1], 2)
5479: mac1 = arg[2]
5480: }
5481: split(mac1, mac2, "(") #)
5482: macro = mac2[1]
5483: prefix = substr(line, 1, index(line, defundef) - 1)
5484: if (D_is_set[macro]) {
5485: # Preserve the white space surrounding the "#".
5486: print prefix "define", macro P[macro] D[macro]
5487: next
5488: } else {
5489: # Replace #undef with comments. This is necessary, for example,
5490: # in the case of _POSIX_SOURCE, which is predefined and required
5491: # on some systems where configure will not decide to define it.
5492: if (defundef == "undef") {
5493: print "/*", prefix defundef, macro, "*/"
5494: next
5495: }
5496: }
5497: }
5498: { print }
5499: _ACAWK
5500: _ACEOF
5501: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5502: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5503: fi # test -n "$CONFIG_HEADERS"
5504:
5505:
5506: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5507: shift
5508: for ac_tag
5509: do
5510: case $ac_tag in
5511: :[FHLC]) ac_mode=$ac_tag; continue;;
5512: esac
5513: case $ac_mode$ac_tag in
5514: :[FHL]*:*);;
1.71 misho 5515: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.1 misho 5516: :[FH]-) ac_tag=-:-;;
5517: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5518: esac
5519: ac_save_IFS=$IFS
5520: IFS=:
5521: set x $ac_tag
5522: IFS=$ac_save_IFS
5523: shift
5524: ac_file=$1
5525: shift
5526:
5527: case $ac_mode in
5528: :L) ac_source=$1;;
5529: :[FH])
5530: ac_file_inputs=
5531: for ac_f
5532: do
5533: case $ac_f in
5534: -) ac_f="$ac_tmp/stdin";;
5535: *) # Look for the file first in the build tree, then in the source tree
5536: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.71 misho 5537: # because $ac_f cannot contain ':'.
1.1 misho 5538: test -f "$ac_f" ||
5539: case $ac_f in
5540: [\\/$]*) false;;
5541: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5542: esac ||
1.71 misho 5543: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.1 misho 5544: esac
1.71 misho 5545: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1 misho 5546: as_fn_append ac_file_inputs " '$ac_f'"
5547: done
5548:
1.71 misho 5549: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.1 misho 5550: # use $as_me), people would be surprised to read:
5551: # /* config.h. Generated by config.status. */
5552: configure_input='Generated from '`
1.71 misho 5553: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.1 misho 5554: `' by configure.'
5555: if test x"$ac_file" != x-; then
5556: configure_input="$ac_file. $configure_input"
1.71 misho 5557: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5558: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.1 misho 5559: fi
5560: # Neutralize special characters interpreted by sed in replacement strings.
5561: case $configure_input in #(
5562: *\&* | *\|* | *\\* )
1.71 misho 5563: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.1 misho 5564: sed 's/[\\\\&|]/\\\\&/g'`;; #(
5565: *) ac_sed_conf_input=$configure_input;;
5566: esac
5567:
5568: case $ac_tag in
5569: *:-:* | *:-) cat >"$ac_tmp/stdin" \
5570: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5571: esac
5572: ;;
5573: esac
5574:
5575: ac_dir=`$as_dirname -- "$ac_file" ||
5576: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5577: X"$ac_file" : 'X\(//\)[^/]' \| \
5578: X"$ac_file" : 'X\(//\)$' \| \
5579: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 5580: printf "%s\n" X"$ac_file" |
1.1 misho 5581: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5582: s//\1/
5583: q
5584: }
5585: /^X\(\/\/\)[^/].*/{
5586: s//\1/
5587: q
5588: }
5589: /^X\(\/\/\)$/{
5590: s//\1/
5591: q
5592: }
5593: /^X\(\/\).*/{
5594: s//\1/
5595: q
5596: }
5597: s/.*/./; q'`
5598: as_dir="$ac_dir"; as_fn_mkdir_p
5599: ac_builddir=.
5600:
5601: case "$ac_dir" in
5602: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5603: *)
1.71 misho 5604: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 5605: # A ".." for each directory in $ac_dir_suffix.
1.71 misho 5606: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 5607: case $ac_top_builddir_sub in
5608: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5609: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5610: esac ;;
5611: esac
5612: ac_abs_top_builddir=$ac_pwd
5613: ac_abs_builddir=$ac_pwd$ac_dir_suffix
5614: # for backward compatibility:
5615: ac_top_builddir=$ac_top_build_prefix
5616:
5617: case $srcdir in
5618: .) # We are building in place.
5619: ac_srcdir=.
5620: ac_top_srcdir=$ac_top_builddir_sub
5621: ac_abs_top_srcdir=$ac_pwd ;;
5622: [\\/]* | ?:[\\/]* ) # Absolute name.
5623: ac_srcdir=$srcdir$ac_dir_suffix;
5624: ac_top_srcdir=$srcdir
5625: ac_abs_top_srcdir=$srcdir ;;
5626: *) # Relative name.
5627: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5628: ac_top_srcdir=$ac_top_build_prefix$srcdir
5629: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5630: esac
5631: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5632:
5633:
5634: case $ac_mode in
5635: :F)
5636: #
5637: # CONFIG_FILE
5638: #
5639:
5640: case $INSTALL in
5641: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5642: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5643: esac
5644: _ACEOF
5645:
5646: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5647: # If the template does not know about datarootdir, expand it.
5648: # FIXME: This hack should be removed a few years after 2.60.
5649: ac_datarootdir_hack=; ac_datarootdir_seen=
5650: ac_sed_dataroot='
5651: /datarootdir/ {
5652: p
5653: q
5654: }
5655: /@datadir@/p
5656: /@docdir@/p
5657: /@infodir@/p
5658: /@localedir@/p
5659: /@mandir@/p'
5660: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5661: *datarootdir*) ac_datarootdir_seen=yes;;
5662: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.71 misho 5663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5664: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 misho 5665: _ACEOF
5666: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5667: ac_datarootdir_hack='
5668: s&@datadir@&$datadir&g
5669: s&@docdir@&$docdir&g
5670: s&@infodir@&$infodir&g
5671: s&@localedir@&$localedir&g
5672: s&@mandir@&$mandir&g
5673: s&\\\${datarootdir}&$datarootdir&g' ;;
5674: esac
5675: _ACEOF
5676:
1.71 misho 5677: # Neutralize VPATH when '$srcdir' = '.'.
1.1 misho 5678: # Shell code in configure.ac might set extrasub.
5679: # FIXME: do we really want to maintain this feature?
5680: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5681: ac_sed_extra="$ac_vpsub
5682: $extrasub
5683: _ACEOF
5684: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5685: :t
5686: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5687: s|@configure_input@|$ac_sed_conf_input|;t t
5688: s&@top_builddir@&$ac_top_builddir_sub&;t t
5689: s&@top_build_prefix@&$ac_top_build_prefix&;t t
5690: s&@srcdir@&$ac_srcdir&;t t
5691: s&@abs_srcdir@&$ac_abs_srcdir&;t t
5692: s&@top_srcdir@&$ac_top_srcdir&;t t
5693: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5694: s&@builddir@&$ac_builddir&;t t
5695: s&@abs_builddir@&$ac_abs_builddir&;t t
5696: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5697: s&@INSTALL@&$ac_INSTALL&;t t
5698: $ac_datarootdir_hack
5699: "
5700: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5701: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5702:
5703: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5704: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5705: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5706: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.71 misho 5707: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.1 misho 5708: which seems to be undefined. Please make sure it is defined" >&5
1.71 misho 5709: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.1 misho 5710: which seems to be undefined. Please make sure it is defined" >&2;}
5711:
5712: rm -f "$ac_tmp/stdin"
5713: case $ac_file in
5714: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5715: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5716: esac \
5717: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5718: ;;
5719: :H)
5720: #
5721: # CONFIG_HEADER
5722: #
5723: if test x"$ac_file" != x-; then
5724: {
1.71 misho 5725: printf "%s\n" "/* $configure_input */" >&1 \
1.1 misho 5726: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5727: } >"$ac_tmp/config.h" \
5728: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5729: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.71 misho 5730: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5731: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.1 misho 5732: else
5733: rm -f "$ac_file"
5734: mv "$ac_tmp/config.h" "$ac_file" \
5735: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5736: fi
5737: else
1.71 misho 5738: printf "%s\n" "/* $configure_input */" >&1 \
1.1 misho 5739: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5740: || as_fn_error $? "could not create -" "$LINENO" 5
5741: fi
5742: ;;
5743:
5744:
5745: esac
5746:
5747: done # for ac_tag
5748:
5749:
5750: as_fn_exit 0
5751: _ACEOF
5752: ac_clean_files=$ac_clean_files_save
5753:
5754: test $ac_write_fail = 0 ||
5755: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5756:
5757:
5758: # configure is writing to config.log, and then calls config.status.
5759: # config.status does its own redirection, appending to config.log.
5760: # Unfortunately, on DOS this fails, as config.log is still kept open
5761: # by configure, so config.status won't be able to write to it; its
5762: # output is simply discarded. So we exec the FD to /dev/null,
5763: # effectively closing config.log, so it can be properly (re)opened and
5764: # appended to by config.status. When coming back to configure, we
5765: # need to make the FD available again.
5766: if test "$no_create" != yes; then
5767: ac_cs_success=:
5768: ac_config_status_args=
5769: test "$silent" = yes &&
5770: ac_config_status_args="$ac_config_status_args --quiet"
5771: exec 5>/dev/null
5772: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5773: exec 5>>config.log
5774: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5775: # would make configure fail if this is the last instruction.
5776: $ac_cs_success || as_fn_exit 1
5777: fi
5778: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.71 misho 5779: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5780: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.1 misho 5781: fi
5782:
1.71 misho 5783:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>