fix permissions
[luatex.git] / source / libs / luajit / configure
blobe3abf0b48a3265401996e97f5346a1dd5cfb8192
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for luajit for TeX Live 2.0.3.
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 for TeX Live'
582 PACKAGE_TARNAME='luajit-for-tex-live'
583 PACKAGE_VERSION='2.0.3'
584 PACKAGE_STRING='luajit for TeX Live 2.0.3'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="LuaJIT-2.0.3/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 enable_option_checking=no
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 subdirs
631 LUAJIT_TREE
632 build_FALSE
633 build_TRUE
634 LJVM_MODE
635 LJHOST
636 PEOBJ_FALSE
637 PEOBJ_TRUE
638 DASM_ARCH
639 LJARCH
640 LUAJIT_LDEXTRA
641 LUAJIT_DEFINES
642 EGREP
643 GREP
645 LN_S
646 RANLIB
647 am__fastdepCCAS_FALSE
648 am__fastdepCCAS_TRUE
649 CCASDEPMODE
650 CCASFLAGS
651 CCAS
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 WARNING_CFLAGS
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 am__nodep
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_silent_rules
750 enable_maintainer_mode
751 enable_dependency_tracking
752 enable_compiler_warnings
753 enable_largefile
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
763 CCAS
764 CCASFLAGS
765 CPP'
766 ac_subdirs_all='native'
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
816 ac_prev=
817 ac_dashdash=
818 for ac_option
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
827 case $ac_option in
828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *=) ac_optarg= ;;
830 *) ac_optarg=yes ;;
831 esac
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229 test "$silent" = yes && exec 6>/dev/null
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1258 /^X\(\/\/\)$/{
1259 s//\1/
1262 /^X\(\/\).*/{
1263 s//\1/
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1271 else
1272 ac_srcdir_defaulted=no
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures luajit for TeX Live 2.0.3 to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root
1355 [DATAROOTDIR/doc/luajit-for-tex-live]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1362 cat <<\_ACEOF
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of luajit for TeX Live 2.0.3:";;
1378 esac
1379 cat <<\_ACEOF
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-silent-rules less verbose build output (undo: "make V=1")
1386 --disable-silent-rules verbose build output (undo: "make V=0")
1387 --enable-maintainer-mode
1388 enable make rules and dependencies not useful (and
1389 sometimes confusing) to the casual installer
1390 --enable-dependency-tracking
1391 do not reject slow dependency extractors
1392 --disable-dependency-tracking
1393 speeds up one-time build
1394 --enable-compiler-warnings=[no|min|yes|max|all]
1395 Turn on compiler warnings [default: yes if
1396 maintainer-mode, min otherwise]
1397 --disable-largefile omit support for large files
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CCAS assembler compiler command (defaults to CC)
1408 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1409 CPP C preprocessor
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1414 Report bugs to <tex-k@tug.org>.
1415 _ACEOF
1416 ac_status=$?
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" ||
1423 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 continue
1425 ac_builddir=.
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1443 case $srcdir in
1444 .) # We are building in place.
1445 ac_srcdir=.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 luajit for TeX Live configure 2.0.3
1478 generated by GNU Autoconf 2.69
1480 Copyright (C) 2012 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484 exit
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext
1498 if { { ac_try="$ac_compile"
1499 case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502 esac
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext; then :
1517 ac_retval=0
1518 else
1519 $as_echo "$as_me: failed program was:" >&5
1520 sed 's/^/| /' conftest.$ac_ext >&5
1522 ac_retval=1
1524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525 as_fn_set_status $ac_retval
1527 } # ac_fn_c_try_compile
1529 # ac_fn_c_try_link LINENO
1530 # -----------------------
1531 # Try to link conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_link ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext conftest$ac_exeext
1536 if { { ac_try="$ac_link"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_link") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest$ac_exeext && {
1555 test "$cross_compiling" = yes ||
1556 test -x conftest$ac_exeext
1557 }; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1566 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1567 # interfere with the next link command; also delete a directory that is
1568 # left behind by Apple's compiler. We do this before executing the actions.
1569 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1573 } # ac_fn_c_try_link
1575 # ac_fn_c_try_run LINENO
1576 # ----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578 # that executables *can* be run.
1579 ac_fn_c_try_run ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593 { { case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_try") 2>&5
1600 ac_status=$?
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; }; }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: program exited with status $ac_status" >&5
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=$ac_status
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_run
1617 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1618 # --------------------------------------------
1619 # Tries to find the compile-time value of EXPR in a program that includes
1620 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1621 # computed
1622 ac_fn_c_compute_int ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if test "$cross_compiling" = yes; then
1626 # Depending upon the size, compute the lo and hi bounds.
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1631 main ()
1633 static int test_array [1 - 2 * !(($2) >= 0)];
1634 test_array [0] = 0;
1635 return test_array [0];
1638 return 0;
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"; then :
1642 ac_lo=0 ac_mid=0
1643 while :; do
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1648 main ()
1650 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1651 test_array [0] = 0;
1652 return test_array [0];
1655 return 0;
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_hi=$ac_mid; break
1660 else
1661 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1662 if test $ac_lo -le $ac_mid; then
1663 ac_lo= ac_hi=
1664 break
1666 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 done
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1675 main ()
1677 static int test_array [1 - 2 * !(($2) < 0)];
1678 test_array [0] = 0;
1679 return test_array [0];
1682 return 0;
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_hi=-1 ac_mid=-1
1687 while :; do
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1692 main ()
1694 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1695 test_array [0] = 0;
1696 return test_array [0];
1699 return 0;
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703 ac_lo=$ac_mid; break
1704 else
1705 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1706 if test $ac_mid -le $ac_hi; then
1707 ac_lo= ac_hi=
1708 break
1710 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 done
1714 else
1715 ac_lo= ac_hi=
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 # Binary search between lo and hi bounds.
1721 while test "x$ac_lo" != "x$ac_hi"; do
1722 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1727 main ()
1729 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1730 test_array [0] = 0;
1731 return test_array [0];
1734 return 0;
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_hi=$ac_mid
1739 else
1740 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 done
1744 case $ac_lo in #((
1745 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1746 '') ac_retval=1 ;;
1747 esac
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1752 static long int longval () { return $2; }
1753 static unsigned long int ulongval () { return $2; }
1754 #include <stdio.h>
1755 #include <stdlib.h>
1757 main ()
1760 FILE *f = fopen ("conftest.val", "w");
1761 if (! f)
1762 return 1;
1763 if (($2) < 0)
1765 long int i = longval ();
1766 if (i != ($2))
1767 return 1;
1768 fprintf (f, "%ld", i);
1770 else
1772 unsigned long int i = ulongval ();
1773 if (i != ($2))
1774 return 1;
1775 fprintf (f, "%lu", i);
1777 /* Do not output a trailing newline, as this causes \r\n confusion
1778 on some platforms. */
1779 return ferror (f) || fclose (f) != 0;
1782 return 0;
1784 _ACEOF
1785 if ac_fn_c_try_run "$LINENO"; then :
1786 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1787 else
1788 ac_retval=1
1790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1791 conftest.$ac_objext conftest.beam conftest.$ac_ext
1792 rm -f conftest.val
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } # ac_fn_c_compute_int
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_cpp ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_c_try_cpp
1837 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists and can be compiled using the include files in
1840 # INCLUDES, setting the cache variable VAR accordingly.
1841 ac_fn_c_check_header_compile ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_header_compile
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1871 It was created by luajit for TeX Live $as_me 2.0.3, which was
1872 generated by GNU Autoconf 2.69. Invocation command line was
1874 $ $0 $@
1876 _ACEOF
1877 exec 5>>config.log
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901 _ASUNAME
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1909 done
1910 IFS=$as_save_IFS
1912 } >&5
1914 cat >&5 <<_ACEOF
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1921 _ACEOF
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1935 for ac_arg
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
1942 *\'*)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 esac
1945 case $ac_pass in
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1951 else
1952 case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1961 -* ) ac_must_keep_next=true ;;
1962 esac
1964 as_fn_append ac_configure_args " '$ac_arg'"
1966 esac
1967 done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1980 echo
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
2003 (set) 2>&1 |
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2006 sed -n \
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 esac |
2014 sort
2016 echo
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021 echo
2022 for ac_var in $ac_subst_vars
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036 echo
2037 for ac_var in $ac_subst_files
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052 echo
2053 cat confdefs.h
2054 echo
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2059 } >&5
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062 exit $exit_status
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 $as_echo "/* confdefs.h */" > confdefs.h
2074 # Predefined preprocessor variables.
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2111 esac
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2115 else
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2126 . "$ac_site_file" \
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2132 done
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140 case $cache_file in
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2143 esac
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148 >$cache_file
2151 # Check that the precious variables saved in the cache have kept the same
2152 # value.
2153 ac_cache_corrupted=false
2154 for ac_var in $ac_precious_vars; do
2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156 eval ac_new_set=\$ac_env_${ac_var}_set
2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158 eval ac_new_val=\$ac_env_${ac_var}_value
2159 case $ac_old_set,$ac_new_set in
2160 set,)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,set)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,);;
2170 if test "x$ac_old_val" != "x$ac_new_val"; then
2171 # differences in whitespace do not lead to failure.
2172 ac_old_val_w=`echo x $ac_old_val`
2173 ac_new_val_w=`echo x $ac_new_val`
2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177 ac_cache_corrupted=:
2178 else
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181 eval $ac_var=\$ac_old_val
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2184 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2186 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2187 fi;;
2188 esac
2189 # Pass precious variables to config.status.
2190 if test "$ac_new_set" = set; then
2191 case $ac_new_val in
2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 *) ac_arg=$ac_var=$ac_new_val ;;
2194 esac
2195 case " $ac_configure_args " in
2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198 esac
2200 done
2201 if $ac_cache_corrupted; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2208 ## -------------------- ##
2209 ## Main body of script. ##
2210 ## -------------------- ##
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221 ac_aux_dir=
2222 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2223 if test -f "$ac_dir/install-sh"; then
2224 ac_aux_dir=$ac_dir
2225 ac_install_sh="$ac_aux_dir/install-sh -c"
2226 break
2227 elif test -f "$ac_dir/install.sh"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/install.sh -c"
2230 break
2231 elif test -f "$ac_dir/shtool"; then
2232 ac_aux_dir=$ac_dir
2233 ac_install_sh="$ac_aux_dir/shtool install -c"
2234 break
2236 done
2237 if test -z "$ac_aux_dir"; then
2238 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2241 # These three variables are undocumented and unsupported,
2242 # and are intended to be withdrawn in a future Autoconf release.
2243 # They can cause serious problems if a builder's source tree is in a directory
2244 # whose full name contains unusual characters.
2245 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2246 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2247 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2252 am__api_version='1.14'
2254 # Find a good install program. We prefer a C program (faster),
2255 # so one script is as good as another. But avoid the broken or
2256 # incompatible versions:
2257 # SysV /etc/install, /usr/sbin/install
2258 # SunOS /usr/etc/install
2259 # IRIX /sbin/install
2260 # AIX /bin/install
2261 # AmigaOS /C/install, which installs bootblocks on floppy discs
2262 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2263 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2264 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2265 # OS/2's system install, which has a completely different semantic
2266 # ./install, which can be erroneously created by make from ./install.sh.
2267 # Reject install programs that cannot install multiple files.
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2269 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2270 if test -z "$INSTALL"; then
2271 if ${ac_cv_path_install+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 # Account for people who put trailing slashes in PATH elements.
2280 case $as_dir/ in #((
2281 ./ | .// | /[cC]/* | \
2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2284 /usr/ucb/* ) ;;
2286 # OSF1 and SCO ODT 3.0 have their own names for install.
2287 # Don't use installbsd from OSF since it installs stuff as root
2288 # by default.
2289 for ac_prog in ginstall scoinst install; do
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2292 if test $ac_prog = install &&
2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294 # AIX install. It has an incompatible calling convention.
2296 elif test $ac_prog = install &&
2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298 # program-specific install script used by HP pwplus--don't use.
2300 else
2301 rm -rf conftest.one conftest.two conftest.dir
2302 echo one > conftest.one
2303 echo two > conftest.two
2304 mkdir conftest.dir
2305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2306 test -s conftest.one && test -s conftest.two &&
2307 test -s conftest.dir/conftest.one &&
2308 test -s conftest.dir/conftest.two
2309 then
2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2311 break 3
2315 done
2316 done
2318 esac
2320 done
2321 IFS=$as_save_IFS
2323 rm -rf conftest.one conftest.two conftest.dir
2326 if test "${ac_cv_path_install+set}" = set; then
2327 INSTALL=$ac_cv_path_install
2328 else
2329 # As a last resort, use the slow shell script. Don't cache a
2330 # value for INSTALL within a source directory, because that will
2331 # break other packages using the cache if that directory is
2332 # removed, or if the value is a relative name.
2333 INSTALL=$ac_install_sh
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2337 $as_echo "$INSTALL" >&6; }
2339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2340 # It thinks the first close brace ends the variable substitution.
2341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2348 $as_echo_n "checking whether build environment is sane... " >&6; }
2349 # Reject unsafe characters in $srcdir or the absolute working directory
2350 # name. Accept space and tab only in the latter.
2351 am_lf='
2353 case `pwd` in
2354 *[\\\"\#\$\&\'\`$am_lf]*)
2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2356 esac
2357 case $srcdir in
2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2359 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2360 esac
2362 # Do 'set' in a subshell so we don't clobber the current shell's
2363 # arguments. Must try -L first in case configure is actually a
2364 # symlink; some systems play weird games with the mod time of symlinks
2365 # (eg FreeBSD returns the mod time of the symlink's containing
2366 # directory).
2367 if (
2368 am_has_slept=no
2369 for am_try in 1 2; do
2370 echo "timestamp, slept: $am_has_slept" > conftest.file
2371 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2372 if test "$*" = "X"; then
2373 # -L didn't work.
2374 set X `ls -t "$srcdir/configure" conftest.file`
2376 if test "$*" != "X $srcdir/configure conftest.file" \
2377 && test "$*" != "X conftest.file $srcdir/configure"; then
2379 # If neither matched, then we have a broken ls. This can happen
2380 # if, for instance, CONFIG_SHELL is bash and it inherits a
2381 # broken ls alias from the environment. This has actually
2382 # happened. Such a system could not be considered "sane".
2383 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2384 alias in your environment" "$LINENO" 5
2386 if test "$2" = conftest.file || test $am_try -eq 2; then
2387 break
2389 # Just in case.
2390 sleep 1
2391 am_has_slept=yes
2392 done
2393 test "$2" = conftest.file
2395 then
2396 # Ok.
2398 else
2399 as_fn_error $? "newly created file is older than distributed files!
2400 Check your system clock" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2403 $as_echo "yes" >&6; }
2404 # If we didn't sleep, we still need to ensure time stamps of config.status and
2405 # generated files are strictly newer.
2406 am_sleep_pid=
2407 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2408 ( sleep 1 ) &
2409 am_sleep_pid=$!
2412 rm -f conftest.file
2414 test "$program_prefix" != NONE &&
2415 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2416 # Use a double $ so make ignores it.
2417 test "$program_suffix" != NONE &&
2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2419 # Double any \ or $.
2420 # By default was `s,x,x', remove it if useless.
2421 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2422 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2424 # expand $ac_aux_dir to an absolute path
2425 am_aux_dir=`cd $ac_aux_dir && pwd`
2427 if test x"${MISSING+set}" != xset; then
2428 case $am_aux_dir in
2429 *\ * | *\ *)
2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2432 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2433 esac
2435 # Use eval to expand $SHELL
2436 if eval "$MISSING --is-lightweight"; then
2437 am_missing_run="$MISSING "
2438 else
2439 am_missing_run=
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2441 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2444 if test x"${install_sh}" != xset; then
2445 case $am_aux_dir in
2446 *\ * | *\ *)
2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2449 install_sh="\${SHELL} $am_aux_dir/install-sh"
2450 esac
2453 # Installed binaries are usually stripped using 'strip' when the user
2454 # run "make install-strip". However 'strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the 'STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_STRIP+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2489 $as_echo "$STRIP" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2497 if test -z "$ac_cv_prog_STRIP"; then
2498 ac_ct_STRIP=$STRIP
2499 # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_STRIP="strip"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2520 done
2521 done
2522 IFS=$as_save_IFS
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2529 $as_echo "$ac_ct_STRIP" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2535 if test "x$ac_ct_STRIP" = x; then
2536 STRIP=":"
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 STRIP=$ac_ct_STRIP
2546 else
2547 STRIP="$ac_cv_prog_STRIP"
2551 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2554 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2555 if test -z "$MKDIR_P"; then
2556 if ${ac_cv_path_mkdir+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_prog in mkdir gmkdir; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568 'mkdir (GNU coreutils) '* | \
2569 'mkdir (coreutils) '* | \
2570 'mkdir (fileutils) '4.1*)
2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572 break 3;;
2573 esac
2574 done
2575 done
2576 done
2577 IFS=$as_save_IFS
2581 test -d ./--version && rmdir ./--version
2582 if test "${ac_cv_path_mkdir+set}" = set; then
2583 MKDIR_P="$ac_cv_path_mkdir -p"
2584 else
2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for MKDIR_P within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
2589 MKDIR_P="$ac_install_sh -d"
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2593 $as_echo "$MKDIR_P" >&6; }
2595 for ac_prog in gawk mawk nawk awk
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_AWK+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$AWK"; then
2605 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_AWK="$ac_prog"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2618 done
2619 done
2620 IFS=$as_save_IFS
2624 AWK=$ac_cv_prog_AWK
2625 if test -n "$AWK"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2627 $as_echo "$AWK" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2634 test -n "$AWK" && break
2635 done
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2638 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2639 set x ${MAKE-make}
2640 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2641 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 cat >conftest.make <<\_ACEOF
2645 SHELL = /bin/sh
2646 all:
2647 @echo '@@@%%%=$(MAKE)=@@@%%%'
2648 _ACEOF
2649 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2650 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2651 *@@@%%%=?*=@@@%%%*)
2652 eval ac_cv_prog_make_${ac_make}_set=yes;;
2654 eval ac_cv_prog_make_${ac_make}_set=no;;
2655 esac
2656 rm -f conftest.make
2658 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660 $as_echo "yes" >&6; }
2661 SET_MAKE=
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2665 SET_MAKE="MAKE=${MAKE-make}"
2668 rm -rf .tst 2>/dev/null
2669 mkdir .tst 2>/dev/null
2670 if test -d .tst; then
2671 am__leading_dot=.
2672 else
2673 am__leading_dot=_
2675 rmdir .tst 2>/dev/null
2677 # Check whether --enable-silent-rules was given.
2678 if test "${enable_silent_rules+set}" = set; then :
2679 enableval=$enable_silent_rules;
2682 case $enable_silent_rules in # (((
2683 yes) AM_DEFAULT_VERBOSITY=0;;
2684 no) AM_DEFAULT_VERBOSITY=1;;
2685 *) AM_DEFAULT_VERBOSITY=1;;
2686 esac
2687 am_make=${MAKE-make}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2689 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2690 if ${am_cv_make_support_nested_variables+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if $as_echo 'TRUE=$(BAR$(V))
2694 BAR0=false
2695 BAR1=true
2697 am__doit:
2698 @$(TRUE)
2699 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2700 am_cv_make_support_nested_variables=yes
2701 else
2702 am_cv_make_support_nested_variables=no
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2706 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2707 if test $am_cv_make_support_nested_variables = yes; then
2708 AM_V='$(V)'
2709 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2710 else
2711 AM_V=$AM_DEFAULT_VERBOSITY
2712 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2714 AM_BACKSLASH='\'
2716 DEPDIR="${am__leading_dot}deps"
2718 ac_config_commands="$ac_config_commands depfiles"
2721 am_make=${MAKE-make}
2722 cat > confinc << 'END'
2723 am__doit:
2724 @echo this is the am__doit target
2725 .PHONY: am__doit
2727 # If we don't find an include directive, just comment out the code.
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2729 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2730 am__include="#"
2731 am__quote=
2732 _am_result=none
2733 # First try GNU make style include.
2734 echo "include confinc" > confmf
2735 # Ignore all kinds of additional output from 'make'.
2736 case `$am_make -s -f confmf 2> /dev/null` in #(
2737 *the\ am__doit\ target*)
2738 am__include=include
2739 am__quote=
2740 _am_result=GNU
2742 esac
2743 # Now try BSD make style include.
2744 if test "$am__include" = "#"; then
2745 echo '.include "confinc"' > confmf
2746 case `$am_make -s -f confmf 2> /dev/null` in #(
2747 *the\ am__doit\ target*)
2748 am__include=.include
2749 am__quote="\""
2750 _am_result=BSD
2752 esac
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2757 $as_echo "$_am_result" >&6; }
2758 rm -f confinc confmf
2760 # Check whether --enable-dependency-tracking was given.
2761 if test "${enable_dependency_tracking+set}" = set; then :
2762 enableval=$enable_dependency_tracking;
2765 if test "x$enable_dependency_tracking" != xno; then
2766 am_depcomp="$ac_aux_dir/depcomp"
2767 AMDEPBACKSLASH='\'
2768 am__nodep='_no'
2770 if test "x$enable_dependency_tracking" != xno; then
2771 AMDEP_TRUE=
2772 AMDEP_FALSE='#'
2773 else
2774 AMDEP_TRUE='#'
2775 AMDEP_FALSE=
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_CC+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2808 IFS=$as_save_IFS
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2823 if test -z "$ac_cv_prog_CC"; then
2824 ac_ct_CC=$CC
2825 # Extract the first word of "gcc", so it can be a program name with args.
2826 set dummy gcc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_CC="gcc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853 if test -n "$ac_ct_CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2855 $as_echo "$ac_ct_CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2861 if test "x$ac_ct_CC" = x; then
2862 CC=""
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865 yes:)
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868 ac_tool_warned=yes ;;
2869 esac
2870 CC=$ac_ct_CC
2872 else
2873 CC="$ac_cv_prog_CC"
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}cc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_CC+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC="${ac_tool_prefix}cc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2917 if test -z "$CC"; then
2918 # Extract the first word of "cc", so it can be a program name with args.
2919 set dummy cc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 ac_prog_rejected=no
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2937 ac_prog_rejected=yes
2938 continue
2940 ac_cv_prog_CC="cc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2948 if test $ac_prog_rejected = yes; then
2949 # We found a bogon in the path, so make sure we never use it.
2950 set dummy $ac_cv_prog_CC
2951 shift
2952 if test $# != 0; then
2953 # We chose a different compiler from the bogus one.
2954 # However, it has the same basename, so the bogon will be chosen
2955 # first if we set CC to just the basename; use the full file name.
2956 shift
2957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 for ac_prog in cl.exe
2977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3014 test -n "$CC" && break
3015 done
3017 if test -z "$CC"; then
3018 ac_ct_CC=$CC
3019 for ac_prog in cl.exe
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy $ac_prog; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_CC="$ac_prog"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3042 done
3043 done
3044 IFS=$as_save_IFS
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3058 test -n "$ac_ct_CC" && break
3059 done
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3077 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 as_fn_error $? "no acceptable C compiler found in \$PATH
3080 See \`config.log' for more details" "$LINENO" 5; }
3082 # Provide some information about the compiler.
3083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3084 set X $ac_compile
3085 ac_compiler=$2
3086 for ac_option in --version -v -V -qversion; do
3087 { { ac_try="$ac_compiler $ac_option >&5"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3095 ac_status=$?
3096 if test -s conftest.err; then
3097 sed '10a\
3098 ... rest of stderr output deleted ...
3099 10q' conftest.err >conftest.er1
3100 cat conftest.er1 >&5
3102 rm -f conftest.er1 conftest.err
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }
3105 done
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3111 main ()
3115 return 0;
3117 _ACEOF
3118 ac_clean_files_save=$ac_clean_files
3119 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3120 # Try to create an executable without -o first, disregard a.out.
3121 # It will help us diagnose broken compilers, and finding out an intuition
3122 # of exeext.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3124 $as_echo_n "checking whether the C compiler works... " >&6; }
3125 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3127 # The possible output files:
3128 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3130 ac_rmfiles=
3131 for ac_file in $ac_files
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3135 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3136 esac
3137 done
3138 rm -f $ac_rmfiles
3140 if { { ac_try="$ac_link_default"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_link_default") 2>&5
3148 ac_status=$?
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }; then :
3151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3152 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3154 # so that the user can short-circuit this test for compilers unknown to
3155 # Autoconf.
3156 for ac_file in $ac_files ''
3158 test -f "$ac_file" || continue
3159 case $ac_file in
3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3162 [ab].out )
3163 # We found the default executable, but exeext='' is most
3164 # certainly right.
3165 break;;
3166 *.* )
3167 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3168 then :; else
3169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 # We set ac_cv_exeext here because the later test for it is not
3172 # safe: cross compilers may not add the suffix if given an `-o'
3173 # argument, so we may need to know it at that point already.
3174 # Even if this section looks crufty: it has the advantage of
3175 # actually working.
3176 break;;
3178 break;;
3179 esac
3180 done
3181 test "$ac_cv_exeext" = no && ac_cv_exeext=
3183 else
3184 ac_file=''
3186 if test -z "$ac_file"; then :
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error 77 "C compiler cannot create executables
3195 See \`config.log' for more details" "$LINENO" 5; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198 $as_echo "yes" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3201 $as_echo_n "checking for C compiler default output file name... " >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3203 $as_echo "$ac_file" >&6; }
3204 ac_exeext=$ac_cv_exeext
3206 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3207 ac_clean_files=$ac_clean_files_save
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3209 $as_echo_n "checking for suffix of executables... " >&6; }
3210 if { { ac_try="$ac_link"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3223 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 # `rm'.
3225 for ac_file in conftest.exe conftest conftest.*; do
3226 test -f "$ac_file" || continue
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 break;;
3231 * ) break;;
3232 esac
3233 done
3234 else
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details" "$LINENO" 5; }
3240 rm -f conftest conftest$ac_cv_exeext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3242 $as_echo "$ac_cv_exeext" >&6; }
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3246 ac_exeext=$EXEEXT
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249 #include <stdio.h>
3251 main ()
3253 FILE *f = fopen ("conftest.out", "w");
3254 return ferror (f) || fclose (f) != 0;
3257 return 0;
3259 _ACEOF
3260 ac_clean_files="$ac_clean_files conftest.out"
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3264 $as_echo_n "checking whether we are cross compiling... " >&6; }
3265 if test "$cross_compiling" != yes; then
3266 { { ac_try="$ac_link"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 if { ac_try='./conftest$ac_cv_exeext'
3278 { { case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_try") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; }; then
3288 cross_compiling=no
3289 else
3290 if test "$cross_compiling" = maybe; then
3291 cross_compiling=yes
3292 else
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "cannot run C compiled programs.
3296 If you meant to cross compile, use \`--host'.
3297 See \`config.log' for more details" "$LINENO" 5; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3302 $as_echo "$cross_compiling" >&6; }
3304 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3307 $as_echo_n "checking for suffix of object files... " >&6; }
3308 if ${ac_cv_objext+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3315 main ()
3319 return 0;
3321 _ACEOF
3322 rm -f conftest.o conftest.obj
3323 if { { ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compile") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 for ac_file in conftest.o conftest.obj conftest.*; do
3335 test -f "$ac_file" || continue;
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3339 break;;
3340 esac
3341 done
3342 else
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "cannot compute suffix of object files: cannot compile
3349 See \`config.log' for more details" "$LINENO" 5; }
3351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3354 $as_echo "$ac_cv_objext" >&6; }
3355 OBJEXT=$ac_cv_objext
3356 ac_objext=$OBJEXT
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3359 if ${ac_cv_c_compiler_gnu+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3366 main ()
3368 #ifndef __GNUC__
3369 choke me
3370 #endif
3373 return 0;
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_compiler_gnu=yes
3378 else
3379 ac_compiler_gnu=no
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3386 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3387 if test $ac_compiler_gnu = yes; then
3388 GCC=yes
3389 else
3390 GCC=
3392 ac_test_CFLAGS=${CFLAGS+set}
3393 ac_save_CFLAGS=$CFLAGS
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3395 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3396 if ${ac_cv_prog_cc_g+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3401 ac_cv_prog_cc_g=no
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3407 main ()
3411 return 0;
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_g=yes
3416 else
3417 CFLAGS=""
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3422 main ()
3426 return 0;
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3431 else
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3433 CFLAGS="-g"
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3438 main ()
3442 return 0;
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_prog_cc_g=yes
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3456 $as_echo "$ac_cv_prog_cc_g" >&6; }
3457 if test "$ac_test_CFLAGS" = set; then
3458 CFLAGS=$ac_save_CFLAGS
3459 elif test $ac_cv_prog_cc_g = yes; then
3460 if test "$GCC" = yes; then
3461 CFLAGS="-g -O2"
3462 else
3463 CFLAGS="-g"
3465 else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3473 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3474 if ${ac_cv_prog_cc_c89+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_cv_prog_cc_c89=no
3478 ac_save_CC=$CC
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <stdarg.h>
3482 #include <stdio.h>
3483 struct stat;
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3488 char **p;
3489 int i;
3491 return p[i];
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3495 char *s;
3496 va_list v;
3497 va_start (v,p);
3498 s = g (p, va_arg (v,int));
3499 va_end (v);
3500 return s;
3503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
3506 as 'x'. The following induces an error, until -std is added to get
3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
3509 that's true only with -std. */
3510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513 inside strings and character constants. */
3514 #define FOO(x) 'x'
3515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517 int test (int i, double x);
3518 struct s1 {int (*f) (int a);};
3519 struct s2 {int (*f) (double a);};
3520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521 int argc;
3522 char **argv;
3524 main ()
3526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 return 0;
3530 _ACEOF
3531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_c89=$ac_arg
3538 rm -f core conftest.err conftest.$ac_objext
3539 test "x$ac_cv_prog_cc_c89" != "xno" && break
3540 done
3541 rm -f conftest.$ac_ext
3542 CC=$ac_save_CC
3545 # AC_CACHE_VAL
3546 case "x$ac_cv_prog_cc_c89" in
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 $as_echo "none needed" >&6; } ;;
3550 xno)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 $as_echo "unsupported" >&6; } ;;
3554 CC="$CC $ac_cv_prog_cc_c89"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557 esac
3558 if test "x$ac_cv_prog_cc_c89" != xno; then :
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3574 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3575 if ${am_cv_prog_cc_c_o+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3582 main ()
3586 return 0;
3588 _ACEOF
3589 # Make sure it works both with $CC and with simple cc.
3590 # Following AC_PROG_CC_C_O, we do the test twice because some
3591 # compilers refuse to overwrite an existing .o file with -o,
3592 # though they will create one.
3593 am_cv_prog_cc_c_o=yes
3594 for am_i in 1 2; do
3595 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3596 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } \
3600 && test -f conftest2.$ac_objext; then
3601 : OK
3602 else
3603 am_cv_prog_cc_c_o=no
3604 break
3606 done
3607 rm -f core conftest*
3608 unset am_i
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3611 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3612 if test "$am_cv_prog_cc_c_o" != yes; then
3613 # Losing compiler, so override with the script.
3614 # FIXME: It is wrong to rewrite CC.
3615 # But if we don't then we get into trouble of one sort or another.
3616 # A longer-term fix would be to have automake use am__CC in this case,
3617 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3618 CC="$am_aux_dir/compile $CC"
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 depcc="$CC" am_compiler_list=
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3630 $as_echo_n "checking dependency style of $depcc... " >&6; }
3631 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3635 # We make a subdir and do the tests there. Otherwise we can end up
3636 # making bogus files that we don't know about and never remove. For
3637 # instance it was reported that on HP-UX the gcc test will end up
3638 # making a dummy file named 'D' -- because '-MD' means "put the output
3639 # in D".
3640 rm -rf conftest.dir
3641 mkdir conftest.dir
3642 # Copy depcomp to subdir because otherwise we won't find it if we're
3643 # using a relative directory.
3644 cp "$am_depcomp" conftest.dir
3645 cd conftest.dir
3646 # We will build objects and dependencies in a subdirectory because
3647 # it helps to detect inapplicable dependency modes. For instance
3648 # both Tru64's cc and ICC support -MD to output dependencies as a
3649 # side effect of compilation, but ICC will put the dependencies in
3650 # the current directory while Tru64 will put them in the object
3651 # directory.
3652 mkdir sub
3654 am_cv_CC_dependencies_compiler_type=none
3655 if test "$am_compiler_list" = ""; then
3656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3658 am__universal=false
3659 case " $depcc " in #(
3660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3661 esac
3663 for depmode in $am_compiler_list; do
3664 # Setup a source with many dependencies, because some compilers
3665 # like to wrap large dependency lists on column 80 (with \), and
3666 # we should not choose a depcomp mode which is confused by this.
3668 # We need to recreate these files for each test, as the compiler may
3669 # overwrite some of them when testing with obscure command lines.
3670 # This happens at least with the AIX C compiler.
3671 : > sub/conftest.c
3672 for i in 1 2 3 4 5 6; do
3673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3674 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3675 # Solaris 10 /bin/sh.
3676 echo '/* dummy */' > sub/conftst$i.h
3677 done
3678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3680 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3681 # mode. It turns out that the SunPro C++ compiler does not properly
3682 # handle '-M -o', and we need to detect this. Also, some Intel
3683 # versions had trouble with output in subdirs.
3684 am__obj=sub/conftest.${OBJEXT-o}
3685 am__minus_obj="-o $am__obj"
3686 case $depmode in
3687 gcc)
3688 # This depmode causes a compiler race in universal mode.
3689 test "$am__universal" = false || continue
3691 nosideeffect)
3692 # After this tag, mechanisms are not by side-effect, so they'll
3693 # only be used when explicitly requested.
3694 if test "x$enable_dependency_tracking" = xyes; then
3695 continue
3696 else
3697 break
3700 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3701 # This compiler won't grok '-c -o', but also, the minuso test has
3702 # not run yet. These depmodes are late enough in the game, and
3703 # so weak that their functioning should not be impacted.
3704 am__obj=conftest.${OBJEXT-o}
3705 am__minus_obj=
3707 none) break ;;
3708 esac
3709 if depmode=$depmode \
3710 source=sub/conftest.c object=$am__obj \
3711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3713 >/dev/null 2>conftest.err &&
3714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718 # icc doesn't choke on unknown options, it will just issue warnings
3719 # or remarks (even with -Werror). So we grep stderr for any message
3720 # that says an option was ignored or not supported.
3721 # When given -MP, icc 7.0 and 7.1 complain thusly:
3722 # icc: Command line warning: ignoring option '-M'; no argument required
3723 # The diagnosis changed in icc 8.0:
3724 # icc: Command line remark: option '-MP' not supported
3725 if (grep 'ignoring option' conftest.err ||
3726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727 am_cv_CC_dependencies_compiler_type=$depmode
3728 break
3731 done
3733 cd ..
3734 rm -rf conftest.dir
3735 else
3736 am_cv_CC_dependencies_compiler_type=none
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3745 test "x$enable_dependency_tracking" != xno \
3746 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3747 am__fastdepCC_TRUE=
3748 am__fastdepCC_FALSE='#'
3749 else
3750 am__fastdepCC_TRUE='#'
3751 am__fastdepCC_FALSE=
3756 # Check whether --enable-compiler-warnings was given.
3757 if test "${enable_compiler_warnings+set}" = set; then :
3758 enableval=$enable_compiler_warnings;
3760 case $enable_compiler_warnings in #(
3761 no | min | yes | max | all) :
3762 ;; #(
3763 *) :
3764 if test "x$enable_maintainer_mode" = xyes; then :
3765 enable_compiler_warnings=yes
3766 else
3767 enable_compiler_warnings=min
3768 fi ;;
3769 esac
3772 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3774 # is not polluted with repeated "-I."
3775 am__isrc=' -I$(srcdir)'
3776 # test to see if srcdir already configured
3777 if test -f $srcdir/config.status; then
3778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3782 # test whether we have cygpath
3783 if test -z "$CYGPATH_W"; then
3784 if (cygpath --version) >/dev/null 2>/dev/null; then
3785 CYGPATH_W='cygpath -w'
3786 else
3787 CYGPATH_W=echo
3792 # Define the identity of the package.
3793 PACKAGE='luajit-for-tex-live'
3794 VERSION='2.0.3'
3797 cat >>confdefs.h <<_ACEOF
3798 #define PACKAGE "$PACKAGE"
3799 _ACEOF
3802 cat >>confdefs.h <<_ACEOF
3803 #define VERSION "$VERSION"
3804 _ACEOF
3806 # Some tools Automake needs.
3808 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3811 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3814 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3817 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3820 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3822 # For better backward compatibility. To be removed once Automake 1.9.x
3823 # dies out for good. For more background, see:
3824 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3825 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3826 mkdir_p='$(MKDIR_P)'
3828 # We need awk for the "check" target. The system "awk" is bad on
3829 # some platforms.
3830 # Always define AMTAR for backward compatibility. Yes, it's still used
3831 # in the wild :-( We should find a proper way to deprecate it ...
3832 AMTAR='$${TAR-tar}'
3835 # We'll loop over all known methods to create a tar archive until one works.
3836 _am_tools='gnutar pax cpio none'
3838 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3845 # POSIX will say in a future version that running "rm -f" with no argument
3846 # is OK; and we want to be able to make that assumption in our Makefile
3847 # recipes. So use an aggressive probe to check that the usage we want is
3848 # actually supported "in the wild" to an acceptable degree.
3849 # See automake bug#10828.
3850 # To make any issue more visible, cause the running configure to be aborted
3851 # by default if the 'rm' program in use doesn't match our expectations; the
3852 # user can still override this though.
3853 if rm -f && rm -fr && rm -rf; then : OK; else
3854 cat >&2 <<'END'
3855 Oops!
3857 Your 'rm' program seems unable to run without file operands specified
3858 on the command line, even when the '-f' option is present. This is contrary
3859 to the behaviour of most rm programs out there, and not conforming with
3860 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3862 Please tell bug-automake@gnu.org about your system, including the value
3863 of your $PATH and any error possibly output before this message. This
3864 can help us improve future automake versions.
3867 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3868 echo 'Configuration will proceed anyway, since you have set the' >&2
3869 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3870 echo >&2
3871 else
3872 cat >&2 <<'END'
3873 Aborting the configuration process, to ensure you take notice of the issue.
3875 You can download and install GNU coreutils to get an 'rm' implementation
3876 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3878 If you want to complete the configuration process using your problematic
3879 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3880 to "yes", and re-run configure.
3883 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3888 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3889 # Check whether --enable-maintainer-mode was given.
3890 if test "${enable_maintainer_mode+set}" = set; then :
3891 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3892 else
3893 USE_MAINTAINER_MODE=no
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3897 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3898 if test $USE_MAINTAINER_MODE = yes; then
3899 MAINTAINER_MODE_TRUE=
3900 MAINTAINER_MODE_FALSE='#'
3901 else
3902 MAINTAINER_MODE_TRUE='#'
3903 MAINTAINER_MODE_FALSE=
3906 MAINT=$MAINTAINER_MODE_TRUE
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
3910 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
3911 if ${kb_cv_c_prototypes+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #include <stdarg.h>
3918 main ()
3920 extern void foo(int i,...);
3922 return 0;
3924 _ACEOF
3925 if ac_fn_c_try_link "$LINENO"; then :
3926 kb_cv_c_prototypes=yes
3927 else
3928 kb_cv_c_prototypes=no
3930 rm -f core conftest.err conftest.$ac_objext \
3931 conftest$ac_exeext conftest.$ac_ext
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
3934 $as_echo "$kb_cv_c_prototypes" >&6; }
3935 if test "x$kb_cv_c_prototypes" = xno; then
3936 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
3939 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
3940 if ${kpse_cv_warning_cflags+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test "x$GCC" = xyes; then
3944 kpse_cv_warning_cflags=
3945 if test "x$enable_compiler_warnings" != xno; then
3946 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
3947 case `$CC -dumpversion` in #(
3948 3.4.* | 4.*) :
3949 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
3950 *) :
3952 esac
3953 case `$CC -dumpversion` in #(
3954 3.[234].* | 4.*) :
3955 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
3956 *) :
3958 esac
3959 if test "x$enable_compiler_warnings" != xmin; then
3960 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
3961 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
3962 if test "x$enable_compiler_warnings" != xyes; then
3963 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
3964 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
3965 case `$CC -dumpversion` in #(
3966 3.4.* | 4.*) :
3967 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
3968 *) :
3970 esac
3971 if test "x$enable_compiler_warnings" != xmax; then
3972 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
3977 elif test "x$enable_compiler_warnings" = xno; then
3978 kpse_cv_warning_cflags=
3979 else
3980 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
3984 $as_echo "$kpse_cv_warning_cflags" >&6; }
3985 WARNING_CFLAGS=$kpse_cv_warning_cflags
3994 # Make sure we can run config.sub.
3995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3996 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3999 $as_echo_n "checking build system type... " >&6; }
4000 if ${ac_cv_build+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_build_alias=$build_alias
4004 test "x$ac_build_alias" = x &&
4005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4006 test "x$ac_build_alias" = x &&
4007 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4008 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4009 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4013 $as_echo "$ac_cv_build" >&6; }
4014 case $ac_cv_build in
4015 *-*-*) ;;
4016 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4017 esac
4018 build=$ac_cv_build
4019 ac_save_IFS=$IFS; IFS='-'
4020 set x $ac_cv_build
4021 shift
4022 build_cpu=$1
4023 build_vendor=$2
4024 shift; shift
4025 # Remember, the first character of IFS is used to create $*,
4026 # except with old shells:
4027 build_os=$*
4028 IFS=$ac_save_IFS
4029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4033 $as_echo_n "checking host system type... " >&6; }
4034 if ${ac_cv_host+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test "x$host_alias" = x; then
4038 ac_cv_host=$ac_cv_build
4039 else
4040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4041 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4046 $as_echo "$ac_cv_host" >&6; }
4047 case $ac_cv_host in
4048 *-*-*) ;;
4049 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4050 esac
4051 host=$ac_cv_host
4052 ac_save_IFS=$IFS; IFS='-'
4053 set x $ac_cv_host
4054 shift
4055 host_cpu=$1
4056 host_vendor=$2
4057 shift; shift
4058 # Remember, the first character of IFS is used to create $*,
4059 # except with old shells:
4060 host_os=$*
4061 IFS=$ac_save_IFS
4062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4065 if test "x$host_alias" != x && test "x$build_alias" = x; then :
4066 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
4068 eval kpse_build_alias=\${build_alias-$build}
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_prog_CC+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$CC"; then
4085 ac_cv_prog_CC="$CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4100 IFS=$as_save_IFS
4104 CC=$ac_cv_prog_CC
4105 if test -n "$CC"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 $as_echo "$CC" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$ac_cv_prog_CC"; then
4116 ac_ct_CC=$CC
4117 # Extract the first word of "gcc", so it can be a program name with args.
4118 set dummy gcc; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$ac_ct_CC"; then
4125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_CC="gcc"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4140 IFS=$as_save_IFS
4144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4145 if test -n "$ac_ct_CC"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4147 $as_echo "$ac_ct_CC" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4153 if test "x$ac_ct_CC" = x; then
4154 CC=""
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162 CC=$ac_ct_CC
4164 else
4165 CC="$ac_cv_prog_CC"
4168 if test -z "$CC"; then
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}cc; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CC+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC="$CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_CC="${ac_tool_prefix}cc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 CC=$ac_cv_prog_CC
4198 if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 $as_echo "$CC" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4209 if test -z "$CC"; then
4210 # Extract the first word of "cc", so it can be a program name with args.
4211 set dummy cc; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_CC+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$CC"; then
4218 ac_cv_prog_CC="$CC" # Let the user override the test.
4219 else
4220 ac_prog_rejected=no
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4229 ac_prog_rejected=yes
4230 continue
4232 ac_cv_prog_CC="cc"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4240 if test $ac_prog_rejected = yes; then
4241 # We found a bogon in the path, so make sure we never use it.
4242 set dummy $ac_cv_prog_CC
4243 shift
4244 if test $# != 0; then
4245 # We chose a different compiler from the bogus one.
4246 # However, it has the same basename, so the bogon will be chosen
4247 # first if we set CC to just the basename; use the full file name.
4248 shift
4249 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4254 CC=$ac_cv_prog_CC
4255 if test -n "$CC"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4257 $as_echo "$CC" >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4265 if test -z "$CC"; then
4266 if test -n "$ac_tool_prefix"; then
4267 for ac_prog in cl.exe
4269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if ${ac_cv_prog_CC+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -n "$CC"; then
4277 ac_cv_prog_CC="$CC" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4290 done
4291 done
4292 IFS=$as_save_IFS
4296 CC=$ac_cv_prog_CC
4297 if test -n "$CC"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4299 $as_echo "$CC" >&6; }
4300 else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4306 test -n "$CC" && break
4307 done
4309 if test -z "$CC"; then
4310 ac_ct_CC=$CC
4311 for ac_prog in cl.exe
4313 # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test -n "$ac_ct_CC"; then
4321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_ac_ct_CC="$ac_prog"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4334 done
4335 done
4336 IFS=$as_save_IFS
4340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4341 if test -n "$ac_ct_CC"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4343 $as_echo "$ac_ct_CC" >&6; }
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4350 test -n "$ac_ct_CC" && break
4351 done
4353 if test "x$ac_ct_CC" = x; then
4354 CC=""
4355 else
4356 case $cross_compiling:$ac_tool_warned in
4357 yes:)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4360 ac_tool_warned=yes ;;
4361 esac
4362 CC=$ac_ct_CC
4369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details" "$LINENO" 5; }
4374 # Provide some information about the compiler.
4375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4376 set X $ac_compile
4377 ac_compiler=$2
4378 for ac_option in --version -v -V -qversion; do
4379 { { ac_try="$ac_compiler $ac_option >&5"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4387 ac_status=$?
4388 if test -s conftest.err; then
4389 sed '10a\
4390 ... rest of stderr output deleted ...
4391 10q' conftest.err >conftest.er1
4392 cat conftest.er1 >&5
4394 rm -f conftest.er1 conftest.err
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }
4397 done
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4401 if ${ac_cv_c_compiler_gnu+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4408 main ()
4410 #ifndef __GNUC__
4411 choke me
4412 #endif
4415 return 0;
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 ac_compiler_gnu=yes
4420 else
4421 ac_compiler_gnu=no
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4429 if test $ac_compiler_gnu = yes; then
4430 GCC=yes
4431 else
4432 GCC=
4434 ac_test_CFLAGS=${CFLAGS+set}
4435 ac_save_CFLAGS=$CFLAGS
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4438 if ${ac_cv_prog_cc_g+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 ac_save_c_werror_flag=$ac_c_werror_flag
4442 ac_c_werror_flag=yes
4443 ac_cv_prog_cc_g=no
4444 CFLAGS="-g"
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4449 main ()
4453 return 0;
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_prog_cc_g=yes
4458 else
4459 CFLAGS=""
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4464 main ()
4468 return 0;
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4473 else
4474 ac_c_werror_flag=$ac_save_c_werror_flag
4475 CFLAGS="-g"
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 ac_cv_prog_cc_g=yes
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_c_werror_flag=$ac_save_c_werror_flag
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4498 $as_echo "$ac_cv_prog_cc_g" >&6; }
4499 if test "$ac_test_CFLAGS" = set; then
4500 CFLAGS=$ac_save_CFLAGS
4501 elif test $ac_cv_prog_cc_g = yes; then
4502 if test "$GCC" = yes; then
4503 CFLAGS="-g -O2"
4504 else
4505 CFLAGS="-g"
4507 else
4508 if test "$GCC" = yes; then
4509 CFLAGS="-O2"
4510 else
4511 CFLAGS=
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4516 if ${ac_cv_prog_cc_c89+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 ac_cv_prog_cc_c89=no
4520 ac_save_CC=$CC
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdarg.h>
4524 #include <stdio.h>
4525 struct stat;
4526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4527 struct buf { int x; };
4528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4529 static char *e (p, i)
4530 char **p;
4531 int i;
4533 return p[i];
4535 static char *f (char * (*g) (char **, int), char **p, ...)
4537 char *s;
4538 va_list v;
4539 va_start (v,p);
4540 s = g (p, va_arg (v,int));
4541 va_end (v);
4542 return s;
4545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4546 function prototypes and stuff, but not '\xHH' hex character constants.
4547 These don't provoke an error unfortunately, instead are silently treated
4548 as 'x'. The following induces an error, until -std is added to get
4549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4550 array size at least. It's necessary to write '\x00'==0 to get something
4551 that's true only with -std. */
4552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4555 inside strings and character constants. */
4556 #define FOO(x) 'x'
4557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4559 int test (int i, double x);
4560 struct s1 {int (*f) (int a);};
4561 struct s2 {int (*f) (double a);};
4562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4563 int argc;
4564 char **argv;
4566 main ()
4568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4570 return 0;
4572 _ACEOF
4573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4576 CC="$ac_save_CC $ac_arg"
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_prog_cc_c89=$ac_arg
4580 rm -f core conftest.err conftest.$ac_objext
4581 test "x$ac_cv_prog_cc_c89" != "xno" && break
4582 done
4583 rm -f conftest.$ac_ext
4584 CC=$ac_save_CC
4587 # AC_CACHE_VAL
4588 case "x$ac_cv_prog_cc_c89" in
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4591 $as_echo "none needed" >&6; } ;;
4592 xno)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4594 $as_echo "unsupported" >&6; } ;;
4596 CC="$CC $ac_cv_prog_cc_c89"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4599 esac
4600 if test "x$ac_cv_prog_cc_c89" != xno; then :
4604 ac_ext=c
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4616 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4617 if ${am_cv_prog_cc_c_o+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 main ()
4628 return 0;
4630 _ACEOF
4631 # Make sure it works both with $CC and with simple cc.
4632 # Following AC_PROG_CC_C_O, we do the test twice because some
4633 # compilers refuse to overwrite an existing .o file with -o,
4634 # though they will create one.
4635 am_cv_prog_cc_c_o=yes
4636 for am_i in 1 2; do
4637 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4638 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } \
4642 && test -f conftest2.$ac_objext; then
4643 : OK
4644 else
4645 am_cv_prog_cc_c_o=no
4646 break
4648 done
4649 rm -f core conftest*
4650 unset am_i
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4653 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4654 if test "$am_cv_prog_cc_c_o" != yes; then
4655 # Losing compiler, so override with the script.
4656 # FIXME: It is wrong to rewrite CC.
4657 # But if we don't then we get into trouble of one sort or another.
4658 # A longer-term fix would be to have automake use am__CC in this case,
4659 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4660 CC="$am_aux_dir/compile $CC"
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669 depcc="$CC" am_compiler_list=
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4672 $as_echo_n "checking dependency style of $depcc... " >&6; }
4673 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4677 # We make a subdir and do the tests there. Otherwise we can end up
4678 # making bogus files that we don't know about and never remove. For
4679 # instance it was reported that on HP-UX the gcc test will end up
4680 # making a dummy file named 'D' -- because '-MD' means "put the output
4681 # in D".
4682 rm -rf conftest.dir
4683 mkdir conftest.dir
4684 # Copy depcomp to subdir because otherwise we won't find it if we're
4685 # using a relative directory.
4686 cp "$am_depcomp" conftest.dir
4687 cd conftest.dir
4688 # We will build objects and dependencies in a subdirectory because
4689 # it helps to detect inapplicable dependency modes. For instance
4690 # both Tru64's cc and ICC support -MD to output dependencies as a
4691 # side effect of compilation, but ICC will put the dependencies in
4692 # the current directory while Tru64 will put them in the object
4693 # directory.
4694 mkdir sub
4696 am_cv_CC_dependencies_compiler_type=none
4697 if test "$am_compiler_list" = ""; then
4698 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4700 am__universal=false
4701 case " $depcc " in #(
4702 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4703 esac
4705 for depmode in $am_compiler_list; do
4706 # Setup a source with many dependencies, because some compilers
4707 # like to wrap large dependency lists on column 80 (with \), and
4708 # we should not choose a depcomp mode which is confused by this.
4710 # We need to recreate these files for each test, as the compiler may
4711 # overwrite some of them when testing with obscure command lines.
4712 # This happens at least with the AIX C compiler.
4713 : > sub/conftest.c
4714 for i in 1 2 3 4 5 6; do
4715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4717 # Solaris 10 /bin/sh.
4718 echo '/* dummy */' > sub/conftst$i.h
4719 done
4720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4722 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4723 # mode. It turns out that the SunPro C++ compiler does not properly
4724 # handle '-M -o', and we need to detect this. Also, some Intel
4725 # versions had trouble with output in subdirs.
4726 am__obj=sub/conftest.${OBJEXT-o}
4727 am__minus_obj="-o $am__obj"
4728 case $depmode in
4729 gcc)
4730 # This depmode causes a compiler race in universal mode.
4731 test "$am__universal" = false || continue
4733 nosideeffect)
4734 # After this tag, mechanisms are not by side-effect, so they'll
4735 # only be used when explicitly requested.
4736 if test "x$enable_dependency_tracking" = xyes; then
4737 continue
4738 else
4739 break
4742 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4743 # This compiler won't grok '-c -o', but also, the minuso test has
4744 # not run yet. These depmodes are late enough in the game, and
4745 # so weak that their functioning should not be impacted.
4746 am__obj=conftest.${OBJEXT-o}
4747 am__minus_obj=
4749 none) break ;;
4750 esac
4751 if depmode=$depmode \
4752 source=sub/conftest.c object=$am__obj \
4753 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4754 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4755 >/dev/null 2>conftest.err &&
4756 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4757 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4758 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4759 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4760 # icc doesn't choke on unknown options, it will just issue warnings
4761 # or remarks (even with -Werror). So we grep stderr for any message
4762 # that says an option was ignored or not supported.
4763 # When given -MP, icc 7.0 and 7.1 complain thusly:
4764 # icc: Command line warning: ignoring option '-M'; no argument required
4765 # The diagnosis changed in icc 8.0:
4766 # icc: Command line remark: option '-MP' not supported
4767 if (grep 'ignoring option' conftest.err ||
4768 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4769 am_cv_CC_dependencies_compiler_type=$depmode
4770 break
4773 done
4775 cd ..
4776 rm -rf conftest.dir
4777 else
4778 am_cv_CC_dependencies_compiler_type=none
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4783 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4784 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4787 test "x$enable_dependency_tracking" != xno \
4788 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4789 am__fastdepCC_TRUE=
4790 am__fastdepCC_FALSE='#'
4791 else
4792 am__fastdepCC_TRUE='#'
4793 am__fastdepCC_FALSE=
4797 # By default we simply use the C compiler to build assembly code.
4799 test "${CCAS+set}" = set || CCAS=$CC
4800 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4804 depcc="$CCAS" am_compiler_list=
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4807 $as_echo_n "checking dependency style of $depcc... " >&6; }
4808 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4812 # We make a subdir and do the tests there. Otherwise we can end up
4813 # making bogus files that we don't know about and never remove. For
4814 # instance it was reported that on HP-UX the gcc test will end up
4815 # making a dummy file named 'D' -- because '-MD' means "put the output
4816 # in D".
4817 rm -rf conftest.dir
4818 mkdir conftest.dir
4819 # Copy depcomp to subdir because otherwise we won't find it if we're
4820 # using a relative directory.
4821 cp "$am_depcomp" conftest.dir
4822 cd conftest.dir
4823 # We will build objects and dependencies in a subdirectory because
4824 # it helps to detect inapplicable dependency modes. For instance
4825 # both Tru64's cc and ICC support -MD to output dependencies as a
4826 # side effect of compilation, but ICC will put the dependencies in
4827 # the current directory while Tru64 will put them in the object
4828 # directory.
4829 mkdir sub
4831 am_cv_CCAS_dependencies_compiler_type=none
4832 if test "$am_compiler_list" = ""; then
4833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4835 am__universal=false
4838 for depmode in $am_compiler_list; do
4839 # Setup a source with many dependencies, because some compilers
4840 # like to wrap large dependency lists on column 80 (with \), and
4841 # we should not choose a depcomp mode which is confused by this.
4843 # We need to recreate these files for each test, as the compiler may
4844 # overwrite some of them when testing with obscure command lines.
4845 # This happens at least with the AIX C compiler.
4846 : > sub/conftest.c
4847 for i in 1 2 3 4 5 6; do
4848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4849 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4850 # Solaris 10 /bin/sh.
4851 echo '/* dummy */' > sub/conftst$i.h
4852 done
4853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4855 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4856 # mode. It turns out that the SunPro C++ compiler does not properly
4857 # handle '-M -o', and we need to detect this. Also, some Intel
4858 # versions had trouble with output in subdirs.
4859 am__obj=sub/conftest.${OBJEXT-o}
4860 am__minus_obj="-o $am__obj"
4861 case $depmode in
4862 gcc)
4863 # This depmode causes a compiler race in universal mode.
4864 test "$am__universal" = false || continue
4866 nosideeffect)
4867 # After this tag, mechanisms are not by side-effect, so they'll
4868 # only be used when explicitly requested.
4869 if test "x$enable_dependency_tracking" = xyes; then
4870 continue
4871 else
4872 break
4875 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4876 # This compiler won't grok '-c -o', but also, the minuso test has
4877 # not run yet. These depmodes are late enough in the game, and
4878 # so weak that their functioning should not be impacted.
4879 am__obj=conftest.${OBJEXT-o}
4880 am__minus_obj=
4882 none) break ;;
4883 esac
4884 if depmode=$depmode \
4885 source=sub/conftest.c object=$am__obj \
4886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4888 >/dev/null 2>conftest.err &&
4889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4893 # icc doesn't choke on unknown options, it will just issue warnings
4894 # or remarks (even with -Werror). So we grep stderr for any message
4895 # that says an option was ignored or not supported.
4896 # When given -MP, icc 7.0 and 7.1 complain thusly:
4897 # icc: Command line warning: ignoring option '-M'; no argument required
4898 # The diagnosis changed in icc 8.0:
4899 # icc: Command line remark: option '-MP' not supported
4900 if (grep 'ignoring option' conftest.err ||
4901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4902 am_cv_CCAS_dependencies_compiler_type=$depmode
4903 break
4906 done
4908 cd ..
4909 rm -rf conftest.dir
4910 else
4911 am_cv_CCAS_dependencies_compiler_type=none
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4916 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4917 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4920 test "x$enable_dependency_tracking" != xno \
4921 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4922 am__fastdepCCAS_TRUE=
4923 am__fastdepCCAS_FALSE='#'
4924 else
4925 am__fastdepCCAS_TRUE='#'
4926 am__fastdepCCAS_FALSE=
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_RANLIB+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -n "$RANLIB"; then
4939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4954 IFS=$as_save_IFS
4958 RANLIB=$ac_cv_prog_RANLIB
4959 if test -n "$RANLIB"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4961 $as_echo "$RANLIB" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4969 if test -z "$ac_cv_prog_RANLIB"; then
4970 ac_ct_RANLIB=$RANLIB
4971 # Extract the first word of "ranlib", so it can be a program name with args.
4972 set dummy ranlib; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$ac_ct_RANLIB"; then
4979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_ac_ct_RANLIB="ranlib"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4999 if test -n "$ac_ct_RANLIB"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5001 $as_echo "$ac_ct_RANLIB" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5007 if test "x$ac_ct_RANLIB" = x; then
5008 RANLIB=":"
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 RANLIB=$ac_ct_RANLIB
5018 else
5019 RANLIB="$ac_cv_prog_RANLIB"
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5023 $as_echo_n "checking whether ln -s works... " >&6; }
5024 LN_S=$as_ln_s
5025 if test "$LN_S" = "ln -s"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5030 $as_echo "no, using $LN_S" >&6; }
5034 ac_ext=c
5035 ac_cpp='$CPP $CPPFLAGS'
5036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5040 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5041 # On Suns, sometimes $CPP names a directory.
5042 if test -n "$CPP" && test -d "$CPP"; then
5043 CPP=
5045 if test -z "$CPP"; then
5046 if ${ac_cv_prog_CPP+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 # Double quotes because CPP needs to be expanded
5050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5052 ac_preproc_ok=false
5053 for ac_c_preproc_warn_flag in '' yes
5055 # Use a header file that comes with gcc, so configuring glibc
5056 # with a fresh cross-compiler works.
5057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058 # <limits.h> exists even on freestanding compilers.
5059 # On the NeXT, cc -E runs the code through the compiler's parser,
5060 # not just through cpp. "Syntax error" is here to catch this case.
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #ifdef __STDC__
5064 # include <limits.h>
5065 #else
5066 # include <assert.h>
5067 #endif
5068 Syntax error
5069 _ACEOF
5070 if ac_fn_c_try_cpp "$LINENO"; then :
5072 else
5073 # Broken: fails on valid input.
5074 continue
5076 rm -f conftest.err conftest.i conftest.$ac_ext
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 #include <ac_nonexistent.h>
5083 _ACEOF
5084 if ac_fn_c_try_cpp "$LINENO"; then :
5085 # Broken: success on invalid input.
5086 continue
5087 else
5088 # Passes both tests.
5089 ac_preproc_ok=:
5090 break
5092 rm -f conftest.err conftest.i conftest.$ac_ext
5094 done
5095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5096 rm -f conftest.i conftest.err conftest.$ac_ext
5097 if $ac_preproc_ok; then :
5098 break
5101 done
5102 ac_cv_prog_CPP=$CPP
5105 CPP=$ac_cv_prog_CPP
5106 else
5107 ac_cv_prog_CPP=$CPP
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5110 $as_echo "$CPP" >&6; }
5111 ac_preproc_ok=false
5112 for ac_c_preproc_warn_flag in '' yes
5114 # Use a header file that comes with gcc, so configuring glibc
5115 # with a fresh cross-compiler works.
5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 # <limits.h> exists even on freestanding compilers.
5118 # On the NeXT, cc -E runs the code through the compiler's parser,
5119 # not just through cpp. "Syntax error" is here to catch this case.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #ifdef __STDC__
5123 # include <limits.h>
5124 #else
5125 # include <assert.h>
5126 #endif
5127 Syntax error
5128 _ACEOF
5129 if ac_fn_c_try_cpp "$LINENO"; then :
5131 else
5132 # Broken: fails on valid input.
5133 continue
5135 rm -f conftest.err conftest.i conftest.$ac_ext
5137 # OK, works on sane cases. Now check whether nonexistent headers
5138 # can be detected and how.
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5142 _ACEOF
5143 if ac_fn_c_try_cpp "$LINENO"; then :
5144 # Broken: success on invalid input.
5145 continue
5146 else
5147 # Passes both tests.
5148 ac_preproc_ok=:
5149 break
5151 rm -f conftest.err conftest.i conftest.$ac_ext
5153 done
5154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155 rm -f conftest.i conftest.err conftest.$ac_ext
5156 if $ac_preproc_ok; then :
5158 else
5159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5161 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5162 See \`config.log' for more details" "$LINENO" 5; }
5165 ac_ext=c
5166 ac_cpp='$CPP $CPPFLAGS'
5167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5174 if ${ac_cv_path_GREP+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -z "$GREP"; then
5178 ac_path_GREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in grep ggrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5188 as_fn_executable_p "$ac_path_GREP" || continue
5189 # Check for GNU ac_path_GREP and select it if it is found.
5190 # Check for GNU $ac_path_GREP
5191 case `"$ac_path_GREP" --version 2>&1` in
5192 *GNU*)
5193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'GREP' >> "conftest.nl"
5203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_GREP="$ac_path_GREP"
5209 ac_path_GREP_max=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5217 $ac_path_GREP_found && break 3
5218 done
5219 done
5220 done
5221 IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_GREP"; then
5223 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 else
5226 ac_cv_path_GREP=$GREP
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5231 $as_echo "$ac_cv_path_GREP" >&6; }
5232 GREP="$ac_cv_path_GREP"
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5236 $as_echo_n "checking for egrep... " >&6; }
5237 if ${ac_cv_path_EGREP+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5241 then ac_cv_path_EGREP="$GREP -E"
5242 else
5243 if test -z "$EGREP"; then
5244 ac_path_EGREP_found=false
5245 # Loop through the user's path and test for each of PROGNAME-LIST
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_prog in egrep; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5254 as_fn_executable_p "$ac_path_EGREP" || continue
5255 # Check for GNU ac_path_EGREP and select it if it is found.
5256 # Check for GNU $ac_path_EGREP
5257 case `"$ac_path_EGREP" --version 2>&1` in
5258 *GNU*)
5259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5261 ac_count=0
5262 $as_echo_n 0123456789 >"conftest.in"
5263 while :
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 $as_echo 'EGREP' >> "conftest.nl"
5269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 as_fn_arith $ac_count + 1 && ac_count=$as_val
5272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_EGREP="$ac_path_EGREP"
5275 ac_path_EGREP_max=$ac_count
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5279 done
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 esac
5283 $ac_path_EGREP_found && break 3
5284 done
5285 done
5286 done
5287 IFS=$as_save_IFS
5288 if test -z "$ac_cv_path_EGREP"; then
5289 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5291 else
5292 ac_cv_path_EGREP=$EGREP
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5298 $as_echo "$ac_cv_path_EGREP" >&6; }
5299 EGREP="$ac_cv_path_EGREP"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5303 $as_echo_n "checking for ANSI C header files... " >&6; }
5304 if ${ac_cv_header_stdc+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <stdlib.h>
5310 #include <stdarg.h>
5311 #include <string.h>
5312 #include <float.h>
5315 main ()
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 ac_cv_header_stdc=yes
5324 else
5325 ac_cv_header_stdc=no
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 if test $ac_cv_header_stdc = yes; then
5330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <string.h>
5335 _ACEOF
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337 $EGREP "memchr" >/dev/null 2>&1; then :
5339 else
5340 ac_cv_header_stdc=no
5342 rm -f conftest*
5346 if test $ac_cv_header_stdc = yes; then
5347 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include <stdlib.h>
5352 _ACEOF
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354 $EGREP "free" >/dev/null 2>&1; then :
5356 else
5357 ac_cv_header_stdc=no
5359 rm -f conftest*
5363 if test $ac_cv_header_stdc = yes; then
5364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5365 if test "$cross_compiling" = yes; then :
5367 else
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #include <ctype.h>
5371 #include <stdlib.h>
5372 #if ((' ' & 0x0FF) == 0x020)
5373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5375 #else
5376 # define ISLOWER(c) \
5377 (('a' <= (c) && (c) <= 'i') \
5378 || ('j' <= (c) && (c) <= 'r') \
5379 || ('s' <= (c) && (c) <= 'z'))
5380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5381 #endif
5383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5385 main ()
5387 int i;
5388 for (i = 0; i < 256; i++)
5389 if (XOR (islower (i), ISLOWER (i))
5390 || toupper (i) != TOUPPER (i))
5391 return 2;
5392 return 0;
5394 _ACEOF
5395 if ac_fn_c_try_run "$LINENO"; then :
5397 else
5398 ac_cv_header_stdc=no
5400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5401 conftest.$ac_objext conftest.beam conftest.$ac_ext
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5407 $as_echo "$ac_cv_header_stdc" >&6; }
5408 if test $ac_cv_header_stdc = yes; then
5410 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5415 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5416 inttypes.h stdint.h unistd.h
5417 do :
5418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5419 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5424 _ACEOF
5428 done
5431 # The cast to long int works around a bug in the HP C Compiler
5432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5434 # This bug is HP SR number 8606223364.
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5436 $as_echo_n "checking size of void *... " >&6; }
5437 if ${ac_cv_sizeof_void_p+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5442 else
5443 if test "$ac_cv_type_void_p" = yes; then
5444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5446 as_fn_error 77 "cannot compute sizeof (void *)
5447 See \`config.log' for more details" "$LINENO" 5; }
5448 else
5449 ac_cv_sizeof_void_p=0
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5455 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5459 cat >>confdefs.h <<_ACEOF
5460 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5461 _ACEOF
5464 ac_configure_args="$ac_configure_args HOST_PTR_SIZE='$ac_cv_sizeof_void_p'"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
5467 $as_echo_n "checking for library containing sqrt... " >&6; }
5468 if ${ac_cv_search_sqrt+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_func_search_save_LIBS=$LIBS
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5475 /* Override any GCC internal prototype to avoid an error.
5476 Use char because int might match the return type of a GCC
5477 builtin and then its argument prototype would still apply. */
5478 #ifdef __cplusplus
5479 extern "C"
5480 #endif
5481 char sqrt ();
5483 main ()
5485 return sqrt ();
5487 return 0;
5489 _ACEOF
5490 for ac_lib in '' m; do
5491 if test -z "$ac_lib"; then
5492 ac_res="none required"
5493 else
5494 ac_res=-l$ac_lib
5495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5497 if ac_fn_c_try_link "$LINENO"; then :
5498 ac_cv_search_sqrt=$ac_res
5500 rm -f core conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext
5502 if ${ac_cv_search_sqrt+:} false; then :
5503 break
5505 done
5506 if ${ac_cv_search_sqrt+:} false; then :
5508 else
5509 ac_cv_search_sqrt=no
5511 rm conftest.$ac_ext
5512 LIBS=$ac_func_search_save_LIBS
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
5515 $as_echo "$ac_cv_search_sqrt" >&6; }
5516 ac_res=$ac_cv_search_sqrt
5517 if test "$ac_res" != no; then :
5518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5523 $as_echo_n "checking for library containing dlopen... " >&6; }
5524 if ${ac_cv_search_dlopen+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 ac_func_search_save_LIBS=$LIBS
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5531 /* Override any GCC internal prototype to avoid an error.
5532 Use char because int might match the return type of a GCC
5533 builtin and then its argument prototype would still apply. */
5534 #ifdef __cplusplus
5535 extern "C"
5536 #endif
5537 char dlopen ();
5539 main ()
5541 return dlopen ();
5543 return 0;
5545 _ACEOF
5546 for ac_lib in '' dl; do
5547 if test -z "$ac_lib"; then
5548 ac_res="none required"
5549 else
5550 ac_res=-l$ac_lib
5551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 ac_cv_search_dlopen=$ac_res
5556 rm -f core conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext
5558 if ${ac_cv_search_dlopen+:} false; then :
5559 break
5561 done
5562 if ${ac_cv_search_dlopen+:} false; then :
5564 else
5565 ac_cv_search_dlopen=no
5567 rm conftest.$ac_ext
5568 LIBS=$ac_func_search_save_LIBS
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5571 $as_echo "$ac_cv_search_dlopen" >&6; }
5572 ac_res=$ac_cv_search_dlopen
5573 if test "$ac_res" != no; then :
5574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5579 LUAJIT_DEFINES='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6'
5581 case $host_os:$host_cpu in #(
5582 *darwin*:x86_64) :
5583 LUAJIT_LDEXTRA='-pagezero_size 10000 -image_base 100000000' ;; #(
5584 *) :
5586 esac
5589 # Check whether --enable-largefile was given.
5590 if test "${enable_largefile+set}" = set; then :
5591 enableval=$enable_largefile;
5594 if test "$enable_largefile" != no; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5597 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5598 if ${ac_cv_sys_largefile_CC+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 ac_cv_sys_largefile_CC=no
5602 if test "$GCC" != yes; then
5603 ac_save_CC=$CC
5604 while :; do
5605 # IRIX 6.2 and later do not support large files by default,
5606 # so use the C compiler's -n32 option if that helps.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <sys/types.h>
5610 /* Check that off_t can represent 2**63 - 1 correctly.
5611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5612 since some C++ compilers masquerading as C compilers
5613 incorrectly reject 9223372036854775807. */
5614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5616 && LARGE_OFF_T % 2147483647 == 1)
5617 ? 1 : -1];
5619 main ()
5623 return 0;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 break
5629 rm -f core conftest.err conftest.$ac_objext
5630 CC="$CC -n32"
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_sys_largefile_CC=' -n32'; break
5634 rm -f core conftest.err conftest.$ac_objext
5635 break
5636 done
5637 CC=$ac_save_CC
5638 rm -f conftest.$ac_ext
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5642 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5643 if test "$ac_cv_sys_largefile_CC" != no; then
5644 CC=$CC$ac_cv_sys_largefile_CC
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5648 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5649 if ${ac_cv_sys_file_offset_bits+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 while :; do
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5656 /* Check that off_t can represent 2**63 - 1 correctly.
5657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5658 since some C++ compilers masquerading as C compilers
5659 incorrectly reject 9223372036854775807. */
5660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5662 && LARGE_OFF_T % 2147483647 == 1)
5663 ? 1 : -1];
5665 main ()
5669 return 0;
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_sys_file_offset_bits=no; break
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #define _FILE_OFFSET_BITS 64
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5687 ? 1 : -1];
5689 main ()
5693 return 0;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_sys_file_offset_bits=64; break
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 ac_cv_sys_file_offset_bits=unknown
5701 break
5702 done
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5705 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5706 case $ac_cv_sys_file_offset_bits in #(
5707 no | unknown) ;;
5709 cat >>confdefs.h <<_ACEOF
5710 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5711 _ACEOF
5713 esac
5714 rm -rf conftest*
5715 if test $ac_cv_sys_file_offset_bits = unknown; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5717 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5718 if ${ac_cv_sys_large_files+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 while :; do
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <sys/types.h>
5725 /* Check that off_t can represent 2**63 - 1 correctly.
5726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5727 since some C++ compilers masquerading as C compilers
5728 incorrectly reject 9223372036854775807. */
5729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5731 && LARGE_OFF_T % 2147483647 == 1)
5732 ? 1 : -1];
5734 main ()
5738 return 0;
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 ac_cv_sys_large_files=no; break
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #define _LARGE_FILES 1
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5756 ? 1 : -1];
5758 main ()
5762 return 0;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 ac_cv_sys_large_files=1; break
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 ac_cv_sys_large_files=unknown
5770 break
5771 done
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5774 $as_echo "$ac_cv_sys_large_files" >&6; }
5775 case $ac_cv_sys_large_files in #(
5776 no | unknown) ;;
5778 cat >>confdefs.h <<_ACEOF
5779 #define _LARGE_FILES $ac_cv_sys_large_files
5780 _ACEOF
5782 esac
5783 rm -rf conftest*
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5790 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5791 if ${ac_cv_sys_largefile_source+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 while :; do
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <sys/types.h> /* for off_t */
5798 #include <stdio.h>
5800 main ()
5802 int (*fp) (FILE *, off_t, int) = fseeko;
5803 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5805 return 0;
5807 _ACEOF
5808 if ac_fn_c_try_link "$LINENO"; then :
5809 ac_cv_sys_largefile_source=no; break
5811 rm -f core conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #define _LARGEFILE_SOURCE 1
5816 #include <sys/types.h> /* for off_t */
5817 #include <stdio.h>
5819 main ()
5821 int (*fp) (FILE *, off_t, int) = fseeko;
5822 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5824 return 0;
5826 _ACEOF
5827 if ac_fn_c_try_link "$LINENO"; then :
5828 ac_cv_sys_largefile_source=1; break
5830 rm -f core conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 ac_cv_sys_largefile_source=unknown
5833 break
5834 done
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5837 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5838 case $ac_cv_sys_largefile_source in #(
5839 no | unknown) ;;
5841 cat >>confdefs.h <<_ACEOF
5842 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5843 _ACEOF
5845 esac
5846 rm -rf conftest*
5848 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5849 # in glibc 2.1.3, but that breaks too many other things.
5850 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5851 if test $ac_cv_sys_largefile_source != unknown; then
5853 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5857 if test "x$enable_largefile" != xno; then
5858 case $ac_cv_sys_file_offset_bits in #(
5859 no) :
5860 ;; #(
5861 unknown) :
5862 case $ac_cv_sys_large_files in #(
5863 no | unknown) :
5864 ;; #(
5865 *) :
5866 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGE_FILES" ;;
5867 esac ;; #(
5868 *) :
5869 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_FILE_OFFSET_BITS=64" ;;
5870 esac
5872 case $ac_cv_sys_largefile_source in #(
5873 no | unknown) :
5874 ;; #(
5875 *) :
5876 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGEFILE_SOURCE" ;;
5877 esac
5880 case $host_os in #(
5881 cygwin* | mingw* | msys*) :
5882 LJHOST='Windows' ;; #(
5883 darwin*) :
5884 LJHOST='Darwin' ;; #(
5885 solaris* | sunos*) :
5886 LJHOST='SunOS' ;; #(
5887 linux*) :
5888 LJHOST='Linux' ;; #(
5889 *) :
5890 LJHOST='Other' ;;
5891 esac
5892 lj_save_CPPFLAGS=$CPPFLAGS
5893 CPPFLAGS="$CPPFLAGS -I$srcdir/LuaJIT-2.0.3/src $LUAJIT_DEFINES -dM"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896 #include <lj_arch.h>
5897 _ACEOF
5898 if ac_fn_c_try_cpp "$LINENO"; then :
5899 lj_cpp=ok; rm -f dynasm_flags native_flags
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
5901 $as_echo_n "checking for architecture... " >&6; }
5902 if grep 'LJ_TARGET_X64 ' conftest.i >/dev/null 2>&1; then :
5903 LJARCH=x64
5904 elif grep 'LJ_TARGET_X86 ' conftest.i >/dev/null 2>&1; then :
5905 LJARCH=x86
5906 LUAJIT_DEFINES="$LUAJIT_DEFINES -march=i686"
5907 elif grep 'LJ_TARGET_ARM ' conftest.i >/dev/null 2>&1; then :
5908 LJARCH=arm
5909 elif grep 'LJ_TARGET_PPC ' conftest.i >/dev/null 2>&1; then :
5910 LJARCH=ppc
5911 elif grep 'LJ_TARGET_PPCSPE ' conftest.i >/dev/null 2>&1; then :
5912 LJARCH=ppcspe
5913 elif grep 'LJ_TARGET_MIPS ' conftest.i >/dev/null 2>&1; then :
5914 LJARCH=mips
5915 if grep 'MIPSEL ' conftest.i >/dev/null 2>&1; then :
5916 echo '-D__MPISEL__=1' >>native_flags
5918 else
5919 as_fn_error $? "Sorry, unsupported architecture" "$LINENO" 5
5921 if grep 'LJ_TARGET_PS3 1'conftest.i >/dev/null 2>&1; then :
5922 LJHOST='PS3'
5923 echo '-D__CELLOS_LV2__' >>native_flags
5924 LUAJIT_DEFINES="$LUAJIT_DEFINES -DLUAJIT_USE_SYSMALLOC"
5926 if grep 'LJ_NO_UNWIND 1'conftest.i >/dev/null 2>&1; then :
5927 echo '-DLUAJIT_NO_UNWIND' >>native_flags
5929 echo "-DLUAJIT_TARGET=LUAJIT_ARCH_$LJARCH" >>native_flags
5930 if grep 'LJ_ARCH_BITS 64' conftest.i >/dev/null 2>&1; then :
5931 echo '-D P64' >>dynasm_flags
5932 if test "x$LJHOST" = xLinux; then :
5933 LUAJIT_DEFINES="$LUAJIT_DEFINES -DMAP_32BIT=0x40"
5936 if grep 'LJ_HASJIT 1' conftest.i >/dev/null 2>&1; then :
5937 echo '-D JIT' >>dynasm_flags
5939 if grep 'LJ_HASFFI 1' conftest.i >/dev/null 2>&1; then :
5940 echo '-D FFI' >>dynasm_flags
5942 if grep 'LJ_DUALNUM 1' conftest.i >/dev/null 2>&1; then :
5943 echo '-D DUALNUM' >>dynasm_flags
5945 if grep 'LJ_ARCH_HASFPU 1' conftest.i >/dev/null 2>&1; then :
5946 echo '-D FPU' >>dynasm_flags
5947 echo '-DLJ_ARCH_HASFPU=1' >>native_flags
5948 else
5949 echo '-DLJ_ARCH_HASFPU=0' >>native_flags
5951 if grep 'LJ_ABI_SOFTFP 1' conftest.i >/dev/null 2>&1; then :
5952 echo '-DDLJ_ABI_SOFTFP=1' >>native_flags
5953 else
5954 echo '-D HFABI' >>dynasm_flags
5955 echo '-DLJ_ABI_SOFTFP=0' >>native_flags
5957 echo '-D VER='`grep 'LJ_ARCH_VERSION ' conftest.i 2>&1 | \
5958 sed 's/^.*LJ_ARCH_VERSION //'` >>dynasm_flags
5959 if test "x$LJHOST" = xWindows; then :
5960 echo '-D WIN' >>dynasm_flags
5962 DASM_ARCH=$LJARCH
5963 case $LJARCH in #(
5964 x86) :
5965 if grep '__SSE2__ 1' conftest.i >/dev/null 2>&1; then :
5966 echo '-D SSE' >>dynasm_flags
5967 fi ;; #(
5968 x64) :
5969 DASM_ARCH=x86 ;; #(
5970 arm) :
5971 if test "x$LJHOST" = xiOS; then :
5972 echo '-D IOS' >>dynasm_flags
5973 fi ;; #(
5974 ppc) :
5975 if grep 'LJ_ARCH_SQRT 1' conftest.i >/dev/null 2>&1; then :
5976 echo '-D SQRT' >>dynasm_flags
5978 if grep 'LJ_ARCH_SQRT 1' conftest.i >/dev/null 2>&1; then :
5979 echo '-D SQRT' >>dynasm_flags
5981 if grep 'LJ_ARCH_ROUND 1' conftest.i >/dev/null 2>&1; then :
5982 echo '-D ROUND' >>dynasm_flags
5984 if grep 'LJ_ARCH_PPC64 1' conftest.i >/dev/null 2>&1; then :
5985 echo '-D GPR64' >>dynasm_flags
5987 if test "x$LJHOST" = xPS3; then :
5988 echo '-D PPE -D TOC' >>dynasm_flags
5989 fi ;; #(
5990 *) :
5992 esac
5993 case $LJHOST in #(
5994 Windows) :
5995 echo '-DLUAJIT_OS=LUAJIT_OS_WINDOWS' >>native_flags ;; #(
5996 Darwin | iOS) :
5997 echo '-DLUAJIT_OS=LUAJIT_OS_OSX' >>native_flags ;; #(
5998 Linux) :
5999 echo '-DLUAJIT_OS=LUAJIT_OS_LINUX' >>native_flags ;; #(
6000 *) :
6001 echo '-DLUAJIT_OS=LUAJIT_OS_OTHER' >>native_flags ;;
6002 esac
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LJHOST $LJARCH $DASM_ARCH" >&5
6004 $as_echo "$LJHOST $LJARCH $DASM_ARCH" >&6; }
6007 rm -f conftest.err conftest.i conftest.$ac_ext
6008 CPPFLAGS=$lj_save_CPPFLAGS
6012 case $LJHOST in #(
6013 Windows) :
6014 LJVM_MODE=peobj
6015 LUAJIT_DEFINES="$LUAJIT_DEFINES -malign-double" ;; #(
6016 Darwin | iOS) :
6017 LJVM_MODE=machasm ;; #(
6018 *) :
6019 LJVM_MODE=elfasm ;;
6020 esac
6021 if test "x$LJVM_MODE" = xpeobj; then
6022 PEOBJ_TRUE=
6023 PEOBJ_FALSE='#'
6024 else
6025 PEOBJ_TRUE='#'
6026 PEOBJ_FALSE=
6033 if test "x$enable_build" != xno; then
6034 build_TRUE=
6035 build_FALSE='#'
6036 else
6037 build_TRUE='#'
6038 build_FALSE=
6042 if test "x$enable_build" != xno || test -f config.force; then
6044 if test "x$lj_cpp" != xok; then :
6045 as_fn_error $? "Sorry, can not preprocess <lj_arch.h>" "$LINENO" 5
6048 echo timestamp >config.force
6051 LUAJIT_TREE=LuaJIT-2.0.3
6054 ac_config_headers="$ac_config_headers config.h"
6057 ac_config_files="$ac_config_files Makefile include/Makefile"
6063 subdirs="$subdirs native"
6068 cat >confcache <<\_ACEOF
6069 # This file is a shell script that caches the results of configure
6070 # tests run on this system so they can be shared between configure
6071 # scripts and configure runs, see configure's option --config-cache.
6072 # It is not useful on other systems. If it contains results you don't
6073 # want to keep, you may remove or edit it.
6075 # config.status only pays attention to the cache file if you give it
6076 # the --recheck option to rerun configure.
6078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6080 # following values.
6082 _ACEOF
6084 # The following way of writing the cache mishandles newlines in values,
6085 # but we know of no workaround that is simple, portable, and efficient.
6086 # So, we kill variables containing newlines.
6087 # Ultrix sh set writes to stderr and can't be redirected directly,
6088 # and sets the high bit in the cache file unless we assign to the vars.
6090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6091 eval ac_val=\$$ac_var
6092 case $ac_val in #(
6093 *${as_nl}*)
6094 case $ac_var in #(
6095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6097 esac
6098 case $ac_var in #(
6099 _ | IFS | as_nl) ;; #(
6100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6101 *) { eval $ac_var=; unset $ac_var;} ;;
6102 esac ;;
6103 esac
6104 done
6106 (set) 2>&1 |
6107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6108 *${as_nl}ac_space=\ *)
6109 # `set' does not quote correctly, so add quotes: double-quote
6110 # substitution turns \\\\ into \\, and sed turns \\ into \.
6111 sed -n \
6112 "s/'/'\\\\''/g;
6113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6114 ;; #(
6116 # `set' quotes correctly as required by POSIX, so do not add quotes.
6117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6119 esac |
6120 sort
6122 sed '
6123 /^ac_cv_env_/b end
6124 t clear
6125 :clear
6126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6127 t end
6128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6129 :end' >>confcache
6130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6131 if test -w "$cache_file"; then
6132 if test "x$cache_file" != "x/dev/null"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6134 $as_echo "$as_me: updating cache $cache_file" >&6;}
6135 if test ! -f "$cache_file" || test -h "$cache_file"; then
6136 cat confcache >"$cache_file"
6137 else
6138 case $cache_file in #(
6139 */* | ?:*)
6140 mv -f confcache "$cache_file"$$ &&
6141 mv -f "$cache_file"$$ "$cache_file" ;; #(
6143 mv -f confcache "$cache_file" ;;
6144 esac
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6149 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6152 rm -f confcache
6154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6155 # Let make expand exec_prefix.
6156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6158 DEFS=-DHAVE_CONFIG_H
6160 ac_libobjs=
6161 ac_ltlibobjs=
6163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6164 # 1. Remove the extension, and $U if already installed.
6165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6166 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6168 # will be set to the directory where LIBOBJS objects are built.
6169 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6170 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6171 done
6172 LIBOBJS=$ac_libobjs
6174 LTLIBOBJS=$ac_ltlibobjs
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6178 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6179 if test -n "$am_sleep_pid"; then
6180 # Hide warnings about reused PIDs.
6181 wait $am_sleep_pid 2>/dev/null
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6184 $as_echo "done" >&6; }
6185 if test -n "$EXEEXT"; then
6186 am__EXEEXT_TRUE=
6187 am__EXEEXT_FALSE='#'
6188 else
6189 am__EXEEXT_TRUE='#'
6190 am__EXEEXT_FALSE=
6193 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6194 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6197 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6198 as_fn_error $? "conditional \"AMDEP\" was never defined.
6199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6202 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6206 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6209 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
6210 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
6211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6213 if test -z "${PEOBJ_TRUE}" && test -z "${PEOBJ_FALSE}"; then
6214 as_fn_error $? "conditional \"PEOBJ\" was never defined.
6215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6217 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
6218 as_fn_error $? "conditional \"build\" was never defined.
6219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6222 : "${CONFIG_STATUS=./config.status}"
6223 ac_write_fail=0
6224 ac_clean_files_save=$ac_clean_files
6225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6228 as_write_fail=0
6229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6230 #! $SHELL
6231 # Generated by $as_me.
6232 # Run this file to recreate the current configuration.
6233 # Compiler output produced by configure, useful for debugging
6234 # configure, is in config.log if it exists.
6236 debug=false
6237 ac_cs_recheck=false
6238 ac_cs_silent=false
6240 SHELL=\${CONFIG_SHELL-$SHELL}
6241 export SHELL
6242 _ASEOF
6243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6244 ## -------------------- ##
6245 ## M4sh Initialization. ##
6246 ## -------------------- ##
6248 # Be more Bourne compatible
6249 DUALCASE=1; export DUALCASE # for MKS sh
6250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6251 emulate sh
6252 NULLCMD=:
6253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6254 # is contrary to our usage. Disable this feature.
6255 alias -g '${1+"$@"}'='"$@"'
6256 setopt NO_GLOB_SUBST
6257 else
6258 case `(set -o) 2>/dev/null` in #(
6259 *posix*) :
6260 set -o posix ;; #(
6261 *) :
6263 esac
6267 as_nl='
6269 export as_nl
6270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6274 # Prefer a ksh shell builtin over an external printf program on Solaris,
6275 # but without wasting forks for bash or zsh.
6276 if test -z "$BASH_VERSION$ZSH_VERSION" \
6277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6278 as_echo='print -r --'
6279 as_echo_n='print -rn --'
6280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6281 as_echo='printf %s\n'
6282 as_echo_n='printf %s'
6283 else
6284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6285 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6286 as_echo_n='/usr/ucb/echo -n'
6287 else
6288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6289 as_echo_n_body='eval
6290 arg=$1;
6291 case $arg in #(
6292 *"$as_nl"*)
6293 expr "X$arg" : "X\\(.*\\)$as_nl";
6294 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6295 esac;
6296 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6298 export as_echo_n_body
6299 as_echo_n='sh -c $as_echo_n_body as_echo'
6301 export as_echo_body
6302 as_echo='sh -c $as_echo_body as_echo'
6305 # The user is always right.
6306 if test "${PATH_SEPARATOR+set}" != set; then
6307 PATH_SEPARATOR=:
6308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6309 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6310 PATH_SEPARATOR=';'
6315 # IFS
6316 # We need space, tab and new line, in precisely that order. Quoting is
6317 # there to prevent editors from complaining about space-tab.
6318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6319 # splitting by setting IFS to empty value.)
6320 IFS=" "" $as_nl"
6322 # Find who we are. Look in the path if we contain no directory separator.
6323 as_myself=
6324 case $0 in #((
6325 *[\\/]* ) as_myself=$0 ;;
6326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6332 done
6333 IFS=$as_save_IFS
6336 esac
6337 # We did not find ourselves, most probably we were run as `sh COMMAND'
6338 # in which case we are not to be found in the path.
6339 if test "x$as_myself" = x; then
6340 as_myself=$0
6342 if test ! -f "$as_myself"; then
6343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6344 exit 1
6347 # Unset variables that we do not need and which cause bugs (e.g. in
6348 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6349 # suppresses any "Segmentation fault" message there. '((' could
6350 # trigger a bug in pdksh 5.2.14.
6351 for as_var in BASH_ENV ENV MAIL MAILPATH
6352 do eval test x\${$as_var+set} = xset \
6353 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6354 done
6355 PS1='$ '
6356 PS2='> '
6357 PS4='+ '
6359 # NLS nuisances.
6360 LC_ALL=C
6361 export LC_ALL
6362 LANGUAGE=C
6363 export LANGUAGE
6365 # CDPATH.
6366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6370 # ----------------------------------------
6371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6373 # script with STATUS, using 1 if that was 0.
6374 as_fn_error ()
6376 as_status=$1; test $as_status -eq 0 && as_status=1
6377 if test "$4"; then
6378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6381 $as_echo "$as_me: error: $2" >&2
6382 as_fn_exit $as_status
6383 } # as_fn_error
6386 # as_fn_set_status STATUS
6387 # -----------------------
6388 # Set $? to STATUS, without forking.
6389 as_fn_set_status ()
6391 return $1
6392 } # as_fn_set_status
6394 # as_fn_exit STATUS
6395 # -----------------
6396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6397 as_fn_exit ()
6399 set +e
6400 as_fn_set_status $1
6401 exit $1
6402 } # as_fn_exit
6404 # as_fn_unset VAR
6405 # ---------------
6406 # Portably unset VAR.
6407 as_fn_unset ()
6409 { eval $1=; unset $1;}
6411 as_unset=as_fn_unset
6412 # as_fn_append VAR VALUE
6413 # ----------------------
6414 # Append the text in VALUE to the end of the definition contained in VAR. Take
6415 # advantage of any shell optimizations that allow amortized linear growth over
6416 # repeated appends, instead of the typical quadratic growth present in naive
6417 # implementations.
6418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6419 eval 'as_fn_append ()
6421 eval $1+=\$2
6423 else
6424 as_fn_append ()
6426 eval $1=\$$1\$2
6428 fi # as_fn_append
6430 # as_fn_arith ARG...
6431 # ------------------
6432 # Perform arithmetic evaluation on the ARGs, and store the result in the
6433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6434 # must be portable across $(()) and expr.
6435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6436 eval 'as_fn_arith ()
6438 as_val=$(( $* ))
6440 else
6441 as_fn_arith ()
6443 as_val=`expr "$@" || test $? -eq 1`
6445 fi # as_fn_arith
6448 if expr a : '\(a\)' >/dev/null 2>&1 &&
6449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6450 as_expr=expr
6451 else
6452 as_expr=false
6455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6456 as_basename=basename
6457 else
6458 as_basename=false
6461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6462 as_dirname=dirname
6463 else
6464 as_dirname=false
6467 as_me=`$as_basename -- "$0" ||
6468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6469 X"$0" : 'X\(//\)$' \| \
6470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6471 $as_echo X/"$0" |
6472 sed '/^.*\/\([^/][^/]*\)\/*$/{
6473 s//\1/
6476 /^X\/\(\/\/\)$/{
6477 s//\1/
6480 /^X\/\(\/\).*/{
6481 s//\1/
6484 s/.*/./; q'`
6486 # Avoid depending upon Character Ranges.
6487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6490 as_cr_digits='0123456789'
6491 as_cr_alnum=$as_cr_Letters$as_cr_digits
6493 ECHO_C= ECHO_N= ECHO_T=
6494 case `echo -n x` in #(((((
6495 -n*)
6496 case `echo 'xy\c'` in
6497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6498 xy) ECHO_C='\c';;
6499 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6500 ECHO_T=' ';;
6501 esac;;
6503 ECHO_N='-n';;
6504 esac
6506 rm -f conf$$ conf$$.exe conf$$.file
6507 if test -d conf$$.dir; then
6508 rm -f conf$$.dir/conf$$.file
6509 else
6510 rm -f conf$$.dir
6511 mkdir conf$$.dir 2>/dev/null
6513 if (echo >conf$$.file) 2>/dev/null; then
6514 if ln -s conf$$.file conf$$ 2>/dev/null; then
6515 as_ln_s='ln -s'
6516 # ... but there are two gotchas:
6517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6519 # In both cases, we have to default to `cp -pR'.
6520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6521 as_ln_s='cp -pR'
6522 elif ln conf$$.file conf$$ 2>/dev/null; then
6523 as_ln_s=ln
6524 else
6525 as_ln_s='cp -pR'
6527 else
6528 as_ln_s='cp -pR'
6530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6531 rmdir conf$$.dir 2>/dev/null
6534 # as_fn_mkdir_p
6535 # -------------
6536 # Create "$as_dir" as a directory, including parents if necessary.
6537 as_fn_mkdir_p ()
6540 case $as_dir in #(
6541 -*) as_dir=./$as_dir;;
6542 esac
6543 test -d "$as_dir" || eval $as_mkdir_p || {
6544 as_dirs=
6545 while :; do
6546 case $as_dir in #(
6547 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6548 *) as_qdir=$as_dir;;
6549 esac
6550 as_dirs="'$as_qdir' $as_dirs"
6551 as_dir=`$as_dirname -- "$as_dir" ||
6552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6553 X"$as_dir" : 'X\(//\)[^/]' \| \
6554 X"$as_dir" : 'X\(//\)$' \| \
6555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6556 $as_echo X"$as_dir" |
6557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6558 s//\1/
6561 /^X\(\/\/\)[^/].*/{
6562 s//\1/
6565 /^X\(\/\/\)$/{
6566 s//\1/
6569 /^X\(\/\).*/{
6570 s//\1/
6573 s/.*/./; q'`
6574 test -d "$as_dir" && break
6575 done
6576 test -z "$as_dirs" || eval "mkdir $as_dirs"
6577 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6580 } # as_fn_mkdir_p
6581 if mkdir -p . 2>/dev/null; then
6582 as_mkdir_p='mkdir -p "$as_dir"'
6583 else
6584 test -d ./-p && rmdir ./-p
6585 as_mkdir_p=false
6589 # as_fn_executable_p FILE
6590 # -----------------------
6591 # Test if FILE is an executable regular file.
6592 as_fn_executable_p ()
6594 test -f "$1" && test -x "$1"
6595 } # as_fn_executable_p
6596 as_test_x='test -x'
6597 as_executable_p=as_fn_executable_p
6599 # Sed expression to map a string onto a valid CPP name.
6600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6602 # Sed expression to map a string onto a valid variable name.
6603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6606 exec 6>&1
6607 ## ----------------------------------- ##
6608 ## Main body of $CONFIG_STATUS script. ##
6609 ## ----------------------------------- ##
6610 _ASEOF
6611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6614 # Save the log message, to keep $0 and so on meaningful, and to
6615 # report actual input values of CONFIG_FILES etc. instead of their
6616 # values after options handling.
6617 ac_log="
6618 This file was extended by luajit for TeX Live $as_me 2.0.3, which was
6619 generated by GNU Autoconf 2.69. Invocation command line was
6621 CONFIG_FILES = $CONFIG_FILES
6622 CONFIG_HEADERS = $CONFIG_HEADERS
6623 CONFIG_LINKS = $CONFIG_LINKS
6624 CONFIG_COMMANDS = $CONFIG_COMMANDS
6625 $ $0 $@
6627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6630 _ACEOF
6632 case $ac_config_files in *"
6633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6634 esac
6636 case $ac_config_headers in *"
6637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6638 esac
6641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6642 # Files that config.status was made for.
6643 config_files="$ac_config_files"
6644 config_headers="$ac_config_headers"
6645 config_commands="$ac_config_commands"
6647 _ACEOF
6649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6650 ac_cs_usage="\
6651 \`$as_me' instantiates files and other configuration actions
6652 from templates according to the current configuration. Unless the files
6653 and actions are specified as TAGs, all are instantiated by default.
6655 Usage: $0 [OPTION]... [TAG]...
6657 -h, --help print this help, then exit
6658 -V, --version print version number and configuration settings, then exit
6659 --config print configuration, then exit
6660 -q, --quiet, --silent
6661 do not print progress messages
6662 -d, --debug don't remove temporary files
6663 --recheck update $as_me by reconfiguring in the same conditions
6664 --file=FILE[:TEMPLATE]
6665 instantiate the configuration file FILE
6666 --header=FILE[:TEMPLATE]
6667 instantiate the configuration header FILE
6669 Configuration files:
6670 $config_files
6672 Configuration headers:
6673 $config_headers
6675 Configuration commands:
6676 $config_commands
6678 Report bugs to <tex-k@tug.org>."
6680 _ACEOF
6681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6683 ac_cs_version="\\
6684 luajit for TeX Live config.status 2.0.3
6685 configured by $0, generated by GNU Autoconf 2.69,
6686 with options \\"\$ac_cs_config\\"
6688 Copyright (C) 2012 Free Software Foundation, Inc.
6689 This config.status script is free software; the Free Software Foundation
6690 gives unlimited permission to copy, distribute and modify it."
6692 ac_pwd='$ac_pwd'
6693 srcdir='$srcdir'
6694 INSTALL='$INSTALL'
6695 MKDIR_P='$MKDIR_P'
6696 AWK='$AWK'
6697 test -n "\$AWK" || AWK=awk
6698 _ACEOF
6700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6701 # The default lists apply if the user does not specify any file.
6702 ac_need_defaults=:
6703 while test $# != 0
6705 case $1 in
6706 --*=?*)
6707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6709 ac_shift=:
6711 --*=)
6712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6713 ac_optarg=
6714 ac_shift=:
6717 ac_option=$1
6718 ac_optarg=$2
6719 ac_shift=shift
6721 esac
6723 case $ac_option in
6724 # Handling of the options.
6725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6726 ac_cs_recheck=: ;;
6727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6728 $as_echo "$ac_cs_version"; exit ;;
6729 --config | --confi | --conf | --con | --co | --c )
6730 $as_echo "$ac_cs_config"; exit ;;
6731 --debug | --debu | --deb | --de | --d | -d )
6732 debug=: ;;
6733 --file | --fil | --fi | --f )
6734 $ac_shift
6735 case $ac_optarg in
6736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6737 '') as_fn_error $? "missing file argument" ;;
6738 esac
6739 as_fn_append CONFIG_FILES " '$ac_optarg'"
6740 ac_need_defaults=false;;
6741 --header | --heade | --head | --hea )
6742 $ac_shift
6743 case $ac_optarg in
6744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6745 esac
6746 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6747 ac_need_defaults=false;;
6748 --he | --h)
6749 # Conflict between --help and --header
6750 as_fn_error $? "ambiguous option: \`$1'
6751 Try \`$0 --help' for more information.";;
6752 --help | --hel | -h )
6753 $as_echo "$ac_cs_usage"; exit ;;
6754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6756 ac_cs_silent=: ;;
6758 # This is an error.
6759 -*) as_fn_error $? "unrecognized option: \`$1'
6760 Try \`$0 --help' for more information." ;;
6762 *) as_fn_append ac_config_targets " $1"
6763 ac_need_defaults=false ;;
6765 esac
6766 shift
6767 done
6769 ac_configure_extra_args=
6771 if $ac_cs_silent; then
6772 exec 6>/dev/null
6773 ac_configure_extra_args="$ac_configure_extra_args --silent"
6776 _ACEOF
6777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6778 if \$ac_cs_recheck; then
6779 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6780 shift
6781 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6782 CONFIG_SHELL='$SHELL'
6783 export CONFIG_SHELL
6784 exec "\$@"
6787 _ACEOF
6788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6789 exec 5>>config.log
6791 echo
6792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6793 ## Running $as_me. ##
6794 _ASBOX
6795 $as_echo "$ac_log"
6796 } >&5
6798 _ACEOF
6799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6801 # INIT-COMMANDS
6803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6805 _ACEOF
6807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6809 # Handling of arguments.
6810 for ac_config_target in $ac_config_targets
6812 case $ac_config_target in
6813 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6814 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6815 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6816 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6819 esac
6820 done
6823 # If the user did not use the arguments to specify the items to instantiate,
6824 # then the envvar interface is used. Set only those that are not.
6825 # We use the long form for the default assignment because of an extremely
6826 # bizarre bug on SunOS 4.1.3.
6827 if $ac_need_defaults; then
6828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6833 # Have a temporary directory for convenience. Make it in the build tree
6834 # simply because there is no reason against having it here, and in addition,
6835 # creating and moving files from /tmp can sometimes cause problems.
6836 # Hook for its removal unless debugging.
6837 # Note that there is a small window in which the directory will not be cleaned:
6838 # after its creation but before its name has been assigned to `$tmp'.
6839 $debug ||
6841 tmp= ac_tmp=
6842 trap 'exit_status=$?
6843 : "${ac_tmp:=$tmp}"
6844 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6846 trap 'as_fn_exit 1' 1 2 13 15
6848 # Create a (secure) tmp directory for tmp files.
6851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6852 test -d "$tmp"
6853 } ||
6855 tmp=./conf$$-$RANDOM
6856 (umask 077 && mkdir "$tmp")
6857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6858 ac_tmp=$tmp
6860 # Set up the scripts for CONFIG_FILES section.
6861 # No need to generate them if there are no CONFIG_FILES.
6862 # This happens for instance with `./config.status config.h'.
6863 if test -n "$CONFIG_FILES"; then
6866 ac_cr=`echo X | tr X '\015'`
6867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6868 # But we know of no other shell where ac_cr would be empty at this
6869 # point, so we can use a bashism as a fallback.
6870 if test "x$ac_cr" = x; then
6871 eval ac_cr=\$\'\\r\'
6873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6875 ac_cs_awk_cr='\\r'
6876 else
6877 ac_cs_awk_cr=$ac_cr
6880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6881 _ACEOF
6885 echo "cat >conf$$subs.awk <<_ACEOF" &&
6886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6887 echo "_ACEOF"
6888 } >conf$$subs.sh ||
6889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6891 ac_delim='%!_!# '
6892 for ac_last_try in false false false false false :; do
6893 . ./conf$$subs.sh ||
6894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6896 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6897 if test $ac_delim_n = $ac_delim_num; then
6898 break
6899 elif $ac_last_try; then
6900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6901 else
6902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6904 done
6905 rm -f conf$$subs.sh
6907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6909 _ACEOF
6910 sed -n '
6912 s/^/S["/; s/!.*/"]=/
6915 s/^[^!]*!//
6916 :repl
6917 t repl
6918 s/'"$ac_delim"'$//
6919 t delim
6922 s/\(.\{148\}\)..*/\1/
6923 t more1
6924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6927 b repl
6928 :more1
6929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6932 s/.\{148\}//
6933 t nl
6934 :delim
6936 s/\(.\{148\}\)..*/\1/
6937 t more2
6938 s/["\\]/\\&/g; s/^/"/; s/$/"/
6941 :more2
6942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6945 s/.\{148\}//
6946 t delim
6947 ' <conf$$subs.awk | sed '
6948 /^[^""]/{
6950 s/\n//
6952 ' >>$CONFIG_STATUS || ac_write_fail=1
6953 rm -f conf$$subs.awk
6954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6955 _ACAWK
6956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6957 for (key in S) S_is_set[key] = 1
6958 FS = "\a"
6962 line = $ 0
6963 nfields = split(line, field, "@")
6964 substed = 0
6965 len = length(field[1])
6966 for (i = 2; i < nfields; i++) {
6967 key = field[i]
6968 keylen = length(key)
6969 if (S_is_set[key]) {
6970 value = S[key]
6971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6972 len += length(value) + length(field[++i])
6973 substed = 1
6974 } else
6975 len += 1 + keylen
6978 print line
6981 _ACAWK
6982 _ACEOF
6983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6986 else
6988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6989 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6990 _ACEOF
6992 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6993 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6994 # trailing colons and then remove the whole line if VPATH becomes empty
6995 # (actually we leave an empty line to preserve line numbers).
6996 if test "x$srcdir" = x.; then
6997 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6999 s///
7000 s/^/:/
7001 s/[ ]*$/:/
7002 s/:\$(srcdir):/:/g
7003 s/:\${srcdir}:/:/g
7004 s/:@srcdir@:/:/g
7005 s/^:*//
7006 s/:*$//
7008 s/\(=[ ]*\).*/\1/
7010 s/\n//
7011 s/^[^=]*=[ ]*$//
7015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7016 fi # test -n "$CONFIG_FILES"
7018 # Set up the scripts for CONFIG_HEADERS section.
7019 # No need to generate them if there are no CONFIG_HEADERS.
7020 # This happens for instance with `./config.status Makefile'.
7021 if test -n "$CONFIG_HEADERS"; then
7022 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7023 BEGIN {
7024 _ACEOF
7026 # Transform confdefs.h into an awk script `defines.awk', embedded as
7027 # here-document in config.status, that substitutes the proper values into
7028 # config.h.in to produce config.h.
7030 # Create a delimiter string that does not exist in confdefs.h, to ease
7031 # handling of long lines.
7032 ac_delim='%!_!# '
7033 for ac_last_try in false false :; do
7034 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7035 if test -z "$ac_tt"; then
7036 break
7037 elif $ac_last_try; then
7038 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7039 else
7040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7042 done
7044 # For the awk script, D is an array of macro values keyed by name,
7045 # likewise P contains macro parameters if any. Preserve backslash
7046 # newline sequences.
7048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7049 sed -n '
7050 s/.\{148\}/&'"$ac_delim"'/g
7051 t rset
7052 :rset
7053 s/^[ ]*#[ ]*define[ ][ ]*/ /
7054 t def
7056 :def
7057 s/\\$//
7058 t bsnl
7059 s/["\\]/\\&/g
7060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7061 D["\1"]=" \3"/p
7062 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7064 :bsnl
7065 s/["\\]/\\&/g
7066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7067 D["\1"]=" \3\\\\\\n"\\/p
7068 t cont
7069 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7070 t cont
7072 :cont
7074 s/.\{148\}/&'"$ac_delim"'/g
7075 t clear
7076 :clear
7077 s/\\$//
7078 t bsnlc
7079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7081 :bsnlc
7082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7083 b cont
7084 ' <confdefs.h | sed '
7085 s/'"$ac_delim"'/"\\\
7086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7089 for (key in D) D_is_set[key] = 1
7090 FS = "\a"
7092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7093 line = \$ 0
7094 split(line, arg, " ")
7095 if (arg[1] == "#") {
7096 defundef = arg[2]
7097 mac1 = arg[3]
7098 } else {
7099 defundef = substr(arg[1], 2)
7100 mac1 = arg[2]
7102 split(mac1, mac2, "(") #)
7103 macro = mac2[1]
7104 prefix = substr(line, 1, index(line, defundef) - 1)
7105 if (D_is_set[macro]) {
7106 # Preserve the white space surrounding the "#".
7107 print prefix "define", macro P[macro] D[macro]
7108 next
7109 } else {
7110 # Replace #undef with comments. This is necessary, for example,
7111 # in the case of _POSIX_SOURCE, which is predefined and required
7112 # on some systems where configure will not decide to define it.
7113 if (defundef == "undef") {
7114 print "/*", prefix defundef, macro, "*/"
7115 next
7119 { print }
7120 _ACAWK
7121 _ACEOF
7122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7123 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7124 fi # test -n "$CONFIG_HEADERS"
7127 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7128 shift
7129 for ac_tag
7131 case $ac_tag in
7132 :[FHLC]) ac_mode=$ac_tag; continue;;
7133 esac
7134 case $ac_mode$ac_tag in
7135 :[FHL]*:*);;
7136 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7137 :[FH]-) ac_tag=-:-;;
7138 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7139 esac
7140 ac_save_IFS=$IFS
7141 IFS=:
7142 set x $ac_tag
7143 IFS=$ac_save_IFS
7144 shift
7145 ac_file=$1
7146 shift
7148 case $ac_mode in
7149 :L) ac_source=$1;;
7150 :[FH])
7151 ac_file_inputs=
7152 for ac_f
7154 case $ac_f in
7155 -) ac_f="$ac_tmp/stdin";;
7156 *) # Look for the file first in the build tree, then in the source tree
7157 # (if the path is not absolute). The absolute path cannot be DOS-style,
7158 # because $ac_f cannot contain `:'.
7159 test -f "$ac_f" ||
7160 case $ac_f in
7161 [\\/$]*) false;;
7162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7163 esac ||
7164 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7165 esac
7166 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7167 as_fn_append ac_file_inputs " '$ac_f'"
7168 done
7170 # Let's still pretend it is `configure' which instantiates (i.e., don't
7171 # use $as_me), people would be surprised to read:
7172 # /* config.h. Generated by config.status. */
7173 configure_input='Generated from '`
7174 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7175 `' by configure.'
7176 if test x"$ac_file" != x-; then
7177 configure_input="$ac_file. $configure_input"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7179 $as_echo "$as_me: creating $ac_file" >&6;}
7181 # Neutralize special characters interpreted by sed in replacement strings.
7182 case $configure_input in #(
7183 *\&* | *\|* | *\\* )
7184 ac_sed_conf_input=`$as_echo "$configure_input" |
7185 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7186 *) ac_sed_conf_input=$configure_input;;
7187 esac
7189 case $ac_tag in
7190 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7192 esac
7194 esac
7196 ac_dir=`$as_dirname -- "$ac_file" ||
7197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7198 X"$ac_file" : 'X\(//\)[^/]' \| \
7199 X"$ac_file" : 'X\(//\)$' \| \
7200 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7201 $as_echo X"$ac_file" |
7202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7203 s//\1/
7206 /^X\(\/\/\)[^/].*/{
7207 s//\1/
7210 /^X\(\/\/\)$/{
7211 s//\1/
7214 /^X\(\/\).*/{
7215 s//\1/
7218 s/.*/./; q'`
7219 as_dir="$ac_dir"; as_fn_mkdir_p
7220 ac_builddir=.
7222 case "$ac_dir" in
7223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7225 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7226 # A ".." for each directory in $ac_dir_suffix.
7227 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7228 case $ac_top_builddir_sub in
7229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7231 esac ;;
7232 esac
7233 ac_abs_top_builddir=$ac_pwd
7234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7235 # for backward compatibility:
7236 ac_top_builddir=$ac_top_build_prefix
7238 case $srcdir in
7239 .) # We are building in place.
7240 ac_srcdir=.
7241 ac_top_srcdir=$ac_top_builddir_sub
7242 ac_abs_top_srcdir=$ac_pwd ;;
7243 [\\/]* | ?:[\\/]* ) # Absolute name.
7244 ac_srcdir=$srcdir$ac_dir_suffix;
7245 ac_top_srcdir=$srcdir
7246 ac_abs_top_srcdir=$srcdir ;;
7247 *) # Relative name.
7248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7249 ac_top_srcdir=$ac_top_build_prefix$srcdir
7250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7251 esac
7252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7255 case $ac_mode in
7258 # CONFIG_FILE
7261 case $INSTALL in
7262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7263 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7264 esac
7265 ac_MKDIR_P=$MKDIR_P
7266 case $MKDIR_P in
7267 [\\/$]* | ?:[\\/]* ) ;;
7268 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7269 esac
7270 _ACEOF
7272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7273 # If the template does not know about datarootdir, expand it.
7274 # FIXME: This hack should be removed a few years after 2.60.
7275 ac_datarootdir_hack=; ac_datarootdir_seen=
7276 ac_sed_dataroot='
7277 /datarootdir/ {
7281 /@datadir@/p
7282 /@docdir@/p
7283 /@infodir@/p
7284 /@localedir@/p
7285 /@mandir@/p'
7286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7287 *datarootdir*) ac_datarootdir_seen=yes;;
7288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7291 _ACEOF
7292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7293 ac_datarootdir_hack='
7294 s&@datadir@&$datadir&g
7295 s&@docdir@&$docdir&g
7296 s&@infodir@&$infodir&g
7297 s&@localedir@&$localedir&g
7298 s&@mandir@&$mandir&g
7299 s&\\\${datarootdir}&$datarootdir&g' ;;
7300 esac
7301 _ACEOF
7303 # Neutralize VPATH when `$srcdir' = `.'.
7304 # Shell code in configure.ac might set extrasub.
7305 # FIXME: do we really want to maintain this feature?
7306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7307 ac_sed_extra="$ac_vpsub
7308 $extrasub
7309 _ACEOF
7310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7313 s|@configure_input@|$ac_sed_conf_input|;t t
7314 s&@top_builddir@&$ac_top_builddir_sub&;t t
7315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7316 s&@srcdir@&$ac_srcdir&;t t
7317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7318 s&@top_srcdir@&$ac_top_srcdir&;t t
7319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7320 s&@builddir@&$ac_builddir&;t t
7321 s&@abs_builddir@&$ac_abs_builddir&;t t
7322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7323 s&@INSTALL@&$ac_INSTALL&;t t
7324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7325 $ac_datarootdir_hack
7327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7328 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7331 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7332 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7333 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7335 which seems to be undefined. Please make sure it is defined" >&5
7336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7337 which seems to be undefined. Please make sure it is defined" >&2;}
7339 rm -f "$ac_tmp/stdin"
7340 case $ac_file in
7341 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7342 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7343 esac \
7344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7348 # CONFIG_HEADER
7350 if test x"$ac_file" != x-; then
7352 $as_echo "/* $configure_input */" \
7353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7354 } >"$ac_tmp/config.h" \
7355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7356 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7359 else
7360 rm -f "$ac_file"
7361 mv "$ac_tmp/config.h" "$ac_file" \
7362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7364 else
7365 $as_echo "/* $configure_input */" \
7366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7367 || as_fn_error $? "could not create -" "$LINENO" 5
7369 # Compute "$ac_file"'s index in $config_headers.
7370 _am_arg="$ac_file"
7371 _am_stamp_count=1
7372 for _am_header in $config_headers :; do
7373 case $_am_header in
7374 $_am_arg | $_am_arg:* )
7375 break ;;
7377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7378 esac
7379 done
7380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7382 X"$_am_arg" : 'X\(//\)[^/]' \| \
7383 X"$_am_arg" : 'X\(//\)$' \| \
7384 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7385 $as_echo X"$_am_arg" |
7386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7387 s//\1/
7390 /^X\(\/\/\)[^/].*/{
7391 s//\1/
7394 /^X\(\/\/\)$/{
7395 s//\1/
7398 /^X\(\/\).*/{
7399 s//\1/
7402 s/.*/./; q'`/stamp-h$_am_stamp_count
7405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7406 $as_echo "$as_me: executing $ac_file commands" >&6;}
7408 esac
7411 case $ac_file$ac_mode in
7412 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7413 # Older Autoconf quotes --file arguments for eval, but not when files
7414 # are listed without --file. Let's play safe and only enable the eval
7415 # if we detect the quoting.
7416 case $CONFIG_FILES in
7417 *\'*) eval set x "$CONFIG_FILES" ;;
7418 *) set x $CONFIG_FILES ;;
7419 esac
7420 shift
7421 for mf
7423 # Strip MF so we end up with the name of the file.
7424 mf=`echo "$mf" | sed -e 's/:.*$//'`
7425 # Check whether this is an Automake generated Makefile or not.
7426 # We used to match only the files named 'Makefile.in', but
7427 # some people rename them; so instead we look at the file content.
7428 # Grep'ing the first line is not enough: some people post-process
7429 # each Makefile.in and add a new line on top of each file to say so.
7430 # Grep'ing the whole file is not good either: AIX grep has a line
7431 # limit of 2048, but all sed's we know have understand at least 4000.
7432 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7433 dirpart=`$as_dirname -- "$mf" ||
7434 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7435 X"$mf" : 'X\(//\)[^/]' \| \
7436 X"$mf" : 'X\(//\)$' \| \
7437 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7438 $as_echo X"$mf" |
7439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7440 s//\1/
7443 /^X\(\/\/\)[^/].*/{
7444 s//\1/
7447 /^X\(\/\/\)$/{
7448 s//\1/
7451 /^X\(\/\).*/{
7452 s//\1/
7455 s/.*/./; q'`
7456 else
7457 continue
7459 # Extract the definition of DEPDIR, am__include, and am__quote
7460 # from the Makefile without running 'make'.
7461 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7462 test -z "$DEPDIR" && continue
7463 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7464 test -z "$am__include" && continue
7465 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7466 # Find all dependency output files, they are included files with
7467 # $(DEPDIR) in their names. We invoke sed twice because it is the
7468 # simplest approach to changing $(DEPDIR) to its actual value in the
7469 # expansion.
7470 for file in `sed -n "
7471 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7472 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7473 # Make sure the directory exists.
7474 test -f "$dirpart/$file" && continue
7475 fdir=`$as_dirname -- "$file" ||
7476 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7477 X"$file" : 'X\(//\)[^/]' \| \
7478 X"$file" : 'X\(//\)$' \| \
7479 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7480 $as_echo X"$file" |
7481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7482 s//\1/
7485 /^X\(\/\/\)[^/].*/{
7486 s//\1/
7489 /^X\(\/\/\)$/{
7490 s//\1/
7493 /^X\(\/\).*/{
7494 s//\1/
7497 s/.*/./; q'`
7498 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7499 # echo "creating $dirpart/$file"
7500 echo '# dummy' > "$dirpart/$file"
7501 done
7502 done
7506 esac
7507 done # for ac_tag
7510 as_fn_exit 0
7511 _ACEOF
7512 ac_clean_files=$ac_clean_files_save
7514 test $ac_write_fail = 0 ||
7515 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7517 ac_configure_args="$ac_configure_args DASM_ARCH=$DASM_ARCH"
7518 if test "x$cross_compiling" = xyes; then :
7519 if test "x$cache_file" != x/dev/null; then :
7520 cache_file=config.cache
7522 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
7523 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
7524 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
7527 # configure is writing to config.log, and then calls config.status.
7528 # config.status does its own redirection, appending to config.log.
7529 # Unfortunately, on DOS this fails, as config.log is still kept open
7530 # by configure, so config.status won't be able to write to it; its
7531 # output is simply discarded. So we exec the FD to /dev/null,
7532 # effectively closing config.log, so it can be properly (re)opened and
7533 # appended to by config.status. When coming back to configure, we
7534 # need to make the FD available again.
7535 if test "$no_create" != yes; then
7536 ac_cs_success=:
7537 ac_config_status_args=
7538 test "$silent" = yes &&
7539 ac_config_status_args="$ac_config_status_args --quiet"
7540 exec 5>/dev/null
7541 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7542 exec 5>>config.log
7543 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7544 # would make configure fail if this is the last instruction.
7545 $ac_cs_success || as_fn_exit 1
7549 # CONFIG_SUBDIRS section.
7551 if test "$no_recursion" != yes; then
7553 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
7554 # so they do not pile up.
7555 ac_sub_configure_args=
7556 ac_prev=
7557 eval "set x $ac_configure_args"
7558 shift
7559 for ac_arg
7561 if test -n "$ac_prev"; then
7562 ac_prev=
7563 continue
7565 case $ac_arg in
7566 -cache-file | --cache-file | --cache-fil | --cache-fi \
7567 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7568 ac_prev=cache_file ;;
7569 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7570 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7571 | --c=*)
7573 --config-cache | -C)
7575 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7576 ac_prev=srcdir ;;
7577 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7579 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7580 ac_prev=prefix ;;
7581 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7583 --disable-option-checking)
7586 case $ac_arg in
7587 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7588 esac
7589 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
7590 esac
7591 done
7593 # Always prepend --prefix to ensure using the same prefix
7594 # in subdir configurations.
7595 ac_arg="--prefix=$prefix"
7596 case $ac_arg in
7597 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7598 esac
7599 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
7601 # Pass --silent
7602 if test "$silent" = yes; then
7603 ac_sub_configure_args="--silent $ac_sub_configure_args"
7606 # Always prepend --disable-option-checking to silence warnings, since
7607 # different subdirs can have different --enable and --with options.
7608 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
7610 ac_popdir=`pwd`
7611 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7613 # Do not complain, so a configure script can configure whichever
7614 # parts of a large source tree are present.
7615 test -d "$srcdir/$ac_dir" || continue
7617 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
7619 $as_echo "$ac_msg" >&6
7620 as_dir="$ac_dir"; as_fn_mkdir_p
7621 ac_builddir=.
7623 case "$ac_dir" in
7624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7627 # A ".." for each directory in $ac_dir_suffix.
7628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7629 case $ac_top_builddir_sub in
7630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7632 esac ;;
7633 esac
7634 ac_abs_top_builddir=$ac_pwd
7635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7636 # for backward compatibility:
7637 ac_top_builddir=$ac_top_build_prefix
7639 case $srcdir in
7640 .) # We are building in place.
7641 ac_srcdir=.
7642 ac_top_srcdir=$ac_top_builddir_sub
7643 ac_abs_top_srcdir=$ac_pwd ;;
7644 [\\/]* | ?:[\\/]* ) # Absolute name.
7645 ac_srcdir=$srcdir$ac_dir_suffix;
7646 ac_top_srcdir=$srcdir
7647 ac_abs_top_srcdir=$srcdir ;;
7648 *) # Relative name.
7649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7650 ac_top_srcdir=$ac_top_build_prefix$srcdir
7651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7652 esac
7653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7656 cd "$ac_dir"
7658 # Check for guested configure; otherwise get Cygnus style configure.
7659 if test -f "$ac_srcdir/configure.gnu"; then
7660 ac_sub_configure=$ac_srcdir/configure.gnu
7661 elif test -f "$ac_srcdir/configure"; then
7662 ac_sub_configure=$ac_srcdir/configure
7663 elif test -f "$ac_srcdir/configure.in"; then
7664 # This should be Cygnus configure.
7665 ac_sub_configure=$ac_aux_dir/configure
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
7668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7669 ac_sub_configure=
7672 # The recursion is here.
7673 if test -n "$ac_sub_configure"; then
7674 # Make the cache file name correct relative to the subdirectory.
7675 case $cache_file in
7676 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7677 *) # Relative name.
7678 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
7679 esac
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7682 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7683 # The eval makes quoting arguments work.
7684 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
7685 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
7686 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
7689 cd "$ac_popdir"
7690 done
7692 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7694 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}