beta-0.89.2
[luatex.git] / source / libs / luajit / native / configure
blob82f80de379e891cecc4eba83174a289ce1a49e6e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for luajit native 2.1.0-beta1.
5 # Report bugs to <tex-k@tug.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
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
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 tex-k@tug.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."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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;;
513 ECHO_N='-n';;
514 esac
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
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'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
580 # Identity of this package.
581 PACKAGE_NAME='luajit native'
582 PACKAGE_TARNAME='luajit-native'
583 PACKAGE_VERSION='2.1.0-beta1'
584 PACKAGE_STRING='luajit native 2.1.0-beta1'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="../LuaJIT-src/src/luajit.h"
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"
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 LUAJIT_TREE
630 DASM_ARCH
631 MATH_LIB
632 LUAJIT_LDEXTRA
633 LUAJIT_DEFINES
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
642 EGREP
643 GREP
645 LN_S
646 WARNING_CFLAGS
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 AM_BACKSLASH
668 AM_DEFAULT_VERBOSITY
669 AM_DEFAULT_V
670 AM_V
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_silent_rules
736 enable_maintainer_mode
737 enable_dependency_tracking
738 enable_compiler_warnings
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
810 case $ac_option in
811 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *=) ac_optarg= ;;
813 *) ac_optarg=yes ;;
814 esac
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
820 ac_dashdash=yes ;;
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
839 --config-cache | -C)
840 cache_file=config.cache ;;
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=no ;;
870 -docdir | --docdir | --docdi | --doc | --do)
871 ac_prev=docdir ;;
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 docdir=$ac_optarg ;;
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 ac_prev=dvidir ;;
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 dvidir=$ac_optarg ;;
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=\$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
907 with_gas=yes ;;
909 -help | --help | --hel | --he | -h)
910 ac_init_help=long ;;
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922 ac_prev=htmldir ;;
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924 | --ht=*)
925 htmldir=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
935 ac_prev=infodir ;;
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
940 ac_prev=libdir ;;
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 libdir=$ac_optarg ;;
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
952 ac_prev=localedir ;;
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964 ac_prev=mandir ;;
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 mandir=$ac_optarg ;;
968 -nfp | --nfp | --nf)
969 # Obsolete; use --without-fp.
970 with_fp=no ;;
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
974 no_create=yes ;;
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 no_recursion=yes ;;
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990 ac_prev=prefix ;;
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 prefix=$ac_optarg ;;
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026 ac_prev=pdfdir ;;
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1031 ac_prev=psdir ;;
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 psdir=$ac_optarg ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 silent=yes ;;
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 ac_prev=sbindir ;;
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 | --sbi=* | --sb=*)
1043 sbindir=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1048 | --sha | --sh)
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 | --sha=* | --sh=*)
1054 sharedstatedir=$ac_optarg ;;
1056 -site | --site | --sit)
1057 ac_prev=site ;;
1058 -site=* | --site=* | --sit=*)
1059 site=$ac_optarg ;;
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 ac_prev=srcdir ;;
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 verbose=yes ;;
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1084 -with-* | --with-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=no ;;
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1134 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144 esac
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1156 esac
1157 done
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $? "missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1166 no) ;;
1167 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error $? "working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error $? "pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1241 /^X\(\/\/\)$/{
1242 s//\1/
1245 /^X\(\/\).*/{
1246 s//\1/
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1254 else
1255 ac_srcdir_defaulted=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264 pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289 \`configure' configures luajit native 2.1.0-beta1 to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1298 Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking ...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/luajit-native]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1342 _ACEOF
1344 cat <<\_ACEOF
1346 Program names:
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 _ACEOF
1357 if test -n "$ac_init_help"; then
1358 case $ac_init_help in
1359 short | recursive ) echo "Configuration of luajit native 2.1.0-beta1:";;
1360 esac
1361 cat <<\_ACEOF
1363 Optional Features:
1364 --disable-option-checking ignore unrecognized --enable/--with options
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1367 --enable-silent-rules less verbose build output (undo: "make V=1")
1368 --disable-silent-rules verbose build output (undo: "make V=0")
1369 --enable-maintainer-mode
1370 enable make rules and dependencies not useful (and
1371 sometimes confusing) to the casual installer
1372 --enable-dependency-tracking
1373 do not reject slow dependency extractors
1374 --disable-dependency-tracking
1375 speeds up one-time build
1376 --enable-compiler-warnings=[no|min|yes|max|all]
1377 Turn on compiler warnings [default: yes if
1378 maintainer-mode, min otherwise]
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 Report bugs to <tex-k@tug.org>.
1394 _ACEOF
1395 ac_status=$?
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" ||
1402 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1403 continue
1404 ac_builddir=.
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1422 case $srcdir in
1423 .) # We are building in place.
1424 ac_srcdir=.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1431 *) # Relative name.
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 luajit native configure 2.1.0-beta1
1457 generated by GNU Autoconf 2.69
1459 Copyright (C) 2012 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1462 _ACEOF
1463 exit
1466 ## ------------------------ ##
1467 ## Autoconf initialization. ##
1468 ## ------------------------ ##
1470 # ac_fn_c_try_compile LINENO
1471 # --------------------------
1472 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_compile ()
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 rm -f conftest.$ac_objext
1477 if { { ac_try="$ac_compile"
1478 case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481 esac
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 $as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_compile") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } && {
1493 test -z "$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 } && test -s conftest.$ac_objext; then :
1496 ac_retval=0
1497 else
1498 $as_echo "$as_me: failed program was:" >&5
1499 sed 's/^/| /' conftest.$ac_ext >&5
1501 ac_retval=1
1503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1504 as_fn_set_status $ac_retval
1506 } # ac_fn_c_try_compile
1508 # ac_fn_c_try_link LINENO
1509 # -----------------------
1510 # Try to link conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_link ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext conftest$ac_exeext
1515 if { { ac_try="$ac_link"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_link") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest$ac_exeext && {
1534 test "$cross_compiling" = yes ||
1535 test -x conftest$ac_exeext
1536 }; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1544 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1545 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1546 # interfere with the next link command; also delete a directory that is
1547 # left behind by Apple's compiler. We do this before executing the actions.
1548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1552 } # ac_fn_c_try_link
1554 # ac_fn_c_try_run LINENO
1555 # ----------------------
1556 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1557 # that executables *can* be run.
1558 ac_fn_c_try_run ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_link"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_link") 2>&5
1569 ac_status=$?
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1572 { { case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_try") 2>&5
1579 ac_status=$?
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; }; }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: program exited with status $ac_status" >&5
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1588 ac_retval=$ac_status
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_run
1596 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1597 # --------------------------------------------
1598 # Tries to find the compile-time value of EXPR in a program that includes
1599 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1600 # computed
1601 ac_fn_c_compute_int ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if test "$cross_compiling" = yes; then
1605 # Depending upon the size, compute the lo and hi bounds.
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1610 main ()
1612 static int test_array [1 - 2 * !(($2) >= 0)];
1613 test_array [0] = 0;
1614 return test_array [0];
1617 return 0;
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 ac_lo=0 ac_mid=0
1622 while :; do
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1627 main ()
1629 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1630 test_array [0] = 0;
1631 return test_array [0];
1634 return 0;
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 ac_hi=$ac_mid; break
1639 else
1640 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1641 if test $ac_lo -le $ac_mid; then
1642 ac_lo= ac_hi=
1643 break
1645 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 done
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1654 main ()
1656 static int test_array [1 - 2 * !(($2) < 0)];
1657 test_array [0] = 0;
1658 return test_array [0];
1661 return 0;
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665 ac_hi=-1 ac_mid=-1
1666 while :; do
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1671 main ()
1673 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1674 test_array [0] = 0;
1675 return test_array [0];
1678 return 0;
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682 ac_lo=$ac_mid; break
1683 else
1684 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1685 if test $ac_mid -le $ac_hi; then
1686 ac_lo= ac_hi=
1687 break
1689 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 done
1693 else
1694 ac_lo= ac_hi=
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 # Binary search between lo and hi bounds.
1700 while test "x$ac_lo" != "x$ac_hi"; do
1701 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1706 main ()
1708 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1709 test_array [0] = 0;
1710 return test_array [0];
1713 return 0;
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 ac_hi=$ac_mid
1718 else
1719 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 done
1723 case $ac_lo in #((
1724 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1725 '') ac_retval=1 ;;
1726 esac
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1731 static long int longval () { return $2; }
1732 static unsigned long int ulongval () { return $2; }
1733 #include <stdio.h>
1734 #include <stdlib.h>
1736 main ()
1739 FILE *f = fopen ("conftest.val", "w");
1740 if (! f)
1741 return 1;
1742 if (($2) < 0)
1744 long int i = longval ();
1745 if (i != ($2))
1746 return 1;
1747 fprintf (f, "%ld", i);
1749 else
1751 unsigned long int i = ulongval ();
1752 if (i != ($2))
1753 return 1;
1754 fprintf (f, "%lu", i);
1756 /* Do not output a trailing newline, as this causes \r\n confusion
1757 on some platforms. */
1758 return ferror (f) || fclose (f) != 0;
1761 return 0;
1763 _ACEOF
1764 if ac_fn_c_try_run "$LINENO"; then :
1765 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1766 else
1767 ac_retval=1
1769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1770 conftest.$ac_objext conftest.beam conftest.$ac_ext
1771 rm -f conftest.val
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_c_compute_int
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_cpp ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_cpp
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_compile
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by luajit native $as_me 2.1.0-beta1, which was
1851 generated by GNU Autoconf 2.69. Invocation command line was
1853 $ $0 $@
1855 _ACEOF
1856 exec 5>>config.log
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880 _ASUNAME
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 $as_echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1891 } >&5
1893 cat >&5 <<_ACEOF
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1900 _ACEOF
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1914 for ac_arg
1916 case $ac_arg in
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1920 continue ;;
1921 *\'*)
1922 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 esac
1924 case $ac_pass in
1925 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927 as_fn_append ac_configure_args1 " '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1930 else
1931 case $ac_arg in
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938 esac
1940 -* ) ac_must_keep_next=true ;;
1941 esac
1943 as_fn_append ac_configure_args " '$ac_arg'"
1945 esac
1946 done
1947 done
1948 { ac_configure_args0=; unset ac_configure_args0;}
1949 { ac_configure_args1=; unset ac_configure_args1;}
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1959 echo
1961 $as_echo "## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##"
1964 echo
1965 # The following way of writing the cache mishandles newlines in values,
1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in #(
1970 *${as_nl}*)
1971 case $ac_var in #(
1972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1974 esac
1975 case $ac_var in #(
1976 _ | IFS | as_nl) ;; #(
1977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1978 *) { eval $ac_var=; unset $ac_var;} ;;
1979 esac ;;
1980 esac
1981 done
1982 (set) 2>&1 |
1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984 *${as_nl}ac_space=\ *)
1985 sed -n \
1986 "s/'\''/'\''\\\\'\'''\''/g;
1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 ;; #(
1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992 esac |
1993 sort
1995 echo
1997 $as_echo "## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##"
2000 echo
2001 for ac_var in $ac_subst_vars
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2011 if test -n "$ac_subst_files"; then
2012 $as_echo "## ------------------- ##
2013 ## File substitutions. ##
2014 ## ------------------- ##"
2015 echo
2016 for ac_var in $ac_subst_files
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2027 if test -s confdefs.h; then
2028 $as_echo "## ----------- ##
2029 ## confdefs.h. ##
2030 ## ----------- ##"
2031 echo
2032 cat confdefs.h
2033 echo
2035 test "$ac_signal" != 0 &&
2036 $as_echo "$as_me: caught signal $ac_signal"
2037 $as_echo "$as_me: exit $exit_status"
2038 } >&5
2039 rm -f core *.core core.conftest.* &&
2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2041 exit $exit_status
2043 for ac_signal in 1 2 13 15; do
2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2045 done
2046 ac_signal=0
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2051 $as_echo "/* confdefs.h */" > confdefs.h
2053 # Predefined preprocessor variables.
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_NAME "$PACKAGE_NAME"
2057 _ACEOF
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061 _ACEOF
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 _ACEOF
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_STRING "$PACKAGE_STRING"
2069 _ACEOF
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2073 _ACEOF
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_URL "$PACKAGE_URL"
2077 _ACEOF
2080 # Let the site file select an alternate cache file if it wants to.
2081 # Prefer an explicitly selected file to automatically selected ones.
2082 ac_site_file1=NONE
2083 ac_site_file2=NONE
2084 if test -n "$CONFIG_SITE"; then
2085 # We do not want a PATH search for config.site.
2086 case $CONFIG_SITE in #((
2087 -*) ac_site_file1=./$CONFIG_SITE;;
2088 */*) ac_site_file1=$CONFIG_SITE;;
2089 *) ac_site_file1=./$CONFIG_SITE;;
2090 esac
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_file1=$prefix/share/config.site
2093 ac_site_file2=$prefix/etc/config.site
2094 else
2095 ac_site_file1=$ac_default_prefix/share/config.site
2096 ac_site_file2=$ac_default_prefix/etc/config.site
2098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100 test "x$ac_site_file" = xNONE && continue
2101 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2105 . "$ac_site_file" \
2106 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108 as_fn_error $? "failed to load site script $ac_site_file
2109 See \`config.log' for more details" "$LINENO" 5; }
2111 done
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special files
2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 $as_echo "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2124 else
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 $as_echo "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2130 # Check that the precious variables saved in the cache have kept the same
2131 # value.
2132 ac_cache_corrupted=false
2133 for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2139 set,)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,set)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,);;
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 fi;;
2167 esac
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2170 case $ac_new_val in
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2173 esac
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 esac
2179 done
2180 if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187 ## -------------------- ##
2188 ## Main body of script. ##
2189 ## -------------------- ##
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 ac_aux_dir=
2201 for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do
2202 if test -f "$ac_dir/install-sh"; then
2203 ac_aux_dir=$ac_dir
2204 ac_install_sh="$ac_aux_dir/install-sh -c"
2205 break
2206 elif test -f "$ac_dir/install.sh"; then
2207 ac_aux_dir=$ac_dir
2208 ac_install_sh="$ac_aux_dir/install.sh -c"
2209 break
2210 elif test -f "$ac_dir/shtool"; then
2211 ac_aux_dir=$ac_dir
2212 ac_install_sh="$ac_aux_dir/shtool install -c"
2213 break
2215 done
2216 if test -z "$ac_aux_dir"; then
2217 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../build-aux \"$srcdir\"/../../../build-aux" "$LINENO" 5
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231 am__api_version='1.15'
2233 # Find a good install program. We prefer a C program (faster),
2234 # so one script is as good as another. But avoid the broken or
2235 # incompatible versions:
2236 # SysV /etc/install, /usr/sbin/install
2237 # SunOS /usr/etc/install
2238 # IRIX /sbin/install
2239 # AIX /bin/install
2240 # AmigaOS /C/install, which installs bootblocks on floppy discs
2241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2244 # OS/2's system install, which has a completely different semantic
2245 # ./install, which can be erroneously created by make from ./install.sh.
2246 # Reject install programs that cannot install multiple files.
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2248 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2249 if test -z "$INSTALL"; then
2250 if ${ac_cv_path_install+:} false; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 # Account for people who put trailing slashes in PATH elements.
2259 case $as_dir/ in #((
2260 ./ | .// | /[cC]/* | \
2261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2263 /usr/ucb/* ) ;;
2265 # OSF1 and SCO ODT 3.0 have their own names for install.
2266 # Don't use installbsd from OSF since it installs stuff as root
2267 # by default.
2268 for ac_prog in ginstall scoinst install; do
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2271 if test $ac_prog = install &&
2272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2273 # AIX install. It has an incompatible calling convention.
2275 elif test $ac_prog = install &&
2276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # program-specific install script used by HP pwplus--don't use.
2279 else
2280 rm -rf conftest.one conftest.two conftest.dir
2281 echo one > conftest.one
2282 echo two > conftest.two
2283 mkdir conftest.dir
2284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2285 test -s conftest.one && test -s conftest.two &&
2286 test -s conftest.dir/conftest.one &&
2287 test -s conftest.dir/conftest.two
2288 then
2289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2290 break 3
2294 done
2295 done
2297 esac
2299 done
2300 IFS=$as_save_IFS
2302 rm -rf conftest.one conftest.two conftest.dir
2305 if test "${ac_cv_path_install+set}" = set; then
2306 INSTALL=$ac_cv_path_install
2307 else
2308 # As a last resort, use the slow shell script. Don't cache a
2309 # value for INSTALL within a source directory, because that will
2310 # break other packages using the cache if that directory is
2311 # removed, or if the value is a relative name.
2312 INSTALL=$ac_install_sh
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2316 $as_echo "$INSTALL" >&6; }
2318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2319 # It thinks the first close brace ends the variable substitution.
2320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2327 $as_echo_n "checking whether build environment is sane... " >&6; }
2328 # Reject unsafe characters in $srcdir or the absolute working directory
2329 # name. Accept space and tab only in the latter.
2330 am_lf='
2332 case `pwd` in
2333 *[\\\"\#\$\&\'\`$am_lf]*)
2334 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2335 esac
2336 case $srcdir in
2337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2338 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2339 esac
2341 # Do 'set' in a subshell so we don't clobber the current shell's
2342 # arguments. Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347 am_has_slept=no
2348 for am_try in 1 2; do
2349 echo "timestamp, slept: $am_has_slept" > conftest.file
2350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2351 if test "$*" = "X"; then
2352 # -L didn't work.
2353 set X `ls -t "$srcdir/configure" conftest.file`
2355 if test "$*" != "X $srcdir/configure conftest.file" \
2356 && test "$*" != "X conftest.file $srcdir/configure"; then
2358 # If neither matched, then we have a broken ls. This can happen
2359 # if, for instance, CONFIG_SHELL is bash and it inherits a
2360 # broken ls alias from the environment. This has actually
2361 # happened. Such a system could not be considered "sane".
2362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2363 alias in your environment" "$LINENO" 5
2365 if test "$2" = conftest.file || test $am_try -eq 2; then
2366 break
2368 # Just in case.
2369 sleep 1
2370 am_has_slept=yes
2371 done
2372 test "$2" = conftest.file
2374 then
2375 # Ok.
2377 else
2378 as_fn_error $? "newly created file is older than distributed files!
2379 Check your system clock" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382 $as_echo "yes" >&6; }
2383 # If we didn't sleep, we still need to ensure time stamps of config.status and
2384 # generated files are strictly newer.
2385 am_sleep_pid=
2386 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2387 ( sleep 1 ) &
2388 am_sleep_pid=$!
2391 rm -f conftest.file
2393 test "$program_prefix" != NONE &&
2394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2395 # Use a double $ so make ignores it.
2396 test "$program_suffix" != NONE &&
2397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2398 # Double any \ or $.
2399 # By default was `s,x,x', remove it if useless.
2400 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2401 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2403 # Expand $ac_aux_dir to an absolute path.
2404 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2406 if test x"${MISSING+set}" != xset; then
2407 case $am_aux_dir in
2408 *\ * | *\ *)
2409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2412 esac
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --is-lightweight"; then
2416 am_missing_run="$MISSING "
2417 else
2418 am_missing_run=
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2420 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2423 if test x"${install_sh+set}" != xset; then
2424 case $am_aux_dir in
2425 *\ * | *\ *)
2426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2428 install_sh="\${SHELL} $am_aux_dir/install-sh"
2429 esac
2432 # Installed binaries are usually stripped using 'strip' when the user
2433 # run "make install-strip". However 'strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the 'STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if ${ac_cv_prog_STRIP+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2468 $as_echo "$STRIP" >&6; }
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2476 if test -z "$ac_cv_prog_STRIP"; then
2477 ac_ct_STRIP=$STRIP
2478 # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2499 done
2500 done
2501 IFS=$as_save_IFS
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2508 $as_echo "$ac_ct_STRIP" >&6; }
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2514 if test "x$ac_ct_STRIP" = x; then
2515 STRIP=":"
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2522 esac
2523 STRIP=$ac_ct_STRIP
2525 else
2526 STRIP="$ac_cv_prog_STRIP"
2530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2533 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2534 if test -z "$MKDIR_P"; then
2535 if ${ac_cv_path_mkdir+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_prog in mkdir gmkdir; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2547 'mkdir (GNU coreutils) '* | \
2548 'mkdir (coreutils) '* | \
2549 'mkdir (fileutils) '4.1*)
2550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2551 break 3;;
2552 esac
2553 done
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 test -d ./--version && rmdir ./--version
2561 if test "${ac_cv_path_mkdir+set}" = set; then
2562 MKDIR_P="$ac_cv_path_mkdir -p"
2563 else
2564 # As a last resort, use the slow shell script. Don't cache a
2565 # value for MKDIR_P within a source directory, because that will
2566 # break other packages using the cache if that directory is
2567 # removed, or if the value is a relative name.
2568 MKDIR_P="$ac_install_sh -d"
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2572 $as_echo "$MKDIR_P" >&6; }
2574 for ac_prog in gawk mawk nawk awk
2576 # Extract the first word of "$ac_prog", so it can be a program name with args.
2577 set dummy $ac_prog; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_AWK+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$AWK"; then
2584 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_AWK="$ac_prog"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 AWK=$ac_cv_prog_AWK
2604 if test -n "$AWK"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2606 $as_echo "$AWK" >&6; }
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2613 test -n "$AWK" && break
2614 done
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2617 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2618 set x ${MAKE-make}
2619 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2620 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 cat >conftest.make <<\_ACEOF
2624 SHELL = /bin/sh
2625 all:
2626 @echo '@@@%%%=$(MAKE)=@@@%%%'
2627 _ACEOF
2628 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2630 *@@@%%%=?*=@@@%%%*)
2631 eval ac_cv_prog_make_${ac_make}_set=yes;;
2633 eval ac_cv_prog_make_${ac_make}_set=no;;
2634 esac
2635 rm -f conftest.make
2637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2639 $as_echo "yes" >&6; }
2640 SET_MAKE=
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 SET_MAKE="MAKE=${MAKE-make}"
2647 rm -rf .tst 2>/dev/null
2648 mkdir .tst 2>/dev/null
2649 if test -d .tst; then
2650 am__leading_dot=.
2651 else
2652 am__leading_dot=_
2654 rmdir .tst 2>/dev/null
2656 # Check whether --enable-silent-rules was given.
2657 if test "${enable_silent_rules+set}" = set; then :
2658 enableval=$enable_silent_rules;
2661 case $enable_silent_rules in # (((
2662 yes) AM_DEFAULT_VERBOSITY=0;;
2663 no) AM_DEFAULT_VERBOSITY=1;;
2664 *) AM_DEFAULT_VERBOSITY=1;;
2665 esac
2666 am_make=${MAKE-make}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2668 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2669 if ${am_cv_make_support_nested_variables+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if $as_echo 'TRUE=$(BAR$(V))
2673 BAR0=false
2674 BAR1=true
2676 am__doit:
2677 @$(TRUE)
2678 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2679 am_cv_make_support_nested_variables=yes
2680 else
2681 am_cv_make_support_nested_variables=no
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2685 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2686 if test $am_cv_make_support_nested_variables = yes; then
2687 AM_V='$(V)'
2688 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2689 else
2690 AM_V=$AM_DEFAULT_VERBOSITY
2691 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2693 AM_BACKSLASH='\'
2695 DEPDIR="${am__leading_dot}deps"
2697 ac_config_commands="$ac_config_commands depfiles"
2700 am_make=${MAKE-make}
2701 cat > confinc << 'END'
2702 am__doit:
2703 @echo this is the am__doit target
2704 .PHONY: am__doit
2706 # If we don't find an include directive, just comment out the code.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2708 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2709 am__include="#"
2710 am__quote=
2711 _am_result=none
2712 # First try GNU make style include.
2713 echo "include confinc" > confmf
2714 # Ignore all kinds of additional output from 'make'.
2715 case `$am_make -s -f confmf 2> /dev/null` in #(
2716 *the\ am__doit\ target*)
2717 am__include=include
2718 am__quote=
2719 _am_result=GNU
2721 esac
2722 # Now try BSD make style include.
2723 if test "$am__include" = "#"; then
2724 echo '.include "confinc"' > confmf
2725 case `$am_make -s -f confmf 2> /dev/null` in #(
2726 *the\ am__doit\ target*)
2727 am__include=.include
2728 am__quote="\""
2729 _am_result=BSD
2731 esac
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2736 $as_echo "$_am_result" >&6; }
2737 rm -f confinc confmf
2739 # Check whether --enable-dependency-tracking was given.
2740 if test "${enable_dependency_tracking+set}" = set; then :
2741 enableval=$enable_dependency_tracking;
2744 if test "x$enable_dependency_tracking" != xno; then
2745 am_depcomp="$ac_aux_dir/depcomp"
2746 AMDEPBACKSLASH='\'
2747 am__nodep='_no'
2749 if test "x$enable_dependency_tracking" != xno; then
2750 AMDEP_TRUE=
2751 AMDEP_FALSE='#'
2752 else
2753 AMDEP_TRUE='#'
2754 AMDEP_FALSE=
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_CC"; then
2803 ac_ct_CC=$CC
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_CC" = x; then
2841 CC=""
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 CC=$ac_ct_CC
2851 else
2852 CC="$ac_cv_prog_CC"
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2878 done
2879 done
2880 IFS=$as_save_IFS
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 ac_prog_rejected=no
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2917 continue
2919 ac_cv_prog_CC="cc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2930 shift
2931 if test $# != 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2935 shift
2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog in cl.exe
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2977 done
2978 done
2979 IFS=$as_save_IFS
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$CC" && break
2994 done
2996 if test -z "$CC"; then
2997 ac_ct_CC=$CC
2998 for ac_prog in cl.exe
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3021 done
3022 done
3023 IFS=$as_save_IFS
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$ac_ct_CC" && break
3038 done
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CC=$ac_ct_CC
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details" "$LINENO" 5; }
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3063 set X $ac_compile
3064 ac_compiler=$2
3065 for ac_option in --version -v -V -qversion; do
3066 { { ac_try="$ac_compiler $ac_option >&5"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3074 ac_status=$?
3075 if test -s conftest.err; then
3076 sed '10a\
3077 ... rest of stderr output deleted ...
3078 10q' conftest.err >conftest.er1
3079 cat conftest.er1 >&5
3081 rm -f conftest.er1 conftest.err
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 done
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3090 main ()
3094 return 0;
3096 _ACEOF
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3101 # of exeext.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109 ac_rmfiles=
3110 for ac_file in $ac_files
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3115 esac
3116 done
3117 rm -f $ac_rmfiles
3119 if { { ac_try="$ac_link_default"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link_default") 2>&5
3127 ac_status=$?
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3134 # Autoconf.
3135 for ac_file in $ac_files ''
3137 test -f "$ac_file" || continue
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3141 [ab].out )
3142 # We found the default executable, but exeext='' is most
3143 # certainly right.
3144 break;;
3145 *.* )
3146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3147 then :; else
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an `-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3154 # actually working.
3155 break;;
3157 break;;
3158 esac
3159 done
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162 else
3163 ac_file=''
3165 if test -z "$ac_file"; then :
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error 77 "C compiler cannot create executables
3174 See \`config.log' for more details" "$LINENO" 5; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3180 $as_echo_n "checking for C compiler default output file name... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 ac_exeext=$ac_cv_exeext
3185 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3186 ac_clean_files=$ac_clean_files_save
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3188 $as_echo_n "checking for suffix of executables... " >&6; }
3189 if { { ac_try="$ac_link"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3202 # work properly (i.e., refer to `conftest.exe'), while it won't with
3203 # `rm'.
3204 for ac_file in conftest.exe conftest conftest.*; do
3205 test -f "$ac_file" || continue
3206 case $ac_file in
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209 break;;
3210 * ) break;;
3211 esac
3212 done
3213 else
3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3217 See \`config.log' for more details" "$LINENO" 5; }
3219 rm -f conftest conftest$ac_cv_exeext
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3221 $as_echo "$ac_cv_exeext" >&6; }
3223 rm -f conftest.$ac_ext
3224 EXEEXT=$ac_cv_exeext
3225 ac_exeext=$EXEEXT
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228 #include <stdio.h>
3230 main ()
3232 FILE *f = fopen ("conftest.out", "w");
3233 return ferror (f) || fclose (f) != 0;
3236 return 0;
3238 _ACEOF
3239 ac_clean_files="$ac_clean_files conftest.out"
3240 # Check that the compiler produces executables we can run. If not, either
3241 # the compiler is broken, or we cross compile.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
3244 if test "$cross_compiling" != yes; then
3245 { { ac_try="$ac_link"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256 if { ac_try='./conftest$ac_cv_exeext'
3257 { { case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_try") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; }; then
3267 cross_compiling=no
3268 else
3269 if test "$cross_compiling" = maybe; then
3270 cross_compiling=yes
3271 else
3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details" "$LINENO" 5; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3281 $as_echo "$cross_compiling" >&6; }
3283 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286 $as_echo_n "checking for suffix of object files... " >&6; }
3287 if ${ac_cv_objext+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3294 main ()
3298 return 0;
3300 _ACEOF
3301 rm -f conftest.o conftest.obj
3302 if { { ac_try="$ac_compile"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compile") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 for ac_file in conftest.o conftest.obj conftest.*; do
3314 test -f "$ac_file" || continue;
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3318 break;;
3319 esac
3320 done
3321 else
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "cannot compute suffix of object files: cannot compile
3328 See \`config.log' for more details" "$LINENO" 5; }
3330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3333 $as_echo "$ac_cv_objext" >&6; }
3334 OBJEXT=$ac_cv_objext
3335 ac_objext=$OBJEXT
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3338 if ${ac_cv_c_compiler_gnu+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3345 main ()
3347 #ifndef __GNUC__
3348 choke me
3349 #endif
3352 return 0;
3354 _ACEOF
3355 if ac_fn_c_try_compile "$LINENO"; then :
3356 ac_compiler_gnu=yes
3357 else
3358 ac_compiler_gnu=no
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3366 if test $ac_compiler_gnu = yes; then
3367 GCC=yes
3368 else
3369 GCC=
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3375 if ${ac_cv_prog_cc_g+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3380 ac_cv_prog_cc_g=no
3381 CFLAGS="-g"
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3386 main ()
3390 return 0;
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_prog_cc_g=yes
3395 else
3396 CFLAGS=""
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3410 else
3411 ac_c_werror_flag=$ac_save_c_werror_flag
3412 CFLAGS="-g"
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3417 main ()
3421 return 0;
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_cv_prog_cc_g=yes
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3435 $as_echo "$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437 CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439 if test "$GCC" = yes; then
3440 CFLAGS="-g -O2"
3441 else
3442 CFLAGS="-g"
3444 else
3445 if test "$GCC" = yes; then
3446 CFLAGS="-O2"
3447 else
3448 CFLAGS=
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3453 if ${ac_cv_prog_cc_c89+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_cv_prog_cc_c89=no
3457 ac_save_CC=$CC
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460 #include <stdarg.h>
3461 #include <stdio.h>
3462 struct stat;
3463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3464 struct buf { int x; };
3465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3466 static char *e (p, i)
3467 char **p;
3468 int i;
3470 return p[i];
3472 static char *f (char * (*g) (char **, int), char **p, ...)
3474 char *s;
3475 va_list v;
3476 va_start (v,p);
3477 s = g (p, va_arg (v,int));
3478 va_end (v);
3479 return s;
3482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3483 function prototypes and stuff, but not '\xHH' hex character constants.
3484 These don't provoke an error unfortunately, instead are silently treated
3485 as 'x'. The following induces an error, until -std is added to get
3486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3487 array size at least. It's necessary to write '\x00'==0 to get something
3488 that's true only with -std. */
3489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3492 inside strings and character constants. */
3493 #define FOO(x) 'x'
3494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496 int test (int i, double x);
3497 struct s1 {int (*f) (int a);};
3498 struct s2 {int (*f) (double a);};
3499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3500 int argc;
3501 char **argv;
3503 main ()
3505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 return 0;
3509 _ACEOF
3510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 CC="$ac_save_CC $ac_arg"
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_c89=$ac_arg
3517 rm -f core conftest.err conftest.$ac_objext
3518 test "x$ac_cv_prog_cc_c89" != "xno" && break
3519 done
3520 rm -f conftest.$ac_ext
3521 CC=$ac_save_CC
3524 # AC_CACHE_VAL
3525 case "x$ac_cv_prog_cc_c89" in
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3528 $as_echo "none needed" >&6; } ;;
3529 xno)
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531 $as_echo "unsupported" >&6; } ;;
3533 CC="$CC $ac_cv_prog_cc_c89"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536 esac
3537 if test "x$ac_cv_prog_cc_c89" != xno; then :
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3553 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3554 if ${am_cv_prog_cc_c_o+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 # Make sure it works both with $CC and with simple cc.
3569 # Following AC_PROG_CC_C_O, we do the test twice because some
3570 # compilers refuse to overwrite an existing .o file with -o,
3571 # though they will create one.
3572 am_cv_prog_cc_c_o=yes
3573 for am_i in 1 2; do
3574 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3575 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } \
3579 && test -f conftest2.$ac_objext; then
3580 : OK
3581 else
3582 am_cv_prog_cc_c_o=no
3583 break
3585 done
3586 rm -f core conftest*
3587 unset am_i
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3590 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3591 if test "$am_cv_prog_cc_c_o" != yes; then
3592 # Losing compiler, so override with the script.
3593 # FIXME: It is wrong to rewrite CC.
3594 # But if we don't then we get into trouble of one sort or another.
3595 # A longer-term fix would be to have automake use am__CC in this case,
3596 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3597 CC="$am_aux_dir/compile $CC"
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 depcc="$CC" am_compiler_list=
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3609 $as_echo_n "checking dependency style of $depcc... " >&6; }
3610 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3614 # We make a subdir and do the tests there. Otherwise we can end up
3615 # making bogus files that we don't know about and never remove. For
3616 # instance it was reported that on HP-UX the gcc test will end up
3617 # making a dummy file named 'D' -- because '-MD' means "put the output
3618 # in D".
3619 rm -rf conftest.dir
3620 mkdir conftest.dir
3621 # Copy depcomp to subdir because otherwise we won't find it if we're
3622 # using a relative directory.
3623 cp "$am_depcomp" conftest.dir
3624 cd conftest.dir
3625 # We will build objects and dependencies in a subdirectory because
3626 # it helps to detect inapplicable dependency modes. For instance
3627 # both Tru64's cc and ICC support -MD to output dependencies as a
3628 # side effect of compilation, but ICC will put the dependencies in
3629 # the current directory while Tru64 will put them in the object
3630 # directory.
3631 mkdir sub
3633 am_cv_CC_dependencies_compiler_type=none
3634 if test "$am_compiler_list" = ""; then
3635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3637 am__universal=false
3638 case " $depcc " in #(
3639 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3640 esac
3642 for depmode in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3650 : > sub/conftest.c
3651 for i in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3654 # Solaris 10 /bin/sh.
3655 echo '/* dummy */' > sub/conftst$i.h
3656 done
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3659 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3660 # mode. It turns out that the SunPro C++ compiler does not properly
3661 # handle '-M -o', and we need to detect this. Also, some Intel
3662 # versions had trouble with output in subdirs.
3663 am__obj=sub/conftest.${OBJEXT-o}
3664 am__minus_obj="-o $am__obj"
3665 case $depmode in
3666 gcc)
3667 # This depmode causes a compiler race in universal mode.
3668 test "$am__universal" = false || continue
3670 nosideeffect)
3671 # After this tag, mechanisms are not by side-effect, so they'll
3672 # only be used when explicitly requested.
3673 if test "x$enable_dependency_tracking" = xyes; then
3674 continue
3675 else
3676 break
3679 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3680 # This compiler won't grok '-c -o', but also, the minuso test has
3681 # not run yet. These depmodes are late enough in the game, and
3682 # so weak that their functioning should not be impacted.
3683 am__obj=conftest.${OBJEXT-o}
3684 am__minus_obj=
3686 none) break ;;
3687 esac
3688 if depmode=$depmode \
3689 source=sub/conftest.c object=$am__obj \
3690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3691 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3692 >/dev/null 2>conftest.err &&
3693 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3694 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3695 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3696 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3697 # icc doesn't choke on unknown options, it will just issue warnings
3698 # or remarks (even with -Werror). So we grep stderr for any message
3699 # that says an option was ignored or not supported.
3700 # When given -MP, icc 7.0 and 7.1 complain thusly:
3701 # icc: Command line warning: ignoring option '-M'; no argument required
3702 # The diagnosis changed in icc 8.0:
3703 # icc: Command line remark: option '-MP' not supported
3704 if (grep 'ignoring option' conftest.err ||
3705 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3706 am_cv_CC_dependencies_compiler_type=$depmode
3707 break
3710 done
3712 cd ..
3713 rm -rf conftest.dir
3714 else
3715 am_cv_CC_dependencies_compiler_type=none
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3720 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3721 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3724 test "x$enable_dependency_tracking" != xno \
3725 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3726 am__fastdepCC_TRUE=
3727 am__fastdepCC_FALSE='#'
3728 else
3729 am__fastdepCC_TRUE='#'
3730 am__fastdepCC_FALSE=
3735 # Check whether --enable-compiler-warnings was given.
3736 if test "${enable_compiler_warnings+set}" = set; then :
3737 enableval=$enable_compiler_warnings;
3739 case $enable_compiler_warnings in #(
3740 no | min | yes | max | all) :
3741 ;; #(
3742 *) :
3743 if test "x$enable_maintainer_mode" = xyes; then :
3744 enable_compiler_warnings=yes
3745 else
3746 enable_compiler_warnings=min
3747 fi ;;
3748 esac
3751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3753 # is not polluted with repeated "-I."
3754 am__isrc=' -I$(srcdir)'
3755 # test to see if srcdir already configured
3756 if test -f $srcdir/config.status; then
3757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3761 # test whether we have cygpath
3762 if test -z "$CYGPATH_W"; then
3763 if (cygpath --version) >/dev/null 2>/dev/null; then
3764 CYGPATH_W='cygpath -w'
3765 else
3766 CYGPATH_W=echo
3771 # Define the identity of the package.
3772 PACKAGE='luajit-native'
3773 VERSION='2.1.0-beta1'
3776 cat >>confdefs.h <<_ACEOF
3777 #define PACKAGE "$PACKAGE"
3778 _ACEOF
3781 cat >>confdefs.h <<_ACEOF
3782 #define VERSION "$VERSION"
3783 _ACEOF
3785 # Some tools Automake needs.
3787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3801 # For better backward compatibility. To be removed once Automake 1.9.x
3802 # dies out for good. For more background, see:
3803 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3804 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3805 mkdir_p='$(MKDIR_P)'
3807 # We need awk for the "check" target (and possibly the TAP driver). The
3808 # system "awk" is bad on some platforms.
3809 # Always define AMTAR for backward compatibility. Yes, it's still used
3810 # in the wild :-( We should find a proper way to deprecate it ...
3811 AMTAR='$${TAR-tar}'
3814 # We'll loop over all known methods to create a tar archive until one works.
3815 _am_tools='gnutar pax cpio none'
3817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3824 # POSIX will say in a future version that running "rm -f" with no argument
3825 # is OK; and we want to be able to make that assumption in our Makefile
3826 # recipes. So use an aggressive probe to check that the usage we want is
3827 # actually supported "in the wild" to an acceptable degree.
3828 # See automake bug#10828.
3829 # To make any issue more visible, cause the running configure to be aborted
3830 # by default if the 'rm' program in use doesn't match our expectations; the
3831 # user can still override this though.
3832 if rm -f && rm -fr && rm -rf; then : OK; else
3833 cat >&2 <<'END'
3834 Oops!
3836 Your 'rm' program seems unable to run without file operands specified
3837 on the command line, even when the '-f' option is present. This is contrary
3838 to the behaviour of most rm programs out there, and not conforming with
3839 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3841 Please tell bug-automake@gnu.org about your system, including the value
3842 of your $PATH and any error possibly output before this message. This
3843 can help us improve future automake versions.
3846 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3847 echo 'Configuration will proceed anyway, since you have set the' >&2
3848 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3849 echo >&2
3850 else
3851 cat >&2 <<'END'
3852 Aborting the configuration process, to ensure you take notice of the issue.
3854 You can download and install GNU coreutils to get an 'rm' implementation
3855 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3857 If you want to complete the configuration process using your problematic
3858 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3859 to "yes", and re-run configure.
3862 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3868 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3869 # Check whether --enable-maintainer-mode was given.
3870 if test "${enable_maintainer_mode+set}" = set; then :
3871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3872 else
3873 USE_MAINTAINER_MODE=no
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3877 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3878 if test $USE_MAINTAINER_MODE = yes; then
3879 MAINTAINER_MODE_TRUE=
3880 MAINTAINER_MODE_FALSE='#'
3881 else
3882 MAINTAINER_MODE_TRUE='#'
3883 MAINTAINER_MODE_FALSE=
3886 MAINT=$MAINTAINER_MODE_TRUE
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
3890 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
3891 if ${kb_cv_c_prototypes+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <stdarg.h>
3898 main ()
3900 extern void foo(int i,...);
3902 return 0;
3904 _ACEOF
3905 if ac_fn_c_try_link "$LINENO"; then :
3906 kb_cv_c_prototypes=yes
3907 else
3908 kb_cv_c_prototypes=no
3910 rm -f core conftest.err conftest.$ac_objext \
3911 conftest$ac_exeext conftest.$ac_ext
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
3914 $as_echo "$kb_cv_c_prototypes" >&6; }
3915 if test "x$kb_cv_c_prototypes" = xno; then
3916 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
3919 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
3920 if ${kpse_cv_warning_cflags+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test "x$GCC" = xyes; then
3924 kpse_cv_warning_cflags=
3925 if test "x$enable_compiler_warnings" != xno; then
3926 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
3927 case `$CC -dumpversion` in #(
3928 3.4.* | 4.* | 5.*) :
3929 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
3930 *) :
3932 esac
3933 case `$CC -dumpversion` in #(
3934 3.[234].* | 4.* | 5.*) :
3935 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
3936 *) :
3938 esac
3939 if test "x$enable_compiler_warnings" != xmin; then
3940 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
3941 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
3942 if test "x$enable_compiler_warnings" != xyes; then
3943 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
3944 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
3945 case `$CC -dumpversion` in #(
3946 3.4.* | 4.* | 5.*) :
3947 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
3948 *) :
3950 esac
3951 if test "x$enable_compiler_warnings" != xmax; then
3952 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
3957 elif test "x$enable_compiler_warnings" = xno; then
3958 kpse_cv_warning_cflags=
3959 else
3960 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
3964 $as_echo "$kpse_cv_warning_cflags" >&6; }
3965 WARNING_CFLAGS=$kpse_cv_warning_cflags
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_prog_CC+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 $as_echo "$CC" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4018 if test -z "$ac_cv_prog_CC"; then
4019 ac_ct_CC=$CC
4020 # Extract the first word of "gcc", so it can be a program name with args.
4021 set dummy gcc; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$ac_ct_CC"; then
4028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_ac_ct_CC="gcc"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4048 if test -n "$ac_ct_CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4050 $as_echo "$ac_ct_CC" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4056 if test "x$ac_ct_CC" = x; then
4057 CC=""
4058 else
4059 case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063 ac_tool_warned=yes ;;
4064 esac
4065 CC=$ac_ct_CC
4067 else
4068 CC="$ac_cv_prog_CC"
4071 if test -z "$CC"; then
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}cc; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if ${ac_cv_prog_CC+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -n "$CC"; then
4081 ac_cv_prog_CC="$CC" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_CC="${ac_tool_prefix}cc"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4094 done
4095 done
4096 IFS=$as_save_IFS
4100 CC=$ac_cv_prog_CC
4101 if test -n "$CC"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4103 $as_echo "$CC" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4112 if test -z "$CC"; then
4113 # Extract the first word of "cc", so it can be a program name with args.
4114 set dummy cc; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_CC+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 ac_prog_rejected=no
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4132 ac_prog_rejected=yes
4133 continue
4135 ac_cv_prog_CC="cc"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4143 if test $ac_prog_rejected = yes; then
4144 # We found a bogon in the path, so make sure we never use it.
4145 set dummy $ac_cv_prog_CC
4146 shift
4147 if test $# != 0; then
4148 # We chose a different compiler from the bogus one.
4149 # However, it has the same basename, so the bogon will be chosen
4150 # first if we set CC to just the basename; use the full file name.
4151 shift
4152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 $as_echo "$CC" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4168 if test -z "$CC"; then
4169 if test -n "$ac_tool_prefix"; then
4170 for ac_prog in cl.exe
4172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_CC+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$CC"; then
4180 ac_cv_prog_CC="$CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4195 IFS=$as_save_IFS
4199 CC=$ac_cv_prog_CC
4200 if test -n "$CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202 $as_echo "$CC" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4209 test -n "$CC" && break
4210 done
4212 if test -z "$CC"; then
4213 ac_ct_CC=$CC
4214 for ac_prog in cl.exe
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -n "$ac_ct_CC"; then
4224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_ac_ct_CC="$ac_prog"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4239 IFS=$as_save_IFS
4243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4244 if test -n "$ac_ct_CC"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4246 $as_echo "$ac_ct_CC" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4253 test -n "$ac_ct_CC" && break
4254 done
4256 if test "x$ac_ct_CC" = x; then
4257 CC=""
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4264 esac
4265 CC=$ac_ct_CC
4272 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 as_fn_error $? "no acceptable C compiler found in \$PATH
4275 See \`config.log' for more details" "$LINENO" 5; }
4277 # Provide some information about the compiler.
4278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4279 set X $ac_compile
4280 ac_compiler=$2
4281 for ac_option in --version -v -V -qversion; do
4282 { { ac_try="$ac_compiler $ac_option >&5"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4290 ac_status=$?
4291 if test -s conftest.err; then
4292 sed '10a\
4293 ... rest of stderr output deleted ...
4294 10q' conftest.err >conftest.er1
4295 cat conftest.er1 >&5
4297 rm -f conftest.er1 conftest.err
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }
4300 done
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if ${ac_cv_c_compiler_gnu+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4311 main ()
4313 #ifndef __GNUC__
4314 choke me
4315 #endif
4318 return 0;
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_compiler_gnu=yes
4323 else
4324 ac_compiler_gnu=no
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4333 GCC=yes
4334 else
4335 GCC=
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if ${ac_cv_prog_cc_g+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 ac_save_c_werror_flag=$ac_c_werror_flag
4345 ac_c_werror_flag=yes
4346 ac_cv_prog_cc_g=no
4347 CFLAGS="-g"
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_g=yes
4361 else
4362 CFLAGS=""
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4367 main ()
4371 return 0;
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4376 else
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 CFLAGS="-g"
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4383 main ()
4387 return 0;
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_prog_cc_g=yes
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4406 CFLAGS="-g -O2"
4407 else
4408 CFLAGS="-g"
4410 else
4411 if test "$GCC" = yes; then
4412 CFLAGS="-O2"
4413 else
4414 CFLAGS=
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if ${ac_cv_prog_cc_c89+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_cv_prog_cc_c89=no
4423 ac_save_CC=$CC
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <stdarg.h>
4427 #include <stdio.h>
4428 struct stat;
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4436 return p[i];
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4469 main ()
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4473 return 0;
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4485 done
4486 rm -f conftest.$ac_ext
4487 CC=$ac_save_CC
4490 # AC_CACHE_VAL
4491 case "x$ac_cv_prog_cc_c89" in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4495 xno)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4502 esac
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4519 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4520 if ${am_cv_prog_cc_c_o+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4531 return 0;
4533 _ACEOF
4534 # Make sure it works both with $CC and with simple cc.
4535 # Following AC_PROG_CC_C_O, we do the test twice because some
4536 # compilers refuse to overwrite an existing .o file with -o,
4537 # though they will create one.
4538 am_cv_prog_cc_c_o=yes
4539 for am_i in 1 2; do
4540 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4541 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } \
4545 && test -f conftest2.$ac_objext; then
4546 : OK
4547 else
4548 am_cv_prog_cc_c_o=no
4549 break
4551 done
4552 rm -f core conftest*
4553 unset am_i
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4556 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4557 if test "$am_cv_prog_cc_c_o" != yes; then
4558 # Losing compiler, so override with the script.
4559 # FIXME: It is wrong to rewrite CC.
4560 # But if we don't then we get into trouble of one sort or another.
4561 # A longer-term fix would be to have automake use am__CC in this case,
4562 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4563 CC="$am_aux_dir/compile $CC"
4565 ac_ext=c
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572 depcc="$CC" am_compiler_list=
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4575 $as_echo_n "checking dependency style of $depcc... " >&6; }
4576 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4580 # We make a subdir and do the tests there. Otherwise we can end up
4581 # making bogus files that we don't know about and never remove. For
4582 # instance it was reported that on HP-UX the gcc test will end up
4583 # making a dummy file named 'D' -- because '-MD' means "put the output
4584 # in D".
4585 rm -rf conftest.dir
4586 mkdir conftest.dir
4587 # Copy depcomp to subdir because otherwise we won't find it if we're
4588 # using a relative directory.
4589 cp "$am_depcomp" conftest.dir
4590 cd conftest.dir
4591 # We will build objects and dependencies in a subdirectory because
4592 # it helps to detect inapplicable dependency modes. For instance
4593 # both Tru64's cc and ICC support -MD to output dependencies as a
4594 # side effect of compilation, but ICC will put the dependencies in
4595 # the current directory while Tru64 will put them in the object
4596 # directory.
4597 mkdir sub
4599 am_cv_CC_dependencies_compiler_type=none
4600 if test "$am_compiler_list" = ""; then
4601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4603 am__universal=false
4604 case " $depcc " in #(
4605 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4606 esac
4608 for depmode in $am_compiler_list; do
4609 # Setup a source with many dependencies, because some compilers
4610 # like to wrap large dependency lists on column 80 (with \), and
4611 # we should not choose a depcomp mode which is confused by this.
4613 # We need to recreate these files for each test, as the compiler may
4614 # overwrite some of them when testing with obscure command lines.
4615 # This happens at least with the AIX C compiler.
4616 : > sub/conftest.c
4617 for i in 1 2 3 4 5 6; do
4618 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4619 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4620 # Solaris 10 /bin/sh.
4621 echo '/* dummy */' > sub/conftst$i.h
4622 done
4623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4625 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4626 # mode. It turns out that the SunPro C++ compiler does not properly
4627 # handle '-M -o', and we need to detect this. Also, some Intel
4628 # versions had trouble with output in subdirs.
4629 am__obj=sub/conftest.${OBJEXT-o}
4630 am__minus_obj="-o $am__obj"
4631 case $depmode in
4632 gcc)
4633 # This depmode causes a compiler race in universal mode.
4634 test "$am__universal" = false || continue
4636 nosideeffect)
4637 # After this tag, mechanisms are not by side-effect, so they'll
4638 # only be used when explicitly requested.
4639 if test "x$enable_dependency_tracking" = xyes; then
4640 continue
4641 else
4642 break
4645 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4646 # This compiler won't grok '-c -o', but also, the minuso test has
4647 # not run yet. These depmodes are late enough in the game, and
4648 # so weak that their functioning should not be impacted.
4649 am__obj=conftest.${OBJEXT-o}
4650 am__minus_obj=
4652 none) break ;;
4653 esac
4654 if depmode=$depmode \
4655 source=sub/conftest.c object=$am__obj \
4656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4657 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4658 >/dev/null 2>conftest.err &&
4659 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4661 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4663 # icc doesn't choke on unknown options, it will just issue warnings
4664 # or remarks (even with -Werror). So we grep stderr for any message
4665 # that says an option was ignored or not supported.
4666 # When given -MP, icc 7.0 and 7.1 complain thusly:
4667 # icc: Command line warning: ignoring option '-M'; no argument required
4668 # The diagnosis changed in icc 8.0:
4669 # icc: Command line remark: option '-MP' not supported
4670 if (grep 'ignoring option' conftest.err ||
4671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4672 am_cv_CC_dependencies_compiler_type=$depmode
4673 break
4676 done
4678 cd ..
4679 rm -rf conftest.dir
4680 else
4681 am_cv_CC_dependencies_compiler_type=none
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4686 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4687 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4690 test "x$enable_dependency_tracking" != xno \
4691 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4692 am__fastdepCC_TRUE=
4693 am__fastdepCC_FALSE='#'
4694 else
4695 am__fastdepCC_TRUE='#'
4696 am__fastdepCC_FALSE=
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4701 $as_echo_n "checking whether ln -s works... " >&6; }
4702 LN_S=$as_ln_s
4703 if test "$LN_S" = "ln -s"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4708 $as_echo "no, using $LN_S" >&6; }
4712 ac_ext=c
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4718 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4719 # On Suns, sometimes $CPP names a directory.
4720 if test -n "$CPP" && test -d "$CPP"; then
4721 CPP=
4723 if test -z "$CPP"; then
4724 if ${ac_cv_prog_CPP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 # Double quotes because CPP needs to be expanded
4728 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4730 ac_preproc_ok=false
4731 for ac_c_preproc_warn_flag in '' yes
4733 # Use a header file that comes with gcc, so configuring glibc
4734 # with a fresh cross-compiler works.
4735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4736 # <limits.h> exists even on freestanding compilers.
4737 # On the NeXT, cc -E runs the code through the compiler's parser,
4738 # not just through cpp. "Syntax error" is here to catch this case.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #ifdef __STDC__
4742 # include <limits.h>
4743 #else
4744 # include <assert.h>
4745 #endif
4746 Syntax error
4747 _ACEOF
4748 if ac_fn_c_try_cpp "$LINENO"; then :
4750 else
4751 # Broken: fails on valid input.
4752 continue
4754 rm -f conftest.err conftest.i conftest.$ac_ext
4756 # OK, works on sane cases. Now check whether nonexistent headers
4757 # can be detected and how.
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 #include <ac_nonexistent.h>
4761 _ACEOF
4762 if ac_fn_c_try_cpp "$LINENO"; then :
4763 # Broken: success on invalid input.
4764 continue
4765 else
4766 # Passes both tests.
4767 ac_preproc_ok=:
4768 break
4770 rm -f conftest.err conftest.i conftest.$ac_ext
4772 done
4773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4774 rm -f conftest.i conftest.err conftest.$ac_ext
4775 if $ac_preproc_ok; then :
4776 break
4779 done
4780 ac_cv_prog_CPP=$CPP
4783 CPP=$ac_cv_prog_CPP
4784 else
4785 ac_cv_prog_CPP=$CPP
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4788 $as_echo "$CPP" >&6; }
4789 ac_preproc_ok=false
4790 for ac_c_preproc_warn_flag in '' yes
4792 # Use a header file that comes with gcc, so configuring glibc
4793 # with a fresh cross-compiler works.
4794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4795 # <limits.h> exists even on freestanding compilers.
4796 # On the NeXT, cc -E runs the code through the compiler's parser,
4797 # not just through cpp. "Syntax error" is here to catch this case.
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #ifdef __STDC__
4801 # include <limits.h>
4802 #else
4803 # include <assert.h>
4804 #endif
4805 Syntax error
4806 _ACEOF
4807 if ac_fn_c_try_cpp "$LINENO"; then :
4809 else
4810 # Broken: fails on valid input.
4811 continue
4813 rm -f conftest.err conftest.i conftest.$ac_ext
4815 # OK, works on sane cases. Now check whether nonexistent headers
4816 # can be detected and how.
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 #include <ac_nonexistent.h>
4820 _ACEOF
4821 if ac_fn_c_try_cpp "$LINENO"; then :
4822 # Broken: success on invalid input.
4823 continue
4824 else
4825 # Passes both tests.
4826 ac_preproc_ok=:
4827 break
4829 rm -f conftest.err conftest.i conftest.$ac_ext
4831 done
4832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833 rm -f conftest.i conftest.err conftest.$ac_ext
4834 if $ac_preproc_ok; then :
4836 else
4837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4839 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4840 See \`config.log' for more details" "$LINENO" 5; }
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4851 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4852 if ${ac_cv_path_GREP+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -z "$GREP"; then
4856 ac_path_GREP_found=false
4857 # Loop through the user's path and test for each of PROGNAME-LIST
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_prog in grep ggrep; do
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4866 as_fn_executable_p "$ac_path_GREP" || continue
4867 # Check for GNU ac_path_GREP and select it if it is found.
4868 # Check for GNU $ac_path_GREP
4869 case `"$ac_path_GREP" --version 2>&1` in
4870 *GNU*)
4871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4873 ac_count=0
4874 $as_echo_n 0123456789 >"conftest.in"
4875 while :
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 $as_echo 'GREP' >> "conftest.nl"
4881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 as_fn_arith $ac_count + 1 && ac_count=$as_val
4884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_GREP="$ac_path_GREP"
4887 ac_path_GREP_max=$ac_count
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4891 done
4892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 esac
4895 $ac_path_GREP_found && break 3
4896 done
4897 done
4898 done
4899 IFS=$as_save_IFS
4900 if test -z "$ac_cv_path_GREP"; then
4901 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4903 else
4904 ac_cv_path_GREP=$GREP
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4909 $as_echo "$ac_cv_path_GREP" >&6; }
4910 GREP="$ac_cv_path_GREP"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4914 $as_echo_n "checking for egrep... " >&6; }
4915 if ${ac_cv_path_EGREP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4919 then ac_cv_path_EGREP="$GREP -E"
4920 else
4921 if test -z "$EGREP"; then
4922 ac_path_EGREP_found=false
4923 # Loop through the user's path and test for each of PROGNAME-LIST
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_prog in egrep; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4932 as_fn_executable_p "$ac_path_EGREP" || continue
4933 # Check for GNU ac_path_EGREP and select it if it is found.
4934 # Check for GNU $ac_path_EGREP
4935 case `"$ac_path_EGREP" --version 2>&1` in
4936 *GNU*)
4937 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4939 ac_count=0
4940 $as_echo_n 0123456789 >"conftest.in"
4941 while :
4943 cat "conftest.in" "conftest.in" >"conftest.tmp"
4944 mv "conftest.tmp" "conftest.in"
4945 cp "conftest.in" "conftest.nl"
4946 $as_echo 'EGREP' >> "conftest.nl"
4947 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949 as_fn_arith $ac_count + 1 && ac_count=$as_val
4950 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4951 # Best one so far, save it but keep looking for a better one
4952 ac_cv_path_EGREP="$ac_path_EGREP"
4953 ac_path_EGREP_max=$ac_count
4955 # 10*(2^10) chars as input seems more than enough
4956 test $ac_count -gt 10 && break
4957 done
4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4959 esac
4961 $ac_path_EGREP_found && break 3
4962 done
4963 done
4964 done
4965 IFS=$as_save_IFS
4966 if test -z "$ac_cv_path_EGREP"; then
4967 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969 else
4970 ac_cv_path_EGREP=$EGREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4976 $as_echo "$ac_cv_path_EGREP" >&6; }
4977 EGREP="$ac_cv_path_EGREP"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4981 $as_echo_n "checking for ANSI C header files... " >&6; }
4982 if ${ac_cv_header_stdc+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #include <stdlib.h>
4988 #include <stdarg.h>
4989 #include <string.h>
4990 #include <float.h>
4993 main ()
4997 return 0;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_cv_header_stdc=yes
5002 else
5003 ac_cv_header_stdc=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <string.h>
5013 _ACEOF
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 $EGREP "memchr" >/dev/null 2>&1; then :
5017 else
5018 ac_cv_header_stdc=no
5020 rm -f conftest*
5024 if test $ac_cv_header_stdc = yes; then
5025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #include <stdlib.h>
5030 _ACEOF
5031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "free" >/dev/null 2>&1; then :
5034 else
5035 ac_cv_header_stdc=no
5037 rm -f conftest*
5041 if test $ac_cv_header_stdc = yes; then
5042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5043 if test "$cross_compiling" = yes; then :
5045 else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #include <ctype.h>
5049 #include <stdlib.h>
5050 #if ((' ' & 0x0FF) == 0x020)
5051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5053 #else
5054 # define ISLOWER(c) \
5055 (('a' <= (c) && (c) <= 'i') \
5056 || ('j' <= (c) && (c) <= 'r') \
5057 || ('s' <= (c) && (c) <= 'z'))
5058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5059 #endif
5061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5063 main ()
5065 int i;
5066 for (i = 0; i < 256; i++)
5067 if (XOR (islower (i), ISLOWER (i))
5068 || toupper (i) != TOUPPER (i))
5069 return 2;
5070 return 0;
5072 _ACEOF
5073 if ac_fn_c_try_run "$LINENO"; then :
5075 else
5076 ac_cv_header_stdc=no
5078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5079 conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5085 $as_echo "$ac_cv_header_stdc" >&6; }
5086 if test $ac_cv_header_stdc = yes; then
5088 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5094 inttypes.h stdint.h unistd.h
5095 do :
5096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5100 cat >>confdefs.h <<_ACEOF
5101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102 _ACEOF
5106 done
5109 # The cast to long int works around a bug in the HP C Compiler
5110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5112 # This bug is HP SR number 8606223364.
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5114 $as_echo_n "checking size of void *... " >&6; }
5115 if ${ac_cv_sizeof_void_p+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5120 else
5121 if test "$ac_cv_type_void_p" = yes; then
5122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124 as_fn_error 77 "cannot compute sizeof (void *)
5125 See \`config.log' for more details" "$LINENO" 5; }
5126 else
5127 ac_cv_sizeof_void_p=0
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5133 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5137 cat >>confdefs.h <<_ACEOF
5138 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5139 _ACEOF
5142 if test "x$ac_cv_sizeof_void_p" != "x$HOST_PTR_SIZE"; then :
5143 HOST_PTR_BITS=`expr 8 \* $HOST_PTR_SIZE`
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler BULDCC." >&5
5145 $as_echo "$as_me: WARNING: pointer size mismatch in cross-build; use a ${HOST_PTR_BITS}bit compiler BULDCC." >&2;}
5146 case $HOST_PTR_BITS in #(
5147 32|64) :
5148 CC="$CC -m$HOST_PTR_BITS"; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying: $CC" >&5
5149 $as_echo "$as_me: WARNING: trying: $CC" >&2;} ;; #(
5150 *) :
5152 esac
5155 # Make sure we can run config.sub.
5156 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5157 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5160 $as_echo_n "checking build system type... " >&6; }
5161 if ${ac_cv_build+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 ac_build_alias=$build_alias
5165 test "x$ac_build_alias" = x &&
5166 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5167 test "x$ac_build_alias" = x &&
5168 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5169 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5174 $as_echo "$ac_cv_build" >&6; }
5175 case $ac_cv_build in
5176 *-*-*) ;;
5177 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5178 esac
5179 build=$ac_cv_build
5180 ac_save_IFS=$IFS; IFS='-'
5181 set x $ac_cv_build
5182 shift
5183 build_cpu=$1
5184 build_vendor=$2
5185 shift; shift
5186 # Remember, the first character of IFS is used to create $*,
5187 # except with old shells:
5188 build_os=$*
5189 IFS=$ac_save_IFS
5190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5194 $as_echo_n "checking host system type... " >&6; }
5195 if ${ac_cv_host+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test "x$host_alias" = x; then
5199 ac_cv_host=$ac_cv_build
5200 else
5201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5202 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5207 $as_echo "$ac_cv_host" >&6; }
5208 case $ac_cv_host in
5209 *-*-*) ;;
5210 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5211 esac
5212 host=$ac_cv_host
5213 ac_save_IFS=$IFS; IFS='-'
5214 set x $ac_cv_host
5215 shift
5216 host_cpu=$1
5217 host_vendor=$2
5218 shift; shift
5219 # Remember, the first character of IFS is used to create $*,
5220 # except with old shells:
5221 host_os=$*
5222 IFS=$ac_save_IFS
5223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5226 LUAJIT_DEFINES='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6'
5228 case $host_os:$host_cpu in #(
5229 *darwin*:x86_64) :
5230 LUAJIT_LDEXTRA='-pagezero_size 10000 -image_base 100000000' ;; #(
5231 *) :
5233 esac
5237 kpse_search_save_LIBS=$LIBS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
5239 $as_echo_n "checking for library containing pow... " >&6; }
5240 if ${ac_cv_search_pow+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 ac_func_search_save_LIBS=$LIBS
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5247 /* Override any GCC internal prototype to avoid an error.
5248 Use char because int might match the return type of a GCC
5249 builtin and then its argument prototype would still apply. */
5250 #ifdef __cplusplus
5251 extern "C"
5252 #endif
5253 char pow ();
5255 main ()
5257 return pow ();
5259 return 0;
5261 _ACEOF
5262 for ac_lib in '' m; do
5263 if test -z "$ac_lib"; then
5264 ac_res="none required"
5265 else
5266 ac_res=-l$ac_lib
5267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5269 if ac_fn_c_try_link "$LINENO"; then :
5270 ac_cv_search_pow=$ac_res
5272 rm -f core conftest.err conftest.$ac_objext \
5273 conftest$ac_exeext
5274 if ${ac_cv_search_pow+:} false; then :
5275 break
5277 done
5278 if ${ac_cv_search_pow+:} false; then :
5280 else
5281 ac_cv_search_pow=no
5283 rm conftest.$ac_ext
5284 LIBS=$ac_func_search_save_LIBS
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
5287 $as_echo "$ac_cv_search_pow" >&6; }
5288 ac_res=$ac_cv_search_pow
5289 if test "$ac_res" != no; then :
5290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5294 LIBS=$kpse_search_save_LIBS
5295 case $ac_cv_search_pow in #(
5296 "none required") :
5297 ;; #(
5298 no) :
5299 as_fn_error $? "Sorry, did not find pow()" "$LINENO" 5 ;; #(
5300 *) :
5301 MATH_LIB=$ac_cv_search_pow ;;
5302 esac
5307 LUAJIT_TREE=../LuaJIT-src
5310 ac_config_headers="$ac_config_headers config.h"
5313 ac_config_files="$ac_config_files Makefile"
5316 cat >confcache <<\_ACEOF
5317 # This file is a shell script that caches the results of configure
5318 # tests run on this system so they can be shared between configure
5319 # scripts and configure runs, see configure's option --config-cache.
5320 # It is not useful on other systems. If it contains results you don't
5321 # want to keep, you may remove or edit it.
5323 # config.status only pays attention to the cache file if you give it
5324 # the --recheck option to rerun configure.
5326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5328 # following values.
5330 _ACEOF
5332 # The following way of writing the cache mishandles newlines in values,
5333 # but we know of no workaround that is simple, portable, and efficient.
5334 # So, we kill variables containing newlines.
5335 # Ultrix sh set writes to stderr and can't be redirected directly,
5336 # and sets the high bit in the cache file unless we assign to the vars.
5338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5339 eval ac_val=\$$ac_var
5340 case $ac_val in #(
5341 *${as_nl}*)
5342 case $ac_var in #(
5343 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5344 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5345 esac
5346 case $ac_var in #(
5347 _ | IFS | as_nl) ;; #(
5348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5349 *) { eval $ac_var=; unset $ac_var;} ;;
5350 esac ;;
5351 esac
5352 done
5354 (set) 2>&1 |
5355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5356 *${as_nl}ac_space=\ *)
5357 # `set' does not quote correctly, so add quotes: double-quote
5358 # substitution turns \\\\ into \\, and sed turns \\ into \.
5359 sed -n \
5360 "s/'/'\\\\''/g;
5361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5362 ;; #(
5364 # `set' quotes correctly as required by POSIX, so do not add quotes.
5365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5367 esac |
5368 sort
5370 sed '
5371 /^ac_cv_env_/b end
5372 t clear
5373 :clear
5374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5375 t end
5376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5377 :end' >>confcache
5378 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5379 if test -w "$cache_file"; then
5380 if test "x$cache_file" != "x/dev/null"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5382 $as_echo "$as_me: updating cache $cache_file" >&6;}
5383 if test ! -f "$cache_file" || test -h "$cache_file"; then
5384 cat confcache >"$cache_file"
5385 else
5386 case $cache_file in #(
5387 */* | ?:*)
5388 mv -f confcache "$cache_file"$$ &&
5389 mv -f "$cache_file"$$ "$cache_file" ;; #(
5391 mv -f confcache "$cache_file" ;;
5392 esac
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5397 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5400 rm -f confcache
5402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5403 # Let make expand exec_prefix.
5404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5406 DEFS=-DHAVE_CONFIG_H
5408 ac_libobjs=
5409 ac_ltlibobjs=
5411 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5412 # 1. Remove the extension, and $U if already installed.
5413 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5414 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5415 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5416 # will be set to the directory where LIBOBJS objects are built.
5417 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5418 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5419 done
5420 LIBOBJS=$ac_libobjs
5422 LTLIBOBJS=$ac_ltlibobjs
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5426 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5427 if test -n "$am_sleep_pid"; then
5428 # Hide warnings about reused PIDs.
5429 wait $am_sleep_pid 2>/dev/null
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5432 $as_echo "done" >&6; }
5433 if test -n "$EXEEXT"; then
5434 am__EXEEXT_TRUE=
5435 am__EXEEXT_FALSE='#'
5436 else
5437 am__EXEEXT_TRUE='#'
5438 am__EXEEXT_FALSE=
5441 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5442 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5445 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5446 as_fn_error $? "conditional \"AMDEP\" was never defined.
5447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5449 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5450 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5453 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5454 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5458 : "${CONFIG_STATUS=./config.status}"
5459 ac_write_fail=0
5460 ac_clean_files_save=$ac_clean_files
5461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5463 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5464 as_write_fail=0
5465 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5466 #! $SHELL
5467 # Generated by $as_me.
5468 # Run this file to recreate the current configuration.
5469 # Compiler output produced by configure, useful for debugging
5470 # configure, is in config.log if it exists.
5472 debug=false
5473 ac_cs_recheck=false
5474 ac_cs_silent=false
5476 SHELL=\${CONFIG_SHELL-$SHELL}
5477 export SHELL
5478 _ASEOF
5479 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5480 ## -------------------- ##
5481 ## M4sh Initialization. ##
5482 ## -------------------- ##
5484 # Be more Bourne compatible
5485 DUALCASE=1; export DUALCASE # for MKS sh
5486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5487 emulate sh
5488 NULLCMD=:
5489 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5490 # is contrary to our usage. Disable this feature.
5491 alias -g '${1+"$@"}'='"$@"'
5492 setopt NO_GLOB_SUBST
5493 else
5494 case `(set -o) 2>/dev/null` in #(
5495 *posix*) :
5496 set -o posix ;; #(
5497 *) :
5499 esac
5503 as_nl='
5505 export as_nl
5506 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5507 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5509 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5510 # Prefer a ksh shell builtin over an external printf program on Solaris,
5511 # but without wasting forks for bash or zsh.
5512 if test -z "$BASH_VERSION$ZSH_VERSION" \
5513 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5514 as_echo='print -r --'
5515 as_echo_n='print -rn --'
5516 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5517 as_echo='printf %s\n'
5518 as_echo_n='printf %s'
5519 else
5520 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5521 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5522 as_echo_n='/usr/ucb/echo -n'
5523 else
5524 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5525 as_echo_n_body='eval
5526 arg=$1;
5527 case $arg in #(
5528 *"$as_nl"*)
5529 expr "X$arg" : "X\\(.*\\)$as_nl";
5530 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5531 esac;
5532 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5534 export as_echo_n_body
5535 as_echo_n='sh -c $as_echo_n_body as_echo'
5537 export as_echo_body
5538 as_echo='sh -c $as_echo_body as_echo'
5541 # The user is always right.
5542 if test "${PATH_SEPARATOR+set}" != set; then
5543 PATH_SEPARATOR=:
5544 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5545 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5546 PATH_SEPARATOR=';'
5551 # IFS
5552 # We need space, tab and new line, in precisely that order. Quoting is
5553 # there to prevent editors from complaining about space-tab.
5554 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5555 # splitting by setting IFS to empty value.)
5556 IFS=" "" $as_nl"
5558 # Find who we are. Look in the path if we contain no directory separator.
5559 as_myself=
5560 case $0 in #((
5561 *[\\/]* ) as_myself=$0 ;;
5562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5568 done
5569 IFS=$as_save_IFS
5572 esac
5573 # We did not find ourselves, most probably we were run as `sh COMMAND'
5574 # in which case we are not to be found in the path.
5575 if test "x$as_myself" = x; then
5576 as_myself=$0
5578 if test ! -f "$as_myself"; then
5579 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5580 exit 1
5583 # Unset variables that we do not need and which cause bugs (e.g. in
5584 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5585 # suppresses any "Segmentation fault" message there. '((' could
5586 # trigger a bug in pdksh 5.2.14.
5587 for as_var in BASH_ENV ENV MAIL MAILPATH
5588 do eval test x\${$as_var+set} = xset \
5589 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5590 done
5591 PS1='$ '
5592 PS2='> '
5593 PS4='+ '
5595 # NLS nuisances.
5596 LC_ALL=C
5597 export LC_ALL
5598 LANGUAGE=C
5599 export LANGUAGE
5601 # CDPATH.
5602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5605 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5606 # ----------------------------------------
5607 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5608 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5609 # script with STATUS, using 1 if that was 0.
5610 as_fn_error ()
5612 as_status=$1; test $as_status -eq 0 && as_status=1
5613 if test "$4"; then
5614 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5615 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5617 $as_echo "$as_me: error: $2" >&2
5618 as_fn_exit $as_status
5619 } # as_fn_error
5622 # as_fn_set_status STATUS
5623 # -----------------------
5624 # Set $? to STATUS, without forking.
5625 as_fn_set_status ()
5627 return $1
5628 } # as_fn_set_status
5630 # as_fn_exit STATUS
5631 # -----------------
5632 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5633 as_fn_exit ()
5635 set +e
5636 as_fn_set_status $1
5637 exit $1
5638 } # as_fn_exit
5640 # as_fn_unset VAR
5641 # ---------------
5642 # Portably unset VAR.
5643 as_fn_unset ()
5645 { eval $1=; unset $1;}
5647 as_unset=as_fn_unset
5648 # as_fn_append VAR VALUE
5649 # ----------------------
5650 # Append the text in VALUE to the end of the definition contained in VAR. Take
5651 # advantage of any shell optimizations that allow amortized linear growth over
5652 # repeated appends, instead of the typical quadratic growth present in naive
5653 # implementations.
5654 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5655 eval 'as_fn_append ()
5657 eval $1+=\$2
5659 else
5660 as_fn_append ()
5662 eval $1=\$$1\$2
5664 fi # as_fn_append
5666 # as_fn_arith ARG...
5667 # ------------------
5668 # Perform arithmetic evaluation on the ARGs, and store the result in the
5669 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5670 # must be portable across $(()) and expr.
5671 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5672 eval 'as_fn_arith ()
5674 as_val=$(( $* ))
5676 else
5677 as_fn_arith ()
5679 as_val=`expr "$@" || test $? -eq 1`
5681 fi # as_fn_arith
5684 if expr a : '\(a\)' >/dev/null 2>&1 &&
5685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5686 as_expr=expr
5687 else
5688 as_expr=false
5691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5692 as_basename=basename
5693 else
5694 as_basename=false
5697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5698 as_dirname=dirname
5699 else
5700 as_dirname=false
5703 as_me=`$as_basename -- "$0" ||
5704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5705 X"$0" : 'X\(//\)$' \| \
5706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5707 $as_echo X/"$0" |
5708 sed '/^.*\/\([^/][^/]*\)\/*$/{
5709 s//\1/
5712 /^X\/\(\/\/\)$/{
5713 s//\1/
5716 /^X\/\(\/\).*/{
5717 s//\1/
5720 s/.*/./; q'`
5722 # Avoid depending upon Character Ranges.
5723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5726 as_cr_digits='0123456789'
5727 as_cr_alnum=$as_cr_Letters$as_cr_digits
5729 ECHO_C= ECHO_N= ECHO_T=
5730 case `echo -n x` in #(((((
5731 -n*)
5732 case `echo 'xy\c'` in
5733 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5734 xy) ECHO_C='\c';;
5735 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5736 ECHO_T=' ';;
5737 esac;;
5739 ECHO_N='-n';;
5740 esac
5742 rm -f conf$$ conf$$.exe conf$$.file
5743 if test -d conf$$.dir; then
5744 rm -f conf$$.dir/conf$$.file
5745 else
5746 rm -f conf$$.dir
5747 mkdir conf$$.dir 2>/dev/null
5749 if (echo >conf$$.file) 2>/dev/null; then
5750 if ln -s conf$$.file conf$$ 2>/dev/null; then
5751 as_ln_s='ln -s'
5752 # ... but there are two gotchas:
5753 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5754 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5755 # In both cases, we have to default to `cp -pR'.
5756 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5757 as_ln_s='cp -pR'
5758 elif ln conf$$.file conf$$ 2>/dev/null; then
5759 as_ln_s=ln
5760 else
5761 as_ln_s='cp -pR'
5763 else
5764 as_ln_s='cp -pR'
5766 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5767 rmdir conf$$.dir 2>/dev/null
5770 # as_fn_mkdir_p
5771 # -------------
5772 # Create "$as_dir" as a directory, including parents if necessary.
5773 as_fn_mkdir_p ()
5776 case $as_dir in #(
5777 -*) as_dir=./$as_dir;;
5778 esac
5779 test -d "$as_dir" || eval $as_mkdir_p || {
5780 as_dirs=
5781 while :; do
5782 case $as_dir in #(
5783 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5784 *) as_qdir=$as_dir;;
5785 esac
5786 as_dirs="'$as_qdir' $as_dirs"
5787 as_dir=`$as_dirname -- "$as_dir" ||
5788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5789 X"$as_dir" : 'X\(//\)[^/]' \| \
5790 X"$as_dir" : 'X\(//\)$' \| \
5791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5792 $as_echo X"$as_dir" |
5793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5794 s//\1/
5797 /^X\(\/\/\)[^/].*/{
5798 s//\1/
5801 /^X\(\/\/\)$/{
5802 s//\1/
5805 /^X\(\/\).*/{
5806 s//\1/
5809 s/.*/./; q'`
5810 test -d "$as_dir" && break
5811 done
5812 test -z "$as_dirs" || eval "mkdir $as_dirs"
5813 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5816 } # as_fn_mkdir_p
5817 if mkdir -p . 2>/dev/null; then
5818 as_mkdir_p='mkdir -p "$as_dir"'
5819 else
5820 test -d ./-p && rmdir ./-p
5821 as_mkdir_p=false
5825 # as_fn_executable_p FILE
5826 # -----------------------
5827 # Test if FILE is an executable regular file.
5828 as_fn_executable_p ()
5830 test -f "$1" && test -x "$1"
5831 } # as_fn_executable_p
5832 as_test_x='test -x'
5833 as_executable_p=as_fn_executable_p
5835 # Sed expression to map a string onto a valid CPP name.
5836 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5838 # Sed expression to map a string onto a valid variable name.
5839 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5842 exec 6>&1
5843 ## ----------------------------------- ##
5844 ## Main body of $CONFIG_STATUS script. ##
5845 ## ----------------------------------- ##
5846 _ASEOF
5847 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5850 # Save the log message, to keep $0 and so on meaningful, and to
5851 # report actual input values of CONFIG_FILES etc. instead of their
5852 # values after options handling.
5853 ac_log="
5854 This file was extended by luajit native $as_me 2.1.0-beta1, which was
5855 generated by GNU Autoconf 2.69. Invocation command line was
5857 CONFIG_FILES = $CONFIG_FILES
5858 CONFIG_HEADERS = $CONFIG_HEADERS
5859 CONFIG_LINKS = $CONFIG_LINKS
5860 CONFIG_COMMANDS = $CONFIG_COMMANDS
5861 $ $0 $@
5863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5866 _ACEOF
5868 case $ac_config_files in *"
5869 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5870 esac
5872 case $ac_config_headers in *"
5873 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5874 esac
5877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5878 # Files that config.status was made for.
5879 config_files="$ac_config_files"
5880 config_headers="$ac_config_headers"
5881 config_commands="$ac_config_commands"
5883 _ACEOF
5885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5886 ac_cs_usage="\
5887 \`$as_me' instantiates files and other configuration actions
5888 from templates according to the current configuration. Unless the files
5889 and actions are specified as TAGs, all are instantiated by default.
5891 Usage: $0 [OPTION]... [TAG]...
5893 -h, --help print this help, then exit
5894 -V, --version print version number and configuration settings, then exit
5895 --config print configuration, then exit
5896 -q, --quiet, --silent
5897 do not print progress messages
5898 -d, --debug don't remove temporary files
5899 --recheck update $as_me by reconfiguring in the same conditions
5900 --file=FILE[:TEMPLATE]
5901 instantiate the configuration file FILE
5902 --header=FILE[:TEMPLATE]
5903 instantiate the configuration header FILE
5905 Configuration files:
5906 $config_files
5908 Configuration headers:
5909 $config_headers
5911 Configuration commands:
5912 $config_commands
5914 Report bugs to <tex-k@tug.org>."
5916 _ACEOF
5917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5918 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5919 ac_cs_version="\\
5920 luajit native config.status 2.1.0-beta1
5921 configured by $0, generated by GNU Autoconf 2.69,
5922 with options \\"\$ac_cs_config\\"
5924 Copyright (C) 2012 Free Software Foundation, Inc.
5925 This config.status script is free software; the Free Software Foundation
5926 gives unlimited permission to copy, distribute and modify it."
5928 ac_pwd='$ac_pwd'
5929 srcdir='$srcdir'
5930 INSTALL='$INSTALL'
5931 MKDIR_P='$MKDIR_P'
5932 AWK='$AWK'
5933 test -n "\$AWK" || AWK=awk
5934 _ACEOF
5936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5937 # The default lists apply if the user does not specify any file.
5938 ac_need_defaults=:
5939 while test $# != 0
5941 case $1 in
5942 --*=?*)
5943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5945 ac_shift=:
5947 --*=)
5948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5949 ac_optarg=
5950 ac_shift=:
5953 ac_option=$1
5954 ac_optarg=$2
5955 ac_shift=shift
5957 esac
5959 case $ac_option in
5960 # Handling of the options.
5961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5962 ac_cs_recheck=: ;;
5963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5964 $as_echo "$ac_cs_version"; exit ;;
5965 --config | --confi | --conf | --con | --co | --c )
5966 $as_echo "$ac_cs_config"; exit ;;
5967 --debug | --debu | --deb | --de | --d | -d )
5968 debug=: ;;
5969 --file | --fil | --fi | --f )
5970 $ac_shift
5971 case $ac_optarg in
5972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5973 '') as_fn_error $? "missing file argument" ;;
5974 esac
5975 as_fn_append CONFIG_FILES " '$ac_optarg'"
5976 ac_need_defaults=false;;
5977 --header | --heade | --head | --hea )
5978 $ac_shift
5979 case $ac_optarg in
5980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5981 esac
5982 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5983 ac_need_defaults=false;;
5984 --he | --h)
5985 # Conflict between --help and --header
5986 as_fn_error $? "ambiguous option: \`$1'
5987 Try \`$0 --help' for more information.";;
5988 --help | --hel | -h )
5989 $as_echo "$ac_cs_usage"; exit ;;
5990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5991 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5992 ac_cs_silent=: ;;
5994 # This is an error.
5995 -*) as_fn_error $? "unrecognized option: \`$1'
5996 Try \`$0 --help' for more information." ;;
5998 *) as_fn_append ac_config_targets " $1"
5999 ac_need_defaults=false ;;
6001 esac
6002 shift
6003 done
6005 ac_configure_extra_args=
6007 if $ac_cs_silent; then
6008 exec 6>/dev/null
6009 ac_configure_extra_args="$ac_configure_extra_args --silent"
6012 _ACEOF
6013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6014 if \$ac_cs_recheck; then
6015 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6016 shift
6017 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6018 CONFIG_SHELL='$SHELL'
6019 export CONFIG_SHELL
6020 exec "\$@"
6023 _ACEOF
6024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6025 exec 5>>config.log
6027 echo
6028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6029 ## Running $as_me. ##
6030 _ASBOX
6031 $as_echo "$ac_log"
6032 } >&5
6034 _ACEOF
6035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6037 # INIT-COMMANDS
6039 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6041 _ACEOF
6043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6045 # Handling of arguments.
6046 for ac_config_target in $ac_config_targets
6048 case $ac_config_target in
6049 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6050 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6051 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6053 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6054 esac
6055 done
6058 # If the user did not use the arguments to specify the items to instantiate,
6059 # then the envvar interface is used. Set only those that are not.
6060 # We use the long form for the default assignment because of an extremely
6061 # bizarre bug on SunOS 4.1.3.
6062 if $ac_need_defaults; then
6063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6068 # Have a temporary directory for convenience. Make it in the build tree
6069 # simply because there is no reason against having it here, and in addition,
6070 # creating and moving files from /tmp can sometimes cause problems.
6071 # Hook for its removal unless debugging.
6072 # Note that there is a small window in which the directory will not be cleaned:
6073 # after its creation but before its name has been assigned to `$tmp'.
6074 $debug ||
6076 tmp= ac_tmp=
6077 trap 'exit_status=$?
6078 : "${ac_tmp:=$tmp}"
6079 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6081 trap 'as_fn_exit 1' 1 2 13 15
6083 # Create a (secure) tmp directory for tmp files.
6086 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6087 test -d "$tmp"
6088 } ||
6090 tmp=./conf$$-$RANDOM
6091 (umask 077 && mkdir "$tmp")
6092 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6093 ac_tmp=$tmp
6095 # Set up the scripts for CONFIG_FILES section.
6096 # No need to generate them if there are no CONFIG_FILES.
6097 # This happens for instance with `./config.status config.h'.
6098 if test -n "$CONFIG_FILES"; then
6101 ac_cr=`echo X | tr X '\015'`
6102 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6103 # But we know of no other shell where ac_cr would be empty at this
6104 # point, so we can use a bashism as a fallback.
6105 if test "x$ac_cr" = x; then
6106 eval ac_cr=\$\'\\r\'
6108 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6109 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6110 ac_cs_awk_cr='\\r'
6111 else
6112 ac_cs_awk_cr=$ac_cr
6115 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6116 _ACEOF
6120 echo "cat >conf$$subs.awk <<_ACEOF" &&
6121 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6122 echo "_ACEOF"
6123 } >conf$$subs.sh ||
6124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6125 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6126 ac_delim='%!_!# '
6127 for ac_last_try in false false false false false :; do
6128 . ./conf$$subs.sh ||
6129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6131 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6132 if test $ac_delim_n = $ac_delim_num; then
6133 break
6134 elif $ac_last_try; then
6135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6136 else
6137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6139 done
6140 rm -f conf$$subs.sh
6142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6143 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6144 _ACEOF
6145 sed -n '
6147 s/^/S["/; s/!.*/"]=/
6150 s/^[^!]*!//
6151 :repl
6152 t repl
6153 s/'"$ac_delim"'$//
6154 t delim
6157 s/\(.\{148\}\)..*/\1/
6158 t more1
6159 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6162 b repl
6163 :more1
6164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6167 s/.\{148\}//
6168 t nl
6169 :delim
6171 s/\(.\{148\}\)..*/\1/
6172 t more2
6173 s/["\\]/\\&/g; s/^/"/; s/$/"/
6176 :more2
6177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6180 s/.\{148\}//
6181 t delim
6182 ' <conf$$subs.awk | sed '
6183 /^[^""]/{
6185 s/\n//
6187 ' >>$CONFIG_STATUS || ac_write_fail=1
6188 rm -f conf$$subs.awk
6189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6190 _ACAWK
6191 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6192 for (key in S) S_is_set[key] = 1
6193 FS = "\a"
6197 line = $ 0
6198 nfields = split(line, field, "@")
6199 substed = 0
6200 len = length(field[1])
6201 for (i = 2; i < nfields; i++) {
6202 key = field[i]
6203 keylen = length(key)
6204 if (S_is_set[key]) {
6205 value = S[key]
6206 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6207 len += length(value) + length(field[++i])
6208 substed = 1
6209 } else
6210 len += 1 + keylen
6213 print line
6216 _ACAWK
6217 _ACEOF
6218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6219 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6220 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6221 else
6223 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6224 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6225 _ACEOF
6227 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6228 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6229 # trailing colons and then remove the whole line if VPATH becomes empty
6230 # (actually we leave an empty line to preserve line numbers).
6231 if test "x$srcdir" = x.; then
6232 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6234 s///
6235 s/^/:/
6236 s/[ ]*$/:/
6237 s/:\$(srcdir):/:/g
6238 s/:\${srcdir}:/:/g
6239 s/:@srcdir@:/:/g
6240 s/^:*//
6241 s/:*$//
6243 s/\(=[ ]*\).*/\1/
6245 s/\n//
6246 s/^[^=]*=[ ]*$//
6250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6251 fi # test -n "$CONFIG_FILES"
6253 # Set up the scripts for CONFIG_HEADERS section.
6254 # No need to generate them if there are no CONFIG_HEADERS.
6255 # This happens for instance with `./config.status Makefile'.
6256 if test -n "$CONFIG_HEADERS"; then
6257 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6258 BEGIN {
6259 _ACEOF
6261 # Transform confdefs.h into an awk script `defines.awk', embedded as
6262 # here-document in config.status, that substitutes the proper values into
6263 # config.h.in to produce config.h.
6265 # Create a delimiter string that does not exist in confdefs.h, to ease
6266 # handling of long lines.
6267 ac_delim='%!_!# '
6268 for ac_last_try in false false :; do
6269 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6270 if test -z "$ac_tt"; then
6271 break
6272 elif $ac_last_try; then
6273 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6274 else
6275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6277 done
6279 # For the awk script, D is an array of macro values keyed by name,
6280 # likewise P contains macro parameters if any. Preserve backslash
6281 # newline sequences.
6283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6284 sed -n '
6285 s/.\{148\}/&'"$ac_delim"'/g
6286 t rset
6287 :rset
6288 s/^[ ]*#[ ]*define[ ][ ]*/ /
6289 t def
6291 :def
6292 s/\\$//
6293 t bsnl
6294 s/["\\]/\\&/g
6295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6296 D["\1"]=" \3"/p
6297 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6299 :bsnl
6300 s/["\\]/\\&/g
6301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6302 D["\1"]=" \3\\\\\\n"\\/p
6303 t cont
6304 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6305 t cont
6307 :cont
6309 s/.\{148\}/&'"$ac_delim"'/g
6310 t clear
6311 :clear
6312 s/\\$//
6313 t bsnlc
6314 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6316 :bsnlc
6317 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6318 b cont
6319 ' <confdefs.h | sed '
6320 s/'"$ac_delim"'/"\\\
6321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6324 for (key in D) D_is_set[key] = 1
6325 FS = "\a"
6327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6328 line = \$ 0
6329 split(line, arg, " ")
6330 if (arg[1] == "#") {
6331 defundef = arg[2]
6332 mac1 = arg[3]
6333 } else {
6334 defundef = substr(arg[1], 2)
6335 mac1 = arg[2]
6337 split(mac1, mac2, "(") #)
6338 macro = mac2[1]
6339 prefix = substr(line, 1, index(line, defundef) - 1)
6340 if (D_is_set[macro]) {
6341 # Preserve the white space surrounding the "#".
6342 print prefix "define", macro P[macro] D[macro]
6343 next
6344 } else {
6345 # Replace #undef with comments. This is necessary, for example,
6346 # in the case of _POSIX_SOURCE, which is predefined and required
6347 # on some systems where configure will not decide to define it.
6348 if (defundef == "undef") {
6349 print "/*", prefix defundef, macro, "*/"
6350 next
6354 { print }
6355 _ACAWK
6356 _ACEOF
6357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6358 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6359 fi # test -n "$CONFIG_HEADERS"
6362 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6363 shift
6364 for ac_tag
6366 case $ac_tag in
6367 :[FHLC]) ac_mode=$ac_tag; continue;;
6368 esac
6369 case $ac_mode$ac_tag in
6370 :[FHL]*:*);;
6371 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6372 :[FH]-) ac_tag=-:-;;
6373 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6374 esac
6375 ac_save_IFS=$IFS
6376 IFS=:
6377 set x $ac_tag
6378 IFS=$ac_save_IFS
6379 shift
6380 ac_file=$1
6381 shift
6383 case $ac_mode in
6384 :L) ac_source=$1;;
6385 :[FH])
6386 ac_file_inputs=
6387 for ac_f
6389 case $ac_f in
6390 -) ac_f="$ac_tmp/stdin";;
6391 *) # Look for the file first in the build tree, then in the source tree
6392 # (if the path is not absolute). The absolute path cannot be DOS-style,
6393 # because $ac_f cannot contain `:'.
6394 test -f "$ac_f" ||
6395 case $ac_f in
6396 [\\/$]*) false;;
6397 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6398 esac ||
6399 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6400 esac
6401 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6402 as_fn_append ac_file_inputs " '$ac_f'"
6403 done
6405 # Let's still pretend it is `configure' which instantiates (i.e., don't
6406 # use $as_me), people would be surprised to read:
6407 # /* config.h. Generated by config.status. */
6408 configure_input='Generated from '`
6409 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6410 `' by configure.'
6411 if test x"$ac_file" != x-; then
6412 configure_input="$ac_file. $configure_input"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6414 $as_echo "$as_me: creating $ac_file" >&6;}
6416 # Neutralize special characters interpreted by sed in replacement strings.
6417 case $configure_input in #(
6418 *\&* | *\|* | *\\* )
6419 ac_sed_conf_input=`$as_echo "$configure_input" |
6420 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6421 *) ac_sed_conf_input=$configure_input;;
6422 esac
6424 case $ac_tag in
6425 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6427 esac
6429 esac
6431 ac_dir=`$as_dirname -- "$ac_file" ||
6432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6433 X"$ac_file" : 'X\(//\)[^/]' \| \
6434 X"$ac_file" : 'X\(//\)$' \| \
6435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6436 $as_echo X"$ac_file" |
6437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6438 s//\1/
6441 /^X\(\/\/\)[^/].*/{
6442 s//\1/
6445 /^X\(\/\/\)$/{
6446 s//\1/
6449 /^X\(\/\).*/{
6450 s//\1/
6453 s/.*/./; q'`
6454 as_dir="$ac_dir"; as_fn_mkdir_p
6455 ac_builddir=.
6457 case "$ac_dir" in
6458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6461 # A ".." for each directory in $ac_dir_suffix.
6462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6463 case $ac_top_builddir_sub in
6464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6466 esac ;;
6467 esac
6468 ac_abs_top_builddir=$ac_pwd
6469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6470 # for backward compatibility:
6471 ac_top_builddir=$ac_top_build_prefix
6473 case $srcdir in
6474 .) # We are building in place.
6475 ac_srcdir=.
6476 ac_top_srcdir=$ac_top_builddir_sub
6477 ac_abs_top_srcdir=$ac_pwd ;;
6478 [\\/]* | ?:[\\/]* ) # Absolute name.
6479 ac_srcdir=$srcdir$ac_dir_suffix;
6480 ac_top_srcdir=$srcdir
6481 ac_abs_top_srcdir=$srcdir ;;
6482 *) # Relative name.
6483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6484 ac_top_srcdir=$ac_top_build_prefix$srcdir
6485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6486 esac
6487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6490 case $ac_mode in
6493 # CONFIG_FILE
6496 case $INSTALL in
6497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6498 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6499 esac
6500 ac_MKDIR_P=$MKDIR_P
6501 case $MKDIR_P in
6502 [\\/$]* | ?:[\\/]* ) ;;
6503 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6504 esac
6505 _ACEOF
6507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6508 # If the template does not know about datarootdir, expand it.
6509 # FIXME: This hack should be removed a few years after 2.60.
6510 ac_datarootdir_hack=; ac_datarootdir_seen=
6511 ac_sed_dataroot='
6512 /datarootdir/ {
6516 /@datadir@/p
6517 /@docdir@/p
6518 /@infodir@/p
6519 /@localedir@/p
6520 /@mandir@/p'
6521 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6522 *datarootdir*) ac_datarootdir_seen=yes;;
6523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6525 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6526 _ACEOF
6527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6528 ac_datarootdir_hack='
6529 s&@datadir@&$datadir&g
6530 s&@docdir@&$docdir&g
6531 s&@infodir@&$infodir&g
6532 s&@localedir@&$localedir&g
6533 s&@mandir@&$mandir&g
6534 s&\\\${datarootdir}&$datarootdir&g' ;;
6535 esac
6536 _ACEOF
6538 # Neutralize VPATH when `$srcdir' = `.'.
6539 # Shell code in configure.ac might set extrasub.
6540 # FIXME: do we really want to maintain this feature?
6541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6542 ac_sed_extra="$ac_vpsub
6543 $extrasub
6544 _ACEOF
6545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6548 s|@configure_input@|$ac_sed_conf_input|;t t
6549 s&@top_builddir@&$ac_top_builddir_sub&;t t
6550 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6551 s&@srcdir@&$ac_srcdir&;t t
6552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6553 s&@top_srcdir@&$ac_top_srcdir&;t t
6554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6555 s&@builddir@&$ac_builddir&;t t
6556 s&@abs_builddir@&$ac_abs_builddir&;t t
6557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6558 s&@INSTALL@&$ac_INSTALL&;t t
6559 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6560 $ac_datarootdir_hack
6562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6563 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6565 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6566 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6567 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6568 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6570 which seems to be undefined. Please make sure it is defined" >&5
6571 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6572 which seems to be undefined. Please make sure it is defined" >&2;}
6574 rm -f "$ac_tmp/stdin"
6575 case $ac_file in
6576 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6577 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6578 esac \
6579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6583 # CONFIG_HEADER
6585 if test x"$ac_file" != x-; then
6587 $as_echo "/* $configure_input */" \
6588 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6589 } >"$ac_tmp/config.h" \
6590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6591 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6593 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6594 else
6595 rm -f "$ac_file"
6596 mv "$ac_tmp/config.h" "$ac_file" \
6597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6599 else
6600 $as_echo "/* $configure_input */" \
6601 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6602 || as_fn_error $? "could not create -" "$LINENO" 5
6604 # Compute "$ac_file"'s index in $config_headers.
6605 _am_arg="$ac_file"
6606 _am_stamp_count=1
6607 for _am_header in $config_headers :; do
6608 case $_am_header in
6609 $_am_arg | $_am_arg:* )
6610 break ;;
6612 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6613 esac
6614 done
6615 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6616 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6617 X"$_am_arg" : 'X\(//\)[^/]' \| \
6618 X"$_am_arg" : 'X\(//\)$' \| \
6619 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6620 $as_echo X"$_am_arg" |
6621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6622 s//\1/
6625 /^X\(\/\/\)[^/].*/{
6626 s//\1/
6629 /^X\(\/\/\)$/{
6630 s//\1/
6633 /^X\(\/\).*/{
6634 s//\1/
6637 s/.*/./; q'`/stamp-h$_am_stamp_count
6640 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6641 $as_echo "$as_me: executing $ac_file commands" >&6;}
6643 esac
6646 case $ac_file$ac_mode in
6647 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6648 # Older Autoconf quotes --file arguments for eval, but not when files
6649 # are listed without --file. Let's play safe and only enable the eval
6650 # if we detect the quoting.
6651 case $CONFIG_FILES in
6652 *\'*) eval set x "$CONFIG_FILES" ;;
6653 *) set x $CONFIG_FILES ;;
6654 esac
6655 shift
6656 for mf
6658 # Strip MF so we end up with the name of the file.
6659 mf=`echo "$mf" | sed -e 's/:.*$//'`
6660 # Check whether this is an Automake generated Makefile or not.
6661 # We used to match only the files named 'Makefile.in', but
6662 # some people rename them; so instead we look at the file content.
6663 # Grep'ing the first line is not enough: some people post-process
6664 # each Makefile.in and add a new line on top of each file to say so.
6665 # Grep'ing the whole file is not good either: AIX grep has a line
6666 # limit of 2048, but all sed's we know have understand at least 4000.
6667 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6668 dirpart=`$as_dirname -- "$mf" ||
6669 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6670 X"$mf" : 'X\(//\)[^/]' \| \
6671 X"$mf" : 'X\(//\)$' \| \
6672 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6673 $as_echo X"$mf" |
6674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6675 s//\1/
6678 /^X\(\/\/\)[^/].*/{
6679 s//\1/
6682 /^X\(\/\/\)$/{
6683 s//\1/
6686 /^X\(\/\).*/{
6687 s//\1/
6690 s/.*/./; q'`
6691 else
6692 continue
6694 # Extract the definition of DEPDIR, am__include, and am__quote
6695 # from the Makefile without running 'make'.
6696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6697 test -z "$DEPDIR" && continue
6698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6699 test -z "$am__include" && continue
6700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6701 # Find all dependency output files, they are included files with
6702 # $(DEPDIR) in their names. We invoke sed twice because it is the
6703 # simplest approach to changing $(DEPDIR) to its actual value in the
6704 # expansion.
6705 for file in `sed -n "
6706 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6707 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6708 # Make sure the directory exists.
6709 test -f "$dirpart/$file" && continue
6710 fdir=`$as_dirname -- "$file" ||
6711 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6712 X"$file" : 'X\(//\)[^/]' \| \
6713 X"$file" : 'X\(//\)$' \| \
6714 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6715 $as_echo X"$file" |
6716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6717 s//\1/
6720 /^X\(\/\/\)[^/].*/{
6721 s//\1/
6724 /^X\(\/\/\)$/{
6725 s//\1/
6728 /^X\(\/\).*/{
6729 s//\1/
6732 s/.*/./; q'`
6733 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6734 # echo "creating $dirpart/$file"
6735 echo '# dummy' > "$dirpart/$file"
6736 done
6737 done
6741 esac
6742 done # for ac_tag
6745 as_fn_exit 0
6746 _ACEOF
6747 ac_clean_files=$ac_clean_files_save
6749 test $ac_write_fail = 0 ||
6750 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6753 # configure is writing to config.log, and then calls config.status.
6754 # config.status does its own redirection, appending to config.log.
6755 # Unfortunately, on DOS this fails, as config.log is still kept open
6756 # by configure, so config.status won't be able to write to it; its
6757 # output is simply discarded. So we exec the FD to /dev/null,
6758 # effectively closing config.log, so it can be properly (re)opened and
6759 # appended to by config.status. When coming back to configure, we
6760 # need to make the FD available again.
6761 if test "$no_create" != yes; then
6762 ac_cs_success=:
6763 ac_config_status_args=
6764 test "$silent" = yes &&
6765 ac_config_status_args="$ac_config_status_args --quiet"
6766 exec 5>/dev/null
6767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6768 exec 5>>config.log
6769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6770 # would make configure fail if this is the last instruction.
6771 $ac_cs_success || as_fn_exit 1
6773 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6775 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}