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