Debian Codegraph @

libs/luajit/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for luajit for TeX Live 2.1.81742.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='luajit for TeX Live'
616 PACKAGE_TARNAME='luajit-for-tex-live'
617 PACKAGE_VERSION='2.1.81742'
618 PACKAGE_STRING='luajit for TeX Live 2.1.81742'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="LuaJIT-src/src/luajit_rolling.h"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_option_checking=no
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 subdirs
662 LUAJIT_TREE
663 LUAJIT_HAS_NOT_LOG2
664 build_FALSE
665 build_TRUE
666 LIBLUAJIT_LDEXTRA
667 LJVM_MODE
668 LJHOST
669 LUAJIT_CFLAGS
670 PEOBJ_FALSE
671 PEOBJ_TRUE
672 DASM_ARCH
673 LJARCH
674 CPP
675 LUAJIT_LDEXTRA
676 LUAJIT_DEFINES
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 ac_ct_AR
685 AR
686 FILECMD
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LD
691 FGREP
692 EGREP
693 GREP
694 SED
695 LIBTOOL
696 OBJDUMP
697 DLLTOOL
698 AS
699 LUAJIT_LT_VERSINFO
700 LUAJITVERSION
701 LN_S
702 RANLIB
703 am__fastdepCCAS_FALSE
704 am__fastdepCCAS_TRUE
705 CCASDEPMODE
706 CCASFLAGS
707 CCAS
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 WARNING_CFLAGS
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__include
725 DEPDIR
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 am__xargs_n
737 am__rm_f_notfound
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 CSCOPE
743 ETAGS
744 CTAGS
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_maintainer_mode
813 enable_dependency_tracking
814 enable_compiler_warnings
815 enable_shared
816 enable_static
817 enable_pic
818 with_pic
819 enable_fast_install
820 enable_aix_soname
821 with_aix_soname
822 with_gnu_ld
823 with_sysroot
824 enable_libtool_lock
825 enable_largefile
826 enable_year2038
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CCAS
837 CCASFLAGS
838 LT_SYS_LIBRARY_PATH
839 CPP'
840 ac_subdirs_all='native'
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 runstatedir='${localstatedir}/run'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: '$ac_useropt'"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: '$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -runstatedir | --runstatedir | --runstatedi | --runstated \
1130 | --runstate | --runstat | --runsta | --runst | --runs \
1131 | --run | --ru | --r)
1132 ac_prev=runstatedir ;;
1133 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1134 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1135 | --run=* | --ru=* | --r=*)
1136 runstatedir=$ac_optarg ;;
1137
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1143
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1154
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1159
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1164
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1171
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1176
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1179
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1182
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: '$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: '$ac_useropt'"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) as_fn_error $? "unrecognized option: '$ac_option'
1234 Try '$0 --help' for more information"
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error $? "missing argument to $ac_option"
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1269 fi
1270
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir runstatedir
1276 do
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1291
1292 # There might be people who depend on the old broken behavior: '$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error $? "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error $? "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 printf "%s\n" X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 'configure' configures luajit for TeX Live 2.1.81742 to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print 'checking ...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for '--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or '..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, 'make install' will install all the files in
1415 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than '$ac_default_prefix' using '--prefix',
1417 for instance '--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root
1438 [DATAROOTDIR/doc/luajit-for-tex-live]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of luajit for TeX Live 2.1.81742:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-silent-rules less verbose build output (undo: "make V=1")
1469 --disable-silent-rules verbose build output (undo: "make V=0")
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --enable-compiler-warnings=[no|min|yes|max|all]
1478 Turn on compiler warnings [default: yes if
1479 maintainer-mode, min otherwise]
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --enable-aix-soname=aix|svr4|both
1487 shared library versioning (aka "SONAME") variant to
1488 provide on AIX, [default=aix].
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --disable-largefile omit support for large files
1491 --enable-year2038 support timestamps after 2038
1492
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1498 compiler's sysroot if not specified).
1499
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CCAS assembler compiler command (defaults to CC)
1509 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1510 LT_SYS_LIBRARY_PATH
1511 User-defined run-time library search path.
1512 CPP C preprocessor
1513
1514 Use these variables to override the choices made by 'configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 Report bugs to <[email protected]>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for configure.gnu first; this name is used for a wrapper for
1564 # Metaconfig's "Configure" on case-insensitive file systems.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 luajit for TeX Live configure 2.1.81742
1582 generated by GNU Autoconf 2.72
1583
1584 Copyright (C) 2023 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest.beam
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 printf "%s\n" "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext
1621 then :
1622 ac_retval=0
1623 else case e in #(
1624 e) printf "%s\n" "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1 ;;
1628 esac
1629 fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_compile
1634
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 printf %s "checking for $2... " >&6; }
1644 if eval test \${$3+y}
1645 then :
1646 printf %s "(cached) " >&6
1647 else case e in #(
1648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"
1654 then :
1655 eval "$3=yes"
1656 else case e in #(
1657 e) eval "$3=no" ;;
1658 esac
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1661 esac
1662 fi
1663 eval ac_res=\$$3
1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 printf "%s\n" "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_header_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 printf "%s\n" "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }
1699 then :
1700 ac_retval=0
1701 else case e in #(
1702 e) printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1 ;;
1706 esac
1707 fi
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_link
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else case e in #(
1730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (void); below. */
1738
1739 #include <limits.h>
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 (void);
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main (void)
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"
1765 then :
1766 eval "$3=yes"
1767 else case e in #(
1768 e) eval "$3=no" ;;
1769 esac
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1772 conftest$ac_exeext conftest.$ac_ext ;;
1773 esac
1774 fi
1775 eval ac_res=\$$3
1776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 printf "%s\n" "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_func
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1785 # executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 printf "%s\n" "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1797 ac_status=$?
1798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 printf "%s\n" "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1807 ac_status=$?
1808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }
1810 then :
1811 ac_retval=0
1812 else case e in #(
1813 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1814 printf "%s\n" "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=$ac_status ;;
1818 esac
1819 fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_run
1825
1826 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1827 # --------------------------------------------
1828 # Tries to find the compile-time value of EXPR in a program that includes
1829 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1830 # computed
1831 ac_fn_c_compute_int ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if test "$cross_compiling" = yes; then
1835 # Depending upon the size, compute the lo and hi bounds.
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 int
1840 main (void)
1841 {
1842 static int test_array [1 - 2 * !(($2) >= 0)];
1843 test_array [0] = 0;
1844 return test_array [0];
1845
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"
1851 then :
1852 ac_lo=0 ac_mid=0
1853 while :; do
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $4
1857 int
1858 main (void)
1859 {
1860 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1861 test_array [0] = 0;
1862 return test_array [0];
1863
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"
1869 then :
1870 ac_hi=$ac_mid; break
1871 else case e in #(
1872 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1873 if test $ac_lo -le $ac_mid; then
1874 ac_lo= ac_hi=
1875 break
1876 fi
1877 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1878 esac
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1881 done
1882 else case e in #(
1883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 int
1887 main (void)
1888 {
1889 static int test_array [1 - 2 * !(($2) < 0)];
1890 test_array [0] = 0;
1891 return test_array [0];
1892
1893 ;
1894 return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"
1898 then :
1899 ac_hi=-1 ac_mid=-1
1900 while :; do
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main (void)
1906 {
1907 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1908 test_array [0] = 0;
1909 return test_array [0];
1910
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"
1916 then :
1917 ac_lo=$ac_mid; break
1918 else case e in #(
1919 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1920 if test $ac_mid -le $ac_hi; then
1921 ac_lo= ac_hi=
1922 break
1923 fi
1924 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1925 esac
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1928 done
1929 else case e in #(
1930 e) ac_lo= ac_hi= ;;
1931 esac
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1934 esac
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1937 # Binary search between lo and hi bounds.
1938 while test "x$ac_lo" != "x$ac_hi"; do
1939 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $4
1943 int
1944 main (void)
1945 {
1946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1947 test_array [0] = 0;
1948 return test_array [0];
1949
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"
1955 then :
1956 ac_hi=$ac_mid
1957 else case e in #(
1958 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1959 esac
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1962 done
1963 case $ac_lo in #((
1964 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1965 '') ac_retval=1 ;;
1966 esac
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 static long int longval (void) { return $2; }
1972 static unsigned long int ulongval (void) { return $2; }
1973 #include <stdio.h>
1974 #include <stdlib.h>
1975 int
1976 main (void)
1977 {
1978
1979 FILE *f = fopen ("conftest.val", "w");
1980 if (! f)
1981 return 1;
1982 if (($2) < 0)
1983 {
1984 long int i = longval ();
1985 if (i != ($2))
1986 return 1;
1987 fprintf (f, "%ld", i);
1988 }
1989 else
1990 {
1991 unsigned long int i = ulongval ();
1992 if (i != ($2))
1993 return 1;
1994 fprintf (f, "%lu", i);
1995 }
1996 /* Do not output a trailing newline, as this causes \r\n confusion
1997 on some platforms. */
1998 return ferror (f) || fclose (f) != 0;
1999
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_run "$LINENO"
2005 then :
2006 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2007 else case e in #(
2008 e) ac_retval=1 ;;
2009 esac
2010 fi
2011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2012 conftest.$ac_objext conftest.beam conftest.$ac_ext
2013 rm -f conftest.val
2014
2015 fi
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 as_fn_set_status $ac_retval
2018
2019 } # ac_fn_c_compute_int
2020
2021 # ac_fn_c_try_cpp LINENO
2022 # ----------------------
2023 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_c_try_cpp ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_cpp conftest.$ac_ext"
2028 case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 printf "%s\n" "$ac_try_echo"; } >&5
2034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } > conftest.i && {
2043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2044 test ! -s conftest.err
2045 }
2046 then :
2047 ac_retval=0
2048 else case e in #(
2049 e) printf "%s\n" "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_retval=1 ;;
2053 esac
2054 fi
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 as_fn_set_status $ac_retval
2057
2058 } # ac_fn_c_try_cpp
2059
2060 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2061 # ------------------------------------------------------------------
2062 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2063 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2064 ac_fn_check_decl ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 as_decl_name=`echo $2|sed 's/ *(.*//'`
2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069 printf %s "checking whether $as_decl_name is declared... " >&6; }
2070 if eval test \${$3+y}
2071 then :
2072 printf %s "(cached) " >&6
2073 else case e in #(
2074 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2075 eval ac_save_FLAGS=\$$6
2076 as_fn_append $6 " $5"
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main (void)
2082 {
2083 #ifndef $as_decl_name
2084 #ifdef __cplusplus
2085 (void) $as_decl_use;
2086 #else
2087 (void) $as_decl_name;
2088 #endif
2089 #endif
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"
2096 then :
2097 eval "$3=yes"
2098 else case e in #(
2099 e) eval "$3=no" ;;
2100 esac
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2103 eval $6=\$ac_save_FLAGS
2104 ;;
2105 esac
2106 fi
2107 eval ac_res=\$$3
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 printf "%s\n" "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112 } # ac_fn_check_decl
2113 ac_configure_args_raw=
2114 for ac_arg
2115 do
2116 case $ac_arg in
2117 *\'*)
2118 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 esac
2120 as_fn_append ac_configure_args_raw " '$ac_arg'"
2121 done
2122
2123 case $ac_configure_args_raw in
2124 *$as_nl*)
2125 ac_safe_unquote= ;;
2126 *)
2127 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2128 ac_unsafe_a="$ac_unsafe_z#~"
2129 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2130 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2131 esac
2132
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2136
2137 It was created by luajit for TeX Live $as_me 2.1.81742, which was
2138 generated by GNU Autoconf 2.72. Invocation command line was
2139
2140 $ $0$ac_configure_args_raw
2141
2142 _ACEOF
2143 exec 5>>config.log
2144 {
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2149
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2158
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2166
2167 _ASUNAME
2168
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172 IFS=$as_save_IFS
2173 case $as_dir in #(((
2174 '') as_dir=./ ;;
2175 */) ;;
2176 *) as_dir=$as_dir/ ;;
2177 esac
2178 printf "%s\n" "PATH: $as_dir"
2179 done
2180 IFS=$as_save_IFS
2181
2182 } >&5
2183
2184 cat >&5 <<_ACEOF
2185
2186
2187 ## ----------- ##
2188 ## Core tests. ##
2189 ## ----------- ##
2190
2191 _ACEOF
2192
2193
2194 # Keep a trace of the command line.
2195 # Strip out --no-create and --no-recursion so they do not pile up.
2196 # Strip out --silent because we don't want to record it for future runs.
2197 # Also quote any args containing shell meta-characters.
2198 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_configure_args=
2200 ac_configure_args0=
2201 ac_configure_args1=
2202 ac_must_keep_next=false
2203 for ac_pass in 1 2
2204 do
2205 for ac_arg
2206 do
2207 case $ac_arg in
2208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2210 | -silent | --silent | --silen | --sile | --sil)
2211 continue ;;
2212 *\'*)
2213 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 esac
2215 case $ac_pass in
2216 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2217 2)
2218 as_fn_append ac_configure_args1 " '$ac_arg'"
2219 if test $ac_must_keep_next = true; then
2220 ac_must_keep_next=false # Got value, back to normal.
2221 else
2222 case $ac_arg in
2223 *=* | --config-cache | -C | -disable-* | --disable-* \
2224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2226 | -with-* | --with-* | -without-* | --without-* | --x)
2227 case "$ac_configure_args0 " in
2228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 esac
2230 ;;
2231 -* ) ac_must_keep_next=true ;;
2232 esac
2233 fi
2234 as_fn_append ac_configure_args " '$ac_arg'"
2235 ;;
2236 esac
2237 done
2238 done
2239 { ac_configure_args0=; unset ac_configure_args0;}
2240 { ac_configure_args1=; unset ac_configure_args1;}
2241
2242 # When interrupted or exit'd, cleanup temporary files, and complete
2243 # config.log. We remove comments because anyway the quotes in there
2244 # would cause problems or look ugly.
2245 # WARNING: Use '\'' to represent an apostrophe within the trap.
2246 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2247 trap 'exit_status=$?
2248 # Sanitize IFS.
2249 IFS=" "" $as_nl"
2250 # Save into config.log some information that might help in debugging.
2251 {
2252 echo
2253
2254 printf "%s\n" "## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##"
2257 echo
2258 # The following way of writing the cache mishandles newlines in values,
2259 (
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2262 case $ac_val in #(
2263 *${as_nl}*)
2264 case $ac_var in #(
2265 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 esac
2268 case $ac_var in #(
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2272 esac ;;
2273 esac
2274 done
2275 (set) 2>&1 |
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2278 sed -n \
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 ;; #(
2282 *)
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284 ;;
2285 esac |
2286 sort
2287 )
2288 echo
2289
2290 printf "%s\n" "## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##"
2293 echo
2294 for ac_var in $ac_subst_vars
2295 do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in
2298 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 esac
2300 printf "%s\n" "$ac_var='\''$ac_val'\''"
2301 done | sort
2302 echo
2303
2304 if test -n "$ac_subst_files"; then
2305 printf "%s\n" "## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##"
2308 echo
2309 for ac_var in $ac_subst_files
2310 do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 printf "%s\n" "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2318 fi
2319
2320 if test -s confdefs.h; then
2321 printf "%s\n" "## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##"
2324 echo
2325 cat confdefs.h
2326 echo
2327 fi
2328 test "$ac_signal" != 0 &&
2329 printf "%s\n" "$as_me: caught signal $ac_signal"
2330 printf "%s\n" "$as_me: exit $exit_status"
2331 } >&5
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2334 exit $exit_status
2335 ' 0
2336 for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338 done
2339 ac_signal=0
2340
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2343
2344 printf "%s\n" "/* confdefs.h */" > confdefs.h
2345
2346 # Predefined preprocessor variables.
2347
2348 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2349
2350 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2351
2352 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2353
2354 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2355
2356 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2357
2358 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2359
2360
2361 # Let the site file select an alternate cache file if it wants to.
2362 # Prefer an explicitly selected file to automatically selected ones.
2363 if test -n "$CONFIG_SITE"; then
2364 ac_site_files="$CONFIG_SITE"
2365 elif test "x$prefix" != xNONE; then
2366 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2367 else
2368 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2369 fi
2370
2371 for ac_site_file in $ac_site_files
2372 do
2373 case $ac_site_file in #(
2374 */*) :
2375 ;; #(
2376 *) :
2377 ac_site_file=./$ac_site_file ;;
2378 esac
2379 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2381 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2382 sed 's/^/| /' "$ac_site_file" >&5
2383 . "$ac_site_file" \
2384 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2385 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2386 as_fn_error $? "failed to load site script $ac_site_file
2387 See 'config.log' for more details" "$LINENO" 5; }
2388 fi
2389 done
2390
2391 if test -r "$cache_file"; then
2392 # Some versions of bash will fail to source /dev/null (special files
2393 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2396 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2397 case $cache_file in
2398 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2399 *) . "./$cache_file";;
2400 esac
2401 fi
2402 else
2403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2404 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2405 >$cache_file
2406 fi
2407
2408 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2409 # Test code for whether the C compiler supports C89 (global declarations)
2410 ac_c_conftest_c89_globals='
2411 /* Does the compiler advertise C89 conformance?
2412 Do not test the value of __STDC__, because some compilers set it to 0
2413 while being otherwise adequately conformant. */
2414 #if !defined __STDC__
2415 # error "Compiler does not advertise C89 conformance"
2416 #endif
2417
2418 #include <stddef.h>
2419 #include <stdarg.h>
2420 struct stat;
2421 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2422 struct buf { int x; };
2423 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2424 static char *e (char **p, int i)
2425 {
2426 return p[i];
2427 }
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2429 {
2430 char *s;
2431 va_list v;
2432 va_start (v,p);
2433 s = g (p, va_arg (v,int));
2434 va_end (v);
2435 return s;
2436 }
2437
2438 /* C89 style stringification. */
2439 #define noexpand_stringify(a) #a
2440 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2441
2442 /* C89 style token pasting. Exercises some of the corner cases that
2443 e.g. old MSVC gets wrong, but not very hard. */
2444 #define noexpand_concat(a,b) a##b
2445 #define expand_concat(a,b) noexpand_concat(a,b)
2446 extern int vA;
2447 extern int vbee;
2448 #define aye A
2449 #define bee B
2450 int *pvA = &expand_concat(v,aye);
2451 int *pvbee = &noexpand_concat(v,bee);
2452
2453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2454 function prototypes and stuff, but not \xHH hex character constants.
2455 These do not provoke an error unfortunately, instead are silently treated
2456 as an "x". The following induces an error, until -std is added to get
2457 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2458 array size at least. It is necessary to write \x00 == 0 to get something
2459 that is true only with -std. */
2460 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2461
2462 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2463 inside strings and character constants. */
2464 #define FOO(x) '\''x'\''
2465 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2466
2467 int test (int i, double x);
2468 struct s1 {int (*f) (int a);};
2469 struct s2 {int (*f) (double a);};
2470 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2471 int, int);'
2472
2473 # Test code for whether the C compiler supports C89 (body of main).
2474 ac_c_conftest_c89_main='
2475 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2476 '
2477
2478 # Test code for whether the C compiler supports C99 (global declarations)
2479 ac_c_conftest_c99_globals='
2480 /* Does the compiler advertise C99 conformance? */
2481 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2482 # error "Compiler does not advertise C99 conformance"
2483 #endif
2484
2485 // See if C++-style comments work.
2486
2487 #include <stdbool.h>
2488 extern int puts (const char *);
2489 extern int printf (const char *, ...);
2490 extern int dprintf (int, const char *, ...);
2491 extern void *malloc (size_t);
2492 extern void free (void *);
2493
2494 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2495 // dprintf is used instead of fprintf to avoid needing to declare
2496 // FILE and stderr.
2497 #define debug(...) dprintf (2, __VA_ARGS__)
2498 #define showlist(...) puts (#__VA_ARGS__)
2499 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2500 static void
2501 test_varargs_macros (void)
2502 {
2503 int x = 1234;
2504 int y = 5678;
2505 debug ("Flag");
2506 debug ("X = %d\n", x);
2507 showlist (The first, second, and third items.);
2508 report (x>y, "x is %d but y is %d", x, y);
2509 }
2510
2511 // Check long long types.
2512 #define BIG64 18446744073709551615ull
2513 #define BIG32 4294967295ul
2514 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2515 #if !BIG_OK
2516 #error "your preprocessor is broken"
2517 #endif
2518 #if BIG_OK
2519 #else
2520 #error "your preprocessor is broken"
2521 #endif
2522 static long long int bignum = -9223372036854775807LL;
2523 static unsigned long long int ubignum = BIG64;
2524
2525 struct incomplete_array
2526 {
2527 int datasize;
2528 double data[];
2529 };
2530
2531 struct named_init {
2532 int number;
2533 const wchar_t *name;
2534 double average;
2535 };
2536
2537 typedef const char *ccp;
2538
2539 static inline int
2540 test_restrict (ccp restrict text)
2541 {
2542 // Iterate through items via the restricted pointer.
2543 // Also check for declarations in for loops.
2544 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2545 continue;
2546 return 0;
2547 }
2548
2549 // Check varargs and va_copy.
2550 static bool
2551 test_varargs (const char *format, ...)
2552 {
2553 va_list args;
2554 va_start (args, format);
2555 va_list args_copy;
2556 va_copy (args_copy, args);
2557
2558 const char *str = "";
2559 int number = 0;
2560 float fnumber = 0;
2561
2562 while (*format)
2563 {
2564 switch (*format++)
2565 {
2566 case '\''s'\'': // string
2567 str = va_arg (args_copy, const char *);
2568 break;
2569 case '\''d'\'': // int
2570 number = va_arg (args_copy, int);
2571 break;
2572 case '\''f'\'': // float
2573 fnumber = va_arg (args_copy, double);
2574 break;
2575 default:
2576 break;
2577 }
2578 }
2579 va_end (args_copy);
2580 va_end (args);
2581
2582 return *str && number && fnumber;
2583 }
2584 '
2585
2586 # Test code for whether the C compiler supports C99 (body of main).
2587 ac_c_conftest_c99_main='
2588 // Check bool.
2589 _Bool success = false;
2590 success |= (argc != 0);
2591
2592 // Check restrict.
2593 if (test_restrict ("String literal") == 0)
2594 success = true;
2595 char *restrict newvar = "Another string";
2596
2597 // Check varargs.
2598 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2599 test_varargs_macros ();
2600
2601 // Check flexible array members.
2602 struct incomplete_array *ia =
2603 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2604 ia->datasize = 10;
2605 for (int i = 0; i < ia->datasize; ++i)
2606 ia->data[i] = i * 1.234;
2607 // Work around memory leak warnings.
2608 free (ia);
2609
2610 // Check named initializers.
2611 struct named_init ni = {
2612 .number = 34,
2613 .name = L"Test wide string",
2614 .average = 543.34343,
2615 };
2616
2617 ni.number = 58;
2618
2619 int dynamic_array[ni.number];
2620 dynamic_array[0] = argv[0][0];
2621 dynamic_array[ni.number - 1] = 543;
2622
2623 // work around unused variable warnings
2624 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2625 || dynamic_array[ni.number - 1] != 543);
2626 '
2627
2628 # Test code for whether the C compiler supports C11 (global declarations)
2629 ac_c_conftest_c11_globals='
2630 /* Does the compiler advertise C11 conformance? */
2631 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2632 # error "Compiler does not advertise C11 conformance"
2633 #endif
2634
2635 // Check _Alignas.
2636 char _Alignas (double) aligned_as_double;
2637 char _Alignas (0) no_special_alignment;
2638 extern char aligned_as_int;
2639 char _Alignas (0) _Alignas (int) aligned_as_int;
2640
2641 // Check _Alignof.
2642 enum
2643 {
2644 int_alignment = _Alignof (int),
2645 int_array_alignment = _Alignof (int[100]),
2646 char_alignment = _Alignof (char)
2647 };
2648 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2649
2650 // Check _Noreturn.
2651 int _Noreturn does_not_return (void) { for (;;) continue; }
2652
2653 // Check _Static_assert.
2654 struct test_static_assert
2655 {
2656 int x;
2657 _Static_assert (sizeof (int) <= sizeof (long int),
2658 "_Static_assert does not work in struct");
2659 long int y;
2660 };
2661
2662 // Check UTF-8 literals.
2663 #define u8 syntax error!
2664 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2665
2666 // Check duplicate typedefs.
2667 typedef long *long_ptr;
2668 typedef long int *long_ptr;
2669 typedef long_ptr long_ptr;
2670
2671 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2672 struct anonymous
2673 {
2674 union {
2675 struct { int i; int j; };
2676 struct { int k; long int l; } w;
2677 };
2678 int m;
2679 } v1;
2680 '
2681
2682 # Test code for whether the C compiler supports C11 (body of main).
2683 ac_c_conftest_c11_main='
2684 _Static_assert ((offsetof (struct anonymous, i)
2685 == offsetof (struct anonymous, w.k)),
2686 "Anonymous union alignment botch");
2687 v1.i = 2;
2688 v1.w.k = 5;
2689 ok |= v1.i != 5;
2690 '
2691
2692 # Test code for whether the C compiler supports C11 (complete).
2693 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2694 ${ac_c_conftest_c99_globals}
2695 ${ac_c_conftest_c11_globals}
2696
2697 int
2698 main (int argc, char **argv)
2699 {
2700 int ok = 0;
2701 ${ac_c_conftest_c89_main}
2702 ${ac_c_conftest_c99_main}
2703 ${ac_c_conftest_c11_main}
2704 return ok;
2705 }
2706 "
2707
2708 # Test code for whether the C compiler supports C99 (complete).
2709 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2710 ${ac_c_conftest_c99_globals}
2711
2712 int
2713 main (int argc, char **argv)
2714 {
2715 int ok = 0;
2716 ${ac_c_conftest_c89_main}
2717 ${ac_c_conftest_c99_main}
2718 return ok;
2719 }
2720 "
2721
2722 # Test code for whether the C compiler supports C89 (complete).
2723 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2724
2725 int
2726 main (int argc, char **argv)
2727 {
2728 int ok = 0;
2729 ${ac_c_conftest_c89_main}
2730 return ok;
2731 }
2732 "
2733
2734 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2735 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2736 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2737 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2738 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2739 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2740 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2741 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2742 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2743 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2744
2745 # Auxiliary files required by this configure script.
2746 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2747
2748 # Locations in which to look for auxiliary files.
2749 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2750
2751 # Search for a directory containing all of the required auxiliary files,
2752 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2753 # If we don't find one directory that contains all the files we need,
2754 # we report the set of missing files from the *first* directory in
2755 # $ac_aux_dir_candidates and give up.
2756 ac_missing_aux_files=""
2757 ac_first_candidate=:
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 as_found=false
2761 for as_dir in $ac_aux_dir_candidates
2762 do
2763 IFS=$as_save_IFS
2764 case $as_dir in #(((
2765 '') as_dir=./ ;;
2766 */) ;;
2767 *) as_dir=$as_dir/ ;;
2768 esac
2769 as_found=:
2770
2771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2772 ac_aux_dir_found=yes
2773 ac_install_sh=
2774 for ac_aux in $ac_aux_files
2775 do
2776 # As a special case, if "install-sh" is required, that requirement
2777 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2778 # and $ac_install_sh is set appropriately for whichever one is found.
2779 if test x"$ac_aux" = x"install-sh"
2780 then
2781 if test -f "${as_dir}install-sh"; then
2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2783 ac_install_sh="${as_dir}install-sh -c"
2784 elif test -f "${as_dir}install.sh"; then
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2786 ac_install_sh="${as_dir}install.sh -c"
2787 elif test -f "${as_dir}shtool"; then
2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2789 ac_install_sh="${as_dir}shtool install -c"
2790 else
2791 ac_aux_dir_found=no
2792 if $ac_first_candidate; then
2793 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2794 else
2795 break
2796 fi
2797 fi
2798 else
2799 if test -f "${as_dir}${ac_aux}"; then
2800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2801 else
2802 ac_aux_dir_found=no
2803 if $ac_first_candidate; then
2804 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2805 else
2806 break
2807 fi
2808 fi
2809 fi
2810 done
2811 if test "$ac_aux_dir_found" = yes; then
2812 ac_aux_dir="$as_dir"
2813 break
2814 fi
2815 ac_first_candidate=false
2816
2817 as_found=false
2818 done
2819 IFS=$as_save_IFS
2820 if $as_found
2821 then :
2822
2823 else case e in #(
2824 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2825 esac
2826 fi
2827
2828
2829 # These three variables are undocumented and unsupported,
2830 # and are intended to be withdrawn in a future Autoconf release.
2831 # They can cause serious problems if a builder's source tree is in a directory
2832 # whose full name contains unusual characters.
2833 if test -f "${ac_aux_dir}config.guess"; then
2834 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2835 fi
2836 if test -f "${ac_aux_dir}config.sub"; then
2837 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2838 fi
2839 if test -f "$ac_aux_dir/configure"; then
2840 ac_configure="$SHELL ${ac_aux_dir}configure"
2841 fi
2842
2843 # Check that the precious variables saved in the cache have kept the same
2844 # value.
2845 ac_cache_corrupted=false
2846 for ac_var in $ac_precious_vars; do
2847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2848 eval ac_new_set=\$ac_env_${ac_var}_set
2849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2850 eval ac_new_val=\$ac_env_${ac_var}_value
2851 case $ac_old_set,$ac_new_set in
2852 set,)
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2854 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2855 ac_cache_corrupted=: ;;
2856 ,set)
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2858 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2859 ac_cache_corrupted=: ;;
2860 ,);;
2861 *)
2862 if test "x$ac_old_val" != "x$ac_new_val"; then
2863 # differences in whitespace do not lead to failure.
2864 ac_old_val_w=`echo x $ac_old_val`
2865 ac_new_val_w=`echo x $ac_new_val`
2866 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2868 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2869 ac_cache_corrupted=:
2870 else
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2872 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2873 eval $ac_var=\$ac_old_val
2874 fi
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2876 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2878 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2879 fi;;
2880 esac
2881 # Pass precious variables to config.status.
2882 if test "$ac_new_set" = set; then
2883 case $ac_new_val in
2884 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2885 *) ac_arg=$ac_var=$ac_new_val ;;
2886 esac
2887 case " $ac_configure_args " in
2888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2889 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2890 esac
2891 fi
2892 done
2893 if $ac_cache_corrupted; then
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2895 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2897 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2898 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2899 and start over" "$LINENO" 5
2900 fi
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913
2914
2915
2916
2917 am__api_version='1.18'
2918
2919
2920
2921 # Find a good install program. We prefer a C program (faster),
2922 # so one script is as good as another. But avoid the broken or
2923 # incompatible versions:
2924 # SysV /etc/install, /usr/sbin/install
2925 # SunOS /usr/etc/install
2926 # IRIX /sbin/install
2927 # AIX /bin/install
2928 # AmigaOS /C/install, which installs bootblocks on floppy discs
2929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2932 # OS/2's system install, which has a completely different semantic
2933 # ./install, which can be erroneously created by make from ./install.sh.
2934 # Reject install programs that cannot install multiple files.
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2936 printf %s "checking for a BSD-compatible install... " >&6; }
2937 if test -z "$INSTALL"; then
2938 if test ${ac_cv_path_install+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else case e in #(
2942 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 case $as_dir in #(((
2947 '') as_dir=./ ;;
2948 */) ;;
2949 *) as_dir=$as_dir/ ;;
2950 esac
2951 # Account for fact that we put trailing slashes in our PATH walk.
2952 case $as_dir in #((
2953 ./ | /[cC]/* | \
2954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2955 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2956 /usr/ucb/* ) ;;
2957 *)
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2960 # by default.
2961 for ac_prog in ginstall scoinst install; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2964 if test $ac_prog = install &&
2965 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # AIX install. It has an incompatible calling convention.
2967 :
2968 elif test $ac_prog = install &&
2969 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # program-specific install script used by HP pwplus--don't use.
2971 :
2972 else
2973 rm -rf conftest.one conftest.two conftest.dir
2974 echo one > conftest.one
2975 echo two > conftest.two
2976 mkdir conftest.dir
2977 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2978 test -s conftest.one && test -s conftest.two &&
2979 test -s conftest.dir/conftest.one &&
2980 test -s conftest.dir/conftest.two
2981 then
2982 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2983 break 3
2984 fi
2985 fi
2986 fi
2987 done
2988 done
2989 ;;
2990 esac
2991
2992 done
2993 IFS=$as_save_IFS
2994
2995 rm -rf conftest.one conftest.two conftest.dir
2996 ;;
2997 esac
2998 fi
2999 if test ${ac_cv_path_install+y}; then
3000 INSTALL=$ac_cv_path_install
3001 else
3002 # As a last resort, use the slow shell script. Don't cache a
3003 # value for INSTALL within a source directory, because that will
3004 # break other packages using the cache if that directory is
3005 # removed, or if the value is a relative name.
3006 INSTALL=$ac_install_sh
3007 fi
3008 fi
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3010 printf "%s\n" "$INSTALL" >&6; }
3011
3012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3013 # It thinks the first close brace ends the variable substitution.
3014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3015
3016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3017
3018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3019
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3021 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3022 if test ${am_cv_sleep_fractional_seconds+y}
3023 then :
3024 printf %s "(cached) " >&6
3025 else case e in #(
3026 e) if sleep 0.001 2>/dev/null
3027 then :
3028 am_cv_sleep_fractional_seconds=yes
3029 else case e in #(
3030 e) am_cv_sleep_fractional_seconds=no ;;
3031 esac
3032 fi
3033 ;;
3034 esac
3035 fi
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3037 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3038
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3040 printf %s "checking filesystem timestamp resolution... " >&6; }
3041 if test ${am_cv_filesystem_timestamp_resolution+y}
3042 then :
3043 printf %s "(cached) " >&6
3044 else case e in #(
3045 e) # Default to the worst case.
3046 am_cv_filesystem_timestamp_resolution=2
3047
3048 # Only try to go finer than 1 sec if sleep can do it.
3049 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3050 # - 1 sec is not much of a win compared to 2 sec, and
3051 # - it takes 2 seconds to perform the test whether 1 sec works.
3052 #
3053 # Instead, just use the default 2s on platforms that have 1s resolution,
3054 # accept the extra 1s delay when using $sleep in the Automake tests, in
3055 # exchange for not incurring the 2s delay for running the test for all
3056 # packages.
3057 #
3058 am_try_resolutions=
3059 if test "$am_cv_sleep_fractional_seconds" = yes; then
3060 # Even a millisecond often causes a bunch of false positives,
3061 # so just try a hundredth of a second. The time saved between .001 and
3062 # .01 is not terribly consequential.
3063 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3064 fi
3065
3066 # In order to catch current-generation FAT out, we must *modify* files
3067 # that already exist; the *creation* timestamp is finer. Use names
3068 # that make ls -t sort them differently when they have equal
3069 # timestamps than when they have distinct timestamps, keeping
3070 # in mind that ls -t prints the *newest* file first.
3071 rm -f conftest.ts?
3072 : > conftest.ts1
3073 : > conftest.ts2
3074 : > conftest.ts3
3075
3076 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3077 # clobber the current shell's arguments. (Outer-level square brackets
3078 # are removed by m4; they're present so that m4 does not expand
3079 # <dollar><star>; be careful, easy to get confused.)
3080 if (
3081 set X `ls -t conftest.ts[12]` &&
3082 {
3083 test "$*" != "X conftest.ts1 conftest.ts2" ||
3084 test "$*" != "X conftest.ts2 conftest.ts1";
3085 }
3086 ); then :; else
3087 # If neither matched, then we have a broken ls. This can happen
3088 # if, for instance, CONFIG_SHELL is bash and it inherits a
3089 # broken ls alias from the environment. This has actually
3090 # happened. Such a system could not be considered "sane".
3091 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3092 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3093 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3094 as_fn_error $? "ls -t produces unexpected output.
3095 Make sure there is not a broken ls alias in your environment.
3096 See 'config.log' for more details" "$LINENO" 5; }
3097 fi
3098
3099 for am_try_res in $am_try_resolutions; do
3100 # Any one fine-grained sleep might happen to cross the boundary
3101 # between two values of a coarser actual resolution, but if we do
3102 # two fine-grained sleeps in a row, at least one of them will fall
3103 # entirely within a coarse interval.
3104 echo alpha > conftest.ts1
3105 sleep $am_try_res
3106 echo beta > conftest.ts2
3107 sleep $am_try_res
3108 echo gamma > conftest.ts3
3109
3110 # We assume that 'ls -t' will make use of high-resolution
3111 # timestamps if the operating system supports them at all.
3112 if (set X `ls -t conftest.ts?` &&
3113 test "$2" = conftest.ts3 &&
3114 test "$3" = conftest.ts2 &&
3115 test "$4" = conftest.ts1); then
3116 #
3117 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3118 # because we don't need to test make.
3119 make_ok=true
3120 if test $am_try_res != 1; then
3121 # But if we've succeeded so far with a subsecond resolution, we
3122 # have one more thing to check: make. It can happen that
3123 # everything else supports the subsecond mtimes, but make doesn't;
3124 # notably on macOS, which ships make 3.81 from 2006 (the last one
3125 # released under GPLv2). https://bugs.gnu.org/68808
3126 #
3127 # We test $MAKE if it is defined in the environment, else "make".
3128 # It might get overridden later, but our hope is that in practice
3129 # it does not matter: it is the system "make" which is (by far)
3130 # the most likely to be broken, whereas if the user overrides it,
3131 # probably they did so with a better, or at least not worse, make.
3132 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3133 #
3134 # Create a Makefile (real tab character here):
3135 rm -f conftest.mk
3136 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3137 echo ' touch conftest.ts2' >>conftest.mk
3138 #
3139 # Now, running
3140 # touch conftest.ts1; touch conftest.ts2; make
3141 # should touch ts1 because ts2 is newer. This could happen by luck,
3142 # but most often, it will fail if make's support is insufficient. So
3143 # test for several consecutive successes.
3144 #
3145 # (We reuse conftest.ts[12] because we still want to modify existing
3146 # files, not create new ones, per above.)
3147 n=0
3148 make=${MAKE-make}
3149 until test $n -eq 3; do
3150 echo one > conftest.ts1
3151 sleep $am_try_res
3152 echo two > conftest.ts2 # ts2 should now be newer than ts1
3153 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3154 make_ok=false
3155 break # out of $n loop
3156 fi
3157 n=`expr $n + 1`
3158 done
3159 fi
3160 #
3161 if $make_ok; then
3162 # Everything we know to check worked out, so call this resolution good.
3163 am_cv_filesystem_timestamp_resolution=$am_try_res
3164 break # out of $am_try_res loop
3165 fi
3166 # Otherwise, we'll go on to check the next resolution.
3167 fi
3168 done
3169 rm -f conftest.ts?
3170 # (end _am_filesystem_timestamp_resolution)
3171 ;;
3172 esac
3173 fi
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3175 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3176
3177 # This check should not be cached, as it may vary across builds of
3178 # different projects.
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3180 printf %s "checking whether build environment is sane... " >&6; }
3181 # Reject unsafe characters in $srcdir or the absolute working directory
3182 # name. Accept space and tab only in the latter.
3183 am_lf='
3184 '
3185 case `pwd` in
3186 *[\\\"\#\$\&\'\`$am_lf]*)
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 printf "%s\n" "no" >&6; }
3189 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3190 esac
3191 case $srcdir in
3192 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 printf "%s\n" "no" >&6; }
3195 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3196 esac
3197
3198 # Do 'set' in a subshell so we don't clobber the current shell's
3199 # arguments. Must try -L first in case configure is actually a
3200 # symlink; some systems play weird games with the mod time of symlinks
3201 # (eg FreeBSD returns the mod time of the symlink's containing
3202 # directory).
3203 am_build_env_is_sane=no
3204 am_has_slept=no
3205 rm -f conftest.file
3206 for am_try in 1 2; do
3207 echo "timestamp, slept: $am_has_slept" > conftest.file
3208 if (
3209 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3210 if test "$*" = "X"; then
3211 # -L didn't work.
3212 set X `ls -t "$srcdir/configure" conftest.file`
3213 fi
3214 test "$2" = conftest.file
3215 ); then
3216 am_build_env_is_sane=yes
3217 break
3218 fi
3219 # Just in case.
3220 sleep "$am_cv_filesystem_timestamp_resolution"
3221 am_has_slept=yes
3222 done
3223
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3225 printf "%s\n" "$am_build_env_is_sane" >&6; }
3226 if test "$am_build_env_is_sane" = no; then
3227 as_fn_error $? "newly created file is older than distributed files!
3228 Check your system clock" "$LINENO" 5
3229 fi
3230
3231 # If we didn't sleep, we still need to ensure time stamps of config.status and
3232 # generated files are strictly newer.
3233 am_sleep_pid=
3234 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3235 then :
3236
3237 else case e in #(
3238 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3239 am_sleep_pid=$!
3240 ;;
3241 esac
3242 fi
3243
3244 rm -f conftest.file
3245
3246 test "$program_prefix" != NONE &&
3247 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3248 # Use a double $ so make ignores it.
3249 test "$program_suffix" != NONE &&
3250 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3251 # Double any \ or $.
3252 # By default was 's,x,x', remove it if useless.
3253 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3254 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3255
3256
3257 # Expand $ac_aux_dir to an absolute path.
3258 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3259
3260
3261 if test x"${MISSING+set}" != xset; then
3262 MISSING="\${SHELL} '$am_aux_dir/missing'"
3263 fi
3264 # Use eval to expand $SHELL
3265 if eval "$MISSING --is-lightweight"; then
3266 am_missing_run="$MISSING "
3267 else
3268 am_missing_run=
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3270 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3271 fi
3272
3273 if test x"${install_sh+set}" != xset; then
3274 case $am_aux_dir in
3275 *\ * | *\ *)
3276 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3277 *)
3278 install_sh="\${SHELL} $am_aux_dir/install-sh"
3279 esac
3280 fi
3281
3282 # Installed binaries are usually stripped using 'strip' when the user
3283 # run "make install-strip". However 'strip' might not be the right
3284 # tool to use in cross-compilation environments, therefore Automake
3285 # will honor the 'STRIP' environment variable to overrule this program.
3286 if test "$cross_compiling" != no; then
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3289 set dummy ${ac_tool_prefix}strip; ac_word=$2
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 printf %s "checking for $ac_word... " >&6; }
3292 if test ${ac_cv_prog_STRIP+y}
3293 then :
3294 printf %s "(cached) " >&6
3295 else case e in #(
3296 e) if test -n "$STRIP"; then
3297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 case $as_dir in #(((
3304 '') as_dir=./ ;;
3305 */) ;;
3306 *) as_dir=$as_dir/ ;;
3307 esac
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3317
3318 fi ;;
3319 esac
3320 fi
3321 STRIP=$ac_cv_prog_STRIP
3322 if test -n "$STRIP"; then
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3324 printf "%s\n" "$STRIP" >&6; }
3325 else
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 printf "%s\n" "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$ac_cv_prog_STRIP"; then
3333 ac_ct_STRIP=$STRIP
3334 # Extract the first word of "strip", so it can be a program name with args.
3335 set dummy strip; ac_word=$2
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 printf %s "checking for $ac_word... " >&6; }
3338 if test ${ac_cv_prog_ac_ct_STRIP+y}
3339 then :
3340 printf %s "(cached) " >&6
3341 else case e in #(
3342 e) if test -n "$ac_ct_STRIP"; then
3343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 case $as_dir in #(((
3350 '') as_dir=./ ;;
3351 */) ;;
3352 *) as_dir=$as_dir/ ;;
3353 esac
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_STRIP="strip"
3357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi ;;
3365 esac
3366 fi
3367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3368 if test -n "$ac_ct_STRIP"; then
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3370 printf "%s\n" "$ac_ct_STRIP" >&6; }
3371 else
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 printf "%s\n" "no" >&6; }
3374 fi
3375
3376 if test "x$ac_ct_STRIP" = x; then
3377 STRIP=":"
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385 STRIP=$ac_ct_STRIP
3386 fi
3387 else
3388 STRIP="$ac_cv_prog_STRIP"
3389 fi
3390
3391 fi
3392 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3393
3394
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3396 printf %s "checking for a race-free mkdir -p... " >&6; }
3397 if test -z "$MKDIR_P"; then
3398 if test ${ac_cv_path_mkdir+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else case e in #(
3402 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3404 do
3405 IFS=$as_save_IFS
3406 case $as_dir in #(((
3407 '') as_dir=./ ;;
3408 */) ;;
3409 *) as_dir=$as_dir/ ;;
3410 esac
3411 for ac_prog in mkdir gmkdir; do
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3414 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3415 'mkdir ('*'coreutils) '* | \
3416 *'BusyBox '* | \
3417 'mkdir (fileutils) '4.1*)
3418 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3419 break 3;;
3420 esac
3421 done
3422 done
3423 done
3424 IFS=$as_save_IFS
3425 ;;
3426 esac
3427 fi
3428
3429 test -d ./--version && rmdir ./--version
3430 if test ${ac_cv_path_mkdir+y}; then
3431 MKDIR_P="$ac_cv_path_mkdir -p"
3432 else
3433 # As a last resort, use plain mkdir -p,
3434 # in the hope it doesn't have the bugs of ancient mkdir.
3435 MKDIR_P='mkdir -p'
3436 fi
3437 fi
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3439 printf "%s\n" "$MKDIR_P" >&6; }
3440
3441 for ac_prog in gawk mawk nawk awk
3442 do
3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
3444 set dummy $ac_prog; ac_word=$2
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 printf %s "checking for $ac_word... " >&6; }
3447 if test ${ac_cv_prog_AWK+y}
3448 then :
3449 printf %s "(cached) " >&6
3450 else case e in #(
3451 e) if test -n "$AWK"; then
3452 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3456 do
3457 IFS=$as_save_IFS
3458 case $as_dir in #(((
3459 '') as_dir=./ ;;
3460 */) ;;
3461 *) as_dir=$as_dir/ ;;
3462 esac
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_AWK="$ac_prog"
3466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi ;;
3474 esac
3475 fi
3476 AWK=$ac_cv_prog_AWK
3477 if test -n "$AWK"; then
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3479 printf "%s\n" "$AWK" >&6; }
3480 else
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 printf "%s\n" "no" >&6; }
3483 fi
3484
3485
3486 test -n "$AWK" && break
3487 done
3488
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3490 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3491 set x ${MAKE-make}
3492 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3493 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3494 then :
3495 printf %s "(cached) " >&6
3496 else case e in #(
3497 e) cat >conftest.make <<\_ACEOF
3498 SHELL = /bin/sh
3499 all:
3500 @echo '@@@%%%=$(MAKE)=@@@%%%'
3501 _ACEOF
3502 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3503 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3504 *@@@%%%=?*=@@@%%%*)
3505 eval ac_cv_prog_make_${ac_make}_set=yes;;
3506 *)
3507 eval ac_cv_prog_make_${ac_make}_set=no;;
3508 esac
3509 rm -f conftest.make ;;
3510 esac
3511 fi
3512 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514 printf "%s\n" "yes" >&6; }
3515 SET_MAKE=
3516 else
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 printf "%s\n" "no" >&6; }
3519 SET_MAKE="MAKE=${MAKE-make}"
3520 fi
3521
3522 rm -rf .tst 2>/dev/null
3523 mkdir .tst 2>/dev/null
3524 if test -d .tst; then
3525 am__leading_dot=.
3526 else
3527 am__leading_dot=_
3528 fi
3529 rmdir .tst 2>/dev/null
3530
3531 AM_DEFAULT_VERBOSITY=1
3532 # Check whether --enable-silent-rules was given.
3533 if test ${enable_silent_rules+y}
3534 then :
3535 enableval=$enable_silent_rules;
3536 fi
3537
3538 am_make=${MAKE-make}
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3540 printf %s "checking whether $am_make supports nested variables... " >&6; }
3541 if test ${am_cv_make_support_nested_variables+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else case e in #(
3545 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3546 BAR0=false
3547 BAR1=true
3548 V=1
3549 am__doit:
3550 @$(TRUE)
3551 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3552 am_cv_make_support_nested_variables=yes
3553 else
3554 am_cv_make_support_nested_variables=no
3555 fi ;;
3556 esac
3557 fi
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3559 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3560 AM_BACKSLASH='\'
3561
3562 am__rm_f_notfound=
3563 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3564 then :
3565
3566 else case e in #(
3567 e) am__rm_f_notfound='""' ;;
3568 esac
3569 fi
3570
3571
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3573 printf %s "checking xargs -n works... " >&6; }
3574 if test ${am_cv_xargs_n_works+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else case e in #(
3578 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3579 3"
3580 then :
3581 am_cv_xargs_n_works=yes
3582 else case e in #(
3583 e) am_cv_xargs_n_works=no ;;
3584 esac
3585 fi ;;
3586 esac
3587 fi
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3589 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3590 if test "$am_cv_xargs_n_works" = yes
3591 then :
3592 am__xargs_n='xargs -n'
3593 else case e in #(
3594 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3595 ;;
3596 esac
3597 fi
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608 DEPDIR="${am__leading_dot}deps"
3609
3610 ac_config_commands="$ac_config_commands depfiles"
3611
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3613 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3614 cat > confinc.mk << 'END'
3615 am__doit:
3616 @echo this is the am__doit target >confinc.out
3617 .PHONY: am__doit
3618 END
3619 am__include="#"
3620 am__quote=
3621 # BSD make does it like this.
3622 echo '.include "confinc.mk" # ignored' > confmf.BSD
3623 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3624 echo 'include confinc.mk # ignored' > confmf.GNU
3625 _am_result=no
3626 for s in GNU BSD; do
3627 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3628 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }
3632 case $?:`cat confinc.out 2>/dev/null` in #(
3633 '0:this is the am__doit target') :
3634 case $s in #(
3635 BSD) :
3636 am__include='.include' am__quote='"' ;; #(
3637 *) :
3638 am__include='include' am__quote='' ;;
3639 esac ;; #(
3640 *) :
3641 ;;
3642 esac
3643 if test "$am__include" != "#"; then
3644 _am_result="yes ($s style)"
3645 break
3646 fi
3647 done
3648 rm -f confinc.* confmf.*
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3650 printf "%s\n" "${_am_result}" >&6; }
3651
3652 # Check whether --enable-dependency-tracking was given.
3653 if test ${enable_dependency_tracking+y}
3654 then :
3655 enableval=$enable_dependency_tracking;
3656 fi
3657
3658 if test "x$enable_dependency_tracking" != xno; then
3659 am_depcomp="$ac_aux_dir/depcomp"
3660 AMDEPBACKSLASH='\'
3661 am__nodep='_no'
3662 fi
3663 if test "x$enable_dependency_tracking" != xno; then
3664 AMDEP_TRUE=
3665 AMDEP_FALSE='#'
3666 else
3667 AMDEP_TRUE='#'
3668 AMDEP_FALSE=
3669 fi
3670
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 printf %s "checking for $ac_word... " >&6; }
3682 if test ${ac_cv_prog_CC+y}
3683 then :
3684 printf %s "(cached) " >&6
3685 else case e in #(
3686 e) if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 case $as_dir in #(((
3694 '') as_dir=./ ;;
3695 */) ;;
3696 *) as_dir=$as_dir/ ;;
3697 esac
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi ;;
3709 esac
3710 fi
3711 CC=$ac_cv_prog_CC
3712 if test -n "$CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 printf "%s\n" "$CC" >&6; }
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3718 fi
3719
3720
3721 fi
3722 if test -z "$ac_cv_prog_CC"; then
3723 ac_ct_CC=$CC
3724 # Extract the first word of "gcc", so it can be a program name with args.
3725 set dummy gcc; ac_word=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s "checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_ac_ct_CC+y}
3729 then :
3730 printf %s "(cached) " >&6
3731 else case e in #(
3732 e) if test -n "$ac_ct_CC"; then
3733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738 IFS=$as_save_IFS
3739 case $as_dir in #(((
3740 '') as_dir=./ ;;
3741 */) ;;
3742 *) as_dir=$as_dir/ ;;
3743 esac
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_ac_ct_CC="gcc"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi ;;
3755 esac
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 printf "%s\n" "$ac_ct_CC" >&6; }
3761 else
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764 fi
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 else
3778 CC="$ac_cv_prog_CC"
3779 fi
3780
3781 if test -z "$CC"; then
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}cc; ac_word=$2
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 printf %s "checking for $ac_word... " >&6; }
3787 if test ${ac_cv_prog_CC+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else case e in #(
3791 e) if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 case $as_dir in #(((
3799 '') as_dir=./ ;;
3800 */) ;;
3801 *) as_dir=$as_dir/ ;;
3802 esac
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_CC="${ac_tool_prefix}cc"
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi ;;
3814 esac
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 printf "%s\n" "$CC" >&6; }
3820 else
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 fi
3828 if test -z "$CC"; then
3829 # Extract the first word of "cc", so it can be a program name with args.
3830 set dummy cc; ac_word=$2
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 printf %s "checking for $ac_word... " >&6; }
3833 if test ${ac_cv_prog_CC+y}
3834 then :
3835 printf %s "(cached) " >&6
3836 else case e in #(
3837 e) if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840 ac_prog_rejected=no
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 case $as_dir in #(((
3846 '') as_dir=./ ;;
3847 */) ;;
3848 *) as_dir=$as_dir/ ;;
3849 esac
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3852 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected=yes
3854 continue
3855 fi
3856 ac_cv_prog_CC="cc"
3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3858 break 2
3859 fi
3860 done
3861 done
3862 IFS=$as_save_IFS
3863
3864 if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy $ac_cv_prog_CC
3867 shift
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3872 shift
3873 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3874 fi
3875 fi
3876 fi ;;
3877 esac
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 printf "%s\n" "$CC" >&6; }
3883 else
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 printf "%s\n" "no" >&6; }
3886 fi
3887
3888
3889 fi
3890 if test -z "$CC"; then
3891 if test -n "$ac_tool_prefix"; then
3892 for ac_prog in cl.exe
3893 do
3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 printf %s "checking for $ac_word... " >&6; }
3898 if test ${ac_cv_prog_CC+y}
3899 then :
3900 printf %s "(cached) " >&6
3901 else case e in #(
3902 e) if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 case $as_dir in #(((
3910 '') as_dir=./ ;;
3911 */) ;;
3912 *) as_dir=$as_dir/ ;;
3913 esac
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 fi ;;
3925 esac
3926 fi
3927 CC=$ac_cv_prog_CC
3928 if test -n "$CC"; then
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3930 printf "%s\n" "$CC" >&6; }
3931 else
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 printf "%s\n" "no" >&6; }
3934 fi
3935
3936
3937 test -n "$CC" && break
3938 done
3939 fi
3940 if test -z "$CC"; then
3941 ac_ct_CC=$CC
3942 for ac_prog in cl.exe
3943 do
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 printf %s "checking for $ac_word... " >&6; }
3948 if test ${ac_cv_prog_ac_ct_CC+y}
3949 then :
3950 printf %s "(cached) " >&6
3951 else case e in #(
3952 e) if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 case $as_dir in #(((
3960 '') as_dir=./ ;;
3961 */) ;;
3962 *) as_dir=$as_dir/ ;;
3963 esac
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_CC="$ac_prog"
3967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970 done
3971 done
3972 IFS=$as_save_IFS
3973
3974 fi ;;
3975 esac
3976 fi
3977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3978 if test -n "$ac_ct_CC"; then
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3980 printf "%s\n" "$ac_ct_CC" >&6; }
3981 else
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 printf "%s\n" "no" >&6; }
3984 fi
3985
3986
3987 test -n "$ac_ct_CC" && break
3988 done
3989
3990 if test "x$ac_ct_CC" = x; then
3991 CC=""
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994 yes:)
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997 ac_tool_warned=yes ;;
3998 esac
3999 CC=$ac_ct_CC
4000 fi
4001 fi
4002
4003 fi
4004 if test -z "$CC"; then
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}clang; ac_word=$2
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 printf %s "checking for $ac_word... " >&6; }
4010 if test ${ac_cv_prog_CC+y}
4011 then :
4012 printf %s "(cached) " >&6
4013 else case e in #(
4014 e) if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 case $as_dir in #(((
4022 '') as_dir=./ ;;
4023 */) ;;
4024 *) as_dir=$as_dir/ ;;
4025 esac
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_CC="${ac_tool_prefix}clang"
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032 done
4033 done
4034 IFS=$as_save_IFS
4035
4036 fi ;;
4037 esac
4038 fi
4039 CC=$ac_cv_prog_CC
4040 if test -n "$CC"; then
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4042 printf "%s\n" "$CC" >&6; }
4043 else
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 printf "%s\n" "no" >&6; }
4046 fi
4047
4048
4049 fi
4050 if test -z "$ac_cv_prog_CC"; then
4051 ac_ct_CC=$CC
4052 # Extract the first word of "clang", so it can be a program name with args.
4053 set dummy clang; ac_word=$2
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 printf %s "checking for $ac_word... " >&6; }
4056 if test ${ac_cv_prog_ac_ct_CC+y}
4057 then :
4058 printf %s "(cached) " >&6
4059 else case e in #(
4060 e) if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 case $as_dir in #(((
4068 '') as_dir=./ ;;
4069 */) ;;
4070 *) as_dir=$as_dir/ ;;
4071 esac
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_CC="clang"
4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4076 break 2
4077 fi
4078 done
4079 done
4080 IFS=$as_save_IFS
4081
4082 fi ;;
4083 esac
4084 fi
4085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4086 if test -n "$ac_ct_CC"; then
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4088 printf "%s\n" "$ac_ct_CC" >&6; }
4089 else
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 printf "%s\n" "no" >&6; }
4092 fi
4093
4094 if test "x$ac_ct_CC" = x; then
4095 CC=""
4096 else
4097 case $cross_compiling:$ac_tool_warned in
4098 yes:)
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4101 ac_tool_warned=yes ;;
4102 esac
4103 CC=$ac_ct_CC
4104 fi
4105 else
4106 CC="$ac_cv_prog_CC"
4107 fi
4108
4109 fi
4110
4111
4112 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4114 as_fn_error $? "no acceptable C compiler found in \$PATH
4115 See 'config.log' for more details" "$LINENO" 5; }
4116
4117 # Provide some information about the compiler.
4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4119 set X $ac_compile
4120 ac_compiler=$2
4121 for ac_option in --version -v -V -qversion -version; do
4122 { { ac_try="$ac_compiler $ac_option >&5"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 printf "%s\n" "$ac_try_echo"; } >&5
4129 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4130 ac_status=$?
4131 if test -s conftest.err; then
4132 sed '10a\
4133 ... rest of stderr output deleted ...
4134 10q' conftest.err >conftest.er1
4135 cat conftest.er1 >&5
4136 fi
4137 rm -f conftest.er1 conftest.err
4138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }
4140 done
4141
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 int
4146 main (void)
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 ac_clean_files_save=$ac_clean_files
4154 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4155 # Try to create an executable without -o first, disregard a.out.
4156 # It will help us diagnose broken compilers, and finding out an intuition
4157 # of exeext.
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4159 printf %s "checking whether the C compiler works... " >&6; }
4160 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4161
4162 # The possible output files:
4163 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4164
4165 ac_rmfiles=
4166 for ac_file in $ac_files
4167 do
4168 case $ac_file in
4169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4170 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4171 esac
4172 done
4173 rm -f $ac_rmfiles
4174
4175 if { { ac_try="$ac_link_default"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 printf "%s\n" "$ac_try_echo"; } >&5
4182 (eval "$ac_link_default") 2>&5
4183 ac_status=$?
4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }
4186 then :
4187 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4188 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4190 # so that the user can short-circuit this test for compilers unknown to
4191 # Autoconf.
4192 for ac_file in $ac_files ''
4193 do
4194 test -f "$ac_file" || continue
4195 case $ac_file in
4196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4197 ;;
4198 [ab].out )
4199 # We found the default executable, but exeext='' is most
4200 # certainly right.
4201 break;;
4202 *.* )
4203 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4204 then :; else
4205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4206 fi
4207 # We set ac_cv_exeext here because the later test for it is not
4208 # safe: cross compilers may not add the suffix if given an '-o'
4209 # argument, so we may need to know it at that point already.
4210 # Even if this section looks crufty: it has the advantage of
4211 # actually working.
4212 break;;
4213 * )
4214 break;;
4215 esac
4216 done
4217 test "$ac_cv_exeext" = no && ac_cv_exeext=
4218
4219 else case e in #(
4220 e) ac_file='' ;;
4221 esac
4222 fi
4223 if test -z "$ac_file"
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 printf "%s\n" "no" >&6; }
4227 printf "%s\n" "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4231 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4232 as_fn_error 77 "C compiler cannot create executables
4233 See 'config.log' for more details" "$LINENO" 5; }
4234 else case e in #(
4235 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236 printf "%s\n" "yes" >&6; } ;;
4237 esac
4238 fi
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4240 printf %s "checking for C compiler default output file name... " >&6; }
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4242 printf "%s\n" "$ac_file" >&6; }
4243 ac_exeext=$ac_cv_exeext
4244
4245 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4246 ac_clean_files=$ac_clean_files_save
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4248 printf %s "checking for suffix of executables... " >&6; }
4249 if { { ac_try="$ac_link"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 printf "%s\n" "$ac_try_echo"; } >&5
4256 (eval "$ac_link") 2>&5
4257 ac_status=$?
4258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; }
4260 then :
4261 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4262 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4263 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4264 # 'rm'.
4265 for ac_file in conftest.exe conftest conftest.*; do
4266 test -f "$ac_file" || continue
4267 case $ac_file in
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4270 break;;
4271 * ) break;;
4272 esac
4273 done
4274 else case e in #(
4275 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4276 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4277 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4278 See 'config.log' for more details" "$LINENO" 5; } ;;
4279 esac
4280 fi
4281 rm -f conftest conftest$ac_cv_exeext
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4283 printf "%s\n" "$ac_cv_exeext" >&6; }
4284
4285 rm -f conftest.$ac_ext
4286 EXEEXT=$ac_cv_exeext
4287 ac_exeext=$EXEEXT
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #include <stdio.h>
4291 int
4292 main (void)
4293 {
4294 FILE *f = fopen ("conftest.out", "w");
4295 if (!f)
4296 return 1;
4297 return ferror (f) || fclose (f) != 0;
4298
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 ac_clean_files="$ac_clean_files conftest.out"
4304 # Check that the compiler produces executables we can run. If not, either
4305 # the compiler is broken, or we cross compile.
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4307 printf %s "checking whether we are cross compiling... " >&6; }
4308 if test "$cross_compiling" != yes; then
4309 { { ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 printf "%s\n" "$ac_try_echo"; } >&5
4316 (eval "$ac_link") 2>&5
4317 ac_status=$?
4318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320 if { ac_try='./conftest$ac_cv_exeext'
4321 { { case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 printf "%s\n" "$ac_try_echo"; } >&5
4327 (eval "$ac_try") 2>&5
4328 ac_status=$?
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; }; then
4331 cross_compiling=no
4332 else
4333 if test "$cross_compiling" = maybe; then
4334 cross_compiling=yes
4335 else
4336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4337 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4338 as_fn_error 77 "cannot run C compiled programs.
4339 If you meant to cross compile, use '--host'.
4340 See 'config.log' for more details" "$LINENO" 5; }
4341 fi
4342 fi
4343 fi
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4345 printf "%s\n" "$cross_compiling" >&6; }
4346
4347 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4348 conftest.o conftest.obj conftest.out
4349 ac_clean_files=$ac_clean_files_save
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4351 printf %s "checking for suffix of object files... " >&6; }
4352 if test ${ac_cv_objext+y}
4353 then :
4354 printf %s "(cached) " >&6
4355 else case e in #(
4356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358
4359 int
4360 main (void)
4361 {
4362
4363 ;
4364 return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest.o conftest.obj
4368 if { { ac_try="$ac_compile"
4369 case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372 esac
4373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 printf "%s\n" "$ac_try_echo"; } >&5
4375 (eval "$ac_compile") 2>&5
4376 ac_status=$?
4377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }
4379 then :
4380 for ac_file in conftest.o conftest.obj conftest.*; do
4381 test -f "$ac_file" || continue;
4382 case $ac_file in
4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4385 break;;
4386 esac
4387 done
4388 else case e in #(
4389 e) printf "%s\n" "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4393 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4394 as_fn_error $? "cannot compute suffix of object files: cannot compile
4395 See 'config.log' for more details" "$LINENO" 5; } ;;
4396 esac
4397 fi
4398 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4399 esac
4400 fi
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4402 printf "%s\n" "$ac_cv_objext" >&6; }
4403 OBJEXT=$ac_cv_objext
4404 ac_objext=$OBJEXT
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4406 printf %s "checking whether the compiler supports GNU C... " >&6; }
4407 if test ${ac_cv_c_compiler_gnu+y}
4408 then :
4409 printf %s "(cached) " >&6
4410 else case e in #(
4411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main (void)
4416 {
4417 #ifndef __GNUC__
4418 choke me
4419 #endif
4420
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_c_try_compile "$LINENO"
4426 then :
4427 ac_compiler_gnu=yes
4428 else case e in #(
4429 e) ac_compiler_gnu=no ;;
4430 esac
4431 fi
4432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4434 ;;
4435 esac
4436 fi
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4438 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441 if test $ac_compiler_gnu = yes; then
4442 GCC=yes
4443 else
4444 GCC=
4445 fi
4446 ac_test_CFLAGS=${CFLAGS+y}
4447 ac_save_CFLAGS=$CFLAGS
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4449 printf %s "checking whether $CC accepts -g... " >&6; }
4450 if test ${ac_cv_prog_cc_g+y}
4451 then :
4452 printf %s "(cached) " >&6
4453 else case e in #(
4454 e) ac_save_c_werror_flag=$ac_c_werror_flag
4455 ac_c_werror_flag=yes
4456 ac_cv_prog_cc_g=no
4457 CFLAGS="-g"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460
4461 int
4462 main (void)
4463 {
4464
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"
4470 then :
4471 ac_cv_prog_cc_g=yes
4472 else case e in #(
4473 e) CFLAGS=""
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476
4477 int
4478 main (void)
4479 {
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 if ac_fn_c_try_compile "$LINENO"
4486 then :
4487
4488 else case e in #(
4489 e) ac_c_werror_flag=$ac_save_c_werror_flag
4490 CFLAGS="-g"
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 int
4495 main (void)
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"
4503 then :
4504 ac_cv_prog_cc_g=yes
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4507 esac
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4510 esac
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4513 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4514 esac
4515 fi
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4517 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4518 if test $ac_test_CFLAGS; then
4519 CFLAGS=$ac_save_CFLAGS
4520 elif test $ac_cv_prog_cc_g = yes; then
4521 if test "$GCC" = yes; then
4522 CFLAGS="-g -O2"
4523 else
4524 CFLAGS="-g"
4525 fi
4526 else
4527 if test "$GCC" = yes; then
4528 CFLAGS="-O2"
4529 else
4530 CFLAGS=
4531 fi
4532 fi
4533 ac_prog_cc_stdc=no
4534 if test x$ac_prog_cc_stdc = xno
4535 then :
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4537 printf %s "checking for $CC option to enable C11 features... " >&6; }
4538 if test ${ac_cv_prog_cc_c11+y}
4539 then :
4540 printf %s "(cached) " >&6
4541 else case e in #(
4542 e) ac_cv_prog_cc_c11=no
4543 ac_save_CC=$CC
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 $ac_c_conftest_c11_program
4547 _ACEOF
4548 for ac_arg in '' -std=gnu11
4549 do
4550 CC="$ac_save_CC $ac_arg"
4551 if ac_fn_c_try_compile "$LINENO"
4552 then :
4553 ac_cv_prog_cc_c11=$ac_arg
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext conftest.beam
4556 test "x$ac_cv_prog_cc_c11" != "xno" && break
4557 done
4558 rm -f conftest.$ac_ext
4559 CC=$ac_save_CC ;;
4560 esac
4561 fi
4562
4563 if test "x$ac_cv_prog_cc_c11" = xno
4564 then :
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4566 printf "%s\n" "unsupported" >&6; }
4567 else case e in #(
4568 e) if test "x$ac_cv_prog_cc_c11" = x
4569 then :
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4571 printf "%s\n" "none needed" >&6; }
4572 else case e in #(
4573 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4574 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4575 CC="$CC $ac_cv_prog_cc_c11" ;;
4576 esac
4577 fi
4578 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4579 ac_prog_cc_stdc=c11 ;;
4580 esac
4581 fi
4582 fi
4583 if test x$ac_prog_cc_stdc = xno
4584 then :
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4586 printf %s "checking for $CC option to enable C99 features... " >&6; }
4587 if test ${ac_cv_prog_cc_c99+y}
4588 then :
4589 printf %s "(cached) " >&6
4590 else case e in #(
4591 e) ac_cv_prog_cc_c99=no
4592 ac_save_CC=$CC
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 $ac_c_conftest_c99_program
4596 _ACEOF
4597 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4598 do
4599 CC="$ac_save_CC $ac_arg"
4600 if ac_fn_c_try_compile "$LINENO"
4601 then :
4602 ac_cv_prog_cc_c99=$ac_arg
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.beam
4605 test "x$ac_cv_prog_cc_c99" != "xno" && break
4606 done
4607 rm -f conftest.$ac_ext
4608 CC=$ac_save_CC ;;
4609 esac
4610 fi
4611
4612 if test "x$ac_cv_prog_cc_c99" = xno
4613 then :
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4615 printf "%s\n" "unsupported" >&6; }
4616 else case e in #(
4617 e) if test "x$ac_cv_prog_cc_c99" = x
4618 then :
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620 printf "%s\n" "none needed" >&6; }
4621 else case e in #(
4622 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4623 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4624 CC="$CC $ac_cv_prog_cc_c99" ;;
4625 esac
4626 fi
4627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4628 ac_prog_cc_stdc=c99 ;;
4629 esac
4630 fi
4631 fi
4632 if test x$ac_prog_cc_stdc = xno
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4635 printf %s "checking for $CC option to enable C89 features... " >&6; }
4636 if test ${ac_cv_prog_cc_c89+y}
4637 then :
4638 printf %s "(cached) " >&6
4639 else case e in #(
4640 e) ac_cv_prog_cc_c89=no
4641 ac_save_CC=$CC
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 $ac_c_conftest_c89_program
4645 _ACEOF
4646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4647 do
4648 CC="$ac_save_CC $ac_arg"
4649 if ac_fn_c_try_compile "$LINENO"
4650 then :
4651 ac_cv_prog_cc_c89=$ac_arg
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.beam
4654 test "x$ac_cv_prog_cc_c89" != "xno" && break
4655 done
4656 rm -f conftest.$ac_ext
4657 CC=$ac_save_CC ;;
4658 esac
4659 fi
4660
4661 if test "x$ac_cv_prog_cc_c89" = xno
4662 then :
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4664 printf "%s\n" "unsupported" >&6; }
4665 else case e in #(
4666 e) if test "x$ac_cv_prog_cc_c89" = x
4667 then :
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4669 printf "%s\n" "none needed" >&6; }
4670 else case e in #(
4671 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4672 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4673 CC="$CC $ac_cv_prog_cc_c89" ;;
4674 esac
4675 fi
4676 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4677 ac_prog_cc_stdc=c89 ;;
4678 esac
4679 fi
4680 fi
4681
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4695 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4696 if test ${am_cv_prog_cc_c_o+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else case e in #(
4700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 int
4704 main (void)
4705 {
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 # Make sure it works both with $CC and with simple cc.
4712 # Following AC_PROG_CC_C_O, we do the test twice because some
4713 # compilers refuse to overwrite an existing .o file with -o,
4714 # though they will create one.
4715 am_cv_prog_cc_c_o=yes
4716 for am_i in 1 2; do
4717 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4718 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } \
4722 && test -f conftest2.$ac_objext; then
4723 : OK
4724 else
4725 am_cv_prog_cc_c_o=no
4726 break
4727 fi
4728 done
4729 # aligned with autoconf, so not including core; see bug#72225.
4730 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4731 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4732 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4733 unset am_i ;;
4734 esac
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4737 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4738 if test "$am_cv_prog_cc_c_o" != yes; then
4739 # Losing compiler, so override with the script.
4740 # FIXME: It is wrong to rewrite CC.
4741 # But if we don't then we get into trouble of one sort or another.
4742 # A longer-term fix would be to have automake use am__CC in this case,
4743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4744 CC="$am_aux_dir/compile $CC"
4745 fi
4746 ac_ext=c
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753 depcc="$CC" am_compiler_list=
4754
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4756 printf %s "checking dependency style of $depcc... " >&6; }
4757 if test ${am_cv_CC_dependencies_compiler_type+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else case e in #(
4761 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4762 # We make a subdir and do the tests there. Otherwise we can end up
4763 # making bogus files that we don't know about and never remove. For
4764 # instance it was reported that on HP-UX the gcc test will end up
4765 # making a dummy file named 'D' -- because '-MD' means "put the output
4766 # in D".
4767 rm -rf conftest.dir
4768 mkdir conftest.dir
4769 # Copy depcomp to subdir because otherwise we won't find it if we're
4770 # using a relative directory.
4771 cp "$am_depcomp" conftest.dir
4772 cd conftest.dir
4773 # We will build objects and dependencies in a subdirectory because
4774 # it helps to detect inapplicable dependency modes. For instance
4775 # both Tru64's cc and ICC support -MD to output dependencies as a
4776 # side effect of compilation, but ICC will put the dependencies in
4777 # the current directory while Tru64 will put them in the object
4778 # directory.
4779 mkdir sub
4780
4781 am_cv_CC_dependencies_compiler_type=none
4782 if test "$am_compiler_list" = ""; then
4783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4784 fi
4785 am__universal=false
4786 case " $depcc " in #(
4787 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4788 esac
4789
4790 for depmode in $am_compiler_list; do
4791 # Setup a source with many dependencies, because some compilers
4792 # like to wrap large dependency lists on column 80 (with \), and
4793 # we should not choose a depcomp mode which is confused by this.
4794 #
4795 # We need to recreate these files for each test, as the compiler may
4796 # overwrite some of them when testing with obscure command lines.
4797 # This happens at least with the AIX C compiler.
4798 : > sub/conftest.c
4799 for i in 1 2 3 4 5 6; do
4800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4801 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4802 # Solaris 10 /bin/sh.
4803 echo '/* dummy */' > sub/conftst$i.h
4804 done
4805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4806
4807 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4808 # mode. It turns out that the SunPro C++ compiler does not properly
4809 # handle '-M -o', and we need to detect this. Also, some Intel
4810 # versions had trouble with output in subdirs.
4811 am__obj=sub/conftest.${OBJEXT-o}
4812 am__minus_obj="-o $am__obj"
4813 case $depmode in
4814 gcc)
4815 # This depmode causes a compiler race in universal mode.
4816 test "$am__universal" = false || continue
4817 ;;
4818 nosideeffect)
4819 # After this tag, mechanisms are not by side-effect, so they'll
4820 # only be used when explicitly requested.
4821 if test "x$enable_dependency_tracking" = xyes; then
4822 continue
4823 else
4824 break
4825 fi
4826 ;;
4827 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4828 # This compiler won't grok '-c -o', but also, the minuso test has
4829 # not run yet. These depmodes are late enough in the game, and
4830 # so weak that their functioning should not be impacted.
4831 am__obj=conftest.${OBJEXT-o}
4832 am__minus_obj=
4833 ;;
4834 none) break ;;
4835 esac
4836 if depmode=$depmode \
4837 source=sub/conftest.c object=$am__obj \
4838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4840 >/dev/null 2>conftest.err &&
4841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845 # icc doesn't choke on unknown options, it will just issue warnings
4846 # or remarks (even with -Werror). So we grep stderr for any message
4847 # that says an option was ignored or not supported.
4848 # When given -MP, icc 7.0 and 7.1 complain thus:
4849 # icc: Command line warning: ignoring option '-M'; no argument required
4850 # The diagnosis changed in icc 8.0:
4851 # icc: Command line remark: option '-MP' not supported
4852 if (grep 'ignoring option' conftest.err ||
4853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854 am_cv_CC_dependencies_compiler_type=$depmode
4855 break
4856 fi
4857 fi
4858 done
4859
4860 cd ..
4861 rm -rf conftest.dir
4862 else
4863 am_cv_CC_dependencies_compiler_type=none
4864 fi
4865 ;;
4866 esac
4867 fi
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4869 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4871
4872 if
4873 test "x$enable_dependency_tracking" != xno \
4874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4875 am__fastdepCC_TRUE=
4876 am__fastdepCC_FALSE='#'
4877 else
4878 am__fastdepCC_TRUE='#'
4879 am__fastdepCC_FALSE=
4880 fi
4881
4882
4883
4884 ac_header= ac_cache=
4885 for ac_item in $ac_header_c_list
4886 do
4887 if test $ac_cache; then
4888 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4889 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4890 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4891 fi
4892 ac_header= ac_cache=
4893 elif test $ac_header; then
4894 ac_cache=$ac_item
4895 else
4896 ac_header=$ac_item
4897 fi
4898 done
4899
4900
4901
4902
4903
4904
4905
4906
4907 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4908 then :
4909
4910 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4911
4912 fi
4913
4914
4915
4916
4917
4918
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4920 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4921 if test ${ac_cv_safe_to_define___extensions__+y}
4922 then :
4923 printf %s "(cached) " >&6
4924 else case e in #(
4925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927
4928 # define __EXTENSIONS__ 1
4929 $ac_includes_default
4930 int
4931 main (void)
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"
4939 then :
4940 ac_cv_safe_to_define___extensions__=yes
4941 else case e in #(
4942 e) ac_cv_safe_to_define___extensions__=no ;;
4943 esac
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4946 esac
4947 fi
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4949 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4950
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4952 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4953 if test ${ac_cv_should_define__xopen_source+y}
4954 then :
4955 printf %s "(cached) " >&6
4956 else case e in #(
4957 e) ac_cv_should_define__xopen_source=no
4958 if test $ac_cv_header_wchar_h = yes
4959 then :
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 #include <wchar.h>
4964 mbstate_t x;
4965 int
4966 main (void)
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"
4974 then :
4975
4976 else case e in #(
4977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 #define _XOPEN_SOURCE 500
4981 #include <wchar.h>
4982 mbstate_t x;
4983 int
4984 main (void)
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_compile "$LINENO"
4992 then :
4993 ac_cv_should_define__xopen_source=yes
4994 fi
4995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4996 esac
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4999 fi ;;
5000 esac
5001 fi
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5003 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5004
5005 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5006
5007 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5008
5009 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5010
5011 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5012
5013 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5014
5015 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5016
5017 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5018
5019 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5020
5021 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5022
5023 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5024
5025 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5026
5027 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5028
5029 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5030
5031 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5032
5033 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5034
5035 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5036
5037 if test $ac_cv_header_minix_config_h = yes
5038 then :
5039 MINIX=yes
5040 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5041
5042 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5043
5044 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5045
5046 else case e in #(
5047 e) MINIX= ;;
5048 esac
5049 fi
5050 if test $ac_cv_safe_to_define___extensions__ = yes
5051 then :
5052 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5053
5054 fi
5055 if test $ac_cv_should_define__xopen_source = yes
5056 then :
5057 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5058
5059 fi
5060
5061 # Check whether --enable-compiler-warnings was given.
5062 if test ${enable_compiler_warnings+y}
5063 then :
5064 enableval=$enable_compiler_warnings;
5065 fi
5066 case $enable_compiler_warnings in #(
5067 no | min | yes | max | all) :
5068 ;; #(
5069 *) :
5070 if test "x$enable_maintainer_mode" = xyes
5071 then :
5072 enable_compiler_warnings=yes
5073 else case e in #(
5074 e) enable_compiler_warnings=min ;;
5075 esac
5076 fi ;;
5077 esac
5078
5079 echo 'tldbg:KPSE_BASIC called (pkg=luajit, amopt=)' >&5
5080
5081 #
5082 # am_init_automake
5083 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5084 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5085 # is not polluted with repeated "-I."
5086 am__isrc=' -I$(srcdir)'
5087 # test to see if srcdir already configured
5088 if test -f $srcdir/config.status; then
5089 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5090 fi
5091 fi
5092
5093 # test whether we have cygpath
5094 if test -z "$CYGPATH_W"; then
5095 if (cygpath --version) >/dev/null 2>/dev/null; then
5096 CYGPATH_W='cygpath -w'
5097 else
5098 CYGPATH_W=echo
5099 fi
5100 fi
5101
5102
5103 # Define the identity of the package.
5104 PACKAGE='luajit-for-tex-live'
5105 VERSION='2.1.81742'
5106
5107
5108 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5109
5110
5111 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5112
5113 # Some tools Automake needs.
5114
5115 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5116
5117
5118 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5119
5120
5121 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5122
5123
5124 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5125
5126
5127 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5128
5129 # For better backward compatibility. To be removed once Automake 1.9.x
5130 # dies out for good. For more background, see:
5131 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5132 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5133 mkdir_p='$(MKDIR_P)'
5134
5135 # We need awk for the "check" target (and possibly the TAP driver). The
5136 # system "awk" is bad on some platforms.
5137 # Always define AMTAR for backward compatibility. Yes, it's still used
5138 # in the wild :-( We should find a proper way to deprecate it ...
5139 AMTAR='$${TAR-tar}'
5140
5141
5142 # We'll loop over all known methods to create a tar archive until one works.
5143 _am_tools='gnutar plaintar pax cpio none'
5144
5145 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
5146 # There is notably a 21 bits limit for the UID and the GID. In fact,
5147 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5148 # and bug#13588).
5149 am_max_uid=2097151 # 2^21 - 1
5150 am_max_gid=$am_max_uid
5151 # The $UID and $GID variables are not portable, so we need to resort
5152 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
5153 # below are definitely unexpected, so allow the users to see them
5154 # (that is, avoid stderr redirection).
5155 am_uid=`id -u || echo unknown`
5156 am_gid=`id -g || echo unknown`
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5158 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5159 if test x$am_uid = xunknown; then
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
5161 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
5162 elif test $am_uid -le $am_max_uid; then
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 printf "%s\n" "yes" >&6; }
5165 else
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 printf "%s\n" "no" >&6; }
5168 _am_tools=none
5169 fi
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5171 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5172 if test x$gm_gid = xunknown; then
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5174 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5175 elif test $am_gid -le $am_max_gid; then
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 printf "%s\n" "yes" >&6; }
5178 else
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 printf "%s\n" "no" >&6; }
5181 _am_tools=none
5182 fi
5183
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5185 printf %s "checking how to create a ustar tar archive... " >&6; }
5186
5187 # Go ahead even if we have the value already cached. We do so because we
5188 # need to set the values for the 'am__tar' and 'am__untar' variables.
5189 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5190
5191 for _am_tool in $_am_tools; do
5192 case $_am_tool in
5193 gnutar)
5194 for _am_tar in tar gnutar gtar; do
5195 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5196 ($_am_tar --version) >&5 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && break
5200 done
5201 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5202 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5203 am__untar="$_am_tar -xf -"
5204 ;;
5205 plaintar)
5206 # Must skip GNU tar: if it does not support --format= it doesn't create
5207 # ustar tarball either.
5208 (tar --version) >/dev/null 2>&1 && continue
5209 am__tar='tar chf - "$$tardir"'
5210 am__tar_='tar chf - "$tardir"'
5211 am__untar='tar xf -'
5212 ;;
5213 pax)
5214 am__tar='pax -L -x ustar -w "$$tardir"'
5215 am__tar_='pax -L -x ustar -w "$tardir"'
5216 am__untar='pax -r'
5217 ;;
5218 cpio)
5219 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5220 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5221 am__untar='cpio -i -H ustar -d'
5222 ;;
5223 none)
5224 am__tar=false
5225 am__tar_=false
5226 am__untar=false
5227 ;;
5228 esac
5229
5230 # If the value was cached, stop now. We just wanted to have am__tar
5231 # and am__untar set.
5232 test -n "${am_cv_prog_tar_ustar}" && break
5233
5234 # tar/untar a dummy directory, and stop if the command works.
5235 rm -rf conftest.dir
5236 mkdir conftest.dir
5237 echo GrepMe > conftest.dir/file
5238 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5239 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }
5243 rm -rf conftest.dir
5244 if test -s conftest.tar; then
5245 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5246 ($am__untar <conftest.tar) >&5 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }
5250 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5251 (cat conftest.dir/file) >&5 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }
5255 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5256 fi
5257 done
5258 rm -rf conftest.dir
5259
5260 if test ${am_cv_prog_tar_ustar+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else case e in #(
5264 e) am_cv_prog_tar_ustar=$_am_tool ;;
5265 esac
5266 fi
5267
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5269 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
5270
5271
5272
5273
5274
5275 # Variables for tags utilities; see am/tags.am
5276 if test -z "$CTAGS"; then
5277 CTAGS=ctags
5278 fi
5279
5280 if test -z "$ETAGS"; then
5281 ETAGS=etags
5282 fi
5283
5284 if test -z "$CSCOPE"; then
5285 CSCOPE=cscope
5286 fi
5287
5288
5289
5290
5291
5292
5293
5294
5295 # am_maintainer_mode
5296
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5298 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5299 # Check whether --enable-maintainer-mode was given.
5300 if test ${enable_maintainer_mode+y}
5301 then :
5302 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5303 else case e in #(
5304 e) USE_MAINTAINER_MODE=no ;;
5305 esac
5306 fi
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5309 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
5310 if test $USE_MAINTAINER_MODE = yes; then
5311 MAINTAINER_MODE_TRUE=
5312 MAINTAINER_MODE_FALSE='#'
5313 else
5314 MAINTAINER_MODE_TRUE='#'
5315 MAINTAINER_MODE_FALSE=
5316 fi
5317
5318 MAINT=$MAINTAINER_MODE_TRUE
5319
5320
5321
5322 # See comments in kpse-setup.m4 about system extensions.
5323
5324
5325 # Check whether prototypes work.
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
5327 printf %s "checking whether the compiler accepts prototypes... " >&6; }
5328 if test ${kb_cv_c_prototypes+y}
5329 then :
5330 printf %s "(cached) " >&6
5331 else case e in #(
5332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <stdarg.h>
5335 int
5336 main (void)
5337 {
5338 extern void foo(int i,...);
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_link "$LINENO"
5344 then :
5345 kb_cv_c_prototypes=yes
5346 else case e in #(
5347 e) kb_cv_c_prototypes=no ;;
5348 esac
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5351 conftest$ac_exeext conftest.$ac_ext ;;
5352 esac
5353 fi
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
5355 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
5356 if test "x$kb_cv_c_prototypes" = xno; then
5357 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
5358 fi
5359
5360 # kpse_compiler_warnings options.
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
5362 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
5363 if test ${kpse_cv_warning_cflags+y}
5364 then :
5365 printf %s "(cached) " >&6
5366 else case e in #(
5367 e) if test "x$GCC" = xyes; then
5368 kpse_cv_warning_cflags=
5369 if test "x$enable_compiler_warnings" != xno; then
5370 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
5371 case `$CC -dumpversion` in #(
5372 3.4.* | 4.* | 5.*) :
5373 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
5374 *) :
5375 ;;
5376 esac
5377 case `$CC -dumpversion` in #(
5378 3.[234].* | 4.* | 5.*) :
5379 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
5380 *) :
5381 ;;
5382 esac
5383 if test "x$enable_compiler_warnings" != xmin; then
5384 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
5385 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
5386 if test "x$enable_compiler_warnings" != xyes; then
5387 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
5388 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
5389 case `$CC -dumpversion` in #(
5390 3.4.* | 4.* | 5.*) :
5391 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
5392 *) :
5393 ;;
5394 esac
5395 if test "x$enable_compiler_warnings" != xmax; then
5396 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
5397 fi
5398 fi
5399 fi
5400 fi
5401 elif test "x$enable_compiler_warnings" = xno; then
5402 kpse_cv_warning_cflags=
5403 else
5404 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
5405 fi ;;
5406 esac
5407 fi
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
5409 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
5410 WARNING_CFLAGS=$kpse_cv_warning_cflags
5411
5412
5413
5414
5415
5416
5417
5418 # end of kpse_basic macro.
5419 echo 'tldbg:KPSE_BASIC done (pkg=luajit, amopt=)' >&5
5420
5421
5422
5423
5424 # Make sure we can run config.sub.
5425 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5426 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5427
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5429 printf %s "checking build system type... " >&6; }
5430 if test ${ac_cv_build+y}
5431 then :
5432 printf %s "(cached) " >&6
5433 else case e in #(
5434 e) ac_build_alias=$build_alias
5435 test "x$ac_build_alias" = x &&
5436 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5437 test "x$ac_build_alias" = x &&
5438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5439 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5440 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5441 ;;
5442 esac
5443 fi
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5445 printf "%s\n" "$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5447 *-*-*) ;;
5448 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5449 esac
5450 build=$ac_cv_build
5451 ac_save_IFS=$IFS; IFS='-'
5452 set x $ac_cv_build
5453 shift
5454 build_cpu=$1
5455 build_vendor=$2
5456 shift; shift
5457 # Remember, the first character of IFS is used to create $*,
5458 # except with old shells:
5459 build_os=$*
5460 IFS=$ac_save_IFS
5461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5462
5463
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5465 printf %s "checking host system type... " >&6; }
5466 if test ${ac_cv_host+y}
5467 then :
5468 printf %s "(cached) " >&6
5469 else case e in #(
5470 e) if test "x$host_alias" = x; then
5471 ac_cv_host=$ac_cv_build
5472 else
5473 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5474 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5475 fi
5476 ;;
5477 esac
5478 fi
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5480 printf "%s\n" "$ac_cv_host" >&6; }
5481 case $ac_cv_host in
5482 *-*-*) ;;
5483 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5484 esac
5485 host=$ac_cv_host
5486 ac_save_IFS=$IFS; IFS='-'
5487 set x $ac_cv_host
5488 shift
5489 host_cpu=$1
5490 host_vendor=$2
5491 shift; shift
5492 # Remember, the first character of IFS is used to create $*,
5493 # except with old shells:
5494 host_os=$*
5495 IFS=$ac_save_IFS
5496 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5497
5498
5499 if test "x$host_alias" != x && test "x$build_alias" = x
5500 then :
5501 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
5502 fi
5503 eval kpse_build_alias=\${build_alias-$build}
5504
5505
5506 ac_ext=c
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 printf %s "checking for $ac_word... " >&6; }
5516 if test ${ac_cv_prog_CC+y}
5517 then :
5518 printf %s "(cached) " >&6
5519 else case e in #(
5520 e) if test -n "$CC"; then
5521 ac_cv_prog_CC="$CC" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 case $as_dir in #(((
5528 '') as_dir=./ ;;
5529 */) ;;
5530 *) as_dir=$as_dir/ ;;
5531 esac
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5541
5542 fi ;;
5543 esac
5544 fi
5545 CC=$ac_cv_prog_CC
5546 if test -n "$CC"; then
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5548 printf "%s\n" "$CC" >&6; }
5549 else
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 printf "%s\n" "no" >&6; }
5552 fi
5553
5554
5555 fi
5556 if test -z "$ac_cv_prog_CC"; then
5557 ac_ct_CC=$CC
5558 # Extract the first word of "gcc", so it can be a program name with args.
5559 set dummy gcc; ac_word=$2
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 printf %s "checking for $ac_word... " >&6; }
5562 if test ${ac_cv_prog_ac_ct_CC+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else case e in #(
5566 e) if test -n "$ac_ct_CC"; then
5567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 case $as_dir in #(((
5574 '') as_dir=./ ;;
5575 */) ;;
5576 *) as_dir=$as_dir/ ;;
5577 esac
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_ac_ct_CC="gcc"
5581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi ;;
5589 esac
5590 fi
5591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5592 if test -n "$ac_ct_CC"; then
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5594 printf "%s\n" "$ac_ct_CC" >&6; }
5595 else
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 printf "%s\n" "no" >&6; }
5598 fi
5599
5600 if test "x$ac_ct_CC" = x; then
5601 CC=""
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609 CC=$ac_ct_CC
5610 fi
5611 else
5612 CC="$ac_cv_prog_CC"
5613 fi
5614
5615 if test -z "$CC"; then
5616 if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5618 set dummy ${ac_tool_prefix}cc; ac_word=$2
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 printf %s "checking for $ac_word... " >&6; }
5621 if test ${ac_cv_prog_CC+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else case e in #(
5625 e) if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 case $as_dir in #(((
5633 '') as_dir=./ ;;
5634 */) ;;
5635 *) as_dir=$as_dir/ ;;
5636 esac
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_CC="${ac_tool_prefix}cc"
5640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi ;;
5648 esac
5649 fi
5650 CC=$ac_cv_prog_CC
5651 if test -n "$CC"; then
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5653 printf "%s\n" "$CC" >&6; }
5654 else
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 printf "%s\n" "no" >&6; }
5657 fi
5658
5659
5660 fi
5661 fi
5662 if test -z "$CC"; then
5663 # Extract the first word of "cc", so it can be a program name with args.
5664 set dummy cc; ac_word=$2
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 printf %s "checking for $ac_word... " >&6; }
5667 if test ${ac_cv_prog_CC+y}
5668 then :
5669 printf %s "(cached) " >&6
5670 else case e in #(
5671 e) if test -n "$CC"; then
5672 ac_cv_prog_CC="$CC" # Let the user override the test.
5673 else
5674 ac_prog_rejected=no
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678 IFS=$as_save_IFS
5679 case $as_dir in #(((
5680 '') as_dir=./ ;;
5681 */) ;;
5682 *) as_dir=$as_dir/ ;;
5683 esac
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5686 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5687 ac_prog_rejected=yes
5688 continue
5689 fi
5690 ac_cv_prog_CC="cc"
5691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 if test $ac_prog_rejected = yes; then
5699 # We found a bogon in the path, so make sure we never use it.
5700 set dummy $ac_cv_prog_CC
5701 shift
5702 if test $# != 0; then
5703 # We chose a different compiler from the bogus one.
5704 # However, it has the same basename, so the bogon will be chosen
5705 # first if we set CC to just the basename; use the full file name.
5706 shift
5707 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5708 fi
5709 fi
5710 fi ;;
5711 esac
5712 fi
5713 CC=$ac_cv_prog_CC
5714 if test -n "$CC"; then
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5716 printf "%s\n" "$CC" >&6; }
5717 else
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 printf "%s\n" "no" >&6; }
5720 fi
5721
5722
5723 fi
5724 if test -z "$CC"; then
5725 if test -n "$ac_tool_prefix"; then
5726 for ac_prog in cl.exe
5727 do
5728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 printf %s "checking for $ac_word... " >&6; }
5732 if test ${ac_cv_prog_CC+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else case e in #(
5736 e) if test -n "$CC"; then
5737 ac_cv_prog_CC="$CC" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742 IFS=$as_save_IFS
5743 case $as_dir in #(((
5744 '') as_dir=./ ;;
5745 */) ;;
5746 *) as_dir=$as_dir/ ;;
5747 esac
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi ;;
5759 esac
5760 fi
5761 CC=$ac_cv_prog_CC
5762 if test -n "$CC"; then
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5764 printf "%s\n" "$CC" >&6; }
5765 else
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 printf "%s\n" "no" >&6; }
5768 fi
5769
5770
5771 test -n "$CC" && break
5772 done
5773 fi
5774 if test -z "$CC"; then
5775 ac_ct_CC=$CC
5776 for ac_prog in cl.exe
5777 do
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 printf %s "checking for $ac_word... " >&6; }
5782 if test ${ac_cv_prog_ac_ct_CC+y}
5783 then :
5784 printf %s "(cached) " >&6
5785 else case e in #(
5786 e) if test -n "$ac_ct_CC"; then
5787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792 IFS=$as_save_IFS
5793 case $as_dir in #(((
5794 '') as_dir=./ ;;
5795 */) ;;
5796 *) as_dir=$as_dir/ ;;
5797 esac
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_ac_ct_CC="$ac_prog"
5801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804 done
5805 done
5806 IFS=$as_save_IFS
5807
5808 fi ;;
5809 esac
5810 fi
5811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5812 if test -n "$ac_ct_CC"; then
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5814 printf "%s\n" "$ac_ct_CC" >&6; }
5815 else
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 printf "%s\n" "no" >&6; }
5818 fi
5819
5820
5821 test -n "$ac_ct_CC" && break
5822 done
5823
5824 if test "x$ac_ct_CC" = x; then
5825 CC=""
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828 yes:)
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5831 ac_tool_warned=yes ;;
5832 esac
5833 CC=$ac_ct_CC
5834 fi
5835 fi
5836
5837 fi
5838 if test -z "$CC"; then
5839 if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}clang; ac_word=$2
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 printf %s "checking for $ac_word... " >&6; }
5844 if test ${ac_cv_prog_CC+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else case e in #(
5848 e) if test -n "$CC"; then
5849 ac_cv_prog_CC="$CC" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 case $as_dir in #(((
5856 '') as_dir=./ ;;
5857 */) ;;
5858 *) as_dir=$as_dir/ ;;
5859 esac
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_CC="${ac_tool_prefix}clang"
5863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi ;;
5871 esac
5872 fi
5873 CC=$ac_cv_prog_CC
5874 if test -n "$CC"; then
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5876 printf "%s\n" "$CC" >&6; }
5877 else
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 printf "%s\n" "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_CC"; then
5885 ac_ct_CC=$CC
5886 # Extract the first word of "clang", so it can be a program name with args.
5887 set dummy clang; ac_word=$2
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 printf %s "checking for $ac_word... " >&6; }
5890 if test ${ac_cv_prog_ac_ct_CC+y}
5891 then :
5892 printf %s "(cached) " >&6
5893 else case e in #(
5894 e) if test -n "$ac_ct_CC"; then
5895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 case $as_dir in #(((
5902 '') as_dir=./ ;;
5903 */) ;;
5904 *) as_dir=$as_dir/ ;;
5905 esac
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_ac_ct_CC="clang"
5909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi ;;
5917 esac
5918 fi
5919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5920 if test -n "$ac_ct_CC"; then
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5922 printf "%s\n" "$ac_ct_CC" >&6; }
5923 else
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 printf "%s\n" "no" >&6; }
5926 fi
5927
5928 if test "x$ac_ct_CC" = x; then
5929 CC=""
5930 else
5931 case $cross_compiling:$ac_tool_warned in
5932 yes:)
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935 ac_tool_warned=yes ;;
5936 esac
5937 CC=$ac_ct_CC
5938 fi
5939 else
5940 CC="$ac_cv_prog_CC"
5941 fi
5942
5943 fi
5944
5945
5946 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5947 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5948 as_fn_error $? "no acceptable C compiler found in \$PATH
5949 See 'config.log' for more details" "$LINENO" 5; }
5950
5951 # Provide some information about the compiler.
5952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5953 set X $ac_compile
5954 ac_compiler=$2
5955 for ac_option in --version -v -V -qversion -version; do
5956 { { ac_try="$ac_compiler $ac_option >&5"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5962 printf "%s\n" "$ac_try_echo"; } >&5
5963 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5964 ac_status=$?
5965 if test -s conftest.err; then
5966 sed '10a\
5967 ... rest of stderr output deleted ...
5968 10q' conftest.err >conftest.er1
5969 cat conftest.er1 >&5
5970 fi
5971 rm -f conftest.er1 conftest.err
5972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973 test $ac_status = 0; }
5974 done
5975
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5977 printf %s "checking whether the compiler supports GNU C... " >&6; }
5978 if test ${ac_cv_c_compiler_gnu+y}
5979 then :
5980 printf %s "(cached) " >&6
5981 else case e in #(
5982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984
5985 int
5986 main (void)
5987 {
5988 #ifndef __GNUC__
5989 choke me
5990 #endif
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"
5997 then :
5998 ac_compiler_gnu=yes
5999 else case e in #(
6000 e) ac_compiler_gnu=no ;;
6001 esac
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6005 ;;
6006 esac
6007 fi
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6009 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011
6012 if test $ac_compiler_gnu = yes; then
6013 GCC=yes
6014 else
6015 GCC=
6016 fi
6017 ac_test_CFLAGS=${CFLAGS+y}
6018 ac_save_CFLAGS=$CFLAGS
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6020 printf %s "checking whether $CC accepts -g... " >&6; }
6021 if test ${ac_cv_prog_cc_g+y}
6022 then :
6023 printf %s "(cached) " >&6
6024 else case e in #(
6025 e) ac_save_c_werror_flag=$ac_c_werror_flag
6026 ac_c_werror_flag=yes
6027 ac_cv_prog_cc_g=no
6028 CFLAGS="-g"
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031
6032 int
6033 main (void)
6034 {
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"
6041 then :
6042 ac_cv_prog_cc_g=yes
6043 else case e in #(
6044 e) CFLAGS=""
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047
6048 int
6049 main (void)
6050 {
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"
6057 then :
6058
6059 else case e in #(
6060 e) ac_c_werror_flag=$ac_save_c_werror_flag
6061 CFLAGS="-g"
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064
6065 int
6066 main (void)
6067 {
6068
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 if ac_fn_c_try_compile "$LINENO"
6074 then :
6075 ac_cv_prog_cc_g=yes
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6078 esac
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6081 esac
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6084 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6085 esac
6086 fi
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6088 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6089 if test $ac_test_CFLAGS; then
6090 CFLAGS=$ac_save_CFLAGS
6091 elif test $ac_cv_prog_cc_g = yes; then
6092 if test "$GCC" = yes; then
6093 CFLAGS="-g -O2"
6094 else
6095 CFLAGS="-g"
6096 fi
6097 else
6098 if test "$GCC" = yes; then
6099 CFLAGS="-O2"
6100 else
6101 CFLAGS=
6102 fi
6103 fi
6104 ac_prog_cc_stdc=no
6105 if test x$ac_prog_cc_stdc = xno
6106 then :
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6108 printf %s "checking for $CC option to enable C11 features... " >&6; }
6109 if test ${ac_cv_prog_cc_c11+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) ac_cv_prog_cc_c11=no
6114 ac_save_CC=$CC
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 $ac_c_conftest_c11_program
6118 _ACEOF
6119 for ac_arg in '' -std=gnu11
6120 do
6121 CC="$ac_save_CC $ac_arg"
6122 if ac_fn_c_try_compile "$LINENO"
6123 then :
6124 ac_cv_prog_cc_c11=$ac_arg
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.beam
6127 test "x$ac_cv_prog_cc_c11" != "xno" && break
6128 done
6129 rm -f conftest.$ac_ext
6130 CC=$ac_save_CC ;;
6131 esac
6132 fi
6133
6134 if test "x$ac_cv_prog_cc_c11" = xno
6135 then :
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6137 printf "%s\n" "unsupported" >&6; }
6138 else case e in #(
6139 e) if test "x$ac_cv_prog_cc_c11" = x
6140 then :
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6142 printf "%s\n" "none needed" >&6; }
6143 else case e in #(
6144 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6145 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6146 CC="$CC $ac_cv_prog_cc_c11" ;;
6147 esac
6148 fi
6149 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6150 ac_prog_cc_stdc=c11 ;;
6151 esac
6152 fi
6153 fi
6154 if test x$ac_prog_cc_stdc = xno
6155 then :
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6157 printf %s "checking for $CC option to enable C99 features... " >&6; }
6158 if test ${ac_cv_prog_cc_c99+y}
6159 then :
6160 printf %s "(cached) " >&6
6161 else case e in #(
6162 e) ac_cv_prog_cc_c99=no
6163 ac_save_CC=$CC
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 $ac_c_conftest_c99_program
6167 _ACEOF
6168 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6169 do
6170 CC="$ac_save_CC $ac_arg"
6171 if ac_fn_c_try_compile "$LINENO"
6172 then :
6173 ac_cv_prog_cc_c99=$ac_arg
6174 fi
6175 rm -f core conftest.err conftest.$ac_objext conftest.beam
6176 test "x$ac_cv_prog_cc_c99" != "xno" && break
6177 done
6178 rm -f conftest.$ac_ext
6179 CC=$ac_save_CC ;;
6180 esac
6181 fi
6182
6183 if test "x$ac_cv_prog_cc_c99" = xno
6184 then :
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6186 printf "%s\n" "unsupported" >&6; }
6187 else case e in #(
6188 e) if test "x$ac_cv_prog_cc_c99" = x
6189 then :
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191 printf "%s\n" "none needed" >&6; }
6192 else case e in #(
6193 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6194 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6195 CC="$CC $ac_cv_prog_cc_c99" ;;
6196 esac
6197 fi
6198 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6199 ac_prog_cc_stdc=c99 ;;
6200 esac
6201 fi
6202 fi
6203 if test x$ac_prog_cc_stdc = xno
6204 then :
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6206 printf %s "checking for $CC option to enable C89 features... " >&6; }
6207 if test ${ac_cv_prog_cc_c89+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) ac_cv_prog_cc_c89=no
6212 ac_save_CC=$CC
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 $ac_c_conftest_c89_program
6216 _ACEOF
6217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6218 do
6219 CC="$ac_save_CC $ac_arg"
6220 if ac_fn_c_try_compile "$LINENO"
6221 then :
6222 ac_cv_prog_cc_c89=$ac_arg
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam
6225 test "x$ac_cv_prog_cc_c89" != "xno" && break
6226 done
6227 rm -f conftest.$ac_ext
6228 CC=$ac_save_CC ;;
6229 esac
6230 fi
6231
6232 if test "x$ac_cv_prog_cc_c89" = xno
6233 then :
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6235 printf "%s\n" "unsupported" >&6; }
6236 else case e in #(
6237 e) if test "x$ac_cv_prog_cc_c89" = x
6238 then :
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6240 printf "%s\n" "none needed" >&6; }
6241 else case e in #(
6242 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6243 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6244 CC="$CC $ac_cv_prog_cc_c89" ;;
6245 esac
6246 fi
6247 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6248 ac_prog_cc_stdc=c89 ;;
6249 esac
6250 fi
6251 fi
6252
6253 ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259
6260 ac_ext=c
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6266 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6267 if test ${am_cv_prog_cc_c_o+y}
6268 then :
6269 printf %s "(cached) " >&6
6270 else case e in #(
6271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273
6274 int
6275 main (void)
6276 {
6277
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 # Make sure it works both with $CC and with simple cc.
6283 # Following AC_PROG_CC_C_O, we do the test twice because some
6284 # compilers refuse to overwrite an existing .o file with -o,
6285 # though they will create one.
6286 am_cv_prog_cc_c_o=yes
6287 for am_i in 1 2; do
6288 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6289 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } \
6293 && test -f conftest2.$ac_objext; then
6294 : OK
6295 else
6296 am_cv_prog_cc_c_o=no
6297 break
6298 fi
6299 done
6300 # aligned with autoconf, so not including core; see bug#72225.
6301 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6302 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6303 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6304 unset am_i ;;
6305 esac
6306 fi
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6308 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6309 if test "$am_cv_prog_cc_c_o" != yes; then
6310 # Losing compiler, so override with the script.
6311 # FIXME: It is wrong to rewrite CC.
6312 # But if we don't then we get into trouble of one sort or another.
6313 # A longer-term fix would be to have automake use am__CC in this case,
6314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6315 CC="$am_aux_dir/compile $CC"
6316 fi
6317 ac_ext=c
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323
6324 depcc="$CC" am_compiler_list=
6325
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6327 printf %s "checking dependency style of $depcc... " >&6; }
6328 if test ${am_cv_CC_dependencies_compiler_type+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else case e in #(
6332 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6333 # We make a subdir and do the tests there. Otherwise we can end up
6334 # making bogus files that we don't know about and never remove. For
6335 # instance it was reported that on HP-UX the gcc test will end up
6336 # making a dummy file named 'D' -- because '-MD' means "put the output
6337 # in D".
6338 rm -rf conftest.dir
6339 mkdir conftest.dir
6340 # Copy depcomp to subdir because otherwise we won't find it if we're
6341 # using a relative directory.
6342 cp "$am_depcomp" conftest.dir
6343 cd conftest.dir
6344 # We will build objects and dependencies in a subdirectory because
6345 # it helps to detect inapplicable dependency modes. For instance
6346 # both Tru64's cc and ICC support -MD to output dependencies as a
6347 # side effect of compilation, but ICC will put the dependencies in
6348 # the current directory while Tru64 will put them in the object
6349 # directory.
6350 mkdir sub
6351
6352 am_cv_CC_dependencies_compiler_type=none
6353 if test "$am_compiler_list" = ""; then
6354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6355 fi
6356 am__universal=false
6357 case " $depcc " in #(
6358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6359 esac
6360
6361 for depmode in $am_compiler_list; do
6362 # Setup a source with many dependencies, because some compilers
6363 # like to wrap large dependency lists on column 80 (with \), and
6364 # we should not choose a depcomp mode which is confused by this.
6365 #
6366 # We need to recreate these files for each test, as the compiler may
6367 # overwrite some of them when testing with obscure command lines.
6368 # This happens at least with the AIX C compiler.
6369 : > sub/conftest.c
6370 for i in 1 2 3 4 5 6; do
6371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6372 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6373 # Solaris 10 /bin/sh.
6374 echo '/* dummy */' > sub/conftst$i.h
6375 done
6376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6377
6378 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6379 # mode. It turns out that the SunPro C++ compiler does not properly
6380 # handle '-M -o', and we need to detect this. Also, some Intel
6381 # versions had trouble with output in subdirs.
6382 am__obj=sub/conftest.${OBJEXT-o}
6383 am__minus_obj="-o $am__obj"
6384 case $depmode in
6385 gcc)
6386 # This depmode causes a compiler race in universal mode.
6387 test "$am__universal" = false || continue
6388 ;;
6389 nosideeffect)
6390 # After this tag, mechanisms are not by side-effect, so they'll
6391 # only be used when explicitly requested.
6392 if test "x$enable_dependency_tracking" = xyes; then
6393 continue
6394 else
6395 break
6396 fi
6397 ;;
6398 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6399 # This compiler won't grok '-c -o', but also, the minuso test has
6400 # not run yet. These depmodes are late enough in the game, and
6401 # so weak that their functioning should not be impacted.
6402 am__obj=conftest.${OBJEXT-o}
6403 am__minus_obj=
6404 ;;
6405 none) break ;;
6406 esac
6407 if depmode=$depmode \
6408 source=sub/conftest.c object=$am__obj \
6409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6411 >/dev/null 2>conftest.err &&
6412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6416 # icc doesn't choke on unknown options, it will just issue warnings
6417 # or remarks (even with -Werror). So we grep stderr for any message
6418 # that says an option was ignored or not supported.
6419 # When given -MP, icc 7.0 and 7.1 complain thus:
6420 # icc: Command line warning: ignoring option '-M'; no argument required
6421 # The diagnosis changed in icc 8.0:
6422 # icc: Command line remark: option '-MP' not supported
6423 if (grep 'ignoring option' conftest.err ||
6424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6425 am_cv_CC_dependencies_compiler_type=$depmode
6426 break
6427 fi
6428 fi
6429 done
6430
6431 cd ..
6432 rm -rf conftest.dir
6433 else
6434 am_cv_CC_dependencies_compiler_type=none
6435 fi
6436 ;;
6437 esac
6438 fi
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6440 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6442
6443 if
6444 test "x$enable_dependency_tracking" != xno \
6445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6446 am__fastdepCC_TRUE=
6447 am__fastdepCC_FALSE='#'
6448 else
6449 am__fastdepCC_TRUE='#'
6450 am__fastdepCC_FALSE=
6451 fi
6452
6453
6454
6455 # By default we simply use the C compiler to build assembly code.
6456
6457 test "${CCAS+set}" = set || CCAS=$CC
6458 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6459
6460
6461
6462 depcc="$CCAS" am_compiler_list=
6463
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6465 printf %s "checking dependency style of $depcc... " >&6; }
6466 if test ${am_cv_CCAS_dependencies_compiler_type+y}
6467 then :
6468 printf %s "(cached) " >&6
6469 else case e in #(
6470 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6471 # We make a subdir and do the tests there. Otherwise we can end up
6472 # making bogus files that we don't know about and never remove. For
6473 # instance it was reported that on HP-UX the gcc test will end up
6474 # making a dummy file named 'D' -- because '-MD' means "put the output
6475 # in D".
6476 rm -rf conftest.dir
6477 mkdir conftest.dir
6478 # Copy depcomp to subdir because otherwise we won't find it if we're
6479 # using a relative directory.
6480 cp "$am_depcomp" conftest.dir
6481 cd conftest.dir
6482 # We will build objects and dependencies in a subdirectory because
6483 # it helps to detect inapplicable dependency modes. For instance
6484 # both Tru64's cc and ICC support -MD to output dependencies as a
6485 # side effect of compilation, but ICC will put the dependencies in
6486 # the current directory while Tru64 will put them in the object
6487 # directory.
6488 mkdir sub
6489
6490 am_cv_CCAS_dependencies_compiler_type=none
6491 if test "$am_compiler_list" = ""; then
6492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6493 fi
6494 am__universal=false
6495
6496
6497 for depmode in $am_compiler_list; do
6498 # Setup a source with many dependencies, because some compilers
6499 # like to wrap large dependency lists on column 80 (with \), and
6500 # we should not choose a depcomp mode which is confused by this.
6501 #
6502 # We need to recreate these files for each test, as the compiler may
6503 # overwrite some of them when testing with obscure command lines.
6504 # This happens at least with the AIX C compiler.
6505 : > sub/conftest.c
6506 for i in 1 2 3 4 5 6; do
6507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6509 # Solaris 10 /bin/sh.
6510 echo '/* dummy */' > sub/conftst$i.h
6511 done
6512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6513
6514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6515 # mode. It turns out that the SunPro C++ compiler does not properly
6516 # handle '-M -o', and we need to detect this. Also, some Intel
6517 # versions had trouble with output in subdirs.
6518 am__obj=sub/conftest.${OBJEXT-o}
6519 am__minus_obj="-o $am__obj"
6520 case $depmode in
6521 gcc)
6522 # This depmode causes a compiler race in universal mode.
6523 test "$am__universal" = false || continue
6524 ;;
6525 nosideeffect)
6526 # After this tag, mechanisms are not by side-effect, so they'll
6527 # only be used when explicitly requested.
6528 if test "x$enable_dependency_tracking" = xyes; then
6529 continue
6530 else
6531 break
6532 fi
6533 ;;
6534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6535 # This compiler won't grok '-c -o', but also, the minuso test has
6536 # not run yet. These depmodes are late enough in the game, and
6537 # so weak that their functioning should not be impacted.
6538 am__obj=conftest.${OBJEXT-o}
6539 am__minus_obj=
6540 ;;
6541 none) break ;;
6542 esac
6543 if depmode=$depmode \
6544 source=sub/conftest.c object=$am__obj \
6545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6547 >/dev/null 2>conftest.err &&
6548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6552 # icc doesn't choke on unknown options, it will just issue warnings
6553 # or remarks (even with -Werror). So we grep stderr for any message
6554 # that says an option was ignored or not supported.
6555 # When given -MP, icc 7.0 and 7.1 complain thus:
6556 # icc: Command line warning: ignoring option '-M'; no argument required
6557 # The diagnosis changed in icc 8.0:
6558 # icc: Command line remark: option '-MP' not supported
6559 if (grep 'ignoring option' conftest.err ||
6560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6561 am_cv_CCAS_dependencies_compiler_type=$depmode
6562 break
6563 fi
6564 fi
6565 done
6566
6567 cd ..
6568 rm -rf conftest.dir
6569 else
6570 am_cv_CCAS_dependencies_compiler_type=none
6571 fi
6572 ;;
6573 esac
6574 fi
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6576 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6577 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6578
6579 if
6580 test "x$enable_dependency_tracking" != xno \
6581 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6582 am__fastdepCCAS_TRUE=
6583 am__fastdepCCAS_FALSE='#'
6584 else
6585 am__fastdepCCAS_TRUE='#'
6586 am__fastdepCCAS_FALSE=
6587 fi
6588
6589
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 printf %s "checking for $ac_word... " >&6; }
6595 if test ${ac_cv_prog_RANLIB+y}
6596 then :
6597 printf %s "(cached) " >&6
6598 else case e in #(
6599 e) if test -n "$RANLIB"; then
6600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605 IFS=$as_save_IFS
6606 case $as_dir in #(((
6607 '') as_dir=./ ;;
6608 */) ;;
6609 *) as_dir=$as_dir/ ;;
6610 esac
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi ;;
6622 esac
6623 fi
6624 RANLIB=$ac_cv_prog_RANLIB
6625 if test -n "$RANLIB"; then
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6627 printf "%s\n" "$RANLIB" >&6; }
6628 else
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 printf "%s\n" "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_RANLIB"; then
6636 ac_ct_RANLIB=$RANLIB
6637 # Extract the first word of "ranlib", so it can be a program name with args.
6638 set dummy ranlib; ac_word=$2
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 printf %s "checking for $ac_word... " >&6; }
6641 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) if test -n "$ac_ct_RANLIB"; then
6646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 case $as_dir in #(((
6653 '') as_dir=./ ;;
6654 */) ;;
6655 *) as_dir=$as_dir/ ;;
6656 esac
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_ac_ct_RANLIB="ranlib"
6660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi ;;
6668 esac
6669 fi
6670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6671 if test -n "$ac_ct_RANLIB"; then
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6673 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6674 else
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 printf "%s\n" "no" >&6; }
6677 fi
6678
6679 if test "x$ac_ct_RANLIB" = x; then
6680 RANLIB=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 RANLIB=$ac_ct_RANLIB
6689 fi
6690 else
6691 RANLIB="$ac_cv_prog_RANLIB"
6692 fi
6693
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6695 printf %s "checking whether ln -s works... " >&6; }
6696 LN_S=$as_ln_s
6697 if test "$LN_S" = "ln -s"; then
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6699 printf "%s\n" "yes" >&6; }
6700 else
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6702 printf "%s\n" "no, using $LN_S" >&6; }
6703 fi
6704
6705
6706 LUAJITVERSION=2.1.81742
6707
6708
6709 LUAJIT_LT_VERSINFO=3:81742:1
6710
6711
6712 case `pwd` in
6713 *\ * | *\ *)
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6715 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6716 esac
6717
6718
6719
6720 macro_version='2.5.4'
6721 macro_revision='2.5.4'
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 ltmain=$ac_aux_dir/ltmain.sh
6737
6738 # Backslashify metacharacters that are still active within
6739 # double-quoted strings.
6740 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6741
6742 # Same as above, but do not quote variable references.
6743 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6744
6745 # Sed substitution to delay expansion of an escaped shell variable in a
6746 # double_quote_subst'ed string.
6747 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6748
6749 # Sed substitution to delay expansion of an escaped single quote.
6750 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6751
6752 # Sed substitution to avoid accidental globbing in evaled expressions
6753 no_glob_subst='s/\*/\\\*/g'
6754
6755 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6757 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6758
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6760 printf %s "checking how to print strings... " >&6; }
6761 # Test print first, because it will be a builtin if present.
6762 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6763 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6764 ECHO='print -r --'
6765 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6766 ECHO='printf %s\n'
6767 else
6768 # Use this function as a fallback that always works.
6769 func_fallback_echo ()
6770 {
6771 eval 'cat <<_LTECHO_EOF
6772 $1
6773 _LTECHO_EOF'
6774 }
6775 ECHO='func_fallback_echo'
6776 fi
6777
6778 # func_echo_all arg...
6779 # Invoke $ECHO with all args, space-separated.
6780 func_echo_all ()
6781 {
6782 $ECHO ""
6783 }
6784
6785 case $ECHO in
6786 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6787 printf "%s\n" "printf" >&6; } ;;
6788 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6789 printf "%s\n" "print -r" >&6; } ;;
6790 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6791 printf "%s\n" "cat" >&6; } ;;
6792 esac
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6808 printf %s "checking for a sed that does not truncate output... " >&6; }
6809 if test ${ac_cv_path_SED+y}
6810 then :
6811 printf %s "(cached) " >&6
6812 else case e in #(
6813 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6814 for ac_i in 1 2 3 4 5 6 7; do
6815 ac_script="$ac_script$as_nl$ac_script"
6816 done
6817 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6818 { ac_script=; unset ac_script;}
6819 if test -z "$SED"; then
6820 ac_path_SED_found=false
6821 # Loop through the user's path and test for each of PROGNAME-LIST
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 case $as_dir in #(((
6827 '') as_dir=./ ;;
6828 */) ;;
6829 *) as_dir=$as_dir/ ;;
6830 esac
6831 for ac_prog in sed gsed
6832 do
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6835 as_fn_executable_p "$ac_path_SED" || continue
6836 # Check for GNU ac_path_SED and select it if it is found.
6837 # Check for GNU $ac_path_SED
6838 case `"$ac_path_SED" --version 2>&1` in #(
6839 *GNU*)
6840 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6841 #(
6842 *)
6843 ac_count=0
6844 printf %s 0123456789 >"conftest.in"
6845 while :
6846 do
6847 cat "conftest.in" "conftest.in" >"conftest.tmp"
6848 mv "conftest.tmp" "conftest.in"
6849 cp "conftest.in" "conftest.nl"
6850 printf "%s\n" '' >> "conftest.nl"
6851 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6853 as_fn_arith $ac_count + 1 && ac_count=$as_val
6854 if test $ac_count -gt ${ac_path_SED_max-0}; then
6855 # Best one so far, save it but keep looking for a better one
6856 ac_cv_path_SED="$ac_path_SED"
6857 ac_path_SED_max=$ac_count
6858 fi
6859 # 10*(2^10) chars as input seems more than enough
6860 test $ac_count -gt 10 && break
6861 done
6862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6863 esac
6864
6865 $ac_path_SED_found && break 3
6866 done
6867 done
6868 done
6869 IFS=$as_save_IFS
6870 if test -z "$ac_cv_path_SED"; then
6871 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6872 fi
6873 else
6874 ac_cv_path_SED=$SED
6875 fi
6876 ;;
6877 esac
6878 fi
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6880 printf "%s\n" "$ac_cv_path_SED" >&6; }
6881 SED="$ac_cv_path_SED"
6882 rm -f conftest.sed
6883
6884 test -z "$SED" && SED=sed
6885 Xsed="$SED -e 1s/^X//"
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6898 printf %s "checking for grep that handles long lines and -e... " >&6; }
6899 if test ${ac_cv_path_GREP+y}
6900 then :
6901 printf %s "(cached) " >&6
6902 else case e in #(
6903 e) if test -z "$GREP"; then
6904 ac_path_GREP_found=false
6905 # Loop through the user's path and test for each of PROGNAME-LIST
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6908 do
6909 IFS=$as_save_IFS
6910 case $as_dir in #(((
6911 '') as_dir=./ ;;
6912 */) ;;
6913 *) as_dir=$as_dir/ ;;
6914 esac
6915 for ac_prog in grep ggrep
6916 do
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6919 as_fn_executable_p "$ac_path_GREP" || continue
6920 # Check for GNU ac_path_GREP and select it if it is found.
6921 # Check for GNU $ac_path_GREP
6922 case `"$ac_path_GREP" --version 2>&1` in #(
6923 *GNU*)
6924 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6925 #(
6926 *)
6927 ac_count=0
6928 printf %s 0123456789 >"conftest.in"
6929 while :
6930 do
6931 cat "conftest.in" "conftest.in" >"conftest.tmp"
6932 mv "conftest.tmp" "conftest.in"
6933 cp "conftest.in" "conftest.nl"
6934 printf "%s\n" 'GREP' >> "conftest.nl"
6935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6937 as_fn_arith $ac_count + 1 && ac_count=$as_val
6938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6939 # Best one so far, save it but keep looking for a better one
6940 ac_cv_path_GREP="$ac_path_GREP"
6941 ac_path_GREP_max=$ac_count
6942 fi
6943 # 10*(2^10) chars as input seems more than enough
6944 test $ac_count -gt 10 && break
6945 done
6946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6947 esac
6948
6949 $ac_path_GREP_found && break 3
6950 done
6951 done
6952 done
6953 IFS=$as_save_IFS
6954 if test -z "$ac_cv_path_GREP"; then
6955 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6956 fi
6957 else
6958 ac_cv_path_GREP=$GREP
6959 fi
6960 ;;
6961 esac
6962 fi
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6964 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6965 GREP="$ac_cv_path_GREP"
6966
6967
6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6969 printf %s "checking for egrep... " >&6; }
6970 if test ${ac_cv_path_EGREP+y}
6971 then :
6972 printf %s "(cached) " >&6
6973 else case e in #(
6974 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6975 then ac_cv_path_EGREP="$GREP -E"
6976 else
6977 if test -z "$EGREP"; then
6978 ac_path_EGREP_found=false
6979 # Loop through the user's path and test for each of PROGNAME-LIST
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6982 do
6983 IFS=$as_save_IFS
6984 case $as_dir in #(((
6985 '') as_dir=./ ;;
6986 */) ;;
6987 *) as_dir=$as_dir/ ;;
6988 esac
6989 for ac_prog in egrep
6990 do
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6993 as_fn_executable_p "$ac_path_EGREP" || continue
6994 # Check for GNU ac_path_EGREP and select it if it is found.
6995 # Check for GNU $ac_path_EGREP
6996 case `"$ac_path_EGREP" --version 2>&1` in #(
6997 *GNU*)
6998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6999 #(
7000 *)
7001 ac_count=0
7002 printf %s 0123456789 >"conftest.in"
7003 while :
7004 do
7005 cat "conftest.in" "conftest.in" >"conftest.tmp"
7006 mv "conftest.tmp" "conftest.in"
7007 cp "conftest.in" "conftest.nl"
7008 printf "%s\n" 'EGREP' >> "conftest.nl"
7009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7011 as_fn_arith $ac_count + 1 && ac_count=$as_val
7012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7013 # Best one so far, save it but keep looking for a better one
7014 ac_cv_path_EGREP="$ac_path_EGREP"
7015 ac_path_EGREP_max=$ac_count
7016 fi
7017 # 10*(2^10) chars as input seems more than enough
7018 test $ac_count -gt 10 && break
7019 done
7020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7021 esac
7022
7023 $ac_path_EGREP_found && break 3
7024 done
7025 done
7026 done
7027 IFS=$as_save_IFS
7028 if test -z "$ac_cv_path_EGREP"; then
7029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7030 fi
7031 else
7032 ac_cv_path_EGREP=$EGREP
7033 fi
7034
7035 fi ;;
7036 esac
7037 fi
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7039 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7040 EGREP="$ac_cv_path_EGREP"
7041
7042 EGREP_TRADITIONAL=$EGREP
7043 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7044
7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7046 printf %s "checking for fgrep... " >&6; }
7047 if test ${ac_cv_path_FGREP+y}
7048 then :
7049 printf %s "(cached) " >&6
7050 else case e in #(
7051 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7052 then ac_cv_path_FGREP="$GREP -F"
7053 else
7054 if test -z "$FGREP"; then
7055 ac_path_FGREP_found=false
7056 # Loop through the user's path and test for each of PROGNAME-LIST
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7059 do
7060 IFS=$as_save_IFS
7061 case $as_dir in #(((
7062 '') as_dir=./ ;;
7063 */) ;;
7064 *) as_dir=$as_dir/ ;;
7065 esac
7066 for ac_prog in fgrep
7067 do
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7070 as_fn_executable_p "$ac_path_FGREP" || continue
7071 # Check for GNU ac_path_FGREP and select it if it is found.
7072 # Check for GNU $ac_path_FGREP
7073 case `"$ac_path_FGREP" --version 2>&1` in #(
7074 *GNU*)
7075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7076 #(
7077 *)
7078 ac_count=0
7079 printf %s 0123456789 >"conftest.in"
7080 while :
7081 do
7082 cat "conftest.in" "conftest.in" >"conftest.tmp"
7083 mv "conftest.tmp" "conftest.in"
7084 cp "conftest.in" "conftest.nl"
7085 printf "%s\n" 'FGREP' >> "conftest.nl"
7086 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7088 as_fn_arith $ac_count + 1 && ac_count=$as_val
7089 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7090 # Best one so far, save it but keep looking for a better one
7091 ac_cv_path_FGREP="$ac_path_FGREP"
7092 ac_path_FGREP_max=$ac_count
7093 fi
7094 # 10*(2^10) chars as input seems more than enough
7095 test $ac_count -gt 10 && break
7096 done
7097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7098 esac
7099
7100 $ac_path_FGREP_found && break 3
7101 done
7102 done
7103 done
7104 IFS=$as_save_IFS
7105 if test -z "$ac_cv_path_FGREP"; then
7106 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7107 fi
7108 else
7109 ac_cv_path_FGREP=$FGREP
7110 fi
7111
7112 fi ;;
7113 esac
7114 fi
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7116 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7117 FGREP="$ac_cv_path_FGREP"
7118
7119
7120 test -z "$GREP" && GREP=grep
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 # Check whether --with-gnu-ld was given.
7141 if test ${with_gnu_ld+y}
7142 then :
7143 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7144 else case e in #(
7145 e) with_gnu_ld=no ;;
7146 esac
7147 fi
7148
7149 ac_prog=ld
7150 if test yes = "$GCC"; then
7151 # Check if gcc -print-prog-name=ld gives a path.
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7153 printf %s "checking for ld used by $CC... " >&6; }
7154 case $host in
7155 *-*-mingw* | *-*-windows*)
7156 # gcc leaves a trailing carriage return, which upsets mingw
7157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7158 *)
7159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7160 esac
7161 case $ac_prog in
7162 # Accept absolute paths.
7163 [\\/]* | ?:[\\/]*)
7164 re_direlt='/[^/][^/]*/\.\./'
7165 # Canonicalize the pathname of ld
7166 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7167 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7168 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7169 done
7170 test -z "$LD" && LD=$ac_prog
7171 ;;
7172 "")
7173 # If it fails, then pretend we aren't using GCC.
7174 ac_prog=ld
7175 ;;
7176 *)
7177 # If it is relative, then search for the first ld in PATH.
7178 with_gnu_ld=unknown
7179 ;;
7180 esac
7181 elif test yes = "$with_gnu_ld"; then
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7183 printf %s "checking for GNU ld... " >&6; }
7184 else
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7186 printf %s "checking for non-GNU ld... " >&6; }
7187 fi
7188 if test ${lt_cv_path_LD+y}
7189 then :
7190 printf %s "(cached) " >&6
7191 else case e in #(
7192 e) if test -z "$LD"; then
7193 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7194 for ac_dir in $PATH; do
7195 IFS=$lt_save_ifs
7196 test -z "$ac_dir" && ac_dir=.
7197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7198 lt_cv_path_LD=$ac_dir/$ac_prog
7199 # Check to see if the program is GNU ld. I'd rather use --version,
7200 # but apparently some variants of GNU ld only accept -v.
7201 # Break only if it was the GNU/non-GNU ld that we prefer.
7202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7203 *GNU* | *'with BFD'*)
7204 test no != "$with_gnu_ld" && break
7205 ;;
7206 *)
7207 test yes != "$with_gnu_ld" && break
7208 ;;
7209 esac
7210 fi
7211 done
7212 IFS=$lt_save_ifs
7213 else
7214 lt_cv_path_LD=$LD # Let the user override the test with a path.
7215 fi ;;
7216 esac
7217 fi
7218
7219 LD=$lt_cv_path_LD
7220 if test -n "$LD"; then
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7222 printf "%s\n" "$LD" >&6; }
7223 else
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 printf "%s\n" "no" >&6; }
7226 fi
7227 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7229 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7230 if test ${lt_cv_prog_gnu_ld+y}
7231 then :
7232 printf %s "(cached) " >&6
7233 else case e in #(
7234 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7235 case `$LD -v 2>&1 </dev/null` in
7236 *GNU* | *'with BFD'*)
7237 lt_cv_prog_gnu_ld=yes
7238 ;;
7239 *)
7240 lt_cv_prog_gnu_ld=no
7241 ;;
7242 esac ;;
7243 esac
7244 fi
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7246 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7247 with_gnu_ld=$lt_cv_prog_gnu_ld
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7258 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7259 if test ${lt_cv_path_NM+y}
7260 then :
7261 printf %s "(cached) " >&6
7262 else case e in #(
7263 e) if test -n "$NM"; then
7264 # Let the user override the test.
7265 lt_cv_path_NM=$NM
7266 else
7267 lt_nm_to_check=${ac_tool_prefix}nm
7268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7269 lt_nm_to_check="$lt_nm_to_check nm"
7270 fi
7271 for lt_tmp_nm in $lt_nm_to_check; do
7272 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7274 IFS=$lt_save_ifs
7275 test -z "$ac_dir" && ac_dir=.
7276 tmp_nm=$ac_dir/$lt_tmp_nm
7277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7278 # Check to see if the nm accepts a BSD-compat flag.
7279 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7280 # nm: unknown option "B" ignored
7281 # Tru64's nm complains that /dev/null is an invalid object file
7282 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7283 case $build_os in
7284 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7285 *) lt_bad_file=/dev/null ;;
7286 esac
7287 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7288 *$lt_bad_file* | *'Invalid file or object type'*)
7289 lt_cv_path_NM="$tmp_nm -B"
7290 break 2
7291 ;;
7292 *)
7293 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7294 */dev/null*)
7295 lt_cv_path_NM="$tmp_nm -p"
7296 break 2
7297 ;;
7298 *)
7299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7300 continue # so that we can try to find one that supports BSD flags
7301 ;;
7302 esac
7303 ;;
7304 esac
7305 fi
7306 done
7307 IFS=$lt_save_ifs
7308 done
7309 : ${lt_cv_path_NM=no}
7310 fi ;;
7311 esac
7312 fi
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7314 printf "%s\n" "$lt_cv_path_NM" >&6; }
7315 if test no != "$lt_cv_path_NM"; then
7316 NM=$lt_cv_path_NM
7317 else
7318 # Didn't find any BSD compatible name lister, look for dumpbin.
7319 if test -n "$DUMPBIN"; then :
7320 # Let the user override the test.
7321 else
7322 if test -n "$ac_tool_prefix"; then
7323 for ac_prog in dumpbin "link -dump"
7324 do
7325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 printf %s "checking for $ac_word... " >&6; }
7329 if test ${ac_cv_prog_DUMPBIN+y}
7330 then :
7331 printf %s "(cached) " >&6
7332 else case e in #(
7333 e) if test -n "$DUMPBIN"; then
7334 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 case $as_dir in #(((
7341 '') as_dir=./ ;;
7342 */) ;;
7343 *) as_dir=$as_dir/ ;;
7344 esac
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7354
7355 fi ;;
7356 esac
7357 fi
7358 DUMPBIN=$ac_cv_prog_DUMPBIN
7359 if test -n "$DUMPBIN"; then
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7361 printf "%s\n" "$DUMPBIN" >&6; }
7362 else
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 printf "%s\n" "no" >&6; }
7365 fi
7366
7367
7368 test -n "$DUMPBIN" && break
7369 done
7370 fi
7371 if test -z "$DUMPBIN"; then
7372 ac_ct_DUMPBIN=$DUMPBIN
7373 for ac_prog in dumpbin "link -dump"
7374 do
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 printf %s "checking for $ac_word... " >&6; }
7379 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else case e in #(
7383 e) if test -n "$ac_ct_DUMPBIN"; then
7384 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 case $as_dir in #(((
7391 '') as_dir=./ ;;
7392 */) ;;
7393 *) as_dir=$as_dir/ ;;
7394 esac
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7404
7405 fi ;;
7406 esac
7407 fi
7408 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7409 if test -n "$ac_ct_DUMPBIN"; then
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7411 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7412 else
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 printf "%s\n" "no" >&6; }
7415 fi
7416
7417
7418 test -n "$ac_ct_DUMPBIN" && break
7419 done
7420
7421 if test "x$ac_ct_DUMPBIN" = x; then
7422 DUMPBIN=":"
7423 else
7424 case $cross_compiling:$ac_tool_warned in
7425 yes:)
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428 ac_tool_warned=yes ;;
7429 esac
7430 DUMPBIN=$ac_ct_DUMPBIN
7431 fi
7432 fi
7433
7434 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7435 *COFF*)
7436 DUMPBIN="$DUMPBIN -symbols -headers"
7437 ;;
7438 *)
7439 DUMPBIN=:
7440 ;;
7441 esac
7442 fi
7443
7444 if test : != "$DUMPBIN"; then
7445 NM=$DUMPBIN
7446 fi
7447 fi
7448 test -z "$NM" && NM=nm
7449
7450
7451
7452
7453
7454
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7456 printf %s "checking the name lister ($NM) interface... " >&6; }
7457 if test ${lt_cv_nm_interface+y}
7458 then :
7459 printf %s "(cached) " >&6
7460 else case e in #(
7461 e) lt_cv_nm_interface="BSD nm"
7462 echo "int some_variable = 0;" > conftest.$ac_ext
7463 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7464 (eval "$ac_compile" 2>conftest.err)
7465 cat conftest.err >&5
7466 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7468 cat conftest.err >&5
7469 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7470 cat conftest.out >&5
7471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7472 lt_cv_nm_interface="MS dumpbin"
7473 fi
7474 rm -f conftest* ;;
7475 esac
7476 fi
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7478 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7479
7480 # find the maximum length of command line arguments
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7482 printf %s "checking the maximum length of command line arguments... " >&6; }
7483 if test ${lt_cv_sys_max_cmd_len+y}
7484 then :
7485 printf %s "(cached) " >&6
7486 else case e in #(
7487 e) i=0
7488 teststring=ABCD
7489
7490 case $build_os in
7491 msdosdjgpp*)
7492 # On DJGPP, this test can blow up pretty badly due to problems in libc
7493 # (any single argument exceeding 2000 bytes causes a buffer overrun
7494 # during glob expansion). Even if it were fixed, the result of this
7495 # check would be larger than it should be.
7496 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7497 ;;
7498
7499 gnu* | ironclad*)
7500 # Under GNU Hurd and Ironclad, this test is not required because there
7501 # is no limit to the length of command line arguments.
7502 # Libtool will interpret -1 as no limit whatsoever
7503 lt_cv_sys_max_cmd_len=-1;
7504 ;;
7505
7506 cygwin* | mingw* | windows* | cegcc*)
7507 # On Win9x/ME, this test blows up -- it succeeds, but takes
7508 # about 5 minutes as the teststring grows exponentially.
7509 # Worse, since 9x/ME are not pre-emptively multitasking,
7510 # you end up with a "frozen" computer, even though with patience
7511 # the test eventually succeeds (with a max line length of 256k).
7512 # Instead, let's just punt: use the minimum linelength reported by
7513 # all of the supported platforms: 8192 (on NT/2K/XP).
7514 lt_cv_sys_max_cmd_len=8192;
7515 ;;
7516
7517 mint*)
7518 # On MiNT this can take a long time and run out of memory.
7519 lt_cv_sys_max_cmd_len=8192;
7520 ;;
7521
7522 amigaos*)
7523 # On AmigaOS with pdksh, this test takes hours, literally.
7524 # So we just punt and use a minimum line length of 8192.
7525 lt_cv_sys_max_cmd_len=8192;
7526 ;;
7527
7528 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7529 # This has been around since 386BSD, at least. Likely further.
7530 if test -x /sbin/sysctl; then
7531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7532 elif test -x /usr/sbin/sysctl; then
7533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7534 else
7535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7536 fi
7537 # And add a safety zone
7538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7540 ;;
7541
7542 interix*)
7543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7544 lt_cv_sys_max_cmd_len=196608
7545 ;;
7546
7547 os2*)
7548 # The test takes a long time on OS/2.
7549 lt_cv_sys_max_cmd_len=8192
7550 ;;
7551
7552 osf*)
7553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7555 # nice to cause kernel panics so lets avoid the loop below.
7556 # First set a reasonable default.
7557 lt_cv_sys_max_cmd_len=16384
7558 #
7559 if test -x /sbin/sysconfig; then
7560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7562 esac
7563 fi
7564 ;;
7565 sco3.2v5*)
7566 lt_cv_sys_max_cmd_len=102400
7567 ;;
7568 sysv5* | sco5v6* | sysv4.2uw2*)
7569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7570 if test -n "$kargmax"; then
7571 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7572 else
7573 lt_cv_sys_max_cmd_len=32768
7574 fi
7575 ;;
7576 *)
7577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7578 if test -n "$lt_cv_sys_max_cmd_len" && \
7579 test undefined != "$lt_cv_sys_max_cmd_len"; then
7580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7582 else
7583 # Make teststring a little bigger before we do anything with it.
7584 # a 1K string should be a reasonable start.
7585 for i in 1 2 3 4 5 6 7 8; do
7586 teststring=$teststring$teststring
7587 done
7588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7589 # If test is not a shell built-in, we'll probably end up computing a
7590 # maximum length that is only half of the actual maximum length, but
7591 # we can't tell.
7592 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7594 test 17 != "$i" # 1/2 MB should be enough
7595 do
7596 i=`expr $i + 1`
7597 teststring=$teststring$teststring
7598 done
7599 # Only check the string length outside the loop.
7600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7601 teststring=
7602 # Add a significant safety factor because C++ compilers can tack on
7603 # massive amounts of additional arguments before passing them to the
7604 # linker. It appears as though 1/2 is a usable value.
7605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7606 fi
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 fi
7612
7613 if test -n "$lt_cv_sys_max_cmd_len"; then
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7615 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7616 else
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7618 printf "%s\n" "none" >&6; }
7619 fi
7620 max_cmd_len=$lt_cv_sys_max_cmd_len
7621
7622
7623
7624
7625
7626
7627 : ${CP="cp -f"}
7628 : ${MV="mv -f"}
7629 : ${RM="rm -f"}
7630
7631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7632 lt_unset=unset
7633 else
7634 lt_unset=false
7635 fi
7636
7637
7638
7639
7640
7641 # test EBCDIC or ASCII
7642 case `echo X|tr X '\101'` in
7643 A) # ASCII based system
7644 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7645 lt_SP2NL='tr \040 \012'
7646 lt_NL2SP='tr \015\012 \040\040'
7647 ;;
7648 *) # EBCDIC based system
7649 lt_SP2NL='tr \100 \n'
7650 lt_NL2SP='tr \r\n \100\100'
7651 ;;
7652 esac
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7663 printf %s "checking how to convert $build file names to $host format... " >&6; }
7664 if test ${lt_cv_to_host_file_cmd+y}
7665 then :
7666 printf %s "(cached) " >&6
7667 else case e in #(
7668 e) case $host in
7669 *-*-mingw* )
7670 case $build in
7671 *-*-mingw* | *-*-windows* ) # actually msys
7672 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7673 ;;
7674 *-*-cygwin* )
7675 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7676 ;;
7677 * ) # otherwise, assume *nix
7678 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7679 ;;
7680 esac
7681 ;;
7682 *-*-cygwin* )
7683 case $build in
7684 *-*-mingw* | *-*-windows* ) # actually msys
7685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7686 ;;
7687 *-*-cygwin* )
7688 lt_cv_to_host_file_cmd=func_convert_file_noop
7689 ;;
7690 * ) # otherwise, assume *nix
7691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7692 ;;
7693 esac
7694 ;;
7695 * ) # unhandled hosts (and "normal" native builds)
7696 lt_cv_to_host_file_cmd=func_convert_file_noop
7697 ;;
7698 esac
7699 ;;
7700 esac
7701 fi
7702
7703 to_host_file_cmd=$lt_cv_to_host_file_cmd
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7705 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7706
7707
7708
7709
7710
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7712 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7713 if test ${lt_cv_to_tool_file_cmd+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else case e in #(
7717 e) #assume ordinary cross tools, or native build.
7718 lt_cv_to_tool_file_cmd=func_convert_file_noop
7719 case $host in
7720 *-*-mingw* | *-*-windows* )
7721 case $build in
7722 *-*-mingw* | *-*-windows* ) # actually msys
7723 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7724 ;;
7725 esac
7726 ;;
7727 esac
7728 ;;
7729 esac
7730 fi
7731
7732 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7734 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7735
7736
7737
7738
7739
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7741 printf %s "checking for $LD option to reload object files... " >&6; }
7742 if test ${lt_cv_ld_reload_flag+y}
7743 then :
7744 printf %s "(cached) " >&6
7745 else case e in #(
7746 e) lt_cv_ld_reload_flag='-r' ;;
7747 esac
7748 fi
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7750 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7751 reload_flag=$lt_cv_ld_reload_flag
7752 case $reload_flag in
7753 "" | " "*) ;;
7754 *) reload_flag=" $reload_flag" ;;
7755 esac
7756 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7757 case $host_os in
7758 cygwin* | mingw* | windows* | pw32* | cegcc*)
7759 if test yes != "$GCC"; then
7760 reload_cmds=false
7761 fi
7762 ;;
7763 darwin*)
7764 if test yes = "$GCC"; then
7765 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7766 else
7767 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7768 fi
7769 ;;
7770 esac
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 # Extract the first word of "file", so it can be a program name with args.
7781 set dummy file; ac_word=$2
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 printf %s "checking for $ac_word... " >&6; }
7784 if test ${ac_cv_prog_FILECMD+y}
7785 then :
7786 printf %s "(cached) " >&6
7787 else case e in #(
7788 e) if test -n "$FILECMD"; then
7789 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794 IFS=$as_save_IFS
7795 case $as_dir in #(((
7796 '') as_dir=./ ;;
7797 */) ;;
7798 *) as_dir=$as_dir/ ;;
7799 esac
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_FILECMD="file"
7803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806 done
7807 done
7808 IFS=$as_save_IFS
7809
7810 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7811 fi ;;
7812 esac
7813 fi
7814 FILECMD=$ac_cv_prog_FILECMD
7815 if test -n "$FILECMD"; then
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7817 printf "%s\n" "$FILECMD" >&6; }
7818 else
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 printf "%s\n" "no" >&6; }
7821 fi
7822
7823
7824
7825
7826
7827
7828
7829
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 printf %s "checking for $ac_word... " >&6; }
7835 if test ${ac_cv_prog_OBJDUMP+y}
7836 then :
7837 printf %s "(cached) " >&6
7838 else case e in #(
7839 e) if test -n "$OBJDUMP"; then
7840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 case $as_dir in #(((
7847 '') as_dir=./ ;;
7848 */) ;;
7849 *) as_dir=$as_dir/ ;;
7850 esac
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi ;;
7862 esac
7863 fi
7864 OBJDUMP=$ac_cv_prog_OBJDUMP
7865 if test -n "$OBJDUMP"; then
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7867 printf "%s\n" "$OBJDUMP" >&6; }
7868 else
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 printf "%s\n" "no" >&6; }
7871 fi
7872
7873
7874 fi
7875 if test -z "$ac_cv_prog_OBJDUMP"; then
7876 ac_ct_OBJDUMP=$OBJDUMP
7877 # Extract the first word of "objdump", so it can be a program name with args.
7878 set dummy objdump; ac_word=$2
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 printf %s "checking for $ac_word... " >&6; }
7881 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7882 then :
7883 printf %s "(cached) " >&6
7884 else case e in #(
7885 e) if test -n "$ac_ct_OBJDUMP"; then
7886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891 IFS=$as_save_IFS
7892 case $as_dir in #(((
7893 '') as_dir=./ ;;
7894 */) ;;
7895 *) as_dir=$as_dir/ ;;
7896 esac
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7899 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903 done
7904 done
7905 IFS=$as_save_IFS
7906
7907 fi ;;
7908 esac
7909 fi
7910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7911 if test -n "$ac_ct_OBJDUMP"; then
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7913 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7914 else
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 printf "%s\n" "no" >&6; }
7917 fi
7918
7919 if test "x$ac_ct_OBJDUMP" = x; then
7920 OBJDUMP="false"
7921 else
7922 case $cross_compiling:$ac_tool_warned in
7923 yes:)
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926 ac_tool_warned=yes ;;
7927 esac
7928 OBJDUMP=$ac_ct_OBJDUMP
7929 fi
7930 else
7931 OBJDUMP="$ac_cv_prog_OBJDUMP"
7932 fi
7933
7934 test -z "$OBJDUMP" && OBJDUMP=objdump
7935
7936
7937
7938
7939
7940
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7942 printf %s "checking how to recognize dependent libraries... " >&6; }
7943 if test ${lt_cv_deplibs_check_method+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else case e in #(
7947 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7948 lt_cv_file_magic_test_file=
7949 lt_cv_deplibs_check_method='unknown'
7950 # Need to set the preceding variable on all platforms that support
7951 # interlibrary dependencies.
7952 # 'none' -- dependencies not supported.
7953 # 'unknown' -- same as none, but documents that we really don't know.
7954 # 'pass_all' -- all dependencies passed with no checks.
7955 # 'file_magic [[regex]]' -- check by looking for files in library path
7956 # that responds to the $file_magic_cmd with a given extended regex.
7957 # If you have 'file' or equivalent on your system and you're not sure
7958 # whether 'pass_all' will *always* work, you probably want this one.
7959
7960 case $host_os in
7961 aix[4-9]*)
7962 lt_cv_deplibs_check_method=pass_all
7963 ;;
7964
7965 beos*)
7966 lt_cv_deplibs_check_method=pass_all
7967 ;;
7968
7969 bsdi[45]*)
7970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7971 lt_cv_file_magic_cmd='$FILECMD -L'
7972 lt_cv_file_magic_test_file=/shlib/libc.so
7973 ;;
7974
7975 cygwin*)
7976 # func_win32_libid is a shell function defined in ltmain.sh
7977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7978 lt_cv_file_magic_cmd='func_win32_libid'
7979 ;;
7980
7981 mingw* | windows* | pw32*)
7982 # Base MSYS/MinGW do not provide the 'file' command needed by
7983 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7984 # unless we find 'file', for example because we are cross-compiling.
7985 if ( file / ) >/dev/null 2>&1; then
7986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7987 lt_cv_file_magic_cmd='func_win32_libid'
7988 else
7989 # Keep this pattern in sync with the one in func_win32_libid.
7990 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7991 lt_cv_file_magic_cmd='$OBJDUMP -f'
7992 fi
7993 ;;
7994
7995 cegcc*)
7996 # use the weaker test based on 'objdump'. See mingw*.
7997 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7998 lt_cv_file_magic_cmd='$OBJDUMP -f'
7999 ;;
8000
8001 darwin* | rhapsody*)
8002 lt_cv_deplibs_check_method=pass_all
8003 ;;
8004
8005 freebsd* | dragonfly* | midnightbsd*)
8006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8007 case $host_cpu in
8008 i*86 )
8009 # Not sure whether the presence of OpenBSD here was a mistake.
8010 # Let's accept both of them until this is cleared up.
8011 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8012 lt_cv_file_magic_cmd=$FILECMD
8013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8014 ;;
8015 esac
8016 else
8017 lt_cv_deplibs_check_method=pass_all
8018 fi
8019 ;;
8020
8021 haiku*)
8022 lt_cv_deplibs_check_method=pass_all
8023 ;;
8024
8025 hpux10.20* | hpux11*)
8026 lt_cv_file_magic_cmd=$FILECMD
8027 case $host_cpu in
8028 ia64*)
8029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8031 ;;
8032 hppa*64*)
8033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8035 ;;
8036 *)
8037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8039 ;;
8040 esac
8041 ;;
8042
8043 interix[3-9]*)
8044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8046 ;;
8047
8048 irix5* | irix6* | nonstopux*)
8049 case $LD in
8050 *-32|*"-32 ") libmagic=32-bit;;
8051 *-n32|*"-n32 ") libmagic=N32;;
8052 *-64|*"-64 ") libmagic=64-bit;;
8053 *) libmagic=never-match;;
8054 esac
8055 lt_cv_deplibs_check_method=pass_all
8056 ;;
8057
8058 # This must be glibc/ELF.
8059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8060 lt_cv_deplibs_check_method=pass_all
8061 ;;
8062
8063 *-mlibc)
8064 lt_cv_deplibs_check_method=pass_all
8065 ;;
8066
8067 netbsd* | netbsdelf*-gnu)
8068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8070 else
8071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8072 fi
8073 ;;
8074
8075 newos6*)
8076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8077 lt_cv_file_magic_cmd=$FILECMD
8078 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8079 ;;
8080
8081 *nto* | *qnx*)
8082 lt_cv_deplibs_check_method=pass_all
8083 ;;
8084
8085 openbsd*)
8086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8088 else
8089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8090 fi
8091 ;;
8092
8093 osf3* | osf4* | osf5*)
8094 lt_cv_deplibs_check_method=pass_all
8095 ;;
8096
8097 rdos*)
8098 lt_cv_deplibs_check_method=pass_all
8099 ;;
8100
8101 serenity*)
8102 lt_cv_deplibs_check_method=pass_all
8103 ;;
8104
8105 solaris*)
8106 lt_cv_deplibs_check_method=pass_all
8107 ;;
8108
8109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8110 lt_cv_deplibs_check_method=pass_all
8111 ;;
8112
8113 sysv4 | sysv4.3*)
8114 case $host_vendor in
8115 motorola)
8116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8118 ;;
8119 ncr)
8120 lt_cv_deplibs_check_method=pass_all
8121 ;;
8122 sequent)
8123 lt_cv_file_magic_cmd='/bin/file'
8124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8125 ;;
8126 sni)
8127 lt_cv_file_magic_cmd='/bin/file'
8128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8129 lt_cv_file_magic_test_file=/lib/libc.so
8130 ;;
8131 siemens)
8132 lt_cv_deplibs_check_method=pass_all
8133 ;;
8134 pc)
8135 lt_cv_deplibs_check_method=pass_all
8136 ;;
8137 esac
8138 ;;
8139
8140 tpf*)
8141 lt_cv_deplibs_check_method=pass_all
8142 ;;
8143 os2*)
8144 lt_cv_deplibs_check_method=pass_all
8145 ;;
8146 esac
8147 ;;
8148 esac
8149 fi
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8151 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8152
8153 file_magic_glob=
8154 want_nocaseglob=no
8155 if test "$build" = "$host"; then
8156 case $host_os in
8157 mingw* | windows* | pw32*)
8158 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8159 want_nocaseglob=yes
8160 else
8161 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8162 fi
8163 ;;
8164 esac
8165 fi
8166
8167 file_magic_cmd=$lt_cv_file_magic_cmd
8168 deplibs_check_method=$lt_cv_deplibs_check_method
8169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 printf %s "checking for $ac_word... " >&6; }
8197 if test ${ac_cv_prog_DLLTOOL+y}
8198 then :
8199 printf %s "(cached) " >&6
8200 else case e in #(
8201 e) if test -n "$DLLTOOL"; then
8202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 case $as_dir in #(((
8209 '') as_dir=./ ;;
8210 */) ;;
8211 *) as_dir=$as_dir/ ;;
8212 esac
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219 done
8220 done
8221 IFS=$as_save_IFS
8222
8223 fi ;;
8224 esac
8225 fi
8226 DLLTOOL=$ac_cv_prog_DLLTOOL
8227 if test -n "$DLLTOOL"; then
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8229 printf "%s\n" "$DLLTOOL" >&6; }
8230 else
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 printf "%s\n" "no" >&6; }
8233 fi
8234
8235
8236 fi
8237 if test -z "$ac_cv_prog_DLLTOOL"; then
8238 ac_ct_DLLTOOL=$DLLTOOL
8239 # Extract the first word of "dlltool", so it can be a program name with args.
8240 set dummy dlltool; ac_word=$2
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 printf %s "checking for $ac_word... " >&6; }
8243 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8244 then :
8245 printf %s "(cached) " >&6
8246 else case e in #(
8247 e) if test -n "$ac_ct_DLLTOOL"; then
8248 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253 IFS=$as_save_IFS
8254 case $as_dir in #(((
8255 '') as_dir=./ ;;
8256 */) ;;
8257 *) as_dir=$as_dir/ ;;
8258 esac
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8261 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265 done
8266 done
8267 IFS=$as_save_IFS
8268
8269 fi ;;
8270 esac
8271 fi
8272 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8273 if test -n "$ac_ct_DLLTOOL"; then
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8275 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8276 else
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 printf "%s\n" "no" >&6; }
8279 fi
8280
8281 if test "x$ac_ct_DLLTOOL" = x; then
8282 DLLTOOL="false"
8283 else
8284 case $cross_compiling:$ac_tool_warned in
8285 yes:)
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8287 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8288 ac_tool_warned=yes ;;
8289 esac
8290 DLLTOOL=$ac_ct_DLLTOOL
8291 fi
8292 else
8293 DLLTOOL="$ac_cv_prog_DLLTOOL"
8294 fi
8295
8296 test -z "$DLLTOOL" && DLLTOOL=dlltool
8297
8298
8299
8300
8301
8302
8303
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8305 printf %s "checking how to associate runtime and link libraries... " >&6; }
8306 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8307 then :
8308 printf %s "(cached) " >&6
8309 else case e in #(
8310 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8311
8312 case $host_os in
8313 cygwin* | mingw* | windows* | pw32* | cegcc*)
8314 # two different shell functions defined in ltmain.sh;
8315 # decide which one to use based on capabilities of $DLLTOOL
8316 case `$DLLTOOL --help 2>&1` in
8317 *--identify-strict*)
8318 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8319 ;;
8320 *)
8321 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8322 ;;
8323 esac
8324 ;;
8325 *)
8326 # fallback: assume linklib IS sharedlib
8327 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8328 ;;
8329 esac
8330 ;;
8331 esac
8332 fi
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8334 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8335 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8336 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8337
8338
8339
8340
8341
8342
8343
8344 if test -n "$ac_tool_prefix"; then
8345 for ac_prog in ar
8346 do
8347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_prog_AR+y}
8352 then :
8353 printf %s "(cached) " >&6
8354 else case e in #(
8355 e) if test -n "$AR"; then
8356 ac_cv_prog_AR="$AR" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 case $as_dir in #(((
8363 '') as_dir=./ ;;
8364 */) ;;
8365 *) as_dir=$as_dir/ ;;
8366 esac
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi ;;
8378 esac
8379 fi
8380 AR=$ac_cv_prog_AR
8381 if test -n "$AR"; then
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8383 printf "%s\n" "$AR" >&6; }
8384 else
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 printf "%s\n" "no" >&6; }
8387 fi
8388
8389
8390 test -n "$AR" && break
8391 done
8392 fi
8393 if test -z "$AR"; then
8394 ac_ct_AR=$AR
8395 for ac_prog in ar
8396 do
8397 # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 printf %s "checking for $ac_word... " >&6; }
8401 if test ${ac_cv_prog_ac_ct_AR+y}
8402 then :
8403 printf %s "(cached) " >&6
8404 else case e in #(
8405 e) if test -n "$ac_ct_AR"; then
8406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411 IFS=$as_save_IFS
8412 case $as_dir in #(((
8413 '') as_dir=./ ;;
8414 */) ;;
8415 *) as_dir=$as_dir/ ;;
8416 esac
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_ac_ct_AR="$ac_prog"
8420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi ;;
8428 esac
8429 fi
8430 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8431 if test -n "$ac_ct_AR"; then
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8433 printf "%s\n" "$ac_ct_AR" >&6; }
8434 else
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 printf "%s\n" "no" >&6; }
8437 fi
8438
8439
8440 test -n "$ac_ct_AR" && break
8441 done
8442
8443 if test "x$ac_ct_AR" = x; then
8444 AR="false"
8445 else
8446 case $cross_compiling:$ac_tool_warned in
8447 yes:)
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8450 ac_tool_warned=yes ;;
8451 esac
8452 AR=$ac_ct_AR
8453 fi
8454 fi
8455
8456 : ${AR=ar}
8457
8458
8459
8460
8461
8462
8463 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8464 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8465 # higher priority because that's what people were doing historically (setting
8466 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8467 # variable obsoleted/removed.
8468
8469 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8470 lt_ar_flags=$AR_FLAGS
8471
8472
8473
8474
8475
8476
8477 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8478 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8479
8480
8481
8482
8483
8484
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8486 printf %s "checking for archiver @FILE support... " >&6; }
8487 if test ${lt_cv_ar_at_file+y}
8488 then :
8489 printf %s "(cached) " >&6
8490 else case e in #(
8491 e) lt_cv_ar_at_file=no
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494
8495 int
8496 main (void)
8497 {
8498
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 if ac_fn_c_try_compile "$LINENO"
8504 then :
8505 echo conftest.$ac_objext > conftest.lst
8506 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8508 (eval $lt_ar_try) 2>&5
8509 ac_status=$?
8510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8511 test $ac_status = 0; }
8512 if test 0 -eq "$ac_status"; then
8513 # Ensure the archiver fails upon bogus file names.
8514 rm -f conftest.$ac_objext libconftest.a
8515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8516 (eval $lt_ar_try) 2>&5
8517 ac_status=$?
8518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8519 test $ac_status = 0; }
8520 if test 0 -ne "$ac_status"; then
8521 lt_cv_ar_at_file=@
8522 fi
8523 fi
8524 rm -f conftest.* libconftest.a
8525
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8528 ;;
8529 esac
8530 fi
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8532 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8533
8534 if test no = "$lt_cv_ar_at_file"; then
8535 archiver_list_spec=
8536 else
8537 archiver_list_spec=$lt_cv_ar_at_file
8538 fi
8539
8540
8541
8542
8543
8544
8545
8546 if test -n "$ac_tool_prefix"; then
8547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8548 set dummy ${ac_tool_prefix}strip; ac_word=$2
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 printf %s "checking for $ac_word... " >&6; }
8551 if test ${ac_cv_prog_STRIP+y}
8552 then :
8553 printf %s "(cached) " >&6
8554 else case e in #(
8555 e) if test -n "$STRIP"; then
8556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561 IFS=$as_save_IFS
8562 case $as_dir in #(((
8563 '') as_dir=./ ;;
8564 */) ;;
8565 *) as_dir=$as_dir/ ;;
8566 esac
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi ;;
8578 esac
8579 fi
8580 STRIP=$ac_cv_prog_STRIP
8581 if test -n "$STRIP"; then
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8583 printf "%s\n" "$STRIP" >&6; }
8584 else
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 printf "%s\n" "no" >&6; }
8587 fi
8588
8589
8590 fi
8591 if test -z "$ac_cv_prog_STRIP"; then
8592 ac_ct_STRIP=$STRIP
8593 # Extract the first word of "strip", so it can be a program name with args.
8594 set dummy strip; ac_word=$2
8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 printf %s "checking for $ac_word... " >&6; }
8597 if test ${ac_cv_prog_ac_ct_STRIP+y}
8598 then :
8599 printf %s "(cached) " >&6
8600 else case e in #(
8601 e) if test -n "$ac_ct_STRIP"; then
8602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607 IFS=$as_save_IFS
8608 case $as_dir in #(((
8609 '') as_dir=./ ;;
8610 */) ;;
8611 *) as_dir=$as_dir/ ;;
8612 esac
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_STRIP="strip"
8616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8617 break 2
8618 fi
8619 done
8620 done
8621 IFS=$as_save_IFS
8622
8623 fi ;;
8624 esac
8625 fi
8626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8627 if test -n "$ac_ct_STRIP"; then
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8629 printf "%s\n" "$ac_ct_STRIP" >&6; }
8630 else
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 printf "%s\n" "no" >&6; }
8633 fi
8634
8635 if test "x$ac_ct_STRIP" = x; then
8636 STRIP=":"
8637 else
8638 case $cross_compiling:$ac_tool_warned in
8639 yes:)
8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8641 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8642 ac_tool_warned=yes ;;
8643 esac
8644 STRIP=$ac_ct_STRIP
8645 fi
8646 else
8647 STRIP="$ac_cv_prog_STRIP"
8648 fi
8649
8650 test -z "$STRIP" && STRIP=:
8651
8652
8653
8654
8655
8656
8657
8658 test -z "$RANLIB" && RANLIB=:
8659
8660
8661
8662
8663
8664
8665 # Determine commands to create old-style static archives.
8666 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8667 old_postinstall_cmds='chmod 644 $oldlib'
8668 old_postuninstall_cmds=
8669
8670 if test -n "$RANLIB"; then
8671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8673 fi
8674
8675 case $host_os in
8676 darwin*)
8677 lock_old_archive_extraction=yes ;;
8678 *)
8679 lock_old_archive_extraction=no ;;
8680 esac
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 # If no C compiler was specified, use CC.
8721 LTCC=${LTCC-"$CC"}
8722
8723 # If no C compiler flags were specified, use CFLAGS.
8724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8725
8726 # Allow CC to be a program name with arguments.
8727 compiler=$CC
8728
8729
8730 # Check for command to grab the raw symbol name followed by C symbol from nm.
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8732 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8733 if test ${lt_cv_sys_global_symbol_pipe+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else case e in #(
8737 e)
8738 # These are sane defaults that work on at least a few old systems.
8739 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8740
8741 # Character class describing NM global symbol codes.
8742 symcode='[BCDEGRST]'
8743
8744 # Regexp to match symbols that can be accessed directly from C.
8745 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8746
8747 # Define system-specific variables.
8748 case $host_os in
8749 aix*)
8750 symcode='[BCDT]'
8751 ;;
8752 cygwin* | mingw* | windows* | pw32* | cegcc*)
8753 symcode='[ABCDGISTW]'
8754 ;;
8755 hpux*)
8756 if test ia64 = "$host_cpu"; then
8757 symcode='[ABCDEGRST]'
8758 fi
8759 ;;
8760 irix* | nonstopux*)
8761 symcode='[BCDEGRST]'
8762 ;;
8763 osf*)
8764 symcode='[BCDEGQRST]'
8765 ;;
8766 solaris*)
8767 symcode='[BCDRT]'
8768 ;;
8769 sco3.2v5*)
8770 symcode='[DT]'
8771 ;;
8772 sysv4.2uw2*)
8773 symcode='[DT]'
8774 ;;
8775 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8776 symcode='[ABDT]'
8777 ;;
8778 sysv4)
8779 symcode='[DFNSTU]'
8780 ;;
8781 esac
8782
8783 # If we're using GNU nm, then use its standard symbol codes.
8784 case `$NM -V 2>&1` in
8785 *GNU* | *'with BFD'*)
8786 symcode='[ABCDGIRSTW]' ;;
8787 esac
8788
8789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8790 # Gets list of data symbols to import.
8791 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8792 # Adjust the below global symbol transforms to fixup imported variables.
8793 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8794 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8795 lt_c_name_lib_hook="\
8796 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8797 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8798 else
8799 # Disable hooks by default.
8800 lt_cv_sys_global_symbol_to_import=
8801 lt_cdecl_hook=
8802 lt_c_name_hook=
8803 lt_c_name_lib_hook=
8804 fi
8805
8806 # Transform an extracted symbol line into a proper C declaration.
8807 # Some systems (esp. on ia64) link data and code symbols differently,
8808 # so use this general approach.
8809 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8810 $lt_cdecl_hook\
8811 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8812 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8813
8814 # Transform an extracted symbol line into symbol name and symbol address
8815 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8816 $lt_c_name_hook\
8817 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8818 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8819
8820 # Transform an extracted symbol line into symbol name with lib prefix and
8821 # symbol address.
8822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8823 $lt_c_name_lib_hook\
8824 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8825 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8826 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8827
8828 # Handle CRLF in mingw tool chain
8829 opt_cr=
8830 case $build_os in
8831 mingw* | windows*)
8832 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8833 ;;
8834 esac
8835
8836 # Try without a prefix underscore, then with it.
8837 for ac_symprfx in "" "_"; do
8838
8839 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8840 symxfrm="\\1 $ac_symprfx\\2 \\2"
8841
8842 # Write the raw and C identifiers.
8843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8844 # Fake it for dumpbin and say T for any non-static function,
8845 # D for any global variable and I for any imported variable.
8846 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8847 # which start with @ or ?.
8848 lt_cv_sys_global_symbol_pipe="$AWK '"\
8849 " {last_section=section; section=\$ 3};"\
8850 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8851 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8852 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8853 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8854 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8855 " \$ 0!~/External *\|/{next};"\
8856 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8857 " {if(hide[section]) next};"\
8858 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8859 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8860 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8861 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8862 " ' prfx=^$ac_symprfx"
8863 else
8864 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8865 fi
8866 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8867
8868 # Check to see that the pipe works correctly.
8869 pipe_works=no
8870
8871 rm -f conftest*
8872 cat > conftest.$ac_ext <<_LT_EOF
8873 #ifdef __cplusplus
8874 extern "C" {
8875 #endif
8876 char nm_test_var;
8877 void nm_test_func(void);
8878 void nm_test_func(void){}
8879 #ifdef __cplusplus
8880 }
8881 #endif
8882 int main(void){nm_test_var='a';nm_test_func();return(0);}
8883 _LT_EOF
8884
8885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8886 (eval $ac_compile) 2>&5
8887 ac_status=$?
8888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8889 test $ac_status = 0; }; then
8890 # Now try to grab the symbols.
8891 nlist=conftest.nm
8892 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8893 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8894 # Try sorting and uniquifying the output.
8895 if sort "$nlist" | uniq > "$nlist"T; then
8896 mv -f "$nlist"T "$nlist"
8897 else
8898 rm -f "$nlist"T
8899 fi
8900
8901 # Make sure that we snagged all the symbols we need.
8902 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8903 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8904 cat <<_LT_EOF > conftest.$ac_ext
8905 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8906 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8907 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8908 relocations are performed -- see ld's documentation on pseudo-relocs. */
8909 # define LT_DLSYM_CONST
8910 #elif defined __osf__
8911 /* This system does not cope well with relocations in const data. */
8912 # define LT_DLSYM_CONST
8913 #else
8914 # define LT_DLSYM_CONST const
8915 #endif
8916
8917 #ifdef __cplusplus
8918 extern "C" {
8919 #endif
8920
8921 _LT_EOF
8922 # Now generate the symbol file.
8923 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8924
8925 cat <<_LT_EOF >> conftest.$ac_ext
8926
8927 /* The mapping between symbol names and symbols. */
8928 LT_DLSYM_CONST struct {
8929 const char *name;
8930 void *address;
8931 }
8932 lt__PROGRAM__LTX_preloaded_symbols[] =
8933 {
8934 { "@PROGRAM@", (void *) 0 },
8935 _LT_EOF
8936 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8937 cat <<\_LT_EOF >> conftest.$ac_ext
8938 {0, (void *) 0}
8939 };
8940
8941 /* This works around a problem in FreeBSD linker */
8942 #ifdef FREEBSD_WORKAROUND
8943 static const void *lt_preloaded_setup() {
8944 return lt__PROGRAM__LTX_preloaded_symbols;
8945 }
8946 #endif
8947
8948 #ifdef __cplusplus
8949 }
8950 #endif
8951 _LT_EOF
8952 # Now try linking the two files.
8953 mv conftest.$ac_objext conftstm.$ac_objext
8954 lt_globsym_save_LIBS=$LIBS
8955 lt_globsym_save_CFLAGS=$CFLAGS
8956 LIBS=conftstm.$ac_objext
8957 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8959 (eval $ac_link) 2>&5
8960 ac_status=$?
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8962 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8963 pipe_works=yes
8964 fi
8965 LIBS=$lt_globsym_save_LIBS
8966 CFLAGS=$lt_globsym_save_CFLAGS
8967 else
8968 echo "cannot find nm_test_func in $nlist" >&5
8969 fi
8970 else
8971 echo "cannot find nm_test_var in $nlist" >&5
8972 fi
8973 else
8974 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8975 fi
8976 else
8977 echo "$progname: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8979 fi
8980 rm -rf conftest* conftst*
8981
8982 # Do not use the global_symbol_pipe unless it works.
8983 if test yes = "$pipe_works"; then
8984 break
8985 else
8986 lt_cv_sys_global_symbol_pipe=
8987 fi
8988 done
8989 ;;
8990 esac
8991 fi
8992
8993 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8994 lt_cv_sys_global_symbol_to_cdecl=
8995 fi
8996 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8998 printf "%s\n" "failed" >&6; }
8999 else
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9001 printf "%s\n" "ok" >&6; }
9002 fi
9003
9004 # Response file support.
9005 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9006 nm_file_list_spec='@'
9007 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9008 nm_file_list_spec='@'
9009 fi
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9048 printf %s "checking for sysroot... " >&6; }
9049
9050 # Check whether --with-sysroot was given.
9051 if test ${with_sysroot+y}
9052 then :
9053 withval=$with_sysroot;
9054 else case e in #(
9055 e) with_sysroot=no ;;
9056 esac
9057 fi
9058
9059
9060 lt_sysroot=
9061 case $with_sysroot in #(
9062 yes)
9063 if test yes = "$GCC"; then
9064 # Trim trailing / since we'll always append absolute paths and we want
9065 # to avoid //, if only for less confusing output for the user.
9066 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9067 fi
9068 ;; #(
9069 /*)
9070 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9071 ;; #(
9072 no|'')
9073 ;; #(
9074 *)
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9076 printf "%s\n" "$with_sysroot" >&6; }
9077 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9078 ;;
9079 esac
9080
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9082 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9083
9084
9085
9086
9087
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9089 printf %s "checking for a working dd... " >&6; }
9090 if test ${ac_cv_path_lt_DD+y}
9091 then :
9092 printf %s "(cached) " >&6
9093 else case e in #(
9094 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9095 cat conftest.i conftest.i >conftest2.i
9096 : ${lt_DD:=$DD}
9097 if test -z "$lt_DD"; then
9098 ac_path_lt_DD_found=false
9099 # Loop through the user's path and test for each of PROGNAME-LIST
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9102 do
9103 IFS=$as_save_IFS
9104 case $as_dir in #(((
9105 '') as_dir=./ ;;
9106 */) ;;
9107 *) as_dir=$as_dir/ ;;
9108 esac
9109 for ac_prog in dd
9110 do
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9113 as_fn_executable_p "$ac_path_lt_DD" || continue
9114 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9115 cmp -s conftest.i conftest.out \
9116 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9117 fi
9118 $ac_path_lt_DD_found && break 3
9119 done
9120 done
9121 done
9122 IFS=$as_save_IFS
9123 if test -z "$ac_cv_path_lt_DD"; then
9124 :
9125 fi
9126 else
9127 ac_cv_path_lt_DD=$lt_DD
9128 fi
9129
9130 rm -f conftest.i conftest2.i conftest.out ;;
9131 esac
9132 fi
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9134 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9135
9136
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9138 printf %s "checking how to truncate binary pipes... " >&6; }
9139 if test ${lt_cv_truncate_bin+y}
9140 then :
9141 printf %s "(cached) " >&6
9142 else case e in #(
9143 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9144 cat conftest.i conftest.i >conftest2.i
9145 lt_cv_truncate_bin=
9146 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9147 cmp -s conftest.i conftest.out \
9148 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9149 fi
9150 rm -f conftest.i conftest2.i conftest.out
9151 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9152 esac
9153 fi
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9155 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9156
9157
9158
9159
9160
9161
9162
9163 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9164 func_cc_basename ()
9165 {
9166 for cc_temp in $*""; do
9167 case $cc_temp in
9168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9170 \-*) ;;
9171 *) break;;
9172 esac
9173 done
9174 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9175 }
9176
9177 # Check whether --enable-libtool-lock was given.
9178 if test ${enable_libtool_lock+y}
9179 then :
9180 enableval=$enable_libtool_lock;
9181 fi
9182
9183 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9184
9185 # Some flags need to be propagated to the compiler or linker for good
9186 # libtool support.
9187 case $host in
9188 ia64-*-hpux*)
9189 # Find out what ABI is being produced by ac_compile, and set mode
9190 # options accordingly.
9191 echo 'int i;' > conftest.$ac_ext
9192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9193 (eval $ac_compile) 2>&5
9194 ac_status=$?
9195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9196 test $ac_status = 0; }; then
9197 case `$FILECMD conftest.$ac_objext` in
9198 *ELF-32*)
9199 HPUX_IA64_MODE=32
9200 ;;
9201 *ELF-64*)
9202 HPUX_IA64_MODE=64
9203 ;;
9204 esac
9205 fi
9206 rm -rf conftest*
9207 ;;
9208 *-*-irix6*)
9209 # Find out what ABI is being produced by ac_compile, and set linker
9210 # options accordingly.
9211 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9213 (eval $ac_compile) 2>&5
9214 ac_status=$?
9215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9216 test $ac_status = 0; }; then
9217 if test yes = "$lt_cv_prog_gnu_ld"; then
9218 case `$FILECMD conftest.$ac_objext` in
9219 *32-bit*)
9220 LD="${LD-ld} -melf32bsmip"
9221 ;;
9222 *N32*)
9223 LD="${LD-ld} -melf32bmipn32"
9224 ;;
9225 *64-bit*)
9226 LD="${LD-ld} -melf64bmip"
9227 ;;
9228 esac
9229 else
9230 case `$FILECMD conftest.$ac_objext` in
9231 *32-bit*)
9232 LD="${LD-ld} -32"
9233 ;;
9234 *N32*)
9235 LD="${LD-ld} -n32"
9236 ;;
9237 *64-bit*)
9238 LD="${LD-ld} -64"
9239 ;;
9240 esac
9241 fi
9242 fi
9243 rm -rf conftest*
9244 ;;
9245
9246 mips64*-*linux*)
9247 # Find out what ABI is being produced by ac_compile, and set linker
9248 # options accordingly.
9249 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9251 (eval $ac_compile) 2>&5
9252 ac_status=$?
9253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9254 test $ac_status = 0; }; then
9255 emul=elf
9256 case `$FILECMD conftest.$ac_objext` in
9257 *32-bit*)
9258 emul="${emul}32"
9259 ;;
9260 *64-bit*)
9261 emul="${emul}64"
9262 ;;
9263 esac
9264 case `$FILECMD conftest.$ac_objext` in
9265 *MSB*)
9266 emul="${emul}btsmip"
9267 ;;
9268 *LSB*)
9269 emul="${emul}ltsmip"
9270 ;;
9271 esac
9272 case `$FILECMD conftest.$ac_objext` in
9273 *N32*)
9274 emul="${emul}n32"
9275 ;;
9276 esac
9277 LD="${LD-ld} -m $emul"
9278 fi
9279 rm -rf conftest*
9280 ;;
9281
9282 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9283 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9284 # Find out what ABI is being produced by ac_compile, and set linker
9285 # options accordingly. Note that the listed cases only cover the
9286 # situations where additional linker options are needed (such as when
9287 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9288 # vice versa); the common cases where no linker options are needed do
9289 # not appear in the list.
9290 echo 'int i;' > conftest.$ac_ext
9291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9292 (eval $ac_compile) 2>&5
9293 ac_status=$?
9294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9295 test $ac_status = 0; }; then
9296 case `$FILECMD conftest.o` in
9297 *32-bit*)
9298 case $host in
9299 x86_64-*kfreebsd*-gnu)
9300 LD="${LD-ld} -m elf_i386_fbsd"
9301 ;;
9302 x86_64-*linux*|x86_64-gnu*)
9303 case `$FILECMD conftest.o` in
9304 *x86-64*)
9305 LD="${LD-ld} -m elf32_x86_64"
9306 ;;
9307 *)
9308 LD="${LD-ld} -m elf_i386"
9309 ;;
9310 esac
9311 ;;
9312 powerpc64le-*linux*)
9313 LD="${LD-ld} -m elf32lppclinux"
9314 ;;
9315 powerpc64-*linux*)
9316 LD="${LD-ld} -m elf32ppclinux"
9317 ;;
9318 s390x-*linux*)
9319 LD="${LD-ld} -m elf_s390"
9320 ;;
9321 sparc64-*linux*)
9322 LD="${LD-ld} -m elf32_sparc"
9323 ;;
9324 esac
9325 ;;
9326 *64-bit*)
9327 case $host in
9328 x86_64-*kfreebsd*-gnu)
9329 LD="${LD-ld} -m elf_x86_64_fbsd"
9330 ;;
9331 x86_64-*linux*|x86_64-gnu*)
9332 LD="${LD-ld} -m elf_x86_64"
9333 ;;
9334 powerpcle-*linux*)
9335 LD="${LD-ld} -m elf64lppc"
9336 ;;
9337 powerpc-*linux*)
9338 LD="${LD-ld} -m elf64ppc"
9339 ;;
9340 s390*-*linux*|s390*-*tpf*)
9341 LD="${LD-ld} -m elf64_s390"
9342 ;;
9343 sparc*-*linux*)
9344 LD="${LD-ld} -m elf64_sparc"
9345 ;;
9346 esac
9347 ;;
9348 esac
9349 fi
9350 rm -rf conftest*
9351 ;;
9352
9353 *-*-sco3.2v5*)
9354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9355 SAVE_CFLAGS=$CFLAGS
9356 CFLAGS="$CFLAGS -belf"
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9358 printf %s "checking whether the C compiler needs -belf... " >&6; }
9359 if test ${lt_cv_cc_needs_belf+y}
9360 then :
9361 printf %s "(cached) " >&6
9362 else case e in #(
9363 e) ac_ext=c
9364 ac_cpp='$CPP $CPPFLAGS'
9365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9368
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371
9372 int
9373 main (void)
9374 {
9375
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 if ac_fn_c_try_link "$LINENO"
9381 then :
9382 lt_cv_cc_needs_belf=yes
9383 else case e in #(
9384 e) lt_cv_cc_needs_belf=no ;;
9385 esac
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9388 conftest$ac_exeext conftest.$ac_ext
9389 ac_ext=c
9390 ac_cpp='$CPP $CPPFLAGS'
9391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9394 ;;
9395 esac
9396 fi
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9398 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9399 if test yes != "$lt_cv_cc_needs_belf"; then
9400 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9401 CFLAGS=$SAVE_CFLAGS
9402 fi
9403 ;;
9404 *-*solaris*)
9405 # Find out what ABI is being produced by ac_compile, and set linker
9406 # options accordingly.
9407 echo 'int i;' > conftest.$ac_ext
9408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9409 (eval $ac_compile) 2>&5
9410 ac_status=$?
9411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9412 test $ac_status = 0; }; then
9413 case `$FILECMD conftest.o` in
9414 *64-bit*)
9415 case $lt_cv_prog_gnu_ld in
9416 yes*)
9417 case $host in
9418 i?86-*-solaris*|x86_64-*-solaris*)
9419 LD="${LD-ld} -m elf_x86_64"
9420 ;;
9421 sparc*-*-solaris*)
9422 LD="${LD-ld} -m elf64_sparc"
9423 ;;
9424 esac
9425 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9426 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9427 LD=${LD-ld}_sol2
9428 fi
9429 ;;
9430 *)
9431 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9432 LD="${LD-ld} -64"
9433 fi
9434 ;;
9435 esac
9436 ;;
9437 esac
9438 fi
9439 rm -rf conftest*
9440 ;;
9441 esac
9442
9443 need_locks=$enable_libtool_lock
9444
9445 if test -n "$ac_tool_prefix"; then
9446 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9447 set dummy ${ac_tool_prefix}mt; ac_word=$2
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 printf %s "checking for $ac_word... " >&6; }
9450 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9451 then :
9452 printf %s "(cached) " >&6
9453 else case e in #(
9454 e) if test -n "$MANIFEST_TOOL"; then
9455 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9456 else
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9459 do
9460 IFS=$as_save_IFS
9461 case $as_dir in #(((
9462 '') as_dir=./ ;;
9463 */) ;;
9464 *) as_dir=$as_dir/ ;;
9465 esac
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9468 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9470 break 2
9471 fi
9472 done
9473 done
9474 IFS=$as_save_IFS
9475
9476 fi ;;
9477 esac
9478 fi
9479 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9480 if test -n "$MANIFEST_TOOL"; then
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9482 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9483 else
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 printf "%s\n" "no" >&6; }
9486 fi
9487
9488
9489 fi
9490 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9491 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9492 # Extract the first word of "mt", so it can be a program name with args.
9493 set dummy mt; ac_word=$2
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 printf %s "checking for $ac_word... " >&6; }
9496 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9497 then :
9498 printf %s "(cached) " >&6
9499 else case e in #(
9500 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9501 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9502 else
9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $PATH
9505 do
9506 IFS=$as_save_IFS
9507 case $as_dir in #(((
9508 '') as_dir=./ ;;
9509 */) ;;
9510 *) as_dir=$as_dir/ ;;
9511 esac
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9514 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518 done
9519 done
9520 IFS=$as_save_IFS
9521
9522 fi ;;
9523 esac
9524 fi
9525 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9526 if test -n "$ac_ct_MANIFEST_TOOL"; then
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9528 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9529 else
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 printf "%s\n" "no" >&6; }
9532 fi
9533
9534 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9535 MANIFEST_TOOL=":"
9536 else
9537 case $cross_compiling:$ac_tool_warned in
9538 yes:)
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9540 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9541 ac_tool_warned=yes ;;
9542 esac
9543 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9544 fi
9545 else
9546 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9547 fi
9548
9549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9551 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9552 if test ${lt_cv_path_manifest_tool+y}
9553 then :
9554 printf %s "(cached) " >&6
9555 else case e in #(
9556 e) lt_cv_path_manifest_tool=no
9557 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9558 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9559 cat conftest.err >&5
9560 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9561 lt_cv_path_manifest_tool=yes
9562 fi
9563 rm -f conftest* ;;
9564 esac
9565 fi
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9567 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9568 if test yes != "$lt_cv_path_manifest_tool"; then
9569 MANIFEST_TOOL=:
9570 fi
9571
9572
9573
9574
9575
9576
9577 case $host_os in
9578 rhapsody* | darwin*)
9579 if test -n "$ac_tool_prefix"; then
9580 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9581 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 printf %s "checking for $ac_word... " >&6; }
9584 if test ${ac_cv_prog_DSYMUTIL+y}
9585 then :
9586 printf %s "(cached) " >&6
9587 else case e in #(
9588 e) if test -n "$DSYMUTIL"; then
9589 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9590 else
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in $PATH
9593 do
9594 IFS=$as_save_IFS
9595 case $as_dir in #(((
9596 '') as_dir=./ ;;
9597 */) ;;
9598 *) as_dir=$as_dir/ ;;
9599 esac
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606 done
9607 done
9608 IFS=$as_save_IFS
9609
9610 fi ;;
9611 esac
9612 fi
9613 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9614 if test -n "$DSYMUTIL"; then
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9616 printf "%s\n" "$DSYMUTIL" >&6; }
9617 else
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 printf "%s\n" "no" >&6; }
9620 fi
9621
9622
9623 fi
9624 if test -z "$ac_cv_prog_DSYMUTIL"; then
9625 ac_ct_DSYMUTIL=$DSYMUTIL
9626 # Extract the first word of "dsymutil", so it can be a program name with args.
9627 set dummy dsymutil; ac_word=$2
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 printf %s "checking for $ac_word... " >&6; }
9630 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9631 then :
9632 printf %s "(cached) " >&6
9633 else case e in #(
9634 e) if test -n "$ac_ct_DSYMUTIL"; then
9635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9636 else
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9639 do
9640 IFS=$as_save_IFS
9641 case $as_dir in #(((
9642 '') as_dir=./ ;;
9643 */) ;;
9644 *) as_dir=$as_dir/ ;;
9645 esac
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9648 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652 done
9653 done
9654 IFS=$as_save_IFS
9655
9656 fi ;;
9657 esac
9658 fi
9659 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9660 if test -n "$ac_ct_DSYMUTIL"; then
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9662 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9663 else
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 printf "%s\n" "no" >&6; }
9666 fi
9667
9668 if test "x$ac_ct_DSYMUTIL" = x; then
9669 DSYMUTIL=":"
9670 else
9671 case $cross_compiling:$ac_tool_warned in
9672 yes:)
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9675 ac_tool_warned=yes ;;
9676 esac
9677 DSYMUTIL=$ac_ct_DSYMUTIL
9678 fi
9679 else
9680 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9681 fi
9682
9683 if test -n "$ac_tool_prefix"; then
9684 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9685 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687 printf %s "checking for $ac_word... " >&6; }
9688 if test ${ac_cv_prog_NMEDIT+y}
9689 then :
9690 printf %s "(cached) " >&6
9691 else case e in #(
9692 e) if test -n "$NMEDIT"; then
9693 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9694 else
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9697 do
9698 IFS=$as_save_IFS
9699 case $as_dir in #(((
9700 '') as_dir=./ ;;
9701 */) ;;
9702 *) as_dir=$as_dir/ ;;
9703 esac
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9706 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710 done
9711 done
9712 IFS=$as_save_IFS
9713
9714 fi ;;
9715 esac
9716 fi
9717 NMEDIT=$ac_cv_prog_NMEDIT
9718 if test -n "$NMEDIT"; then
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9720 printf "%s\n" "$NMEDIT" >&6; }
9721 else
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 printf "%s\n" "no" >&6; }
9724 fi
9725
9726
9727 fi
9728 if test -z "$ac_cv_prog_NMEDIT"; then
9729 ac_ct_NMEDIT=$NMEDIT
9730 # Extract the first word of "nmedit", so it can be a program name with args.
9731 set dummy nmedit; ac_word=$2
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 printf %s "checking for $ac_word... " >&6; }
9734 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9735 then :
9736 printf %s "(cached) " >&6
9737 else case e in #(
9738 e) if test -n "$ac_ct_NMEDIT"; then
9739 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744 IFS=$as_save_IFS
9745 case $as_dir in #(((
9746 '') as_dir=./ ;;
9747 */) ;;
9748 *) as_dir=$as_dir/ ;;
9749 esac
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756 done
9757 done
9758 IFS=$as_save_IFS
9759
9760 fi ;;
9761 esac
9762 fi
9763 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9764 if test -n "$ac_ct_NMEDIT"; then
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9766 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9767 else
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 printf "%s\n" "no" >&6; }
9770 fi
9771
9772 if test "x$ac_ct_NMEDIT" = x; then
9773 NMEDIT=":"
9774 else
9775 case $cross_compiling:$ac_tool_warned in
9776 yes:)
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9779 ac_tool_warned=yes ;;
9780 esac
9781 NMEDIT=$ac_ct_NMEDIT
9782 fi
9783 else
9784 NMEDIT="$ac_cv_prog_NMEDIT"
9785 fi
9786
9787 if test -n "$ac_tool_prefix"; then
9788 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9789 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 printf %s "checking for $ac_word... " >&6; }
9792 if test ${ac_cv_prog_LIPO+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else case e in #(
9796 e) if test -n "$LIPO"; then
9797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9798 else
9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800 for as_dir in $PATH
9801 do
9802 IFS=$as_save_IFS
9803 case $as_dir in #(((
9804 '') as_dir=./ ;;
9805 */) ;;
9806 *) as_dir=$as_dir/ ;;
9807 esac
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814 done
9815 done
9816 IFS=$as_save_IFS
9817
9818 fi ;;
9819 esac
9820 fi
9821 LIPO=$ac_cv_prog_LIPO
9822 if test -n "$LIPO"; then
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9824 printf "%s\n" "$LIPO" >&6; }
9825 else
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 printf "%s\n" "no" >&6; }
9828 fi
9829
9830
9831 fi
9832 if test -z "$ac_cv_prog_LIPO"; then
9833 ac_ct_LIPO=$LIPO
9834 # Extract the first word of "lipo", so it can be a program name with args.
9835 set dummy lipo; ac_word=$2
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 printf %s "checking for $ac_word... " >&6; }
9838 if test ${ac_cv_prog_ac_ct_LIPO+y}
9839 then :
9840 printf %s "(cached) " >&6
9841 else case e in #(
9842 e) if test -n "$ac_ct_LIPO"; then
9843 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848 IFS=$as_save_IFS
9849 case $as_dir in #(((
9850 '') as_dir=./ ;;
9851 */) ;;
9852 *) as_dir=$as_dir/ ;;
9853 esac
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9856 ac_cv_prog_ac_ct_LIPO="lipo"
9857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9858 break 2
9859 fi
9860 done
9861 done
9862 IFS=$as_save_IFS
9863
9864 fi ;;
9865 esac
9866 fi
9867 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9868 if test -n "$ac_ct_LIPO"; then
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9870 printf "%s\n" "$ac_ct_LIPO" >&6; }
9871 else
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 printf "%s\n" "no" >&6; }
9874 fi
9875
9876 if test "x$ac_ct_LIPO" = x; then
9877 LIPO=":"
9878 else
9879 case $cross_compiling:$ac_tool_warned in
9880 yes:)
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9883 ac_tool_warned=yes ;;
9884 esac
9885 LIPO=$ac_ct_LIPO
9886 fi
9887 else
9888 LIPO="$ac_cv_prog_LIPO"
9889 fi
9890
9891 if test -n "$ac_tool_prefix"; then
9892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9893 set dummy ${ac_tool_prefix}otool; ac_word=$2
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 printf %s "checking for $ac_word... " >&6; }
9896 if test ${ac_cv_prog_OTOOL+y}
9897 then :
9898 printf %s "(cached) " >&6
9899 else case e in #(
9900 e) if test -n "$OTOOL"; then
9901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906 IFS=$as_save_IFS
9907 case $as_dir in #(((
9908 '') as_dir=./ ;;
9909 */) ;;
9910 *) as_dir=$as_dir/ ;;
9911 esac
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9914 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9916 break 2
9917 fi
9918 done
9919 done
9920 IFS=$as_save_IFS
9921
9922 fi ;;
9923 esac
9924 fi
9925 OTOOL=$ac_cv_prog_OTOOL
9926 if test -n "$OTOOL"; then
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9928 printf "%s\n" "$OTOOL" >&6; }
9929 else
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 printf "%s\n" "no" >&6; }
9932 fi
9933
9934
9935 fi
9936 if test -z "$ac_cv_prog_OTOOL"; then
9937 ac_ct_OTOOL=$OTOOL
9938 # Extract the first word of "otool", so it can be a program name with args.
9939 set dummy otool; ac_word=$2
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9941 printf %s "checking for $ac_word... " >&6; }
9942 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9943 then :
9944 printf %s "(cached) " >&6
9945 else case e in #(
9946 e) if test -n "$ac_ct_OTOOL"; then
9947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9948 else
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9951 do
9952 IFS=$as_save_IFS
9953 case $as_dir in #(((
9954 '') as_dir=./ ;;
9955 */) ;;
9956 *) as_dir=$as_dir/ ;;
9957 esac
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9960 ac_cv_prog_ac_ct_OTOOL="otool"
9961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964 done
9965 done
9966 IFS=$as_save_IFS
9967
9968 fi ;;
9969 esac
9970 fi
9971 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9972 if test -n "$ac_ct_OTOOL"; then
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9974 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9975 else
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 printf "%s\n" "no" >&6; }
9978 fi
9979
9980 if test "x$ac_ct_OTOOL" = x; then
9981 OTOOL=":"
9982 else
9983 case $cross_compiling:$ac_tool_warned in
9984 yes:)
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9987 ac_tool_warned=yes ;;
9988 esac
9989 OTOOL=$ac_ct_OTOOL
9990 fi
9991 else
9992 OTOOL="$ac_cv_prog_OTOOL"
9993 fi
9994
9995 if test -n "$ac_tool_prefix"; then
9996 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9997 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 printf %s "checking for $ac_word... " >&6; }
10000 if test ${ac_cv_prog_OTOOL64+y}
10001 then :
10002 printf %s "(cached) " >&6
10003 else case e in #(
10004 e) if test -n "$OTOOL64"; then
10005 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10006 else
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010 IFS=$as_save_IFS
10011 case $as_dir in #(((
10012 '') as_dir=./ ;;
10013 */) ;;
10014 *) as_dir=$as_dir/ ;;
10015 esac
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10018 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10020 break 2
10021 fi
10022 done
10023 done
10024 IFS=$as_save_IFS
10025
10026 fi ;;
10027 esac
10028 fi
10029 OTOOL64=$ac_cv_prog_OTOOL64
10030 if test -n "$OTOOL64"; then
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10032 printf "%s\n" "$OTOOL64" >&6; }
10033 else
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 printf "%s\n" "no" >&6; }
10036 fi
10037
10038
10039 fi
10040 if test -z "$ac_cv_prog_OTOOL64"; then
10041 ac_ct_OTOOL64=$OTOOL64
10042 # Extract the first word of "otool64", so it can be a program name with args.
10043 set dummy otool64; ac_word=$2
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 printf %s "checking for $ac_word... " >&6; }
10046 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10047 then :
10048 printf %s "(cached) " >&6
10049 else case e in #(
10050 e) if test -n "$ac_ct_OTOOL64"; then
10051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 case $as_dir in #(((
10058 '') as_dir=./ ;;
10059 */) ;;
10060 *) as_dir=$as_dir/ ;;
10061 esac
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10064 ac_cv_prog_ac_ct_OTOOL64="otool64"
10065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10066 break 2
10067 fi
10068 done
10069 done
10070 IFS=$as_save_IFS
10071
10072 fi ;;
10073 esac
10074 fi
10075 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10076 if test -n "$ac_ct_OTOOL64"; then
10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10078 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10079 else
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 printf "%s\n" "no" >&6; }
10082 fi
10083
10084 if test "x$ac_ct_OTOOL64" = x; then
10085 OTOOL64=":"
10086 else
10087 case $cross_compiling:$ac_tool_warned in
10088 yes:)
10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10090 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091 ac_tool_warned=yes ;;
10092 esac
10093 OTOOL64=$ac_ct_OTOOL64
10094 fi
10095 else
10096 OTOOL64="$ac_cv_prog_OTOOL64"
10097 fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10126 printf %s "checking for -single_module linker flag... " >&6; }
10127 if test ${lt_cv_apple_cc_single_mod+y}
10128 then :
10129 printf %s "(cached) " >&6
10130 else case e in #(
10131 e) lt_cv_apple_cc_single_mod=no
10132 if test -z "$LT_MULTI_MODULE"; then
10133 # By default we will add the -single_module flag. You can override
10134 # by either setting the environment variable LT_MULTI_MODULE
10135 # non-empty at configure time, or by adding -multi_module to the
10136 # link flags.
10137 rm -rf libconftest.dylib*
10138 echo "int foo(void){return 1;}" > conftest.c
10139 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10140 -dynamiclib -Wl,-single_module conftest.c" >&5
10141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10142 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10143 _lt_result=$?
10144 # If there is a non-empty error log, and "single_module"
10145 # appears in it, assume the flag caused a linker warning
10146 if test -s conftest.err && $GREP single_module conftest.err; then
10147 cat conftest.err >&5
10148 # Otherwise, if the output was created with a 0 exit code from
10149 # the compiler, it worked.
10150 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10151 lt_cv_apple_cc_single_mod=yes
10152 else
10153 cat conftest.err >&5
10154 fi
10155 rm -rf libconftest.dylib*
10156 rm -f conftest.*
10157 fi ;;
10158 esac
10159 fi
10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10161 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10162
10163 # Feature test to disable chained fixups since it is not
10164 # compatible with '-undefined dynamic_lookup'
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10166 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10167 if test ${lt_cv_support_no_fixup_chains+y}
10168 then :
10169 printf %s "(cached) " >&6
10170 else case e in #(
10171 e) save_LDFLAGS=$LDFLAGS
10172 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 int
10177 main (void)
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"
10185 then :
10186 lt_cv_support_no_fixup_chains=yes
10187 else case e in #(
10188 e) lt_cv_support_no_fixup_chains=no
10189 ;;
10190 esac
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LDFLAGS=$save_LDFLAGS
10195
10196 ;;
10197 esac
10198 fi
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10200 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10201
10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10203 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10204 if test ${lt_cv_ld_exported_symbols_list+y}
10205 then :
10206 printf %s "(cached) " >&6
10207 else case e in #(
10208 e) lt_cv_ld_exported_symbols_list=no
10209 save_LDFLAGS=$LDFLAGS
10210 echo "_main" > conftest.sym
10211 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214
10215 int
10216 main (void)
10217 {
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"
10224 then :
10225 lt_cv_ld_exported_symbols_list=yes
10226 else case e in #(
10227 e) lt_cv_ld_exported_symbols_list=no ;;
10228 esac
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LDFLAGS=$save_LDFLAGS
10233 ;;
10234 esac
10235 fi
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10237 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10238
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10240 printf %s "checking for -force_load linker flag... " >&6; }
10241 if test ${lt_cv_ld_force_load+y}
10242 then :
10243 printf %s "(cached) " >&6
10244 else case e in #(
10245 e) lt_cv_ld_force_load=no
10246 cat > conftest.c << _LT_EOF
10247 int forced_loaded() { return 2;}
10248 _LT_EOF
10249 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10250 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10251 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10252 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10253 echo "$RANLIB libconftest.a" >&5
10254 $RANLIB libconftest.a 2>&5
10255 cat > conftest.c << _LT_EOF
10256 int main(void) { return 0;}
10257 _LT_EOF
10258 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10259 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10260 _lt_result=$?
10261 if test -s conftest.err && $GREP force_load conftest.err; then
10262 cat conftest.err >&5
10263 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10264 lt_cv_ld_force_load=yes
10265 else
10266 cat conftest.err >&5
10267 fi
10268 rm -f conftest.err libconftest.a conftest conftest.c
10269 rm -rf conftest.dSYM
10270 ;;
10271 esac
10272 fi
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10274 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10275 case $host_os in
10276 rhapsody* | darwin1.[012])
10277 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10278 darwin1.*)
10279 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10280 darwin*)
10281 case $MACOSX_DEPLOYMENT_TARGET,$host in
10282 10.[012],*|,*powerpc*-darwin[5-8]*)
10283 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10284 *)
10285 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10286 if test yes = "$lt_cv_support_no_fixup_chains"; then
10287 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10288 fi
10289 ;;
10290 esac
10291 ;;
10292 esac
10293 if test yes = "$lt_cv_apple_cc_single_mod"; then
10294 _lt_dar_single_mod='$single_module'
10295 fi
10296 _lt_dar_needs_single_mod=no
10297 case $host_os in
10298 rhapsody* | darwin1.*)
10299 _lt_dar_needs_single_mod=yes ;;
10300 darwin*)
10301 # When targeting Mac OS X 10.4 (darwin 8) or later,
10302 # -single_module is the default and -multi_module is unsupported.
10303 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10304 # target any OS version that needs -single_module.
10305 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10306 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10307 _lt_dar_needs_single_mod=yes ;;
10308 esac
10309 ;;
10310 esac
10311 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10312 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10313 else
10314 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10315 fi
10316 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10317 _lt_dsymutil='~$DSYMUTIL $lib || :'
10318 else
10319 _lt_dsymutil=
10320 fi
10321 ;;
10322 esac
10323
10324 # func_munge_path_list VARIABLE PATH
10325 # -----------------------------------
10326 # VARIABLE is name of variable containing _space_ separated list of
10327 # directories to be munged by the contents of PATH, which is string
10328 # having a format:
10329 # "DIR[:DIR]:"
10330 # string "DIR[ DIR]" will be prepended to VARIABLE
10331 # ":DIR[:DIR]"
10332 # string "DIR[ DIR]" will be appended to VARIABLE
10333 # "DIRP[:DIRP]::[DIRA:]DIRA"
10334 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10335 # "DIRA[ DIRA]" will be appended to VARIABLE
10336 # "DIR[:DIR]"
10337 # VARIABLE will be replaced by "DIR[ DIR]"
10338 func_munge_path_list ()
10339 {
10340 case x$2 in
10341 x)
10342 ;;
10343 *:)
10344 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10345 ;;
10346 x:*)
10347 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10348 ;;
10349 *::*)
10350 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10351 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10352 ;;
10353 *)
10354 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10355 ;;
10356 esac
10357 }
10358
10359 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10360 "
10361 if test "x$ac_cv_header_dlfcn_h" = xyes
10362 then :
10363 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10364
10365 fi
10366
10367
10368
10369
10370
10371 # Set options
10372 enable_win32_dll=yes
10373
10374 case $host in
10375 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10376 if test -n "$ac_tool_prefix"; then
10377 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10378 set dummy ${ac_tool_prefix}as; ac_word=$2
10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 printf %s "checking for $ac_word... " >&6; }
10381 if test ${ac_cv_prog_AS+y}
10382 then :
10383 printf %s "(cached) " >&6
10384 else case e in #(
10385 e) if test -n "$AS"; then
10386 ac_cv_prog_AS="$AS" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391 IFS=$as_save_IFS
10392 case $as_dir in #(((
10393 '') as_dir=./ ;;
10394 */) ;;
10395 *) as_dir=$as_dir/ ;;
10396 esac
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10399 ac_cv_prog_AS="${ac_tool_prefix}as"
10400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10401 break 2
10402 fi
10403 done
10404 done
10405 IFS=$as_save_IFS
10406
10407 fi ;;
10408 esac
10409 fi
10410 AS=$ac_cv_prog_AS
10411 if test -n "$AS"; then
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10413 printf "%s\n" "$AS" >&6; }
10414 else
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 printf "%s\n" "no" >&6; }
10417 fi
10418
10419
10420 fi
10421 if test -z "$ac_cv_prog_AS"; then
10422 ac_ct_AS=$AS
10423 # Extract the first word of "as", so it can be a program name with args.
10424 set dummy as; ac_word=$2
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 printf %s "checking for $ac_word... " >&6; }
10427 if test ${ac_cv_prog_ac_ct_AS+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else case e in #(
10431 e) if test -n "$ac_ct_AS"; then
10432 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10433 else
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437 IFS=$as_save_IFS
10438 case $as_dir in #(((
10439 '') as_dir=./ ;;
10440 */) ;;
10441 *) as_dir=$as_dir/ ;;
10442 esac
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10445 ac_cv_prog_ac_ct_AS="as"
10446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10447 break 2
10448 fi
10449 done
10450 done
10451 IFS=$as_save_IFS
10452
10453 fi ;;
10454 esac
10455 fi
10456 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10457 if test -n "$ac_ct_AS"; then
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10459 printf "%s\n" "$ac_ct_AS" >&6; }
10460 else
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 printf "%s\n" "no" >&6; }
10463 fi
10464
10465 if test "x$ac_ct_AS" = x; then
10466 AS="false"
10467 else
10468 case $cross_compiling:$ac_tool_warned in
10469 yes:)
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10471 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10472 ac_tool_warned=yes ;;
10473 esac
10474 AS=$ac_ct_AS
10475 fi
10476 else
10477 AS="$ac_cv_prog_AS"
10478 fi
10479
10480 if test -n "$ac_tool_prefix"; then
10481 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10482 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 printf %s "checking for $ac_word... " >&6; }
10485 if test ${ac_cv_prog_DLLTOOL+y}
10486 then :
10487 printf %s "(cached) " >&6
10488 else case e in #(
10489 e) if test -n "$DLLTOOL"; then
10490 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10491 else
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10494 do
10495 IFS=$as_save_IFS
10496 case $as_dir in #(((
10497 '') as_dir=./ ;;
10498 */) ;;
10499 *) as_dir=$as_dir/ ;;
10500 esac
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507 done
10508 done
10509 IFS=$as_save_IFS
10510
10511 fi ;;
10512 esac
10513 fi
10514 DLLTOOL=$ac_cv_prog_DLLTOOL
10515 if test -n "$DLLTOOL"; then
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10517 printf "%s\n" "$DLLTOOL" >&6; }
10518 else
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 printf "%s\n" "no" >&6; }
10521 fi
10522
10523
10524 fi
10525 if test -z "$ac_cv_prog_DLLTOOL"; then
10526 ac_ct_DLLTOOL=$DLLTOOL
10527 # Extract the first word of "dlltool", so it can be a program name with args.
10528 set dummy dlltool; ac_word=$2
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 printf %s "checking for $ac_word... " >&6; }
10531 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10532 then :
10533 printf %s "(cached) " >&6
10534 else case e in #(
10535 e) if test -n "$ac_ct_DLLTOOL"; then
10536 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10537 else
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541 IFS=$as_save_IFS
10542 case $as_dir in #(((
10543 '') as_dir=./ ;;
10544 */) ;;
10545 *) as_dir=$as_dir/ ;;
10546 esac
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10551 break 2
10552 fi
10553 done
10554 done
10555 IFS=$as_save_IFS
10556
10557 fi ;;
10558 esac
10559 fi
10560 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10561 if test -n "$ac_ct_DLLTOOL"; then
10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10563 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10564 else
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 printf "%s\n" "no" >&6; }
10567 fi
10568
10569 if test "x$ac_ct_DLLTOOL" = x; then
10570 DLLTOOL="false"
10571 else
10572 case $cross_compiling:$ac_tool_warned in
10573 yes:)
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10576 ac_tool_warned=yes ;;
10577 esac
10578 DLLTOOL=$ac_ct_DLLTOOL
10579 fi
10580 else
10581 DLLTOOL="$ac_cv_prog_DLLTOOL"
10582 fi
10583
10584 if test -n "$ac_tool_prefix"; then
10585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10586 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 printf %s "checking for $ac_word... " >&6; }
10589 if test ${ac_cv_prog_OBJDUMP+y}
10590 then :
10591 printf %s "(cached) " >&6
10592 else case e in #(
10593 e) if test -n "$OBJDUMP"; then
10594 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10595 else
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10598 do
10599 IFS=$as_save_IFS
10600 case $as_dir in #(((
10601 '') as_dir=./ ;;
10602 */) ;;
10603 *) as_dir=$as_dir/ ;;
10604 esac
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10609 break 2
10610 fi
10611 done
10612 done
10613 IFS=$as_save_IFS
10614
10615 fi ;;
10616 esac
10617 fi
10618 OBJDUMP=$ac_cv_prog_OBJDUMP
10619 if test -n "$OBJDUMP"; then
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10621 printf "%s\n" "$OBJDUMP" >&6; }
10622 else
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 printf "%s\n" "no" >&6; }
10625 fi
10626
10627
10628 fi
10629 if test -z "$ac_cv_prog_OBJDUMP"; then
10630 ac_ct_OBJDUMP=$OBJDUMP
10631 # Extract the first word of "objdump", so it can be a program name with args.
10632 set dummy objdump; ac_word=$2
10633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 printf %s "checking for $ac_word... " >&6; }
10635 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10636 then :
10637 printf %s "(cached) " >&6
10638 else case e in #(
10639 e) if test -n "$ac_ct_OBJDUMP"; then
10640 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10641 else
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10644 do
10645 IFS=$as_save_IFS
10646 case $as_dir in #(((
10647 '') as_dir=./ ;;
10648 */) ;;
10649 *) as_dir=$as_dir/ ;;
10650 esac
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10653 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10655 break 2
10656 fi
10657 done
10658 done
10659 IFS=$as_save_IFS
10660
10661 fi ;;
10662 esac
10663 fi
10664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10665 if test -n "$ac_ct_OBJDUMP"; then
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10667 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10668 else
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 printf "%s\n" "no" >&6; }
10671 fi
10672
10673 if test "x$ac_ct_OBJDUMP" = x; then
10674 OBJDUMP="false"
10675 else
10676 case $cross_compiling:$ac_tool_warned in
10677 yes:)
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10679 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10680 ac_tool_warned=yes ;;
10681 esac
10682 OBJDUMP=$ac_ct_OBJDUMP
10683 fi
10684 else
10685 OBJDUMP="$ac_cv_prog_OBJDUMP"
10686 fi
10687
10688 ;;
10689 esac
10690
10691 test -z "$AS" && AS=as
10692
10693
10694
10695
10696
10697 test -z "$DLLTOOL" && DLLTOOL=dlltool
10698
10699
10700
10701
10702
10703 test -z "$OBJDUMP" && OBJDUMP=objdump
10704
10705
10706
10707
10708
10709
10710
10711 enable_dlopen=no
10712
10713
10714
10715 # Check whether --enable-shared was given.
10716 if test ${enable_shared+y}
10717 then :
10718 enableval=$enable_shared; p=${PACKAGE-default}
10719 case $enableval in
10720 yes) enable_shared=yes ;;
10721 no) enable_shared=no ;;
10722 *)
10723 enable_shared=no
10724 # Look at the argument we got. We use all the common list separators.
10725 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10726 for pkg in $enableval; do
10727 IFS=$lt_save_ifs
10728 if test "X$pkg" = "X$p"; then
10729 enable_shared=yes
10730 fi
10731 done
10732 IFS=$lt_save_ifs
10733 ;;
10734 esac
10735 else case e in #(
10736 e) enable_shared=yes ;;
10737 esac
10738 fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748 # Check whether --enable-static was given.
10749 if test ${enable_static+y}
10750 then :
10751 enableval=$enable_static; p=${PACKAGE-default}
10752 case $enableval in
10753 yes) enable_static=yes ;;
10754 no) enable_static=no ;;
10755 *)
10756 enable_static=no
10757 # Look at the argument we got. We use all the common list separators.
10758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10759 for pkg in $enableval; do
10760 IFS=$lt_save_ifs
10761 if test "X$pkg" = "X$p"; then
10762 enable_static=yes
10763 fi
10764 done
10765 IFS=$lt_save_ifs
10766 ;;
10767 esac
10768 else case e in #(
10769 e) enable_static=yes ;;
10770 esac
10771 fi
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781 # Check whether --enable-pic was given.
10782 if test ${enable_pic+y}
10783 then :
10784 enableval=$enable_pic; lt_p=${PACKAGE-default}
10785 case $enableval in
10786 yes|no) pic_mode=$enableval ;;
10787 *)
10788 pic_mode=default
10789 # Look at the argument we got. We use all the common list separators.
10790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10791 for lt_pkg in $enableval; do
10792 IFS=$lt_save_ifs
10793 if test "X$lt_pkg" = "X$lt_p"; then
10794 pic_mode=yes
10795 fi
10796 done
10797 IFS=$lt_save_ifs
10798 ;;
10799 esac
10800 else case e in #(
10801 e) # Check whether --with-pic was given.
10802 if test ${with_pic+y}
10803 then :
10804 withval=$with_pic; lt_p=${PACKAGE-default}
10805 case $withval in
10806 yes|no) pic_mode=$withval ;;
10807 *)
10808 pic_mode=default
10809 # Look at the argument we got. We use all the common list separators.
10810 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10811 for lt_pkg in $withval; do
10812 IFS=$lt_save_ifs
10813 if test "X$lt_pkg" = "X$lt_p"; then
10814 pic_mode=yes
10815 fi
10816 done
10817 IFS=$lt_save_ifs
10818 ;;
10819 esac
10820 else case e in #(
10821 e) pic_mode=default ;;
10822 esac
10823 fi
10824
10825 ;;
10826 esac
10827 fi
10828
10829
10830
10831
10832
10833
10834
10835
10836 # Check whether --enable-fast-install was given.
10837 if test ${enable_fast_install+y}
10838 then :
10839 enableval=$enable_fast_install; p=${PACKAGE-default}
10840 case $enableval in
10841 yes) enable_fast_install=yes ;;
10842 no) enable_fast_install=no ;;
10843 *)
10844 enable_fast_install=no
10845 # Look at the argument we got. We use all the common list separators.
10846 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10847 for pkg in $enableval; do
10848 IFS=$lt_save_ifs
10849 if test "X$pkg" = "X$p"; then
10850 enable_fast_install=yes
10851 fi
10852 done
10853 IFS=$lt_save_ifs
10854 ;;
10855 esac
10856 else case e in #(
10857 e) enable_fast_install=yes ;;
10858 esac
10859 fi
10860
10861
10862
10863
10864
10865
10866
10867
10868 shared_archive_member_spec=
10869 case $host,$enable_shared in
10870 power*-*-aix[5-9]*,yes)
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10872 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10873 # Check whether --enable-aix-soname was given.
10874 if test ${enable_aix_soname+y}
10875 then :
10876 enableval=$enable_aix_soname; case $enableval in
10877 aix|svr4|both)
10878 ;;
10879 *)
10880 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10881 ;;
10882 esac
10883 lt_cv_with_aix_soname=$enable_aix_soname
10884 else case e in #(
10885 e) # Check whether --with-aix-soname was given.
10886 if test ${with_aix_soname+y}
10887 then :
10888 withval=$with_aix_soname; case $withval in
10889 aix|svr4|both)
10890 ;;
10891 *)
10892 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10893 ;;
10894 esac
10895 lt_cv_with_aix_soname=$with_aix_soname
10896 else case e in #(
10897 e) if test ${lt_cv_with_aix_soname+y}
10898 then :
10899 printf %s "(cached) " >&6
10900 else case e in #(
10901 e) lt_cv_with_aix_soname=aix ;;
10902 esac
10903 fi
10904 ;;
10905 esac
10906 fi
10907
10908 enable_aix_soname=$lt_cv_with_aix_soname ;;
10909 esac
10910 fi
10911
10912 with_aix_soname=$enable_aix_soname
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10914 printf "%s\n" "$with_aix_soname" >&6; }
10915 if test aix != "$with_aix_soname"; then
10916 # For the AIX way of multilib, we name the shared archive member
10917 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10918 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10919 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10920 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10921 if test 64 = "${OBJECT_MODE-32}"; then
10922 shared_archive_member_spec=shr_64
10923 else
10924 shared_archive_member_spec=shr
10925 fi
10926 fi
10927 ;;
10928 *)
10929 with_aix_soname=aix
10930 ;;
10931 esac
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 # This can be used to rebuild libtool when needed
10943 LIBTOOL_DEPS=$ltmain
10944
10945 # Always use our own libtool.
10946 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977 test -z "$LN_S" && LN_S="ln -s"
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 if test -n "${ZSH_VERSION+set}"; then
10993 setopt NO_GLOB_SUBST
10994 fi
10995
10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10997 printf %s "checking for objdir... " >&6; }
10998 if test ${lt_cv_objdir+y}
10999 then :
11000 printf %s "(cached) " >&6
11001 else case e in #(
11002 e) rm -f .libs 2>/dev/null
11003 mkdir .libs 2>/dev/null
11004 if test -d .libs; then
11005 lt_cv_objdir=.libs
11006 else
11007 # MS-DOS does not allow filenames that begin with a dot.
11008 lt_cv_objdir=_libs
11009 fi
11010 rmdir .libs 2>/dev/null ;;
11011 esac
11012 fi
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11014 printf "%s\n" "$lt_cv_objdir" >&6; }
11015 objdir=$lt_cv_objdir
11016
11017
11018
11019
11020
11021 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11022
11023
11024
11025
11026 case $host_os in
11027 aix3*)
11028 # AIX sometimes has problems with the GCC collect2 program. For some
11029 # reason, if we set the COLLECT_NAMES environment variable, the problems
11030 # vanish in a puff of smoke.
11031 if test set != "${COLLECT_NAMES+set}"; then
11032 COLLECT_NAMES=
11033 export COLLECT_NAMES
11034 fi
11035 ;;
11036 esac
11037
11038 # Global variables:
11039 ofile=libtool
11040 can_build_shared=yes
11041
11042 # All known linkers require a '.a' archive for static linking (except MSVC and
11043 # ICC, which need '.lib').
11044 libext=a
11045
11046 with_gnu_ld=$lt_cv_prog_gnu_ld
11047
11048 old_CC=$CC
11049 old_CFLAGS=$CFLAGS
11050
11051 # Set sane defaults for various variables
11052 test -z "$CC" && CC=cc
11053 test -z "$LTCC" && LTCC=$CC
11054 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11055 test -z "$LD" && LD=ld
11056 test -z "$ac_objext" && ac_objext=o
11057
11058 func_cc_basename $compiler
11059 cc_basename=$func_cc_basename_result
11060
11061
11062 # Only perform the check for file, if the check method requires it
11063 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11064 case $deplibs_check_method in
11065 file_magic*)
11066 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11068 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11069 if test ${lt_cv_path_MAGIC_CMD+y}
11070 then :
11071 printf %s "(cached) " >&6
11072 else case e in #(
11073 e) case $MAGIC_CMD in
11074 [\\/*] | ?:[\\/]*)
11075 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11076 ;;
11077 *)
11078 lt_save_MAGIC_CMD=$MAGIC_CMD
11079 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11081 for ac_dir in $ac_dummy; do
11082 IFS=$lt_save_ifs
11083 test -z "$ac_dir" && ac_dir=.
11084 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11085 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11086 if test -n "$file_magic_test_file"; then
11087 case $deplibs_check_method in
11088 "file_magic "*)
11089 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11090 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11092 $EGREP "$file_magic_regex" > /dev/null; then
11093 :
11094 else
11095 cat <<_LT_EOF 1>&2
11096
11097 *** Warning: the command libtool uses to detect shared libraries,
11098 *** $file_magic_cmd, produces output that libtool cannot recognize.
11099 *** The result is that libtool may fail to recognize shared libraries
11100 *** as such. This will affect the creation of libtool libraries that
11101 *** depend on shared libraries, but programs linked with such libtool
11102 *** libraries will work regardless of this problem. Nevertheless, you
11103 *** may want to report the problem to your system manager and/or to
11104 *** [email protected]
11105
11106 _LT_EOF
11107 fi ;;
11108 esac
11109 fi
11110 break
11111 fi
11112 done
11113 IFS=$lt_save_ifs
11114 MAGIC_CMD=$lt_save_MAGIC_CMD
11115 ;;
11116 esac ;;
11117 esac
11118 fi
11119
11120 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11121 if test -n "$MAGIC_CMD"; then
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11123 printf "%s\n" "$MAGIC_CMD" >&6; }
11124 else
11125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 printf "%s\n" "no" >&6; }
11127 fi
11128
11129
11130
11131
11132
11133 if test -z "$lt_cv_path_MAGIC_CMD"; then
11134 if test -n "$ac_tool_prefix"; then
11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11136 printf %s "checking for file... " >&6; }
11137 if test ${lt_cv_path_MAGIC_CMD+y}
11138 then :
11139 printf %s "(cached) " >&6
11140 else case e in #(
11141 e) case $MAGIC_CMD in
11142 [\\/*] | ?:[\\/]*)
11143 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11144 ;;
11145 *)
11146 lt_save_MAGIC_CMD=$MAGIC_CMD
11147 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11149 for ac_dir in $ac_dummy; do
11150 IFS=$lt_save_ifs
11151 test -z "$ac_dir" && ac_dir=.
11152 if test -f "$ac_dir/file"; then
11153 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11154 if test -n "$file_magic_test_file"; then
11155 case $deplibs_check_method in
11156 "file_magic "*)
11157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11158 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11160 $EGREP "$file_magic_regex" > /dev/null; then
11161 :
11162 else
11163 cat <<_LT_EOF 1>&2
11164
11165 *** Warning: the command libtool uses to detect shared libraries,
11166 *** $file_magic_cmd, produces output that libtool cannot recognize.
11167 *** The result is that libtool may fail to recognize shared libraries
11168 *** as such. This will affect the creation of libtool libraries that
11169 *** depend on shared libraries, but programs linked with such libtool
11170 *** libraries will work regardless of this problem. Nevertheless, you
11171 *** may want to report the problem to your system manager and/or to
11172 *** [email protected]
11173
11174 _LT_EOF
11175 fi ;;
11176 esac
11177 fi
11178 break
11179 fi
11180 done
11181 IFS=$lt_save_ifs
11182 MAGIC_CMD=$lt_save_MAGIC_CMD
11183 ;;
11184 esac ;;
11185 esac
11186 fi
11187
11188 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11189 if test -n "$MAGIC_CMD"; then
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11191 printf "%s\n" "$MAGIC_CMD" >&6; }
11192 else
11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 printf "%s\n" "no" >&6; }
11195 fi
11196
11197
11198 else
11199 MAGIC_CMD=:
11200 fi
11201 fi
11202
11203 fi
11204 ;;
11205 esac
11206
11207 # Use C for the default configuration in the libtool script
11208
11209 lt_save_CC=$CC
11210 ac_ext=c
11211 ac_cpp='$CPP $CPPFLAGS'
11212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11215
11216
11217 # Source file extension for C test sources.
11218 ac_ext=c
11219
11220 # Object file extension for compiled C test sources.
11221 objext=o
11222 objext=$objext
11223
11224 # Code to be used in simple compile tests
11225 lt_simple_compile_test_code="int some_variable = 0;"
11226
11227 # Code to be used in simple link tests
11228 lt_simple_link_test_code='int main(void){return(0);}'
11229
11230
11231
11232
11233
11234
11235
11236 # If no C compiler was specified, use CC.
11237 LTCC=${LTCC-"$CC"}
11238
11239 # If no C compiler flags were specified, use CFLAGS.
11240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11241
11242 # Allow CC to be a program name with arguments.
11243 compiler=$CC
11244
11245 # Save the default compiler, since it gets overwritten when the other
11246 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11247 compiler_DEFAULT=$CC
11248
11249 # save warnings/boilerplate of simple test code
11250 ac_outfile=conftest.$ac_objext
11251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11253 _lt_compiler_boilerplate=`cat conftest.err`
11254 $RM conftest*
11255
11256 ac_outfile=conftest.$ac_objext
11257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11259 _lt_linker_boilerplate=`cat conftest.err`
11260 $RM -r conftest*
11261
11262
11263 ## CAVEAT EMPTOR:
11264 ## There is no encapsulation within the following macros, do not change
11265 ## the running order or otherwise move them around unless you know exactly
11266 ## what you are doing...
11267 if test -n "$compiler"; then
11268
11269 lt_prog_compiler_no_builtin_flag=
11270
11271 if test yes = "$GCC"; then
11272 case $cc_basename in
11273 nvcc*)
11274 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11275 *)
11276 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11277 esac
11278
11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11280 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11281 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11282 then :
11283 printf %s "(cached) " >&6
11284 else case e in #(
11285 e) lt_cv_prog_compiler_rtti_exceptions=no
11286 ac_outfile=conftest.$ac_objext
11287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11288 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11289 # Insert the option either (1) after the last *FLAGS variable, or
11290 # (2) before a word containing "conftest.", or (3) at the end.
11291 # Note that $ac_compile itself does not contain backslashes and begins
11292 # with a dollar sign (not a hyphen), so the echo should work correctly.
11293 # The option is referenced via a variable to avoid confusing sed.
11294 lt_compile=`echo "$ac_compile" | $SED \
11295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11297 -e 's:$: $lt_compiler_flag:'`
11298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11299 (eval "$lt_compile" 2>conftest.err)
11300 ac_status=$?
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 if (exit $ac_status) && test -s "$ac_outfile"; then
11304 # The compiler can only warn and ignore the option if not recognized
11305 # So say no if there are warnings other than the usual output.
11306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11309 lt_cv_prog_compiler_rtti_exceptions=yes
11310 fi
11311 fi
11312 $RM conftest*
11313 ;;
11314 esac
11315 fi
11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11317 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11318
11319 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11320 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11321 else
11322 :
11323 fi
11324
11325 fi
11326
11327
11328
11329
11330
11331
11332 lt_prog_compiler_wl=
11333 lt_prog_compiler_pic=
11334 lt_prog_compiler_static=
11335
11336
11337 if test yes = "$GCC"; then
11338 lt_prog_compiler_wl='-Wl,'
11339 lt_prog_compiler_static='-static'
11340
11341 case $host_os in
11342 aix*)
11343 # All AIX code is PIC.
11344 if test ia64 = "$host_cpu"; then
11345 # AIX 5 now supports IA64 processor
11346 lt_prog_compiler_static='-Bstatic'
11347 fi
11348 lt_prog_compiler_pic='-fPIC'
11349 ;;
11350
11351 amigaos*)
11352 case $host_cpu in
11353 powerpc)
11354 # see comment about AmigaOS4 .so support
11355 lt_prog_compiler_pic='-fPIC'
11356 ;;
11357 m68k)
11358 # FIXME: we need at least 68020 code to build shared libraries, but
11359 # adding the '-m68020' flag to GCC prevents building anything better,
11360 # like '-m68040'.
11361 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11362 ;;
11363 esac
11364 ;;
11365
11366 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11367 # PIC is the default for these OSes.
11368 ;;
11369
11370 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11371 # This hack is so that the source file can tell whether it is being
11372 # built for inclusion in a dll (and should export symbols for example).
11373 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11374 # (--disable-auto-import) libraries
11375 lt_prog_compiler_pic='-DDLL_EXPORT'
11376 case $host_os in
11377 os2*)
11378 lt_prog_compiler_static='$wl-static'
11379 ;;
11380 esac
11381 ;;
11382
11383 darwin* | rhapsody*)
11384 # PIC is the default on this platform
11385 # Common symbols not allowed in MH_DYLIB files
11386 lt_prog_compiler_pic='-fno-common'
11387 ;;
11388
11389 haiku*)
11390 # PIC is the default for Haiku.
11391 # The "-static" flag exists, but is broken.
11392 lt_prog_compiler_static=
11393 ;;
11394
11395 hpux*)
11396 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11397 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11398 # sets the default TLS model and affects inlining.
11399 case $host_cpu in
11400 hppa*64*)
11401 # +Z the default
11402 ;;
11403 *)
11404 lt_prog_compiler_pic='-fPIC'
11405 ;;
11406 esac
11407 ;;
11408
11409 interix[3-9]*)
11410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11411 # Instead, we relocate shared libraries at runtime.
11412 ;;
11413
11414 msdosdjgpp*)
11415 # Just because we use GCC doesn't mean we suddenly get shared libraries
11416 # on systems that don't support them.
11417 lt_prog_compiler_can_build_shared=no
11418 enable_shared=no
11419 ;;
11420
11421 *nto* | *qnx*)
11422 # QNX uses GNU C++, but need to define -shared option too, otherwise
11423 # it will coredump.
11424 lt_prog_compiler_pic='-fPIC -shared'
11425 ;;
11426
11427 sysv4*MP*)
11428 if test -d /usr/nec; then
11429 lt_prog_compiler_pic=-Kconform_pic
11430 fi
11431 ;;
11432
11433 *)
11434 lt_prog_compiler_pic='-fPIC'
11435 ;;
11436 esac
11437
11438 case $cc_basename in
11439 nvcc*) # Cuda Compiler Driver 2.2
11440 lt_prog_compiler_wl='-Xlinker '
11441 if test -n "$lt_prog_compiler_pic"; then
11442 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11443 fi
11444 ;;
11445 esac
11446 else
11447 # PORTME Check for flag to pass linker flags through the system compiler.
11448 case $host_os in
11449 aix*)
11450 lt_prog_compiler_wl='-Wl,'
11451 if test ia64 = "$host_cpu"; then
11452 # AIX 5 now supports IA64 processor
11453 lt_prog_compiler_static='-Bstatic'
11454 else
11455 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11456 fi
11457 ;;
11458
11459 darwin* | rhapsody*)
11460 # PIC is the default on this platform
11461 # Common symbols not allowed in MH_DYLIB files
11462 lt_prog_compiler_pic='-fno-common'
11463 case $cc_basename in
11464 nagfor*)
11465 # NAG Fortran compiler
11466 lt_prog_compiler_wl='-Wl,-Wl,,'
11467 lt_prog_compiler_pic='-PIC'
11468 lt_prog_compiler_static='-Bstatic'
11469 ;;
11470 esac
11471 ;;
11472
11473 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11474 # This hack is so that the source file can tell whether it is being
11475 # built for inclusion in a dll (and should export symbols for example).
11476 lt_prog_compiler_pic='-DDLL_EXPORT'
11477 case $host_os in
11478 os2*)
11479 lt_prog_compiler_static='$wl-static'
11480 ;;
11481 esac
11482 ;;
11483
11484 hpux9* | hpux10* | hpux11*)
11485 lt_prog_compiler_wl='-Wl,'
11486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11487 # not for PA HP-UX.
11488 case $host_cpu in
11489 hppa*64*|ia64*)
11490 # +Z the default
11491 ;;
11492 *)
11493 lt_prog_compiler_pic='+Z'
11494 ;;
11495 esac
11496 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11497 lt_prog_compiler_static='$wl-a ${wl}archive'
11498 ;;
11499
11500 irix5* | irix6* | nonstopux*)
11501 lt_prog_compiler_wl='-Wl,'
11502 # PIC (with -KPIC) is the default.
11503 lt_prog_compiler_static='-non_shared'
11504 ;;
11505
11506 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11507 case $cc_basename in
11508 # old Intel for x86_64, which still supported -KPIC.
11509 ecc*)
11510 lt_prog_compiler_wl='-Wl,'
11511 lt_prog_compiler_pic='-KPIC'
11512 lt_prog_compiler_static='-static'
11513 ;;
11514 *flang* | ftn | f18* | f95*)
11515 # Flang compiler.
11516 lt_prog_compiler_wl='-Wl,'
11517 lt_prog_compiler_pic='-fPIC'
11518 lt_prog_compiler_static='-static'
11519 ;;
11520 # icc used to be incompatible with GCC.
11521 # ICC 10 doesn't accept -KPIC any more.
11522 icc* | ifort*)
11523 lt_prog_compiler_wl='-Wl,'
11524 lt_prog_compiler_pic='-fPIC'
11525 lt_prog_compiler_static='-static'
11526 ;;
11527 # Lahey Fortran 8.1.
11528 lf95*)
11529 lt_prog_compiler_wl='-Wl,'
11530 lt_prog_compiler_pic='--shared'
11531 lt_prog_compiler_static='--static'
11532 ;;
11533 nagfor*)
11534 # NAG Fortran compiler
11535 lt_prog_compiler_wl='-Wl,-Wl,,'
11536 lt_prog_compiler_pic='-PIC'
11537 lt_prog_compiler_static='-Bstatic'
11538 ;;
11539 tcc*)
11540 # Fabrice Bellard et al's Tiny C Compiler
11541 lt_prog_compiler_wl='-Wl,'
11542 lt_prog_compiler_pic='-fPIC'
11543 lt_prog_compiler_static='-static'
11544 ;;
11545 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11546 # Portland Group compilers (*not* the Pentium gcc compiler,
11547 # which looks to be a dead project)
11548 lt_prog_compiler_wl='-Wl,'
11549 lt_prog_compiler_pic='-fpic'
11550 lt_prog_compiler_static='-Bstatic'
11551 ;;
11552 ccc*)
11553 lt_prog_compiler_wl='-Wl,'
11554 # All Alpha code is PIC.
11555 lt_prog_compiler_static='-non_shared'
11556 ;;
11557 xl* | bgxl* | bgf* | mpixl*)
11558 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11559 lt_prog_compiler_wl='-Wl,'
11560 lt_prog_compiler_pic='-qpic'
11561 lt_prog_compiler_static='-qstaticlink'
11562 ;;
11563 *)
11564 case `$CC -V 2>&1 | $SED 5q` in
11565 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11567 lt_prog_compiler_pic='-KPIC'
11568 lt_prog_compiler_static='-Bstatic'
11569 lt_prog_compiler_wl=''
11570 ;;
11571 *Sun\ F* | *Sun*Fortran*)
11572 lt_prog_compiler_pic='-KPIC'
11573 lt_prog_compiler_static='-Bstatic'
11574 lt_prog_compiler_wl='-Qoption ld '
11575 ;;
11576 *Sun\ C*)
11577 # Sun C 5.9
11578 lt_prog_compiler_pic='-KPIC'
11579 lt_prog_compiler_static='-Bstatic'
11580 lt_prog_compiler_wl='-Wl,'
11581 ;;
11582 *Intel*\ [CF]*Compiler*)
11583 lt_prog_compiler_wl='-Wl,'
11584 lt_prog_compiler_pic='-fPIC'
11585 lt_prog_compiler_static='-static'
11586 ;;
11587 *Portland\ Group*)
11588 lt_prog_compiler_wl='-Wl,'
11589 lt_prog_compiler_pic='-fpic'
11590 lt_prog_compiler_static='-Bstatic'
11591 ;;
11592 esac
11593 ;;
11594 esac
11595 ;;
11596
11597 newsos6)
11598 lt_prog_compiler_pic='-KPIC'
11599 lt_prog_compiler_static='-Bstatic'
11600 ;;
11601
11602 *-mlibc)
11603 lt_prog_compiler_wl='-Wl,'
11604 lt_prog_compiler_pic='-fPIC'
11605 lt_prog_compiler_static='-static'
11606 ;;
11607
11608 *nto* | *qnx*)
11609 # QNX uses GNU C++, but need to define -shared option too, otherwise
11610 # it will coredump.
11611 lt_prog_compiler_pic='-fPIC -shared'
11612 ;;
11613
11614 osf3* | osf4* | osf5*)
11615 lt_prog_compiler_wl='-Wl,'
11616 # All OSF/1 code is PIC.
11617 lt_prog_compiler_static='-non_shared'
11618 ;;
11619
11620 rdos*)
11621 lt_prog_compiler_static='-non_shared'
11622 ;;
11623
11624 serenity*)
11625 ;;
11626
11627 solaris*)
11628 lt_prog_compiler_pic='-KPIC'
11629 lt_prog_compiler_static='-Bstatic'
11630 case $cc_basename in
11631 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11632 lt_prog_compiler_wl='-Qoption ld ';;
11633 *)
11634 lt_prog_compiler_wl='-Wl,';;
11635 esac
11636 ;;
11637
11638 sunos4*)
11639 lt_prog_compiler_wl='-Qoption ld '
11640 lt_prog_compiler_pic='-PIC'
11641 lt_prog_compiler_static='-Bstatic'
11642 ;;
11643
11644 sysv4 | sysv4.2uw2* | sysv4.3*)
11645 lt_prog_compiler_wl='-Wl,'
11646 lt_prog_compiler_pic='-KPIC'
11647 lt_prog_compiler_static='-Bstatic'
11648 ;;
11649
11650 sysv4*MP*)
11651 if test -d /usr/nec; then
11652 lt_prog_compiler_pic='-Kconform_pic'
11653 lt_prog_compiler_static='-Bstatic'
11654 fi
11655 ;;
11656
11657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11658 lt_prog_compiler_wl='-Wl,'
11659 lt_prog_compiler_pic='-KPIC'
11660 lt_prog_compiler_static='-Bstatic'
11661 ;;
11662
11663 unicos*)
11664 lt_prog_compiler_wl='-Wl,'
11665 lt_prog_compiler_can_build_shared=no
11666 ;;
11667
11668 uts4*)
11669 lt_prog_compiler_pic='-pic'
11670 lt_prog_compiler_static='-Bstatic'
11671 ;;
11672
11673 *)
11674 lt_prog_compiler_can_build_shared=no
11675 ;;
11676 esac
11677 fi
11678
11679 case $host_os in
11680 # For platforms that do not support PIC, -DPIC is meaningless:
11681 *djgpp*)
11682 lt_prog_compiler_pic=
11683 ;;
11684 *)
11685 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11686 ;;
11687 esac
11688
11689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11690 printf %s "checking for $compiler option to produce PIC... " >&6; }
11691 if test ${lt_cv_prog_compiler_pic+y}
11692 then :
11693 printf %s "(cached) " >&6
11694 else case e in #(
11695 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11696 esac
11697 fi
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11699 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11700 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11701
11702 #
11703 # Check to make sure the PIC flag actually works.
11704 #
11705 if test -n "$lt_prog_compiler_pic"; then
11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11707 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11708 if test ${lt_cv_prog_compiler_pic_works+y}
11709 then :
11710 printf %s "(cached) " >&6
11711 else case e in #(
11712 e) lt_cv_prog_compiler_pic_works=no
11713 ac_outfile=conftest.$ac_objext
11714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11715 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11716 # Insert the option either (1) after the last *FLAGS variable, or
11717 # (2) before a word containing "conftest.", or (3) at the end.
11718 # Note that $ac_compile itself does not contain backslashes and begins
11719 # with a dollar sign (not a hyphen), so the echo should work correctly.
11720 # The option is referenced via a variable to avoid confusing sed.
11721 lt_compile=`echo "$ac_compile" | $SED \
11722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11724 -e 's:$: $lt_compiler_flag:'`
11725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11726 (eval "$lt_compile" 2>conftest.err)
11727 ac_status=$?
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 if (exit $ac_status) && test -s "$ac_outfile"; then
11731 # The compiler can only warn and ignore the option if not recognized
11732 # So say no if there are warnings other than the usual output.
11733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11736 lt_cv_prog_compiler_pic_works=yes
11737 fi
11738 fi
11739 $RM conftest*
11740 ;;
11741 esac
11742 fi
11743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11744 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11745
11746 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11747 case $lt_prog_compiler_pic in
11748 "" | " "*) ;;
11749 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11750 esac
11751 else
11752 lt_prog_compiler_pic=
11753 lt_prog_compiler_can_build_shared=no
11754 fi
11755
11756 fi
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768 #
11769 # Check to make sure the static flag actually works.
11770 #
11771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11773 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11774 if test ${lt_cv_prog_compiler_static_works+y}
11775 then :
11776 printf %s "(cached) " >&6
11777 else case e in #(
11778 e) lt_cv_prog_compiler_static_works=no
11779 save_LDFLAGS=$LDFLAGS
11780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11783 # The linker can only warn and ignore the option if not recognized
11784 # So say no if there are warnings
11785 if test -s conftest.err; then
11786 # Append any errors to the config.log.
11787 cat conftest.err 1>&5
11788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11790 if diff conftest.exp conftest.er2 >/dev/null; then
11791 lt_cv_prog_compiler_static_works=yes
11792 fi
11793 else
11794 lt_cv_prog_compiler_static_works=yes
11795 fi
11796 fi
11797 $RM -r conftest*
11798 LDFLAGS=$save_LDFLAGS
11799 ;;
11800 esac
11801 fi
11802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11803 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11804
11805 if test yes = "$lt_cv_prog_compiler_static_works"; then
11806 :
11807 else
11808 lt_prog_compiler_static=
11809 fi
11810
11811
11812
11813
11814
11815
11816
11817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11818 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11819 if test ${lt_cv_prog_compiler_c_o+y}
11820 then :
11821 printf %s "(cached) " >&6
11822 else case e in #(
11823 e) lt_cv_prog_compiler_c_o=no
11824 $RM -r conftest 2>/dev/null
11825 mkdir conftest
11826 cd conftest
11827 mkdir out
11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11829
11830 lt_compiler_flag="-o out/conftest2.$ac_objext"
11831 # Insert the option either (1) after the last *FLAGS variable, or
11832 # (2) before a word containing "conftest.", or (3) at the end.
11833 # Note that $ac_compile itself does not contain backslashes and begins
11834 # with a dollar sign (not a hyphen), so the echo should work correctly.
11835 lt_compile=`echo "$ac_compile" | $SED \
11836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11838 -e 's:$: $lt_compiler_flag:'`
11839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11840 (eval "$lt_compile" 2>out/conftest.err)
11841 ac_status=$?
11842 cat out/conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11845 then
11846 # The compiler can only warn and ignore the option if not recognized
11847 # So say no if there are warnings
11848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11851 lt_cv_prog_compiler_c_o=yes
11852 fi
11853 fi
11854 chmod u+w . 2>&5
11855 $RM conftest*
11856 # SGI C++ compiler will create directory out/ii_files/ for
11857 # template instantiation
11858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11859 $RM out/* && rmdir out
11860 cd ..
11861 $RM -r conftest
11862 $RM conftest*
11863 ;;
11864 esac
11865 fi
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11867 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11868
11869
11870
11871
11872
11873
11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11875 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11876 if test ${lt_cv_prog_compiler_c_o+y}
11877 then :
11878 printf %s "(cached) " >&6
11879 else case e in #(
11880 e) lt_cv_prog_compiler_c_o=no
11881 $RM -r conftest 2>/dev/null
11882 mkdir conftest
11883 cd conftest
11884 mkdir out
11885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11886
11887 lt_compiler_flag="-o out/conftest2.$ac_objext"
11888 # Insert the option either (1) after the last *FLAGS variable, or
11889 # (2) before a word containing "conftest.", or (3) at the end.
11890 # Note that $ac_compile itself does not contain backslashes and begins
11891 # with a dollar sign (not a hyphen), so the echo should work correctly.
11892 lt_compile=`echo "$ac_compile" | $SED \
11893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11895 -e 's:$: $lt_compiler_flag:'`
11896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11897 (eval "$lt_compile" 2>out/conftest.err)
11898 ac_status=$?
11899 cat out/conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11902 then
11903 # The compiler can only warn and ignore the option if not recognized
11904 # So say no if there are warnings
11905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11908 lt_cv_prog_compiler_c_o=yes
11909 fi
11910 fi
11911 chmod u+w . 2>&5
11912 $RM conftest*
11913 # SGI C++ compiler will create directory out/ii_files/ for
11914 # template instantiation
11915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11916 $RM out/* && rmdir out
11917 cd ..
11918 $RM -r conftest
11919 $RM conftest*
11920 ;;
11921 esac
11922 fi
11923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11924 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11925
11926
11927
11928
11929 hard_links=nottested
11930 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11931 # do not overwrite the value of need_locks provided by the user
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11933 printf %s "checking if we can lock with hard links... " >&6; }
11934 hard_links=yes
11935 $RM conftest*
11936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11937 touch conftest.a
11938 ln conftest.a conftest.b 2>&5 || hard_links=no
11939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11941 printf "%s\n" "$hard_links" >&6; }
11942 if test no = "$hard_links"; then
11943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11944 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11945 need_locks=warn
11946 fi
11947 else
11948 need_locks=no
11949 fi
11950
11951
11952
11953
11954
11955
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11957 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11958
11959 runpath_var=
11960 allow_undefined_flag=
11961 always_export_symbols=no
11962 archive_cmds=
11963 archive_expsym_cmds=
11964 compiler_needs_object=no
11965 enable_shared_with_static_runtimes=no
11966 export_dynamic_flag_spec=
11967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11968 hardcode_automatic=no
11969 hardcode_direct=no
11970 hardcode_direct_absolute=no
11971 hardcode_libdir_flag_spec=
11972 hardcode_libdir_separator=
11973 hardcode_minus_L=no
11974 hardcode_shlibpath_var=unsupported
11975 inherit_rpath=no
11976 link_all_deplibs=unknown
11977 module_cmds=
11978 module_expsym_cmds=
11979 old_archive_from_new_cmds=
11980 old_archive_from_expsyms_cmds=
11981 thread_safe_flag_spec=
11982 whole_archive_flag_spec=
11983 # include_expsyms should be a list of space-separated symbols to be *always*
11984 # included in the symbol list
11985 include_expsyms=
11986 # exclude_expsyms can be an extended regexp of symbols to exclude
11987 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11988 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11989 # as well as any symbol that contains 'd'.
11990 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11992 # platforms (ab)use it in PIC code, but their linkers get confused if
11993 # the symbol is explicitly referenced. Since portable code cannot
11994 # rely on this symbol name, it's probably fine to never include it in
11995 # preloaded symbol tables.
11996 # Exclude shared library initialization/finalization symbols.
11997 extract_expsyms_cmds=
11998
11999 case $host_os in
12000 cygwin* | mingw* | windows* | pw32* | cegcc*)
12001 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12002 # When not using gcc, we currently assume that we are using
12003 # Microsoft Visual C++ or Intel C++ Compiler.
12004 if test yes != "$GCC"; then
12005 with_gnu_ld=no
12006 fi
12007 ;;
12008 interix*)
12009 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12010 with_gnu_ld=yes
12011 ;;
12012 esac
12013
12014 ld_shlibs=yes
12015
12016 # On some targets, GNU ld is compatible enough with the native linker
12017 # that we're better off using the native interface for both.
12018 lt_use_gnu_ld_interface=no
12019 if test yes = "$with_gnu_ld"; then
12020 case $host_os in
12021 aix*)
12022 # The AIX port of GNU ld has always aspired to compatibility
12023 # with the native linker. However, as the warning in the GNU ld
12024 # block says, versions before 2.19.5* couldn't really create working
12025 # shared libraries, regardless of the interface used.
12026 case `$LD -v 2>&1` in
12027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12029 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12030 *)
12031 lt_use_gnu_ld_interface=yes
12032 ;;
12033 esac
12034 ;;
12035 *)
12036 lt_use_gnu_ld_interface=yes
12037 ;;
12038 esac
12039 fi
12040
12041 if test yes = "$lt_use_gnu_ld_interface"; then
12042 # If archive_cmds runs LD, not CC, wlarc should be empty
12043 wlarc='$wl'
12044
12045 # Set some defaults for GNU ld with shared library support. These
12046 # are reset later if shared libraries are not supported. Putting them
12047 # here allows them to be overridden if necessary.
12048 runpath_var=LD_RUN_PATH
12049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12050 export_dynamic_flag_spec='$wl--export-dynamic'
12051 # ancient GNU ld didn't support --whole-archive et. al.
12052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12053 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12054 else
12055 whole_archive_flag_spec=
12056 fi
12057 supports_anon_versioning=no
12058 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12059 *GNU\ gold*) supports_anon_versioning=yes ;;
12060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12063 *\ 2.11.*) ;; # other 2.11 versions
12064 *) supports_anon_versioning=yes ;;
12065 esac
12066
12067 # See if GNU ld supports shared libraries.
12068 case $host_os in
12069 aix[3-9]*)
12070 # On AIX/PPC, the GNU linker is very broken
12071 if test ia64 != "$host_cpu"; then
12072 ld_shlibs=no
12073 cat <<_LT_EOF 1>&2
12074
12075 *** Warning: the GNU linker, at least up to release 2.19, is reported
12076 *** to be unable to reliably create shared libraries on AIX.
12077 *** Therefore, libtool is disabling shared libraries support. If you
12078 *** really care for shared libraries, you may want to install binutils
12079 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12080 *** You will then need to restart the configuration process.
12081
12082 _LT_EOF
12083 fi
12084 ;;
12085
12086 amigaos*)
12087 case $host_cpu in
12088 powerpc)
12089 # see comment about AmigaOS4 .so support
12090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12091 archive_expsym_cmds=''
12092 ;;
12093 m68k)
12094 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12095 hardcode_libdir_flag_spec='-L$libdir'
12096 hardcode_minus_L=yes
12097 ;;
12098 esac
12099 ;;
12100
12101 beos*)
12102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12103 allow_undefined_flag=unsupported
12104 # Joseph Beckenbach <[email protected]> says some releases of gcc
12105 # support --undefined. This deserves some investigation. FIXME
12106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12107 else
12108 ld_shlibs=no
12109 fi
12110 ;;
12111
12112 cygwin* | mingw* | windows* | pw32* | cegcc*)
12113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12114 # as there is no search path for DLLs.
12115 hardcode_libdir_flag_spec='-L$libdir'
12116 export_dynamic_flag_spec='$wl--export-all-symbols'
12117 allow_undefined_flag=unsupported
12118 always_export_symbols=no
12119 enable_shared_with_static_runtimes=yes
12120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12121 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12122 file_list_spec='@'
12123
12124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12126 # If the export-symbols file already is a .def file, use it as
12127 # is; otherwise, prepend EXPORTS...
12128 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12129 cp $export_symbols $output_objdir/$soname.def;
12130 else
12131 echo EXPORTS > $output_objdir/$soname.def;
12132 cat $export_symbols >> $output_objdir/$soname.def;
12133 fi~
12134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12135 else
12136 ld_shlibs=no
12137 fi
12138 ;;
12139
12140 haiku*)
12141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12142 link_all_deplibs=no
12143 ;;
12144
12145 os2*)
12146 hardcode_libdir_flag_spec='-L$libdir'
12147 hardcode_minus_L=yes
12148 allow_undefined_flag=unsupported
12149 shrext_cmds=.dll
12150 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12153 $ECHO EXPORTS >> $output_objdir/$libname.def~
12154 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12156 emximp -o $lib $output_objdir/$libname.def'
12157 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12160 $ECHO EXPORTS >> $output_objdir/$libname.def~
12161 prefix_cmds="$SED"~
12162 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12163 prefix_cmds="$prefix_cmds -e 1d";
12164 fi~
12165 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12166 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12168 emximp -o $lib $output_objdir/$libname.def'
12169 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12170 enable_shared_with_static_runtimes=yes
12171 file_list_spec='@'
12172 ;;
12173
12174 interix[3-9]*)
12175 hardcode_direct=no
12176 hardcode_shlibpath_var=no
12177 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12178 export_dynamic_flag_spec='$wl-E'
12179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12180 # Instead, shared libraries are loaded at an image base (0x10000000 by
12181 # default) and relocated if they conflict, which is a slow very memory
12182 # consuming and fragmenting process. To avoid this, we pick a random,
12183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12186 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12187 ;;
12188
12189 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12190 tmp_diet=no
12191 if test linux-dietlibc = "$host_os"; then
12192 case $cc_basename in
12193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12194 esac
12195 fi
12196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12197 && test no = "$tmp_diet"
12198 then
12199 tmp_addflag=' $pic_flag'
12200 tmp_sharedflag='-shared'
12201 case $cc_basename,$host_cpu in
12202 pgcc*) # Portland Group C compiler
12203 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12204 tmp_addflag=' $pic_flag'
12205 ;;
12206 pgf77* | pgf90* | pgf95* | pgfortran*)
12207 # Portland Group f77 and f90 compilers
12208 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12209 tmp_addflag=' $pic_flag -Mnomain' ;;
12210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12211 tmp_addflag=' -i_dynamic' ;;
12212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12213 tmp_addflag=' -i_dynamic -nofor_main' ;;
12214 ifc* | ifort*) # Intel Fortran compiler
12215 tmp_addflag=' -nofor_main' ;;
12216 lf95*) # Lahey Fortran 8.1
12217 whole_archive_flag_spec=
12218 tmp_sharedflag='--shared' ;;
12219 nagfor*) # NAGFOR 5.3
12220 tmp_sharedflag='-Wl,-shared' ;;
12221 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12222 tmp_sharedflag='-qmkshrobj'
12223 tmp_addflag= ;;
12224 nvcc*) # Cuda Compiler Driver 2.2
12225 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12226 compiler_needs_object=yes
12227 ;;
12228 esac
12229 case `$CC -V 2>&1 | $SED 5q` in
12230 *Sun\ C*) # Sun C 5.9
12231 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12232 compiler_needs_object=yes
12233 tmp_sharedflag='-G' ;;
12234 *Sun\ F*) # Sun Fortran 8.3
12235 tmp_sharedflag='-G' ;;
12236 esac
12237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12238
12239 if test yes = "$supports_anon_versioning"; then
12240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12241 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12242 echo "local: *; };" >> $output_objdir/$libname.ver~
12243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12244 fi
12245
12246 case $cc_basename in
12247 tcc*)
12248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12249 export_dynamic_flag_spec='-rdynamic'
12250 ;;
12251 xlf* | bgf* | bgxlf* | mpixlf*)
12252 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12253 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12255 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12256 if test yes = "$supports_anon_versioning"; then
12257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12258 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12259 echo "local: *; };" >> $output_objdir/$libname.ver~
12260 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12261 fi
12262 ;;
12263 esac
12264 else
12265 ld_shlibs=no
12266 fi
12267 ;;
12268
12269 *-mlibc)
12270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12271 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12272 ;;
12273
12274 netbsd* | netbsdelf*-gnu)
12275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12277 wlarc=
12278 else
12279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12280 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12281 fi
12282 ;;
12283
12284 solaris*)
12285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12286 ld_shlibs=no
12287 cat <<_LT_EOF 1>&2
12288
12289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12290 *** create shared libraries on Solaris systems. Therefore, libtool
12291 *** is disabling shared libraries support. We urge you to upgrade GNU
12292 *** binutils to release 2.9.1 or newer. Another option is to modify
12293 *** your PATH or compiler configuration so that the native linker is
12294 *** used, and then restart.
12295
12296 _LT_EOF
12297 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12298 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12299 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12300 else
12301 ld_shlibs=no
12302 fi
12303 ;;
12304
12305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12306 case `$LD -v 2>&1` in
12307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12308 ld_shlibs=no
12309 cat <<_LT_EOF 1>&2
12310
12311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12312 *** reliably create shared libraries on SCO systems. Therefore, libtool
12313 *** is disabling shared libraries support. We urge you to upgrade GNU
12314 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12315 *** your PATH or compiler configuration so that the native linker is
12316 *** used, and then restart.
12317
12318 _LT_EOF
12319 ;;
12320 *)
12321 # For security reasons, it is highly recommended that you always
12322 # use absolute paths for naming shared libraries, and exclude the
12323 # DT_RUNPATH tag from executables and libraries. But doing so
12324 # requires that you compile everything twice, which is a pain.
12325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12329 else
12330 ld_shlibs=no
12331 fi
12332 ;;
12333 esac
12334 ;;
12335
12336 sunos4*)
12337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12338 wlarc=
12339 hardcode_direct=yes
12340 hardcode_shlibpath_var=no
12341 ;;
12342
12343 *)
12344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12346 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12347 else
12348 ld_shlibs=no
12349 fi
12350 ;;
12351 esac
12352
12353 if test no = "$ld_shlibs"; then
12354 runpath_var=
12355 hardcode_libdir_flag_spec=
12356 export_dynamic_flag_spec=
12357 whole_archive_flag_spec=
12358 fi
12359 else
12360 # PORTME fill in a description of your system's linker (not GNU ld)
12361 case $host_os in
12362 aix3*)
12363 allow_undefined_flag=unsupported
12364 always_export_symbols=yes
12365 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12366 # Note: this linker hardcodes the directories in LIBPATH if there
12367 # are no directories specified by -L.
12368 hardcode_minus_L=yes
12369 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12370 # Neither direct hardcoding nor static linking is supported with a
12371 # broken collect2.
12372 hardcode_direct=unsupported
12373 fi
12374 ;;
12375
12376 aix[4-9]*)
12377 if test ia64 = "$host_cpu"; then
12378 # On IA64, the linker does run time linking by default, so we don't
12379 # have to do anything special.
12380 aix_use_runtimelinking=no
12381 exp_sym_flag='-Bexport'
12382 no_entry_flag=
12383 else
12384 # If we're using GNU nm, then we don't want the "-C" option.
12385 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12386 # Without the "-l" option, or with the "-B" option, AIX nm treats
12387 # weak defined symbols like other global defined symbols, whereas
12388 # GNU nm marks them as "W".
12389 # While the 'weak' keyword is ignored in the Export File, we need
12390 # it in the Import File for the 'aix-soname' feature, so we have
12391 # to replace the "-B" option with "-P" for AIX nm.
12392 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12393 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12394 else
12395 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12396 fi
12397 aix_use_runtimelinking=no
12398
12399 # Test if we are trying to use run time linking or normal
12400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12401 # have runtime linking enabled, and use it for executables.
12402 # For shared libraries, we enable/disable runtime linking
12403 # depending on the kind of the shared library created -
12404 # when "with_aix_soname,aix_use_runtimelinking" is:
12405 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12406 # "aix,yes" lib.so shared, rtl:yes, for executables
12407 # lib.a static archive
12408 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12409 # lib.a(lib.so.V) shared, rtl:no, for executables
12410 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12411 # lib.a(lib.so.V) shared, rtl:no
12412 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12413 # lib.a static archive
12414 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12415 for ld_flag in $LDFLAGS; do
12416 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12417 aix_use_runtimelinking=yes
12418 break
12419 fi
12420 done
12421 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12422 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12423 # so we don't have lib.a shared libs to link our executables.
12424 # We have to force runtime linking in this case.
12425 aix_use_runtimelinking=yes
12426 LDFLAGS="$LDFLAGS -Wl,-brtl"
12427 fi
12428 ;;
12429 esac
12430
12431 exp_sym_flag='-bexport'
12432 no_entry_flag='-bnoentry'
12433 fi
12434
12435 # When large executables or shared objects are built, AIX ld can
12436 # have problems creating the table of contents. If linking a library
12437 # or program results in "error TOC overflow" add -mminimal-toc to
12438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12440
12441 archive_cmds=''
12442 hardcode_direct=yes
12443 hardcode_direct_absolute=yes
12444 hardcode_libdir_separator=':'
12445 link_all_deplibs=yes
12446 file_list_spec='$wl-f,'
12447 case $with_aix_soname,$aix_use_runtimelinking in
12448 aix,*) ;; # traditional, no import file
12449 svr4,* | *,yes) # use import file
12450 # The Import File defines what to hardcode.
12451 hardcode_direct=no
12452 hardcode_direct_absolute=no
12453 ;;
12454 esac
12455
12456 if test yes = "$GCC"; then
12457 case $host_os in aix4.[012]|aix4.[012].*)
12458 # We only want to do this on AIX 4.2 and lower, the check
12459 # below for broken collect2 doesn't work under 4.3+
12460 collect2name=`$CC -print-prog-name=collect2`
12461 if test -f "$collect2name" &&
12462 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12463 then
12464 # We have reworked collect2
12465 :
12466 else
12467 # We have old collect2
12468 hardcode_direct=unsupported
12469 # It fails to find uninstalled libraries when the uninstalled
12470 # path is not listed in the libpath. Setting hardcode_minus_L
12471 # to unsupported forces relinking
12472 hardcode_minus_L=yes
12473 hardcode_libdir_flag_spec='-L$libdir'
12474 hardcode_libdir_separator=
12475 fi
12476 ;;
12477 esac
12478 shared_flag='-shared'
12479 if test yes = "$aix_use_runtimelinking"; then
12480 shared_flag="$shared_flag "'$wl-G'
12481 fi
12482 # Need to ensure runtime linking is disabled for the traditional
12483 # shared library, or the linker may eventually find shared libraries
12484 # /with/ Import File - we do not want to mix them.
12485 shared_flag_aix='-shared'
12486 shared_flag_svr4='-shared $wl-G'
12487 else
12488 # not using gcc
12489 if test ia64 = "$host_cpu"; then
12490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12491 # chokes on -Wl,-G. The following line is correct:
12492 shared_flag='-G'
12493 else
12494 if test yes = "$aix_use_runtimelinking"; then
12495 shared_flag='$wl-G'
12496 else
12497 shared_flag='$wl-bM:SRE'
12498 fi
12499 shared_flag_aix='$wl-bM:SRE'
12500 shared_flag_svr4='$wl-G'
12501 fi
12502 fi
12503
12504 export_dynamic_flag_spec='$wl-bexpall'
12505 # It seems that -bexpall does not export symbols beginning with
12506 # underscore (_), so it is better to generate a list of symbols to export.
12507 always_export_symbols=yes
12508 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12509 # Warning - without using the other runtime loading flags (-brtl),
12510 # -berok will link without error, but may produce a broken library.
12511 allow_undefined_flag='-berok'
12512 # Determine the default libpath from the value encoded in an
12513 # empty executable.
12514 if test set = "${lt_cv_aix_libpath+set}"; then
12515 aix_libpath=$lt_cv_aix_libpath
12516 else
12517 if test ${lt_cv_aix_libpath_+y}
12518 then :
12519 printf %s "(cached) " >&6
12520 else case e in #(
12521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 int
12525 main (void)
12526 {
12527
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"
12533 then :
12534
12535 lt_aix_libpath_sed='
12536 /Import File Strings/,/^$/ {
12537 /^0/ {
12538 s/^0 *\([^ ]*\) *$/\1/
12539 p
12540 }
12541 }'
12542 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12543 # Check for a 64-bit object if we didn't find anything.
12544 if test -z "$lt_cv_aix_libpath_"; then
12545 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12546 fi
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12549 conftest$ac_exeext conftest.$ac_ext
12550 if test -z "$lt_cv_aix_libpath_"; then
12551 lt_cv_aix_libpath_=/usr/lib:/lib
12552 fi
12553 ;;
12554 esac
12555 fi
12556
12557 aix_libpath=$lt_cv_aix_libpath_
12558 fi
12559
12560 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12561 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12562 else
12563 if test ia64 = "$host_cpu"; then
12564 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12565 allow_undefined_flag="-z nodefs"
12566 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12567 else
12568 # Determine the default libpath from the value encoded in an
12569 # empty executable.
12570 if test set = "${lt_cv_aix_libpath+set}"; then
12571 aix_libpath=$lt_cv_aix_libpath
12572 else
12573 if test ${lt_cv_aix_libpath_+y}
12574 then :
12575 printf %s "(cached) " >&6
12576 else case e in #(
12577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 int
12581 main (void)
12582 {
12583
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"
12589 then :
12590
12591 lt_aix_libpath_sed='
12592 /Import File Strings/,/^$/ {
12593 /^0/ {
12594 s/^0 *\([^ ]*\) *$/\1/
12595 p
12596 }
12597 }'
12598 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599 # Check for a 64-bit object if we didn't find anything.
12600 if test -z "$lt_cv_aix_libpath_"; then
12601 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602 fi
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12605 conftest$ac_exeext conftest.$ac_ext
12606 if test -z "$lt_cv_aix_libpath_"; then
12607 lt_cv_aix_libpath_=/usr/lib:/lib
12608 fi
12609 ;;
12610 esac
12611 fi
12612
12613 aix_libpath=$lt_cv_aix_libpath_
12614 fi
12615
12616 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12617 # Warning - without using the other run time loading flags,
12618 # -berok will link without error, but may produce a broken library.
12619 no_undefined_flag=' $wl-bernotok'
12620 allow_undefined_flag=' $wl-berok'
12621 if test yes = "$with_gnu_ld"; then
12622 # We only use this code for GNU lds that support --whole-archive.
12623 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12624 else
12625 # Exported symbols can be pulled into shared objects from archives
12626 whole_archive_flag_spec='$convenience'
12627 fi
12628 archive_cmds_need_lc=yes
12629 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12630 # -brtl affects multiple linker settings, -berok does not and is overridden later
12631 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12632 if test svr4 != "$with_aix_soname"; then
12633 # This is similar to how AIX traditionally builds its shared libraries.
12634 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12635 fi
12636 if test aix != "$with_aix_soname"; then
12637 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12638 else
12639 # used by -dlpreopen to get the symbols
12640 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12641 fi
12642 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12643 fi
12644 fi
12645 ;;
12646
12647 amigaos*)
12648 case $host_cpu in
12649 powerpc)
12650 # see comment about AmigaOS4 .so support
12651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12652 archive_expsym_cmds=''
12653 ;;
12654 m68k)
12655 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12656 hardcode_libdir_flag_spec='-L$libdir'
12657 hardcode_minus_L=yes
12658 ;;
12659 esac
12660 ;;
12661
12662 bsdi[45]*)
12663 export_dynamic_flag_spec=-rdynamic
12664 ;;
12665
12666 cygwin* | mingw* | windows* | pw32* | cegcc*)
12667 # When not using gcc, we currently assume that we are using
12668 # Microsoft Visual C++ or Intel C++ Compiler.
12669 # hardcode_libdir_flag_spec is actually meaningless, as there is
12670 # no search path for DLLs.
12671 case $cc_basename in
12672 cl* | icl*)
12673 # Native MSVC or ICC
12674 hardcode_libdir_flag_spec=' '
12675 allow_undefined_flag=unsupported
12676 always_export_symbols=yes
12677 file_list_spec='@'
12678 # Tell ltmain to make .lib files, not .a files.
12679 libext=lib
12680 # Tell ltmain to make .dll files, not .so files.
12681 shrext_cmds=.dll
12682 # FIXME: Setting linknames here is a bad hack.
12683 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12684 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12685 cp "$export_symbols" "$output_objdir/$soname.def";
12686 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12687 else
12688 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12689 fi~
12690 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12691 linknames='
12692 # The linker will not automatically build a static lib if we build a DLL.
12693 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12694 enable_shared_with_static_runtimes=yes
12695 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12696 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12697 # Don't use ranlib
12698 old_postinstall_cmds='chmod 644 $oldlib'
12699 postlink_cmds='lt_outputfile="@OUTPUT@"~
12700 lt_tool_outputfile="@TOOL_OUTPUT@"~
12701 case $lt_outputfile in
12702 *.exe|*.EXE) ;;
12703 *)
12704 lt_outputfile=$lt_outputfile.exe
12705 lt_tool_outputfile=$lt_tool_outputfile.exe
12706 ;;
12707 esac~
12708 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12709 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12710 $RM "$lt_outputfile.manifest";
12711 fi'
12712 ;;
12713 *)
12714 # Assume MSVC and ICC wrapper
12715 hardcode_libdir_flag_spec=' '
12716 allow_undefined_flag=unsupported
12717 # Tell ltmain to make .lib files, not .a files.
12718 libext=lib
12719 # Tell ltmain to make .dll files, not .so files.
12720 shrext_cmds=.dll
12721 # FIXME: Setting linknames here is a bad hack.
12722 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12723 # The linker will automatically build a .lib file if we build a DLL.
12724 old_archive_from_new_cmds='true'
12725 # FIXME: Should let the user specify the lib program.
12726 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12727 enable_shared_with_static_runtimes=yes
12728 ;;
12729 esac
12730 ;;
12731
12732 darwin* | rhapsody*)
12733
12734
12735 archive_cmds_need_lc=no
12736 hardcode_direct=no
12737 hardcode_automatic=yes
12738 hardcode_shlibpath_var=unsupported
12739 if test yes = "$lt_cv_ld_force_load"; then
12740 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12741
12742 else
12743 whole_archive_flag_spec=''
12744 fi
12745 link_all_deplibs=yes
12746 allow_undefined_flag=$_lt_dar_allow_undefined
12747 case $cc_basename in
12748 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12749 *) _lt_dar_can_shared=$GCC ;;
12750 esac
12751 if test yes = "$_lt_dar_can_shared"; then
12752 output_verbose_link_cmd=func_echo_all
12753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12755 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12756 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12757
12758 else
12759 ld_shlibs=no
12760 fi
12761
12762 ;;
12763
12764 dgux*)
12765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12766 hardcode_libdir_flag_spec='-L$libdir'
12767 hardcode_shlibpath_var=no
12768 ;;
12769
12770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12771 # support. Future versions do this automatically, but an explicit c++rt0.o
12772 # does not break anything, and helps significantly (at the cost of a little
12773 # extra space).
12774 freebsd2.2*)
12775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12776 hardcode_libdir_flag_spec='-R$libdir'
12777 hardcode_direct=yes
12778 hardcode_shlibpath_var=no
12779 ;;
12780
12781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12782 freebsd2.*)
12783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12784 hardcode_direct=yes
12785 hardcode_minus_L=yes
12786 hardcode_shlibpath_var=no
12787 ;;
12788
12789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12790 freebsd* | dragonfly* | midnightbsd*)
12791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12792 hardcode_libdir_flag_spec='-R$libdir'
12793 hardcode_direct=yes
12794 hardcode_shlibpath_var=no
12795 ;;
12796
12797 hpux9*)
12798 if test yes = "$GCC"; then
12799 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12800 else
12801 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12802 fi
12803 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12804 hardcode_libdir_separator=:
12805 hardcode_direct=yes
12806
12807 # hardcode_minus_L: Not really in the search PATH,
12808 # but as the default location of the library.
12809 hardcode_minus_L=yes
12810 export_dynamic_flag_spec='$wl-E'
12811 ;;
12812
12813 hpux10*)
12814 if test yes,no = "$GCC,$with_gnu_ld"; then
12815 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12816 else
12817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12818 fi
12819 if test no = "$with_gnu_ld"; then
12820 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12821 hardcode_libdir_separator=:
12822 hardcode_direct=yes
12823 hardcode_direct_absolute=yes
12824 export_dynamic_flag_spec='$wl-E'
12825 # hardcode_minus_L: Not really in the search PATH,
12826 # but as the default location of the library.
12827 hardcode_minus_L=yes
12828 fi
12829 ;;
12830
12831 hpux11*)
12832 if test yes,no = "$GCC,$with_gnu_ld"; then
12833 case $host_cpu in
12834 hppa*64*)
12835 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12836 ;;
12837 ia64*)
12838 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12839 ;;
12840 *)
12841 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12842 ;;
12843 esac
12844 else
12845 case $host_cpu in
12846 hppa*64*)
12847 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 ;;
12849 ia64*)
12850 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12851 ;;
12852 *)
12853
12854 # Older versions of the 11.00 compiler do not understand -b yet
12855 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12857 printf %s "checking if $CC understands -b... " >&6; }
12858 if test ${lt_cv_prog_compiler__b+y}
12859 then :
12860 printf %s "(cached) " >&6
12861 else case e in #(
12862 e) lt_cv_prog_compiler__b=no
12863 save_LDFLAGS=$LDFLAGS
12864 LDFLAGS="$LDFLAGS -b"
12865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12867 # The linker can only warn and ignore the option if not recognized
12868 # So say no if there are warnings
12869 if test -s conftest.err; then
12870 # Append any errors to the config.log.
12871 cat conftest.err 1>&5
12872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12874 if diff conftest.exp conftest.er2 >/dev/null; then
12875 lt_cv_prog_compiler__b=yes
12876 fi
12877 else
12878 lt_cv_prog_compiler__b=yes
12879 fi
12880 fi
12881 $RM -r conftest*
12882 LDFLAGS=$save_LDFLAGS
12883 ;;
12884 esac
12885 fi
12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12887 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12888
12889 if test yes = "$lt_cv_prog_compiler__b"; then
12890 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12891 else
12892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12893 fi
12894
12895 ;;
12896 esac
12897 fi
12898 if test no = "$with_gnu_ld"; then
12899 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12900 hardcode_libdir_separator=:
12901
12902 case $host_cpu in
12903 hppa*64*|ia64*)
12904 hardcode_direct=no
12905 hardcode_shlibpath_var=no
12906 ;;
12907 *)
12908 hardcode_direct=yes
12909 hardcode_direct_absolute=yes
12910 export_dynamic_flag_spec='$wl-E'
12911
12912 # hardcode_minus_L: Not really in the search PATH,
12913 # but as the default location of the library.
12914 hardcode_minus_L=yes
12915 ;;
12916 esac
12917 fi
12918 ;;
12919
12920 irix5* | irix6* | nonstopux*)
12921 if test yes = "$GCC"; then
12922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12923 # Try to use the -exported_symbol ld option, if it does not
12924 # work, assume that -exports_file does not work either and
12925 # implicitly export all symbols.
12926 # This should be the same for all languages, so no per-tag cache variable.
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12928 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12929 if test ${lt_cv_irix_exported_symbol+y}
12930 then :
12931 printf %s "(cached) " >&6
12932 else case e in #(
12933 e) save_LDFLAGS=$LDFLAGS
12934 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 int foo (void) { return 0; }
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"
12940 then :
12941 lt_cv_irix_exported_symbol=yes
12942 else case e in #(
12943 e) lt_cv_irix_exported_symbol=no ;;
12944 esac
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LDFLAGS=$save_LDFLAGS ;;
12949 esac
12950 fi
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12952 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12953 if test yes = "$lt_cv_irix_exported_symbol"; then
12954 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12955 fi
12956 else
12957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12959 fi
12960 archive_cmds_need_lc='no'
12961 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12962 hardcode_libdir_separator=:
12963 inherit_rpath=yes
12964 link_all_deplibs=yes
12965 ;;
12966
12967 linux*)
12968 case $cc_basename in
12969 tcc*)
12970 # Fabrice Bellard et al's Tiny C Compiler
12971 ld_shlibs=yes
12972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12973 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12974 ;;
12975 esac
12976 ;;
12977
12978 *-mlibc)
12979 ;;
12980
12981 netbsd* | netbsdelf*-gnu)
12982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12984 else
12985 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12986 fi
12987 hardcode_libdir_flag_spec='-R$libdir'
12988 hardcode_direct=yes
12989 hardcode_shlibpath_var=no
12990 ;;
12991
12992 newsos6)
12993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12994 hardcode_direct=yes
12995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12996 hardcode_libdir_separator=:
12997 hardcode_shlibpath_var=no
12998 ;;
12999
13000 *nto* | *qnx*)
13001 ;;
13002
13003 openbsd*)
13004 if test -f /usr/libexec/ld.so; then
13005 hardcode_direct=yes
13006 hardcode_shlibpath_var=no
13007 hardcode_direct_absolute=yes
13008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13010 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13011 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13012 export_dynamic_flag_spec='$wl-E'
13013 else
13014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13015 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13016 fi
13017 else
13018 ld_shlibs=no
13019 fi
13020 ;;
13021
13022 os2*)
13023 hardcode_libdir_flag_spec='-L$libdir'
13024 hardcode_minus_L=yes
13025 allow_undefined_flag=unsupported
13026 shrext_cmds=.dll
13027 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13028 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13029 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13030 $ECHO EXPORTS >> $output_objdir/$libname.def~
13031 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13032 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13033 emximp -o $lib $output_objdir/$libname.def'
13034 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13035 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13036 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13037 $ECHO EXPORTS >> $output_objdir/$libname.def~
13038 prefix_cmds="$SED"~
13039 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13040 prefix_cmds="$prefix_cmds -e 1d";
13041 fi~
13042 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13043 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13045 emximp -o $lib $output_objdir/$libname.def'
13046 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13047 enable_shared_with_static_runtimes=yes
13048 file_list_spec='@'
13049 ;;
13050
13051 osf3*)
13052 if test yes = "$GCC"; then
13053 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13054 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13055 else
13056 allow_undefined_flag=' -expect_unresolved \*'
13057 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13058 fi
13059 archive_cmds_need_lc='no'
13060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13061 hardcode_libdir_separator=:
13062 ;;
13063
13064 osf4* | osf5*) # as osf3* with the addition of -msym flag
13065 if test yes = "$GCC"; then
13066 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13067 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13069 else
13070 allow_undefined_flag=' -expect_unresolved \*'
13071 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13072 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13073 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13074
13075 # Both c and cxx compiler support -rpath directly
13076 hardcode_libdir_flag_spec='-rpath $libdir'
13077 fi
13078 archive_cmds_need_lc='no'
13079 hardcode_libdir_separator=:
13080 ;;
13081
13082 serenity*)
13083 ;;
13084
13085 solaris*)
13086 no_undefined_flag=' -z defs'
13087 if test yes = "$GCC"; then
13088 wlarc='$wl'
13089 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13091 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13092 else
13093 case `$CC -V 2>&1` in
13094 *"Compilers 5.0"*)
13095 wlarc=''
13096 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13098 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13099 ;;
13100 *)
13101 wlarc='$wl'
13102 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13104 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13105 ;;
13106 esac
13107 fi
13108 hardcode_libdir_flag_spec='-R$libdir'
13109 hardcode_shlibpath_var=no
13110 case $host_os in
13111 solaris2.[0-5] | solaris2.[0-5].*) ;;
13112 *)
13113 # The compiler driver will combine and reorder linker options,
13114 # but understands '-z linker_flag'. GCC discards it without '$wl',
13115 # but is careful enough not to reorder.
13116 # Supported since Solaris 2.6 (maybe 2.5.1?)
13117 if test yes = "$GCC"; then
13118 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13119 else
13120 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13121 fi
13122 ;;
13123 esac
13124 link_all_deplibs=yes
13125 ;;
13126
13127 sunos4*)
13128 if test sequent = "$host_vendor"; then
13129 # Use $CC to link under sequent, because it throws in some extra .o
13130 # files that make .init and .fini sections work.
13131 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13132 else
13133 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13134 fi
13135 hardcode_libdir_flag_spec='-L$libdir'
13136 hardcode_direct=yes
13137 hardcode_minus_L=yes
13138 hardcode_shlibpath_var=no
13139 ;;
13140
13141 sysv4)
13142 case $host_vendor in
13143 sni)
13144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13145 hardcode_direct=yes # is this really true???
13146 ;;
13147 siemens)
13148 ## LD is ld it makes a PLAMLIB
13149 ## CC just makes a GrossModule.
13150 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13151 reload_cmds='$CC -r -o $output$reload_objs'
13152 hardcode_direct=no
13153 ;;
13154 motorola)
13155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13156 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13157 ;;
13158 esac
13159 runpath_var='LD_RUN_PATH'
13160 hardcode_shlibpath_var=no
13161 ;;
13162
13163 sysv4.3*)
13164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13165 hardcode_shlibpath_var=no
13166 export_dynamic_flag_spec='-Bexport'
13167 ;;
13168
13169 sysv4*MP*)
13170 if test -d /usr/nec; then
13171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13172 hardcode_shlibpath_var=no
13173 runpath_var=LD_RUN_PATH
13174 hardcode_runpath_var=yes
13175 ld_shlibs=yes
13176 fi
13177 ;;
13178
13179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13180 no_undefined_flag='$wl-z,text'
13181 archive_cmds_need_lc=no
13182 hardcode_shlibpath_var=no
13183 runpath_var='LD_RUN_PATH'
13184
13185 if test yes = "$GCC"; then
13186 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13187 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13188 else
13189 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13190 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13191 fi
13192 ;;
13193
13194 sysv5* | sco3.2v5* | sco5v6*)
13195 # Note: We CANNOT use -z defs as we might desire, because we do not
13196 # link with -lc, and that would cause any symbols used from libc to
13197 # always be unresolved, which means just about no library would
13198 # ever link correctly. If we're not using GNU ld we use -z text
13199 # though, which does catch some bad symbols but isn't as heavy-handed
13200 # as -z defs.
13201 no_undefined_flag='$wl-z,text'
13202 allow_undefined_flag='$wl-z,nodefs'
13203 archive_cmds_need_lc=no
13204 hardcode_shlibpath_var=no
13205 hardcode_libdir_flag_spec='$wl-R,$libdir'
13206 hardcode_libdir_separator=':'
13207 link_all_deplibs=yes
13208 export_dynamic_flag_spec='$wl-Bexport'
13209 runpath_var='LD_RUN_PATH'
13210
13211 if test yes = "$GCC"; then
13212 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13213 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13214 else
13215 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13216 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13217 fi
13218 ;;
13219
13220 uts4*)
13221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13222 hardcode_libdir_flag_spec='-L$libdir'
13223 hardcode_shlibpath_var=no
13224 ;;
13225
13226 *)
13227 ld_shlibs=no
13228 ;;
13229 esac
13230
13231 if test sni = "$host_vendor"; then
13232 case $host in
13233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13234 export_dynamic_flag_spec='$wl-Blargedynsym'
13235 ;;
13236 esac
13237 fi
13238 fi
13239
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13241 printf "%s\n" "$ld_shlibs" >&6; }
13242 test no = "$ld_shlibs" && can_build_shared=no
13243
13244 with_gnu_ld=$with_gnu_ld
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260 #
13261 # Do we need to explicitly link libc?
13262 #
13263 case "x$archive_cmds_need_lc" in
13264 x|xyes)
13265 # Assume -lc should be added
13266 archive_cmds_need_lc=yes
13267
13268 if test yes,yes = "$GCC,$enable_shared"; then
13269 case $archive_cmds in
13270 *'~'*)
13271 # FIXME: we may have to deal with multi-command sequences.
13272 ;;
13273 '$CC '*)
13274 # Test whether the compiler implicitly links with -lc since on some
13275 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13276 # to ld, don't add -lc before -lgcc.
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13278 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13279 if test ${lt_cv_archive_cmds_need_lc+y}
13280 then :
13281 printf %s "(cached) " >&6
13282 else case e in #(
13283 e) $RM conftest*
13284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13285
13286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13287 (eval $ac_compile) 2>&5
13288 ac_status=$?
13289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; } 2>conftest.err; then
13291 soname=conftest
13292 lib=conftest
13293 libobjs=conftest.$ac_objext
13294 deplibs=
13295 wl=$lt_prog_compiler_wl
13296 pic_flag=$lt_prog_compiler_pic
13297 compiler_flags=-v
13298 linker_flags=-v
13299 verstring=
13300 output_objdir=.
13301 libname=conftest
13302 lt_save_allow_undefined_flag=$allow_undefined_flag
13303 allow_undefined_flag=
13304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13305 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13306 ac_status=$?
13307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13308 test $ac_status = 0; }
13309 then
13310 lt_cv_archive_cmds_need_lc=no
13311 else
13312 lt_cv_archive_cmds_need_lc=yes
13313 fi
13314 allow_undefined_flag=$lt_save_allow_undefined_flag
13315 else
13316 cat conftest.err 1>&5
13317 fi
13318 $RM conftest*
13319 ;;
13320 esac
13321 fi
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13323 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13324 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13325 ;;
13326 esac
13327 fi
13328 ;;
13329 esac
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13483 printf %s "checking dynamic linker characteristics... " >&6; }
13484
13485 if test yes = "$GCC"; then
13486 case $host_os in
13487 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13488 *) lt_awk_arg='/^libraries:/' ;;
13489 esac
13490 case $host_os in
13491 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13492 *) lt_sed_strip_eq='s|=/|/|g' ;;
13493 esac
13494 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13495 case $lt_search_path_spec in
13496 *\;*)
13497 # if the path contains ";" then we assume it to be the separator
13498 # otherwise default to the standard path separator (i.e. ":") - it is
13499 # assumed that no part of a normal pathname contains ";" but that should
13500 # okay in the real world where ";" in dirpaths is itself problematic.
13501 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13502 ;;
13503 *)
13504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13505 ;;
13506 esac
13507 # Ok, now we have the path, separated by spaces, we can step through it
13508 # and add multilib dir if necessary...
13509 lt_tmp_lt_search_path_spec=
13510 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13511 # ...but if some path component already ends with the multilib dir we assume
13512 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13513 case "$lt_multi_os_dir; $lt_search_path_spec " in
13514 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13515 lt_multi_os_dir=
13516 ;;
13517 esac
13518 for lt_sys_path in $lt_search_path_spec; do
13519 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13520 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13521 elif test -n "$lt_multi_os_dir"; then
13522 test -d "$lt_sys_path" && \
13523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13524 fi
13525 done
13526 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13527 BEGIN {RS = " "; FS = "/|\n";} {
13528 lt_foo = "";
13529 lt_count = 0;
13530 for (lt_i = NF; lt_i > 0; lt_i--) {
13531 if ($lt_i != "" && $lt_i != ".") {
13532 if ($lt_i == "..") {
13533 lt_count++;
13534 } else {
13535 if (lt_count == 0) {
13536 lt_foo = "/" $lt_i lt_foo;
13537 } else {
13538 lt_count--;
13539 }
13540 }
13541 }
13542 }
13543 if (lt_foo != "") { lt_freq[lt_foo]++; }
13544 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13545 }'`
13546 # AWK program above erroneously prepends '/' to C:/dos/paths
13547 # for these hosts.
13548 case $host_os in
13549 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13550 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13551 esac
13552 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13553 else
13554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13555 fi
13556 library_names_spec=
13557 libname_spec='lib$name'
13558 soname_spec=
13559 shrext_cmds=.so
13560 postinstall_cmds=
13561 postuninstall_cmds=
13562 finish_cmds=
13563 finish_eval=
13564 shlibpath_var=
13565 shlibpath_overrides_runpath=unknown
13566 version_type=none
13567 dynamic_linker="$host_os ld.so"
13568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13569 need_lib_prefix=unknown
13570 hardcode_into_libs=no
13571
13572 # when you set need_version to no, make sure it does not cause -set_version
13573 # flags to be left without arguments
13574 need_version=unknown
13575
13576
13577
13578 case $host_os in
13579 aix3*)
13580 version_type=linux # correct to gnu/linux during the next big refactor
13581 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13582 shlibpath_var=LIBPATH
13583
13584 # AIX 3 has no versioning support, so we append a major version to the name.
13585 soname_spec='$libname$release$shared_ext$major'
13586 ;;
13587
13588 aix[4-9]*)
13589 version_type=linux # correct to gnu/linux during the next big refactor
13590 need_lib_prefix=no
13591 need_version=no
13592 hardcode_into_libs=yes
13593 if test ia64 = "$host_cpu"; then
13594 # AIX 5 supports IA64
13595 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13596 shlibpath_var=LD_LIBRARY_PATH
13597 else
13598 # With GCC up to 2.95.x, collect2 would create an import file
13599 # for dependence libraries. The import file would start with
13600 # the line '#! .'. This would cause the generated library to
13601 # depend on '.', always an invalid library. This was fixed in
13602 # development snapshots of GCC prior to 3.0.
13603 case $host_os in
13604 aix4 | aix4.[01] | aix4.[01].*)
13605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13606 echo ' yes '
13607 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13608 :
13609 else
13610 can_build_shared=no
13611 fi
13612 ;;
13613 esac
13614 # Using Import Files as archive members, it is possible to support
13615 # filename-based versioning of shared library archives on AIX. While
13616 # this would work for both with and without runtime linking, it will
13617 # prevent static linking of such archives. So we do filename-based
13618 # shared library versioning with .so extension only, which is used
13619 # when both runtime linking and shared linking is enabled.
13620 # Unfortunately, runtime linking may impact performance, so we do
13621 # not want this to be the default eventually. Also, we use the
13622 # versioned .so libs for executables only if there is the -brtl
13623 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13624 # To allow for filename-based versioning support, we need to create
13625 # libNAME.so.V as an archive file, containing:
13626 # *) an Import File, referring to the versioned filename of the
13627 # archive as well as the shared archive member, telling the
13628 # bitwidth (32 or 64) of that shared object, and providing the
13629 # list of exported symbols of that shared object, eventually
13630 # decorated with the 'weak' keyword
13631 # *) the shared object with the F_LOADONLY flag set, to really avoid
13632 # it being seen by the linker.
13633 # At run time we better use the real file rather than another symlink,
13634 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13635
13636 case $with_aix_soname,$aix_use_runtimelinking in
13637 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13638 # soname into executable. Probably we can add versioning support to
13639 # collect2, so additional links can be useful in future.
13640 aix,yes) # traditional libtool
13641 dynamic_linker='AIX unversionable lib.so'
13642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13643 # instead of lib<name>.a to let people know that these are not
13644 # typical AIX shared libraries.
13645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13646 ;;
13647 aix,no) # traditional AIX only
13648 dynamic_linker='AIX lib.a(lib.so.V)'
13649 # We preserve .a as extension for shared libraries through AIX4.2
13650 # and later when we are not doing run time linking.
13651 library_names_spec='$libname$release.a $libname.a'
13652 soname_spec='$libname$release$shared_ext$major'
13653 ;;
13654 svr4,*) # full svr4 only
13655 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13656 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13657 # We do not specify a path in Import Files, so LIBPATH fires.
13658 shlibpath_overrides_runpath=yes
13659 ;;
13660 *,yes) # both, prefer svr4
13661 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13662 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13663 # unpreferred sharedlib libNAME.a needs extra handling
13664 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13665 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13666 # We do not specify a path in Import Files, so LIBPATH fires.
13667 shlibpath_overrides_runpath=yes
13668 ;;
13669 *,no) # both, prefer aix
13670 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13671 library_names_spec='$libname$release.a $libname.a'
13672 soname_spec='$libname$release$shared_ext$major'
13673 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13674 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13675 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13676 ;;
13677 esac
13678 shlibpath_var=LIBPATH
13679 fi
13680 ;;
13681
13682 amigaos*)
13683 case $host_cpu in
13684 powerpc)
13685 # Since July 2007 AmigaOS4 officially supports .so libraries.
13686 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 ;;
13689 m68k)
13690 library_names_spec='$libname.ixlibrary $libname.a'
13691 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13692 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13693 ;;
13694 esac
13695 ;;
13696
13697 beos*)
13698 library_names_spec='$libname$shared_ext'
13699 dynamic_linker="$host_os ld.so"
13700 shlibpath_var=LIBRARY_PATH
13701 ;;
13702
13703 bsdi[45]*)
13704 version_type=linux # correct to gnu/linux during the next big refactor
13705 need_version=no
13706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13707 soname_spec='$libname$release$shared_ext$major'
13708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13709 shlibpath_var=LD_LIBRARY_PATH
13710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13712 # the default ld.so.conf also contains /usr/contrib/lib and
13713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13714 # libtool to hard-code these into programs
13715 ;;
13716
13717 cygwin* | mingw* | windows* | pw32* | cegcc*)
13718 version_type=windows
13719 shrext_cmds=.dll
13720 need_version=no
13721 need_lib_prefix=no
13722
13723 case $GCC,$cc_basename in
13724 yes,*)
13725 # gcc
13726 library_names_spec='$libname.dll.a'
13727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13728 # If user builds GCC with multilib enabled,
13729 # it should just install on $(libdir)
13730 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13731 if test xyes = x"$multilib"; then
13732 postinstall_cmds='base_file=`basename \$file`~
13733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13734 dldir=$destdir/`dirname \$dlpath`~
13735 $install_prog $dir/$dlname $destdir/$dlname~
13736 chmod a+x $destdir/$dlname~
13737 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13738 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13739 fi'
13740 else
13741 postinstall_cmds='base_file=`basename \$file`~
13742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13743 dldir=$destdir/`dirname \$dlpath`~
13744 test -d \$dldir || mkdir -p \$dldir~
13745 $install_prog $dir/$dlname \$dldir/$dlname~
13746 chmod a+x \$dldir/$dlname~
13747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13749 fi'
13750 fi
13751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13752 dlpath=$dir/\$dldll~
13753 $RM \$dlpath'
13754 shlibpath_overrides_runpath=yes
13755
13756 case $host_os in
13757 cygwin*)
13758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13759 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13760
13761 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13762 ;;
13763 mingw* | windows* | cegcc*)
13764 # MinGW DLLs use traditional 'lib' prefix
13765 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13766 ;;
13767 pw32*)
13768 # pw32 DLLs use 'pw' prefix rather than 'lib'
13769 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13770 ;;
13771 esac
13772 dynamic_linker='Win32 ld.exe'
13773 ;;
13774
13775 *,cl* | *,icl*)
13776 # Native MSVC or ICC
13777 libname_spec='$name'
13778 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13779 library_names_spec='$libname.dll.lib'
13780
13781 case $build_os in
13782 mingw* | windows*)
13783 sys_lib_search_path_spec=
13784 lt_save_ifs=$IFS
13785 IFS=';'
13786 for lt_path in $LIB
13787 do
13788 IFS=$lt_save_ifs
13789 # Let DOS variable expansion print the short 8.3 style file name.
13790 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13791 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13792 done
13793 IFS=$lt_save_ifs
13794 # Convert to MSYS style.
13795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13796 ;;
13797 cygwin*)
13798 # Convert to unix form, then to dos form, then back to unix form
13799 # but this time dos style (no spaces!) so that the unix form looks
13800 # like /cygdrive/c/PROGRA~1:/cygdr...
13801 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13802 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13803 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13804 ;;
13805 *)
13806 sys_lib_search_path_spec=$LIB
13807 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13808 # It is most probably a Windows format PATH.
13809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13810 else
13811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13812 fi
13813 # FIXME: find the short name or the path components, as spaces are
13814 # common. (e.g. "Program Files" -> "PROGRA~1")
13815 ;;
13816 esac
13817
13818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13819 postinstall_cmds='base_file=`basename \$file`~
13820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13821 dldir=$destdir/`dirname \$dlpath`~
13822 test -d \$dldir || mkdir -p \$dldir~
13823 $install_prog $dir/$dlname \$dldir/$dlname'
13824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13825 dlpath=$dir/\$dldll~
13826 $RM \$dlpath'
13827 shlibpath_overrides_runpath=yes
13828 dynamic_linker='Win32 link.exe'
13829 ;;
13830
13831 *)
13832 # Assume MSVC and ICC wrapper
13833 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13834 dynamic_linker='Win32 ld.exe'
13835 ;;
13836 esac
13837 # FIXME: first we should search . and the directory the executable is in
13838 shlibpath_var=PATH
13839 ;;
13840
13841 darwin* | rhapsody*)
13842 dynamic_linker="$host_os dyld"
13843 version_type=darwin
13844 need_lib_prefix=no
13845 need_version=no
13846 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13847 soname_spec='$libname$release$major$shared_ext'
13848 shlibpath_overrides_runpath=yes
13849 shlibpath_var=DYLD_LIBRARY_PATH
13850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13851
13852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13854 ;;
13855
13856 dgux*)
13857 version_type=linux # correct to gnu/linux during the next big refactor
13858 need_lib_prefix=no
13859 need_version=no
13860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13861 soname_spec='$libname$release$shared_ext$major'
13862 shlibpath_var=LD_LIBRARY_PATH
13863 ;;
13864
13865 freebsd* | dragonfly* | midnightbsd*)
13866 # DragonFly does not have aout. When/if they implement a new
13867 # versioning mechanism, adjust this.
13868 if test -x /usr/bin/objformat; then
13869 objformat=`/usr/bin/objformat`
13870 else
13871 case $host_os in
13872 freebsd[23].*) objformat=aout ;;
13873 *) objformat=elf ;;
13874 esac
13875 fi
13876 version_type=freebsd-$objformat
13877 case $version_type in
13878 freebsd-elf*)
13879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13880 soname_spec='$libname$release$shared_ext$major'
13881 need_version=no
13882 need_lib_prefix=no
13883 ;;
13884 freebsd-*)
13885 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13886 need_version=yes
13887 ;;
13888 esac
13889 case $host_cpu in
13890 powerpc64)
13891 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13892 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 int test_pointer_size[sizeof (void *) - 5];
13896
13897 _ACEOF
13898 if ac_fn_c_try_compile "$LINENO"
13899 then :
13900 shlibpath_var=LD_LIBRARY_PATH
13901 else case e in #(
13902 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13903 esac
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13906 ;;
13907 *)
13908 shlibpath_var=LD_LIBRARY_PATH
13909 ;;
13910 esac
13911 case $host_os in
13912 freebsd2.*)
13913 shlibpath_overrides_runpath=yes
13914 ;;
13915 freebsd3.[01]* | freebsdelf3.[01]*)
13916 shlibpath_overrides_runpath=yes
13917 hardcode_into_libs=yes
13918 ;;
13919 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13920 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13921 shlibpath_overrides_runpath=no
13922 hardcode_into_libs=yes
13923 ;;
13924 *) # from 4.6 on, and DragonFly
13925 shlibpath_overrides_runpath=yes
13926 hardcode_into_libs=yes
13927 ;;
13928 esac
13929 ;;
13930
13931 haiku*)
13932 version_type=linux # correct to gnu/linux during the next big refactor
13933 need_lib_prefix=no
13934 need_version=no
13935 dynamic_linker="$host_os runtime_loader"
13936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13937 soname_spec='$libname$release$shared_ext$major'
13938 shlibpath_var=LIBRARY_PATH
13939 shlibpath_overrides_runpath=no
13940 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13941 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13942 hardcode_into_libs=no
13943 ;;
13944
13945 hpux9* | hpux10* | hpux11*)
13946 # Give a soname corresponding to the major version so that dld.sl refuses to
13947 # link against other versions.
13948 version_type=sunos
13949 need_lib_prefix=no
13950 need_version=no
13951 case $host_cpu in
13952 ia64*)
13953 shrext_cmds='.so'
13954 hardcode_into_libs=yes
13955 dynamic_linker="$host_os dld.so"
13956 shlibpath_var=LD_LIBRARY_PATH
13957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13959 soname_spec='$libname$release$shared_ext$major'
13960 if test 32 = "$HPUX_IA64_MODE"; then
13961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13962 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13963 else
13964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13965 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13966 fi
13967 ;;
13968 hppa*64*)
13969 shrext_cmds='.sl'
13970 hardcode_into_libs=yes
13971 dynamic_linker="$host_os dld.sl"
13972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13975 soname_spec='$libname$release$shared_ext$major'
13976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13978 ;;
13979 *)
13980 shrext_cmds='.sl'
13981 dynamic_linker="$host_os dld.sl"
13982 shlibpath_var=SHLIB_PATH
13983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13985 soname_spec='$libname$release$shared_ext$major'
13986 ;;
13987 esac
13988 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13989 postinstall_cmds='chmod 555 $lib'
13990 # or fails outright, so override atomically:
13991 install_override_mode=555
13992 ;;
13993
13994 interix[3-9]*)
13995 version_type=linux # correct to gnu/linux during the next big refactor
13996 need_lib_prefix=no
13997 need_version=no
13998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13999 soname_spec='$libname$release$shared_ext$major'
14000 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=no
14003 hardcode_into_libs=yes
14004 ;;
14005
14006 irix5* | irix6* | nonstopux*)
14007 case $host_os in
14008 nonstopux*) version_type=nonstopux ;;
14009 *)
14010 if test yes = "$lt_cv_prog_gnu_ld"; then
14011 version_type=linux # correct to gnu/linux during the next big refactor
14012 else
14013 version_type=irix
14014 fi ;;
14015 esac
14016 need_lib_prefix=no
14017 need_version=no
14018 soname_spec='$libname$release$shared_ext$major'
14019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14020 case $host_os in
14021 irix5* | nonstopux*)
14022 libsuff= shlibsuff=
14023 ;;
14024 *)
14025 case $LD in # libtool.m4 will add one of these switches to LD
14026 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14027 libsuff= shlibsuff= libmagic=32-bit;;
14028 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14029 libsuff=32 shlibsuff=N32 libmagic=N32;;
14030 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14031 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14032 *) libsuff= shlibsuff= libmagic=never-match;;
14033 esac
14034 ;;
14035 esac
14036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14037 shlibpath_overrides_runpath=no
14038 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14039 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14040 hardcode_into_libs=yes
14041 ;;
14042
14043 # No shared lib support for Linux oldld, aout, or coff.
14044 linux*oldld* | linux*aout* | linux*coff*)
14045 dynamic_linker=no
14046 ;;
14047
14048 linux*android*)
14049 version_type=none # Android doesn't support versioned libraries.
14050 need_lib_prefix=no
14051 need_version=no
14052 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14053 soname_spec='$libname$release$shared_ext'
14054 finish_cmds=
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14057
14058 # This implies no fast_install, which is unacceptable.
14059 # Some rework will be needed to allow for fast_install
14060 # before this can be enabled.
14061 hardcode_into_libs=yes
14062
14063 dynamic_linker='Android linker'
14064 # -rpath works at least for libraries that are not overridden by
14065 # libraries installed in system locations.
14066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14067 ;;
14068
14069 # This must be glibc/ELF.
14070 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14071 version_type=linux # correct to gnu/linux during the next big refactor
14072 need_lib_prefix=no
14073 need_version=no
14074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14075 soname_spec='$libname$release$shared_ext$major'
14076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=no
14079
14080 # Some binutils ld are patched to set DT_RUNPATH
14081 if test ${lt_cv_shlibpath_overrides_runpath+y}
14082 then :
14083 printf %s "(cached) " >&6
14084 else case e in #(
14085 e) lt_cv_shlibpath_overrides_runpath=no
14086 save_LDFLAGS=$LDFLAGS
14087 save_libdir=$libdir
14088 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14089 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092
14093 int
14094 main (void)
14095 {
14096
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_c_try_link "$LINENO"
14102 then :
14103 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14104 then :
14105 lt_cv_shlibpath_overrides_runpath=yes
14106 fi
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LDFLAGS=$save_LDFLAGS
14111 libdir=$save_libdir
14112 ;;
14113 esac
14114 fi
14115
14116 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14117
14118 # This implies no fast_install, which is unacceptable.
14119 # Some rework will be needed to allow for fast_install
14120 # before this can be enabled.
14121 hardcode_into_libs=yes
14122
14123 # Ideally, we could use ldconfig to report *all* directories which are
14124 # searched for libraries, however this is still not possible. Aside from not
14125 # being certain /sbin/ldconfig is available, command
14126 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14127 # even though it is searched at run-time. Try to do the best guess by
14128 # appending ld.so.conf contents (and includes) to the search path.
14129 if test -f /etc/ld.so.conf; then
14130 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14131 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14132 fi
14133
14134 # We used to test for /lib/ld.so.1 and disable shared libraries on
14135 # powerpc, because MkLinux only supported shared libraries with the
14136 # GNU dynamic linker. Since this was broken with cross compilers,
14137 # most powerpc-linux boxes support dynamic linking these days and
14138 # people can always --disable-shared, the test was removed, and we
14139 # assume the GNU/Linux dynamic linker is in use.
14140 dynamic_linker='GNU/Linux ld.so'
14141 ;;
14142
14143 netbsdelf*-gnu)
14144 version_type=linux
14145 need_lib_prefix=no
14146 need_version=no
14147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14148 soname_spec='$libname$release$shared_ext$major'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 shlibpath_overrides_runpath=no
14151 hardcode_into_libs=yes
14152 dynamic_linker='NetBSD ld.elf_so'
14153 ;;
14154
14155 netbsd*)
14156 version_type=sunos
14157 need_lib_prefix=no
14158 need_version=no
14159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14160 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14162 dynamic_linker='NetBSD (a.out) ld.so'
14163 else
14164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14165 soname_spec='$libname$release$shared_ext$major'
14166 dynamic_linker='NetBSD ld.elf_so'
14167 fi
14168 shlibpath_var=LD_LIBRARY_PATH
14169 shlibpath_overrides_runpath=yes
14170 hardcode_into_libs=yes
14171 ;;
14172
14173 *-mlibc)
14174 version_type=linux # correct to gnu/linux during the next big refactor
14175 need_lib_prefix=no
14176 need_version=no
14177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14178 soname_spec='$libname$release$shared_ext$major'
14179 dynamic_linker='mlibc ld.so'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=no
14182 hardcode_into_libs=yes
14183 ;;
14184
14185 newsos6)
14186 version_type=linux # correct to gnu/linux during the next big refactor
14187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 shlibpath_overrides_runpath=yes
14190 ;;
14191
14192 *nto* | *qnx*)
14193 version_type=qnx
14194 need_lib_prefix=no
14195 need_version=no
14196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14197 soname_spec='$libname$release$shared_ext$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=no
14200 hardcode_into_libs=yes
14201 dynamic_linker='ldqnx.so'
14202 ;;
14203
14204 openbsd*)
14205 version_type=sunos
14206 sys_lib_dlsearch_path_spec=/usr/lib
14207 need_lib_prefix=no
14208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14209 need_version=no
14210 else
14211 need_version=yes
14212 fi
14213 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 shlibpath_overrides_runpath=yes
14217 ;;
14218
14219 os2*)
14220 libname_spec='$name'
14221 version_type=windows
14222 shrext_cmds=.dll
14223 need_version=no
14224 need_lib_prefix=no
14225 # OS/2 can only load a DLL with a base name of 8 characters or less.
14226 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14227 v=$($ECHO $release$versuffix | tr -d .-);
14228 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14229 $ECHO $n$v`$shared_ext'
14230 library_names_spec='${libname}_dll.$libext'
14231 dynamic_linker='OS/2 ld.exe'
14232 shlibpath_var=BEGINLIBPATH
14233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14235 postinstall_cmds='base_file=`basename \$file`~
14236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14237 dldir=$destdir/`dirname \$dlpath`~
14238 test -d \$dldir || mkdir -p \$dldir~
14239 $install_prog $dir/$dlname \$dldir/$dlname~
14240 chmod a+x \$dldir/$dlname~
14241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14243 fi'
14244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14245 dlpath=$dir/\$dldll~
14246 $RM \$dlpath'
14247 ;;
14248
14249 osf3* | osf4* | osf5*)
14250 version_type=osf
14251 need_lib_prefix=no
14252 need_version=no
14253 soname_spec='$libname$release$shared_ext$major'
14254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14255 shlibpath_var=LD_LIBRARY_PATH
14256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14258 ;;
14259
14260 rdos*)
14261 dynamic_linker=no
14262 ;;
14263
14264 serenity*)
14265 version_type=linux # correct to gnu/linux during the next big refactor
14266 need_lib_prefix=no
14267 need_version=no
14268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14269 soname_spec='$libname$release$shared_ext$major'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 shlibpath_overrides_runpath=no
14272 dynamic_linker='SerenityOS LibELF'
14273 ;;
14274
14275 solaris*)
14276 version_type=linux # correct to gnu/linux during the next big refactor
14277 need_lib_prefix=no
14278 need_version=no
14279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14280 soname_spec='$libname$release$shared_ext$major'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14283 hardcode_into_libs=yes
14284 # ldd complains unless libraries are executable
14285 postinstall_cmds='chmod +x $lib'
14286 ;;
14287
14288 sunos4*)
14289 version_type=sunos
14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 shlibpath_overrides_runpath=yes
14294 if test yes = "$with_gnu_ld"; then
14295 need_lib_prefix=no
14296 fi
14297 need_version=yes
14298 ;;
14299
14300 sysv4 | sysv4.3*)
14301 version_type=linux # correct to gnu/linux during the next big refactor
14302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14303 soname_spec='$libname$release$shared_ext$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 case $host_vendor in
14306 sni)
14307 shlibpath_overrides_runpath=no
14308 need_lib_prefix=no
14309 runpath_var=LD_RUN_PATH
14310 ;;
14311 siemens)
14312 need_lib_prefix=no
14313 ;;
14314 motorola)
14315 need_lib_prefix=no
14316 need_version=no
14317 shlibpath_overrides_runpath=no
14318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14319 ;;
14320 esac
14321 ;;
14322
14323 sysv4*MP*)
14324 if test -d /usr/nec; then
14325 version_type=linux # correct to gnu/linux during the next big refactor
14326 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14327 soname_spec='$libname$shared_ext.$major'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 fi
14330 ;;
14331
14332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14333 version_type=sco
14334 need_lib_prefix=no
14335 need_version=no
14336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14337 soname_spec='$libname$release$shared_ext$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes
14340 hardcode_into_libs=yes
14341 if test yes = "$with_gnu_ld"; then
14342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14343 else
14344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14345 case $host_os in
14346 sco3.2v5*)
14347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14348 ;;
14349 esac
14350 fi
14351 sys_lib_dlsearch_path_spec='/usr/lib'
14352 ;;
14353
14354 tpf*)
14355 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14356 version_type=linux # correct to gnu/linux during the next big refactor
14357 need_lib_prefix=no
14358 need_version=no
14359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 shlibpath_overrides_runpath=no
14362 hardcode_into_libs=yes
14363 ;;
14364
14365 uts4*)
14366 version_type=linux # correct to gnu/linux during the next big refactor
14367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14368 soname_spec='$libname$release$shared_ext$major'
14369 shlibpath_var=LD_LIBRARY_PATH
14370 ;;
14371
14372 emscripten*)
14373 version_type=none
14374 need_lib_prefix=no
14375 need_version=no
14376 library_names_spec='$libname$release$shared_ext'
14377 soname_spec='$libname$release$shared_ext'
14378 finish_cmds=
14379 dynamic_linker="Emscripten linker"
14380 lt_prog_compiler_wl=
14381 lt_prog_compiler_pic=
14382 lt_prog_compiler_static=
14383
14384
14385 if test yes = "$GCC"; then
14386 lt_prog_compiler_wl='-Wl,'
14387 lt_prog_compiler_static='-static'
14388
14389 case $host_os in
14390 aix*)
14391 # All AIX code is PIC.
14392 if test ia64 = "$host_cpu"; then
14393 # AIX 5 now supports IA64 processor
14394 lt_prog_compiler_static='-Bstatic'
14395 fi
14396 lt_prog_compiler_pic='-fPIC'
14397 ;;
14398
14399 amigaos*)
14400 case $host_cpu in
14401 powerpc)
14402 # see comment about AmigaOS4 .so support
14403 lt_prog_compiler_pic='-fPIC'
14404 ;;
14405 m68k)
14406 # FIXME: we need at least 68020 code to build shared libraries, but
14407 # adding the '-m68020' flag to GCC prevents building anything better,
14408 # like '-m68040'.
14409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14410 ;;
14411 esac
14412 ;;
14413
14414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14415 # PIC is the default for these OSes.
14416 ;;
14417
14418 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14419 # This hack is so that the source file can tell whether it is being
14420 # built for inclusion in a dll (and should export symbols for example).
14421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14422 # (--disable-auto-import) libraries
14423 lt_prog_compiler_pic='-DDLL_EXPORT'
14424 case $host_os in
14425 os2*)
14426 lt_prog_compiler_static='$wl-static'
14427 ;;
14428 esac
14429 ;;
14430
14431 darwin* | rhapsody*)
14432 # PIC is the default on this platform
14433 # Common symbols not allowed in MH_DYLIB files
14434 lt_prog_compiler_pic='-fno-common'
14435 ;;
14436
14437 haiku*)
14438 # PIC is the default for Haiku.
14439 # The "-static" flag exists, but is broken.
14440 lt_prog_compiler_static=
14441 ;;
14442
14443 hpux*)
14444 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14445 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14446 # sets the default TLS model and affects inlining.
14447 case $host_cpu in
14448 hppa*64*)
14449 # +Z the default
14450 ;;
14451 *)
14452 lt_prog_compiler_pic='-fPIC'
14453 ;;
14454 esac
14455 ;;
14456
14457 interix[3-9]*)
14458 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14459 # Instead, we relocate shared libraries at runtime.
14460 ;;
14461
14462 msdosdjgpp*)
14463 # Just because we use GCC doesn't mean we suddenly get shared libraries
14464 # on systems that don't support them.
14465 lt_prog_compiler_can_build_shared=no
14466 enable_shared=no
14467 ;;
14468
14469 *nto* | *qnx*)
14470 # QNX uses GNU C++, but need to define -shared option too, otherwise
14471 # it will coredump.
14472 lt_prog_compiler_pic='-fPIC -shared'
14473 ;;
14474
14475 sysv4*MP*)
14476 if test -d /usr/nec; then
14477 lt_prog_compiler_pic=-Kconform_pic
14478 fi
14479 ;;
14480
14481 *)
14482 lt_prog_compiler_pic='-fPIC'
14483 ;;
14484 esac
14485
14486 case $cc_basename in
14487 nvcc*) # Cuda Compiler Driver 2.2
14488 lt_prog_compiler_wl='-Xlinker '
14489 if test -n "$lt_prog_compiler_pic"; then
14490 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14491 fi
14492 ;;
14493 esac
14494 else
14495 # PORTME Check for flag to pass linker flags through the system compiler.
14496 case $host_os in
14497 aix*)
14498 lt_prog_compiler_wl='-Wl,'
14499 if test ia64 = "$host_cpu"; then
14500 # AIX 5 now supports IA64 processor
14501 lt_prog_compiler_static='-Bstatic'
14502 else
14503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14504 fi
14505 ;;
14506
14507 darwin* | rhapsody*)
14508 # PIC is the default on this platform
14509 # Common symbols not allowed in MH_DYLIB files
14510 lt_prog_compiler_pic='-fno-common'
14511 case $cc_basename in
14512 nagfor*)
14513 # NAG Fortran compiler
14514 lt_prog_compiler_wl='-Wl,-Wl,,'
14515 lt_prog_compiler_pic='-PIC'
14516 lt_prog_compiler_static='-Bstatic'
14517 ;;
14518 esac
14519 ;;
14520
14521 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14522 # This hack is so that the source file can tell whether it is being
14523 # built for inclusion in a dll (and should export symbols for example).
14524 lt_prog_compiler_pic='-DDLL_EXPORT'
14525 case $host_os in
14526 os2*)
14527 lt_prog_compiler_static='$wl-static'
14528 ;;
14529 esac
14530 ;;
14531
14532 hpux9* | hpux10* | hpux11*)
14533 lt_prog_compiler_wl='-Wl,'
14534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14535 # not for PA HP-UX.
14536 case $host_cpu in
14537 hppa*64*|ia64*)
14538 # +Z the default
14539 ;;
14540 *)
14541 lt_prog_compiler_pic='+Z'
14542 ;;
14543 esac
14544 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14545 lt_prog_compiler_static='$wl-a ${wl}archive'
14546 ;;
14547
14548 irix5* | irix6* | nonstopux*)
14549 lt_prog_compiler_wl='-Wl,'
14550 # PIC (with -KPIC) is the default.
14551 lt_prog_compiler_static='-non_shared'
14552 ;;
14553
14554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14555 case $cc_basename in
14556 # old Intel for x86_64, which still supported -KPIC.
14557 ecc*)
14558 lt_prog_compiler_wl='-Wl,'
14559 lt_prog_compiler_pic='-KPIC'
14560 lt_prog_compiler_static='-static'
14561 ;;
14562 *flang* | ftn | f18* | f95*)
14563 # Flang compiler.
14564 lt_prog_compiler_wl='-Wl,'
14565 lt_prog_compiler_pic='-fPIC'
14566 lt_prog_compiler_static='-static'
14567 ;;
14568 # icc used to be incompatible with GCC.
14569 # ICC 10 doesn't accept -KPIC any more.
14570 icc* | ifort*)
14571 lt_prog_compiler_wl='-Wl,'
14572 lt_prog_compiler_pic='-fPIC'
14573 lt_prog_compiler_static='-static'
14574 ;;
14575 # Lahey Fortran 8.1.
14576 lf95*)
14577 lt_prog_compiler_wl='-Wl,'
14578 lt_prog_compiler_pic='--shared'
14579 lt_prog_compiler_static='--static'
14580 ;;
14581 nagfor*)
14582 # NAG Fortran compiler
14583 lt_prog_compiler_wl='-Wl,-Wl,,'
14584 lt_prog_compiler_pic='-PIC'
14585 lt_prog_compiler_static='-Bstatic'
14586 ;;
14587 tcc*)
14588 # Fabrice Bellard et al's Tiny C Compiler
14589 lt_prog_compiler_wl='-Wl,'
14590 lt_prog_compiler_pic='-fPIC'
14591 lt_prog_compiler_static='-static'
14592 ;;
14593 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14594 # Portland Group compilers (*not* the Pentium gcc compiler,
14595 # which looks to be a dead project)
14596 lt_prog_compiler_wl='-Wl,'
14597 lt_prog_compiler_pic='-fpic'
14598 lt_prog_compiler_static='-Bstatic'
14599 ;;
14600 ccc*)
14601 lt_prog_compiler_wl='-Wl,'
14602 # All Alpha code is PIC.
14603 lt_prog_compiler_static='-non_shared'
14604 ;;
14605 xl* | bgxl* | bgf* | mpixl*)
14606 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-qpic'
14609 lt_prog_compiler_static='-qstaticlink'
14610 ;;
14611 *)
14612 case `$CC -V 2>&1 | $SED 5q` in
14613 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14614 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14615 lt_prog_compiler_pic='-KPIC'
14616 lt_prog_compiler_static='-Bstatic'
14617 lt_prog_compiler_wl=''
14618 ;;
14619 *Sun\ F* | *Sun*Fortran*)
14620 lt_prog_compiler_pic='-KPIC'
14621 lt_prog_compiler_static='-Bstatic'
14622 lt_prog_compiler_wl='-Qoption ld '
14623 ;;
14624 *Sun\ C*)
14625 # Sun C 5.9
14626 lt_prog_compiler_pic='-KPIC'
14627 lt_prog_compiler_static='-Bstatic'
14628 lt_prog_compiler_wl='-Wl,'
14629 ;;
14630 *Intel*\ [CF]*Compiler*)
14631 lt_prog_compiler_wl='-Wl,'
14632 lt_prog_compiler_pic='-fPIC'
14633 lt_prog_compiler_static='-static'
14634 ;;
14635 *Portland\ Group*)
14636 lt_prog_compiler_wl='-Wl,'
14637 lt_prog_compiler_pic='-fpic'
14638 lt_prog_compiler_static='-Bstatic'
14639 ;;
14640 esac
14641 ;;
14642 esac
14643 ;;
14644
14645 newsos6)
14646 lt_prog_compiler_pic='-KPIC'
14647 lt_prog_compiler_static='-Bstatic'
14648 ;;
14649
14650 *-mlibc)
14651 lt_prog_compiler_wl='-Wl,'
14652 lt_prog_compiler_pic='-fPIC'
14653 lt_prog_compiler_static='-static'
14654 ;;
14655
14656 *nto* | *qnx*)
14657 # QNX uses GNU C++, but need to define -shared option too, otherwise
14658 # it will coredump.
14659 lt_prog_compiler_pic='-fPIC -shared'
14660 ;;
14661
14662 osf3* | osf4* | osf5*)
14663 lt_prog_compiler_wl='-Wl,'
14664 # All OSF/1 code is PIC.
14665 lt_prog_compiler_static='-non_shared'
14666 ;;
14667
14668 rdos*)
14669 lt_prog_compiler_static='-non_shared'
14670 ;;
14671
14672 serenity*)
14673 ;;
14674
14675 solaris*)
14676 lt_prog_compiler_pic='-KPIC'
14677 lt_prog_compiler_static='-Bstatic'
14678 case $cc_basename in
14679 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14680 lt_prog_compiler_wl='-Qoption ld ';;
14681 *)
14682 lt_prog_compiler_wl='-Wl,';;
14683 esac
14684 ;;
14685
14686 sunos4*)
14687 lt_prog_compiler_wl='-Qoption ld '
14688 lt_prog_compiler_pic='-PIC'
14689 lt_prog_compiler_static='-Bstatic'
14690 ;;
14691
14692 sysv4 | sysv4.2uw2* | sysv4.3*)
14693 lt_prog_compiler_wl='-Wl,'
14694 lt_prog_compiler_pic='-KPIC'
14695 lt_prog_compiler_static='-Bstatic'
14696 ;;
14697
14698 sysv4*MP*)
14699 if test -d /usr/nec; then
14700 lt_prog_compiler_pic='-Kconform_pic'
14701 lt_prog_compiler_static='-Bstatic'
14702 fi
14703 ;;
14704
14705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='-KPIC'
14708 lt_prog_compiler_static='-Bstatic'
14709 ;;
14710
14711 unicos*)
14712 lt_prog_compiler_wl='-Wl,'
14713 lt_prog_compiler_can_build_shared=no
14714 ;;
14715
14716 uts4*)
14717 lt_prog_compiler_pic='-pic'
14718 lt_prog_compiler_static='-Bstatic'
14719 ;;
14720
14721 *)
14722 lt_prog_compiler_can_build_shared=no
14723 ;;
14724 esac
14725 fi
14726
14727 case $host_os in
14728 # For platforms that do not support PIC, -DPIC is meaningless:
14729 *djgpp*)
14730 lt_prog_compiler_pic=
14731 ;;
14732 *)
14733 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14734 ;;
14735 esac
14736
14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14738 printf %s "checking for $compiler option to produce PIC... " >&6; }
14739 if test ${lt_cv_prog_compiler_pic+y}
14740 then :
14741 printf %s "(cached) " >&6
14742 else case e in #(
14743 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14744 esac
14745 fi
14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14747 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14748 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14749
14750 #
14751 # Check to make sure the PIC flag actually works.
14752 #
14753 if test -n "$lt_prog_compiler_pic"; then
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14755 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14756 if test ${lt_cv_prog_compiler_pic_works+y}
14757 then :
14758 printf %s "(cached) " >&6
14759 else case e in #(
14760 e) lt_cv_prog_compiler_pic_works=no
14761 ac_outfile=conftest.$ac_objext
14762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14763 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14764 # Insert the option either (1) after the last *FLAGS variable, or
14765 # (2) before a word containing "conftest.", or (3) at the end.
14766 # Note that $ac_compile itself does not contain backslashes and begins
14767 # with a dollar sign (not a hyphen), so the echo should work correctly.
14768 # The option is referenced via a variable to avoid confusing sed.
14769 lt_compile=`echo "$ac_compile" | $SED \
14770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14772 -e 's:$: $lt_compiler_flag:'`
14773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14774 (eval "$lt_compile" 2>conftest.err)
14775 ac_status=$?
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 if (exit $ac_status) && test -s "$ac_outfile"; then
14779 # The compiler can only warn and ignore the option if not recognized
14780 # So say no if there are warnings other than the usual output.
14781 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_pic_works=yes
14785 fi
14786 fi
14787 $RM conftest*
14788 ;;
14789 esac
14790 fi
14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14792 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14793
14794 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14795 case $lt_prog_compiler_pic in
14796 "" | " "*) ;;
14797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14798 esac
14799 else
14800 lt_prog_compiler_pic=
14801 lt_prog_compiler_can_build_shared=no
14802 fi
14803
14804 fi
14805
14806
14807
14808
14809
14810 #
14811 # Check to make sure the static flag actually works.
14812 #
14813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14815 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14816 if test ${lt_cv_prog_compiler_static_works+y}
14817 then :
14818 printf %s "(cached) " >&6
14819 else case e in #(
14820 e) lt_cv_prog_compiler_static_works=no
14821 save_LDFLAGS=$LDFLAGS
14822 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14823 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14825 # The linker can only warn and ignore the option if not recognized
14826 # So say no if there are warnings
14827 if test -s conftest.err; then
14828 # Append any errors to the config.log.
14829 cat conftest.err 1>&5
14830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14832 if diff conftest.exp conftest.er2 >/dev/null; then
14833 lt_cv_prog_compiler_static_works=yes
14834 fi
14835 else
14836 lt_cv_prog_compiler_static_works=yes
14837 fi
14838 fi
14839 $RM -r conftest*
14840 LDFLAGS=$save_LDFLAGS
14841 ;;
14842 esac
14843 fi
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14845 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14846
14847 if test yes = "$lt_cv_prog_compiler_static_works"; then
14848 :
14849 else
14850 lt_prog_compiler_static=
14851 fi
14852
14853
14854
14855 ='-fPIC'
14856 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14857 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14858 archive_cmds_need_lc=no
14859 no_undefined_flag=
14860 ;;
14861
14862 *)
14863 dynamic_linker=no
14864 ;;
14865 esac
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14867 printf "%s\n" "$dynamic_linker" >&6; }
14868 test no = "$dynamic_linker" && can_build_shared=no
14869
14870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14871 if test yes = "$GCC"; then
14872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14873 fi
14874
14875 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14876 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14877 fi
14878
14879 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14880 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14881 fi
14882
14883 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14884 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14885
14886 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14887 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14888
14889 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14890 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14989 printf %s "checking how to hardcode library paths into programs... " >&6; }
14990 hardcode_action=
14991 if test -n "$hardcode_libdir_flag_spec" ||
14992 test -n "$runpath_var" ||
14993 test yes = "$hardcode_automatic"; then
14994
14995 # We can hardcode non-existent directories.
14996 if test no != "$hardcode_direct" &&
14997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14998 # have to relink, otherwise we might link with an installed library
14999 # when we should be linking with a yet-to-be-installed one
15000 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15001 test no != "$hardcode_minus_L"; then
15002 # Linking always hardcodes the temporary library directory.
15003 hardcode_action=relink
15004 else
15005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15006 hardcode_action=immediate
15007 fi
15008 else
15009 # We cannot hardcode anything, or else we can only hardcode existing
15010 # directories.
15011 hardcode_action=unsupported
15012 fi
15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15014 printf "%s\n" "$hardcode_action" >&6; }
15015
15016 if test relink = "$hardcode_action" ||
15017 test yes = "$inherit_rpath"; then
15018 # Fast installation is not supported
15019 enable_fast_install=no
15020 elif test yes = "$shlibpath_overrides_runpath" ||
15021 test no = "$enable_shared"; then
15022 # Fast installation is not necessary
15023 enable_fast_install=needless
15024 fi
15025
15026
15027
15028
15029
15030
15031 if test yes != "$enable_dlopen"; then
15032 enable_dlopen=unknown
15033 enable_dlopen_self=unknown
15034 enable_dlopen_self_static=unknown
15035 else
15036 lt_cv_dlopen=no
15037 lt_cv_dlopen_libs=
15038
15039 case $host_os in
15040 beos*)
15041 lt_cv_dlopen=load_add_on
15042 lt_cv_dlopen_libs=
15043 lt_cv_dlopen_self=yes
15044 ;;
15045
15046 mingw* | windows* | pw32* | cegcc*)
15047 lt_cv_dlopen=LoadLibrary
15048 lt_cv_dlopen_libs=
15049 ;;
15050
15051 cygwin*)
15052 lt_cv_dlopen=dlopen
15053 lt_cv_dlopen_libs=
15054 ;;
15055
15056 darwin*)
15057 # if libdl is installed we need to link against it
15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15059 printf %s "checking for dlopen in -ldl... " >&6; }
15060 if test ${ac_cv_lib_dl_dlopen+y}
15061 then :
15062 printf %s "(cached) " >&6
15063 else case e in #(
15064 e) ac_check_lib_save_LIBS=$LIBS
15065 LIBS="-ldl $LIBS"
15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068
15069 /* Override any GCC internal prototype to avoid an error.
15070 Use char because int might match the return type of a GCC
15071 builtin and then its argument prototype would still apply.
15072 The 'extern "C"' is for builds by C++ compilers;
15073 although this is not generally supported in C code supporting it here
15074 has little cost and some practical benefit (sr 110532). */
15075 #ifdef __cplusplus
15076 extern "C"
15077 #endif
15078 char dlopen (void);
15079 int
15080 main (void)
15081 {
15082 return dlopen ();
15083 ;
15084 return 0;
15085 }
15086 _ACEOF
15087 if ac_fn_c_try_link "$LINENO"
15088 then :
15089 ac_cv_lib_dl_dlopen=yes
15090 else case e in #(
15091 e) ac_cv_lib_dl_dlopen=no ;;
15092 esac
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15095 conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS ;;
15097 esac
15098 fi
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15100 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15101 if test "x$ac_cv_lib_dl_dlopen" = xyes
15102 then :
15103 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15104 else case e in #(
15105 e)
15106 lt_cv_dlopen=dyld
15107 lt_cv_dlopen_libs=
15108 lt_cv_dlopen_self=yes
15109 ;;
15110 esac
15111 fi
15112
15113 ;;
15114
15115 tpf*)
15116 # Don't try to run any link tests for TPF. We know it's impossible
15117 # because TPF is a cross-compiler, and we know how we open DSOs.
15118 lt_cv_dlopen=dlopen
15119 lt_cv_dlopen_libs=
15120 lt_cv_dlopen_self=no
15121 ;;
15122
15123 *)
15124 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15125 if test "x$ac_cv_func_shl_load" = xyes
15126 then :
15127 lt_cv_dlopen=shl_load
15128 else case e in #(
15129 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15130 printf %s "checking for shl_load in -ldld... " >&6; }
15131 if test ${ac_cv_lib_dld_shl_load+y}
15132 then :
15133 printf %s "(cached) " >&6
15134 else case e in #(
15135 e) ac_check_lib_save_LIBS=$LIBS
15136 LIBS="-ldld $LIBS"
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply.
15143 The 'extern "C"' is for builds by C++ compilers;
15144 although this is not generally supported in C code supporting it here
15145 has little cost and some practical benefit (sr 110532). */
15146 #ifdef __cplusplus
15147 extern "C"
15148 #endif
15149 char shl_load (void);
15150 int
15151 main (void)
15152 {
15153 return shl_load ();
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_link "$LINENO"
15159 then :
15160 ac_cv_lib_dld_shl_load=yes
15161 else case e in #(
15162 e) ac_cv_lib_dld_shl_load=no ;;
15163 esac
15164 fi
15165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15166 conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS ;;
15168 esac
15169 fi
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15171 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15172 if test "x$ac_cv_lib_dld_shl_load" = xyes
15173 then :
15174 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15175 else case e in #(
15176 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15177 if test "x$ac_cv_func_dlopen" = xyes
15178 then :
15179 lt_cv_dlopen=dlopen
15180 else case e in #(
15181 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15182 printf %s "checking for dlopen in -ldl... " >&6; }
15183 if test ${ac_cv_lib_dl_dlopen+y}
15184 then :
15185 printf %s "(cached) " >&6
15186 else case e in #(
15187 e) ac_check_lib_save_LIBS=$LIBS
15188 LIBS="-ldl $LIBS"
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply.
15195 The 'extern "C"' is for builds by C++ compilers;
15196 although this is not generally supported in C code supporting it here
15197 has little cost and some practical benefit (sr 110532). */
15198 #ifdef __cplusplus
15199 extern "C"
15200 #endif
15201 char dlopen (void);
15202 int
15203 main (void)
15204 {
15205 return dlopen ();
15206 ;
15207 return 0;
15208 }
15209 _ACEOF
15210 if ac_fn_c_try_link "$LINENO"
15211 then :
15212 ac_cv_lib_dl_dlopen=yes
15213 else case e in #(
15214 e) ac_cv_lib_dl_dlopen=no ;;
15215 esac
15216 fi
15217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15218 conftest$ac_exeext conftest.$ac_ext
15219 LIBS=$ac_check_lib_save_LIBS ;;
15220 esac
15221 fi
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15223 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15224 if test "x$ac_cv_lib_dl_dlopen" = xyes
15225 then :
15226 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15227 else case e in #(
15228 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15229 printf %s "checking for dlopen in -lsvld... " >&6; }
15230 if test ${ac_cv_lib_svld_dlopen+y}
15231 then :
15232 printf %s "(cached) " >&6
15233 else case e in #(
15234 e) ac_check_lib_save_LIBS=$LIBS
15235 LIBS="-lsvld $LIBS"
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238
15239 /* Override any GCC internal prototype to avoid an error.
15240 Use char because int might match the return type of a GCC
15241 builtin and then its argument prototype would still apply.
15242 The 'extern "C"' is for builds by C++ compilers;
15243 although this is not generally supported in C code supporting it here
15244 has little cost and some practical benefit (sr 110532). */
15245 #ifdef __cplusplus
15246 extern "C"
15247 #endif
15248 char dlopen (void);
15249 int
15250 main (void)
15251 {
15252 return dlopen ();
15253 ;
15254 return 0;
15255 }
15256 _ACEOF
15257 if ac_fn_c_try_link "$LINENO"
15258 then :
15259 ac_cv_lib_svld_dlopen=yes
15260 else case e in #(
15261 e) ac_cv_lib_svld_dlopen=no ;;
15262 esac
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15265 conftest$ac_exeext conftest.$ac_ext
15266 LIBS=$ac_check_lib_save_LIBS ;;
15267 esac
15268 fi
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15270 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15271 if test "x$ac_cv_lib_svld_dlopen" = xyes
15272 then :
15273 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15274 else case e in #(
15275 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15276 printf %s "checking for dld_link in -ldld... " >&6; }
15277 if test ${ac_cv_lib_dld_dld_link+y}
15278 then :
15279 printf %s "(cached) " >&6
15280 else case e in #(
15281 e) ac_check_lib_save_LIBS=$LIBS
15282 LIBS="-ldld $LIBS"
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285
15286 /* Override any GCC internal prototype to avoid an error.
15287 Use char because int might match the return type of a GCC
15288 builtin and then its argument prototype would still apply.
15289 The 'extern "C"' is for builds by C++ compilers;
15290 although this is not generally supported in C code supporting it here
15291 has little cost and some practical benefit (sr 110532). */
15292 #ifdef __cplusplus
15293 extern "C"
15294 #endif
15295 char dld_link (void);
15296 int
15297 main (void)
15298 {
15299 return dld_link ();
15300 ;
15301 return 0;
15302 }
15303 _ACEOF
15304 if ac_fn_c_try_link "$LINENO"
15305 then :
15306 ac_cv_lib_dld_dld_link=yes
15307 else case e in #(
15308 e) ac_cv_lib_dld_dld_link=no ;;
15309 esac
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15312 conftest$ac_exeext conftest.$ac_ext
15313 LIBS=$ac_check_lib_save_LIBS ;;
15314 esac
15315 fi
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15317 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15318 if test "x$ac_cv_lib_dld_dld_link" = xyes
15319 then :
15320 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15321 fi
15322
15323 ;;
15324 esac
15325 fi
15326
15327 ;;
15328 esac
15329 fi
15330
15331 ;;
15332 esac
15333 fi
15334
15335 ;;
15336 esac
15337 fi
15338
15339 ;;
15340 esac
15341 fi
15342
15343 ;;
15344 esac
15345
15346 if test no = "$lt_cv_dlopen"; then
15347 enable_dlopen=no
15348 else
15349 enable_dlopen=yes
15350 fi
15351
15352 case $lt_cv_dlopen in
15353 dlopen)
15354 save_CPPFLAGS=$CPPFLAGS
15355 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15356
15357 save_LDFLAGS=$LDFLAGS
15358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15359
15360 save_LIBS=$LIBS
15361 LIBS="$lt_cv_dlopen_libs $LIBS"
15362
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15364 printf %s "checking whether a program can dlopen itself... " >&6; }
15365 if test ${lt_cv_dlopen_self+y}
15366 then :
15367 printf %s "(cached) " >&6
15368 else case e in #(
15369 e) if test yes = "$cross_compiling"; then :
15370 lt_cv_dlopen_self=cross
15371 else
15372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15373 lt_status=$lt_dlunknown
15374 cat > conftest.$ac_ext <<_LT_EOF
15375 #line $LINENO "configure"
15376 #include "confdefs.h"
15377
15378 #if HAVE_DLFCN_H
15379 #include <dlfcn.h>
15380 #endif
15381
15382 #include <stdio.h>
15383
15384 #ifdef RTLD_GLOBAL
15385 # define LT_DLGLOBAL RTLD_GLOBAL
15386 #else
15387 # ifdef DL_GLOBAL
15388 # define LT_DLGLOBAL DL_GLOBAL
15389 # else
15390 # define LT_DLGLOBAL 0
15391 # endif
15392 #endif
15393
15394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15395 find out it does not work in some platform. */
15396 #ifndef LT_DLLAZY_OR_NOW
15397 # ifdef RTLD_LAZY
15398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15399 # else
15400 # ifdef DL_LAZY
15401 # define LT_DLLAZY_OR_NOW DL_LAZY
15402 # else
15403 # ifdef RTLD_NOW
15404 # define LT_DLLAZY_OR_NOW RTLD_NOW
15405 # else
15406 # ifdef DL_NOW
15407 # define LT_DLLAZY_OR_NOW DL_NOW
15408 # else
15409 # define LT_DLLAZY_OR_NOW 0
15410 # endif
15411 # endif
15412 # endif
15413 # endif
15414 #endif
15415
15416 /* When -fvisibility=hidden is used, assume the code has been annotated
15417 correspondingly for the symbols needed. */
15418 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15419 int fnord (void) __attribute__((visibility("default")));
15420 #endif
15421
15422 int fnord (void) { return 42; }
15423 int main (void)
15424 {
15425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15426 int status = $lt_dlunknown;
15427
15428 if (self)
15429 {
15430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15431 else
15432 {
15433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15434 else puts (dlerror ());
15435 }
15436 /* dlclose (self); */
15437 }
15438 else
15439 puts (dlerror ());
15440
15441 return status;
15442 }
15443 _LT_EOF
15444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15445 (eval $ac_link) 2>&5
15446 ac_status=$?
15447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15448 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15449 (./conftest; exit; ) >&5 2>/dev/null
15450 lt_status=$?
15451 case x$lt_status in
15452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15455 esac
15456 else :
15457 # compilation failed
15458 lt_cv_dlopen_self=no
15459 fi
15460 fi
15461 rm -fr conftest*
15462
15463 ;;
15464 esac
15465 fi
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15467 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15468
15469 if test yes = "$lt_cv_dlopen_self"; then
15470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15472 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15473 if test ${lt_cv_dlopen_self_static+y}
15474 then :
15475 printf %s "(cached) " >&6
15476 else case e in #(
15477 e) if test yes = "$cross_compiling"; then :
15478 lt_cv_dlopen_self_static=cross
15479 else
15480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15481 lt_status=$lt_dlunknown
15482 cat > conftest.$ac_ext <<_LT_EOF
15483 #line $LINENO "configure"
15484 #include "confdefs.h"
15485
15486 #if HAVE_DLFCN_H
15487 #include <dlfcn.h>
15488 #endif
15489
15490 #include <stdio.h>
15491
15492 #ifdef RTLD_GLOBAL
15493 # define LT_DLGLOBAL RTLD_GLOBAL
15494 #else
15495 # ifdef DL_GLOBAL
15496 # define LT_DLGLOBAL DL_GLOBAL
15497 # else
15498 # define LT_DLGLOBAL 0
15499 # endif
15500 #endif
15501
15502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15503 find out it does not work in some platform. */
15504 #ifndef LT_DLLAZY_OR_NOW
15505 # ifdef RTLD_LAZY
15506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15507 # else
15508 # ifdef DL_LAZY
15509 # define LT_DLLAZY_OR_NOW DL_LAZY
15510 # else
15511 # ifdef RTLD_NOW
15512 # define LT_DLLAZY_OR_NOW RTLD_NOW
15513 # else
15514 # ifdef DL_NOW
15515 # define LT_DLLAZY_OR_NOW DL_NOW
15516 # else
15517 # define LT_DLLAZY_OR_NOW 0
15518 # endif
15519 # endif
15520 # endif
15521 # endif
15522 #endif
15523
15524 /* When -fvisibility=hidden is used, assume the code has been annotated
15525 correspondingly for the symbols needed. */
15526 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15527 int fnord (void) __attribute__((visibility("default")));
15528 #endif
15529
15530 int fnord (void) { return 42; }
15531 int main (void)
15532 {
15533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15534 int status = $lt_dlunknown;
15535
15536 if (self)
15537 {
15538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15539 else
15540 {
15541 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15542 else puts (dlerror ());
15543 }
15544 /* dlclose (self); */
15545 }
15546 else
15547 puts (dlerror ());
15548
15549 return status;
15550 }
15551 _LT_EOF
15552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15553 (eval $ac_link) 2>&5
15554 ac_status=$?
15555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15557 (./conftest; exit; ) >&5 2>/dev/null
15558 lt_status=$?
15559 case x$lt_status in
15560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15563 esac
15564 else :
15565 # compilation failed
15566 lt_cv_dlopen_self_static=no
15567 fi
15568 fi
15569 rm -fr conftest*
15570
15571 ;;
15572 esac
15573 fi
15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15575 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15576 fi
15577
15578 CPPFLAGS=$save_CPPFLAGS
15579 LDFLAGS=$save_LDFLAGS
15580 LIBS=$save_LIBS
15581 ;;
15582 esac
15583
15584 case $lt_cv_dlopen_self in
15585 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15586 *) enable_dlopen_self=unknown ;;
15587 esac
15588
15589 case $lt_cv_dlopen_self_static in
15590 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15591 *) enable_dlopen_self_static=unknown ;;
15592 esac
15593 fi
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611 striplib=
15612 old_striplib=
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15614 printf %s "checking whether stripping libraries is possible... " >&6; }
15615 if test -z "$STRIP"; then
15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 printf "%s\n" "no" >&6; }
15618 else
15619 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15620 old_striplib="$STRIP --strip-debug"
15621 striplib="$STRIP --strip-unneeded"
15622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15623 printf "%s\n" "yes" >&6; }
15624 else
15625 case $host_os in
15626 darwin*)
15627 # FIXME - insert some real tests, host_os isn't really good enough
15628 striplib="$STRIP -x"
15629 old_striplib="$STRIP -S"
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15631 printf "%s\n" "yes" >&6; }
15632 ;;
15633 freebsd*)
15634 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15635 old_striplib="$STRIP --strip-debug"
15636 striplib="$STRIP --strip-unneeded"
15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15638 printf "%s\n" "yes" >&6; }
15639 else
15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15641 printf "%s\n" "no" >&6; }
15642 fi
15643 ;;
15644 *)
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 printf "%s\n" "no" >&6; }
15647 ;;
15648 esac
15649 fi
15650 fi
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663 # Report what library types will actually be built
15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15665 printf %s "checking if libtool supports shared libraries... " >&6; }
15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15667 printf "%s\n" "$can_build_shared" >&6; }
15668
15669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15670 printf %s "checking whether to build shared libraries... " >&6; }
15671 test no = "$can_build_shared" && enable_shared=no
15672
15673 # On AIX, shared libraries and static libraries use the same namespace, and
15674 # are all built from PIC.
15675 case $host_os in
15676 aix3*)
15677 test yes = "$enable_shared" && enable_static=no
15678 if test -n "$RANLIB"; then
15679 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15680 postinstall_cmds='$RANLIB $lib'
15681 fi
15682 ;;
15683
15684 aix[4-9]*)
15685 if test ia64 != "$host_cpu"; then
15686 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15687 yes,aix,yes) ;; # shared object as lib.so file only
15688 yes,svr4,*) ;; # shared object as lib.so archive member only
15689 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15690 esac
15691 fi
15692 ;;
15693 esac
15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15695 printf "%s\n" "$enable_shared" >&6; }
15696
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15698 printf %s "checking whether to build static libraries... " >&6; }
15699 # Make sure either enable_shared or enable_static is yes.
15700 test yes = "$enable_shared" || enable_static=yes
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15702 printf "%s\n" "$enable_static" >&6; }
15703
15704
15705
15706
15707 fi
15708 ac_ext=c
15709 ac_cpp='$CPP $CPPFLAGS'
15710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15713
15714 CC=$lt_save_CC
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730 ac_config_commands="$ac_config_commands libtool"
15731
15732
15733
15734
15735 # Only expand once:
15736
15737
15738
15739 # The cast to long int works around a bug in the HP C Compiler
15740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15741 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15742 # This bug is HP SR number 8606223364.
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15744 printf %s "checking size of void *... " >&6; }
15745 if test ${ac_cv_sizeof_void_p+y}
15746 then :
15747 printf %s "(cached) " >&6
15748 else case e in #(
15749 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
15750 then :
15751
15752 else case e in #(
15753 e) if test "$ac_cv_type_void_p" = yes; then
15754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15755 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15756 as_fn_error 77 "cannot compute sizeof (void *)
15757 See 'config.log' for more details" "$LINENO" 5; }
15758 else
15759 ac_cv_sizeof_void_p=0
15760 fi ;;
15761 esac
15762 fi
15763 ;;
15764 esac
15765 fi
15766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15767 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
15768
15769
15770
15771 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
15772
15773
15774 case $host:$ac_cv_sizeof_void_p in #(
15775 *-*-mingw*:4) :
15776 kpse_dll_name=texluajit ;; #(
15777 *-*-mingw*:8) :
15778 kpse_dll_name=texluajit ;; #(
15779 *-*-cygwin:4) :
15780 kpse_dll_name= ;; #(
15781 *-*-cygwin:8) :
15782 kpse_dll_name= ;; #(
15783 *) :
15784 kpse_dll_name= ;;
15785 esac
15786
15787
15788
15789
15790
15791 # The cast to long int works around a bug in the HP C Compiler
15792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15793 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15794 # This bug is HP SR number 8606223364.
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15796 printf %s "checking size of void *... " >&6; }
15797 if test ${ac_cv_sizeof_void_p+y}
15798 then :
15799 printf %s "(cached) " >&6
15800 else case e in #(
15801 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
15802 then :
15803
15804 else case e in #(
15805 e) if test "$ac_cv_type_void_p" = yes; then
15806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15807 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15808 as_fn_error 77 "cannot compute sizeof (void *)
15809 See 'config.log' for more details" "$LINENO" 5; }
15810 else
15811 ac_cv_sizeof_void_p=0
15812 fi ;;
15813 esac
15814 fi
15815 ;;
15816 esac
15817 fi
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15819 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
15820
15821
15822
15823 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
15824
15825
15826 ac_configure_args="$ac_configure_args HOST_PTR_SIZE='$ac_cv_sizeof_void_p'"
15827
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
15829 printf %s "checking for library containing pow... " >&6; }
15830 if test ${ac_cv_search_pow+y}
15831 then :
15832 printf %s "(cached) " >&6
15833 else case e in #(
15834 e) ac_func_search_save_LIBS=$LIBS
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15837
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply.
15841 The 'extern "C"' is for builds by C++ compilers;
15842 although this is not generally supported in C code supporting it here
15843 has little cost and some practical benefit (sr 110532). */
15844 #ifdef __cplusplus
15845 extern "C"
15846 #endif
15847 char pow (void);
15848 int
15849 main (void)
15850 {
15851 return pow ();
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 for ac_lib in '' m
15857 do
15858 if test -z "$ac_lib"; then
15859 ac_res="none required"
15860 else
15861 ac_res=-l$ac_lib
15862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15863 fi
15864 if ac_fn_c_try_link "$LINENO"
15865 then :
15866 ac_cv_search_pow=$ac_res
15867 fi
15868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15869 conftest$ac_exeext
15870 if test ${ac_cv_search_pow+y}
15871 then :
15872 break
15873 fi
15874 done
15875 if test ${ac_cv_search_pow+y}
15876 then :
15877
15878 else case e in #(
15879 e) ac_cv_search_pow=no ;;
15880 esac
15881 fi
15882 rm conftest.$ac_ext
15883 LIBS=$ac_func_search_save_LIBS ;;
15884 esac
15885 fi
15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
15887 printf "%s\n" "$ac_cv_search_pow" >&6; }
15888 ac_res=$ac_cv_search_pow
15889 if test "$ac_res" != no
15890 then :
15891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15892
15893 fi
15894
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15896 printf %s "checking for library containing dlopen... " >&6; }
15897 if test ${ac_cv_search_dlopen+y}
15898 then :
15899 printf %s "(cached) " >&6
15900 else case e in #(
15901 e) ac_func_search_save_LIBS=$LIBS
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904
15905 /* Override any GCC internal prototype to avoid an error.
15906 Use char because int might match the return type of a GCC
15907 builtin and then its argument prototype would still apply.
15908 The 'extern "C"' is for builds by C++ compilers;
15909 although this is not generally supported in C code supporting it here
15910 has little cost and some practical benefit (sr 110532). */
15911 #ifdef __cplusplus
15912 extern "C"
15913 #endif
15914 char dlopen (void);
15915 int
15916 main (void)
15917 {
15918 return dlopen ();
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 for ac_lib in '' dl
15924 do
15925 if test -z "$ac_lib"; then
15926 ac_res="none required"
15927 else
15928 ac_res=-l$ac_lib
15929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15930 fi
15931 if ac_fn_c_try_link "$LINENO"
15932 then :
15933 ac_cv_search_dlopen=$ac_res
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15936 conftest$ac_exeext
15937 if test ${ac_cv_search_dlopen+y}
15938 then :
15939 break
15940 fi
15941 done
15942 if test ${ac_cv_search_dlopen+y}
15943 then :
15944
15945 else case e in #(
15946 e) ac_cv_search_dlopen=no ;;
15947 esac
15948 fi
15949 rm conftest.$ac_ext
15950 LIBS=$ac_func_search_save_LIBS ;;
15951 esac
15952 fi
15953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15954 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
15955 ac_res=$ac_cv_search_dlopen
15956 if test "$ac_res" != no
15957 then :
15958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15959
15960 fi
15961
15962
15963 LUAJIT_DEFINES='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6'
15964
15965 case $host_os:$host_cpu in #(
15966 *darwin*:x86_64) :
15967 LUAJIT_LDEXTRA='-pagezero_size 10000 -image_base 100000000' ;; #(
15968 *) :
15969 ;;
15970 esac
15971
15972
15973 # Check whether --enable-largefile was given.
15974 if test ${enable_largefile+y}
15975 then :
15976 enableval=$enable_largefile;
15977 fi
15978 if test "$enable_largefile,$enable_year2038" != no,no
15979 then :
15980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15981 printf %s "checking for $CC option to enable large file support... " >&6; }
15982 if test ${ac_cv_sys_largefile_opts+y}
15983 then :
15984 printf %s "(cached) " >&6
15985 else case e in #(
15986 e) ac_save_CC="$CC"
15987 ac_opt_found=no
15988 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15989 if test x"$ac_opt" != x"none needed"
15990 then :
15991 CC="$ac_save_CC $ac_opt"
15992 fi
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995 #include <sys/types.h>
15996 #ifndef FTYPE
15997 # define FTYPE off_t
15998 #endif
15999 /* Check that FTYPE can represent 2**63 - 1 correctly.
16000 We can't simply define LARGE_FTYPE to be 9223372036854775807,
16001 since some C++ compilers masquerading as C compilers
16002 incorrectly reject 9223372036854775807. */
16003 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
16004 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
16005 && LARGE_FTYPE % 2147483647 == 1)
16006 ? 1 : -1];
16007 int
16008 main (void)
16009 {
16010
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"
16016 then :
16017 if test x"$ac_opt" = x"none needed"
16018 then :
16019 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
16020 CC="$CC -DFTYPE=ino_t"
16021 if ac_fn_c_try_compile "$LINENO"
16022 then :
16023
16024 else case e in #(
16025 e) CC="$CC -D_FILE_OFFSET_BITS=64"
16026 if ac_fn_c_try_compile "$LINENO"
16027 then :
16028 ac_opt='-D_FILE_OFFSET_BITS=64'
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
16031 esac
16032 fi
16033 rm -f core conftest.err conftest.$ac_objext conftest.beam
16034 fi
16035 ac_cv_sys_largefile_opts=$ac_opt
16036 ac_opt_found=yes
16037 fi
16038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16039 test $ac_opt_found = no || break
16040 done
16041 CC="$ac_save_CC"
16042
16043 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
16044 esac
16045 fi
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
16047 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
16048
16049 ac_have_largefile=yes
16050 case $ac_cv_sys_largefile_opts in #(
16051 "none needed") :
16052 ;; #(
16053 "supported through gnulib") :
16054 ;; #(
16055 "support not detected") :
16056 ac_have_largefile=no ;; #(
16057 "-D_FILE_OFFSET_BITS=64") :
16058
16059 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
16060 ;; #(
16061 "-D_LARGE_FILES=1") :
16062
16063 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
16064 ;; #(
16065 "-n32") :
16066 CC="$CC -n32" ;; #(
16067 *) :
16068 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
16069 esac
16070
16071 if test "$enable_year2038" != no
16072 then :
16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
16074 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
16075 if test ${ac_cv_sys_year2038_opts+y}
16076 then :
16077 printf %s "(cached) " >&6
16078 else case e in #(
16079 e) ac_save_CPPFLAGS="$CPPFLAGS"
16080 ac_opt_found=no
16081 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
16082 if test x"$ac_opt" != x"none needed"
16083 then :
16084 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
16085 fi
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088
16089 #include <time.h>
16090 /* Check that time_t can represent 2**32 - 1 correctly. */
16091 #define LARGE_TIME_T \\
16092 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
16093 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
16094 && LARGE_TIME_T % 65537 == 0)
16095 ? 1 : -1];
16096
16097 int
16098 main (void)
16099 {
16100
16101 ;
16102 return 0;
16103 }
16104 _ACEOF
16105 if ac_fn_c_try_compile "$LINENO"
16106 then :
16107 ac_cv_sys_year2038_opts="$ac_opt"
16108 ac_opt_found=yes
16109 fi
16110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16111 test $ac_opt_found = no || break
16112 done
16113 CPPFLAGS="$ac_save_CPPFLAGS"
16114 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
16115 esac
16116 fi
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
16118 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
16119
16120 ac_have_year2038=yes
16121 case $ac_cv_sys_year2038_opts in #(
16122 "none needed") :
16123 ;; #(
16124 "support not detected") :
16125 ac_have_year2038=no ;; #(
16126 "-D_TIME_BITS=64") :
16127
16128 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
16129 ;; #(
16130 "-D__MINGW_USE_VC2005_COMPAT") :
16131
16132 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
16133 ;; #(
16134 "-U_USE_32_BIT_TIME_T"*) :
16135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16136 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16137 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
16138 will stop working after mid-January 2038. Remove
16139 _USE_32BIT_TIME_T from the compiler flags.
16140 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16141 *) :
16142 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
16143 esac
16144
16145 fi
16146
16147 fi
16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
16149 printf %s "checking for declarations of fseeko and ftello... " >&6; }
16150 if test ${ac_cv_func_fseeko_ftello+y}
16151 then :
16152 printf %s "(cached) " >&6
16153 else case e in #(
16154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156
16157 #if defined __hpux && !defined _LARGEFILE_SOURCE
16158 # include <limits.h>
16159 # if LONG_MAX >> 31 == 0
16160 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
16161 # endif
16162 #endif
16163 #include <sys/types.h> /* for off_t */
16164 #include <stdio.h>
16165
16166 int
16167 main (void)
16168 {
16169
16170 int (*fp1) (FILE *, off_t, int) = fseeko;
16171 off_t (*fp2) (FILE *) = ftello;
16172 return fseeko (stdin, 0, 0)
16173 && fp1 (stdin, 0, 0)
16174 && ftello (stdin) >= 0
16175 && fp2 (stdin) >= 0;
16176
16177 ;
16178 return 0;
16179 }
16180 _ACEOF
16181 if ac_fn_c_try_compile "$LINENO"
16182 then :
16183 ac_cv_func_fseeko_ftello=yes
16184 else case e in #(
16185 e) ac_save_CPPFLAGS="$CPPFLAGS"
16186 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189
16190 #if defined __hpux && !defined _LARGEFILE_SOURCE
16191 # include <limits.h>
16192 # if LONG_MAX >> 31 == 0
16193 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
16194 # endif
16195 #endif
16196 #include <sys/types.h> /* for off_t */
16197 #include <stdio.h>
16198
16199 int
16200 main (void)
16201 {
16202
16203 int (*fp1) (FILE *, off_t, int) = fseeko;
16204 off_t (*fp2) (FILE *) = ftello;
16205 return fseeko (stdin, 0, 0)
16206 && fp1 (stdin, 0, 0)
16207 && ftello (stdin) >= 0
16208 && fp2 (stdin) >= 0;
16209
16210 ;
16211 return 0;
16212 }
16213 _ACEOF
16214 if ac_fn_c_try_compile "$LINENO"
16215 then :
16216 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
16217 else case e in #(
16218 e) ac_cv_func_fseeko_ftello=no ;;
16219 esac
16220 fi
16221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16222 esac
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16225 esac
16226 fi
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
16228 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
16229 if test "$ac_cv_func_fseeko_ftello" != no
16230 then :
16231
16232 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
16233
16234 fi
16235 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
16236 then :
16237
16238 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
16239
16240 fi
16241
16242 if test "x$enable_largefile" != xno; then
16243 case $ac_cv_sys_file_offset_bits in #(
16244 no) :
16245 ;; #(
16246 unknown) :
16247 case $ac_cv_sys_large_files in #(
16248 no | unknown) :
16249 ;; #(
16250 *) :
16251 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGE_FILES" ;;
16252 esac ;; #(
16253 *) :
16254 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_FILE_OFFSET_BITS=64" ;;
16255 esac
16256 fi
16257 case $ac_cv_sys_largefile_source in #(
16258 no | unknown) :
16259 ;; #(
16260 *) :
16261 LUAJIT_DEFINES="$LUAJIT_DEFINES -D_LARGEFILE_SOURCE" ;;
16262 esac
16263
16264
16265 case $host_os in #(
16266 cygwin* | mingw* | msys*) :
16267 LJHOST='Windows' ;; #(
16268 darwin*) :
16269 LJHOST='Darwin' ;; #(
16270 solaris* | sunos*) :
16271 LJHOST='SunOS' ;; #(
16272 linux*) :
16273 LJHOST='Linux' ;; #(
16274 freebsd*) :
16275 LJHOST='FreeBSD' ;; #(
16276 *) :
16277 LJHOST='Other' ;;
16278 esac
16279 ac_ext=c
16280 ac_cpp='$CPP $CPPFLAGS'
16281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16285 printf %s "checking how to run the C preprocessor... " >&6; }
16286 # On Suns, sometimes $CPP names a directory.
16287 if test -n "$CPP" && test -d "$CPP"; then
16288 CPP=
16289 fi
16290 if test -z "$CPP"; then
16291 if test ${ac_cv_prog_CPP+y}
16292 then :
16293 printf %s "(cached) " >&6
16294 else case e in #(
16295 e) # Double quotes because $CC needs to be expanded
16296 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
16297 do
16298 ac_preproc_ok=false
16299 for ac_c_preproc_warn_flag in '' yes
16300 do
16301 # Use a header file that comes with gcc, so configuring glibc
16302 # with a fresh cross-compiler works.
16303 # On the NeXT, cc -E runs the code through the compiler's parser,
16304 # not just through cpp. "Syntax error" is here to catch this case.
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #include <limits.h>
16308 Syntax error
16309 _ACEOF
16310 if ac_fn_c_try_cpp "$LINENO"
16311 then :
16312
16313 else case e in #(
16314 e) # Broken: fails on valid input.
16315 continue ;;
16316 esac
16317 fi
16318 rm -f conftest.err conftest.i conftest.$ac_ext
16319
16320 # OK, works on sane cases. Now check whether nonexistent headers
16321 # can be detected and how.
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 #include <ac_nonexistent.h>
16325 _ACEOF
16326 if ac_fn_c_try_cpp "$LINENO"
16327 then :
16328 # Broken: success on invalid input.
16329 continue
16330 else case e in #(
16331 e) # Passes both tests.
16332 ac_preproc_ok=:
16333 break ;;
16334 esac
16335 fi
16336 rm -f conftest.err conftest.i conftest.$ac_ext
16337
16338 done
16339 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16340 rm -f conftest.i conftest.err conftest.$ac_ext
16341 if $ac_preproc_ok
16342 then :
16343 break
16344 fi
16345
16346 done
16347 ac_cv_prog_CPP=$CPP
16348 ;;
16349 esac
16350 fi
16351 CPP=$ac_cv_prog_CPP
16352 else
16353 ac_cv_prog_CPP=$CPP
16354 fi
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16356 printf "%s\n" "$CPP" >&6; }
16357 ac_preproc_ok=false
16358 for ac_c_preproc_warn_flag in '' yes
16359 do
16360 # Use a header file that comes with gcc, so configuring glibc
16361 # with a fresh cross-compiler works.
16362 # On the NeXT, cc -E runs the code through the compiler's parser,
16363 # not just through cpp. "Syntax error" is here to catch this case.
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 #include <limits.h>
16367 Syntax error
16368 _ACEOF
16369 if ac_fn_c_try_cpp "$LINENO"
16370 then :
16371
16372 else case e in #(
16373 e) # Broken: fails on valid input.
16374 continue ;;
16375 esac
16376 fi
16377 rm -f conftest.err conftest.i conftest.$ac_ext
16378
16379 # OK, works on sane cases. Now check whether nonexistent headers
16380 # can be detected and how.
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16383 #include <ac_nonexistent.h>
16384 _ACEOF
16385 if ac_fn_c_try_cpp "$LINENO"
16386 then :
16387 # Broken: success on invalid input.
16388 continue
16389 else case e in #(
16390 e) # Passes both tests.
16391 ac_preproc_ok=:
16392 break ;;
16393 esac
16394 fi
16395 rm -f conftest.err conftest.i conftest.$ac_ext
16396
16397 done
16398 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16399 rm -f conftest.i conftest.err conftest.$ac_ext
16400 if $ac_preproc_ok
16401 then :
16402
16403 else case e in #(
16404 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16405 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16406 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16407 See 'config.log' for more details" "$LINENO" 5; } ;;
16408 esac
16409 fi
16410
16411 ac_ext=c
16412 ac_cpp='$CPP $CPPFLAGS'
16413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16416
16417
16418 lj_save_CPPFLAGS=$CPPFLAGS
16419 CPPFLAGS="$CPPFLAGS -I$srcdir/LuaJIT-src/src $LUAJIT_DEFINES -dM"
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 #include <lj_arch.h>
16423 _ACEOF
16424 if ac_fn_c_try_cpp "$LINENO"
16425 then :
16426 lj_cpp=ok; rm -f dynasm_flags native_flags
16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
16428 printf %s "checking for architecture... " >&6; }
16429 cp conftest.i system_flags
16430 LUAJIT_CFLAGS='-fomit-frame-pointer'
16431 if grep 'LJ_TARGET_X64 ' conftest.i >/dev/null 2>&1
16432 then :
16433 LJARCH=x64
16434 elif grep 'LJ_TARGET_X86 ' conftest.i >/dev/null 2>&1
16435 then :
16436 LJARCH=x86
16437 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -march=i686 -msse -msse2 -mfpmath=sse"
16438 elif grep 'LJ_TARGET_ARM ' conftest.i >/dev/null 2>&1
16439 then :
16440 LJARCH=arm
16441 elif grep 'LJ_TARGET_ARM64 ' conftest.i >/dev/null 2>&1
16442 then :
16443 LJARCH=arm64
16444 if test "x$LJHOST" = xiOS
16445 then :
16446 LUAJIT_CFLAGS='-fno-omit-frame-pointer'
16447 fi
16448 if grep '__AARCH64EB__' conftest.i >/dev/null 2>&1
16449 then :
16450 echo '-D__AARCH64EB__=1' >>native_flags
16451 fi
16452
16453 elif grep 'LJ_TARGET_PPC ' conftest.i >/dev/null 2>&1
16454 then :
16455 LJARCH=ppc
16456 if grep 'LJ_LE 1' conftest.i >/dev/null 2>&1
16457 then :
16458 echo '-DLJ_ARCH_ENDIAN=LUAJIT_LE' >>native_flags
16459 else case e in #(
16460 e) echo '-DLJ_ARCH_ENDIAN=LUAJIT_BE' >>native_flags ;;
16461 esac
16462 fi
16463 elif grep 'LJ_TARGET_MIPS ' conftest.i >/dev/null 2>&1
16464 then :
16465 LJARCH=mips
16466 elif grep 'LJ_TARGET_MIPS64 ' conftest.i >/dev/null 2>&1
16467 then :
16468 LJARCH=mips64
16469 if grep 'MIPSEL ' conftest.i >/dev/null 2>&1
16470 then :
16471 echo '-D__MIPSEL__=1' >>native_flags
16472 fi
16473
16474 else case e in #(
16475 e) as_fn_error $? "Sorry, unsupported architecture" "$LINENO" 5 ;;
16476 esac
16477 fi
16478 if grep 'LJ_TARGET_PS3 1'conftest.i >/dev/null 2>&1
16479 then :
16480 LJHOST='PS3'
16481 echo '-D__CELLOS_LV2__' >>native_flags
16482 LUAJIT_DEFINES="$LUAJIT_DEFINES -DLUAJIT_USE_SYSMALLOC"
16483 fi
16484 if grep 'LJ_NO_UNWIND 1' conftest.i >/dev/null 2>&1
16485 then :
16486 echo '-D NO_UNWIND' >>dynasm_flags
16487 echo '-DLUAJIT_NO_UNWIND' >>native_flags
16488 fi
16489 echo "-DLUAJIT_TARGET=LUAJIT_ARCH_$LJARCH" >>native_flags
16490 if grep 'LJ_LE' conftest.i >/dev/null 2>&1
16491 then :
16492 echo '-D ENDIAN_LE' >>dynasm_flags
16493 else case e in #(
16494 e) echo '-D ENDIAN_BE' >>dynasm_flags ;;
16495 esac
16496 fi
16497 if grep 'LJ_ARCH_BITS 64' conftest.i >/dev/null 2>&1
16498 then :
16499 echo '-D P64' >>dynasm_flags
16500 if test "x$LJHOST" = xLinux
16501 then :
16502 LUAJIT_DEFINES="$LUAJIT_DEFINES -DMAP_32BIT=0x40"
16503 fi
16504 fi
16505 if grep 'LJ_HASJIT 1' conftest.i >/dev/null 2>&1
16506 then :
16507 echo '-D JIT' >>dynasm_flags
16508 fi
16509 if grep 'LJ_HASFFI 1' conftest.i >/dev/null 2>&1
16510 then :
16511 echo '-D FFI' >>dynasm_flags
16512 fi
16513 if grep 'LJ_DUALNUM 1' conftest.i >/dev/null 2>&1
16514 then :
16515 echo '-D DUALNUM' >>dynasm_flags
16516 fi
16517 if grep 'LJ_ARCH_HASFPU 1' conftest.i >/dev/null 2>&1
16518 then :
16519 echo '-D FPU' >>dynasm_flags
16520 echo '-DLJ_ARCH_HASFPU=1' >>native_flags
16521 else case e in #(
16522 e) echo '-DLJ_ARCH_HASFPU=0' >>native_flags ;;
16523 esac
16524 fi
16525 if grep 'LJ_ABI_SOFTFP 1' conftest.i >/dev/null 2>&1
16526 then :
16527 echo '-DDLJ_ABI_SOFTFP=1' >>native_flags
16528 else case e in #(
16529 e) echo '-D HFABI' >>dynasm_flags
16530 echo '-DLJ_ABI_SOFTFP=0' >>native_flags ;;
16531 esac
16532 fi
16533 if grep 'LJ_ABI_PAUTH 1' conftest.i >/dev/null 2>&1
16534 then :
16535 echo '-D PAUTH' >>dynasm_flags
16536 echo '-DLJ_ABI_PAUTH=1' >>native_flags
16537 fi
16538 echo '-D VER='`grep 'LJ_ARCH_VERSION ' conftest.i 2>&1 | \
16539 sed 's/^.*LJ_ARCH_VERSION //'` >>dynasm_flags
16540 if test "x$LJHOST" = xWindows
16541 then :
16542 echo '-D WIN' >>dynasm_flags
16543 fi
16544 DASM_ARCH=$LJARCH
16545 case $LJARCH in #(
16546 x64) :
16547 if grep 'LJ_FR2 1' conftest.i >/dev/null 2>&1
16548 then :
16549
16550 else case e in #(
16551 e) DASM_ARCH=x86 ;;
16552 esac
16553 fi ;; #(
16554 arm) :
16555 if test "x$LJHOST" = xiOS
16556 then :
16557 echo '-D IOS' >>dynasm_flags
16558 fi ;; #(
16559 ppc) :
16560 if grep 'LJ_ARCH_SQRT 1' conftest.i >/dev/null 2>&1
16561 then :
16562 echo '-D SQRT' >>dynasm_flags
16563 fi
16564 if grep 'LJ_ARCH_ROUND 1' conftest.i >/dev/null 2>&1
16565 then :
16566 echo '-D ROUND' >>dynasm_flags
16567 fi
16568 if grep 'LJ_ARCH_PPC32ON64 1' conftest.i >/dev/null 2>&1
16569 then :
16570 echo '-D GPR64' >>dynasm_flags
16571 fi
16572 if grep 'LJ_ARCH_PPC64 ' conftest.i >/dev/null 2>&1
16573 then :
16574 DASM_ARCH=ppc64
16575 fi
16576 if test "x$LJHOST" = xPS3
16577 then :
16578 echo '-D PPE -D TOC' >>dynasm_flags
16579 fi ;; #(
16580 *) :
16581 ;;
16582 esac
16583
16584 if test "x$build" != "x$host"
16585 then :
16586 case $LJHOST in #(
16587 Windows) :
16588 echo '-malign-double -DLUAJIT_OS=LUAJIT_OS_WINDOWS' >>native_flags ;; #(
16589 Darwin | iOS) :
16590 echo '-DLUAJIT_OS=LUAJIT_OS_OSX' >>native_flags ;; #(
16591 Linux) :
16592 echo '-DLUAJIT_OS=LUAJIT_OS_LINUX' >>native_flags ;; #(
16593 *) :
16594 echo '-DLUAJIT_OS=LUAJIT_OS_OTHER' >>native_flags ;;
16595 esac
16596 fi
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LJHOST $LJARCH $DASM_ARCH" >&5
16598 printf "%s\n" "$LJHOST $LJARCH $DASM_ARCH" >&6; }
16599
16600 fi
16601 rm -f conftest.err conftest.i conftest.$ac_ext
16602 CPPFLAGS=$lj_save_CPPFLAGS
16603
16604
16605
16606 case $LJHOST in #(
16607 Windows) :
16608 LJVM_MODE=peobj
16609 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -malign-double" ;; #(
16610 Darwin | iOS) :
16611 LJVM_MODE=machasm ;; #(
16612 *) :
16613 LJVM_MODE=elfasm ;;
16614 esac
16615
16616 if echo 'extern void b(void);int a(void){b();return 0;}' | $CC -c -x c - -o tmpunwind.o && { sed -n /eh_frame/p tmpunwind.o >tmpunwind_test || sed -n /__unwind_info/p tmpunwind.o >>tmpunwind_test && test -s tmpunwind_test; }
16617 then :
16618 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -DLUAJIT_UNWIND_EXTERNAL"
16619 rm tmpunwind.o tmpunwind_test
16620 else case e in #(
16621 e) rm tmpunwind.o tmpunwind_test ;;
16622 esac
16623 fi
16624 lj_save_CFLAGS=$CFLAGS
16625 CFLAGS="$CFLAGS -fno-stack-protector"
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16628
16629 int
16630 main (void)
16631 {
16632
16633 ;
16634 return 0;
16635 }
16636 _ACEOF
16637 if ac_fn_c_try_compile "$LINENO"
16638 then :
16639 LUAJIT_CFLAGS="$LUAJIT_CFLAGS -fno-stack-protector"
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16642 CFLAGS=$lj_save_CFLAGS
16643 if test "x$LJVM_MODE" = xpeobj; then
16644 PEOBJ_TRUE=
16645 PEOBJ_FALSE='#'
16646 else
16647 PEOBJ_TRUE='#'
16648 PEOBJ_FALSE=
16649 fi
16650
16651
16652
16653
16654
16655
16656 case $host_os:$host_cpu in #(
16657 *darwin*:x86_64) :
16658 LIBLUAJIT_LDEXTRA='-image_base 7fff04c4a000' ;; #(
16659 *) :
16660 ;;
16661 esac
16662 case $host_os:$host_cpu:$CC in #(
16663 *openbsd*:x86_64:clang* | *openbsd*:x86_64:cc) :
16664 LIBLUAJIT_LDEXTRA='-lc++abi -lpthread' ;; #(
16665 *openbsd*:i386:clang* | *openbsd*:i386:cc) :
16666 LIBLUAJIT_LDEXTRA='-lc++abi -lpthread' ;; #(
16667 *) :
16668 ;;
16669 esac
16670
16671
16672 if test "x$enable_build" != xno; then
16673 build_TRUE=
16674 build_FALSE='#'
16675 else
16676 build_TRUE='#'
16677 build_FALSE=
16678 fi
16679
16680
16681 if test "x$enable_build" != xno || test -f config.force; then
16682
16683 if test "x$lj_cpp" != xok
16684 then :
16685 as_fn_error $? "Sorry, can not preprocess <lj_arch.h>" "$LINENO" 5
16686 fi
16687
16688 echo timestamp >config.force
16689 fi
16690
16691 # Check log2, on some systems is still not defined
16692 LUAJIT_HAS_NOT_LOG2=
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16694 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16695 if test ${ac_cv_c_undeclared_builtin_options+y}
16696 then :
16697 printf %s "(cached) " >&6
16698 else case e in #(
16699 e) ac_save_CFLAGS=$CFLAGS
16700 ac_cv_c_undeclared_builtin_options='cannot detect'
16701 for ac_arg in '' -fno-builtin; do
16702 CFLAGS="$ac_save_CFLAGS $ac_arg"
16703 # This test program should *not* compile successfully.
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706
16707 int
16708 main (void)
16709 {
16710 (void) strchr;
16711 ;
16712 return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"
16716 then :
16717
16718 else case e in #(
16719 e) # This test program should compile successfully.
16720 # No library function is consistently available on
16721 # freestanding implementations, so test against a dummy
16722 # declaration. Include always-available headers on the
16723 # off chance that they somehow elicit warnings.
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 #include <float.h>
16727 #include <limits.h>
16728 #include <stdarg.h>
16729 #include <stddef.h>
16730 extern void ac_decl (int, char *);
16731
16732 int
16733 main (void)
16734 {
16735 (void) ac_decl (0, (char *) 0);
16736 (void) ac_decl;
16737
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"
16743 then :
16744 if test x"$ac_arg" = x
16745 then :
16746 ac_cv_c_undeclared_builtin_options='none needed'
16747 else case e in #(
16748 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
16749 esac
16750 fi
16751 break
16752 fi
16753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16754 esac
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16757 done
16758 CFLAGS=$ac_save_CFLAGS
16759 ;;
16760 esac
16761 fi
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16763 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16764 case $ac_cv_c_undeclared_builtin_options in #(
16765 'cannot detect') :
16766 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16767 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16768 as_fn_error $? "cannot make $CC report undeclared builtins
16769 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16770 'none needed') :
16771 ac_c_undeclared_builtin_options='' ;; #(
16772 *) :
16773 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16774 esac
16775
16776 ac_fn_check_decl "$LINENO" "log2" "ac_cv_have_decl_log2" "#include <math.h>
16777 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16778 if test "x$ac_cv_have_decl_log2" = xyes
16779 then :
16780 ac_have_decl=1
16781 else case e in #(
16782 e) ac_have_decl=0 ;;
16783 esac
16784 fi
16785 printf "%s\n" "#define HAVE_DECL_LOG2 $ac_have_decl" >>confdefs.h
16786 if test $ac_have_decl = 1
16787 then :
16788
16789 else case e in #(
16790 e) LUAJIT_HAS_NOT_LOG2=-DLUAJIT_NO_LOG2 ;;
16791 esac
16792 fi
16793
16794
16795
16796
16797
16798
16799 LUAJIT_TREE=LuaJIT-src
16800
16801
16802 ac_config_headers="$ac_config_headers config.h"
16803
16804
16805 ac_config_files="$ac_config_files Makefile include/Makefile texluajit.pc"
16806
16807
16808
16809
16810
16811 subdirs="$subdirs native"
16812
16813
16814
16815
16816 cat >confcache <<\_ACEOF
16817 # This file is a shell script that caches the results of configure
16818 # tests run on this system so they can be shared between configure
16819 # scripts and configure runs, see configure's option --config-cache.
16820 # It is not useful on other systems. If it contains results you don't
16821 # want to keep, you may remove or edit it.
16822 #
16823 # config.status only pays attention to the cache file if you give it
16824 # the --recheck option to rerun configure.
16825 #
16826 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16827 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16828 # following values.
16829
16830 _ACEOF
16831
16832 # The following way of writing the cache mishandles newlines in values,
16833 # but we know of no workaround that is simple, portable, and efficient.
16834 # So, we kill variables containing newlines.
16835 # Ultrix sh set writes to stderr and can't be redirected directly,
16836 # and sets the high bit in the cache file unless we assign to the vars.
16837 (
16838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16839 eval ac_val=\$$ac_var
16840 case $ac_val in #(
16841 *${as_nl}*)
16842 case $ac_var in #(
16843 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16844 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16845 esac
16846 case $ac_var in #(
16847 _ | IFS | as_nl) ;; #(
16848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16849 *) { eval $ac_var=; unset $ac_var;} ;;
16850 esac ;;
16851 esac
16852 done
16853
16854 (set) 2>&1 |
16855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16856 *${as_nl}ac_space=\ *)
16857 # 'set' does not quote correctly, so add quotes: double-quote
16858 # substitution turns \\\\ into \\, and sed turns \\ into \.
16859 sed -n \
16860 "s/'/'\\\\''/g;
16861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16862 ;; #(
16863 *)
16864 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16866 ;;
16867 esac |
16868 sort
16869 ) |
16870 sed '
16871 /^ac_cv_env_/b end
16872 t clear
16873 :clear
16874 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16875 t end
16876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16877 :end' >>confcache
16878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16879 if test -w "$cache_file"; then
16880 if test "x$cache_file" != "x/dev/null"; then
16881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16882 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16883 if test ! -f "$cache_file" || test -h "$cache_file"; then
16884 cat confcache >"$cache_file"
16885 else
16886 case $cache_file in #(
16887 */* | ?:*)
16888 mv -f confcache "$cache_file"$$ &&
16889 mv -f "$cache_file"$$ "$cache_file" ;; #(
16890 *)
16891 mv -f confcache "$cache_file" ;;
16892 esac
16893 fi
16894 fi
16895 else
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16897 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16898 fi
16899 fi
16900 rm -f confcache
16901
16902 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16903 # Let make expand exec_prefix.
16904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16905
16906 DEFS=-DHAVE_CONFIG_H
16907
16908 ac_libobjs=
16909 ac_ltlibobjs=
16910 U=
16911 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16912 # 1. Remove the extension, and $U if already installed.
16913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16914 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16916 # will be set to the directory where LIBOBJS objects are built.
16917 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16918 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16919 done
16920 LIBOBJS=$ac_libobjs
16921
16922 LTLIBOBJS=$ac_ltlibobjs
16923
16924
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16926 printf %s "checking that generated files are newer than configure... " >&6; }
16927 if test -n "$am_sleep_pid"; then
16928 # Hide warnings about reused PIDs.
16929 wait $am_sleep_pid 2>/dev/null
16930 fi
16931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16932 printf "%s\n" "done" >&6; }
16933 case $enable_silent_rules in # (((
16934 yes) AM_DEFAULT_VERBOSITY=0;;
16935 no) AM_DEFAULT_VERBOSITY=1;;
16936 esac
16937 if test $am_cv_make_support_nested_variables = yes; then
16938 AM_V='$(V)'
16939 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16940 else
16941 AM_V=$AM_DEFAULT_VERBOSITY
16942 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16943 fi
16944
16945 if test -n "$EXEEXT"; then
16946 am__EXEEXT_TRUE=
16947 am__EXEEXT_FALSE='#'
16948 else
16949 am__EXEEXT_TRUE='#'
16950 am__EXEEXT_FALSE=
16951 fi
16952
16953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16954 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16956 fi
16957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16958 as_fn_error $? "conditional \"AMDEP\" was never defined.
16959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16960 fi
16961 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16962 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16964 fi
16965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16966 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16968 fi
16969 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16970 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16972 fi
16973 # Check whether --enable-year2038 was given.
16974 if test ${enable_year2038+y}
16975 then :
16976 enableval=$enable_year2038;
16977 fi
16978
16979 if test -z "${PEOBJ_TRUE}" && test -z "${PEOBJ_FALSE}"; then
16980 as_fn_error $? "conditional \"PEOBJ\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 fi
16983 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
16984 as_fn_error $? "conditional \"build\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 fi
16987
16988 : "${CONFIG_STATUS=./config.status}"
16989 ac_write_fail=0
16990 ac_clean_files_save=$ac_clean_files
16991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16993 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16994 as_write_fail=0
16995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16996 #! $SHELL
16997 # Generated by $as_me.
16998 # Run this file to recreate the current configuration.
16999 # Compiler output produced by configure, useful for debugging
17000 # configure, is in config.log if it exists.
17001
17002 debug=false
17003 ac_cs_recheck=false
17004 ac_cs_silent=false
17005
17006 SHELL=\${CONFIG_SHELL-$SHELL}
17007 export SHELL
17008 _ASEOF
17009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17010 ## -------------------- ##
17011 ## M4sh Initialization. ##
17012 ## -------------------- ##
17013
17014 # Be more Bourne compatible
17015 DUALCASE=1; export DUALCASE # for MKS sh
17016 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17017 then :
17018 emulate sh
17019 NULLCMD=:
17020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17021 # is contrary to our usage. Disable this feature.
17022 alias -g '${1+"$@"}'='"$@"'
17023 setopt NO_GLOB_SUBST
17024 else case e in #(
17025 e) case `(set -o) 2>/dev/null` in #(
17026 *posix*) :
17027 set -o posix ;; #(
17028 *) :
17029 ;;
17030 esac ;;
17031 esac
17032 fi
17033
17034
17035
17036 # Reset variables that may have inherited troublesome values from
17037 # the environment.
17038
17039 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17040 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17041 # side effect of setting IFS to empty, thus disabling word splitting.)
17042 # Quoting is to prevent editors from complaining about space-tab.
17043 as_nl='
17044 '
17045 export as_nl
17046 IFS=" "" $as_nl"
17047
17048 PS1='$ '
17049 PS2='> '
17050 PS4='+ '
17051
17052 # Ensure predictable behavior from utilities with locale-dependent output.
17053 LC_ALL=C
17054 export LC_ALL
17055 LANGUAGE=C
17056 export LANGUAGE
17057
17058 # We cannot yet rely on "unset" to work, but we need these variables
17059 # to be unset--not just set to an empty or harmless value--now, to
17060 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17061 # also avoids known problems related to "unset" and subshell syntax
17062 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17063 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17064 do eval test \${$as_var+y} \
17065 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17066 done
17067
17068 # Ensure that fds 0, 1, and 2 are open.
17069 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17070 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17071 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17072
17073 # The user is always right.
17074 if ${PATH_SEPARATOR+false} :; then
17075 PATH_SEPARATOR=:
17076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17078 PATH_SEPARATOR=';'
17079 }
17080 fi
17081
17082
17083 # Find who we are. Look in the path if we contain no directory separator.
17084 as_myself=
17085 case $0 in #((
17086 *[\\/]* ) as_myself=$0 ;;
17087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088 for as_dir in $PATH
17089 do
17090 IFS=$as_save_IFS
17091 case $as_dir in #(((
17092 '') as_dir=./ ;;
17093 */) ;;
17094 *) as_dir=$as_dir/ ;;
17095 esac
17096 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17097 done
17098 IFS=$as_save_IFS
17099
17100 ;;
17101 esac
17102 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17103 # in which case we are not to be found in the path.
17104 if test "x$as_myself" = x; then
17105 as_myself=$0
17106 fi
17107 if test ! -f "$as_myself"; then
17108 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17109 exit 1
17110 fi
17111
17112
17113
17114 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17115 # ----------------------------------------
17116 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17117 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17118 # script with STATUS, using 1 if that was 0.
17119 as_fn_error ()
17120 {
17121 as_status=$1; test $as_status -eq 0 && as_status=1
17122 if test "$4"; then
17123 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17125 fi
17126 printf "%s\n" "$as_me: error: $2" >&2
17127 as_fn_exit $as_status
17128 } # as_fn_error
17129
17130
17131 # as_fn_set_status STATUS
17132 # -----------------------
17133 # Set $? to STATUS, without forking.
17134 as_fn_set_status ()
17135 {
17136 return $1
17137 } # as_fn_set_status
17138
17139 # as_fn_exit STATUS
17140 # -----------------
17141 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17142 as_fn_exit ()
17143 {
17144 set +e
17145 as_fn_set_status $1
17146 exit $1
17147 } # as_fn_exit
17148
17149 # as_fn_unset VAR
17150 # ---------------
17151 # Portably unset VAR.
17152 as_fn_unset ()
17153 {
17154 { eval $1=; unset $1;}
17155 }
17156 as_unset=as_fn_unset
17157
17158 # as_fn_append VAR VALUE
17159 # ----------------------
17160 # Append the text in VALUE to the end of the definition contained in VAR. Take
17161 # advantage of any shell optimizations that allow amortized linear growth over
17162 # repeated appends, instead of the typical quadratic growth present in naive
17163 # implementations.
17164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17165 then :
17166 eval 'as_fn_append ()
17167 {
17168 eval $1+=\$2
17169 }'
17170 else case e in #(
17171 e) as_fn_append ()
17172 {
17173 eval $1=\$$1\$2
17174 } ;;
17175 esac
17176 fi # as_fn_append
17177
17178 # as_fn_arith ARG...
17179 # ------------------
17180 # Perform arithmetic evaluation on the ARGs, and store the result in the
17181 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17182 # must be portable across $(()) and expr.
17183 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17184 then :
17185 eval 'as_fn_arith ()
17186 {
17187 as_val=$(( $* ))
17188 }'
17189 else case e in #(
17190 e) as_fn_arith ()
17191 {
17192 as_val=`expr "$@" || test $? -eq 1`
17193 } ;;
17194 esac
17195 fi # as_fn_arith
17196
17197
17198 if expr a : '\(a\)' >/dev/null 2>&1 &&
17199 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17200 as_expr=expr
17201 else
17202 as_expr=false
17203 fi
17204
17205 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17206 as_basename=basename
17207 else
17208 as_basename=false
17209 fi
17210
17211 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17212 as_dirname=dirname
17213 else
17214 as_dirname=false
17215 fi
17216
17217 as_me=`$as_basename -- "$0" ||
17218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17219 X"$0" : 'X\(//\)$' \| \
17220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17221 printf "%s\n" X/"$0" |
17222 sed '/^.*\/\([^/][^/]*\)\/*$/{
17223 s//\1/
17224 q
17225 }
17226 /^X\/\(\/\/\)$/{
17227 s//\1/
17228 q
17229 }
17230 /^X\/\(\/\).*/{
17231 s//\1/
17232 q
17233 }
17234 s/.*/./; q'`
17235
17236 # Avoid depending upon Character Ranges.
17237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17240 as_cr_digits='0123456789'
17241 as_cr_alnum=$as_cr_Letters$as_cr_digits
17242
17243
17244 # Determine whether it's possible to make 'echo' print without a newline.
17245 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17246 # for compatibility with existing Makefiles.
17247 ECHO_C= ECHO_N= ECHO_T=
17248 case `echo -n x` in #(((((
17249 -n*)
17250 case `echo 'xy\c'` in
17251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17252 xy) ECHO_C='\c';;
17253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17254 ECHO_T=' ';;
17255 esac;;
17256 *)
17257 ECHO_N='-n';;
17258 esac
17259
17260 # For backward compatibility with old third-party macros, we provide
17261 # the shell variables $as_echo and $as_echo_n. New code should use
17262 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17263 as_echo='printf %s\n'
17264 as_echo_n='printf %s'
17265
17266 rm -f conf$$ conf$$.exe conf$$.file
17267 if test -d conf$$.dir; then
17268 rm -f conf$$.dir/conf$$.file
17269 else
17270 rm -f conf$$.dir
17271 mkdir conf$$.dir 2>/dev/null
17272 fi
17273 if (echo >conf$$.file) 2>/dev/null; then
17274 if ln -s conf$$.file conf$$ 2>/dev/null; then
17275 as_ln_s='ln -s'
17276 # ... but there are two gotchas:
17277 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17278 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17279 # In both cases, we have to default to 'cp -pR'.
17280 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17281 as_ln_s='cp -pR'
17282 elif ln conf$$.file conf$$ 2>/dev/null; then
17283 as_ln_s=ln
17284 else
17285 as_ln_s='cp -pR'
17286 fi
17287 else
17288 as_ln_s='cp -pR'
17289 fi
17290 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17291 rmdir conf$$.dir 2>/dev/null
17292
17293
17294 # as_fn_mkdir_p
17295 # -------------
17296 # Create "$as_dir" as a directory, including parents if necessary.
17297 as_fn_mkdir_p ()
17298 {
17299
17300 case $as_dir in #(
17301 -*) as_dir=./$as_dir;;
17302 esac
17303 test -d "$as_dir" || eval $as_mkdir_p || {
17304 as_dirs=
17305 while :; do
17306 case $as_dir in #(
17307 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17308 *) as_qdir=$as_dir;;
17309 esac
17310 as_dirs="'$as_qdir' $as_dirs"
17311 as_dir=`$as_dirname -- "$as_dir" ||
17312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17313 X"$as_dir" : 'X\(//\)[^/]' \| \
17314 X"$as_dir" : 'X\(//\)$' \| \
17315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17316 printf "%s\n" X"$as_dir" |
17317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17318 s//\1/
17319 q
17320 }
17321 /^X\(\/\/\)[^/].*/{
17322 s//\1/
17323 q
17324 }
17325 /^X\(\/\/\)$/{
17326 s//\1/
17327 q
17328 }
17329 /^X\(\/\).*/{
17330 s//\1/
17331 q
17332 }
17333 s/.*/./; q'`
17334 test -d "$as_dir" && break
17335 done
17336 test -z "$as_dirs" || eval "mkdir $as_dirs"
17337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17338
17339
17340 } # as_fn_mkdir_p
17341 if mkdir -p . 2>/dev/null; then
17342 as_mkdir_p='mkdir -p "$as_dir"'
17343 else
17344 test -d ./-p && rmdir ./-p
17345 as_mkdir_p=false
17346 fi
17347
17348
17349 # as_fn_executable_p FILE
17350 # -----------------------
17351 # Test if FILE is an executable regular file.
17352 as_fn_executable_p ()
17353 {
17354 test -f "$1" && test -x "$1"
17355 } # as_fn_executable_p
17356 as_test_x='test -x'
17357 as_executable_p=as_fn_executable_p
17358
17359 # Sed expression to map a string onto a valid CPP name.
17360 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17361 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17362
17363 # Sed expression to map a string onto a valid variable name.
17364 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17365 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17366
17367
17368 exec 6>&1
17369 ## ----------------------------------- ##
17370 ## Main body of $CONFIG_STATUS script. ##
17371 ## ----------------------------------- ##
17372 _ASEOF
17373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17374
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 # Save the log message, to keep $0 and so on meaningful, and to
17377 # report actual input values of CONFIG_FILES etc. instead of their
17378 # values after options handling.
17379 ac_log="
17380 This file was extended by luajit for TeX Live $as_me 2.1.81742, which was
17381 generated by GNU Autoconf 2.72. Invocation command line was
17382
17383 CONFIG_FILES = $CONFIG_FILES
17384 CONFIG_HEADERS = $CONFIG_HEADERS
17385 CONFIG_LINKS = $CONFIG_LINKS
17386 CONFIG_COMMANDS = $CONFIG_COMMANDS
17387 $ $0 $@
17388
17389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17390 "
17391
17392 _ACEOF
17393
17394 case $ac_config_files in *"
17395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17396 esac
17397
17398 case $ac_config_headers in *"
17399 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17400 esac
17401
17402
17403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17404 # Files that config.status was made for.
17405 config_files="$ac_config_files"
17406 config_headers="$ac_config_headers"
17407 config_commands="$ac_config_commands"
17408
17409 _ACEOF
17410
17411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17412 ac_cs_usage="\
17413 '$as_me' instantiates files and other configuration actions
17414 from templates according to the current configuration. Unless the files
17415 and actions are specified as TAGs, all are instantiated by default.
17416
17417 Usage: $0 [OPTION]... [TAG]...
17418
17419 -h, --help print this help, then exit
17420 -V, --version print version number and configuration settings, then exit
17421 --config print configuration, then exit
17422 -q, --quiet, --silent
17423 do not print progress messages
17424 -d, --debug don't remove temporary files
17425 --recheck update $as_me by reconfiguring in the same conditions
17426 --file=FILE[:TEMPLATE]
17427 instantiate the configuration file FILE
17428 --header=FILE[:TEMPLATE]
17429 instantiate the configuration header FILE
17430
17431 Configuration files:
17432 $config_files
17433
17434 Configuration headers:
17435 $config_headers
17436
17437 Configuration commands:
17438 $config_commands
17439
17440 Report bugs to <[email protected]>."
17441
17442 _ACEOF
17443 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17444 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17446 ac_cs_config='$ac_cs_config_escaped'
17447 ac_cs_version="\\
17448 luajit for TeX Live config.status 2.1.81742
17449 configured by $0, generated by GNU Autoconf 2.72,
17450 with options \\"\$ac_cs_config\\"
17451
17452 Copyright (C) 2023 Free Software Foundation, Inc.
17453 This config.status script is free software; the Free Software Foundation
17454 gives unlimited permission to copy, distribute and modify it."
17455
17456 ac_pwd='$ac_pwd'
17457 srcdir='$srcdir'
17458 INSTALL='$INSTALL'
17459 MKDIR_P='$MKDIR_P'
17460 AWK='$AWK'
17461 test -n "\$AWK" || AWK=awk
17462 _ACEOF
17463
17464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17465 # The default lists apply if the user does not specify any file.
17466 ac_need_defaults=:
17467 while test $# != 0
17468 do
17469 case $1 in
17470 --*=?*)
17471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17472 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17473 ac_shift=:
17474 ;;
17475 --*=)
17476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17477 ac_optarg=
17478 ac_shift=:
17479 ;;
17480 *)
17481 ac_option=$1
17482 ac_optarg=$2
17483 ac_shift=shift
17484 ;;
17485 esac
17486
17487 case $ac_option in
17488 # Handling of the options.
17489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17490 ac_cs_recheck=: ;;
17491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17492 printf "%s\n" "$ac_cs_version"; exit ;;
17493 --config | --confi | --conf | --con | --co | --c )
17494 printf "%s\n" "$ac_cs_config"; exit ;;
17495 --debug | --debu | --deb | --de | --d | -d )
17496 debug=: ;;
17497 --file | --fil | --fi | --f )
17498 $ac_shift
17499 case $ac_optarg in
17500 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17501 '') as_fn_error $? "missing file argument" ;;
17502 esac
17503 as_fn_append CONFIG_FILES " '$ac_optarg'"
17504 ac_need_defaults=false;;
17505 --header | --heade | --head | --hea )
17506 $ac_shift
17507 case $ac_optarg in
17508 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17509 esac
17510 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17511 ac_need_defaults=false;;
17512 --he | --h)
17513 # Conflict between --help and --header
17514 as_fn_error $? "ambiguous option: '$1'
17515 Try '$0 --help' for more information.";;
17516 --help | --hel | -h )
17517 printf "%s\n" "$ac_cs_usage"; exit ;;
17518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17520 ac_cs_silent=: ;;
17521
17522 # This is an error.
17523 -*) as_fn_error $? "unrecognized option: '$1'
17524 Try '$0 --help' for more information." ;;
17525
17526 *) as_fn_append ac_config_targets " $1"
17527 ac_need_defaults=false ;;
17528
17529 esac
17530 shift
17531 done
17532
17533 ac_configure_extra_args=
17534
17535 if $ac_cs_silent; then
17536 exec 6>/dev/null
17537 ac_configure_extra_args="$ac_configure_extra_args --silent"
17538 fi
17539
17540 _ACEOF
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 if \$ac_cs_recheck; then
17543 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17544 shift
17545 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17546 CONFIG_SHELL='$SHELL'
17547 export CONFIG_SHELL
17548 exec "\$@"
17549 fi
17550
17551 _ACEOF
17552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17553 exec 5>>config.log
17554 {
17555 echo
17556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17557 ## Running $as_me. ##
17558 _ASBOX
17559 printf "%s\n" "$ac_log"
17560 } >&5
17561
17562 _ACEOF
17563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17564 #
17565 # INIT-COMMANDS
17566 #
17567 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17568
17569
17570 # The HP-UX ksh and POSIX shell print the target directory to stdout
17571 # if CDPATH is set.
17572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17573
17574 sed_quote_subst='$sed_quote_subst'
17575 double_quote_subst='$double_quote_subst'
17576 delay_variable_subst='$delay_variable_subst'
17577 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17578 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17579 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17580 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17581 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17582 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17583 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17584 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17585 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17586 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17587 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17588 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17589 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17590 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17591 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17592 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17593 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17594 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17595 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17596 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17597 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17598 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17599 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17600 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17601 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17602 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17603 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17604 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17605 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17606 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17607 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17608 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17609 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17610 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17611 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17612 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17613 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17614 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17615 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17616 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17617 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17618 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17619 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17620 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17621 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17622 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17623 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17624 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17625 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17626 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17627 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17628 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17629 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17630 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17631 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17632 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17633 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17634 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17635 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17637 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17639 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17640 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17641 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17642 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17643 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17644 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17645 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17646 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17647 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17648 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17649 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17650 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17651 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17652 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17653 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17654 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17655 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17656 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17657 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17658 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17659 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17660 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17661 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17662 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17663 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17664 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17665 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17666 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17667 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17668 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17669 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17670 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17671 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17672 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17673 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17674 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17675 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17676 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17677 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17678 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17679 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17680 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17681 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17682 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17683 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17684 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17685 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17686 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17687 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17688 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17689 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17690 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17691 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17692 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17693 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17694 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17695 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17696 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17697 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17698 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17699 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17700 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17701 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17702 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17703 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17704 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17705 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17706 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17707 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17708 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17709 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17710 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17711 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17712 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17713 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17714 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17715
17716 LTCC='$LTCC'
17717 LTCFLAGS='$LTCFLAGS'
17718 compiler='$compiler_DEFAULT'
17719
17720 # A function that is used when there is no print builtin or printf.
17721 func_fallback_echo ()
17722 {
17723 eval 'cat <<_LTECHO_EOF
17724 \$1
17725 _LTECHO_EOF'
17726 }
17727
17728 # Quote evaled strings.
17729 for var in AS \
17730 DLLTOOL \
17731 OBJDUMP \
17732 SHELL \
17733 ECHO \
17734 PATH_SEPARATOR \
17735 SED \
17736 GREP \
17737 EGREP \
17738 FGREP \
17739 LD \
17740 NM \
17741 LN_S \
17742 lt_SP2NL \
17743 lt_NL2SP \
17744 reload_flag \
17745 FILECMD \
17746 deplibs_check_method \
17747 file_magic_cmd \
17748 file_magic_glob \
17749 want_nocaseglob \
17750 sharedlib_from_linklib_cmd \
17751 AR \
17752 archiver_list_spec \
17753 STRIP \
17754 RANLIB \
17755 CC \
17756 CFLAGS \
17757 compiler \
17758 lt_cv_sys_global_symbol_pipe \
17759 lt_cv_sys_global_symbol_to_cdecl \
17760 lt_cv_sys_global_symbol_to_import \
17761 lt_cv_sys_global_symbol_to_c_name_address \
17762 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17763 lt_cv_nm_interface \
17764 nm_file_list_spec \
17765 lt_cv_truncate_bin \
17766 lt_prog_compiler_no_builtin_flag \
17767 lt_prog_compiler_pic \
17768 lt_prog_compiler_wl \
17769 lt_prog_compiler_static \
17770 lt_cv_prog_compiler_c_o \
17771 need_locks \
17772 MANIFEST_TOOL \
17773 DSYMUTIL \
17774 NMEDIT \
17775 LIPO \
17776 OTOOL \
17777 OTOOL64 \
17778 shrext_cmds \
17779 export_dynamic_flag_spec \
17780 whole_archive_flag_spec \
17781 compiler_needs_object \
17782 with_gnu_ld \
17783 allow_undefined_flag \
17784 no_undefined_flag \
17785 hardcode_libdir_flag_spec \
17786 hardcode_libdir_separator \
17787 exclude_expsyms \
17788 include_expsyms \
17789 file_list_spec \
17790 variables_saved_for_relink \
17791 libname_spec \
17792 library_names_spec \
17793 soname_spec \
17794 install_override_mode \
17795 finish_eval \
17796 old_striplib \
17797 striplib; do
17798 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17799 *[\\\\\\\`\\"\\\$]*)
17800 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17801 ;;
17802 *)
17803 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17804 ;;
17805 esac
17806 done
17807
17808 # Double-quote double-evaled strings.
17809 for var in reload_cmds \
17810 old_postinstall_cmds \
17811 old_postuninstall_cmds \
17812 old_archive_cmds \
17813 extract_expsyms_cmds \
17814 old_archive_from_new_cmds \
17815 old_archive_from_expsyms_cmds \
17816 archive_cmds \
17817 archive_expsym_cmds \
17818 module_cmds \
17819 module_expsym_cmds \
17820 export_symbols_cmds \
17821 prelink_cmds \
17822 postlink_cmds \
17823 postinstall_cmds \
17824 postuninstall_cmds \
17825 finish_cmds \
17826 sys_lib_search_path_spec \
17827 configure_time_dlsearch_path \
17828 configure_time_lt_sys_library_path; do
17829 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17830 *[\\\\\\\`\\"\\\$]*)
17831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17832 ;;
17833 *)
17834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17835 ;;
17836 esac
17837 done
17838
17839 ac_aux_dir='$ac_aux_dir'
17840
17841 # See if we are running on zsh, and set the options that allow our
17842 # commands through without removal of \ escapes INIT.
17843 if test -n "\${ZSH_VERSION+set}"; then
17844 setopt NO_GLOB_SUBST
17845 fi
17846
17847
17848 PACKAGE='$PACKAGE'
17849 VERSION='$VERSION'
17850 RM='$RM'
17851 ofile='$ofile'
17852
17853 kpse_dll_name='$kpse_dll_name'
17854
17855
17856
17857 _ACEOF
17858
17859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860
17861 # Handling of arguments.
17862 for ac_config_target in $ac_config_targets
17863 do
17864 case $ac_config_target in
17865 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17866 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17867 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17868 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17869 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17870 "texluajit.pc") CONFIG_FILES="$CONFIG_FILES texluajit.pc" ;;
17871
17872 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17873 esac
17874 done
17875
17876
17877 # If the user did not use the arguments to specify the items to instantiate,
17878 # then the envvar interface is used. Set only those that are not.
17879 # We use the long form for the default assignment because of an extremely
17880 # bizarre bug on SunOS 4.1.3.
17881 if $ac_need_defaults; then
17882 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17883 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17884 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17885 fi
17886
17887 # Have a temporary directory for convenience. Make it in the build tree
17888 # simply because there is no reason against having it here, and in addition,
17889 # creating and moving files from /tmp can sometimes cause problems.
17890 # Hook for its removal unless debugging.
17891 # Note that there is a small window in which the directory will not be cleaned:
17892 # after its creation but before its name has been assigned to '$tmp'.
17893 $debug ||
17894 {
17895 tmp= ac_tmp=
17896 trap 'exit_status=$?
17897 : "${ac_tmp:=$tmp}"
17898 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17899 ' 0
17900 trap 'as_fn_exit 1' 1 2 13 15
17901 }
17902 # Create a (secure) tmp directory for tmp files.
17903
17904 {
17905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17906 test -d "$tmp"
17907 } ||
17908 {
17909 tmp=./conf$$-$RANDOM
17910 (umask 077 && mkdir "$tmp")
17911 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17912 ac_tmp=$tmp
17913
17914 # Set up the scripts for CONFIG_FILES section.
17915 # No need to generate them if there are no CONFIG_FILES.
17916 # This happens for instance with './config.status config.h'.
17917 if test -n "$CONFIG_FILES"; then
17918
17919
17920 ac_cr=`echo X | tr X '\015'`
17921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17922 # But we know of no other shell where ac_cr would be empty at this
17923 # point, so we can use a bashism as a fallback.
17924 if test "x$ac_cr" = x; then
17925 eval ac_cr=\$\'\\r\'
17926 fi
17927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17929 ac_cs_awk_cr='\\r'
17930 else
17931 ac_cs_awk_cr=$ac_cr
17932 fi
17933
17934 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17935 _ACEOF
17936
17937
17938 {
17939 echo "cat >conf$$subs.awk <<_ACEOF" &&
17940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17941 echo "_ACEOF"
17942 } >conf$$subs.sh ||
17943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17944 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17945 ac_delim='%!_!# '
17946 for ac_last_try in false false false false false :; do
17947 . ./conf$$subs.sh ||
17948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17949
17950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17951 if test $ac_delim_n = $ac_delim_num; then
17952 break
17953 elif $ac_last_try; then
17954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17955 else
17956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17957 fi
17958 done
17959 rm -f conf$$subs.sh
17960
17961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17962 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17963 _ACEOF
17964 sed -n '
17965 h
17966 s/^/S["/; s/!.*/"]=/
17967 p
17968 g
17969 s/^[^!]*!//
17970 :repl
17971 t repl
17972 s/'"$ac_delim"'$//
17973 t delim
17974 :nl
17975 h
17976 s/\(.\{148\}\)..*/\1/
17977 t more1
17978 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17979 p
17980 n
17981 b repl
17982 :more1
17983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17984 p
17985 g
17986 s/.\{148\}//
17987 t nl
17988 :delim
17989 h
17990 s/\(.\{148\}\)..*/\1/
17991 t more2
17992 s/["\\]/\\&/g; s/^/"/; s/$/"/
17993 p
17994 b
17995 :more2
17996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17997 p
17998 g
17999 s/.\{148\}//
18000 t delim
18001 ' <conf$$subs.awk | sed '
18002 /^[^""]/{
18003 N
18004 s/\n//
18005 }
18006 ' >>$CONFIG_STATUS || ac_write_fail=1
18007 rm -f conf$$subs.awk
18008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18009 _ACAWK
18010 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18011 for (key in S) S_is_set[key] = 1
18012 FS = ""
18013
18014 }
18015 {
18016 line = $ 0
18017 nfields = split(line, field, "@")
18018 substed = 0
18019 len = length(field[1])
18020 for (i = 2; i < nfields; i++) {
18021 key = field[i]
18022 keylen = length(key)
18023 if (S_is_set[key]) {
18024 value = S[key]
18025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18026 len += length(value) + length(field[++i])
18027 substed = 1
18028 } else
18029 len += 1 + keylen
18030 }
18031
18032 print line
18033 }
18034
18035 _ACAWK
18036 _ACEOF
18037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18040 else
18041 cat
18042 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18043 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18044 _ACEOF
18045
18046 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18047 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18048 # trailing colons and then remove the whole line if VPATH becomes empty
18049 # (actually we leave an empty line to preserve line numbers).
18050 if test "x$srcdir" = x.; then
18051 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18052 h
18053 s///
18054 s/^/:/
18055 s/[ ]*$/:/
18056 s/:\$(srcdir):/:/g
18057 s/:\${srcdir}:/:/g
18058 s/:@srcdir@:/:/g
18059 s/^:*//
18060 s/:*$//
18061 x
18062 s/\(=[ ]*\).*/\1/
18063 G
18064 s/\n//
18065 s/^[^=]*=[ ]*$//
18066 }'
18067 fi
18068
18069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18070 fi # test -n "$CONFIG_FILES"
18071
18072 # Set up the scripts for CONFIG_HEADERS section.
18073 # No need to generate them if there are no CONFIG_HEADERS.
18074 # This happens for instance with './config.status Makefile'.
18075 if test -n "$CONFIG_HEADERS"; then
18076 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18077 BEGIN {
18078 _ACEOF
18079
18080 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18081 # here-document in config.status, that substitutes the proper values into
18082 # config.h.in to produce config.h.
18083
18084 # Create a delimiter string that does not exist in confdefs.h, to ease
18085 # handling of long lines.
18086 ac_delim='%!_!# '
18087 for ac_last_try in false false :; do
18088 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18089 if test -z "$ac_tt"; then
18090 break
18091 elif $ac_last_try; then
18092 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18093 else
18094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18095 fi
18096 done
18097
18098 # For the awk script, D is an array of macro values keyed by name,
18099 # likewise P contains macro parameters if any. Preserve backslash
18100 # newline sequences.
18101
18102 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18103 sed -n '
18104 s/.\{148\}/&'"$ac_delim"'/g
18105 t rset
18106 :rset
18107 s/^[ ]*#[ ]*define[ ][ ]*/ /
18108 t def
18109 d
18110 :def
18111 s/\\$//
18112 t bsnl
18113 s/["\\]/\\&/g
18114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18115 D["\1"]=" \3"/p
18116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18117 d
18118 :bsnl
18119 s/["\\]/\\&/g
18120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18121 D["\1"]=" \3\\\\\\n"\\/p
18122 t cont
18123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18124 t cont
18125 d
18126 :cont
18127 n
18128 s/.\{148\}/&'"$ac_delim"'/g
18129 t clear
18130 :clear
18131 s/\\$//
18132 t bsnlc
18133 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18134 d
18135 :bsnlc
18136 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18137 b cont
18138 ' <confdefs.h | sed '
18139 s/'"$ac_delim"'/"\\\
18140 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18141
18142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18143 for (key in D) D_is_set[key] = 1
18144 FS = ""
18145 }
18146 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18147 line = \$ 0
18148 split(line, arg, " ")
18149 if (arg[1] == "#") {
18150 defundef = arg[2]
18151 mac1 = arg[3]
18152 } else {
18153 defundef = substr(arg[1], 2)
18154 mac1 = arg[2]
18155 }
18156 split(mac1, mac2, "(") #)
18157 macro = mac2[1]
18158 prefix = substr(line, 1, index(line, defundef) - 1)
18159 if (D_is_set[macro]) {
18160 # Preserve the white space surrounding the "#".
18161 print prefix "define", macro P[macro] D[macro]
18162 next
18163 } else {
18164 # Replace #undef with comments. This is necessary, for example,
18165 # in the case of _POSIX_SOURCE, which is predefined and required
18166 # on some systems where configure will not decide to define it.
18167 if (defundef == "undef") {
18168 print "/*", prefix defundef, macro, "*/"
18169 next
18170 }
18171 }
18172 }
18173 { print }
18174 _ACAWK
18175 _ACEOF
18176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18177 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18178 fi # test -n "$CONFIG_HEADERS"
18179
18180
18181 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18182 shift
18183 for ac_tag
18184 do
18185 case $ac_tag in
18186 :[FHLC]) ac_mode=$ac_tag; continue;;
18187 esac
18188 case $ac_mode$ac_tag in
18189 :[FHL]*:*);;
18190 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18191 :[FH]-) ac_tag=-:-;;
18192 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18193 esac
18194 ac_save_IFS=$IFS
18195 IFS=:
18196 set x $ac_tag
18197 IFS=$ac_save_IFS
18198 shift
18199 ac_file=$1
18200 shift
18201
18202 case $ac_mode in
18203 :L) ac_source=$1;;
18204 :[FH])
18205 ac_file_inputs=
18206 for ac_f
18207 do
18208 case $ac_f in
18209 -) ac_f="$ac_tmp/stdin";;
18210 *) # Look for the file first in the build tree, then in the source tree
18211 # (if the path is not absolute). The absolute path cannot be DOS-style,
18212 # because $ac_f cannot contain ':'.
18213 test -f "$ac_f" ||
18214 case $ac_f in
18215 [\\/$]*) false;;
18216 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18217 esac ||
18218 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18219 esac
18220 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18221 as_fn_append ac_file_inputs " '$ac_f'"
18222 done
18223
18224 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18225 # use $as_me), people would be surprised to read:
18226 # /* config.h. Generated by config.status. */
18227 configure_input='Generated from '`
18228 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18229 `' by configure.'
18230 if test x"$ac_file" != x-; then
18231 configure_input="$ac_file. $configure_input"
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18233 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18234 fi
18235 # Neutralize special characters interpreted by sed in replacement strings.
18236 case $configure_input in #(
18237 *\&* | *\|* | *\\* )
18238 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18239 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18240 *) ac_sed_conf_input=$configure_input;;
18241 esac
18242
18243 case $ac_tag in
18244 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18246 esac
18247 ;;
18248 esac
18249
18250 ac_dir=`$as_dirname -- "$ac_file" ||
18251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18252 X"$ac_file" : 'X\(//\)[^/]' \| \
18253 X"$ac_file" : 'X\(//\)$' \| \
18254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18255 printf "%s\n" X"$ac_file" |
18256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18257 s//\1/
18258 q
18259 }
18260 /^X\(\/\/\)[^/].*/{
18261 s//\1/
18262 q
18263 }
18264 /^X\(\/\/\)$/{
18265 s//\1/
18266 q
18267 }
18268 /^X\(\/\).*/{
18269 s//\1/
18270 q
18271 }
18272 s/.*/./; q'`
18273 as_dir="$ac_dir"; as_fn_mkdir_p
18274 ac_builddir=.
18275
18276 case "$ac_dir" in
18277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18278 *)
18279 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18280 # A ".." for each directory in $ac_dir_suffix.
18281 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18282 case $ac_top_builddir_sub in
18283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18285 esac ;;
18286 esac
18287 ac_abs_top_builddir=$ac_pwd
18288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18289 # for backward compatibility:
18290 ac_top_builddir=$ac_top_build_prefix
18291
18292 case $srcdir in
18293 .) # We are building in place.
18294 ac_srcdir=.
18295 ac_top_srcdir=$ac_top_builddir_sub
18296 ac_abs_top_srcdir=$ac_pwd ;;
18297 [\\/]* | ?:[\\/]* ) # Absolute name.
18298 ac_srcdir=$srcdir$ac_dir_suffix;
18299 ac_top_srcdir=$srcdir
18300 ac_abs_top_srcdir=$srcdir ;;
18301 *) # Relative name.
18302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18303 ac_top_srcdir=$ac_top_build_prefix$srcdir
18304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18305 esac
18306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18307
18308
18309 case $ac_mode in
18310 :F)
18311 #
18312 # CONFIG_FILE
18313 #
18314
18315 case $INSTALL in
18316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18318 esac
18319 ac_MKDIR_P=$MKDIR_P
18320 case $MKDIR_P in
18321 [\\/$]* | ?:[\\/]* ) ;;
18322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18323 esac
18324 _ACEOF
18325
18326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18327 # If the template does not know about datarootdir, expand it.
18328 # FIXME: This hack should be removed a few years after 2.60.
18329 ac_datarootdir_hack=; ac_datarootdir_seen=
18330 ac_sed_dataroot='
18331 /datarootdir/ {
18332 p
18333 q
18334 }
18335 /@datadir@/p
18336 /@docdir@/p
18337 /@infodir@/p
18338 /@localedir@/p
18339 /@mandir@/p'
18340 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18341 *datarootdir*) ac_datarootdir_seen=yes;;
18342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18344 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18347 ac_datarootdir_hack='
18348 s&@datadir@&$datadir&g
18349 s&@docdir@&$docdir&g
18350 s&@infodir@&$infodir&g
18351 s&@localedir@&$localedir&g
18352 s&@mandir@&$mandir&g
18353 s&\\\${datarootdir}&$datarootdir&g' ;;
18354 esac
18355 _ACEOF
18356
18357 # Neutralize VPATH when '$srcdir' = '.'.
18358 # Shell code in configure.ac might set extrasub.
18359 # FIXME: do we really want to maintain this feature?
18360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18361 ac_sed_extra="$ac_vpsub
18362 $extrasub
18363 _ACEOF
18364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365 :t
18366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18367 s|@configure_input@|$ac_sed_conf_input|;t t
18368 s&@top_builddir@&$ac_top_builddir_sub&;t t
18369 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18370 s&@srcdir@&$ac_srcdir&;t t
18371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18372 s&@top_srcdir@&$ac_top_srcdir&;t t
18373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18374 s&@builddir@&$ac_builddir&;t t
18375 s&@abs_builddir@&$ac_abs_builddir&;t t
18376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18377 s&@INSTALL@&$ac_INSTALL&;t t
18378 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18379 $ac_datarootdir_hack
18380 "
18381 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18382 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18383
18384 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18385 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18386 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18387 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18389 which seems to be undefined. Please make sure it is defined" >&5
18390 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18391 which seems to be undefined. Please make sure it is defined" >&2;}
18392
18393 rm -f "$ac_tmp/stdin"
18394 case $ac_file in
18395 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18396 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18397 esac \
18398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18399 ;;
18400 :H)
18401 #
18402 # CONFIG_HEADER
18403 #
18404 if test x"$ac_file" != x-; then
18405 {
18406 printf "%s\n" "/* $configure_input */" >&1 \
18407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18408 } >"$ac_tmp/config.h" \
18409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18410 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18412 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18413 else
18414 rm -f "$ac_file"
18415 mv "$ac_tmp/config.h" "$ac_file" \
18416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18417 fi
18418 else
18419 printf "%s\n" "/* $configure_input */" >&1 \
18420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18421 || as_fn_error $? "could not create -" "$LINENO" 5
18422 fi
18423 # Compute "$ac_file"'s index in $config_headers.
18424 _am_arg="$ac_file"
18425 _am_stamp_count=1
18426 for _am_header in $config_headers :; do
18427 case $_am_header in
18428 $_am_arg | $_am_arg:* )
18429 break ;;
18430 * )
18431 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18432 esac
18433 done
18434 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18435 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18436 X"$_am_arg" : 'X\(//\)[^/]' \| \
18437 X"$_am_arg" : 'X\(//\)$' \| \
18438 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18439 printf "%s\n" X"$_am_arg" |
18440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18441 s//\1/
18442 q
18443 }
18444 /^X\(\/\/\)[^/].*/{
18445 s//\1/
18446 q
18447 }
18448 /^X\(\/\/\)$/{
18449 s//\1/
18450 q
18451 }
18452 /^X\(\/\).*/{
18453 s//\1/
18454 q
18455 }
18456 s/.*/./; q'`/stamp-h$_am_stamp_count
18457 ;;
18458
18459 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18460 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18461 ;;
18462 esac
18463
18464
18465 case $ac_file$ac_mode in
18466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18467 # Older Autoconf quotes --file arguments for eval, but not when files
18468 # are listed without --file. Let's play safe and only enable the eval
18469 # if we detect the quoting.
18470 # TODO: see whether this extra hack can be removed once we start
18471 # requiring Autoconf 2.70 or later.
18472 case $CONFIG_FILES in #(
18473 *\'*) :
18474 eval set x "$CONFIG_FILES" ;; #(
18475 *) :
18476 set x $CONFIG_FILES ;; #(
18477 *) :
18478 ;;
18479 esac
18480 shift
18481 # Used to flag and report bootstrapping failures.
18482 am_rc=0
18483 for am_mf
18484 do
18485 # Strip MF so we end up with the name of the file.
18486 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18487 # Check whether this is an Automake generated Makefile which includes
18488 # dependency-tracking related rules and includes.
18489 # Grep'ing the whole file directly is not great: AIX grep has a line
18490 # limit of 2048, but all sed's we know have understand at least 4000.
18491 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18492 || continue
18493 am_dirpart=`$as_dirname -- "$am_mf" ||
18494 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18495 X"$am_mf" : 'X\(//\)[^/]' \| \
18496 X"$am_mf" : 'X\(//\)$' \| \
18497 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18498 printf "%s\n" X"$am_mf" |
18499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18500 s//\1/
18501 q
18502 }
18503 /^X\(\/\/\)[^/].*/{
18504 s//\1/
18505 q
18506 }
18507 /^X\(\/\/\)$/{
18508 s//\1/
18509 q
18510 }
18511 /^X\(\/\).*/{
18512 s//\1/
18513 q
18514 }
18515 s/.*/./; q'`
18516 am_filepart=`$as_basename -- "$am_mf" ||
18517 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18518 X"$am_mf" : 'X\(//\)$' \| \
18519 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18520 printf "%s\n" X/"$am_mf" |
18521 sed '/^.*\/\([^/][^/]*\)\/*$/{
18522 s//\1/
18523 q
18524 }
18525 /^X\/\(\/\/\)$/{
18526 s//\1/
18527 q
18528 }
18529 /^X\/\(\/\).*/{
18530 s//\1/
18531 q
18532 }
18533 s/.*/./; q'`
18534 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18535 && sed -e '/# am--include-marker/d' "$am_filepart" \
18536 | $MAKE -f - am--depfiles" >&5
18537 (cd "$am_dirpart" \
18538 && sed -e '/# am--include-marker/d' "$am_filepart" \
18539 | $MAKE -f - am--depfiles) >&5 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } || am_rc=$?
18543 done
18544 if test $am_rc -ne 0; then
18545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18546 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18547 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18548 for automatic dependency tracking. If GNU make was not used, consider
18549 re-running the configure script with MAKE=\"gmake\" (or whatever is
18550 necessary). You can also try re-running configure with the
18551 '--disable-dependency-tracking' option to at least be able to build
18552 the package (albeit without support for automatic dependency tracking).
18553 See 'config.log' for more details" "$LINENO" 5; }
18554 fi
18555 { am_dirpart=; unset am_dirpart;}
18556 { am_filepart=; unset am_filepart;}
18557 { am_mf=; unset am_mf;}
18558 { am_rc=; unset am_rc;}
18559 rm -f conftest-deps.mk
18560 }
18561 ;;
18562 "libtool":C)
18563
18564 # See if we are running on zsh, and set the options that allow our
18565 # commands through without removal of \ escapes.
18566 if test -n "${ZSH_VERSION+set}"; then
18567 setopt NO_GLOB_SUBST
18568 fi
18569
18570 cfgfile=${ofile}T
18571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18572 $RM "$cfgfile"
18573
18574 cat <<_LT_EOF >> "$cfgfile"
18575 #! $SHELL
18576 # Generated automatically by $as_me ($PACKAGE) $VERSION
18577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18578
18579 # Provide generalized library-building support services.
18580 # Written by Gordon Matzigkeit, 1996
18581
18582 # Copyright (C) 2024 Free Software Foundation, Inc.
18583 # This is free software; see the source for copying conditions. There is NO
18584 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18585
18586 # GNU Libtool is free software; you can redistribute it and/or modify
18587 # it under the terms of the GNU General Public License as published by
18588 # the Free Software Foundation; either version 2 of the License, or
18589 # (at your option) any later version.
18590 #
18591 # As a special exception to the GNU General Public License, if you
18592 # distribute this file as part of a program or library that is built
18593 # using GNU Libtool, you may include this file under the same
18594 # distribution terms that you use for the rest of that program.
18595 #
18596 # GNU Libtool is distributed in the hope that it will be useful, but
18597 # WITHOUT ANY WARRANTY; without even the implied warranty of
18598 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18599 # GNU General Public License for more details.
18600 #
18601 # You should have received a copy of the GNU General Public License
18602 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18603
18604
18605 # The names of the tagged configurations supported by this script.
18606 available_tags=''
18607
18608 # Configured defaults for sys_lib_dlsearch_path munging.
18609 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18610
18611 # ### BEGIN LIBTOOL CONFIG
18612
18613 # Which release of libtool.m4 was used?
18614 macro_version=$macro_version
18615 macro_revision=$macro_revision
18616
18617 # Assembler program.
18618 AS=$lt_AS
18619
18620 # DLL creation program.
18621 DLLTOOL=$lt_DLLTOOL
18622
18623 # Object dumper program.
18624 OBJDUMP=$lt_OBJDUMP
18625
18626 # Whether or not to build shared libraries.
18627 build_libtool_libs=$enable_shared
18628
18629 # Whether or not to build static libraries.
18630 build_old_libs=$enable_static
18631
18632 # What type of objects to build.
18633 pic_mode=$pic_mode
18634
18635 # Whether or not to optimize for fast installation.
18636 fast_install=$enable_fast_install
18637
18638 # Shared archive member basename,for filename based shared library versioning on AIX.
18639 shared_archive_member_spec=$shared_archive_member_spec
18640
18641 # Shell to use when invoking shell scripts.
18642 SHELL=$lt_SHELL
18643
18644 # An echo program that protects backslashes.
18645 ECHO=$lt_ECHO
18646
18647 # The PATH separator for the build system.
18648 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18649
18650 # The host system.
18651 host_alias=$host_alias
18652 host=$host
18653 host_os=$host_os
18654
18655 # The build system.
18656 build_alias=$build_alias
18657 build=$build
18658 build_os=$build_os
18659
18660 # A sed program that does not truncate output.
18661 SED=$lt_SED
18662
18663 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18664 Xsed="\$SED -e 1s/^X//"
18665
18666 # A grep program that handles long lines.
18667 GREP=$lt_GREP
18668
18669 # An ERE matcher.
18670 EGREP=$lt_EGREP
18671
18672 # A literal string matcher.
18673 FGREP=$lt_FGREP
18674
18675 # A BSD- or MS-compatible name lister.
18676 NM=$lt_NM
18677
18678 # Whether we need soft or hard links.
18679 LN_S=$lt_LN_S
18680
18681 # What is the maximum length of a command?
18682 max_cmd_len=$max_cmd_len
18683
18684 # Object file suffix (normally "o").
18685 objext=$ac_objext
18686
18687 # Executable file suffix (normally "").
18688 exeext=$exeext
18689
18690 # whether the shell understands "unset".
18691 lt_unset=$lt_unset
18692
18693 # turn spaces into newlines.
18694 SP2NL=$lt_lt_SP2NL
18695
18696 # turn newlines into spaces.
18697 NL2SP=$lt_lt_NL2SP
18698
18699 # convert \$build file names to \$host format.
18700 to_host_file_cmd=$lt_cv_to_host_file_cmd
18701
18702 # convert \$build files to toolchain format.
18703 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18704
18705 # A file(cmd) program that detects file types.
18706 FILECMD=$lt_FILECMD
18707
18708 # Method to check whether dependent libraries are shared objects.
18709 deplibs_check_method=$lt_deplibs_check_method
18710
18711 # Command to use when deplibs_check_method = "file_magic".
18712 file_magic_cmd=$lt_file_magic_cmd
18713
18714 # How to find potential files when deplibs_check_method = "file_magic".
18715 file_magic_glob=$lt_file_magic_glob
18716
18717 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18718 want_nocaseglob=$lt_want_nocaseglob
18719
18720 # Command to associate shared and link libraries.
18721 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18722
18723 # The archiver.
18724 AR=$lt_AR
18725
18726 # Flags to create an archive (by configure).
18727 lt_ar_flags=$lt_ar_flags
18728
18729 # Flags to create an archive.
18730 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18731
18732 # How to feed a file listing to the archiver.
18733 archiver_list_spec=$lt_archiver_list_spec
18734
18735 # A symbol stripping program.
18736 STRIP=$lt_STRIP
18737
18738 # Commands used to install an old-style archive.
18739 RANLIB=$lt_RANLIB
18740 old_postinstall_cmds=$lt_old_postinstall_cmds
18741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18742
18743 # Whether to use a lock for old archive extraction.
18744 lock_old_archive_extraction=$lock_old_archive_extraction
18745
18746 # A C compiler.
18747 LTCC=$lt_CC
18748
18749 # LTCC compiler flags.
18750 LTCFLAGS=$lt_CFLAGS
18751
18752 # Take the output of nm and produce a listing of raw symbols and C names.
18753 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18754
18755 # Transform the output of nm in a proper C declaration.
18756 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18757
18758 # Transform the output of nm into a list of symbols to manually relocate.
18759 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18760
18761 # Transform the output of nm in a C name address pair.
18762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18763
18764 # Transform the output of nm in a C name address pair when lib prefix is needed.
18765 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18766
18767 # The name lister interface.
18768 nm_interface=$lt_lt_cv_nm_interface
18769
18770 # Specify filename containing input files for \$NM.
18771 nm_file_list_spec=$lt_nm_file_list_spec
18772
18773 # The root where to search for dependent libraries,and where our libraries should be installed.
18774 lt_sysroot=$lt_sysroot
18775
18776 # Command to truncate a binary pipe.
18777 lt_truncate_bin=$lt_lt_cv_truncate_bin
18778
18779 # The name of the directory that contains temporary libtool files.
18780 objdir=$objdir
18781
18782 # Used to examine libraries when file_magic_cmd begins with "file".
18783 MAGIC_CMD=$MAGIC_CMD
18784
18785 # Must we lock files when doing compilation?
18786 need_locks=$lt_need_locks
18787
18788 # Manifest tool.
18789 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18790
18791 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18792 DSYMUTIL=$lt_DSYMUTIL
18793
18794 # Tool to change global to local symbols on Mac OS X.
18795 NMEDIT=$lt_NMEDIT
18796
18797 # Tool to manipulate fat objects and archives on Mac OS X.
18798 LIPO=$lt_LIPO
18799
18800 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18801 OTOOL=$lt_OTOOL
18802
18803 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18804 OTOOL64=$lt_OTOOL64
18805
18806 # Old archive suffix (normally "a").
18807 libext=$libext
18808
18809 # Shared library suffix (normally ".so").
18810 shrext_cmds=$lt_shrext_cmds
18811
18812 # The commands to extract the exported symbol list from a shared archive.
18813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18814
18815 # Variables whose values should be saved in libtool wrapper scripts and
18816 # restored at link time.
18817 variables_saved_for_relink=$lt_variables_saved_for_relink
18818
18819 # Do we need the "lib" prefix for modules?
18820 need_lib_prefix=$need_lib_prefix
18821
18822 # Do we need a version for libraries?
18823 need_version=$need_version
18824
18825 # Library versioning type.
18826 version_type=$version_type
18827
18828 # Shared library runtime path variable.
18829 runpath_var=$runpath_var
18830
18831 # Shared library path variable.
18832 shlibpath_var=$shlibpath_var
18833
18834 # Is shlibpath searched before the hard-coded library search path?
18835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18836
18837 # Format of library name prefix.
18838 libname_spec=$lt_libname_spec
18839
18840 # List of archive names. First name is the real one, the rest are links.
18841 # The last name is the one that the linker finds with -lNAME
18842 library_names_spec=$lt_library_names_spec
18843
18844 # The coded name of the library, if different from the real name.
18845 soname_spec=$lt_soname_spec
18846
18847 # Permission mode override for installation of shared libraries.
18848 install_override_mode=$lt_install_override_mode
18849
18850 # Command to use after installation of a shared archive.
18851 postinstall_cmds=$lt_postinstall_cmds
18852
18853 # Command to use after uninstallation of a shared archive.
18854 postuninstall_cmds=$lt_postuninstall_cmds
18855
18856 # Commands used to finish a libtool library installation in a directory.
18857 finish_cmds=$lt_finish_cmds
18858
18859 # As "finish_cmds", except a single script fragment to be evaled but
18860 # not shown.
18861 finish_eval=$lt_finish_eval
18862
18863 # Whether we should hardcode library paths into libraries.
18864 hardcode_into_libs=$hardcode_into_libs
18865
18866 # Compile-time system search path for libraries.
18867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18868
18869 # Detected run-time system search path for libraries.
18870 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18871
18872 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18873 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18874
18875 # Whether dlopen is supported.
18876 dlopen_support=$enable_dlopen
18877
18878 # Whether dlopen of programs is supported.
18879 dlopen_self=$enable_dlopen_self
18880
18881 # Whether dlopen of statically linked programs is supported.
18882 dlopen_self_static=$enable_dlopen_self_static
18883
18884 # Commands to strip libraries.
18885 old_striplib=$lt_old_striplib
18886 striplib=$lt_striplib
18887
18888
18889 # The linker used to build libraries.
18890 LD=$lt_LD
18891
18892 # How to create reloadable object files.
18893 reload_flag=$lt_reload_flag
18894 reload_cmds=$lt_reload_cmds
18895
18896 # Commands used to build an old-style archive.
18897 old_archive_cmds=$lt_old_archive_cmds
18898
18899 # A language specific compiler.
18900 CC=$lt_compiler
18901
18902 # Is the compiler the GNU compiler?
18903 with_gcc=$GCC
18904
18905 # Compiler flag to turn off builtin functions.
18906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18907
18908 # Additional compiler flags for building library objects.
18909 pic_flag=$lt_lt_prog_compiler_pic
18910
18911 # How to pass a linker flag through the compiler.
18912 wl=$lt_lt_prog_compiler_wl
18913
18914 # Compiler flag to prevent dynamic linking.
18915 link_static_flag=$lt_lt_prog_compiler_static
18916
18917 # Does compiler simultaneously support -c and -o options?
18918 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18919
18920 # Whether or not to add -lc for building shared libraries.
18921 build_libtool_need_lc=$archive_cmds_need_lc
18922
18923 # Whether or not to disallow shared libs when runtime libs are static.
18924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18925
18926 # Compiler flag to allow reflexive dlopens.
18927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18928
18929 # Compiler flag to generate shared objects directly from archives.
18930 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18931
18932 # Whether the compiler copes with passing no objects directly.
18933 compiler_needs_object=$lt_compiler_needs_object
18934
18935 # Create an old-style archive from a shared archive.
18936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18937
18938 # Create a temporary old-style archive to link instead of a shared archive.
18939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18940
18941 # Commands used to build a shared archive.
18942 archive_cmds=$lt_archive_cmds
18943 archive_expsym_cmds=$lt_archive_expsym_cmds
18944
18945 # Commands used to build a loadable module if different from building
18946 # a shared archive.
18947 module_cmds=$lt_module_cmds
18948 module_expsym_cmds=$lt_module_expsym_cmds
18949
18950 # Whether we are building with GNU ld or not.
18951 with_gnu_ld=$lt_with_gnu_ld
18952
18953 # Flag that allows shared libraries with undefined symbols to be built.
18954 allow_undefined_flag=$lt_allow_undefined_flag
18955
18956 # Flag that enforces no undefined symbols.
18957 no_undefined_flag=$lt_no_undefined_flag
18958
18959 # Flag to hardcode \$libdir into a binary during linking.
18960 # This must work even if \$libdir does not exist
18961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18962
18963 # Whether we need a single "-rpath" flag with a separated argument.
18964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18965
18966 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18967 # DIR into the resulting binary.
18968 hardcode_direct=$hardcode_direct
18969
18970 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18971 # DIR into the resulting binary and the resulting library dependency is
18972 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18973 # library is relocated.
18974 hardcode_direct_absolute=$hardcode_direct_absolute
18975
18976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18977 # into the resulting binary.
18978 hardcode_minus_L=$hardcode_minus_L
18979
18980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18981 # into the resulting binary.
18982 hardcode_shlibpath_var=$hardcode_shlibpath_var
18983
18984 # Set to "yes" if building a shared library automatically hardcodes DIR
18985 # into the library and all subsequent libraries and executables linked
18986 # against it.
18987 hardcode_automatic=$hardcode_automatic
18988
18989 # Set to yes if linker adds runtime paths of dependent libraries
18990 # to runtime path list.
18991 inherit_rpath=$inherit_rpath
18992
18993 # Whether libtool must link a program against all its dependency libraries.
18994 link_all_deplibs=$link_all_deplibs
18995
18996 # Set to "yes" if exported symbols are required.
18997 always_export_symbols=$always_export_symbols
18998
18999 # The commands to list exported symbols.
19000 export_symbols_cmds=$lt_export_symbols_cmds
19001
19002 # Symbols that should not be listed in the preloaded symbols.
19003 exclude_expsyms=$lt_exclude_expsyms
19004
19005 # Symbols that must always be exported.
19006 include_expsyms=$lt_include_expsyms
19007
19008 # Commands necessary for linking programs (against libraries) with templates.
19009 prelink_cmds=$lt_prelink_cmds
19010
19011 # Commands necessary for finishing linking programs.
19012 postlink_cmds=$lt_postlink_cmds
19013
19014 # Specify filename containing input files.
19015 file_list_spec=$lt_file_list_spec
19016
19017 # How to hardcode a shared library path into an executable.
19018 hardcode_action=$hardcode_action
19019
19020 # ### END LIBTOOL CONFIG
19021
19022 _LT_EOF
19023
19024 cat <<'_LT_EOF' >> "$cfgfile"
19025
19026 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19027
19028 # func_munge_path_list VARIABLE PATH
19029 # -----------------------------------
19030 # VARIABLE is name of variable containing _space_ separated list of
19031 # directories to be munged by the contents of PATH, which is string
19032 # having a format:
19033 # "DIR[:DIR]:"
19034 # string "DIR[ DIR]" will be prepended to VARIABLE
19035 # ":DIR[:DIR]"
19036 # string "DIR[ DIR]" will be appended to VARIABLE
19037 # "DIRP[:DIRP]::[DIRA:]DIRA"
19038 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19039 # "DIRA[ DIRA]" will be appended to VARIABLE
19040 # "DIR[:DIR]"
19041 # VARIABLE will be replaced by "DIR[ DIR]"
19042 func_munge_path_list ()
19043 {
19044 case x$2 in
19045 x)
19046 ;;
19047 *:)
19048 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19049 ;;
19050 x:*)
19051 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19052 ;;
19053 *::*)
19054 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19055 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19056 ;;
19057 *)
19058 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19059 ;;
19060 esac
19061 }
19062
19063
19064 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19065 func_cc_basename ()
19066 {
19067 for cc_temp in $*""; do
19068 case $cc_temp in
19069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19071 \-*) ;;
19072 *) break;;
19073 esac
19074 done
19075 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19076 }
19077
19078
19079 # ### END FUNCTIONS SHARED WITH CONFIGURE
19080
19081 _LT_EOF
19082
19083 case $host_os in
19084 aix3*)
19085 cat <<\_LT_EOF >> "$cfgfile"
19086 # AIX sometimes has problems with the GCC collect2 program. For some
19087 # reason, if we set the COLLECT_NAMES environment variable, the problems
19088 # vanish in a puff of smoke.
19089 if test set != "${COLLECT_NAMES+set}"; then
19090 COLLECT_NAMES=
19091 export COLLECT_NAMES
19092 fi
19093 _LT_EOF
19094 ;;
19095 esac
19096
19097
19098
19099 ltmain=$ac_aux_dir/ltmain.sh
19100
19101
19102 # We use sed instead of cat because bash on DJGPP gets confused if
19103 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19104 # text mode, it properly converts lines to CR/LF. This bash problem
19105 # is reportedly fixed, but why not run on old versions too?
19106 $SED '$q' "$ltmain" >> "$cfgfile" \
19107 || (rm -f "$cfgfile"; exit 1)
19108
19109 mv -f "$cfgfile" "$ofile" ||
19110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19111 chmod +x "$ofile"
19112
19113 ## KPSE_DLL_NAME: Specify the DLL name
19114 if test "x$kpse_dll_name" != x; then
19115 $SED '/^soname_spec=/a\
19116 ## KPSE_DLL_NAME: Specify the DLL name\
19117 soname_spec='$kpse_dll_name'.dll\
19118 ' "$ofile" >"$cfgfile"
19119 mv "$cfgfile" "$ofile" ||
19120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19121 chmod +x "$ofile"
19122 fi
19123 ;;
19124
19125 esac
19126 done # for ac_tag
19127
19128
19129 as_fn_exit 0
19130 _ACEOF
19131 ac_clean_files=$ac_clean_files_save
19132
19133 test $ac_write_fail = 0 ||
19134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19135
19136 ac_configure_args="$ac_configure_args DASM_ARCH=$DASM_ARCH"
19137 if test "x$cross_compiling" = xyes
19138 then :
19139 if test "x$cache_file" != x/dev/null
19140 then :
19141 cache_file=config.cache
19142 fi
19143 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
19144 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
19145 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
19146 fi
19147
19148 # configure is writing to config.log, and then calls config.status.
19149 # config.status does its own redirection, appending to config.log.
19150 # Unfortunately, on DOS this fails, as config.log is still kept open
19151 # by configure, so config.status won't be able to write to it; its
19152 # output is simply discarded. So we exec the FD to /dev/null,
19153 # effectively closing config.log, so it can be properly (re)opened and
19154 # appended to by config.status. When coming back to configure, we
19155 # need to make the FD available again.
19156 if test "$no_create" != yes; then
19157 ac_cs_success=:
19158 ac_config_status_args=
19159 test "$silent" = yes &&
19160 ac_config_status_args="$ac_config_status_args --quiet"
19161 exec 5>/dev/null
19162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19163 exec 5>>config.log
19164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19165 # would make configure fail if this is the last instruction.
19166 $ac_cs_success || as_fn_exit 1
19167 fi
19168
19169 #
19170 # CONFIG_SUBDIRS section.
19171 #
19172 if test "$no_recursion" != yes; then
19173
19174 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19175 # so they do not pile up.
19176 ac_sub_configure_args=
19177 ac_prev=
19178 eval "set x $ac_configure_args"
19179 shift
19180 for ac_arg
19181 do
19182 if test -n "$ac_prev"; then
19183 ac_prev=
19184 continue
19185 fi
19186 case $ac_arg in
19187 -cache-file | --cache-file | --cache-fil | --cache-fi \
19188 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19189 ac_prev=cache_file ;;
19190 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19191 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19192 | --c=*)
19193 ;;
19194 --config-cache | -C)
19195 ;;
19196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19197 ac_prev=srcdir ;;
19198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19199 ;;
19200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19201 ac_prev=prefix ;;
19202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19203 ;;
19204 --disable-option-checking)
19205 ;;
19206 *)
19207 case $ac_arg in
19208 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19209 esac
19210 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19211 esac
19212 done
19213
19214 # Always prepend --prefix to ensure using the same prefix
19215 # in subdir configurations.
19216 ac_arg="--prefix=$prefix"
19217 case $ac_arg in
19218 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19219 esac
19220 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19221
19222 # Pass --silent
19223 if test "$silent" = yes; then
19224 ac_sub_configure_args="--silent $ac_sub_configure_args"
19225 fi
19226
19227 # Always prepend --disable-option-checking to silence warnings, since
19228 # different subdirs can have different --enable and --with options.
19229 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19230
19231 ac_popdir=`pwd`
19232 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19233
19234 # Do not complain, so a configure script can configure whichever
19235 # parts of a large source tree are present.
19236 test -d "$srcdir/$ac_dir" || continue
19237
19238 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19240 printf "%s\n" "$ac_msg" >&6
19241 as_dir="$ac_dir"; as_fn_mkdir_p
19242 ac_builddir=.
19243
19244 case "$ac_dir" in
19245 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19246 *)
19247 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19248 # A ".." for each directory in $ac_dir_suffix.
19249 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19250 case $ac_top_builddir_sub in
19251 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19252 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19253 esac ;;
19254 esac
19255 ac_abs_top_builddir=$ac_pwd
19256 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19257 # for backward compatibility:
19258 ac_top_builddir=$ac_top_build_prefix
19259
19260 case $srcdir in
19261 .) # We are building in place.
19262 ac_srcdir=.
19263 ac_top_srcdir=$ac_top_builddir_sub
19264 ac_abs_top_srcdir=$ac_pwd ;;
19265 [\\/]* | ?:[\\/]* ) # Absolute name.
19266 ac_srcdir=$srcdir$ac_dir_suffix;
19267 ac_top_srcdir=$srcdir
19268 ac_abs_top_srcdir=$srcdir ;;
19269 *) # Relative name.
19270 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19271 ac_top_srcdir=$ac_top_build_prefix$srcdir
19272 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19273 esac
19274 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19275
19276
19277 cd "$ac_dir"
19278
19279 # Check for configure.gnu first; this name is used for a wrapper for
19280 # Metaconfig's "Configure" on case-insensitive file systems.
19281 if test -f "$ac_srcdir/configure.gnu"; then
19282 ac_sub_configure=$ac_srcdir/configure.gnu
19283 elif test -f "$ac_srcdir/configure"; then
19284 ac_sub_configure=$ac_srcdir/configure
19285 else
19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19287 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19288 ac_sub_configure=
19289 fi
19290
19291 # The recursion is here.
19292 if test -n "$ac_sub_configure"; then
19293 # Make the cache file name correct relative to the subdirectory.
19294 case $cache_file in
19295 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19296 *) # Relative name.
19297 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19298 esac
19299
19300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19301 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19302 # The eval makes quoting arguments work.
19303 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19304 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19305 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19306 fi
19307
19308 cd "$ac_popdir"
19309 done
19310 fi
19311 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19313 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19314 fi
19315
19316