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