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