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