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