Annotation of libelwix/configure, revision 1.74.2.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.74.2.1! misho 3: # Generated by GNU Autoconf 2.72 for libelwix 6.7.
1.1 misho 4: #
5: # Report bugs to <misho@elwix.org>.
6: #
7: #
1.71 misho 8: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9: # Inc.
1.1 misho 10: #
11: #
12: # This configure script is free software; the Free Software Foundation
13: # gives unlimited permission to copy, distribute and modify it.
14: ## -------------------- ##
15: ## M4sh Initialization. ##
16: ## -------------------- ##
17:
18: # Be more Bourne compatible
19: DUALCASE=1; export DUALCASE # for MKS sh
1.71 misho 20: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21: then :
1.1 misho 22: emulate sh
23: NULLCMD=:
24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
27: setopt NO_GLOB_SUBST
1.71 misho 28: else case e in #(
29: e) case `(set -o) 2>/dev/null` in #(
1.1 misho 30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
1.71 misho 34: esac ;;
1.1 misho 35: esac
36: fi
37:
38:
1.71 misho 39:
40: # Reset variables that may have inherited troublesome values from
41: # the environment.
42:
43: # IFS needs to be set, to space, tab, and newline, in precisely that order.
44: # (If _AS_PATH_WALK were called with IFS unset, it would have the
45: # side effect of setting IFS to empty, thus disabling word splitting.)
46: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 47: as_nl='
48: '
49: export as_nl
1.71 misho 50: IFS=" "" $as_nl"
51:
52: PS1='$ '
53: PS2='> '
54: PS4='+ '
55:
56: # Ensure predictable behavior from utilities with locale-dependent output.
57: LC_ALL=C
58: export LC_ALL
59: LANGUAGE=C
60: export LANGUAGE
61:
62: # We cannot yet rely on "unset" to work, but we need these variables
63: # to be unset--not just set to an empty or harmless value--now, to
64: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65: # also avoids known problems related to "unset" and subshell syntax
66: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68: do eval test \${$as_var+y} \
69: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70: done
71:
72: # Ensure that fds 0, 1, and 2 are open.
73: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 76:
77: # The user is always right.
1.71 misho 78: if ${PATH_SEPARATOR+false} :; then
1.1 misho 79: PATH_SEPARATOR=:
80: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82: PATH_SEPARATOR=';'
83: }
84: fi
85:
86:
87: # Find who we are. Look in the path if we contain no directory separator.
88: as_myself=
89: case $0 in #((
90: *[\\/]* ) as_myself=$0 ;;
91: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92: for as_dir in $PATH
93: do
94: IFS=$as_save_IFS
1.71 misho 95: case $as_dir in #(((
96: '') as_dir=./ ;;
97: */) ;;
98: *) as_dir=$as_dir/ ;;
99: esac
100: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 misho 101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
1.71 misho 106: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.1 misho 107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
1.71 misho 112: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 misho 113: exit 1
114: fi
115:
116:
117: # Use a proper internal environment variable to ensure we don't fall
118: # into an infinite loop, continuously re-executing ourselves.
119: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120: _as_can_reexec=no; export _as_can_reexec;
121: # We cannot yet assume a decent shell, so we have to provide a
122: # neutralization value for shells without unset; and this also
123: # works around shells that cannot unset nonexistent variables.
124: # Preserve -v and -x to the replacement shell.
125: BASH_ENV=/dev/null
126: ENV=/dev/null
127: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128: case $- in # ((((
129: *v*x* | *x*v* ) as_opts=-vx ;;
130: *v* ) as_opts=-v ;;
131: *x* ) as_opts=-x ;;
132: * ) as_opts= ;;
133: esac
134: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135: # Admittedly, this is quite paranoid, since all the known shells bail
1.71 misho 136: # out after a failed 'exec'.
137: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138: exit 255
1.1 misho 139: fi
140: # We don't want this to propagate to other subprocesses.
141: { _as_can_reexec=; unset _as_can_reexec;}
142: if test "x$CONFIG_SHELL" = x; then
1.71 misho 143: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144: then :
1.1 misho 145: emulate sh
146: NULLCMD=:
147: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148: # is contrary to our usage. Disable this feature.
149: alias -g '\${1+\"\$@\"}'='\"\$@\"'
150: setopt NO_GLOB_SUBST
1.71 misho 151: else case e in #(
152: e) case \`(set -o) 2>/dev/null\` in #(
1.1 misho 153: *posix*) :
154: set -o posix ;; #(
155: *) :
156: ;;
1.71 misho 157: esac ;;
1.1 misho 158: esac
159: fi
160: "
161: as_required="as_fn_return () { (exit \$1); }
162: as_fn_success () { as_fn_return 0; }
163: as_fn_failure () { as_fn_return 1; }
164: as_fn_ret_success () { return 0; }
165: as_fn_ret_failure () { return 1; }
166:
167: exitcode=0
168: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.71 misho 172: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173: then :
1.1 misho 174:
1.71 misho 175: else case e in #(
176: e) exitcode=1; echo positional parameters were not saved. ;;
177: esac
1.1 misho 178: fi
179: test x\$exitcode = x0 || exit 1
1.71 misho 180: blah=\$(echo \$(echo blah))
181: test x\"\$blah\" = xblah || exit 1
1.1 misho 182: test -x / || exit 1"
183: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1.71 misho 186: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187: if (eval "$as_required") 2>/dev/null
188: then :
1.1 misho 189: as_have_required=yes
1.71 misho 190: else case e in #(
191: e) as_have_required=no ;;
192: esac
1.1 misho 193: fi
1.71 misho 194: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195: then :
1.1 misho 196:
1.71 misho 197: else case e in #(
198: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 199: as_found=false
200: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201: do
202: IFS=$as_save_IFS
1.71 misho 203: case $as_dir in #(((
204: '') as_dir=./ ;;
205: */) ;;
206: *) as_dir=$as_dir/ ;;
207: esac
1.1 misho 208: as_found=:
209: case $as_dir in #(
210: /*)
211: for as_base in sh bash ksh sh5; do
212: # Try only shells that exist, to save several forks.
1.71 misho 213: as_shell=$as_dir$as_base
1.1 misho 214: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.71 misho 215: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216: then :
1.1 misho 217: CONFIG_SHELL=$as_shell as_have_required=yes
1.71 misho 218: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219: then :
1.1 misho 220: break 2
221: fi
222: fi
223: done;;
224: esac
225: as_found=false
226: done
1.71 misho 227: IFS=$as_save_IFS
228: if $as_found
229: then :
230:
231: else case e in #(
232: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234: then :
1.70 misho 235: CONFIG_SHELL=$SHELL as_have_required=yes
1.71 misho 236: fi ;;
237: esac
238: fi
1.1 misho 239:
240:
1.71 misho 241: if test "x$CONFIG_SHELL" != x
242: then :
1.1 misho 243: export CONFIG_SHELL
244: # We cannot yet assume a decent shell, so we have to provide a
245: # neutralization value for shells without unset; and this also
246: # works around shells that cannot unset nonexistent variables.
247: # Preserve -v and -x to the replacement shell.
248: BASH_ENV=/dev/null
249: ENV=/dev/null
250: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251: case $- in # ((((
252: *v*x* | *x*v* ) as_opts=-vx ;;
253: *v* ) as_opts=-v ;;
254: *x* ) as_opts=-x ;;
255: * ) as_opts= ;;
256: esac
257: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258: # Admittedly, this is quite paranoid, since all the known shells bail
1.71 misho 259: # out after a failed 'exec'.
260: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.1 misho 261: exit 255
262: fi
263:
1.71 misho 264: if test x$as_have_required = xno
265: then :
266: printf "%s\n" "$0: This script requires a shell more modern than all"
267: printf "%s\n" "$0: the shells that I found on your system."
268: if test ${ZSH_VERSION+y} ; then
269: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.1 misho 271: else
1.71 misho 272: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and misho@elwix.org
1.1 misho 273: $0: about your system, including any error possibly output
274: $0: before this message. Then install a modern shell, or
275: $0: manually run the script under such a shell if you do
276: $0: have one."
277: fi
278: exit 1
1.71 misho 279: fi ;;
280: esac
1.1 misho 281: fi
282: fi
283: SHELL=${CONFIG_SHELL-/bin/sh}
284: export SHELL
285: # Unset more variables known to interfere with behavior of common tools.
286: CLICOLOR_FORCE= GREP_OPTIONS=
287: unset CLICOLOR_FORCE GREP_OPTIONS
288:
289: ## --------------------- ##
290: ## M4sh Shell Functions. ##
291: ## --------------------- ##
292: # as_fn_unset VAR
293: # ---------------
294: # Portably unset VAR.
295: as_fn_unset ()
296: {
297: { eval $1=; unset $1;}
298: }
299: as_unset=as_fn_unset
300:
1.71 misho 301:
1.1 misho 302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
1.71 misho 333: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 misho 334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 342: printf "%s\n" X"$as_dir" |
1.1 misho 343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
367:
368: # as_fn_executable_p FILE
369: # -----------------------
370: # Test if FILE is an executable regular file.
371: as_fn_executable_p ()
372: {
373: test -f "$1" && test -x "$1"
374: } # as_fn_executable_p
375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
1.71 misho 381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382: then :
1.1 misho 383: eval 'as_fn_append ()
384: {
385: eval $1+=\$2
386: }'
1.71 misho 387: else case e in #(
388: e) as_fn_append ()
1.1 misho 389: {
390: eval $1=\$$1\$2
1.71 misho 391: } ;;
392: esac
1.1 misho 393: fi # as_fn_append
394:
395: # as_fn_arith ARG...
396: # ------------------
397: # Perform arithmetic evaluation on the ARGs, and store the result in the
398: # global $as_val. Take advantage of shells that can avoid forks. The arguments
399: # must be portable across $(()) and expr.
1.71 misho 400: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401: then :
1.1 misho 402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
1.71 misho 406: else case e in #(
407: e) as_fn_arith ()
1.1 misho 408: {
409: as_val=`expr "$@" || test $? -eq 1`
1.71 misho 410: } ;;
411: esac
1.1 misho 412: fi # as_fn_arith
413:
414:
415: # as_fn_error STATUS ERROR [LINENO LOG_FD]
416: # ----------------------------------------
417: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419: # script with STATUS, using 1 if that was 0.
420: as_fn_error ()
421: {
422: as_status=$1; test $as_status -eq 0 && as_status=1
423: if test "$4"; then
424: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 425: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 426: fi
1.71 misho 427: printf "%s\n" "$as_me: error: $2" >&2
1.1 misho 428: as_fn_exit $as_status
429: } # as_fn_error
430:
431: if expr a : '\(a\)' >/dev/null 2>&1 &&
432: test "X`expr 00001 : '.*\(...\)'`" = X001; then
433: as_expr=expr
434: else
435: as_expr=false
436: fi
437:
438: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439: as_basename=basename
440: else
441: as_basename=false
442: fi
443:
444: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445: as_dirname=dirname
446: else
447: as_dirname=false
448: fi
449:
450: as_me=`$as_basename -- "$0" ||
451: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452: X"$0" : 'X\(//\)$' \| \
453: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 454: printf "%s\n" X/"$0" |
1.1 misho 455: sed '/^.*\/\([^/][^/]*\)\/*$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\/\)$/{
460: s//\1/
461: q
462: }
463: /^X\/\(\/\).*/{
464: s//\1/
465: q
466: }
467: s/.*/./; q'`
468:
469: # Avoid depending upon Character Ranges.
470: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473: as_cr_digits='0123456789'
474: as_cr_alnum=$as_cr_Letters$as_cr_digits
475:
476:
477: as_lineno_1=$LINENO as_lineno_1a=$LINENO
478: as_lineno_2=$LINENO as_lineno_2a=$LINENO
479: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482: sed -n '
483: p
484: /[$]LINENO/=
485: ' <$as_myself |
486: sed '
1.71 misho 487: t clear
488: :clear
1.1 misho 489: s/[$]LINENO.*/&-/
490: t lineno
491: b
492: :lineno
493: N
494: :loop
495: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496: t loop
497: s/-\n.*//
498: ' >$as_me.lineno &&
499: chmod +x "$as_me.lineno" ||
1.71 misho 500: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misho 501:
502: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503: # already done that, so ensure we don't try to do so again and fall
504: # in an infinite loop. This has already happened in practice.
505: _as_can_reexec=no; export _as_can_reexec
506: # Don't try to exec as it changes $[0], causing all sort of problems
507: # (the dirname of $[0] is not the place where we might find the
508: # original and so on. Autoconf is especially sensitive to this).
509: . "./$as_me.lineno"
510: # Exit status is that of the last command.
511: exit
512: }
513:
1.71 misho 514:
515: # Determine whether it's possible to make 'echo' print without a newline.
516: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517: # for compatibility with existing Makefiles.
1.1 misho 518: ECHO_C= ECHO_N= ECHO_T=
519: case `echo -n x` in #(((((
520: -n*)
521: case `echo 'xy\c'` in
522: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523: xy) ECHO_C='\c';;
524: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525: ECHO_T=' ';;
526: esac;;
527: *)
528: ECHO_N='-n';;
529: esac
530:
1.71 misho 531: # For backward compatibility with old third-party macros, we provide
532: # the shell variables $as_echo and $as_echo_n. New code should use
533: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534: as_echo='printf %s\n'
535: as_echo_n='printf %s'
536:
1.1 misho 537: rm -f conf$$ conf$$.exe conf$$.file
538: if test -d conf$$.dir; then
539: rm -f conf$$.dir/conf$$.file
540: else
541: rm -f conf$$.dir
542: mkdir conf$$.dir 2>/dev/null
543: fi
544: if (echo >conf$$.file) 2>/dev/null; then
545: if ln -s conf$$.file conf$$ 2>/dev/null; then
546: as_ln_s='ln -s'
547: # ... but there are two gotchas:
1.71 misho 548: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550: # In both cases, we have to default to 'cp -pR'.
1.1 misho 551: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552: as_ln_s='cp -pR'
553: elif ln conf$$.file conf$$ 2>/dev/null; then
554: as_ln_s=ln
555: else
556: as_ln_s='cp -pR'
557: fi
558: else
559: as_ln_s='cp -pR'
560: fi
561: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562: rmdir conf$$.dir 2>/dev/null
563:
564: if mkdir -p . 2>/dev/null; then
565: as_mkdir_p='mkdir -p "$as_dir"'
566: else
567: test -d ./-p && rmdir ./-p
568: as_mkdir_p=false
569: fi
570:
571: as_test_x='test -x'
572: as_executable_p=as_fn_executable_p
573:
574: # Sed expression to map a string onto a valid CPP name.
1.71 misho 575: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.1 misho 577:
578: # Sed expression to map a string onto a valid variable name.
1.71 misho 579: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.1 misho 581:
582:
583: test -n "$DJDIR" || exec 7<&0 </dev/null
584: exec 6>&1
585:
586: # Name of the host.
587: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588: # so uname gets run too.
589: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590:
591: #
592: # Initializations.
593: #
594: ac_default_prefix=/usr/local
595: ac_clean_files=
596: ac_config_libobj_dir=.
597: LIBOBJS=
598: cross_compiling=no
599: subdirs=
600: MFLAGS=
601: MAKEFLAGS=
602:
603: # Identity of this package.
604: PACKAGE_NAME='libelwix'
605: PACKAGE_TARNAME='libelwix'
1.74.2.1! misho 606: PACKAGE_VERSION='6.7'
! 607: PACKAGE_STRING='libelwix 6.7'
1.1 misho 608: PACKAGE_BUGREPORT='misho@elwix.org'
609: PACKAGE_URL=''
610:
611: ac_unique_file="src/elwix.c"
612: # Factoring default headers for most tests.
613: ac_includes_default="\
1.71 misho 614: #include <stddef.h>
615: #ifdef HAVE_STDIO_H
616: # include <stdio.h>
1.1 misho 617: #endif
1.71 misho 618: #ifdef HAVE_STDLIB_H
1.1 misho 619: # include <stdlib.h>
620: #endif
621: #ifdef HAVE_STRING_H
622: # include <string.h>
623: #endif
624: #ifdef HAVE_INTTYPES_H
625: # include <inttypes.h>
626: #endif
627: #ifdef HAVE_STDINT_H
628: # include <stdint.h>
629: #endif
1.71 misho 630: #ifdef HAVE_STRINGS_H
631: # include <strings.h>
632: #endif
633: #ifdef HAVE_SYS_TYPES_H
634: # include <sys/types.h>
635: #endif
636: #ifdef HAVE_SYS_STAT_H
637: # include <sys/stat.h>
638: #endif
1.1 misho 639: #ifdef HAVE_UNISTD_H
640: # include <unistd.h>
641: #endif"
642:
1.71 misho 643: ac_header_c_list=
1.1 misho 644: ac_subst_vars='LTLIBOBJS
1.69 misho 645: DEBIAN_ARCH
1.1 misho 646: LIBOBJS
647: MKDEP
648: target_os
649: target_vendor
650: target_cpu
651: target
652: host_os
653: host_vendor
654: host_cpu
655: host
656: build_os
657: build_vendor
658: build_cpu
659: build
1.2 misho 660: RANLIB
1.1 misho 661: INSTALL_DATA
662: INSTALL_SCRIPT
663: INSTALL_PROGRAM
664: OBJEXT
665: EXEEXT
666: ac_ct_CC
667: CPPFLAGS
668: LDFLAGS
669: CFLAGS
670: CC
671: target_alias
672: host_alias
673: build_alias
674: LIBS
675: ECHO_T
676: ECHO_N
677: ECHO_C
678: DEFS
679: mandir
680: localedir
681: libdir
682: psdir
683: pdfdir
684: dvidir
685: htmldir
686: infodir
687: docdir
688: oldincludedir
689: includedir
1.62 misho 690: runstatedir
1.1 misho 691: localstatedir
692: sharedstatedir
693: sysconfdir
694: datadir
695: datarootdir
696: libexecdir
697: sbindir
698: bindir
699: program_transform_name
700: prefix
701: exec_prefix
702: PACKAGE_URL
703: PACKAGE_BUGREPORT
704: PACKAGE_STRING
705: PACKAGE_VERSION
706: PACKAGE_TARNAME
707: PACKAGE_NAME
708: PATH_SEPARATOR
709: SHELL'
710: ac_subst_files=''
711: ac_user_opts='
712: enable_option_checking
713: enable_debug
1.27 misho 714: with_memmgr
1.69 misho 715: enable_mpool_mem_zero
1.65 misho 716: enable_patricia
717: enable_pelco
1.1 misho 718: '
719: ac_precious_vars='build_alias
720: host_alias
721: target_alias
722: CC
723: CFLAGS
724: LDFLAGS
725: LIBS
1.71 misho 726: CPPFLAGS'
1.1 misho 727:
728:
729: # Initialize some variables set by options.
730: ac_init_help=
731: ac_init_version=false
732: ac_unrecognized_opts=
733: ac_unrecognized_sep=
734: # The variables have the same names as the options, with
735: # dashes changed to underlines.
736: cache_file=/dev/null
737: exec_prefix=NONE
738: no_create=
739: no_recursion=
740: prefix=NONE
741: program_prefix=NONE
742: program_suffix=NONE
743: program_transform_name=s,x,x,
744: silent=
745: site=
746: srcdir=
747: verbose=
748: x_includes=NONE
749: x_libraries=NONE
750:
751: # Installation directory options.
752: # These are left unexpanded so users can "make install exec_prefix=/foo"
753: # and all the variables that are supposed to be based on exec_prefix
754: # by default will actually change.
755: # Use braces instead of parens because sh, perl, etc. also accept them.
756: # (The list follows the same order as the GNU Coding Standards.)
757: bindir='${exec_prefix}/bin'
758: sbindir='${exec_prefix}/sbin'
759: libexecdir='${exec_prefix}/libexec'
760: datarootdir='${prefix}/share'
761: datadir='${datarootdir}'
762: sysconfdir='${prefix}/etc'
763: sharedstatedir='${prefix}/com'
764: localstatedir='${prefix}/var'
1.62 misho 765: runstatedir='${localstatedir}/run'
1.1 misho 766: includedir='${prefix}/include'
767: oldincludedir='/usr/include'
768: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
769: infodir='${datarootdir}/info'
770: htmldir='${docdir}'
771: dvidir='${docdir}'
772: pdfdir='${docdir}'
773: psdir='${docdir}'
774: libdir='${exec_prefix}/lib'
775: localedir='${datarootdir}/locale'
776: mandir='${datarootdir}/man'
777:
778: ac_prev=
779: ac_dashdash=
780: for ac_option
781: do
782: # If the previous option needs an argument, assign it.
783: if test -n "$ac_prev"; then
784: eval $ac_prev=\$ac_option
785: ac_prev=
786: continue
787: fi
788:
789: case $ac_option in
790: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791: *=) ac_optarg= ;;
792: *) ac_optarg=yes ;;
793: esac
794:
795: case $ac_dashdash$ac_option in
796: --)
797: ac_dashdash=yes ;;
798:
799: -bindir | --bindir | --bindi | --bind | --bin | --bi)
800: ac_prev=bindir ;;
801: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802: bindir=$ac_optarg ;;
803:
804: -build | --build | --buil | --bui | --bu)
805: ac_prev=build_alias ;;
806: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807: build_alias=$ac_optarg ;;
808:
809: -cache-file | --cache-file | --cache-fil | --cache-fi \
810: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811: ac_prev=cache_file ;;
812: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814: cache_file=$ac_optarg ;;
815:
816: --config-cache | -C)
817: cache_file=config.cache ;;
818:
819: -datadir | --datadir | --datadi | --datad)
820: ac_prev=datadir ;;
821: -datadir=* | --datadir=* | --datadi=* | --datad=*)
822: datadir=$ac_optarg ;;
823:
824: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825: | --dataroo | --dataro | --datar)
826: ac_prev=datarootdir ;;
827: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829: datarootdir=$ac_optarg ;;
830:
831: -disable-* | --disable-*)
832: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833: # Reject names that are not valid shell variable names.
834: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.71 misho 835: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.1 misho 836: ac_useropt_orig=$ac_useropt
1.71 misho 837: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 838: case $ac_user_opts in
839: *"
840: "enable_$ac_useropt"
841: "*) ;;
842: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843: ac_unrecognized_sep=', ';;
844: esac
845: eval enable_$ac_useropt=no ;;
846:
847: -docdir | --docdir | --docdi | --doc | --do)
848: ac_prev=docdir ;;
849: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850: docdir=$ac_optarg ;;
851:
852: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853: ac_prev=dvidir ;;
854: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855: dvidir=$ac_optarg ;;
856:
857: -enable-* | --enable-*)
858: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859: # Reject names that are not valid shell variable names.
860: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.71 misho 861: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.1 misho 862: ac_useropt_orig=$ac_useropt
1.71 misho 863: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 864: case $ac_user_opts in
865: *"
866: "enable_$ac_useropt"
867: "*) ;;
868: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869: ac_unrecognized_sep=', ';;
870: esac
871: eval enable_$ac_useropt=\$ac_optarg ;;
872:
873: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875: | --exec | --exe | --ex)
876: ac_prev=exec_prefix ;;
877: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879: | --exec=* | --exe=* | --ex=*)
880: exec_prefix=$ac_optarg ;;
881:
882: -gas | --gas | --ga | --g)
883: # Obsolete; use --with-gas.
884: with_gas=yes ;;
885:
886: -help | --help | --hel | --he | -h)
887: ac_init_help=long ;;
888: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889: ac_init_help=recursive ;;
890: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891: ac_init_help=short ;;
892:
893: -host | --host | --hos | --ho)
894: ac_prev=host_alias ;;
895: -host=* | --host=* | --hos=* | --ho=*)
896: host_alias=$ac_optarg ;;
897:
898: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899: ac_prev=htmldir ;;
900: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901: | --ht=*)
902: htmldir=$ac_optarg ;;
903:
904: -includedir | --includedir | --includedi | --included | --include \
905: | --includ | --inclu | --incl | --inc)
906: ac_prev=includedir ;;
907: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908: | --includ=* | --inclu=* | --incl=* | --inc=*)
909: includedir=$ac_optarg ;;
910:
911: -infodir | --infodir | --infodi | --infod | --info | --inf)
912: ac_prev=infodir ;;
913: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914: infodir=$ac_optarg ;;
915:
916: -libdir | --libdir | --libdi | --libd)
917: ac_prev=libdir ;;
918: -libdir=* | --libdir=* | --libdi=* | --libd=*)
919: libdir=$ac_optarg ;;
920:
921: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922: | --libexe | --libex | --libe)
923: ac_prev=libexecdir ;;
924: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925: | --libexe=* | --libex=* | --libe=*)
926: libexecdir=$ac_optarg ;;
927:
928: -localedir | --localedir | --localedi | --localed | --locale)
929: ac_prev=localedir ;;
930: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931: localedir=$ac_optarg ;;
932:
933: -localstatedir | --localstatedir | --localstatedi | --localstated \
934: | --localstate | --localstat | --localsta | --localst | --locals)
935: ac_prev=localstatedir ;;
936: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938: localstatedir=$ac_optarg ;;
939:
940: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941: ac_prev=mandir ;;
942: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943: mandir=$ac_optarg ;;
944:
945: -nfp | --nfp | --nf)
946: # Obsolete; use --without-fp.
947: with_fp=no ;;
948:
949: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950: | --no-cr | --no-c | -n)
951: no_create=yes ;;
952:
953: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955: no_recursion=yes ;;
956:
957: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959: | --oldin | --oldi | --old | --ol | --o)
960: ac_prev=oldincludedir ;;
961: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964: oldincludedir=$ac_optarg ;;
965:
966: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967: ac_prev=prefix ;;
968: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969: prefix=$ac_optarg ;;
970:
971: -program-prefix | --program-prefix | --program-prefi | --program-pref \
972: | --program-pre | --program-pr | --program-p)
973: ac_prev=program_prefix ;;
974: -program-prefix=* | --program-prefix=* | --program-prefi=* \
975: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976: program_prefix=$ac_optarg ;;
977:
978: -program-suffix | --program-suffix | --program-suffi | --program-suff \
979: | --program-suf | --program-su | --program-s)
980: ac_prev=program_suffix ;;
981: -program-suffix=* | --program-suffix=* | --program-suffi=* \
982: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983: program_suffix=$ac_optarg ;;
984:
985: -program-transform-name | --program-transform-name \
986: | --program-transform-nam | --program-transform-na \
987: | --program-transform-n | --program-transform- \
988: | --program-transform | --program-transfor \
989: | --program-transfo | --program-transf \
990: | --program-trans | --program-tran \
991: | --progr-tra | --program-tr | --program-t)
992: ac_prev=program_transform_name ;;
993: -program-transform-name=* | --program-transform-name=* \
994: | --program-transform-nam=* | --program-transform-na=* \
995: | --program-transform-n=* | --program-transform-=* \
996: | --program-transform=* | --program-transfor=* \
997: | --program-transfo=* | --program-transf=* \
998: | --program-trans=* | --program-tran=* \
999: | --progr-tra=* | --program-tr=* | --program-t=*)
1000: program_transform_name=$ac_optarg ;;
1001:
1002: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003: ac_prev=pdfdir ;;
1004: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005: pdfdir=$ac_optarg ;;
1006:
1007: -psdir | --psdir | --psdi | --psd | --ps)
1008: ac_prev=psdir ;;
1009: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010: psdir=$ac_optarg ;;
1011:
1012: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013: | -silent | --silent | --silen | --sile | --sil)
1014: silent=yes ;;
1015:
1.62 misho 1016: -runstatedir | --runstatedir | --runstatedi | --runstated \
1017: | --runstate | --runstat | --runsta | --runst | --runs \
1018: | --run | --ru | --r)
1019: ac_prev=runstatedir ;;
1020: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1021: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1022: | --run=* | --ru=* | --r=*)
1023: runstatedir=$ac_optarg ;;
1024:
1.1 misho 1025: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026: ac_prev=sbindir ;;
1027: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028: | --sbi=* | --sb=*)
1029: sbindir=$ac_optarg ;;
1030:
1031: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033: | --sharedst | --shareds | --shared | --share | --shar \
1034: | --sha | --sh)
1035: ac_prev=sharedstatedir ;;
1036: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039: | --sha=* | --sh=*)
1040: sharedstatedir=$ac_optarg ;;
1041:
1042: -site | --site | --sit)
1043: ac_prev=site ;;
1044: -site=* | --site=* | --sit=*)
1045: site=$ac_optarg ;;
1046:
1047: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048: ac_prev=srcdir ;;
1049: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050: srcdir=$ac_optarg ;;
1051:
1052: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053: | --syscon | --sysco | --sysc | --sys | --sy)
1054: ac_prev=sysconfdir ;;
1055: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057: sysconfdir=$ac_optarg ;;
1058:
1059: -target | --target | --targe | --targ | --tar | --ta | --t)
1060: ac_prev=target_alias ;;
1061: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062: target_alias=$ac_optarg ;;
1063:
1064: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065: verbose=yes ;;
1066:
1067: -version | --version | --versio | --versi | --vers | -V)
1068: ac_init_version=: ;;
1069:
1070: -with-* | --with-*)
1071: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072: # Reject names that are not valid shell variable names.
1073: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.71 misho 1074: as_fn_error $? "invalid package name: '$ac_useropt'"
1.1 misho 1075: ac_useropt_orig=$ac_useropt
1.71 misho 1076: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 1077: case $ac_user_opts in
1078: *"
1079: "with_$ac_useropt"
1080: "*) ;;
1081: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082: ac_unrecognized_sep=', ';;
1083: esac
1084: eval with_$ac_useropt=\$ac_optarg ;;
1085:
1086: -without-* | --without-*)
1087: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088: # Reject names that are not valid shell variable names.
1089: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.71 misho 1090: as_fn_error $? "invalid package name: '$ac_useropt'"
1.1 misho 1091: ac_useropt_orig=$ac_useropt
1.71 misho 1092: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 1093: case $ac_user_opts in
1094: *"
1095: "with_$ac_useropt"
1096: "*) ;;
1097: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098: ac_unrecognized_sep=', ';;
1099: esac
1100: eval with_$ac_useropt=no ;;
1101:
1102: --x)
1103: # Obsolete; use --with-x.
1104: with_x=yes ;;
1105:
1106: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107: | --x-incl | --x-inc | --x-in | --x-i)
1108: ac_prev=x_includes ;;
1109: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111: x_includes=$ac_optarg ;;
1112:
1113: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115: ac_prev=x_libraries ;;
1116: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118: x_libraries=$ac_optarg ;;
1119:
1.71 misho 1120: -*) as_fn_error $? "unrecognized option: '$ac_option'
1121: Try '$0 --help' for more information"
1.1 misho 1122: ;;
1123:
1124: *=*)
1125: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126: # Reject names that are not valid shell variable names.
1127: case $ac_envvar in #(
1128: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.71 misho 1129: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.1 misho 1130: esac
1131: eval $ac_envvar=\$ac_optarg
1132: export $ac_envvar ;;
1133:
1134: *)
1135: # FIXME: should be removed in autoconf 3.0.
1.71 misho 1136: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misho 1137: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.71 misho 1138: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 misho 1139: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1140: ;;
1141:
1142: esac
1143: done
1144:
1145: if test -n "$ac_prev"; then
1146: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147: as_fn_error $? "missing argument to $ac_option"
1148: fi
1149:
1150: if test -n "$ac_unrecognized_opts"; then
1151: case $enable_option_checking in
1152: no) ;;
1153: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.71 misho 1154: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.1 misho 1155: esac
1156: fi
1157:
1158: # Check all directory arguments for consistency.
1159: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160: datadir sysconfdir sharedstatedir localstatedir includedir \
1161: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.62 misho 1162: libdir localedir mandir runstatedir
1.1 misho 1163: do
1164: eval ac_val=\$$ac_var
1165: # Remove trailing slashes.
1166: case $ac_val in
1167: */ )
1168: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169: eval $ac_var=\$ac_val;;
1170: esac
1171: # Be sure to have absolute directory names.
1172: case $ac_val in
1173: [\\/$]* | ?:[\\/]* ) continue;;
1174: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175: esac
1176: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1177: done
1178:
1.71 misho 1179: # There might be people who depend on the old broken behavior: '$host'
1.1 misho 1180: # used to hold the argument of --host etc.
1181: # FIXME: To remove some day.
1182: build=$build_alias
1183: host=$host_alias
1184: target=$target_alias
1185:
1186: # FIXME: To remove some day.
1187: if test "x$host_alias" != x; then
1188: if test "x$build_alias" = x; then
1189: cross_compiling=maybe
1190: elif test "x$build_alias" != "x$host_alias"; then
1191: cross_compiling=yes
1192: fi
1193: fi
1194:
1195: ac_tool_prefix=
1196: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197:
1198: test "$silent" = yes && exec 6>/dev/null
1199:
1200:
1201: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202: ac_ls_di=`ls -di .` &&
1203: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204: as_fn_error $? "working directory cannot be determined"
1205: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206: as_fn_error $? "pwd does not report name of working directory"
1207:
1208:
1209: # Find the source files, if location was not specified.
1210: if test -z "$srcdir"; then
1211: ac_srcdir_defaulted=yes
1212: # Try the directory containing this script, then the parent directory.
1213: ac_confdir=`$as_dirname -- "$as_myself" ||
1214: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215: X"$as_myself" : 'X\(//\)[^/]' \| \
1216: X"$as_myself" : 'X\(//\)$' \| \
1217: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 1218: printf "%s\n" X"$as_myself" |
1.1 misho 1219: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220: s//\1/
1221: q
1222: }
1223: /^X\(\/\/\)[^/].*/{
1224: s//\1/
1225: q
1226: }
1227: /^X\(\/\/\)$/{
1228: s//\1/
1229: q
1230: }
1231: /^X\(\/\).*/{
1232: s//\1/
1233: q
1234: }
1235: s/.*/./; q'`
1236: srcdir=$ac_confdir
1237: if test ! -r "$srcdir/$ac_unique_file"; then
1238: srcdir=..
1239: fi
1240: else
1241: ac_srcdir_defaulted=no
1242: fi
1243: if test ! -r "$srcdir/$ac_unique_file"; then
1244: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1246: fi
1.71 misho 1247: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.1 misho 1248: ac_abs_confdir=`(
1249: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1250: pwd)`
1251: # When building in place, set srcdir=.
1252: if test "$ac_abs_confdir" = "$ac_pwd"; then
1253: srcdir=.
1254: fi
1255: # Remove unnecessary trailing slashes from srcdir.
1256: # Double slashes in file names in object file debugging info
1257: # mess up M-x gdb in Emacs.
1258: case $srcdir in
1259: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260: esac
1261: for ac_var in $ac_precious_vars; do
1262: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263: eval ac_env_${ac_var}_value=\$${ac_var}
1264: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266: done
1267:
1268: #
1269: # Report the --help message.
1270: #
1271: if test "$ac_init_help" = "long"; then
1272: # Omit some internal or obsolete options to make the list less imposing.
1273: # This message is too long to be a string in the A/UX 3.1 sh.
1274: cat <<_ACEOF
1.74.2.1! misho 1275: 'configure' configures libelwix 6.7 to adapt to many kinds of systems.
1.1 misho 1276:
1277: Usage: $0 [OPTION]... [VAR=VALUE]...
1278:
1279: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280: VAR=VALUE. See below for descriptions of some of the useful variables.
1281:
1282: Defaults for the options are specified in brackets.
1283:
1284: Configuration:
1285: -h, --help display this help and exit
1286: --help=short display options specific to this package
1287: --help=recursive display the short help of all the included packages
1288: -V, --version display version information and exit
1.71 misho 1289: -q, --quiet, --silent do not print 'checking ...' messages
1.1 misho 1290: --cache-file=FILE cache test results in FILE [disabled]
1.71 misho 1291: -C, --config-cache alias for '--cache-file=config.cache'
1.1 misho 1292: -n, --no-create do not create output files
1.71 misho 1293: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.1 misho 1294:
1295: Installation directories:
1296: --prefix=PREFIX install architecture-independent files in PREFIX
1297: [$ac_default_prefix]
1298: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299: [PREFIX]
1300:
1.71 misho 1301: By default, 'make install' will install all the files in
1302: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1303: an installation prefix other than '$ac_default_prefix' using '--prefix',
1304: for instance '--prefix=\$HOME'.
1.1 misho 1305:
1306: For better control, use the options below.
1307:
1308: Fine tuning of the installation directories:
1309: --bindir=DIR user executables [EPREFIX/bin]
1310: --sbindir=DIR system admin executables [EPREFIX/sbin]
1311: --libexecdir=DIR program executables [EPREFIX/libexec]
1312: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.62 misho 1315: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 misho 1316: --libdir=DIR object code libraries [EPREFIX/lib]
1317: --includedir=DIR C header files [PREFIX/include]
1318: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321: --infodir=DIR info documentation [DATAROOTDIR/info]
1322: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323: --mandir=DIR man documentation [DATAROOTDIR/man]
1324: --docdir=DIR documentation root [DATAROOTDIR/doc/libelwix]
1325: --htmldir=DIR html documentation [DOCDIR]
1326: --dvidir=DIR dvi documentation [DOCDIR]
1327: --pdfdir=DIR pdf documentation [DOCDIR]
1328: --psdir=DIR ps documentation [DOCDIR]
1329: _ACEOF
1330:
1331: cat <<\_ACEOF
1332:
1333: System types:
1334: --build=BUILD configure for building on BUILD [guessed]
1335: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1336: --target=TARGET configure for building compilers for TARGET [HOST]
1337: _ACEOF
1338: fi
1339:
1340: if test -n "$ac_init_help"; then
1341: case $ac_init_help in
1.74.2.1! misho 1342: short | recursive ) echo "Configuration of libelwix 6.7:";;
1.1 misho 1343: esac
1344: cat <<\_ACEOF
1345:
1346: Optional Features:
1347: --disable-option-checking ignore unrecognized --enable/--with options
1348: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350: --enable-debug Build library with debug information and additional messages
1.69 misho 1351: --enable-mpool-mem-zero MPool zeroing allocated memory
1.65 misho 1352: --enable-patricia Patricia support for ELWIX
1353: --enable-pelco Pelco support for ELWIX
1.1 misho 1354:
1.27 misho 1355: Optional Packages:
1356: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358: --with-memmgr=<mm> Memory manager for ELWIX (elwix|system)
1359:
1.1 misho 1360: Some influential environment variables:
1361: CC C compiler command
1362: CFLAGS C compiler flags
1363: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1364: nonstandard directory <lib dir>
1365: LIBS libraries to pass to the linker, e.g. -l<library>
1366: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1367: you have headers in a nonstandard directory <include dir>
1368:
1.71 misho 1369: Use these variables to override the choices made by 'configure' or to help
1.1 misho 1370: it to find libraries and programs with nonstandard names/locations.
1371:
1372: Report bugs to <misho@elwix.org>.
1373: _ACEOF
1374: ac_status=$?
1375: fi
1376:
1377: if test "$ac_init_help" = "recursive"; then
1378: # If there are subdirs, report their specific --help.
1379: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380: test -d "$ac_dir" ||
1381: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382: continue
1383: ac_builddir=.
1384:
1385: case "$ac_dir" in
1386: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387: *)
1.71 misho 1388: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 1389: # A ".." for each directory in $ac_dir_suffix.
1.71 misho 1390: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 1391: case $ac_top_builddir_sub in
1392: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394: esac ;;
1395: esac
1396: ac_abs_top_builddir=$ac_pwd
1397: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398: # for backward compatibility:
1399: ac_top_builddir=$ac_top_build_prefix
1400:
1401: case $srcdir in
1402: .) # We are building in place.
1403: ac_srcdir=.
1404: ac_top_srcdir=$ac_top_builddir_sub
1405: ac_abs_top_srcdir=$ac_pwd ;;
1406: [\\/]* | ?:[\\/]* ) # Absolute name.
1407: ac_srcdir=$srcdir$ac_dir_suffix;
1408: ac_top_srcdir=$srcdir
1409: ac_abs_top_srcdir=$srcdir ;;
1410: *) # Relative name.
1411: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412: ac_top_srcdir=$ac_top_build_prefix$srcdir
1413: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414: esac
1415: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416:
1417: cd "$ac_dir" || { ac_status=$?; continue; }
1.71 misho 1418: # Check for configure.gnu first; this name is used for a wrapper for
1419: # Metaconfig's "Configure" on case-insensitive file systems.
1.1 misho 1420: if test -f "$ac_srcdir/configure.gnu"; then
1421: echo &&
1422: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423: elif test -f "$ac_srcdir/configure"; then
1424: echo &&
1425: $SHELL "$ac_srcdir/configure" --help=recursive
1426: else
1.71 misho 1427: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 misho 1428: fi || ac_status=$?
1429: cd "$ac_pwd" || { ac_status=$?; break; }
1430: done
1431: fi
1432:
1433: test -n "$ac_init_help" && exit $ac_status
1434: if $ac_init_version; then
1435: cat <<\_ACEOF
1.74.2.1! misho 1436: libelwix configure 6.7
1.71 misho 1437: generated by GNU Autoconf 2.72
1.1 misho 1438:
1.71 misho 1439: Copyright (C) 2023 Free Software Foundation, Inc.
1.1 misho 1440: This configure script is free software; the Free Software Foundation
1441: gives unlimited permission to copy, distribute and modify it.
1442: _ACEOF
1443: exit
1444: fi
1445:
1446: ## ------------------------ ##
1447: ## Autoconf initialization. ##
1448: ## ------------------------ ##
1449:
1450: # ac_fn_c_try_compile LINENO
1451: # --------------------------
1452: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1453: ac_fn_c_try_compile ()
1454: {
1455: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 1456: rm -f conftest.$ac_objext conftest.beam
1.1 misho 1457: if { { ac_try="$ac_compile"
1458: case "(($ac_try" in
1459: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460: *) ac_try_echo=$ac_try;;
1461: esac
1462: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 1463: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1464: (eval "$ac_compile") 2>conftest.err
1465: ac_status=$?
1466: if test -s conftest.err; then
1467: grep -v '^ *+' conftest.err >conftest.er1
1468: cat conftest.er1 >&5
1469: mv -f conftest.er1 conftest.err
1470: fi
1.71 misho 1471: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 1472: test $ac_status = 0; } && {
1473: test -z "$ac_c_werror_flag" ||
1474: test ! -s conftest.err
1.71 misho 1475: } && test -s conftest.$ac_objext
1476: then :
1.1 misho 1477: ac_retval=0
1.71 misho 1478: else case e in #(
1479: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 1480: sed 's/^/| /' conftest.$ac_ext >&5
1481:
1.71 misho 1482: ac_retval=1 ;;
1483: esac
1.1 misho 1484: fi
1485: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486: as_fn_set_status $ac_retval
1487:
1488: } # ac_fn_c_try_compile
1489:
1490: # ac_fn_c_try_link LINENO
1491: # -----------------------
1492: # Try to link conftest.$ac_ext, and return whether this succeeded.
1493: ac_fn_c_try_link ()
1494: {
1495: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 1496: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.1 misho 1497: if { { ac_try="$ac_link"
1498: case "(($ac_try" in
1499: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500: *) ac_try_echo=$ac_try;;
1501: esac
1502: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.71 misho 1503: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1504: (eval "$ac_link") 2>conftest.err
1505: ac_status=$?
1506: if test -s conftest.err; then
1507: grep -v '^ *+' conftest.err >conftest.er1
1508: cat conftest.er1 >&5
1509: mv -f conftest.er1 conftest.err
1510: fi
1.71 misho 1511: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 misho 1512: test $ac_status = 0; } && {
1513: test -z "$ac_c_werror_flag" ||
1514: test ! -s conftest.err
1515: } && test -s conftest$ac_exeext && {
1516: test "$cross_compiling" = yes ||
1517: test -x conftest$ac_exeext
1.71 misho 1518: }
1519: then :
1.1 misho 1520: ac_retval=0
1.71 misho 1521: else case e in #(
1522: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 1523: sed 's/^/| /' conftest.$ac_ext >&5
1524:
1.71 misho 1525: ac_retval=1 ;;
1526: esac
1.1 misho 1527: fi
1528: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1529: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1530: # interfere with the next link command; also delete a directory that is
1531: # left behind by Apple's compiler. We do this before executing the actions.
1532: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1533: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534: as_fn_set_status $ac_retval
1535:
1536: } # ac_fn_c_try_link
1537:
1.71 misho 1538: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1.1 misho 1539: # -------------------------------------------------------
1.71 misho 1540: # Tests whether HEADER exists and can be compiled using the include files in
1541: # INCLUDES, setting the cache variable VAR accordingly.
1542: ac_fn_c_check_header_compile ()
1.1 misho 1543: {
1544: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 1545: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1546: printf %s "checking for $2... " >&6; }
1547: if eval test \${$3+y}
1548: then :
1549: printf %s "(cached) " >&6
1550: else case e in #(
1551: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 1552: /* end confdefs.h. */
1553: $4
1554: #include <$2>
1555: _ACEOF
1.71 misho 1556: if ac_fn_c_try_compile "$LINENO"
1557: then :
1558: eval "$3=yes"
1559: else case e in #(
1560: e) eval "$3=no" ;;
1561: esac
1.1 misho 1562: fi
1.71 misho 1563: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1.69 misho 1564: esac
1.1 misho 1565: fi
1566: eval ac_res=\$$3
1.71 misho 1567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568: printf "%s\n" "$ac_res" >&6; }
1.1 misho 1569: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570:
1.71 misho 1571: } # ac_fn_c_check_header_compile
1.1 misho 1572:
1573: # ac_fn_c_try_run LINENO
1574: # ----------------------
1.71 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.71 misho 1586: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1587: (eval "$ac_link") 2>&5
1588: ac_status=$?
1.71 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.71 misho 1596: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 1597: (eval "$ac_try") 2>&5
1598: ac_status=$?
1.71 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.71 misho 1603: else case e in #(
1604: e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1605: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 1606: sed 's/^/| /' conftest.$ac_ext >&5
1607:
1.71 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.71 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
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.71 misho 1636: which can conflict with char $2 (void); below. */
1.1 misho 1637:
1.71 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.71 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.71 misho 1656: main (void)
1.1 misho 1657: {
1658: return $2 ();
1659: ;
1660: return 0;
1661: }
1662: _ACEOF
1.71 misho 1663: if ac_fn_c_try_link "$LINENO"
1664: then :
1.1 misho 1665: eval "$3=yes"
1.71 misho 1666: else case e in #(
1667: e) eval "$3=no" ;;
1668: esac
1.1 misho 1669: fi
1.71 misho 1670: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1671: conftest$ac_exeext conftest.$ac_ext ;;
1672: esac
1.1 misho 1673: fi
1674: eval ac_res=\$$3
1.71 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.71 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.74.2.1! misho 1704: It was created by libelwix $as_me 6.7, which was
1.71 misho 1705: generated by GNU Autoconf 2.72. Invocation command line was
1.1 misho 1706:
1.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 misho 1865: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 1866: esac
1.71 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.71 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.71 misho 1880: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 1881: esac
1.71 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.71 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.71 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.71 misho 1911: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.1 misho 1912:
1913: # Predefined preprocessor variables.
1914:
1.71 misho 1915: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.1 misho 1916:
1.71 misho 1917: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.1 misho 1918:
1.71 misho 1919: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.1 misho 1920:
1.71 misho 1921: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.1 misho 1922:
1.71 misho 1923: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.1 misho 1924:
1.71 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.71 misho 1931: ac_site_files="$CONFIG_SITE"
1.1 misho 1932: elif test "x$prefix" != xNONE; then
1.71 misho 1933: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.1 misho 1934: else
1.71 misho 1935: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1 misho 1936: fi
1.71 misho 1937:
1938: for ac_site_file in $ac_site_files
1.1 misho 1939: do
1.71 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.71 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.71 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.71 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.71 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.71 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);
1990: static char *e (char **p, int i)
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.65 misho 2003:
1.71 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);
1.63 misho 2018:
1.71 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.69 misho 2027:
1.71 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.71 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.71 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.71 misho 2044: # Test code for whether the C compiler supports C99 (global declarations)
2045: ac_c_conftest_c99_globals='
2046: /* Does the compiler advertise C99 conformance? */
2047: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2048: # error "Compiler does not advertise C99 conformance"
2049: #endif
2050:
2051: // See if C++-style comments work.
2052:
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);
2058: extern void free (void *);
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;
2173: // Work around memory leak warnings.
2174: free (ia);
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='
2196: /* Does the compiler advertise C11 conformance? */
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:
2388: else case e in #(
2389: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2390: esac
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,)
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;}
2420: ac_cache_corrupted=: ;;
2421: ,set)
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;}
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
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;}
2434: ac_cache_corrupted=:
2435: else
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;}
2438: eval $ac_var=\$ac_old_val
2439: fi
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;}
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
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;}
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;}
2463: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
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.70 misho 2484: # Checks for programs.
1.71 misho 2485:
2486:
2487:
2488:
2489:
2490:
2491:
2492:
2493:
1.70 misho 2494: ac_ext=c
1.64 misho 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.71 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
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.71 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.71 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.71 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.71 misho 2530: fi ;;
2531: esac
1.1 misho 2532: fi
2533: CC=$ac_cv_prog_CC
2534: if test -n "$CC"; then
1.71 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.71 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.71 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
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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 misho 2607: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608: printf %s "checking for $ac_word... " >&6; }
2609: if test ${ac_cv_prog_CC+y}
2610: then :
2611: printf %s "(cached) " >&6
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.71 misho 2620: case $as_dir in #(((
2621: '') as_dir=./ ;;
2622: */) ;;
2623: *) as_dir=$as_dir/ ;;
2624: esac
1.1 misho 2625: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 2626: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2627: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.71 misho 2628: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2629: break 2
2630: fi
2631: done
2632: done
2633: IFS=$as_save_IFS
2634:
1.71 misho 2635: fi ;;
2636: esac
1.1 misho 2637: fi
2638: CC=$ac_cv_prog_CC
2639: if test -n "$CC"; then
1.71 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.71 misho 2643: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644: printf "%s\n" "no" >&6; }
1.1 misho 2645: fi
2646:
2647:
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.71 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
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.71 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.71 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.71 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.71 misho 2695: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1 misho 2696: fi
2697: fi
1.71 misho 2698: fi ;;
2699: esac
1.1 misho 2700: fi
2701: CC=$ac_cv_prog_CC
2702: if test -n "$CC"; then
1.71 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.71 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.71 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
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.71 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.71 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.71 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.71 misho 2746: fi ;;
2747: esac
1.1 misho 2748: fi
2749: CC=$ac_cv_prog_CC
2750: if test -n "$CC"; then
1.71 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.71 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.71 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
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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.65 misho 2819: ac_tool_warned=yes ;;
2820: esac
2821: CC=$ac_ct_CC
2822: fi
2823: fi
2824:
2825: fi
1.71 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
2835: else case e in #(
2836: e) if test -n "$CC"; then
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
1.65 misho 2857:
1.71 misho 2858: fi ;;
2859: esac
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.65 misho 2869:
1.71 misho 2870:
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
2881: else case e in #(
2882: e) if test -n "$ac_ct_CC"; then
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:
2904: fi ;;
2905: esac
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:
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.71 misho 2937: See 'config.log' for more details" "$LINENO" 5; }
1.1 misho 2938:
2939: # Provide some information about the compiler.
1.71 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.71 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.71 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.71 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.71 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.71 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.71 misho 3003: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3004: (eval "$ac_link_default") 2>&5
3005: ac_status=$?
1.71 misho 3006: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007: test $ac_status = 0; }
3008: then :
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.71 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.71 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.71 misho 3041: else case e in #(
3042: e) ac_file='' ;;
3043: esac
1.1 misho 3044: fi
1.71 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.71 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.71 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
1.71 misho 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.71 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.71 misho 3077: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3078: (eval "$ac_link") 2>&5
3079: ac_status=$?
1.71 misho 3080: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081: test $ac_status = 0; }
3082: then :
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.71 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.71 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.71 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.71 misho 3114: main (void)
1.1 misho 3115: {
3116: FILE *f = fopen ("conftest.out", "w");
1.71 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.71 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.71 misho 3137: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3138: (eval "$ac_link") 2>&5
3139: ac_status=$?
1.71 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.71 misho 3148: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3149: (eval "$ac_try") 2>&5
3150: ac_status=$?
1.71 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.71 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;}
3160: as_fn_error 77 "cannot run C compiled programs.
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.71 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.71 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.71 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
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.71 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.71 misho 3196: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3197: (eval "$ac_compile") 2>&5
3198: ac_status=$?
1.71 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.71 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.71 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.71 misho 3217: See 'config.log' for more details" "$LINENO" 5; } ;;
3218: esac
1.1 misho 3219: fi
1.71 misho 3220: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3221: esac
1.1 misho 3222: fi
1.71 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.71 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
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.71 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.71 misho 3247: if ac_fn_c_try_compile "$LINENO"
3248: then :
1.1 misho 3249: ac_compiler_gnu=yes
1.71 misho 3250: else case e in #(
3251: e) ac_compiler_gnu=no ;;
3252: esac
1.1 misho 3253: fi
1.71 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.71 misho 3256: ;;
3257: esac
3258: fi
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
1.70 misho 3262:
3263: if test $ac_compiler_gnu = yes; then
1.1 misho 3264: GCC=yes
3265: else
3266: GCC=
3267: fi
1.71 misho 3268: ac_test_CFLAGS=${CFLAGS+y}
1.1 misho 3269: ac_save_CFLAGS=$CFLAGS
1.71 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
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.71 misho 3284: main (void)
1.1 misho 3285: {
3286:
3287: ;
3288: return 0;
3289: }
3290: _ACEOF
1.71 misho 3291: if ac_fn_c_try_compile "$LINENO"
3292: then :
1.1 misho 3293: ac_cv_prog_cc_g=yes
1.71 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.71 misho 3300: main (void)
1.1 misho 3301: {
3302:
3303: ;
3304: return 0;
3305: }
3306: _ACEOF
1.71 misho 3307: if ac_fn_c_try_compile "$LINENO"
3308: then :
1.1 misho 3309:
1.71 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.71 misho 3317: main (void)
1.1 misho 3318: {
3319:
3320: ;
3321: return 0;
3322: }
3323: _ACEOF
1.71 misho 3324: if ac_fn_c_try_compile "$LINENO"
3325: then :
1.1 misho 3326: ac_cv_prog_cc_g=yes
3327: fi
1.71 misho 3328: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3329: esac
1.1 misho 3330: fi
1.71 misho 3331: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3332: esac
1.1 misho 3333: fi
1.71 misho 3334: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3335: ac_c_werror_flag=$ac_save_c_werror_flag ;;
3336: esac
1.1 misho 3337: fi
1.71 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.71 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
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.71 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
3381: CC=$ac_save_CC ;;
3382: esac
3383: fi
1.70 misho 3384:
1.71 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; }
3389: else case e in #(
3390: e) if test "x$ac_cv_prog_cc_c11" = x
3391: then :
3392: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3393: printf "%s\n" "none needed" >&6; }
3394: else case e in #(
3395: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3396: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3397: CC="$CC $ac_cv_prog_cc_c11" ;;
3398: esac
3399: fi
3400: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3401: ac_prog_cc_stdc=c11 ;;
3402: esac
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
3412: else case e in #(
3413: e) ac_cv_prog_cc_c99=no
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
3430: CC=$ac_save_CC ;;
3431: esac
3432: fi
1.64 misho 3433:
1.71 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; }
3438: else case e in #(
3439: e) if test "x$ac_cv_prog_cc_c99" = x
3440: then :
3441: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3442: printf "%s\n" "none needed" >&6; }
3443: else case e in #(
3444: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3445: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3446: CC="$CC $ac_cv_prog_cc_c99" ;;
3447: esac
3448: fi
3449: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3450: ac_prog_cc_stdc=c99 ;;
3451: esac
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
3461: else case e in #(
3462: e) ac_cv_prog_cc_c89=no
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.71 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.71 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.71 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.71 misho 3479: CC=$ac_save_CC ;;
3480: esac
3481: fi
1.64 misho 3482:
1.71 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; }
3487: else case e in #(
3488: e) if test "x$ac_cv_prog_cc_c89" = x
3489: then :
3490: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3491: printf "%s\n" "none needed" >&6; }
3492: else case e in #(
3493: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3494: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3495: CC="$CC $ac_cv_prog_cc_c89" ;;
3496: esac
1.65 misho 3497: fi
1.71 misho 3498: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3499: ac_prog_cc_stdc=c89 ;;
1.69 misho 3500: esac
1.71 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:
1.70 misho 3510:
1.1 misho 3511:
1.71 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.71 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.71 misho 3529: if test ${ac_cv_path_install+y}
3530: then :
3531: printf %s "(cached) " >&6
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.71 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.71 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.71 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.71 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.71 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.71 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.71 misho 3587: ;;
3588: esac
1.1 misho 3589: fi
1.71 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.71 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.71 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
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.71 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.71 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.71 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.71 misho 3642: fi ;;
3643: esac
1.2 misho 3644: fi
3645: RANLIB=$ac_cv_prog_RANLIB
3646: if test -n "$RANLIB"; then
1.71 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.71 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.71 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
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.71 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.71 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.71 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.71 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.71 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.71 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.71 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.71 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
3727: else case e in #(
3728: e) ac_build_alias=$build_alias
1.1 misho 3729: test "x$ac_build_alias" = x &&
1.71 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.71 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
3735: ;;
3736: esac
1.1 misho 3737: fi
1.71 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.71 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
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.71 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.71 misho 3770: ;;
3771: esac
1.1 misho 3772: fi
1.71 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.71 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
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.71 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.71 misho 3805: ;;
3806: esac
1.1 misho 3807: fi
1.71 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=$*
1.70 misho 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.71 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
3843: else case e in #(
3844: e) if test -n "$MKDEP"; then
1.70 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.71 misho 3851: case $as_dir in #(((
3852: '') as_dir=./ ;;
3853: */) ;;
3854: *) as_dir=$as_dir/ ;;
3855: esac
1.70 misho 3856: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 misho 3857: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.70 misho 3858: ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
1.71 misho 3859: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.70 misho 3860: break 2
3861: fi
3862: done
3863: done
3864: IFS=$as_save_IFS
3865:
1.71 misho 3866: fi ;;
3867: esac
1.70 misho 3868: fi
1.71 misho 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.70 misho 3873: else
1.71 misho 3874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875: printf "%s\n" "no" >&6; }
1.70 misho 3876: fi
3877:
3878:
1.71 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
3889: else case e in #(
3890: e) if test -n "$ac_ct_MKDEP"; then
3891: ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
1.70 misho 3892: else
1.71 misho 3893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894: for as_dir in $PATH
1.1 misho 3895: do
3896: IFS=$as_save_IFS
1.71 misho 3897: case $as_dir in #(((
3898: '') as_dir=./ ;;
3899: */) ;;
3900: *) as_dir=$as_dir/ ;;
3901: esac
1.1 misho 3902: for ac_exec_ext in '' $ac_executable_extensions; do
1.71 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.70 misho 3909: done
1.71 misho 3910: IFS=$as_save_IFS
3911:
3912: fi ;;
1.70 misho 3913: esac
1.71 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; }
3919: else
3920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921: printf "%s\n" "no" >&6; }
3922: fi
1.70 misho 3923:
1.71 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 ;;
3932: esac
3933: MKDEP=$ac_ct_MKDEP
1.70 misho 3934: fi
3935: else
1.71 misho 3936: MKDEP="$ac_cv_prog_MKDEP"
1.70 misho 3937: fi
1.1 misho 3938:
1.64 misho 3939:
3940:
1.71 misho 3941: if test "${ac_cv_env_CFLAGS_set}" != "set"; then
3942: CFLAGS="-Wall -O2"
1.64 misho 3943: else
1.71 misho 3944: CFLAGS="${ac_cv_env_CFLAGS_value}"
1.64 misho 3945: fi
1.71 misho 3946: if test "${ac_cv_env_LDFLAGS_set}" = "set"; then
3947: LDFLAGS="${ac_cv_env_LDFLAGS_value}"
1.70 misho 3948: fi
1.64 misho 3949:
3950:
1.71 misho 3951: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
3952: printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
3953: if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
3954: then :
3955: printf %s "(cached) " >&6
3956: else case e in #(
3957: e) ac_check_lib_save_LIBS=$LIBS
3958: LIBS="-lpthread $LIBS"
3959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 misho 3960: /* end confdefs.h. */
1.1 misho 3961:
1.71 misho 3962: /* Override any GCC internal prototype to avoid an error.
3963: Use char because int might match the return type of a GCC
3964: builtin and then its argument prototype would still apply.
3965: The 'extern "C"' is for builds by C++ compilers;
3966: although this is not generally supported in C code supporting it here
3967: has little cost and some practical benefit (sr 110532). */
3968: #ifdef __cplusplus
3969: extern "C"
3970: #endif
3971: char pthread_mutex_init (void);
1.64 misho 3972: int
1.71 misho 3973: main (void)
1.64 misho 3974: {
1.71 misho 3975: return pthread_mutex_init ();
1.64 misho 3976: ;
3977: return 0;
3978: }
3979: _ACEOF
1.71 misho 3980: if ac_fn_c_try_link "$LINENO"
3981: then :
3982: ac_cv_lib_pthread_pthread_mutex_init=yes
3983: else case e in #(
3984: e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
3985: esac
3986: fi
3987: rm -f core conftest.err conftest.$ac_objext conftest.beam \
3988: conftest$ac_exeext conftest.$ac_ext
3989: LIBS=$ac_check_lib_save_LIBS ;;
3990: esac
1.65 misho 3991: fi
1.71 misho 3992: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
3993: printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
3994: if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
3995: then :
3996: printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
1.70 misho 3997:
1.71 misho 3998: LIBS="-lpthread $LIBS"
1.70 misho 3999:
1.71 misho 4000: fi
1.70 misho 4001:
1.1 misho 4002:
1.71 misho 4003: # Checks for header files.
4004: ac_header= ac_cache=
4005: for ac_item in $ac_header_c_list
4006: do
4007: if test $ac_cache; then
4008: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4009: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4010: printf "%s\n" "#define $ac_item 1" >> confdefs.h
4011: fi
4012: ac_header= ac_cache=
4013: elif test $ac_header; then
4014: ac_cache=$ac_item
4015: else
4016: ac_header=$ac_item
4017: fi
4018: done
1.1 misho 4019:
4020:
4021:
4022:
4023:
4024:
4025:
1.64 misho 4026:
1.71 misho 4027: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4028: then :
1.64 misho 4029:
1.71 misho 4030: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.1 misho 4031:
1.70 misho 4032: fi
1.71 misho 4033: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4034: if test "x$ac_cv_header_stdlib_h" = xyes
4035: then :
4036: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
1.64 misho 4037:
1.71 misho 4038: fi
4039: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4040: if test "x$ac_cv_header_string_h" = xyes
4041: then :
4042: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
1.1 misho 4043:
4044: fi
1.71 misho 4045: ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4046: if test "x$ac_cv_header_sys_ioctl_h" = xyes
4047: then :
4048: printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
1.64 misho 4049:
1.71 misho 4050: fi
4051: ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
4052: if test "x$ac_cv_header_termios_h" = xyes
4053: then :
4054: printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
1.1 misho 4055:
1.71 misho 4056: fi
4057: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4058: if test "x$ac_cv_header_unistd_h" = xyes
4059: then :
4060: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
1.1 misho 4061:
4062: fi
1.62 misho 4063:
1.1 misho 4064:
4065: # Checks for typedefs, structures, and compiler characteristics.
1.71 misho 4066: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4067: printf %s "checking for inline... " >&6; }
4068: if test ${ac_cv_c_inline+y}
4069: then :
4070: printf %s "(cached) " >&6
4071: else case e in #(
4072: e) ac_cv_c_inline=no
1.1 misho 4073: for ac_kw in inline __inline__ __inline; do
4074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075: /* end confdefs.h. */
4076: #ifndef __cplusplus
4077: typedef int foo_t;
1.71 misho 4078: static $ac_kw foo_t static_foo (void) {return 0; }
4079: $ac_kw foo_t foo (void) {return 0; }
1.1 misho 4080: #endif
4081:
4082: _ACEOF
1.71 misho 4083: if ac_fn_c_try_compile "$LINENO"
4084: then :
1.1 misho 4085: ac_cv_c_inline=$ac_kw
4086: fi
1.71 misho 4087: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4088: test "$ac_cv_c_inline" != no && break
4089: done
1.71 misho 4090: ;;
4091: esac
1.1 misho 4092: fi
1.71 misho 4093: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4094: printf "%s\n" "$ac_cv_c_inline" >&6; }
1.1 misho 4095:
4096: case $ac_cv_c_inline in
4097: inline | yes) ;;
4098: *)
4099: case $ac_cv_c_inline in
4100: no) ac_val=;;
4101: *) ac_val=$ac_cv_c_inline;;
4102: esac
4103: cat >>confdefs.h <<_ACEOF
4104: #ifndef __cplusplus
4105: #define inline $ac_val
4106: #endif
4107: _ACEOF
4108: ;;
4109: esac
4110:
4111:
4112: # Checks for library functions.
1.71 misho 4113: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4114: printf %s "checking for GNU libc compatible malloc... " >&6; }
4115: if test ${ac_cv_func_malloc_0_nonnull+y}
4116: then :
4117: printf %s "(cached) " >&6
4118: else case e in #(
4119: e) if test "$cross_compiling" = yes
4120: then :
4121: case "$host_os" in # ((
4122: # Guess yes on platforms where we know the result.
4123: *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4124: | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
4125: ac_cv_func_malloc_0_nonnull=yes ;;
4126: # If we don't know, assume the worst.
4127: *) ac_cv_func_malloc_0_nonnull=no ;;
4128: esac
4129: else case e in #(
4130: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4131: /* end confdefs.h. */
1.71 misho 4132: #include <stdlib.h>
1.1 misho 4133:
4134: int
1.71 misho 4135: main (void)
1.1 misho 4136: {
1.71 misho 4137: void *p = malloc (0);
4138: int result = !p;
4139: free (p);
4140: return result;
1.1 misho 4141: ;
4142: return 0;
4143: }
4144: _ACEOF
1.71 misho 4145: if ac_fn_c_try_run "$LINENO"
4146: then :
1.1 misho 4147: ac_cv_func_malloc_0_nonnull=yes
1.71 misho 4148: else case e in #(
4149: e) ac_cv_func_malloc_0_nonnull=no ;;
4150: esac
1.1 misho 4151: fi
4152: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.71 misho 4153: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4154: esac
1.1 misho 4155: fi
1.71 misho 4156: ;;
4157: esac
1.1 misho 4158: fi
1.71 misho 4159: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4160: printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
4161: if test $ac_cv_func_malloc_0_nonnull = yes
4162: then :
1.1 misho 4163:
1.71 misho 4164: printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
1.1 misho 4165:
1.71 misho 4166: else case e in #(
4167: e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
1.1 misho 4168:
4169: case " $LIBOBJS " in
4170: *" malloc.$ac_objext "* ) ;;
4171: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4172: ;;
4173: esac
4174:
4175:
1.71 misho 4176: printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
4177: ;;
4178: esac
1.70 misho 4179: fi
4180:
4181:
1.71 misho 4182: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4183: printf %s "checking for GNU libc compatible realloc... " >&6; }
4184: if test ${ac_cv_func_realloc_0_nonnull+y}
4185: then :
4186: printf %s "(cached) " >&6
4187: else case e in #(
4188: e) if test "$cross_compiling" = yes
4189: then :
4190: case "$host_os" in # ((
4191: # Guess yes on platforms where we know the result.
4192: *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4193: | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
4194: ac_cv_func_realloc_0_nonnull=yes ;;
4195: # If we don't know, assume the worst.
4196: *) ac_cv_func_realloc_0_nonnull=no ;;
4197: esac
4198: else case e in #(
4199: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4200: /* end confdefs.h. */
1.71 misho 4201: #include <stdlib.h>
1.1 misho 4202:
4203: int
1.71 misho 4204: main (void)
1.1 misho 4205: {
1.71 misho 4206: void *p = realloc (0, 0);
4207: int result = !p;
4208: free (p);
4209: return result;
1.1 misho 4210: ;
4211: return 0;
4212: }
4213: _ACEOF
1.71 misho 4214: if ac_fn_c_try_run "$LINENO"
4215: then :
1.1 misho 4216: ac_cv_func_realloc_0_nonnull=yes
1.71 misho 4217: else case e in #(
4218: e) ac_cv_func_realloc_0_nonnull=no ;;
4219: esac
1.1 misho 4220: fi
4221: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.71 misho 4222: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4223: esac
1.1 misho 4224: fi
1.71 misho 4225: ;;
4226: esac
1.1 misho 4227: fi
1.71 misho 4228: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4229: printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
4230: if test $ac_cv_func_realloc_0_nonnull = yes
4231: then :
1.1 misho 4232:
1.71 misho 4233: printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
1.1 misho 4234:
1.71 misho 4235: else case e in #(
4236: e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
1.1 misho 4237:
4238: case " $LIBOBJS " in
4239: *" realloc.$ac_objext "* ) ;;
4240: *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4241: ;;
4242: esac
4243:
4244:
1.71 misho 4245: printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
4246: ;;
4247: esac
4248: fi
4249:
4250:
4251: ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4252: if test "x$ac_cv_func_memset" = xyes
4253: then :
4254: printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4255:
4256: fi
4257: ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
4258: if test "x$ac_cv_func_regcomp" = xyes
4259: then :
4260: printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
4261:
4262: fi
4263: ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4264: if test "x$ac_cv_func_strchr" = xyes
4265: then :
4266: printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4267:
4268: fi
4269: ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
4270: if test "x$ac_cv_func_strerror" = xyes
4271: then :
4272: printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
1.65 misho 4273:
4274: fi
1.71 misho 4275: ac_fn_c_check_func "$LINENO" "link_addr" "ac_cv_func_link_addr"
4276: if test "x$ac_cv_func_link_addr" = xyes
4277: then :
4278: printf "%s\n" "#define HAVE_LINK_ADDR 1" >>confdefs.h
1.65 misho 4279:
1.71 misho 4280: fi
4281: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
4282: if test "x$ac_cv_func_strlcpy" = xyes
4283: then :
4284: printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
1.65 misho 4285:
1.71 misho 4286: fi
4287: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
4288: if test "x$ac_cv_func_strlcat" = xyes
4289: then :
4290: printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
1.1 misho 4291:
4292: fi
4293:
4294:
4295: DEBUG=no
1.71 misho 4296: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
4297: printf %s "checking Debug Build... " >&6; }
1.1 misho 4298: # Check whether --enable-debug was given.
1.71 misho 4299: if test ${enable_debug+y}
4300: then :
1.1 misho 4301: enableval=$enable_debug; DEBUG=$enableval
4302: case "$enableval" in
4303: yes)
4304: CFLAGS="-g ${CFLAGS}"
4305: ;;
4306: *)
4307:
1.71 misho 4308: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
1.1 misho 4309:
4310: ;;
4311: esac
4312: fi
4313:
1.71 misho 4314: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
4315: printf "%s\n" "$DEBUG" >&6; }
1.1 misho 4316:
1.27 misho 4317: MEMMGR="elwix"
1.71 misho 4318: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Memory management" >&5
4319: printf %s "checking Memory management... " >&6; }
1.27 misho 4320:
4321: # Check whether --with-memmgr was given.
1.71 misho 4322: if test ${with_memmgr+y}
4323: then :
1.27 misho 4324: withval=$with_memmgr; case "$withval" in
4325: sys|system)
4326: MEMMGR="system"
4327:
1.71 misho 4328: printf "%s\n" "#define MEMMGR ELWIX_SYSM" >>confdefs.h
1.27 misho 4329:
4330: ;;
4331: *)
4332: MEMMGR="elwix"
4333:
1.71 misho 4334: printf "%s\n" "#define MEMMGR ELWIX_MPOOL" >>confdefs.h
1.27 misho 4335:
4336: ;;
4337: esac
1.71 misho 4338: else case e in #(
4339: e)
4340: printf "%s\n" "#define MEMMGR ELWIX_MPOOL" >>confdefs.h
4341: ;;
4342: esac
1.65 misho 4343: fi
4344:
1.71 misho 4345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MEMMGR" >&5
4346: printf "%s\n" "$MEMMGR" >&6; }
1.65 misho 4347:
1.69 misho 4348: MPOOL_MEM_ZERO=no
1.71 misho 4349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MPoll zeroing allocated memory" >&5
4350: printf %s "checking MPoll zeroing allocated memory... " >&6; }
1.69 misho 4351: # Check whether --enable-mpool-mem-zero was given.
1.71 misho 4352: if test ${enable_mpool_mem_zero+y}
4353: then :
1.69 misho 4354: enableval=$enable_mpool_mem_zero; case "$enableval" in
4355: yes)
4356:
1.71 misho 4357: printf "%s\n" "#define MPOOL_MEM_ZERO /**/" >>confdefs.h
1.69 misho 4358:
4359: MPOOL_MEM_ZERO=yes
4360: ;;
4361: *)
4362: MPOOL_MEM_ZERO=no
4363: ;;
4364: esac
4365: fi
4366:
1.71 misho 4367: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPOOL_MEM_ZERO" >&5
4368: printf "%s\n" "$MPOOL_MEM_ZERO" >&6; }
1.69 misho 4369:
1.65 misho 4370: PATRICIA=no
1.71 misho 4371: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Patricia support" >&5
4372: printf %s "checking Patricia support... " >&6; }
1.65 misho 4373: # Check whether --enable-patricia was given.
1.71 misho 4374: if test ${enable_patricia+y}
4375: then :
1.65 misho 4376: enableval=$enable_patricia; case "$enableval" in
4377: yes)
4378:
1.71 misho 4379: printf "%s\n" "#define PATRICIA_SUPPORT /**/" >>confdefs.h
1.65 misho 4380:
4381: PATRICIA=yes
4382: ;;
4383: *)
4384: ;;
4385: esac
4386: fi
4387:
1.71 misho 4388: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATRICIA" >&5
4389: printf "%s\n" "$PATRICIA" >&6; }
1.65 misho 4390:
4391: PELCO=no
1.71 misho 4392: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Pelco support" >&5
4393: printf %s "checking Pelco support... " >&6; }
1.65 misho 4394: # Check whether --enable-pelco was given.
1.71 misho 4395: if test ${enable_pelco+y}
4396: then :
1.65 misho 4397: enableval=$enable_pelco; case "$enableval" in
4398: yes)
1.27 misho 4399:
1.71 misho 4400: printf "%s\n" "#define PELCO_SUPPORT /**/" >>confdefs.h
1.27 misho 4401:
1.65 misho 4402: PELCO=yes
4403: ;;
4404: *)
4405: ;;
4406: esac
1.27 misho 4407: fi
4408:
1.71 misho 4409: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PELCO" >&5
4410: printf "%s\n" "$PELCO" >&6; }
1.27 misho 4411:
1.69 misho 4412: DEBIAN_ARCH=$target_cpu
1.71 misho 4413: if test "x$target_cpu" = "xarm6l" -o "x$target_cpu" = "xarm7l"
4414: then :
1.69 misho 4415: DEBIAN_ARCH="armhf"
4416: fi
1.71 misho 4417: if test "x$target_cpu" = "xaarch64"
4418: then :
1.69 misho 4419: DEBIAN_ARCH="arm64"
4420: fi
1.71 misho 4421: if test "x$target_cpu" = "xi686"
4422: then :
1.69 misho 4423: DEBIAN_ARCH="i386"
4424: fi
1.71 misho 4425: if test "x$target_cpu" = "xx86_64"
4426: then :
1.69 misho 4427: DEBIAN_ARCH="amd64"
4428: fi
4429:
4430:
4431:
4432: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile debian/Makefile debian/control src/Makefile"
1.1 misho 4433:
4434: cat >confcache <<\_ACEOF
4435: # This file is a shell script that caches the results of configure
4436: # tests run on this system so they can be shared between configure
4437: # scripts and configure runs, see configure's option --config-cache.
4438: # It is not useful on other systems. If it contains results you don't
4439: # want to keep, you may remove or edit it.
4440: #
4441: # config.status only pays attention to the cache file if you give it
4442: # the --recheck option to rerun configure.
4443: #
1.71 misho 4444: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4445: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.1 misho 4446: # following values.
4447:
4448: _ACEOF
4449:
4450: # The following way of writing the cache mishandles newlines in values,
4451: # but we know of no workaround that is simple, portable, and efficient.
4452: # So, we kill variables containing newlines.
4453: # Ultrix sh set writes to stderr and can't be redirected directly,
4454: # and sets the high bit in the cache file unless we assign to the vars.
4455: (
4456: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4457: eval ac_val=\$$ac_var
4458: case $ac_val in #(
4459: *${as_nl}*)
4460: case $ac_var in #(
1.71 misho 4461: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4462: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 4463: esac
4464: case $ac_var in #(
4465: _ | IFS | as_nl) ;; #(
4466: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4467: *) { eval $ac_var=; unset $ac_var;} ;;
4468: esac ;;
4469: esac
4470: done
4471:
4472: (set) 2>&1 |
4473: case $as_nl`(ac_space=' '; set) 2>&1` in #(
4474: *${as_nl}ac_space=\ *)
1.71 misho 4475: # 'set' does not quote correctly, so add quotes: double-quote
1.1 misho 4476: # substitution turns \\\\ into \\, and sed turns \\ into \.
4477: sed -n \
4478: "s/'/'\\\\''/g;
4479: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4480: ;; #(
4481: *)
1.71 misho 4482: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.1 misho 4483: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4484: ;;
4485: esac |
4486: sort
4487: ) |
4488: sed '
4489: /^ac_cv_env_/b end
4490: t clear
4491: :clear
1.71 misho 4492: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.1 misho 4493: t end
4494: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4495: :end' >>confcache
4496: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4497: if test -w "$cache_file"; then
4498: if test "x$cache_file" != "x/dev/null"; then
1.71 misho 4499: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4500: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.1 misho 4501: if test ! -f "$cache_file" || test -h "$cache_file"; then
4502: cat confcache >"$cache_file"
4503: else
4504: case $cache_file in #(
4505: */* | ?:*)
4506: mv -f confcache "$cache_file"$$ &&
4507: mv -f "$cache_file"$$ "$cache_file" ;; #(
4508: *)
4509: mv -f confcache "$cache_file" ;;
4510: esac
4511: fi
4512: fi
4513: else
1.71 misho 4514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4515: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 misho 4516: fi
4517: fi
4518: rm -f confcache
4519:
4520: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4521: # Let make expand exec_prefix.
4522: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4523:
4524: DEFS=-DHAVE_CONFIG_H
4525:
4526: ac_libobjs=
4527: ac_ltlibobjs=
4528: U=
4529: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4530: # 1. Remove the extension, and $U if already installed.
4531: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.71 misho 4532: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.1 misho 4533: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4534: # will be set to the directory where LIBOBJS objects are built.
4535: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4536: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4537: done
4538: LIBOBJS=$ac_libobjs
4539:
4540: LTLIBOBJS=$ac_ltlibobjs
4541:
4542:
4543:
4544: : "${CONFIG_STATUS=./config.status}"
4545: ac_write_fail=0
4546: ac_clean_files_save=$ac_clean_files
4547: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.71 misho 4548: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4549: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.1 misho 4550: as_write_fail=0
4551: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4552: #! $SHELL
4553: # Generated by $as_me.
4554: # Run this file to recreate the current configuration.
4555: # Compiler output produced by configure, useful for debugging
4556: # configure, is in config.log if it exists.
4557:
4558: debug=false
4559: ac_cs_recheck=false
4560: ac_cs_silent=false
4561:
4562: SHELL=\${CONFIG_SHELL-$SHELL}
4563: export SHELL
4564: _ASEOF
4565: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4566: ## -------------------- ##
4567: ## M4sh Initialization. ##
4568: ## -------------------- ##
4569:
4570: # Be more Bourne compatible
4571: DUALCASE=1; export DUALCASE # for MKS sh
1.71 misho 4572: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4573: then :
1.1 misho 4574: emulate sh
4575: NULLCMD=:
4576: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4577: # is contrary to our usage. Disable this feature.
4578: alias -g '${1+"$@"}'='"$@"'
4579: setopt NO_GLOB_SUBST
1.71 misho 4580: else case e in #(
4581: e) case `(set -o) 2>/dev/null` in #(
1.1 misho 4582: *posix*) :
4583: set -o posix ;; #(
4584: *) :
4585: ;;
1.71 misho 4586: esac ;;
1.1 misho 4587: esac
4588: fi
4589:
4590:
1.71 misho 4591:
4592: # Reset variables that may have inherited troublesome values from
4593: # the environment.
4594:
4595: # IFS needs to be set, to space, tab, and newline, in precisely that order.
4596: # (If _AS_PATH_WALK were called with IFS unset, it would have the
4597: # side effect of setting IFS to empty, thus disabling word splitting.)
4598: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 4599: as_nl='
4600: '
4601: export as_nl
1.71 misho 4602: IFS=" "" $as_nl"
4603:
4604: PS1='$ '
4605: PS2='> '
4606: PS4='+ '
4607:
4608: # Ensure predictable behavior from utilities with locale-dependent output.
4609: LC_ALL=C
4610: export LC_ALL
4611: LANGUAGE=C
4612: export LANGUAGE
4613:
4614: # We cannot yet rely on "unset" to work, but we need these variables
4615: # to be unset--not just set to an empty or harmless value--now, to
4616: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4617: # also avoids known problems related to "unset" and subshell syntax
4618: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4619: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4620: do eval test \${$as_var+y} \
4621: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4622: done
4623:
4624: # Ensure that fds 0, 1, and 2 are open.
4625: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4626: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4627: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 4628:
4629: # The user is always right.
1.71 misho 4630: if ${PATH_SEPARATOR+false} :; then
1.1 misho 4631: PATH_SEPARATOR=:
4632: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4633: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4634: PATH_SEPARATOR=';'
4635: }
4636: fi
4637:
4638:
4639: # Find who we are. Look in the path if we contain no directory separator.
4640: as_myself=
4641: case $0 in #((
4642: *[\\/]* ) as_myself=$0 ;;
4643: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644: for as_dir in $PATH
4645: do
4646: IFS=$as_save_IFS
1.71 misho 4647: case $as_dir in #(((
4648: '') as_dir=./ ;;
4649: */) ;;
4650: *) as_dir=$as_dir/ ;;
4651: esac
4652: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 misho 4653: done
4654: IFS=$as_save_IFS
4655:
4656: ;;
4657: esac
1.71 misho 4658: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.1 misho 4659: # in which case we are not to be found in the path.
4660: if test "x$as_myself" = x; then
4661: as_myself=$0
4662: fi
4663: if test ! -f "$as_myself"; then
1.71 misho 4664: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 misho 4665: exit 1
4666: fi
4667:
4668:
4669:
4670: # as_fn_error STATUS ERROR [LINENO LOG_FD]
4671: # ----------------------------------------
4672: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4673: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4674: # script with STATUS, using 1 if that was 0.
4675: as_fn_error ()
4676: {
4677: as_status=$1; test $as_status -eq 0 && as_status=1
4678: if test "$4"; then
4679: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.71 misho 4680: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 4681: fi
1.71 misho 4682: printf "%s\n" "$as_me: error: $2" >&2
1.1 misho 4683: as_fn_exit $as_status
4684: } # as_fn_error
4685:
4686:
4687: # as_fn_set_status STATUS
4688: # -----------------------
4689: # Set $? to STATUS, without forking.
4690: as_fn_set_status ()
4691: {
4692: return $1
4693: } # as_fn_set_status
4694:
4695: # as_fn_exit STATUS
4696: # -----------------
4697: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4698: as_fn_exit ()
4699: {
4700: set +e
4701: as_fn_set_status $1
4702: exit $1
4703: } # as_fn_exit
4704:
4705: # as_fn_unset VAR
4706: # ---------------
4707: # Portably unset VAR.
4708: as_fn_unset ()
4709: {
4710: { eval $1=; unset $1;}
4711: }
4712: as_unset=as_fn_unset
1.71 misho 4713:
1.1 misho 4714: # as_fn_append VAR VALUE
4715: # ----------------------
4716: # Append the text in VALUE to the end of the definition contained in VAR. Take
4717: # advantage of any shell optimizations that allow amortized linear growth over
4718: # repeated appends, instead of the typical quadratic growth present in naive
4719: # implementations.
1.71 misho 4720: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4721: then :
1.1 misho 4722: eval 'as_fn_append ()
4723: {
4724: eval $1+=\$2
4725: }'
1.71 misho 4726: else case e in #(
4727: e) as_fn_append ()
1.1 misho 4728: {
4729: eval $1=\$$1\$2
1.71 misho 4730: } ;;
4731: esac
1.1 misho 4732: fi # as_fn_append
4733:
4734: # as_fn_arith ARG...
4735: # ------------------
4736: # Perform arithmetic evaluation on the ARGs, and store the result in the
4737: # global $as_val. Take advantage of shells that can avoid forks. The arguments
4738: # must be portable across $(()) and expr.
1.71 misho 4739: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4740: then :
1.1 misho 4741: eval 'as_fn_arith ()
4742: {
4743: as_val=$(( $* ))
4744: }'
1.71 misho 4745: else case e in #(
4746: e) as_fn_arith ()
1.1 misho 4747: {
4748: as_val=`expr "$@" || test $? -eq 1`
1.71 misho 4749: } ;;
4750: esac
1.1 misho 4751: fi # as_fn_arith
4752:
4753:
4754: if expr a : '\(a\)' >/dev/null 2>&1 &&
4755: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4756: as_expr=expr
4757: else
4758: as_expr=false
4759: fi
4760:
4761: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4762: as_basename=basename
4763: else
4764: as_basename=false
4765: fi
4766:
4767: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4768: as_dirname=dirname
4769: else
4770: as_dirname=false
4771: fi
4772:
4773: as_me=`$as_basename -- "$0" ||
4774: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4775: X"$0" : 'X\(//\)$' \| \
4776: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 4777: printf "%s\n" X/"$0" |
1.1 misho 4778: sed '/^.*\/\([^/][^/]*\)\/*$/{
4779: s//\1/
4780: q
4781: }
4782: /^X\/\(\/\/\)$/{
4783: s//\1/
4784: q
4785: }
4786: /^X\/\(\/\).*/{
4787: s//\1/
4788: q
4789: }
4790: s/.*/./; q'`
4791:
4792: # Avoid depending upon Character Ranges.
4793: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4794: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4795: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4796: as_cr_digits='0123456789'
4797: as_cr_alnum=$as_cr_Letters$as_cr_digits
4798:
1.71 misho 4799:
4800: # Determine whether it's possible to make 'echo' print without a newline.
4801: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4802: # for compatibility with existing Makefiles.
1.1 misho 4803: ECHO_C= ECHO_N= ECHO_T=
4804: case `echo -n x` in #(((((
4805: -n*)
4806: case `echo 'xy\c'` in
4807: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4808: xy) ECHO_C='\c';;
4809: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4810: ECHO_T=' ';;
4811: esac;;
4812: *)
4813: ECHO_N='-n';;
4814: esac
4815:
1.71 misho 4816: # For backward compatibility with old third-party macros, we provide
4817: # the shell variables $as_echo and $as_echo_n. New code should use
4818: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4819: as_echo='printf %s\n'
4820: as_echo_n='printf %s'
4821:
1.1 misho 4822: rm -f conf$$ conf$$.exe conf$$.file
4823: if test -d conf$$.dir; then
4824: rm -f conf$$.dir/conf$$.file
4825: else
4826: rm -f conf$$.dir
4827: mkdir conf$$.dir 2>/dev/null
4828: fi
4829: if (echo >conf$$.file) 2>/dev/null; then
4830: if ln -s conf$$.file conf$$ 2>/dev/null; then
4831: as_ln_s='ln -s'
4832: # ... but there are two gotchas:
1.71 misho 4833: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
4834: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
4835: # In both cases, we have to default to 'cp -pR'.
1.1 misho 4836: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4837: as_ln_s='cp -pR'
4838: elif ln conf$$.file conf$$ 2>/dev/null; then
4839: as_ln_s=ln
4840: else
4841: as_ln_s='cp -pR'
4842: fi
4843: else
4844: as_ln_s='cp -pR'
4845: fi
4846: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4847: rmdir conf$$.dir 2>/dev/null
4848:
4849:
4850: # as_fn_mkdir_p
4851: # -------------
4852: # Create "$as_dir" as a directory, including parents if necessary.
4853: as_fn_mkdir_p ()
4854: {
4855:
4856: case $as_dir in #(
4857: -*) as_dir=./$as_dir;;
4858: esac
4859: test -d "$as_dir" || eval $as_mkdir_p || {
4860: as_dirs=
4861: while :; do
4862: case $as_dir in #(
1.71 misho 4863: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 misho 4864: *) as_qdir=$as_dir;;
4865: esac
4866: as_dirs="'$as_qdir' $as_dirs"
4867: as_dir=`$as_dirname -- "$as_dir" ||
4868: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4869: X"$as_dir" : 'X\(//\)[^/]' \| \
4870: X"$as_dir" : 'X\(//\)$' \| \
4871: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 4872: printf "%s\n" X"$as_dir" |
1.1 misho 4873: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4874: s//\1/
4875: q
4876: }
4877: /^X\(\/\/\)[^/].*/{
4878: s//\1/
4879: q
4880: }
4881: /^X\(\/\/\)$/{
4882: s//\1/
4883: q
4884: }
4885: /^X\(\/\).*/{
4886: s//\1/
4887: q
4888: }
4889: s/.*/./; q'`
4890: test -d "$as_dir" && break
4891: done
4892: test -z "$as_dirs" || eval "mkdir $as_dirs"
4893: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4894:
4895:
4896: } # as_fn_mkdir_p
4897: if mkdir -p . 2>/dev/null; then
4898: as_mkdir_p='mkdir -p "$as_dir"'
4899: else
4900: test -d ./-p && rmdir ./-p
4901: as_mkdir_p=false
4902: fi
4903:
4904:
4905: # as_fn_executable_p FILE
4906: # -----------------------
4907: # Test if FILE is an executable regular file.
4908: as_fn_executable_p ()
4909: {
4910: test -f "$1" && test -x "$1"
4911: } # as_fn_executable_p
4912: as_test_x='test -x'
4913: as_executable_p=as_fn_executable_p
4914:
4915: # Sed expression to map a string onto a valid CPP name.
1.71 misho 4916: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4917: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.1 misho 4918:
4919: # Sed expression to map a string onto a valid variable name.
1.71 misho 4920: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4921: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.1 misho 4922:
4923:
4924: exec 6>&1
4925: ## ----------------------------------- ##
4926: ## Main body of $CONFIG_STATUS script. ##
4927: ## ----------------------------------- ##
4928: _ASEOF
4929: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4930:
4931: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4932: # Save the log message, to keep $0 and so on meaningful, and to
4933: # report actual input values of CONFIG_FILES etc. instead of their
4934: # values after options handling.
4935: ac_log="
1.74.2.1! misho 4936: This file was extended by libelwix $as_me 6.7, which was
1.71 misho 4937: generated by GNU Autoconf 2.72. Invocation command line was
1.1 misho 4938:
4939: CONFIG_FILES = $CONFIG_FILES
4940: CONFIG_HEADERS = $CONFIG_HEADERS
4941: CONFIG_LINKS = $CONFIG_LINKS
4942: CONFIG_COMMANDS = $CONFIG_COMMANDS
4943: $ $0 $@
4944:
4945: on `(hostname || uname -n) 2>/dev/null | sed 1q`
4946: "
4947:
4948: _ACEOF
4949:
4950: case $ac_config_files in *"
4951: "*) set x $ac_config_files; shift; ac_config_files=$*;;
4952: esac
4953:
4954: case $ac_config_headers in *"
4955: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4956: esac
4957:
4958:
4959: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4960: # Files that config.status was made for.
4961: config_files="$ac_config_files"
4962: config_headers="$ac_config_headers"
4963:
4964: _ACEOF
4965:
4966: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4967: ac_cs_usage="\
1.71 misho 4968: '$as_me' instantiates files and other configuration actions
1.1 misho 4969: from templates according to the current configuration. Unless the files
4970: and actions are specified as TAGs, all are instantiated by default.
4971:
4972: Usage: $0 [OPTION]... [TAG]...
4973:
4974: -h, --help print this help, then exit
4975: -V, --version print version number and configuration settings, then exit
4976: --config print configuration, then exit
4977: -q, --quiet, --silent
4978: do not print progress messages
4979: -d, --debug don't remove temporary files
4980: --recheck update $as_me by reconfiguring in the same conditions
4981: --file=FILE[:TEMPLATE]
4982: instantiate the configuration file FILE
4983: --header=FILE[:TEMPLATE]
4984: instantiate the configuration header FILE
4985:
4986: Configuration files:
4987: $config_files
4988:
4989: Configuration headers:
4990: $config_headers
4991:
4992: Report bugs to <misho@elwix.org>."
4993:
4994: _ACEOF
1.71 misho 4995: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4996: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.1 misho 4997: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.71 misho 4998: ac_cs_config='$ac_cs_config_escaped'
1.1 misho 4999: ac_cs_version="\\
1.74.2.1! misho 5000: libelwix config.status 6.7
1.71 misho 5001: configured by $0, generated by GNU Autoconf 2.72,
1.1 misho 5002: with options \\"\$ac_cs_config\\"
5003:
1.71 misho 5004: Copyright (C) 2023 Free Software Foundation, Inc.
1.1 misho 5005: This config.status script is free software; the Free Software Foundation
5006: gives unlimited permission to copy, distribute and modify it."
5007:
5008: ac_pwd='$ac_pwd'
5009: srcdir='$srcdir'
5010: INSTALL='$INSTALL'
5011: test -n "\$AWK" || AWK=awk
5012: _ACEOF
5013:
5014: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5015: # The default lists apply if the user does not specify any file.
5016: ac_need_defaults=:
5017: while test $# != 0
5018: do
5019: case $1 in
5020: --*=?*)
5021: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5022: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5023: ac_shift=:
5024: ;;
5025: --*=)
5026: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5027: ac_optarg=
5028: ac_shift=:
5029: ;;
5030: *)
5031: ac_option=$1
5032: ac_optarg=$2
5033: ac_shift=shift
5034: ;;
5035: esac
5036:
5037: case $ac_option in
5038: # Handling of the options.
5039: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5040: ac_cs_recheck=: ;;
5041: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.71 misho 5042: printf "%s\n" "$ac_cs_version"; exit ;;
1.1 misho 5043: --config | --confi | --conf | --con | --co | --c )
1.71 misho 5044: printf "%s\n" "$ac_cs_config"; exit ;;
1.1 misho 5045: --debug | --debu | --deb | --de | --d | -d )
5046: debug=: ;;
5047: --file | --fil | --fi | --f )
5048: $ac_shift
5049: case $ac_optarg in
1.71 misho 5050: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 5051: '') as_fn_error $? "missing file argument" ;;
5052: esac
5053: as_fn_append CONFIG_FILES " '$ac_optarg'"
5054: ac_need_defaults=false;;
5055: --header | --heade | --head | --hea )
5056: $ac_shift
5057: case $ac_optarg in
1.71 misho 5058: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 5059: esac
5060: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5061: ac_need_defaults=false;;
5062: --he | --h)
5063: # Conflict between --help and --header
1.71 misho 5064: as_fn_error $? "ambiguous option: '$1'
5065: Try '$0 --help' for more information.";;
1.1 misho 5066: --help | --hel | -h )
1.71 misho 5067: printf "%s\n" "$ac_cs_usage"; exit ;;
1.1 misho 5068: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5069: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5070: ac_cs_silent=: ;;
5071:
5072: # This is an error.
1.71 misho 5073: -*) as_fn_error $? "unrecognized option: '$1'
5074: Try '$0 --help' for more information." ;;
1.1 misho 5075:
5076: *) as_fn_append ac_config_targets " $1"
5077: ac_need_defaults=false ;;
5078:
5079: esac
5080: shift
5081: done
5082:
5083: ac_configure_extra_args=
5084:
5085: if $ac_cs_silent; then
5086: exec 6>/dev/null
5087: ac_configure_extra_args="$ac_configure_extra_args --silent"
5088: fi
5089:
5090: _ACEOF
5091: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5092: if \$ac_cs_recheck; then
5093: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5094: shift
1.71 misho 5095: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.1 misho 5096: CONFIG_SHELL='$SHELL'
5097: export CONFIG_SHELL
5098: exec "\$@"
5099: fi
5100:
5101: _ACEOF
5102: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5103: exec 5>>config.log
5104: {
5105: echo
5106: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5107: ## Running $as_me. ##
5108: _ASBOX
1.71 misho 5109: printf "%s\n" "$ac_log"
1.1 misho 5110: } >&5
5111:
5112: _ACEOF
5113: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5114: _ACEOF
5115:
5116: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5117:
5118: # Handling of arguments.
5119: for ac_config_target in $ac_config_targets
5120: do
5121: case $ac_config_target in
5122: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
5123: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5124: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
5125: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
1.67 misho 5126: "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
1.69 misho 5127: "debian/control") CONFIG_FILES="$CONFIG_FILES debian/control" ;;
1.1 misho 5128: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5129:
1.71 misho 5130: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 misho 5131: esac
5132: done
5133:
5134:
5135: # If the user did not use the arguments to specify the items to instantiate,
5136: # then the envvar interface is used. Set only those that are not.
5137: # We use the long form for the default assignment because of an extremely
5138: # bizarre bug on SunOS 4.1.3.
5139: if $ac_need_defaults; then
1.71 misho 5140: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5141: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1.1 misho 5142: fi
5143:
5144: # Have a temporary directory for convenience. Make it in the build tree
5145: # simply because there is no reason against having it here, and in addition,
5146: # creating and moving files from /tmp can sometimes cause problems.
5147: # Hook for its removal unless debugging.
5148: # Note that there is a small window in which the directory will not be cleaned:
1.71 misho 5149: # after its creation but before its name has been assigned to '$tmp'.
1.1 misho 5150: $debug ||
5151: {
5152: tmp= ac_tmp=
5153: trap 'exit_status=$?
5154: : "${ac_tmp:=$tmp}"
5155: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5156: ' 0
5157: trap 'as_fn_exit 1' 1 2 13 15
5158: }
5159: # Create a (secure) tmp directory for tmp files.
5160:
5161: {
5162: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5163: test -d "$tmp"
5164: } ||
5165: {
5166: tmp=./conf$$-$RANDOM
5167: (umask 077 && mkdir "$tmp")
5168: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5169: ac_tmp=$tmp
5170:
5171: # Set up the scripts for CONFIG_FILES section.
5172: # No need to generate them if there are no CONFIG_FILES.
1.71 misho 5173: # This happens for instance with './config.status config.h'.
1.1 misho 5174: if test -n "$CONFIG_FILES"; then
5175:
5176:
5177: ac_cr=`echo X | tr X '\015'`
5178: # On cygwin, bash can eat \r inside `` if the user requested igncr.
5179: # But we know of no other shell where ac_cr would be empty at this
5180: # point, so we can use a bashism as a fallback.
5181: if test "x$ac_cr" = x; then
5182: eval ac_cr=\$\'\\r\'
5183: fi
5184: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5185: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5186: ac_cs_awk_cr='\\r'
5187: else
5188: ac_cs_awk_cr=$ac_cr
5189: fi
5190:
5191: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5192: _ACEOF
5193:
5194:
5195: {
5196: echo "cat >conf$$subs.awk <<_ACEOF" &&
5197: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5198: echo "_ACEOF"
5199: } >conf$$subs.sh ||
5200: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5201: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5202: ac_delim='%!_!# '
5203: for ac_last_try in false false false false false :; do
5204: . ./conf$$subs.sh ||
5205: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5206:
5207: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5208: if test $ac_delim_n = $ac_delim_num; then
5209: break
5210: elif $ac_last_try; then
5211: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5212: else
5213: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5214: fi
5215: done
5216: rm -f conf$$subs.sh
5217:
5218: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5219: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5220: _ACEOF
5221: sed -n '
5222: h
5223: s/^/S["/; s/!.*/"]=/
5224: p
5225: g
5226: s/^[^!]*!//
5227: :repl
5228: t repl
5229: s/'"$ac_delim"'$//
5230: t delim
5231: :nl
5232: h
5233: s/\(.\{148\}\)..*/\1/
5234: t more1
5235: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5236: p
5237: n
5238: b repl
5239: :more1
5240: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5241: p
5242: g
5243: s/.\{148\}//
5244: t nl
5245: :delim
5246: h
5247: s/\(.\{148\}\)..*/\1/
5248: t more2
5249: s/["\\]/\\&/g; s/^/"/; s/$/"/
5250: p
5251: b
5252: :more2
5253: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5254: p
5255: g
5256: s/.\{148\}//
5257: t delim
5258: ' <conf$$subs.awk | sed '
5259: /^[^""]/{
5260: N
5261: s/\n//
5262: }
5263: ' >>$CONFIG_STATUS || ac_write_fail=1
5264: rm -f conf$$subs.awk
5265: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5266: _ACAWK
5267: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5268: for (key in S) S_is_set[key] = 1
5269: FS = ""
5270:
5271: }
5272: {
5273: line = $ 0
5274: nfields = split(line, field, "@")
5275: substed = 0
5276: len = length(field[1])
5277: for (i = 2; i < nfields; i++) {
5278: key = field[i]
5279: keylen = length(key)
5280: if (S_is_set[key]) {
5281: value = S[key]
5282: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5283: len += length(value) + length(field[++i])
5284: substed = 1
5285: } else
5286: len += 1 + keylen
5287: }
5288:
5289: print line
5290: }
5291:
5292: _ACAWK
5293: _ACEOF
5294: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5295: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5296: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5297: else
5298: cat
5299: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5300: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5301: _ACEOF
5302:
5303: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5304: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5305: # trailing colons and then remove the whole line if VPATH becomes empty
5306: # (actually we leave an empty line to preserve line numbers).
5307: if test "x$srcdir" = x.; then
5308: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5309: h
5310: s///
5311: s/^/:/
5312: s/[ ]*$/:/
5313: s/:\$(srcdir):/:/g
5314: s/:\${srcdir}:/:/g
5315: s/:@srcdir@:/:/g
5316: s/^:*//
5317: s/:*$//
5318: x
5319: s/\(=[ ]*\).*/\1/
5320: G
5321: s/\n//
5322: s/^[^=]*=[ ]*$//
5323: }'
5324: fi
5325:
5326: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5327: fi # test -n "$CONFIG_FILES"
5328:
5329: # Set up the scripts for CONFIG_HEADERS section.
5330: # No need to generate them if there are no CONFIG_HEADERS.
1.71 misho 5331: # This happens for instance with './config.status Makefile'.
1.1 misho 5332: if test -n "$CONFIG_HEADERS"; then
5333: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5334: BEGIN {
5335: _ACEOF
5336:
1.71 misho 5337: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.1 misho 5338: # here-document in config.status, that substitutes the proper values into
5339: # config.h.in to produce config.h.
5340:
5341: # Create a delimiter string that does not exist in confdefs.h, to ease
5342: # handling of long lines.
5343: ac_delim='%!_!# '
5344: for ac_last_try in false false :; do
5345: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5346: if test -z "$ac_tt"; then
5347: break
5348: elif $ac_last_try; then
5349: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5350: else
5351: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5352: fi
5353: done
5354:
5355: # For the awk script, D is an array of macro values keyed by name,
5356: # likewise P contains macro parameters if any. Preserve backslash
5357: # newline sequences.
5358:
5359: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5360: sed -n '
5361: s/.\{148\}/&'"$ac_delim"'/g
5362: t rset
5363: :rset
5364: s/^[ ]*#[ ]*define[ ][ ]*/ /
5365: t def
5366: d
5367: :def
5368: s/\\$//
5369: t bsnl
5370: s/["\\]/\\&/g
5371: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5372: D["\1"]=" \3"/p
5373: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5374: d
5375: :bsnl
5376: s/["\\]/\\&/g
5377: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5378: D["\1"]=" \3\\\\\\n"\\/p
5379: t cont
5380: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5381: t cont
5382: d
5383: :cont
5384: n
5385: s/.\{148\}/&'"$ac_delim"'/g
5386: t clear
5387: :clear
5388: s/\\$//
5389: t bsnlc
5390: s/["\\]/\\&/g; s/^/"/; s/$/"/p
5391: d
5392: :bsnlc
5393: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5394: b cont
5395: ' <confdefs.h | sed '
5396: s/'"$ac_delim"'/"\\\
5397: "/g' >>$CONFIG_STATUS || ac_write_fail=1
5398:
5399: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5400: for (key in D) D_is_set[key] = 1
5401: FS = ""
5402: }
5403: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5404: line = \$ 0
5405: split(line, arg, " ")
5406: if (arg[1] == "#") {
5407: defundef = arg[2]
5408: mac1 = arg[3]
5409: } else {
5410: defundef = substr(arg[1], 2)
5411: mac1 = arg[2]
5412: }
5413: split(mac1, mac2, "(") #)
5414: macro = mac2[1]
5415: prefix = substr(line, 1, index(line, defundef) - 1)
5416: if (D_is_set[macro]) {
5417: # Preserve the white space surrounding the "#".
5418: print prefix "define", macro P[macro] D[macro]
5419: next
5420: } else {
5421: # Replace #undef with comments. This is necessary, for example,
5422: # in the case of _POSIX_SOURCE, which is predefined and required
5423: # on some systems where configure will not decide to define it.
5424: if (defundef == "undef") {
5425: print "/*", prefix defundef, macro, "*/"
5426: next
5427: }
5428: }
5429: }
5430: { print }
5431: _ACAWK
5432: _ACEOF
5433: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5434: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5435: fi # test -n "$CONFIG_HEADERS"
5436:
5437:
5438: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5439: shift
5440: for ac_tag
5441: do
5442: case $ac_tag in
5443: :[FHLC]) ac_mode=$ac_tag; continue;;
5444: esac
5445: case $ac_mode$ac_tag in
5446: :[FHL]*:*);;
1.71 misho 5447: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.1 misho 5448: :[FH]-) ac_tag=-:-;;
5449: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5450: esac
5451: ac_save_IFS=$IFS
5452: IFS=:
5453: set x $ac_tag
5454: IFS=$ac_save_IFS
5455: shift
5456: ac_file=$1
5457: shift
5458:
5459: case $ac_mode in
5460: :L) ac_source=$1;;
5461: :[FH])
5462: ac_file_inputs=
5463: for ac_f
5464: do
5465: case $ac_f in
5466: -) ac_f="$ac_tmp/stdin";;
5467: *) # Look for the file first in the build tree, then in the source tree
5468: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.71 misho 5469: # because $ac_f cannot contain ':'.
1.1 misho 5470: test -f "$ac_f" ||
5471: case $ac_f in
5472: [\\/$]*) false;;
5473: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5474: esac ||
1.71 misho 5475: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.1 misho 5476: esac
1.71 misho 5477: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1 misho 5478: as_fn_append ac_file_inputs " '$ac_f'"
5479: done
5480:
1.71 misho 5481: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.1 misho 5482: # use $as_me), people would be surprised to read:
5483: # /* config.h. Generated by config.status. */
5484: configure_input='Generated from '`
1.71 misho 5485: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.1 misho 5486: `' by configure.'
5487: if test x"$ac_file" != x-; then
5488: configure_input="$ac_file. $configure_input"
1.71 misho 5489: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5490: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.1 misho 5491: fi
5492: # Neutralize special characters interpreted by sed in replacement strings.
5493: case $configure_input in #(
5494: *\&* | *\|* | *\\* )
1.71 misho 5495: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.1 misho 5496: sed 's/[\\\\&|]/\\\\&/g'`;; #(
5497: *) ac_sed_conf_input=$configure_input;;
5498: esac
5499:
5500: case $ac_tag in
5501: *:-:* | *:-) cat >"$ac_tmp/stdin" \
5502: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5503: esac
5504: ;;
5505: esac
5506:
5507: ac_dir=`$as_dirname -- "$ac_file" ||
5508: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5509: X"$ac_file" : 'X\(//\)[^/]' \| \
5510: X"$ac_file" : 'X\(//\)$' \| \
5511: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.71 misho 5512: printf "%s\n" X"$ac_file" |
1.1 misho 5513: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5514: s//\1/
5515: q
5516: }
5517: /^X\(\/\/\)[^/].*/{
5518: s//\1/
5519: q
5520: }
5521: /^X\(\/\/\)$/{
5522: s//\1/
5523: q
5524: }
5525: /^X\(\/\).*/{
5526: s//\1/
5527: q
5528: }
5529: s/.*/./; q'`
5530: as_dir="$ac_dir"; as_fn_mkdir_p
5531: ac_builddir=.
5532:
5533: case "$ac_dir" in
5534: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5535: *)
1.71 misho 5536: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 5537: # A ".." for each directory in $ac_dir_suffix.
1.71 misho 5538: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 5539: case $ac_top_builddir_sub in
5540: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5541: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5542: esac ;;
5543: esac
5544: ac_abs_top_builddir=$ac_pwd
5545: ac_abs_builddir=$ac_pwd$ac_dir_suffix
5546: # for backward compatibility:
5547: ac_top_builddir=$ac_top_build_prefix
5548:
5549: case $srcdir in
5550: .) # We are building in place.
5551: ac_srcdir=.
5552: ac_top_srcdir=$ac_top_builddir_sub
5553: ac_abs_top_srcdir=$ac_pwd ;;
5554: [\\/]* | ?:[\\/]* ) # Absolute name.
5555: ac_srcdir=$srcdir$ac_dir_suffix;
5556: ac_top_srcdir=$srcdir
5557: ac_abs_top_srcdir=$srcdir ;;
5558: *) # Relative name.
5559: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5560: ac_top_srcdir=$ac_top_build_prefix$srcdir
5561: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5562: esac
5563: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5564:
5565:
5566: case $ac_mode in
5567: :F)
5568: #
5569: # CONFIG_FILE
5570: #
5571:
5572: case $INSTALL in
5573: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5574: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5575: esac
5576: _ACEOF
5577:
5578: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5579: # If the template does not know about datarootdir, expand it.
5580: # FIXME: This hack should be removed a few years after 2.60.
5581: ac_datarootdir_hack=; ac_datarootdir_seen=
5582: ac_sed_dataroot='
5583: /datarootdir/ {
5584: p
5585: q
5586: }
5587: /@datadir@/p
5588: /@docdir@/p
5589: /@infodir@/p
5590: /@localedir@/p
5591: /@mandir@/p'
5592: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5593: *datarootdir*) ac_datarootdir_seen=yes;;
5594: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.71 misho 5595: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5596: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 misho 5597: _ACEOF
5598: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5599: ac_datarootdir_hack='
5600: s&@datadir@&$datadir&g
5601: s&@docdir@&$docdir&g
5602: s&@infodir@&$infodir&g
5603: s&@localedir@&$localedir&g
5604: s&@mandir@&$mandir&g
5605: s&\\\${datarootdir}&$datarootdir&g' ;;
5606: esac
5607: _ACEOF
5608:
1.71 misho 5609: # Neutralize VPATH when '$srcdir' = '.'.
1.1 misho 5610: # Shell code in configure.ac might set extrasub.
5611: # FIXME: do we really want to maintain this feature?
5612: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5613: ac_sed_extra="$ac_vpsub
5614: $extrasub
5615: _ACEOF
5616: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5617: :t
5618: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5619: s|@configure_input@|$ac_sed_conf_input|;t t
5620: s&@top_builddir@&$ac_top_builddir_sub&;t t
5621: s&@top_build_prefix@&$ac_top_build_prefix&;t t
5622: s&@srcdir@&$ac_srcdir&;t t
5623: s&@abs_srcdir@&$ac_abs_srcdir&;t t
5624: s&@top_srcdir@&$ac_top_srcdir&;t t
5625: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5626: s&@builddir@&$ac_builddir&;t t
5627: s&@abs_builddir@&$ac_abs_builddir&;t t
5628: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5629: s&@INSTALL@&$ac_INSTALL&;t t
5630: $ac_datarootdir_hack
5631: "
5632: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5633: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5634:
5635: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5636: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5637: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5638: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.71 misho 5639: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 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" >&5
1.71 misho 5641: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.1 misho 5642: which seems to be undefined. Please make sure it is defined" >&2;}
5643:
5644: rm -f "$ac_tmp/stdin"
5645: case $ac_file in
5646: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5647: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5648: esac \
5649: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5650: ;;
5651: :H)
5652: #
5653: # CONFIG_HEADER
5654: #
5655: if test x"$ac_file" != x-; then
5656: {
1.71 misho 5657: printf "%s\n" "/* $configure_input */" >&1 \
1.1 misho 5658: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5659: } >"$ac_tmp/config.h" \
5660: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5661: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.71 misho 5662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5663: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.1 misho 5664: else
5665: rm -f "$ac_file"
5666: mv "$ac_tmp/config.h" "$ac_file" \
5667: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5668: fi
5669: else
1.71 misho 5670: printf "%s\n" "/* $configure_input */" >&1 \
1.1 misho 5671: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5672: || as_fn_error $? "could not create -" "$LINENO" 5
5673: fi
5674: ;;
5675:
5676:
5677: esac
5678:
5679: done # for ac_tag
5680:
5681:
5682: as_fn_exit 0
5683: _ACEOF
5684: ac_clean_files=$ac_clean_files_save
5685:
5686: test $ac_write_fail = 0 ||
5687: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5688:
5689:
5690: # configure is writing to config.log, and then calls config.status.
5691: # config.status does its own redirection, appending to config.log.
5692: # Unfortunately, on DOS this fails, as config.log is still kept open
5693: # by configure, so config.status won't be able to write to it; its
5694: # output is simply discarded. So we exec the FD to /dev/null,
5695: # effectively closing config.log, so it can be properly (re)opened and
5696: # appended to by config.status. When coming back to configure, we
5697: # need to make the FD available again.
5698: if test "$no_create" != yes; then
5699: ac_cs_success=:
5700: ac_config_status_args=
5701: test "$silent" = yes &&
5702: ac_config_status_args="$ac_config_status_args --quiet"
5703: exec 5>/dev/null
5704: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5705: exec 5>>config.log
5706: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5707: # would make configure fail if this is the last instruction.
5708: $ac_cs_success || as_fn_exit 1
5709: fi
5710: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.71 misho 5711: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5712: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.1 misho 5713: fi
5714:
1.71 misho 5715:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>