beta-0.89.2
[luatex.git] / source / texk / kpathsea / configure
blob7ca877fb6c9d6bd2691c9fbbf84dc193cfc74a7a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Kpathsea 6.2.2dev.
5 # Report bugs to <tex-k@tug.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='Kpathsea'
592 PACKAGE_TARNAME='kpathsea'
593 PACKAGE_VERSION='6.2.2dev'
594 PACKAGE_STRING='Kpathsea 6.2.2dev'
595 PACKAGE_BUGREPORT='tex-k@tug.org'
596 PACKAGE_URL=''
598 ac_unique_file="pathsearch.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 have_EXEEXT_FALSE
639 have_EXEEXT_TRUE
640 LT_OBJDIR
641 MINGW32_FALSE
642 MINGW32_TRUE
643 WIN32_FALSE
644 WIN32_TRUE
645 LIBOBJS
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
657 LN_S
659 ac_ct_DUMPBIN
660 DUMPBIN
662 FGREP
663 EGREP
664 GREP
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 LIBTOOL
675 OBJDUMP
676 DLLTOOL
678 WARNING_CFLAGS
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
696 MAINT
697 MAINTAINER_MODE_FALSE
698 MAINTAINER_MODE_TRUE
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 WEB2CVERSION
727 KPSE_LT_VERSINFO
728 KPSEVERSION
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_maintainer_mode
772 enable_dependency_tracking
773 enable_compiler_warnings
774 enable_shared
775 enable_static
776 with_pic
777 enable_fast_install
778 with_aix_soname
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 enable_largefile
783 enable_mktexmf_default
784 enable_mktexpk_default
785 enable_mktextfm_default
786 enable_mkocp_default
787 enable_mkofm_default
788 enable_mktexfmt_default
789 enable_mktextex_default
790 with_snprintf_wrapper
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 LT_SYS_LIBRARY_PATH
801 CPP'
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
852 ac_prev=
853 ac_dashdash=
854 for ac_option
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
859 ac_prev=
860 continue
863 case $ac_option in
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 *=) ac_optarg= ;;
866 *) ac_optarg=yes ;;
867 esac
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
873 ac_dashdash=yes ;;
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
892 --config-cache | -C)
893 cache_file=config.cache ;;
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 esac
1210 done
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265 test "$silent" = yes && exec 6>/dev/null
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1294 /^X\(\/\/\)$/{
1295 s//\1/
1298 /^X\(\/\).*/{
1299 s//\1/
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1307 else
1308 ac_srcdir_defaulted=no
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1336 # Report the --help message.
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 \`configure' configures Kpathsea 6.2.2dev to adapt to many kinds of systems.
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1349 Defaults for the options are specified in brackets.
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1373 For better control, use the options below.
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/kpathsea]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1395 _ACEOF
1397 cat <<\_ACEOF
1399 Program names:
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404 System types:
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 _ACEOF
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of Kpathsea 6.2.2dev:";;
1413 esac
1414 cat <<\_ACEOF
1416 Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-maintainer-mode
1423 enable make rules and dependencies not useful (and
1424 sometimes confusing) to the casual installer
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --enable-compiler-warnings=[no|min|yes|max|all]
1430 Turn on compiler warnings [default: yes if
1431 maintainer-mode, min otherwise]
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --disable-largefile omit support for large files
1438 --disable-mktexmf-default do not run mktexmf if MF source missing
1439 --disable-mktexpk-default do not run mktexpk if PK font missing
1440 --disable-mktextfm-default
1441 do not run mktextfm if TFM file missing
1442 --disable-mkocp-default do not run mkocp if OCP file missing
1443 --disable-mkofm-default do not run mkofm if OFM file missing
1444 --disable-mktexfmt-default
1445 do not run mktexfmt if format file missing
1446 --enable-mktextex-default run mktextex if TeX source missing
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --with-aix-soname=aix|svr4|both
1454 shared library versioning (aka "SONAME") variant to
1455 provide on AIX, [default=aix].
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1458 compiler's sysroot if not specified).
1459 --with-snprintf-wrapper use (v)snprintf wrapper functions [automatic for
1460 native compilation or Windows]
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 LT_SYS_LIBRARY_PATH
1471 User-defined run-time library search path.
1472 CPP C preprocessor
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to <tex-k@tug.org>.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 Kpathsea configure 6.2.2dev
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_link ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 test -x conftest$ac_exeext
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_c_try_link
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 eval "$3=yes"
1657 else
1658 eval "$3=no"
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 } # ac_fn_c_check_header_compile
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_cpp
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=$ac_status
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_run
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1770 #ifdef __STDC__
1771 # include <limits.h>
1772 #else
1773 # include <assert.h>
1774 #endif
1776 #undef $2
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 ();
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1793 main ()
1795 return $2 ();
1797 return 0;
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_func
1815 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818 # the include files in INCLUDES and setting the cache variable VAR
1819 # accordingly.
1820 ac_fn_c_check_header_mongrel ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if eval \${$3+:} false; then :
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 else
1833 # Is the header compilable?
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835 $as_echo_n "checking $2 usability... " >&6; }
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1843 else
1844 ac_header_compiler=no
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848 $as_echo "$ac_header_compiler" >&6; }
1850 # Is the header present?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852 $as_echo_n "checking $2 presence... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1859 else
1860 ac_header_preproc=no
1862 rm -f conftest.err conftest.i conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864 $as_echo "$ac_header_preproc" >&6; }
1866 # So? What about this header?
1867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 yes:no: )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 no:yes:* )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ( $as_echo "## ---------------------------- ##
1886 ## Report this to tex-k@tug.org ##
1887 ## ---------------------------- ##"
1888 ) | sed "s/^/$as_me: WARNING: /" >&2
1890 esac
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=\$ac_header_compiler"
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_header_mongrel
1906 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1907 # -------------------------------------------
1908 # Tests whether TYPE exists after having included INCLUDES, setting cache
1909 # variable VAR accordingly.
1910 ac_fn_c_check_type ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=no"
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 main ()
1925 if (sizeof ($2))
1926 return 0;
1928 return 0;
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 main ()
1938 if (sizeof (($2)))
1939 return 0;
1941 return 0;
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1946 else
1947 eval "$3=yes"
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_type
1960 # ac_fn_c_find_intX_t LINENO BITS VAR
1961 # -----------------------------------
1962 # Finds a signed integer type with width BITS, setting cache variable VAR
1963 # accordingly.
1964 ac_fn_c_find_intX_t ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1968 $as_echo_n "checking for int$2_t... " >&6; }
1969 if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 eval "$3=no"
1973 # Order is important - never check a type that is potentially smaller
1974 # than half of the expected target width.
1975 for ac_type in int$2_t 'int' 'long int' \
1976 'long long int' 'short int' 'signed char'; do
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $ac_includes_default
1980 enum { N = $2 / 2 - 1 };
1982 main ()
1984 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1985 test_array [0] = 0;
1986 return test_array [0];
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $ac_includes_default
1996 enum { N = $2 / 2 - 1 };
1998 main ()
2000 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2001 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2002 test_array [0] = 0;
2003 return test_array [0];
2006 return 0;
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2011 else
2012 case $ac_type in #(
2013 int$2_t) :
2014 eval "$3=yes" ;; #(
2015 *) :
2016 eval "$3=\$ac_type" ;;
2017 esac
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 if eval test \"x\$"$3"\" = x"no"; then :
2024 else
2025 break
2027 done
2029 eval ac_res=\$$3
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_find_intX_t
2036 # ac_fn_c_find_uintX_t LINENO BITS VAR
2037 # ------------------------------------
2038 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2039 # accordingly.
2040 ac_fn_c_find_uintX_t ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2044 $as_echo_n "checking for uint$2_t... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=no"
2049 # Order is important - never check a type that is potentially smaller
2050 # than half of the expected target width.
2051 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2052 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $ac_includes_default
2057 main ()
2059 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2060 test_array [0] = 0;
2061 return test_array [0];
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 case $ac_type in #(
2069 uint$2_t) :
2070 eval "$3=yes" ;; #(
2071 *) :
2072 eval "$3=\$ac_type" ;;
2073 esac
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 if eval test \"x\$"$3"\" = x"no"; then :
2078 else
2079 break
2081 done
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_find_uintX_t
2090 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2091 # ---------------------------------------------
2092 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2093 # accordingly.
2094 ac_fn_c_check_decl ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 as_decl_name=`echo $2|sed 's/ *(.*//'`
2098 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2100 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2101 if eval \${$3+:} false; then :
2102 $as_echo_n "(cached) " >&6
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2108 main ()
2110 #ifndef $as_decl_name
2111 #ifdef __cplusplus
2112 (void) $as_decl_use;
2113 #else
2114 (void) $as_decl_name;
2115 #endif
2116 #endif
2119 return 0;
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_decl
2136 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2137 # ----------------------------------------------------
2138 # Tries to find if the field MEMBER exists in type AGGR, after including
2139 # INCLUDES, setting cache variable VAR accordingly.
2140 ac_fn_c_check_member ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2144 $as_echo_n "checking for $2.$3... " >&6; }
2145 if eval \${$4+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 static $2 ac_aggr;
2155 if (ac_aggr.$3)
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$4=yes"
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static $2 ac_aggr;
2171 if (sizeof ac_aggr.$3)
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 eval "$4=no"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$4
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_member
2193 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2194 # --------------------------------------------
2195 # Tries to find the compile-time value of EXPR in a program that includes
2196 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2197 # computed
2198 ac_fn_c_compute_int ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 if test "$cross_compiling" = yes; then
2202 # Depending upon the size, compute the lo and hi bounds.
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2207 main ()
2209 static int test_array [1 - 2 * !(($2) >= 0)];
2210 test_array [0] = 0;
2211 return test_array [0];
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_lo=0 ac_mid=0
2219 while :; do
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2224 main ()
2226 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 test_array [0] = 0;
2228 return test_array [0];
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_hi=$ac_mid; break
2236 else
2237 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2238 if test $ac_lo -le $ac_mid; then
2239 ac_lo= ac_hi=
2240 break
2242 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 done
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 static int test_array [1 - 2 * !(($2) < 0)];
2254 test_array [0] = 0;
2255 return test_array [0];
2258 return 0;
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 ac_hi=-1 ac_mid=-1
2263 while :; do
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2271 test_array [0] = 0;
2272 return test_array [0];
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 ac_lo=$ac_mid; break
2280 else
2281 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2282 if test $ac_mid -le $ac_hi; then
2283 ac_lo= ac_hi=
2284 break
2286 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 done
2290 else
2291 ac_lo= ac_hi=
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 # Binary search between lo and hi bounds.
2297 while test "x$ac_lo" != "x$ac_hi"; do
2298 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2303 main ()
2305 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2306 test_array [0] = 0;
2307 return test_array [0];
2310 return 0;
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 ac_hi=$ac_mid
2315 else
2316 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 done
2320 case $ac_lo in #((
2321 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2322 '') ac_retval=1 ;;
2323 esac
2324 else
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2328 static long int longval () { return $2; }
2329 static unsigned long int ulongval () { return $2; }
2330 #include <stdio.h>
2331 #include <stdlib.h>
2333 main ()
2336 FILE *f = fopen ("conftest.val", "w");
2337 if (! f)
2338 return 1;
2339 if (($2) < 0)
2341 long int i = longval ();
2342 if (i != ($2))
2343 return 1;
2344 fprintf (f, "%ld", i);
2346 else
2348 unsigned long int i = ulongval ();
2349 if (i != ($2))
2350 return 1;
2351 fprintf (f, "%lu", i);
2353 /* Do not output a trailing newline, as this causes \r\n confusion
2354 on some platforms. */
2355 return ferror (f) || fclose (f) != 0;
2358 return 0;
2360 _ACEOF
2361 if ac_fn_c_try_run "$LINENO"; then :
2362 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2363 else
2364 ac_retval=1
2366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2367 conftest.$ac_objext conftest.beam conftest.$ac_ext
2368 rm -f conftest.val
2371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372 as_fn_set_status $ac_retval
2374 } # ac_fn_c_compute_int
2375 cat >config.log <<_ACEOF
2376 This file contains any messages produced by compilers while
2377 running configure, to aid debugging if configure makes a mistake.
2379 It was created by Kpathsea $as_me 6.2.2dev, which was
2380 generated by GNU Autoconf 2.69. Invocation command line was
2382 $ $0 $@
2384 _ACEOF
2385 exec 5>>config.log
2387 cat <<_ASUNAME
2388 ## --------- ##
2389 ## Platform. ##
2390 ## --------- ##
2392 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2393 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2394 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2395 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2396 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2399 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2401 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2402 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2403 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2404 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2405 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2406 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2407 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2409 _ASUNAME
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 $as_echo "PATH: $as_dir"
2417 done
2418 IFS=$as_save_IFS
2420 } >&5
2422 cat >&5 <<_ACEOF
2425 ## ----------- ##
2426 ## Core tests. ##
2427 ## ----------- ##
2429 _ACEOF
2432 # Keep a trace of the command line.
2433 # Strip out --no-create and --no-recursion so they do not pile up.
2434 # Strip out --silent because we don't want to record it for future runs.
2435 # Also quote any args containing shell meta-characters.
2436 # Make two passes to allow for proper duplicate-argument suppression.
2437 ac_configure_args=
2438 ac_configure_args0=
2439 ac_configure_args1=
2440 ac_must_keep_next=false
2441 for ac_pass in 1 2
2443 for ac_arg
2445 case $ac_arg in
2446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448 | -silent | --silent | --silen | --sile | --sil)
2449 continue ;;
2450 *\'*)
2451 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 esac
2453 case $ac_pass in
2454 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 if test $ac_must_keep_next = true; then
2458 ac_must_keep_next=false # Got value, back to normal.
2459 else
2460 case $ac_arg in
2461 *=* | --config-cache | -C | -disable-* | --disable-* \
2462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464 | -with-* | --with-* | -without-* | --without-* | --x)
2465 case "$ac_configure_args0 " in
2466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 esac
2469 -* ) ac_must_keep_next=true ;;
2470 esac
2472 as_fn_append ac_configure_args " '$ac_arg'"
2474 esac
2475 done
2476 done
2477 { ac_configure_args0=; unset ac_configure_args0;}
2478 { ac_configure_args1=; unset ac_configure_args1;}
2480 # When interrupted or exit'd, cleanup temporary files, and complete
2481 # config.log. We remove comments because anyway the quotes in there
2482 # would cause problems or look ugly.
2483 # WARNING: Use '\'' to represent an apostrophe within the trap.
2484 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485 trap 'exit_status=$?
2486 # Save into config.log some information that might help in debugging.
2488 echo
2490 $as_echo "## ---------------- ##
2491 ## Cache variables. ##
2492 ## ---------------- ##"
2493 echo
2494 # The following way of writing the cache mishandles newlines in values,
2496 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2497 eval ac_val=\$$ac_var
2498 case $ac_val in #(
2499 *${as_nl}*)
2500 case $ac_var in #(
2501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2503 esac
2504 case $ac_var in #(
2505 _ | IFS | as_nl) ;; #(
2506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2507 *) { eval $ac_var=; unset $ac_var;} ;;
2508 esac ;;
2509 esac
2510 done
2511 (set) 2>&1 |
2512 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2513 *${as_nl}ac_space=\ *)
2514 sed -n \
2515 "s/'\''/'\''\\\\'\'''\''/g;
2516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2517 ;; #(
2519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521 esac |
2522 sort
2524 echo
2526 $as_echo "## ----------------- ##
2527 ## Output variables. ##
2528 ## ----------------- ##"
2529 echo
2530 for ac_var in $ac_subst_vars
2532 eval ac_val=\$$ac_var
2533 case $ac_val in
2534 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 esac
2536 $as_echo "$ac_var='\''$ac_val'\''"
2537 done | sort
2538 echo
2540 if test -n "$ac_subst_files"; then
2541 $as_echo "## ------------------- ##
2542 ## File substitutions. ##
2543 ## ------------------- ##"
2544 echo
2545 for ac_var in $ac_subst_files
2547 eval ac_val=\$$ac_var
2548 case $ac_val in
2549 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2550 esac
2551 $as_echo "$ac_var='\''$ac_val'\''"
2552 done | sort
2553 echo
2556 if test -s confdefs.h; then
2557 $as_echo "## ----------- ##
2558 ## confdefs.h. ##
2559 ## ----------- ##"
2560 echo
2561 cat confdefs.h
2562 echo
2564 test "$ac_signal" != 0 &&
2565 $as_echo "$as_me: caught signal $ac_signal"
2566 $as_echo "$as_me: exit $exit_status"
2567 } >&5
2568 rm -f core *.core core.conftest.* &&
2569 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 exit $exit_status
2572 for ac_signal in 1 2 13 15; do
2573 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2574 done
2575 ac_signal=0
2577 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2578 rm -f -r conftest* confdefs.h
2580 $as_echo "/* confdefs.h */" > confdefs.h
2582 # Predefined preprocessor variables.
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_NAME "$PACKAGE_NAME"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590 _ACEOF
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2594 _ACEOF
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_STRING "$PACKAGE_STRING"
2598 _ACEOF
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602 _ACEOF
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_URL "$PACKAGE_URL"
2606 _ACEOF
2609 # Let the site file select an alternate cache file if it wants to.
2610 # Prefer an explicitly selected file to automatically selected ones.
2611 ac_site_file1=NONE
2612 ac_site_file2=NONE
2613 if test -n "$CONFIG_SITE"; then
2614 # We do not want a PATH search for config.site.
2615 case $CONFIG_SITE in #((
2616 -*) ac_site_file1=./$CONFIG_SITE;;
2617 */*) ac_site_file1=$CONFIG_SITE;;
2618 *) ac_site_file1=./$CONFIG_SITE;;
2619 esac
2620 elif test "x$prefix" != xNONE; then
2621 ac_site_file1=$prefix/share/config.site
2622 ac_site_file2=$prefix/etc/config.site
2623 else
2624 ac_site_file1=$ac_default_prefix/share/config.site
2625 ac_site_file2=$ac_default_prefix/etc/config.site
2627 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629 test "x$ac_site_file" = xNONE && continue
2630 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2632 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2633 sed 's/^/| /' "$ac_site_file" >&5
2634 . "$ac_site_file" \
2635 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 as_fn_error $? "failed to load site script $ac_site_file
2638 See \`config.log' for more details" "$LINENO" 5; }
2640 done
2642 if test -r "$cache_file"; then
2643 # Some versions of bash will fail to source /dev/null (special files
2644 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2645 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2647 $as_echo "$as_me: loading cache $cache_file" >&6;}
2648 case $cache_file in
2649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2650 *) . "./$cache_file";;
2651 esac
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2655 $as_echo "$as_me: creating cache $cache_file" >&6;}
2656 >$cache_file
2659 # Check that the precious variables saved in the cache have kept the same
2660 # value.
2661 ac_cache_corrupted=false
2662 for ac_var in $ac_precious_vars; do
2663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2664 eval ac_new_set=\$ac_env_${ac_var}_set
2665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2666 eval ac_new_val=\$ac_env_${ac_var}_value
2667 case $ac_old_set,$ac_new_set in
2668 set,)
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2670 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2672 ,set)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2674 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,);;
2678 if test "x$ac_old_val" != "x$ac_new_val"; then
2679 # differences in whitespace do not lead to failure.
2680 ac_old_val_w=`echo x $ac_old_val`
2681 ac_new_val_w=`echo x $ac_new_val`
2682 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2684 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2685 ac_cache_corrupted=:
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2688 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2689 eval $ac_var=\$ac_old_val
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2692 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2694 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2695 fi;;
2696 esac
2697 # Pass precious variables to config.status.
2698 if test "$ac_new_set" = set; then
2699 case $ac_new_val in
2700 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2701 *) ac_arg=$ac_var=$ac_new_val ;;
2702 esac
2703 case " $ac_configure_args " in
2704 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2705 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 esac
2708 done
2709 if $ac_cache_corrupted; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2713 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2714 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2716 ## -------------------- ##
2717 ## Main body of script. ##
2718 ## -------------------- ##
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729 ac_aux_dir=
2730 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2731 if test -f "$ac_dir/install-sh"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/install-sh -c"
2734 break
2735 elif test -f "$ac_dir/install.sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install.sh -c"
2738 break
2739 elif test -f "$ac_dir/shtool"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/shtool install -c"
2742 break
2744 done
2745 if test -z "$ac_aux_dir"; then
2746 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2749 # These three variables are undocumented and unsupported,
2750 # and are intended to be withdrawn in a future Autoconf release.
2751 # They can cause serious problems if a builder's source tree is in a directory
2752 # whose full name contains unusual characters.
2753 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2754 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2755 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2760 KPSEVERSION=6.2.2dev
2763 KPSE_LT_VERSINFO=8:2:2
2767 WEB2CVERSION=" (TeX Live 2016/dev)"
2770 am__api_version='1.15'
2772 # Find a good install program. We prefer a C program (faster),
2773 # so one script is as good as another. But avoid the broken or
2774 # incompatible versions:
2775 # SysV /etc/install, /usr/sbin/install
2776 # SunOS /usr/etc/install
2777 # IRIX /sbin/install
2778 # AIX /bin/install
2779 # AmigaOS /C/install, which installs bootblocks on floppy discs
2780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2783 # OS/2's system install, which has a completely different semantic
2784 # ./install, which can be erroneously created by make from ./install.sh.
2785 # Reject install programs that cannot install multiple files.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2787 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2788 if test -z "$INSTALL"; then
2789 if ${ac_cv_path_install+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 # Account for people who put trailing slashes in PATH elements.
2798 case $as_dir/ in #((
2799 ./ | .// | /[cC]/* | \
2800 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2801 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2802 /usr/ucb/* ) ;;
2804 # OSF1 and SCO ODT 3.0 have their own names for install.
2805 # Don't use installbsd from OSF since it installs stuff as root
2806 # by default.
2807 for ac_prog in ginstall scoinst install; do
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2810 if test $ac_prog = install &&
2811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # AIX install. It has an incompatible calling convention.
2814 elif test $ac_prog = install &&
2815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # program-specific install script used by HP pwplus--don't use.
2818 else
2819 rm -rf conftest.one conftest.two conftest.dir
2820 echo one > conftest.one
2821 echo two > conftest.two
2822 mkdir conftest.dir
2823 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2824 test -s conftest.one && test -s conftest.two &&
2825 test -s conftest.dir/conftest.one &&
2826 test -s conftest.dir/conftest.two
2827 then
2828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2829 break 3
2833 done
2834 done
2836 esac
2838 done
2839 IFS=$as_save_IFS
2841 rm -rf conftest.one conftest.two conftest.dir
2844 if test "${ac_cv_path_install+set}" = set; then
2845 INSTALL=$ac_cv_path_install
2846 else
2847 # As a last resort, use the slow shell script. Don't cache a
2848 # value for INSTALL within a source directory, because that will
2849 # break other packages using the cache if that directory is
2850 # removed, or if the value is a relative name.
2851 INSTALL=$ac_install_sh
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2855 $as_echo "$INSTALL" >&6; }
2857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2858 # It thinks the first close brace ends the variable substitution.
2859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2866 $as_echo_n "checking whether build environment is sane... " >&6; }
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2869 am_lf='
2871 case `pwd` in
2872 *[\\\"\#\$\&\'\`$am_lf]*)
2873 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2874 esac
2875 case $srcdir in
2876 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2878 esac
2880 # Do 'set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2884 # directory).
2885 if (
2886 am_has_slept=no
2887 for am_try in 1 2; do
2888 echo "timestamp, slept: $am_has_slept" > conftest.file
2889 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2890 if test "$*" = "X"; then
2891 # -L didn't work.
2892 set X `ls -t "$srcdir/configure" conftest.file`
2894 if test "$*" != "X $srcdir/configure conftest.file" \
2895 && test "$*" != "X conftest.file $srcdir/configure"; then
2897 # If neither matched, then we have a broken ls. This can happen
2898 # if, for instance, CONFIG_SHELL is bash and it inherits a
2899 # broken ls alias from the environment. This has actually
2900 # happened. Such a system could not be considered "sane".
2901 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2902 alias in your environment" "$LINENO" 5
2904 if test "$2" = conftest.file || test $am_try -eq 2; then
2905 break
2907 # Just in case.
2908 sleep 1
2909 am_has_slept=yes
2910 done
2911 test "$2" = conftest.file
2913 then
2914 # Ok.
2916 else
2917 as_fn_error $? "newly created file is older than distributed files!
2918 Check your system clock" "$LINENO" 5
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921 $as_echo "yes" >&6; }
2922 # If we didn't sleep, we still need to ensure time stamps of config.status and
2923 # generated files are strictly newer.
2924 am_sleep_pid=
2925 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2926 ( sleep 1 ) &
2927 am_sleep_pid=$!
2930 rm -f conftest.file
2932 test "$program_prefix" != NONE &&
2933 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2934 # Use a double $ so make ignores it.
2935 test "$program_suffix" != NONE &&
2936 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2937 # Double any \ or $.
2938 # By default was `s,x,x', remove it if useless.
2939 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2940 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2942 # Expand $ac_aux_dir to an absolute path.
2943 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2945 if test x"${MISSING+set}" != xset; then
2946 case $am_aux_dir in
2947 *\ * | *\ *)
2948 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2950 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2951 esac
2953 # Use eval to expand $SHELL
2954 if eval "$MISSING --is-lightweight"; then
2955 am_missing_run="$MISSING "
2956 else
2957 am_missing_run=
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2959 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2962 if test x"${install_sh+set}" != xset; then
2963 case $am_aux_dir in
2964 *\ * | *\ *)
2965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2967 install_sh="\${SHELL} $am_aux_dir/install-sh"
2968 esac
2971 # Installed binaries are usually stripped using 'strip' when the user
2972 # run "make install-strip". However 'strip' might not be the right
2973 # tool to use in cross-compilation environments, therefore Automake
2974 # will honor the 'STRIP' environment variable to overrule this program.
2975 if test "$cross_compiling" != no; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}strip; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$STRIP"; then
2985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 STRIP=$ac_cv_prog_STRIP
3005 if test -n "$STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3007 $as_echo "$STRIP" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3015 if test -z "$ac_cv_prog_STRIP"; then
3016 ac_ct_STRIP=$STRIP
3017 # Extract the first word of "strip", so it can be a program name with args.
3018 set dummy strip; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$ac_ct_STRIP"; then
3025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_STRIP="strip"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3040 IFS=$as_save_IFS
3044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3045 if test -n "$ac_ct_STRIP"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3047 $as_echo "$ac_ct_STRIP" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3053 if test "x$ac_ct_STRIP" = x; then
3054 STRIP=":"
3055 else
3056 case $cross_compiling:$ac_tool_warned in
3057 yes:)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060 ac_tool_warned=yes ;;
3061 esac
3062 STRIP=$ac_ct_STRIP
3064 else
3065 STRIP="$ac_cv_prog_STRIP"
3069 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3073 if test -z "$MKDIR_P"; then
3074 if ${ac_cv_path_mkdir+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_prog in mkdir gmkdir; do
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3086 'mkdir (GNU coreutils) '* | \
3087 'mkdir (coreutils) '* | \
3088 'mkdir (fileutils) '4.1*)
3089 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3090 break 3;;
3091 esac
3092 done
3093 done
3094 done
3095 IFS=$as_save_IFS
3099 test -d ./--version && rmdir ./--version
3100 if test "${ac_cv_path_mkdir+set}" = set; then
3101 MKDIR_P="$ac_cv_path_mkdir -p"
3102 else
3103 # As a last resort, use the slow shell script. Don't cache a
3104 # value for MKDIR_P within a source directory, because that will
3105 # break other packages using the cache if that directory is
3106 # removed, or if the value is a relative name.
3107 MKDIR_P="$ac_install_sh -d"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3111 $as_echo "$MKDIR_P" >&6; }
3113 for ac_prog in gawk mawk nawk awk
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_AWK+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$AWK"; then
3123 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_AWK="$ac_prog"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 AWK=$ac_cv_prog_AWK
3143 if test -n "$AWK"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3145 $as_echo "$AWK" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3152 test -n "$AWK" && break
3153 done
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3156 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3157 set x ${MAKE-make}
3158 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3159 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 cat >conftest.make <<\_ACEOF
3163 SHELL = /bin/sh
3164 all:
3165 @echo '@@@%%%=$(MAKE)=@@@%%%'
3166 _ACEOF
3167 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3169 *@@@%%%=?*=@@@%%%*)
3170 eval ac_cv_prog_make_${ac_make}_set=yes;;
3172 eval ac_cv_prog_make_${ac_make}_set=no;;
3173 esac
3174 rm -f conftest.make
3176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178 $as_echo "yes" >&6; }
3179 SET_MAKE=
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 SET_MAKE="MAKE=${MAKE-make}"
3186 rm -rf .tst 2>/dev/null
3187 mkdir .tst 2>/dev/null
3188 if test -d .tst; then
3189 am__leading_dot=.
3190 else
3191 am__leading_dot=_
3193 rmdir .tst 2>/dev/null
3195 # Check whether --enable-silent-rules was given.
3196 if test "${enable_silent_rules+set}" = set; then :
3197 enableval=$enable_silent_rules;
3200 case $enable_silent_rules in # (((
3201 yes) AM_DEFAULT_VERBOSITY=0;;
3202 no) AM_DEFAULT_VERBOSITY=1;;
3203 *) AM_DEFAULT_VERBOSITY=1;;
3204 esac
3205 am_make=${MAKE-make}
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3207 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3208 if ${am_cv_make_support_nested_variables+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 if $as_echo 'TRUE=$(BAR$(V))
3212 BAR0=false
3213 BAR1=true
3215 am__doit:
3216 @$(TRUE)
3217 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3218 am_cv_make_support_nested_variables=yes
3219 else
3220 am_cv_make_support_nested_variables=no
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3224 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3225 if test $am_cv_make_support_nested_variables = yes; then
3226 AM_V='$(V)'
3227 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3228 else
3229 AM_V=$AM_DEFAULT_VERBOSITY
3230 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3232 AM_BACKSLASH='\'
3234 DEPDIR="${am__leading_dot}deps"
3236 ac_config_commands="$ac_config_commands depfiles"
3239 am_make=${MAKE-make}
3240 cat > confinc << 'END'
3241 am__doit:
3242 @echo this is the am__doit target
3243 .PHONY: am__doit
3245 # If we don't find an include directive, just comment out the code.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3247 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3248 am__include="#"
3249 am__quote=
3250 _am_result=none
3251 # First try GNU make style include.
3252 echo "include confinc" > confmf
3253 # Ignore all kinds of additional output from 'make'.
3254 case `$am_make -s -f confmf 2> /dev/null` in #(
3255 *the\ am__doit\ target*)
3256 am__include=include
3257 am__quote=
3258 _am_result=GNU
3260 esac
3261 # Now try BSD make style include.
3262 if test "$am__include" = "#"; then
3263 echo '.include "confinc"' > confmf
3264 case `$am_make -s -f confmf 2> /dev/null` in #(
3265 *the\ am__doit\ target*)
3266 am__include=.include
3267 am__quote="\""
3268 _am_result=BSD
3270 esac
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3275 $as_echo "$_am_result" >&6; }
3276 rm -f confinc confmf
3278 # Check whether --enable-dependency-tracking was given.
3279 if test "${enable_dependency_tracking+set}" = set; then :
3280 enableval=$enable_dependency_tracking;
3283 if test "x$enable_dependency_tracking" != xno; then
3284 am_depcomp="$ac_aux_dir/depcomp"
3285 AMDEPBACKSLASH='\'
3286 am__nodep='_no'
3288 if test "x$enable_dependency_tracking" != xno; then
3289 AMDEP_TRUE=
3290 AMDEP_FALSE='#'
3291 else
3292 AMDEP_TRUE='#'
3293 AMDEP_FALSE=
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3324 done
3325 done
3326 IFS=$as_save_IFS
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$ac_cv_prog_CC"; then
3342 ac_ct_CC=$CC
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_CC="gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3364 done
3365 done
3366 IFS=$as_save_IFS
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388 CC=$ac_ct_CC
3390 else
3391 CC="$ac_cv_prog_CC"
3394 if test -z "$CC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}cc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3419 IFS=$as_save_IFS
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3458 ac_cv_prog_CC="cc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3464 IFS=$as_save_IFS
3466 if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3491 if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in cl.exe
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$CC" && break
3533 done
3535 if test -z "$CC"; then
3536 ac_ct_CC=$CC
3537 for ac_prog in cl.exe
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3576 test -n "$ac_ct_CC" && break
3577 done
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "no acceptable C compiler found in \$PATH
3598 See \`config.log' for more details" "$LINENO" 5; }
3600 # Provide some information about the compiler.
3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602 set X $ac_compile
3603 ac_compiler=$2
3604 for ac_option in --version -v -V -qversion; do
3605 { { ac_try="$ac_compiler $ac_option >&5"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613 ac_status=$?
3614 if test -s conftest.err; then
3615 sed '10a\
3616 ... rest of stderr output deleted ...
3617 10q' conftest.err >conftest.er1
3618 cat conftest.er1 >&5
3620 rm -f conftest.er1 conftest.err
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3623 done
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3629 main ()
3633 return 0;
3635 _ACEOF
3636 ac_clean_files_save=$ac_clean_files
3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638 # Try to create an executable without -o first, disregard a.out.
3639 # It will help us diagnose broken compilers, and finding out an intuition
3640 # of exeext.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642 $as_echo_n "checking whether the C compiler works... " >&6; }
3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3645 # The possible output files:
3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3648 ac_rmfiles=
3649 for ac_file in $ac_files
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654 esac
3655 done
3656 rm -f $ac_rmfiles
3658 if { { ac_try="$ac_link_default"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link_default") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3672 # so that the user can short-circuit this test for compilers unknown to
3673 # Autoconf.
3674 for ac_file in $ac_files ''
3676 test -f "$ac_file" || continue
3677 case $ac_file in
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3680 [ab].out )
3681 # We found the default executable, but exeext='' is most
3682 # certainly right.
3683 break;;
3684 *.* )
3685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3686 then :; else
3687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689 # We set ac_cv_exeext here because the later test for it is not
3690 # safe: cross compilers may not add the suffix if given an `-o'
3691 # argument, so we may need to know it at that point already.
3692 # Even if this section looks crufty: it has the advantage of
3693 # actually working.
3694 break;;
3696 break;;
3697 esac
3698 done
3699 test "$ac_cv_exeext" = no && ac_cv_exeext=
3701 else
3702 ac_file=''
3704 if test -z "$ac_file"; then :
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error 77 "C compiler cannot create executables
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 ac_exeext=$ac_cv_exeext
3724 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725 ac_clean_files=$ac_clean_files_save
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727 $as_echo_n "checking for suffix of executables... " >&6; }
3728 if { { ac_try="$ac_link"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_link") 2>&5
3736 ac_status=$?
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; then :
3739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3741 # work properly (i.e., refer to `conftest.exe'), while it won't with
3742 # `rm'.
3743 for ac_file in conftest.exe conftest conftest.*; do
3744 test -f "$ac_file" || continue
3745 case $ac_file in
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 break;;
3749 * ) break;;
3750 esac
3751 done
3752 else
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details" "$LINENO" 5; }
3758 rm -f conftest conftest$ac_cv_exeext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760 $as_echo "$ac_cv_exeext" >&6; }
3762 rm -f conftest.$ac_ext
3763 EXEEXT=$ac_cv_exeext
3764 ac_exeext=$EXEEXT
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <stdio.h>
3769 main ()
3771 FILE *f = fopen ("conftest.out", "w");
3772 return ferror (f) || fclose (f) != 0;
3775 return 0;
3777 _ACEOF
3778 ac_clean_files="$ac_clean_files conftest.out"
3779 # Check that the compiler produces executables we can run. If not, either
3780 # the compiler is broken, or we cross compile.
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782 $as_echo_n "checking whether we are cross compiling... " >&6; }
3783 if test "$cross_compiling" != yes; then
3784 { { ac_try="$ac_link"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_link") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 if { ac_try='./conftest$ac_cv_exeext'
3796 { { case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_try") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; }; then
3806 cross_compiling=no
3807 else
3808 if test "$cross_compiling" = maybe; then
3809 cross_compiling=yes
3810 else
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details" "$LINENO" 5; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820 $as_echo "$cross_compiling" >&6; }
3822 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825 $as_echo_n "checking for suffix of object files... " >&6; }
3826 if ${ac_cv_objext+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3833 main ()
3837 return 0;
3839 _ACEOF
3840 rm -f conftest.o conftest.obj
3841 if { { ac_try="$ac_compile"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compile") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 for ac_file in conftest.o conftest.obj conftest.*; do
3853 test -f "$ac_file" || continue;
3854 case $ac_file in
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 break;;
3858 esac
3859 done
3860 else
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error $? "cannot compute suffix of object files: cannot compile
3867 See \`config.log' for more details" "$LINENO" 5; }
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872 $as_echo "$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$OBJEXT
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877 if ${ac_cv_c_compiler_gnu+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 main ()
3886 #ifndef __GNUC__
3887 choke me
3888 #endif
3891 return 0;
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_compiler_gnu=yes
3896 else
3897 ac_compiler_gnu=no
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905 if test $ac_compiler_gnu = yes; then
3906 GCC=yes
3907 else
3908 GCC=
3910 ac_test_CFLAGS=${CFLAGS+set}
3911 ac_save_CFLAGS=$CFLAGS
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3914 if ${ac_cv_prog_cc_g+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3919 ac_cv_prog_cc_g=no
3920 CFLAGS="-g"
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3925 main ()
3929 return 0;
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_prog_cc_g=yes
3934 else
3935 CFLAGS=""
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3940 main ()
3944 return 0;
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3949 else
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3951 CFLAGS="-g"
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3956 main ()
3960 return 0;
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_prog_cc_g=yes
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974 $as_echo "$ac_cv_prog_cc_g" >&6; }
3975 if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS=$ac_save_CFLAGS
3977 elif test $ac_cv_prog_cc_g = yes; then
3978 if test "$GCC" = yes; then
3979 CFLAGS="-g -O2"
3980 else
3981 CFLAGS="-g"
3983 else
3984 if test "$GCC" = yes; then
3985 CFLAGS="-O2"
3986 else
3987 CFLAGS=
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992 if ${ac_cv_prog_cc_c89+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 ac_cv_prog_cc_c89=no
3996 ac_save_CC=$CC
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #include <stdarg.h>
4000 #include <stdio.h>
4001 struct stat;
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006 char **p;
4007 int i;
4009 return p[i];
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4013 char *s;
4014 va_list v;
4015 va_start (v,p);
4016 s = g (p, va_arg (v,int));
4017 va_end (v);
4018 return s;
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4042 main ()
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 return 0;
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068 xno)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4092 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4093 if ${am_cv_prog_cc_c_o+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 main ()
4104 return 0;
4106 _ACEOF
4107 # Make sure it works both with $CC and with simple cc.
4108 # Following AC_PROG_CC_C_O, we do the test twice because some
4109 # compilers refuse to overwrite an existing .o file with -o,
4110 # though they will create one.
4111 am_cv_prog_cc_c_o=yes
4112 for am_i in 1 2; do
4113 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4114 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } \
4118 && test -f conftest2.$ac_objext; then
4119 : OK
4120 else
4121 am_cv_prog_cc_c_o=no
4122 break
4124 done
4125 rm -f core conftest*
4126 unset am_i
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4129 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4130 if test "$am_cv_prog_cc_c_o" != yes; then
4131 # Losing compiler, so override with the script.
4132 # FIXME: It is wrong to rewrite CC.
4133 # But if we don't then we get into trouble of one sort or another.
4134 # A longer-term fix would be to have automake use am__CC in this case,
4135 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4136 CC="$am_aux_dir/compile $CC"
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 depcc="$CC" am_compiler_list=
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4148 $as_echo_n "checking dependency style of $depcc... " >&6; }
4149 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4153 # We make a subdir and do the tests there. Otherwise we can end up
4154 # making bogus files that we don't know about and never remove. For
4155 # instance it was reported that on HP-UX the gcc test will end up
4156 # making a dummy file named 'D' -- because '-MD' means "put the output
4157 # in D".
4158 rm -rf conftest.dir
4159 mkdir conftest.dir
4160 # Copy depcomp to subdir because otherwise we won't find it if we're
4161 # using a relative directory.
4162 cp "$am_depcomp" conftest.dir
4163 cd conftest.dir
4164 # We will build objects and dependencies in a subdirectory because
4165 # it helps to detect inapplicable dependency modes. For instance
4166 # both Tru64's cc and ICC support -MD to output dependencies as a
4167 # side effect of compilation, but ICC will put the dependencies in
4168 # the current directory while Tru64 will put them in the object
4169 # directory.
4170 mkdir sub
4172 am_cv_CC_dependencies_compiler_type=none
4173 if test "$am_compiler_list" = ""; then
4174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4176 am__universal=false
4177 case " $depcc " in #(
4178 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4179 esac
4181 for depmode in $am_compiler_list; do
4182 # Setup a source with many dependencies, because some compilers
4183 # like to wrap large dependency lists on column 80 (with \), and
4184 # we should not choose a depcomp mode which is confused by this.
4186 # We need to recreate these files for each test, as the compiler may
4187 # overwrite some of them when testing with obscure command lines.
4188 # This happens at least with the AIX C compiler.
4189 : > sub/conftest.c
4190 for i in 1 2 3 4 5 6; do
4191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4192 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4193 # Solaris 10 /bin/sh.
4194 echo '/* dummy */' > sub/conftst$i.h
4195 done
4196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4199 # mode. It turns out that the SunPro C++ compiler does not properly
4200 # handle '-M -o', and we need to detect this. Also, some Intel
4201 # versions had trouble with output in subdirs.
4202 am__obj=sub/conftest.${OBJEXT-o}
4203 am__minus_obj="-o $am__obj"
4204 case $depmode in
4205 gcc)
4206 # This depmode causes a compiler race in universal mode.
4207 test "$am__universal" = false || continue
4209 nosideeffect)
4210 # After this tag, mechanisms are not by side-effect, so they'll
4211 # only be used when explicitly requested.
4212 if test "x$enable_dependency_tracking" = xyes; then
4213 continue
4214 else
4215 break
4218 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4219 # This compiler won't grok '-c -o', but also, the minuso test has
4220 # not run yet. These depmodes are late enough in the game, and
4221 # so weak that their functioning should not be impacted.
4222 am__obj=conftest.${OBJEXT-o}
4223 am__minus_obj=
4225 none) break ;;
4226 esac
4227 if depmode=$depmode \
4228 source=sub/conftest.c object=$am__obj \
4229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4231 >/dev/null 2>conftest.err &&
4232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4236 # icc doesn't choke on unknown options, it will just issue warnings
4237 # or remarks (even with -Werror). So we grep stderr for any message
4238 # that says an option was ignored or not supported.
4239 # When given -MP, icc 7.0 and 7.1 complain thusly:
4240 # icc: Command line warning: ignoring option '-M'; no argument required
4241 # The diagnosis changed in icc 8.0:
4242 # icc: Command line remark: option '-MP' not supported
4243 if (grep 'ignoring option' conftest.err ||
4244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4245 am_cv_CC_dependencies_compiler_type=$depmode
4246 break
4249 done
4251 cd ..
4252 rm -rf conftest.dir
4253 else
4254 am_cv_CC_dependencies_compiler_type=none
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4259 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4260 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4263 test "x$enable_dependency_tracking" != xno \
4264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4265 am__fastdepCC_TRUE=
4266 am__fastdepCC_FALSE='#'
4267 else
4268 am__fastdepCC_TRUE='#'
4269 am__fastdepCC_FALSE=
4274 # Check whether --enable-compiler-warnings was given.
4275 if test "${enable_compiler_warnings+set}" = set; then :
4276 enableval=$enable_compiler_warnings;
4278 case $enable_compiler_warnings in #(
4279 no | min | yes | max | all) :
4280 ;; #(
4281 *) :
4282 if test "x$enable_maintainer_mode" = xyes; then :
4283 enable_compiler_warnings=yes
4284 else
4285 enable_compiler_warnings=min
4286 fi ;;
4287 esac
4289 case `pwd` in
4290 *\ * | *\ *)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4292 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4293 esac
4297 macro_version='2.4.6'
4298 macro_revision='2.4.6'
4312 ltmain=$ac_aux_dir/ltmain.sh
4314 # Make sure we can run config.sub.
4315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4316 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4319 $as_echo_n "checking build system type... " >&6; }
4320 if ${ac_cv_build+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 ac_build_alias=$build_alias
4324 test "x$ac_build_alias" = x &&
4325 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4326 test "x$ac_build_alias" = x &&
4327 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4329 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4333 $as_echo "$ac_cv_build" >&6; }
4334 case $ac_cv_build in
4335 *-*-*) ;;
4336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4337 esac
4338 build=$ac_cv_build
4339 ac_save_IFS=$IFS; IFS='-'
4340 set x $ac_cv_build
4341 shift
4342 build_cpu=$1
4343 build_vendor=$2
4344 shift; shift
4345 # Remember, the first character of IFS is used to create $*,
4346 # except with old shells:
4347 build_os=$*
4348 IFS=$ac_save_IFS
4349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4353 $as_echo_n "checking host system type... " >&6; }
4354 if ${ac_cv_host+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test "x$host_alias" = x; then
4358 ac_cv_host=$ac_cv_build
4359 else
4360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4366 $as_echo "$ac_cv_host" >&6; }
4367 case $ac_cv_host in
4368 *-*-*) ;;
4369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4370 esac
4371 host=$ac_cv_host
4372 ac_save_IFS=$IFS; IFS='-'
4373 set x $ac_cv_host
4374 shift
4375 host_cpu=$1
4376 host_vendor=$2
4377 shift; shift
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4380 host_os=$*
4381 IFS=$ac_save_IFS
4382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4385 # Backslashify metacharacters that are still active within
4386 # double-quoted strings.
4387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4389 # Same as above, but do not quote variable references.
4390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4392 # Sed substitution to delay expansion of an escaped shell variable in a
4393 # double_quote_subst'ed string.
4394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4396 # Sed substitution to delay expansion of an escaped single quote.
4397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4399 # Sed substitution to avoid accidental globbing in evaled expressions
4400 no_glob_subst='s/\*/\\\*/g'
4402 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4407 $as_echo_n "checking how to print strings... " >&6; }
4408 # Test print first, because it will be a builtin if present.
4409 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4410 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4411 ECHO='print -r --'
4412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4413 ECHO='printf %s\n'
4414 else
4415 # Use this function as a fallback that always works.
4416 func_fallback_echo ()
4418 eval 'cat <<_LTECHO_EOF
4420 _LTECHO_EOF'
4422 ECHO='func_fallback_echo'
4425 # func_echo_all arg...
4426 # Invoke $ECHO with all args, space-separated.
4427 func_echo_all ()
4429 $ECHO ""
4432 case $ECHO in
4433 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4434 $as_echo "printf" >&6; } ;;
4435 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4436 $as_echo "print -r" >&6; } ;;
4437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4438 $as_echo "cat" >&6; } ;;
4439 esac
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4455 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4456 if ${ac_cv_path_SED+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4460 for ac_i in 1 2 3 4 5 6 7; do
4461 ac_script="$ac_script$as_nl$ac_script"
4462 done
4463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4464 { ac_script=; unset ac_script;}
4465 if test -z "$SED"; then
4466 ac_path_SED_found=false
4467 # Loop through the user's path and test for each of PROGNAME-LIST
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_prog in sed gsed; do
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4476 as_fn_executable_p "$ac_path_SED" || continue
4477 # Check for GNU ac_path_SED and select it if it is found.
4478 # Check for GNU $ac_path_SED
4479 case `"$ac_path_SED" --version 2>&1` in
4480 *GNU*)
4481 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4483 ac_count=0
4484 $as_echo_n 0123456789 >"conftest.in"
4485 while :
4487 cat "conftest.in" "conftest.in" >"conftest.tmp"
4488 mv "conftest.tmp" "conftest.in"
4489 cp "conftest.in" "conftest.nl"
4490 $as_echo '' >> "conftest.nl"
4491 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493 as_fn_arith $ac_count + 1 && ac_count=$as_val
4494 if test $ac_count -gt ${ac_path_SED_max-0}; then
4495 # Best one so far, save it but keep looking for a better one
4496 ac_cv_path_SED="$ac_path_SED"
4497 ac_path_SED_max=$ac_count
4499 # 10*(2^10) chars as input seems more than enough
4500 test $ac_count -gt 10 && break
4501 done
4502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503 esac
4505 $ac_path_SED_found && break 3
4506 done
4507 done
4508 done
4509 IFS=$as_save_IFS
4510 if test -z "$ac_cv_path_SED"; then
4511 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4513 else
4514 ac_cv_path_SED=$SED
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4519 $as_echo "$ac_cv_path_SED" >&6; }
4520 SED="$ac_cv_path_SED"
4521 rm -f conftest.sed
4523 test -z "$SED" && SED=sed
4524 Xsed="$SED -e 1s/^X//"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_GREP" || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4581 $ac_path_GREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 else
4590 ac_cv_path_GREP=$GREP
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4606 else
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 as_fn_executable_p "$ac_path_EGREP" || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4625 ac_count=0
4626 $as_echo_n 0123456789 >"conftest.in"
4627 while :
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4643 done
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4647 $ac_path_EGREP_found && break 3
4648 done
4649 done
4650 done
4651 IFS=$as_save_IFS
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4655 else
4656 ac_cv_path_EGREP=$EGREP
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4667 $as_echo_n "checking for fgrep... " >&6; }
4668 if ${ac_cv_path_FGREP+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4672 then ac_cv_path_FGREP="$GREP -F"
4673 else
4674 if test -z "$FGREP"; then
4675 ac_path_FGREP_found=false
4676 # Loop through the user's path and test for each of PROGNAME-LIST
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_prog in fgrep; do
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4685 as_fn_executable_p "$ac_path_FGREP" || continue
4686 # Check for GNU ac_path_FGREP and select it if it is found.
4687 # Check for GNU $ac_path_FGREP
4688 case `"$ac_path_FGREP" --version 2>&1` in
4689 *GNU*)
4690 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4692 ac_count=0
4693 $as_echo_n 0123456789 >"conftest.in"
4694 while :
4696 cat "conftest.in" "conftest.in" >"conftest.tmp"
4697 mv "conftest.tmp" "conftest.in"
4698 cp "conftest.in" "conftest.nl"
4699 $as_echo 'FGREP' >> "conftest.nl"
4700 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4702 as_fn_arith $ac_count + 1 && ac_count=$as_val
4703 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4704 # Best one so far, save it but keep looking for a better one
4705 ac_cv_path_FGREP="$ac_path_FGREP"
4706 ac_path_FGREP_max=$ac_count
4708 # 10*(2^10) chars as input seems more than enough
4709 test $ac_count -gt 10 && break
4710 done
4711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4712 esac
4714 $ac_path_FGREP_found && break 3
4715 done
4716 done
4717 done
4718 IFS=$as_save_IFS
4719 if test -z "$ac_cv_path_FGREP"; then
4720 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722 else
4723 ac_cv_path_FGREP=$FGREP
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4729 $as_echo "$ac_cv_path_FGREP" >&6; }
4730 FGREP="$ac_cv_path_FGREP"
4733 test -z "$GREP" && GREP=grep
4753 # Check whether --with-gnu-ld was given.
4754 if test "${with_gnu_ld+set}" = set; then :
4755 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4756 else
4757 with_gnu_ld=no
4760 ac_prog=ld
4761 if test yes = "$GCC"; then
4762 # Check if gcc -print-prog-name=ld gives a path.
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4764 $as_echo_n "checking for ld used by $CC... " >&6; }
4765 case $host in
4766 *-*-mingw*)
4767 # gcc leaves a trailing carriage return, which upsets mingw
4768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4771 esac
4772 case $ac_prog in
4773 # Accept absolute paths.
4774 [\\/]* | ?:[\\/]*)
4775 re_direlt='/[^/][^/]*/\.\./'
4776 # Canonicalize the pathname of ld
4777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4780 done
4781 test -z "$LD" && LD=$ac_prog
4784 # If it fails, then pretend we aren't using GCC.
4785 ac_prog=ld
4788 # If it is relative, then search for the first ld in PATH.
4789 with_gnu_ld=unknown
4791 esac
4792 elif test yes = "$with_gnu_ld"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4794 $as_echo_n "checking for GNU ld... " >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4797 $as_echo_n "checking for non-GNU ld... " >&6; }
4799 if ${lt_cv_path_LD+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -z "$LD"; then
4803 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4804 for ac_dir in $PATH; do
4805 IFS=$lt_save_ifs
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4808 lt_cv_path_LD=$ac_dir/$ac_prog
4809 # Check to see if the program is GNU ld. I'd rather use --version,
4810 # but apparently some variants of GNU ld only accept -v.
4811 # Break only if it was the GNU/non-GNU ld that we prefer.
4812 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4813 *GNU* | *'with BFD'*)
4814 test no != "$with_gnu_ld" && break
4817 test yes != "$with_gnu_ld" && break
4819 esac
4821 done
4822 IFS=$lt_save_ifs
4823 else
4824 lt_cv_path_LD=$LD # Let the user override the test with a path.
4828 LD=$lt_cv_path_LD
4829 if test -n "$LD"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4831 $as_echo "$LD" >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4836 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4839 if ${lt_cv_prog_gnu_ld+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4843 case `$LD -v 2>&1 </dev/null` in
4844 *GNU* | *'with BFD'*)
4845 lt_cv_prog_gnu_ld=yes
4848 lt_cv_prog_gnu_ld=no
4850 esac
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4854 with_gnu_ld=$lt_cv_prog_gnu_ld
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4865 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4866 if ${lt_cv_path_NM+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$NM"; then
4870 # Let the user override the test.
4871 lt_cv_path_NM=$NM
4872 else
4873 lt_nm_to_check=${ac_tool_prefix}nm
4874 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4875 lt_nm_to_check="$lt_nm_to_check nm"
4877 for lt_tmp_nm in $lt_nm_to_check; do
4878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4879 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4880 IFS=$lt_save_ifs
4881 test -z "$ac_dir" && ac_dir=.
4882 tmp_nm=$ac_dir/$lt_tmp_nm
4883 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4884 # Check to see if the nm accepts a BSD-compat flag.
4885 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4886 # nm: unknown option "B" ignored
4887 # Tru64's nm complains that /dev/null is an invalid object file
4888 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4889 case $build_os in
4890 mingw*) lt_bad_file=conftest.nm/nofile ;;
4891 *) lt_bad_file=/dev/null ;;
4892 esac
4893 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4894 *$lt_bad_file* | *'Invalid file or object type'*)
4895 lt_cv_path_NM="$tmp_nm -B"
4896 break 2
4899 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4900 */dev/null*)
4901 lt_cv_path_NM="$tmp_nm -p"
4902 break 2
4905 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4906 continue # so that we can try to find one that supports BSD flags
4908 esac
4910 esac
4912 done
4913 IFS=$lt_save_ifs
4914 done
4915 : ${lt_cv_path_NM=no}
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4919 $as_echo "$lt_cv_path_NM" >&6; }
4920 if test no != "$lt_cv_path_NM"; then
4921 NM=$lt_cv_path_NM
4922 else
4923 # Didn't find any BSD compatible name lister, look for dumpbin.
4924 if test -n "$DUMPBIN"; then :
4925 # Let the user override the test.
4926 else
4927 if test -n "$ac_tool_prefix"; then
4928 for ac_prog in dumpbin "link -dump"
4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_DUMPBIN+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$DUMPBIN"; then
4938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4951 done
4952 done
4953 IFS=$as_save_IFS
4957 DUMPBIN=$ac_cv_prog_DUMPBIN
4958 if test -n "$DUMPBIN"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4960 $as_echo "$DUMPBIN" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4967 test -n "$DUMPBIN" && break
4968 done
4970 if test -z "$DUMPBIN"; then
4971 ac_ct_DUMPBIN=$DUMPBIN
4972 for ac_prog in dumpbin "link -dump"
4974 # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$ac_ct_DUMPBIN"; then
4982 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4995 done
4996 done
4997 IFS=$as_save_IFS
5001 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5002 if test -n "$ac_ct_DUMPBIN"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5004 $as_echo "$ac_ct_DUMPBIN" >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5011 test -n "$ac_ct_DUMPBIN" && break
5012 done
5014 if test "x$ac_ct_DUMPBIN" = x; then
5015 DUMPBIN=":"
5016 else
5017 case $cross_compiling:$ac_tool_warned in
5018 yes:)
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5021 ac_tool_warned=yes ;;
5022 esac
5023 DUMPBIN=$ac_ct_DUMPBIN
5027 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5028 *COFF*)
5029 DUMPBIN="$DUMPBIN -symbols -headers"
5032 DUMPBIN=:
5034 esac
5037 if test : != "$DUMPBIN"; then
5038 NM=$DUMPBIN
5041 test -z "$NM" && NM=nm
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5049 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5050 if ${lt_cv_nm_interface+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 lt_cv_nm_interface="BSD nm"
5054 echo "int some_variable = 0;" > conftest.$ac_ext
5055 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5056 (eval "$ac_compile" 2>conftest.err)
5057 cat conftest.err >&5
5058 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5059 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5060 cat conftest.err >&5
5061 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5062 cat conftest.out >&5
5063 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5064 lt_cv_nm_interface="MS dumpbin"
5066 rm -f conftest*
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5069 $as_echo "$lt_cv_nm_interface" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5072 $as_echo_n "checking whether ln -s works... " >&6; }
5073 LN_S=$as_ln_s
5074 if test "$LN_S" = "ln -s"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5076 $as_echo "yes" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5079 $as_echo "no, using $LN_S" >&6; }
5082 # find the maximum length of command line arguments
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5084 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5085 if ${lt_cv_sys_max_cmd_len+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5089 teststring=ABCD
5091 case $build_os in
5092 msdosdjgpp*)
5093 # On DJGPP, this test can blow up pretty badly due to problems in libc
5094 # (any single argument exceeding 2000 bytes causes a buffer overrun
5095 # during glob expansion). Even if it were fixed, the result of this
5096 # check would be larger than it should be.
5097 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5100 gnu*)
5101 # Under GNU Hurd, this test is not required because there is
5102 # no limit to the length of command line arguments.
5103 # Libtool will interpret -1 as no limit whatsoever
5104 lt_cv_sys_max_cmd_len=-1;
5107 cygwin* | mingw* | cegcc*)
5108 # On Win9x/ME, this test blows up -- it succeeds, but takes
5109 # about 5 minutes as the teststring grows exponentially.
5110 # Worse, since 9x/ME are not pre-emptively multitasking,
5111 # you end up with a "frozen" computer, even though with patience
5112 # the test eventually succeeds (with a max line length of 256k).
5113 # Instead, let's just punt: use the minimum linelength reported by
5114 # all of the supported platforms: 8192 (on NT/2K/XP).
5115 lt_cv_sys_max_cmd_len=8192;
5118 mint*)
5119 # On MiNT this can take a long time and run out of memory.
5120 lt_cv_sys_max_cmd_len=8192;
5123 amigaos*)
5124 # On AmigaOS with pdksh, this test takes hours, literally.
5125 # So we just punt and use a minimum line length of 8192.
5126 lt_cv_sys_max_cmd_len=8192;
5129 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5130 # This has been around since 386BSD, at least. Likely further.
5131 if test -x /sbin/sysctl; then
5132 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5133 elif test -x /usr/sbin/sysctl; then
5134 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5135 else
5136 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5138 # And add a safety zone
5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5143 interix*)
5144 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5145 lt_cv_sys_max_cmd_len=196608
5148 os2*)
5149 # The test takes a long time on OS/2.
5150 lt_cv_sys_max_cmd_len=8192
5153 osf*)
5154 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5155 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5156 # nice to cause kernel panics so lets avoid the loop below.
5157 # First set a reasonable default.
5158 lt_cv_sys_max_cmd_len=16384
5160 if test -x /sbin/sysconfig; then
5161 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5162 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5163 esac
5166 sco3.2v5*)
5167 lt_cv_sys_max_cmd_len=102400
5169 sysv5* | sco5v6* | sysv4.2uw2*)
5170 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5171 if test -n "$kargmax"; then
5172 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5173 else
5174 lt_cv_sys_max_cmd_len=32768
5178 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5179 if test -n "$lt_cv_sys_max_cmd_len" && \
5180 test undefined != "$lt_cv_sys_max_cmd_len"; then
5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5183 else
5184 # Make teststring a little bigger before we do anything with it.
5185 # a 1K string should be a reasonable start.
5186 for i in 1 2 3 4 5 6 7 8; do
5187 teststring=$teststring$teststring
5188 done
5189 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5190 # If test is not a shell built-in, we'll probably end up computing a
5191 # maximum length that is only half of the actual maximum length, but
5192 # we can't tell.
5193 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5194 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5195 test 17 != "$i" # 1/2 MB should be enough
5197 i=`expr $i + 1`
5198 teststring=$teststring$teststring
5199 done
5200 # Only check the string length outside the loop.
5201 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5202 teststring=
5203 # Add a significant safety factor because C++ compilers can tack on
5204 # massive amounts of additional arguments before passing them to the
5205 # linker. It appears as though 1/2 is a usable value.
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5209 esac
5213 if test -n "$lt_cv_sys_max_cmd_len"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5215 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5218 $as_echo "none" >&6; }
5220 max_cmd_len=$lt_cv_sys_max_cmd_len
5227 : ${CP="cp -f"}
5228 : ${MV="mv -f"}
5229 : ${RM="rm -f"}
5231 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5232 lt_unset=unset
5233 else
5234 lt_unset=false
5241 # test EBCDIC or ASCII
5242 case `echo X|tr X '\101'` in
5243 A) # ASCII based system
5244 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5245 lt_SP2NL='tr \040 \012'
5246 lt_NL2SP='tr \015\012 \040\040'
5248 *) # EBCDIC based system
5249 lt_SP2NL='tr \100 \n'
5250 lt_NL2SP='tr \r\n \100\100'
5252 esac
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5263 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5264 if ${lt_cv_to_host_file_cmd+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 case $host in
5268 *-*-mingw* )
5269 case $build in
5270 *-*-mingw* ) # actually msys
5271 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5273 *-*-cygwin* )
5274 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5276 * ) # otherwise, assume *nix
5277 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5279 esac
5281 *-*-cygwin* )
5282 case $build in
5283 *-*-mingw* ) # actually msys
5284 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5286 *-*-cygwin* )
5287 lt_cv_to_host_file_cmd=func_convert_file_noop
5289 * ) # otherwise, assume *nix
5290 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5292 esac
5294 * ) # unhandled hosts (and "normal" native builds)
5295 lt_cv_to_host_file_cmd=func_convert_file_noop
5297 esac
5301 to_host_file_cmd=$lt_cv_to_host_file_cmd
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5303 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5310 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5311 if ${lt_cv_to_tool_file_cmd+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 #assume ordinary cross tools, or native build.
5315 lt_cv_to_tool_file_cmd=func_convert_file_noop
5316 case $host in
5317 *-*-mingw* )
5318 case $build in
5319 *-*-mingw* ) # actually msys
5320 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5322 esac
5324 esac
5328 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5330 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5337 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5338 if ${lt_cv_ld_reload_flag+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 lt_cv_ld_reload_flag='-r'
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5344 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5345 reload_flag=$lt_cv_ld_reload_flag
5346 case $reload_flag in
5347 "" | " "*) ;;
5348 *) reload_flag=" $reload_flag" ;;
5349 esac
5350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5351 case $host_os in
5352 cygwin* | mingw* | pw32* | cegcc*)
5353 if test yes != "$GCC"; then
5354 reload_cmds=false
5357 darwin*)
5358 if test yes = "$GCC"; then
5359 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5360 else
5361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5364 esac
5374 if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_OBJDUMP+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$OBJDUMP"; then
5383 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 OBJDUMP=$ac_cv_prog_OBJDUMP
5403 if test -n "$OBJDUMP"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5405 $as_echo "$OBJDUMP" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5413 if test -z "$ac_cv_prog_OBJDUMP"; then
5414 ac_ct_OBJDUMP=$OBJDUMP
5415 # Extract the first word of "objdump", so it can be a program name with args.
5416 set dummy objdump; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$ac_ct_OBJDUMP"; then
5423 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5443 if test -n "$ac_ct_OBJDUMP"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5445 $as_echo "$ac_ct_OBJDUMP" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5451 if test "x$ac_ct_OBJDUMP" = x; then
5452 OBJDUMP="false"
5453 else
5454 case $cross_compiling:$ac_tool_warned in
5455 yes:)
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458 ac_tool_warned=yes ;;
5459 esac
5460 OBJDUMP=$ac_ct_OBJDUMP
5462 else
5463 OBJDUMP="$ac_cv_prog_OBJDUMP"
5466 test -z "$OBJDUMP" && OBJDUMP=objdump
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5474 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5475 if ${lt_cv_deplibs_check_method+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 lt_cv_file_magic_cmd='$MAGIC_CMD'
5479 lt_cv_file_magic_test_file=
5480 lt_cv_deplibs_check_method='unknown'
5481 # Need to set the preceding variable on all platforms that support
5482 # interlibrary dependencies.
5483 # 'none' -- dependencies not supported.
5484 # 'unknown' -- same as none, but documents that we really don't know.
5485 # 'pass_all' -- all dependencies passed with no checks.
5486 # 'test_compile' -- check by making test program.
5487 # 'file_magic [[regex]]' -- check by looking for files in library path
5488 # that responds to the $file_magic_cmd with a given extended regex.
5489 # If you have 'file' or equivalent on your system and you're not sure
5490 # whether 'pass_all' will *always* work, you probably want this one.
5492 case $host_os in
5493 aix[4-9]*)
5494 lt_cv_deplibs_check_method=pass_all
5497 beos*)
5498 lt_cv_deplibs_check_method=pass_all
5501 bsdi[45]*)
5502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5503 lt_cv_file_magic_cmd='/usr/bin/file -L'
5504 lt_cv_file_magic_test_file=/shlib/libc.so
5507 cygwin*)
5508 # func_win32_libid is a shell function defined in ltmain.sh
5509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5510 lt_cv_file_magic_cmd='func_win32_libid'
5513 mingw* | pw32*)
5514 # Base MSYS/MinGW do not provide the 'file' command needed by
5515 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5516 # unless we find 'file', for example because we are cross-compiling.
5517 if ( file / ) >/dev/null 2>&1; then
5518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5519 lt_cv_file_magic_cmd='func_win32_libid'
5520 else
5521 # Keep this pattern in sync with the one in func_win32_libid.
5522 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5523 lt_cv_file_magic_cmd='$OBJDUMP -f'
5527 cegcc*)
5528 # use the weaker test based on 'objdump'. See mingw*.
5529 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5530 lt_cv_file_magic_cmd='$OBJDUMP -f'
5533 darwin* | rhapsody*)
5534 lt_cv_deplibs_check_method=pass_all
5537 freebsd* | dragonfly*)
5538 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5539 case $host_cpu in
5540 i*86 )
5541 # Not sure whether the presence of OpenBSD here was a mistake.
5542 # Let's accept both of them until this is cleared up.
5543 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5544 lt_cv_file_magic_cmd=/usr/bin/file
5545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5547 esac
5548 else
5549 lt_cv_deplibs_check_method=pass_all
5553 haiku*)
5554 lt_cv_deplibs_check_method=pass_all
5557 hpux10.20* | hpux11*)
5558 lt_cv_file_magic_cmd=/usr/bin/file
5559 case $host_cpu in
5560 ia64*)
5561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5564 hppa*64*)
5565 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]'
5566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5572 esac
5575 interix[3-9]*)
5576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5580 irix5* | irix6* | nonstopux*)
5581 case $LD in
5582 *-32|*"-32 ") libmagic=32-bit;;
5583 *-n32|*"-n32 ") libmagic=N32;;
5584 *-64|*"-64 ") libmagic=64-bit;;
5585 *) libmagic=never-match;;
5586 esac
5587 lt_cv_deplibs_check_method=pass_all
5590 # This must be glibc/ELF.
5591 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5592 lt_cv_deplibs_check_method=pass_all
5595 netbsd*)
5596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5598 else
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5603 newos6*)
5604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5605 lt_cv_file_magic_cmd=/usr/bin/file
5606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5609 *nto* | *qnx*)
5610 lt_cv_deplibs_check_method=pass_all
5613 openbsd* | bitrig*)
5614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5616 else
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621 osf3* | osf4* | osf5*)
5622 lt_cv_deplibs_check_method=pass_all
5625 rdos*)
5626 lt_cv_deplibs_check_method=pass_all
5629 solaris*)
5630 lt_cv_deplibs_check_method=pass_all
5633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5634 lt_cv_deplibs_check_method=pass_all
5637 sysv4 | sysv4.3*)
5638 case $host_vendor in
5639 motorola)
5640 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]'
5641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643 ncr)
5644 lt_cv_deplibs_check_method=pass_all
5646 sequent)
5647 lt_cv_file_magic_cmd='/bin/file'
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650 sni)
5651 lt_cv_file_magic_cmd='/bin/file'
5652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5653 lt_cv_file_magic_test_file=/lib/libc.so
5655 siemens)
5656 lt_cv_deplibs_check_method=pass_all
5659 lt_cv_deplibs_check_method=pass_all
5661 esac
5664 tpf*)
5665 lt_cv_deplibs_check_method=pass_all
5667 os2*)
5668 lt_cv_deplibs_check_method=pass_all
5670 esac
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5674 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5676 file_magic_glob=
5677 want_nocaseglob=no
5678 if test "$build" = "$host"; then
5679 case $host_os in
5680 mingw* | pw32*)
5681 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5682 want_nocaseglob=yes
5683 else
5684 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5687 esac
5690 file_magic_cmd=$lt_cv_file_magic_cmd
5691 deplibs_check_method=$lt_cv_deplibs_check_method
5692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_DLLTOOL+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$DLLTOOL"; then
5724 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 DLLTOOL=$ac_cv_prog_DLLTOOL
5744 if test -n "$DLLTOOL"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5746 $as_echo "$DLLTOOL" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_DLLTOOL"; then
5755 ac_ct_DLLTOOL=$DLLTOOL
5756 # Extract the first word of "dlltool", so it can be a program name with args.
5757 set dummy dlltool; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_DLLTOOL"; then
5764 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5784 if test -n "$ac_ct_DLLTOOL"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5786 $as_echo "$ac_ct_DLLTOOL" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_DLLTOOL" = x; then
5793 DLLTOOL="false"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 DLLTOOL=$ac_ct_DLLTOOL
5803 else
5804 DLLTOOL="$ac_cv_prog_DLLTOOL"
5807 test -z "$DLLTOOL" && DLLTOOL=dlltool
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5816 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5817 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 lt_cv_sharedlib_from_linklib_cmd='unknown'
5822 case $host_os in
5823 cygwin* | mingw* | pw32* | cegcc*)
5824 # two different shell functions defined in ltmain.sh;
5825 # decide which one to use based on capabilities of $DLLTOOL
5826 case `$DLLTOOL --help 2>&1` in
5827 *--identify-strict*)
5828 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5831 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5833 esac
5836 # fallback: assume linklib IS sharedlib
5837 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5839 esac
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5843 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5844 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5845 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5853 if test -n "$ac_tool_prefix"; then
5854 for ac_prog in ar
5856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_AR+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$AR"; then
5864 ac_cv_prog_AR="$AR" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5877 done
5878 done
5879 IFS=$as_save_IFS
5883 AR=$ac_cv_prog_AR
5884 if test -n "$AR"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5886 $as_echo "$AR" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5893 test -n "$AR" && break
5894 done
5896 if test -z "$AR"; then
5897 ac_ct_AR=$AR
5898 for ac_prog in ar
5900 # Extract the first word of "$ac_prog", so it can be a program name with args.
5901 set dummy $ac_prog; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$ac_ct_AR"; then
5908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_ac_ct_AR="$ac_prog"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5921 done
5922 done
5923 IFS=$as_save_IFS
5927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5928 if test -n "$ac_ct_AR"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5930 $as_echo "$ac_ct_AR" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5937 test -n "$ac_ct_AR" && break
5938 done
5940 if test "x$ac_ct_AR" = x; then
5941 AR="false"
5942 else
5943 case $cross_compiling:$ac_tool_warned in
5944 yes:)
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947 ac_tool_warned=yes ;;
5948 esac
5949 AR=$ac_ct_AR
5953 : ${AR=ar}
5954 : ${AR_FLAGS=cru}
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5967 $as_echo_n "checking for archiver @FILE support... " >&6; }
5968 if ${lt_cv_ar_at_file+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 lt_cv_ar_at_file=no
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5976 main ()
5980 return 0;
5982 _ACEOF
5983 if ac_fn_c_try_compile "$LINENO"; then :
5984 echo conftest.$ac_objext > conftest.lst
5985 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5987 (eval $lt_ar_try) 2>&5
5988 ac_status=$?
5989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990 test $ac_status = 0; }
5991 if test 0 -eq "$ac_status"; then
5992 # Ensure the archiver fails upon bogus file names.
5993 rm -f conftest.$ac_objext libconftest.a
5994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5995 (eval $lt_ar_try) 2>&5
5996 ac_status=$?
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }
5999 if test 0 -ne "$ac_status"; then
6000 lt_cv_ar_at_file=@
6003 rm -f conftest.* libconftest.a
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6010 $as_echo "$lt_cv_ar_at_file" >&6; }
6012 if test no = "$lt_cv_ar_at_file"; then
6013 archiver_list_spec=
6014 else
6015 archiver_list_spec=$lt_cv_ar_at_file
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}strip; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if ${ac_cv_prog_STRIP+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$STRIP"; then
6033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6046 done
6047 done
6048 IFS=$as_save_IFS
6052 STRIP=$ac_cv_prog_STRIP
6053 if test -n "$STRIP"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6055 $as_echo "$STRIP" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_STRIP"; then
6064 ac_ct_STRIP=$STRIP
6065 # Extract the first word of "strip", so it can be a program name with args.
6066 set dummy strip; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_STRIP"; then
6073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_ac_ct_STRIP="strip"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6093 if test -n "$ac_ct_STRIP"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6095 $as_echo "$ac_ct_STRIP" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_STRIP" = x; then
6102 STRIP=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 STRIP=$ac_ct_STRIP
6112 else
6113 STRIP="$ac_cv_prog_STRIP"
6116 test -z "$STRIP" && STRIP=:
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_RANLIB+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$RANLIB"; then
6132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6145 done
6146 done
6147 IFS=$as_save_IFS
6151 RANLIB=$ac_cv_prog_RANLIB
6152 if test -n "$RANLIB"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6154 $as_echo "$RANLIB" >&6; }
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6162 if test -z "$ac_cv_prog_RANLIB"; then
6163 ac_ct_RANLIB=$RANLIB
6164 # Extract the first word of "ranlib", so it can be a program name with args.
6165 set dummy ranlib; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$ac_ct_RANLIB"; then
6172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_RANLIB="ranlib"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6192 if test -n "$ac_ct_RANLIB"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6194 $as_echo "$ac_ct_RANLIB" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6200 if test "x$ac_ct_RANLIB" = x; then
6201 RANLIB=":"
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209 RANLIB=$ac_ct_RANLIB
6211 else
6212 RANLIB="$ac_cv_prog_RANLIB"
6215 test -z "$RANLIB" && RANLIB=:
6222 # Determine commands to create old-style static archives.
6223 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6224 old_postinstall_cmds='chmod 644 $oldlib'
6225 old_postuninstall_cmds=
6227 if test -n "$RANLIB"; then
6228 case $host_os in
6229 bitrig* | openbsd*)
6230 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6233 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6235 esac
6236 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6239 case $host_os in
6240 darwin*)
6241 lock_old_archive_extraction=yes ;;
6243 lock_old_archive_extraction=no ;;
6244 esac
6284 # If no C compiler was specified, use CC.
6285 LTCC=${LTCC-"$CC"}
6287 # If no C compiler flags were specified, use CFLAGS.
6288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6290 # Allow CC to be a program name with arguments.
6291 compiler=$CC
6294 # Check for command to grab the raw symbol name followed by C symbol from nm.
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6296 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6297 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6301 # These are sane defaults that work on at least a few old systems.
6302 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6304 # Character class describing NM global symbol codes.
6305 symcode='[BCDEGRST]'
6307 # Regexp to match symbols that can be accessed directly from C.
6308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6310 # Define system-specific variables.
6311 case $host_os in
6312 aix*)
6313 symcode='[BCDT]'
6315 cygwin* | mingw* | pw32* | cegcc*)
6316 symcode='[ABCDGISTW]'
6318 hpux*)
6319 if test ia64 = "$host_cpu"; then
6320 symcode='[ABCDEGRST]'
6323 irix* | nonstopux*)
6324 symcode='[BCDEGRST]'
6326 osf*)
6327 symcode='[BCDEGQRST]'
6329 solaris*)
6330 symcode='[BDRT]'
6332 sco3.2v5*)
6333 symcode='[DT]'
6335 sysv4.2uw2*)
6336 symcode='[DT]'
6338 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6339 symcode='[ABDT]'
6341 sysv4)
6342 symcode='[DFNSTU]'
6344 esac
6346 # If we're using GNU nm, then use its standard symbol codes.
6347 case `$NM -V 2>&1` in
6348 *GNU* | *'with BFD'*)
6349 symcode='[ABCDGIRSTW]' ;;
6350 esac
6352 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6353 # Gets list of data symbols to import.
6354 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6355 # Adjust the below global symbol transforms to fixup imported variables.
6356 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6357 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6358 lt_c_name_lib_hook="\
6359 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6360 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6361 else
6362 # Disable hooks by default.
6363 lt_cv_sys_global_symbol_to_import=
6364 lt_cdecl_hook=
6365 lt_c_name_hook=
6366 lt_c_name_lib_hook=
6369 # Transform an extracted symbol line into a proper C declaration.
6370 # Some systems (esp. on ia64) link data and code symbols differently,
6371 # so use this general approach.
6372 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6373 $lt_cdecl_hook\
6374 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6375 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6377 # Transform an extracted symbol line into symbol name and symbol address
6378 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6379 $lt_c_name_hook\
6380 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6381 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6383 # Transform an extracted symbol line into symbol name with lib prefix and
6384 # symbol address.
6385 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6386 $lt_c_name_lib_hook\
6387 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6388 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6389 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6391 # Handle CRLF in mingw tool chain
6392 opt_cr=
6393 case $build_os in
6394 mingw*)
6395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6397 esac
6399 # Try without a prefix underscore, then with it.
6400 for ac_symprfx in "" "_"; do
6402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6403 symxfrm="\\1 $ac_symprfx\\2 \\2"
6405 # Write the raw and C identifiers.
6406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6407 # Fake it for dumpbin and say T for any non-static function,
6408 # D for any global variable and I for any imported variable.
6409 # Also find C++ and __fastcall symbols from MSVC++,
6410 # which start with @ or ?.
6411 lt_cv_sys_global_symbol_pipe="$AWK '"\
6412 " {last_section=section; section=\$ 3};"\
6413 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6414 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6415 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6416 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6417 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6418 " \$ 0!~/External *\|/{next};"\
6419 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6420 " {if(hide[section]) next};"\
6421 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6422 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6423 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6424 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6425 " ' prfx=^$ac_symprfx"
6426 else
6427 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6429 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6431 # Check to see that the pipe works correctly.
6432 pipe_works=no
6434 rm -f conftest*
6435 cat > conftest.$ac_ext <<_LT_EOF
6436 #ifdef __cplusplus
6437 extern "C" {
6438 #endif
6439 char nm_test_var;
6440 void nm_test_func(void);
6441 void nm_test_func(void){}
6442 #ifdef __cplusplus
6444 #endif
6445 int main(){nm_test_var='a';nm_test_func();return(0);}
6446 _LT_EOF
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; }; then
6453 # Now try to grab the symbols.
6454 nlist=conftest.nm
6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6456 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6457 ac_status=$?
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; } && test -s "$nlist"; then
6460 # Try sorting and uniquifying the output.
6461 if sort "$nlist" | uniq > "$nlist"T; then
6462 mv -f "$nlist"T "$nlist"
6463 else
6464 rm -f "$nlist"T
6467 # Make sure that we snagged all the symbols we need.
6468 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6469 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6470 cat <<_LT_EOF > conftest.$ac_ext
6471 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6472 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6473 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6474 relocations are performed -- see ld's documentation on pseudo-relocs. */
6475 # define LT_DLSYM_CONST
6476 #elif defined __osf__
6477 /* This system does not cope well with relocations in const data. */
6478 # define LT_DLSYM_CONST
6479 #else
6480 # define LT_DLSYM_CONST const
6481 #endif
6483 #ifdef __cplusplus
6484 extern "C" {
6485 #endif
6487 _LT_EOF
6488 # Now generate the symbol file.
6489 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6491 cat <<_LT_EOF >> conftest.$ac_ext
6493 /* The mapping between symbol names and symbols. */
6494 LT_DLSYM_CONST struct {
6495 const char *name;
6496 void *address;
6498 lt__PROGRAM__LTX_preloaded_symbols[] =
6500 { "@PROGRAM@", (void *) 0 },
6501 _LT_EOF
6502 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6503 cat <<\_LT_EOF >> conftest.$ac_ext
6504 {0, (void *) 0}
6507 /* This works around a problem in FreeBSD linker */
6508 #ifdef FREEBSD_WORKAROUND
6509 static const void *lt_preloaded_setup() {
6510 return lt__PROGRAM__LTX_preloaded_symbols;
6512 #endif
6514 #ifdef __cplusplus
6516 #endif
6517 _LT_EOF
6518 # Now try linking the two files.
6519 mv conftest.$ac_objext conftstm.$ac_objext
6520 lt_globsym_save_LIBS=$LIBS
6521 lt_globsym_save_CFLAGS=$CFLAGS
6522 LIBS=conftstm.$ac_objext
6523 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6525 (eval $ac_link) 2>&5
6526 ac_status=$?
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6529 pipe_works=yes
6531 LIBS=$lt_globsym_save_LIBS
6532 CFLAGS=$lt_globsym_save_CFLAGS
6533 else
6534 echo "cannot find nm_test_func in $nlist" >&5
6536 else
6537 echo "cannot find nm_test_var in $nlist" >&5
6539 else
6540 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6542 else
6543 echo "$progname: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 rm -rf conftest* conftst*
6548 # Do not use the global_symbol_pipe unless it works.
6549 if test yes = "$pipe_works"; then
6550 break
6551 else
6552 lt_cv_sys_global_symbol_pipe=
6554 done
6558 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6559 lt_cv_sys_global_symbol_to_cdecl=
6561 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6563 $as_echo "failed" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6566 $as_echo "ok" >&6; }
6569 # Response file support.
6570 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6571 nm_file_list_spec='@'
6572 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6573 nm_file_list_spec='@'
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6613 $as_echo_n "checking for sysroot... " >&6; }
6615 # Check whether --with-sysroot was given.
6616 if test "${with_sysroot+set}" = set; then :
6617 withval=$with_sysroot;
6618 else
6619 with_sysroot=no
6623 lt_sysroot=
6624 case $with_sysroot in #(
6625 yes)
6626 if test yes = "$GCC"; then
6627 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6629 ;; #(
6631 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6632 ;; #(
6633 no|'')
6634 ;; #(
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6637 $as_echo "$with_sysroot" >&6; }
6638 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6640 esac
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6643 $as_echo "${lt_sysroot:-no}" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6650 $as_echo_n "checking for a working dd... " >&6; }
6651 if ${ac_cv_path_lt_DD+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 printf 0123456789abcdef0123456789abcdef >conftest.i
6655 cat conftest.i conftest.i >conftest2.i
6656 : ${lt_DD:=$DD}
6657 if test -z "$lt_DD"; then
6658 ac_path_lt_DD_found=false
6659 # Loop through the user's path and test for each of PROGNAME-LIST
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_prog in dd; do
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6668 as_fn_executable_p "$ac_path_lt_DD" || continue
6669 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6670 cmp -s conftest.i conftest.out \
6671 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6673 $ac_path_lt_DD_found && break 3
6674 done
6675 done
6676 done
6677 IFS=$as_save_IFS
6678 if test -z "$ac_cv_path_lt_DD"; then
6681 else
6682 ac_cv_path_lt_DD=$lt_DD
6685 rm -f conftest.i conftest2.i conftest.out
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6688 $as_echo "$ac_cv_path_lt_DD" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6692 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6693 if ${lt_cv_truncate_bin+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 printf 0123456789abcdef0123456789abcdef >conftest.i
6697 cat conftest.i conftest.i >conftest2.i
6698 lt_cv_truncate_bin=
6699 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6700 cmp -s conftest.i conftest.out \
6701 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6703 rm -f conftest.i conftest2.i conftest.out
6704 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6707 $as_echo "$lt_cv_truncate_bin" >&6; }
6715 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6716 func_cc_basename ()
6718 for cc_temp in $*""; do
6719 case $cc_temp in
6720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6722 \-*) ;;
6723 *) break;;
6724 esac
6725 done
6726 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6729 # Check whether --enable-libtool-lock was given.
6730 if test "${enable_libtool_lock+set}" = set; then :
6731 enableval=$enable_libtool_lock;
6734 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6736 # Some flags need to be propagated to the compiler or linker for good
6737 # libtool support.
6738 case $host in
6739 ia64-*-hpux*)
6740 # Find out what ABI is being produced by ac_compile, and set mode
6741 # options accordingly.
6742 echo 'int i;' > conftest.$ac_ext
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }; then
6748 case `/usr/bin/file conftest.$ac_objext` in
6749 *ELF-32*)
6750 HPUX_IA64_MODE=32
6752 *ELF-64*)
6753 HPUX_IA64_MODE=64
6755 esac
6757 rm -rf conftest*
6759 *-*-irix6*)
6760 # Find out what ABI is being produced by ac_compile, and set linker
6761 # options accordingly.
6762 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; then
6768 if test yes = "$lt_cv_prog_gnu_ld"; then
6769 case `/usr/bin/file conftest.$ac_objext` in
6770 *32-bit*)
6771 LD="${LD-ld} -melf32bsmip"
6773 *N32*)
6774 LD="${LD-ld} -melf32bmipn32"
6776 *64-bit*)
6777 LD="${LD-ld} -melf64bmip"
6779 esac
6780 else
6781 case `/usr/bin/file conftest.$ac_objext` in
6782 *32-bit*)
6783 LD="${LD-ld} -32"
6785 *N32*)
6786 LD="${LD-ld} -n32"
6788 *64-bit*)
6789 LD="${LD-ld} -64"
6791 esac
6794 rm -rf conftest*
6797 mips64*-*linux*)
6798 # Find out what ABI is being produced by ac_compile, and set linker
6799 # options accordingly.
6800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6802 (eval $ac_compile) 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805 test $ac_status = 0; }; then
6806 emul=elf
6807 case `/usr/bin/file conftest.$ac_objext` in
6808 *32-bit*)
6809 emul="${emul}32"
6811 *64-bit*)
6812 emul="${emul}64"
6814 esac
6815 case `/usr/bin/file conftest.$ac_objext` in
6816 *MSB*)
6817 emul="${emul}btsmip"
6819 *LSB*)
6820 emul="${emul}ltsmip"
6822 esac
6823 case `/usr/bin/file conftest.$ac_objext` in
6824 *N32*)
6825 emul="${emul}n32"
6827 esac
6828 LD="${LD-ld} -m $emul"
6830 rm -rf conftest*
6833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6835 # Find out what ABI is being produced by ac_compile, and set linker
6836 # options accordingly. Note that the listed cases only cover the
6837 # situations where additional linker options are needed (such as when
6838 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6839 # vice versa); the common cases where no linker options are needed do
6840 # not appear in the list.
6841 echo 'int i;' > conftest.$ac_ext
6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; then
6847 case `/usr/bin/file conftest.o` in
6848 *32-bit*)
6849 case $host in
6850 x86_64-*kfreebsd*-gnu)
6851 LD="${LD-ld} -m elf_i386_fbsd"
6853 x86_64-*linux*)
6854 case `/usr/bin/file conftest.o` in
6855 *x86-64*)
6856 LD="${LD-ld} -m elf32_x86_64"
6859 LD="${LD-ld} -m elf_i386"
6861 esac
6863 powerpc64le-*linux*)
6864 LD="${LD-ld} -m elf32lppclinux"
6866 powerpc64-*linux*)
6867 LD="${LD-ld} -m elf32ppclinux"
6869 s390x-*linux*)
6870 LD="${LD-ld} -m elf_s390"
6872 sparc64-*linux*)
6873 LD="${LD-ld} -m elf32_sparc"
6875 esac
6877 *64-bit*)
6878 case $host in
6879 x86_64-*kfreebsd*-gnu)
6880 LD="${LD-ld} -m elf_x86_64_fbsd"
6882 x86_64-*linux*)
6883 LD="${LD-ld} -m elf_x86_64"
6885 powerpcle-*linux*)
6886 LD="${LD-ld} -m elf64lppc"
6888 powerpc-*linux*)
6889 LD="${LD-ld} -m elf64ppc"
6891 s390*-*linux*|s390*-*tpf*)
6892 LD="${LD-ld} -m elf64_s390"
6894 sparc*-*linux*)
6895 LD="${LD-ld} -m elf64_sparc"
6897 esac
6899 esac
6901 rm -rf conftest*
6904 *-*-sco3.2v5*)
6905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6906 SAVE_CFLAGS=$CFLAGS
6907 CFLAGS="$CFLAGS -belf"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6909 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6910 if ${lt_cv_cc_needs_belf+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 ac_ext=c
6914 ac_cpp='$CPP $CPPFLAGS'
6915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6923 main ()
6927 return 0;
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931 lt_cv_cc_needs_belf=yes
6932 else
6933 lt_cv_cc_needs_belf=no
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937 ac_ext=c
6938 ac_cpp='$CPP $CPPFLAGS'
6939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6945 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6946 if test yes != "$lt_cv_cc_needs_belf"; then
6947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6948 CFLAGS=$SAVE_CFLAGS
6951 *-*solaris*)
6952 # Find out what ABI is being produced by ac_compile, and set linker
6953 # options accordingly.
6954 echo 'int i;' > conftest.$ac_ext
6955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956 (eval $ac_compile) 2>&5
6957 ac_status=$?
6958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959 test $ac_status = 0; }; then
6960 case `/usr/bin/file conftest.o` in
6961 *64-bit*)
6962 case $lt_cv_prog_gnu_ld in
6963 yes*)
6964 case $host in
6965 i?86-*-solaris*|x86_64-*-solaris*)
6966 LD="${LD-ld} -m elf_x86_64"
6968 sparc*-*-solaris*)
6969 LD="${LD-ld} -m elf64_sparc"
6971 esac
6972 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6973 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6974 LD=${LD-ld}_sol2
6978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6979 LD="${LD-ld} -64"
6982 esac
6984 esac
6986 rm -rf conftest*
6988 esac
6990 need_locks=$enable_libtool_lock
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}mt; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$MANIFEST_TOOL"; then
7001 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7014 done
7015 done
7016 IFS=$as_save_IFS
7020 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7021 if test -n "$MANIFEST_TOOL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7023 $as_echo "$MANIFEST_TOOL" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7031 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7032 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7033 # Extract the first word of "mt", so it can be a program name with args.
7034 set dummy mt; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$ac_ct_MANIFEST_TOOL"; then
7041 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7054 done
7055 done
7056 IFS=$as_save_IFS
7060 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7061 if test -n "$ac_ct_MANIFEST_TOOL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7063 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7069 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7070 MANIFEST_TOOL=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7080 else
7081 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7084 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7086 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7087 if ${lt_cv_path_mainfest_tool+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 lt_cv_path_mainfest_tool=no
7091 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7092 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7093 cat conftest.err >&5
7094 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7095 lt_cv_path_mainfest_tool=yes
7097 rm -f conftest*
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7100 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7101 if test yes != "$lt_cv_path_mainfest_tool"; then
7102 MANIFEST_TOOL=:
7110 case $host_os in
7111 rhapsody* | darwin*)
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$DSYMUTIL"; then
7121 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7134 done
7135 done
7136 IFS=$as_save_IFS
7140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7141 if test -n "$DSYMUTIL"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7143 $as_echo "$DSYMUTIL" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7151 if test -z "$ac_cv_prog_DSYMUTIL"; then
7152 ac_ct_DSYMUTIL=$DSYMUTIL
7153 # Extract the first word of "dsymutil", so it can be a program name with args.
7154 set dummy dsymutil; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$ac_ct_DSYMUTIL"; then
7161 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7174 done
7175 done
7176 IFS=$as_save_IFS
7180 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7181 if test -n "$ac_ct_DSYMUTIL"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7183 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7189 if test "x$ac_ct_DSYMUTIL" = x; then
7190 DSYMUTIL=":"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198 DSYMUTIL=$ac_ct_DSYMUTIL
7200 else
7201 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if ${ac_cv_prog_NMEDIT+:} false; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$NMEDIT"; then
7213 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7226 done
7227 done
7228 IFS=$as_save_IFS
7232 NMEDIT=$ac_cv_prog_NMEDIT
7233 if test -n "$NMEDIT"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7235 $as_echo "$NMEDIT" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7243 if test -z "$ac_cv_prog_NMEDIT"; then
7244 ac_ct_NMEDIT=$NMEDIT
7245 # Extract the first word of "nmedit", so it can be a program name with args.
7246 set dummy nmedit; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$ac_ct_NMEDIT"; then
7253 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7266 done
7267 done
7268 IFS=$as_save_IFS
7272 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7273 if test -n "$ac_ct_NMEDIT"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7275 $as_echo "$ac_ct_NMEDIT" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7281 if test "x$ac_ct_NMEDIT" = x; then
7282 NMEDIT=":"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290 NMEDIT=$ac_ct_NMEDIT
7292 else
7293 NMEDIT="$ac_cv_prog_NMEDIT"
7296 if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7298 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_LIPO+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 if test -n "$LIPO"; then
7305 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7318 done
7319 done
7320 IFS=$as_save_IFS
7324 LIPO=$ac_cv_prog_LIPO
7325 if test -n "$LIPO"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7327 $as_echo "$LIPO" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7335 if test -z "$ac_cv_prog_LIPO"; then
7336 ac_ct_LIPO=$LIPO
7337 # Extract the first word of "lipo", so it can be a program name with args.
7338 set dummy lipo; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$ac_ct_LIPO"; then
7345 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_ac_ct_LIPO="lipo"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7358 done
7359 done
7360 IFS=$as_save_IFS
7364 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7365 if test -n "$ac_ct_LIPO"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7367 $as_echo "$ac_ct_LIPO" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7373 if test "x$ac_ct_LIPO" = x; then
7374 LIPO=":"
7375 else
7376 case $cross_compiling:$ac_tool_warned in
7377 yes:)
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380 ac_tool_warned=yes ;;
7381 esac
7382 LIPO=$ac_ct_LIPO
7384 else
7385 LIPO="$ac_cv_prog_LIPO"
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7390 set dummy ${ac_tool_prefix}otool; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_OTOOL+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test -n "$OTOOL"; then
7397 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7410 done
7411 done
7412 IFS=$as_save_IFS
7416 OTOOL=$ac_cv_prog_OTOOL
7417 if test -n "$OTOOL"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7419 $as_echo "$OTOOL" >&6; }
7420 else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7427 if test -z "$ac_cv_prog_OTOOL"; then
7428 ac_ct_OTOOL=$OTOOL
7429 # Extract the first word of "otool", so it can be a program name with args.
7430 set dummy otool; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$ac_ct_OTOOL"; then
7437 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_ac_ct_OTOOL="otool"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7450 done
7451 done
7452 IFS=$as_save_IFS
7456 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7457 if test -n "$ac_ct_OTOOL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7459 $as_echo "$ac_ct_OTOOL" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 if test "x$ac_ct_OTOOL" = x; then
7466 OTOOL=":"
7467 else
7468 case $cross_compiling:$ac_tool_warned in
7469 yes:)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned=yes ;;
7473 esac
7474 OTOOL=$ac_ct_OTOOL
7476 else
7477 OTOOL="$ac_cv_prog_OTOOL"
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7482 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_OTOOL64+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$OTOOL64"; then
7489 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7504 IFS=$as_save_IFS
7508 OTOOL64=$ac_cv_prog_OTOOL64
7509 if test -n "$OTOOL64"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7511 $as_echo "$OTOOL64" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7519 if test -z "$ac_cv_prog_OTOOL64"; then
7520 ac_ct_OTOOL64=$OTOOL64
7521 # Extract the first word of "otool64", so it can be a program name with args.
7522 set dummy otool64; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 if test -n "$ac_ct_OTOOL64"; then
7529 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_ac_ct_OTOOL64="otool64"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7542 done
7543 done
7544 IFS=$as_save_IFS
7548 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7549 if test -n "$ac_ct_OTOOL64"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7551 $as_echo "$ac_ct_OTOOL64" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7557 if test "x$ac_ct_OTOOL64" = x; then
7558 OTOOL64=":"
7559 else
7560 case $cross_compiling:$ac_tool_warned in
7561 yes:)
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned=yes ;;
7565 esac
7566 OTOOL64=$ac_ct_OTOOL64
7568 else
7569 OTOOL64="$ac_cv_prog_OTOOL64"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7599 $as_echo_n "checking for -single_module linker flag... " >&6; }
7600 if ${lt_cv_apple_cc_single_mod+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 lt_cv_apple_cc_single_mod=no
7604 if test -z "$LT_MULTI_MODULE"; then
7605 # By default we will add the -single_module flag. You can override
7606 # by either setting the environment variable LT_MULTI_MODULE
7607 # non-empty at configure time, or by adding -multi_module to the
7608 # link flags.
7609 rm -rf libconftest.dylib*
7610 echo "int foo(void){return 1;}" > conftest.c
7611 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7612 -dynamiclib -Wl,-single_module conftest.c" >&5
7613 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7614 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7615 _lt_result=$?
7616 # If there is a non-empty error log, and "single_module"
7617 # appears in it, assume the flag caused a linker warning
7618 if test -s conftest.err && $GREP single_module conftest.err; then
7619 cat conftest.err >&5
7620 # Otherwise, if the output was created with a 0 exit code from
7621 # the compiler, it worked.
7622 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7623 lt_cv_apple_cc_single_mod=yes
7624 else
7625 cat conftest.err >&5
7627 rm -rf libconftest.dylib*
7628 rm -f conftest.*
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7632 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7635 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7636 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 lt_cv_ld_exported_symbols_list=no
7640 save_LDFLAGS=$LDFLAGS
7641 echo "_main" > conftest.sym
7642 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7647 main ()
7651 return 0;
7653 _ACEOF
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 lt_cv_ld_exported_symbols_list=yes
7656 else
7657 lt_cv_ld_exported_symbols_list=no
7659 rm -f core conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661 LDFLAGS=$save_LDFLAGS
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7665 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7668 $as_echo_n "checking for -force_load linker flag... " >&6; }
7669 if ${lt_cv_ld_force_load+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_ld_force_load=no
7673 cat > conftest.c << _LT_EOF
7674 int forced_loaded() { return 2;}
7675 _LT_EOF
7676 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7677 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7678 echo "$AR cru libconftest.a conftest.o" >&5
7679 $AR cru libconftest.a conftest.o 2>&5
7680 echo "$RANLIB libconftest.a" >&5
7681 $RANLIB libconftest.a 2>&5
7682 cat > conftest.c << _LT_EOF
7683 int main() { return 0;}
7684 _LT_EOF
7685 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7686 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7687 _lt_result=$?
7688 if test -s conftest.err && $GREP force_load conftest.err; then
7689 cat conftest.err >&5
7690 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7691 lt_cv_ld_force_load=yes
7692 else
7693 cat conftest.err >&5
7695 rm -f conftest.err libconftest.a conftest conftest.c
7696 rm -rf conftest.dSYM
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7700 $as_echo "$lt_cv_ld_force_load" >&6; }
7701 case $host_os in
7702 rhapsody* | darwin1.[012])
7703 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7704 darwin1.*)
7705 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7706 darwin*) # darwin 5.x on
7707 # if running on 10.5 or later, the deployment target defaults
7708 # to the OS version, if on x86, and 10.4, the deployment
7709 # target defaults to 10.4. Don't you love it?
7710 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7711 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7712 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7713 10.[012][,.]*)
7714 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7715 10.*)
7716 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7717 esac
7719 esac
7720 if test yes = "$lt_cv_apple_cc_single_mod"; then
7721 _lt_dar_single_mod='$single_module'
7723 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7724 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7725 else
7726 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7728 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7729 _lt_dsymutil='~$DSYMUTIL $lib || :'
7730 else
7731 _lt_dsymutil=
7734 esac
7736 # func_munge_path_list VARIABLE PATH
7737 # -----------------------------------
7738 # VARIABLE is name of variable containing _space_ separated list of
7739 # directories to be munged by the contents of PATH, which is string
7740 # having a format:
7741 # "DIR[:DIR]:"
7742 # string "DIR[ DIR]" will be prepended to VARIABLE
7743 # ":DIR[:DIR]"
7744 # string "DIR[ DIR]" will be appended to VARIABLE
7745 # "DIRP[:DIRP]::[DIRA:]DIRA"
7746 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7747 # "DIRA[ DIRA]" will be appended to VARIABLE
7748 # "DIR[:DIR]"
7749 # VARIABLE will be replaced by "DIR[ DIR]"
7750 func_munge_path_list ()
7752 case x$2 in
7756 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7758 x:*)
7759 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7761 *::*)
7762 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7763 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7766 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7768 esac
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7778 # On Suns, sometimes $CPP names a directory.
7779 if test -n "$CPP" && test -d "$CPP"; then
7780 CPP=
7782 if test -z "$CPP"; then
7783 if ${ac_cv_prog_CPP+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 # Double quotes because CPP needs to be expanded
7787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7789 ac_preproc_ok=false
7790 for ac_c_preproc_warn_flag in '' yes
7792 # Use a header file that comes with gcc, so configuring glibc
7793 # with a fresh cross-compiler works.
7794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7795 # <limits.h> exists even on freestanding compilers.
7796 # On the NeXT, cc -E runs the code through the compiler's parser,
7797 # not just through cpp. "Syntax error" is here to catch this case.
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 #ifdef __STDC__
7801 # include <limits.h>
7802 #else
7803 # include <assert.h>
7804 #endif
7805 Syntax error
7806 _ACEOF
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7809 else
7810 # Broken: fails on valid input.
7811 continue
7813 rm -f conftest.err conftest.i conftest.$ac_ext
7815 # OK, works on sane cases. Now check whether nonexistent headers
7816 # can be detected and how.
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 #include <ac_nonexistent.h>
7820 _ACEOF
7821 if ac_fn_c_try_cpp "$LINENO"; then :
7822 # Broken: success on invalid input.
7823 continue
7824 else
7825 # Passes both tests.
7826 ac_preproc_ok=:
7827 break
7829 rm -f conftest.err conftest.i conftest.$ac_ext
7831 done
7832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7833 rm -f conftest.i conftest.err conftest.$ac_ext
7834 if $ac_preproc_ok; then :
7835 break
7838 done
7839 ac_cv_prog_CPP=$CPP
7842 CPP=$ac_cv_prog_CPP
7843 else
7844 ac_cv_prog_CPP=$CPP
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7847 $as_echo "$CPP" >&6; }
7848 ac_preproc_ok=false
7849 for ac_c_preproc_warn_flag in '' yes
7851 # Use a header file that comes with gcc, so configuring glibc
7852 # with a fresh cross-compiler works.
7853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854 # <limits.h> exists even on freestanding compilers.
7855 # On the NeXT, cc -E runs the code through the compiler's parser,
7856 # not just through cpp. "Syntax error" is here to catch this case.
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859 #ifdef __STDC__
7860 # include <limits.h>
7861 #else
7862 # include <assert.h>
7863 #endif
7864 Syntax error
7865 _ACEOF
7866 if ac_fn_c_try_cpp "$LINENO"; then :
7868 else
7869 # Broken: fails on valid input.
7870 continue
7872 rm -f conftest.err conftest.i conftest.$ac_ext
7874 # OK, works on sane cases. Now check whether nonexistent headers
7875 # can be detected and how.
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <ac_nonexistent.h>
7879 _ACEOF
7880 if ac_fn_c_try_cpp "$LINENO"; then :
7881 # Broken: success on invalid input.
7882 continue
7883 else
7884 # Passes both tests.
7885 ac_preproc_ok=:
7886 break
7888 rm -f conftest.err conftest.i conftest.$ac_ext
7890 done
7891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7892 rm -f conftest.i conftest.err conftest.$ac_ext
7893 if $ac_preproc_ok; then :
7895 else
7896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7898 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7899 See \`config.log' for more details" "$LINENO" 5; }
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7910 $as_echo_n "checking for ANSI C header files... " >&6; }
7911 if ${ac_cv_header_stdc+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 #include <stdlib.h>
7917 #include <stdarg.h>
7918 #include <string.h>
7919 #include <float.h>
7922 main ()
7926 return 0;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 ac_cv_header_stdc=yes
7931 else
7932 ac_cv_header_stdc=no
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 if test $ac_cv_header_stdc = yes; then
7937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #include <string.h>
7942 _ACEOF
7943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7944 $EGREP "memchr" >/dev/null 2>&1; then :
7946 else
7947 ac_cv_header_stdc=no
7949 rm -f conftest*
7953 if test $ac_cv_header_stdc = yes; then
7954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 #include <stdlib.h>
7959 _ACEOF
7960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7961 $EGREP "free" >/dev/null 2>&1; then :
7963 else
7964 ac_cv_header_stdc=no
7966 rm -f conftest*
7970 if test $ac_cv_header_stdc = yes; then
7971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7972 if test "$cross_compiling" = yes; then :
7974 else
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 #include <ctype.h>
7978 #include <stdlib.h>
7979 #if ((' ' & 0x0FF) == 0x020)
7980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7982 #else
7983 # define ISLOWER(c) \
7984 (('a' <= (c) && (c) <= 'i') \
7985 || ('j' <= (c) && (c) <= 'r') \
7986 || ('s' <= (c) && (c) <= 'z'))
7987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7988 #endif
7990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7992 main ()
7994 int i;
7995 for (i = 0; i < 256; i++)
7996 if (XOR (islower (i), ISLOWER (i))
7997 || toupper (i) != TOUPPER (i))
7998 return 2;
7999 return 0;
8001 _ACEOF
8002 if ac_fn_c_try_run "$LINENO"; then :
8004 else
8005 ac_cv_header_stdc=no
8007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8008 conftest.$ac_objext conftest.beam conftest.$ac_ext
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8014 $as_echo "$ac_cv_header_stdc" >&6; }
8015 if test $ac_cv_header_stdc = yes; then
8017 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8023 inttypes.h stdint.h unistd.h
8024 do :
8025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8029 cat >>confdefs.h <<_ACEOF
8030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8031 _ACEOF
8035 done
8038 for ac_header in dlfcn.h
8039 do :
8040 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8042 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8043 cat >>confdefs.h <<_ACEOF
8044 #define HAVE_DLFCN_H 1
8045 _ACEOF
8049 done
8052 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8053 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8054 # is not polluted with repeated "-I."
8055 am__isrc=' -I$(srcdir)'
8056 # test to see if srcdir already configured
8057 if test -f $srcdir/config.status; then
8058 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8062 # test whether we have cygpath
8063 if test -z "$CYGPATH_W"; then
8064 if (cygpath --version) >/dev/null 2>/dev/null; then
8065 CYGPATH_W='cygpath -w'
8066 else
8067 CYGPATH_W=echo
8072 # Define the identity of the package.
8073 PACKAGE='kpathsea'
8074 VERSION='6.2.2dev'
8077 cat >>confdefs.h <<_ACEOF
8078 #define PACKAGE "$PACKAGE"
8079 _ACEOF
8082 cat >>confdefs.h <<_ACEOF
8083 #define VERSION "$VERSION"
8084 _ACEOF
8086 # Some tools Automake needs.
8088 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8091 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8094 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8097 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8100 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8102 # For better backward compatibility. To be removed once Automake 1.9.x
8103 # dies out for good. For more background, see:
8104 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
8105 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
8106 mkdir_p='$(MKDIR_P)'
8108 # We need awk for the "check" target (and possibly the TAP driver). The
8109 # system "awk" is bad on some platforms.
8110 # Always define AMTAR for backward compatibility. Yes, it's still used
8111 # in the wild :-( We should find a proper way to deprecate it ...
8112 AMTAR='$${TAR-tar}'
8115 # We'll loop over all known methods to create a tar archive until one works.
8116 _am_tools='gnutar pax cpio none'
8118 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8125 # POSIX will say in a future version that running "rm -f" with no argument
8126 # is OK; and we want to be able to make that assumption in our Makefile
8127 # recipes. So use an aggressive probe to check that the usage we want is
8128 # actually supported "in the wild" to an acceptable degree.
8129 # See automake bug#10828.
8130 # To make any issue more visible, cause the running configure to be aborted
8131 # by default if the 'rm' program in use doesn't match our expectations; the
8132 # user can still override this though.
8133 if rm -f && rm -fr && rm -rf; then : OK; else
8134 cat >&2 <<'END'
8135 Oops!
8137 Your 'rm' program seems unable to run without file operands specified
8138 on the command line, even when the '-f' option is present. This is contrary
8139 to the behaviour of most rm programs out there, and not conforming with
8140 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
8142 Please tell bug-automake@gnu.org about your system, including the value
8143 of your $PATH and any error possibly output before this message. This
8144 can help us improve future automake versions.
8147 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
8148 echo 'Configuration will proceed anyway, since you have set the' >&2
8149 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
8150 echo >&2
8151 else
8152 cat >&2 <<'END'
8153 Aborting the configuration process, to ensure you take notice of the issue.
8155 You can download and install GNU coreutils to get an 'rm' implementation
8156 that behaves properly: <http://www.gnu.org/software/coreutils/>.
8158 If you want to complete the configuration process using your problematic
8159 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
8160 to "yes", and re-run configure.
8163 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8169 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
8170 # Check whether --enable-maintainer-mode was given.
8171 if test "${enable_maintainer_mode+set}" = set; then :
8172 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
8173 else
8174 USE_MAINTAINER_MODE=no
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8178 $as_echo "$USE_MAINTAINER_MODE" >&6; }
8179 if test $USE_MAINTAINER_MODE = yes; then
8180 MAINTAINER_MODE_TRUE=
8181 MAINTAINER_MODE_FALSE='#'
8182 else
8183 MAINTAINER_MODE_TRUE='#'
8184 MAINTAINER_MODE_FALSE=
8187 MAINT=$MAINTAINER_MODE_TRUE
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
8191 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
8192 if ${kb_cv_c_prototypes+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 #include <stdarg.h>
8199 main ()
8201 extern void foo(int i,...);
8203 return 0;
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 kb_cv_c_prototypes=yes
8208 else
8209 kb_cv_c_prototypes=no
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
8215 $as_echo "$kb_cv_c_prototypes" >&6; }
8216 if test "x$kb_cv_c_prototypes" = xno; then
8217 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
8220 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
8221 if ${kpse_cv_warning_cflags+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 if test "x$GCC" = xyes; then
8225 kpse_cv_warning_cflags=
8226 if test "x$enable_compiler_warnings" != xno; then
8227 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
8228 case `$CC -dumpversion` in #(
8229 3.4.* | 4.* | 5.*) :
8230 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
8231 *) :
8233 esac
8234 case `$CC -dumpversion` in #(
8235 3.[234].* | 4.* | 5.*) :
8236 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
8237 *) :
8239 esac
8240 if test "x$enable_compiler_warnings" != xmin; then
8241 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
8242 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
8243 if test "x$enable_compiler_warnings" != xyes; then
8244 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
8245 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
8246 case `$CC -dumpversion` in #(
8247 3.4.* | 4.* | 5.*) :
8248 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
8249 *) :
8251 esac
8252 if test "x$enable_compiler_warnings" != xmax; then
8253 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
8258 elif test "x$enable_compiler_warnings" = xno; then
8259 kpse_cv_warning_cflags=
8260 else
8261 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
8265 $as_echo "$kpse_cv_warning_cflags" >&6; }
8266 WARNING_CFLAGS=$kpse_cv_warning_cflags
8279 # Set options
8280 enable_win32_dll=yes
8282 case $host in
8283 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8284 if test -n "$ac_tool_prefix"; then
8285 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}as; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_AS+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$AS"; then
8293 ac_cv_prog_AS="$AS" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_AS="${ac_tool_prefix}as"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8312 AS=$ac_cv_prog_AS
8313 if test -n "$AS"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8315 $as_echo "$AS" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8323 if test -z "$ac_cv_prog_AS"; then
8324 ac_ct_AS=$AS
8325 # Extract the first word of "as", so it can be a program name with args.
8326 set dummy as; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$ac_ct_AS"; then
8333 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_AS="as"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8346 done
8347 done
8348 IFS=$as_save_IFS
8352 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8353 if test -n "$ac_ct_AS"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8355 $as_echo "$ac_ct_AS" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8361 if test "x$ac_ct_AS" = x; then
8362 AS="false"
8363 else
8364 case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370 AS=$ac_ct_AS
8372 else
8373 AS="$ac_cv_prog_AS"
8376 if test -n "$ac_tool_prefix"; then
8377 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_DLLTOOL+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$DLLTOOL"; then
8385 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8404 DLLTOOL=$ac_cv_prog_DLLTOOL
8405 if test -n "$DLLTOOL"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8407 $as_echo "$DLLTOOL" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_prog_DLLTOOL"; then
8416 ac_ct_DLLTOOL=$DLLTOOL
8417 # Extract the first word of "dlltool", so it can be a program name with args.
8418 set dummy dlltool; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 if test -n "$ac_ct_DLLTOOL"; then
8425 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8438 done
8439 done
8440 IFS=$as_save_IFS
8444 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8445 if test -n "$ac_ct_DLLTOOL"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8447 $as_echo "$ac_ct_DLLTOOL" >&6; }
8448 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8453 if test "x$ac_ct_DLLTOOL" = x; then
8454 DLLTOOL="false"
8455 else
8456 case $cross_compiling:$ac_tool_warned in
8457 yes:)
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8461 esac
8462 DLLTOOL=$ac_ct_DLLTOOL
8464 else
8465 DLLTOOL="$ac_cv_prog_DLLTOOL"
8468 if test -n "$ac_tool_prefix"; then
8469 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_OBJDUMP+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$OBJDUMP"; then
8477 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8496 OBJDUMP=$ac_cv_prog_OBJDUMP
8497 if test -n "$OBJDUMP"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8499 $as_echo "$OBJDUMP" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$ac_cv_prog_OBJDUMP"; then
8508 ac_ct_OBJDUMP=$OBJDUMP
8509 # Extract the first word of "objdump", so it can be a program name with args.
8510 set dummy objdump; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 if test -n "$ac_ct_OBJDUMP"; then
8517 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8530 done
8531 done
8532 IFS=$as_save_IFS
8536 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8537 if test -n "$ac_ct_OBJDUMP"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8539 $as_echo "$ac_ct_OBJDUMP" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8545 if test "x$ac_ct_OBJDUMP" = x; then
8546 OBJDUMP="false"
8547 else
8548 case $cross_compiling:$ac_tool_warned in
8549 yes:)
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8553 esac
8554 OBJDUMP=$ac_ct_OBJDUMP
8556 else
8557 OBJDUMP="$ac_cv_prog_OBJDUMP"
8561 esac
8563 test -z "$AS" && AS=as
8569 test -z "$DLLTOOL" && DLLTOOL=dlltool
8575 test -z "$OBJDUMP" && OBJDUMP=objdump
8583 enable_dlopen=no
8587 # Check whether --enable-shared was given.
8588 if test "${enable_shared+set}" = set; then :
8589 enableval=$enable_shared; p=${PACKAGE-default}
8590 case $enableval in
8591 yes) enable_shared=yes ;;
8592 no) enable_shared=no ;;
8594 enable_shared=no
8595 # Look at the argument we got. We use all the common list separators.
8596 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8597 for pkg in $enableval; do
8598 IFS=$lt_save_ifs
8599 if test "X$pkg" = "X$p"; then
8600 enable_shared=yes
8602 done
8603 IFS=$lt_save_ifs
8605 esac
8606 else
8607 enable_shared=yes
8618 # Check whether --enable-static was given.
8619 if test "${enable_static+set}" = set; then :
8620 enableval=$enable_static; p=${PACKAGE-default}
8621 case $enableval in
8622 yes) enable_static=yes ;;
8623 no) enable_static=no ;;
8625 enable_static=no
8626 # Look at the argument we got. We use all the common list separators.
8627 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8628 for pkg in $enableval; do
8629 IFS=$lt_save_ifs
8630 if test "X$pkg" = "X$p"; then
8631 enable_static=yes
8633 done
8634 IFS=$lt_save_ifs
8636 esac
8637 else
8638 enable_static=yes
8650 # Check whether --with-pic was given.
8651 if test "${with_pic+set}" = set; then :
8652 withval=$with_pic; lt_p=${PACKAGE-default}
8653 case $withval in
8654 yes|no) pic_mode=$withval ;;
8656 pic_mode=default
8657 # Look at the argument we got. We use all the common list separators.
8658 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8659 for lt_pkg in $withval; do
8660 IFS=$lt_save_ifs
8661 if test "X$lt_pkg" = "X$lt_p"; then
8662 pic_mode=yes
8664 done
8665 IFS=$lt_save_ifs
8667 esac
8668 else
8669 pic_mode=default
8679 # Check whether --enable-fast-install was given.
8680 if test "${enable_fast_install+set}" = set; then :
8681 enableval=$enable_fast_install; p=${PACKAGE-default}
8682 case $enableval in
8683 yes) enable_fast_install=yes ;;
8684 no) enable_fast_install=no ;;
8686 enable_fast_install=no
8687 # Look at the argument we got. We use all the common list separators.
8688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8689 for pkg in $enableval; do
8690 IFS=$lt_save_ifs
8691 if test "X$pkg" = "X$p"; then
8692 enable_fast_install=yes
8694 done
8695 IFS=$lt_save_ifs
8697 esac
8698 else
8699 enable_fast_install=yes
8709 shared_archive_member_spec=
8710 case $host,$enable_shared in
8711 power*-*-aix[5-9]*,yes)
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8713 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8715 # Check whether --with-aix-soname was given.
8716 if test "${with_aix_soname+set}" = set; then :
8717 withval=$with_aix_soname; case $withval in
8718 aix|svr4|both)
8721 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8723 esac
8724 lt_cv_with_aix_soname=$with_aix_soname
8725 else
8726 if ${lt_cv_with_aix_soname+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 lt_cv_with_aix_soname=aix
8732 with_aix_soname=$lt_cv_with_aix_soname
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8736 $as_echo "$with_aix_soname" >&6; }
8737 if test aix != "$with_aix_soname"; then
8738 # For the AIX way of multilib, we name the shared archive member
8739 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8740 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8741 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8742 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8743 if test 64 = "${OBJECT_MODE-32}"; then
8744 shared_archive_member_spec=shr_64
8745 else
8746 shared_archive_member_spec=shr
8751 with_aix_soname=aix
8753 esac
8764 # This can be used to rebuild libtool when needed
8765 LIBTOOL_DEPS=$ltmain
8767 # Always use our own libtool.
8768 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8799 test -z "$LN_S" && LN_S="ln -s"
8814 if test -n "${ZSH_VERSION+set}"; then
8815 setopt NO_GLOB_SUBST
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8819 $as_echo_n "checking for objdir... " >&6; }
8820 if ${lt_cv_objdir+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 rm -f .libs 2>/dev/null
8824 mkdir .libs 2>/dev/null
8825 if test -d .libs; then
8826 lt_cv_objdir=.libs
8827 else
8828 # MS-DOS does not allow filenames that begin with a dot.
8829 lt_cv_objdir=_libs
8831 rmdir .libs 2>/dev/null
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8834 $as_echo "$lt_cv_objdir" >&6; }
8835 objdir=$lt_cv_objdir
8841 cat >>confdefs.h <<_ACEOF
8842 #define LT_OBJDIR "$lt_cv_objdir/"
8843 _ACEOF
8848 case $host_os in
8849 aix3*)
8850 # AIX sometimes has problems with the GCC collect2 program. For some
8851 # reason, if we set the COLLECT_NAMES environment variable, the problems
8852 # vanish in a puff of smoke.
8853 if test set != "${COLLECT_NAMES+set}"; then
8854 COLLECT_NAMES=
8855 export COLLECT_NAMES
8858 esac
8860 # Global variables:
8861 ofile=libtool
8862 can_build_shared=yes
8864 # All known linkers require a '.a' archive for static linking (except MSVC,
8865 # which needs '.lib').
8866 libext=a
8868 with_gnu_ld=$lt_cv_prog_gnu_ld
8870 old_CC=$CC
8871 old_CFLAGS=$CFLAGS
8873 # Set sane defaults for various variables
8874 test -z "$CC" && CC=cc
8875 test -z "$LTCC" && LTCC=$CC
8876 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8877 test -z "$LD" && LD=ld
8878 test -z "$ac_objext" && ac_objext=o
8880 func_cc_basename $compiler
8881 cc_basename=$func_cc_basename_result
8884 # Only perform the check for file, if the check method requires it
8885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8886 case $deplibs_check_method in
8887 file_magic*)
8888 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8890 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8891 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 case $MAGIC_CMD in
8895 [\\/*] | ?:[\\/]*)
8896 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8899 lt_save_MAGIC_CMD=$MAGIC_CMD
8900 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8901 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8902 for ac_dir in $ac_dummy; do
8903 IFS=$lt_save_ifs
8904 test -z "$ac_dir" && ac_dir=.
8905 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8906 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8907 if test -n "$file_magic_test_file"; then
8908 case $deplibs_check_method in
8909 "file_magic "*)
8910 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8911 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8912 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8913 $EGREP "$file_magic_regex" > /dev/null; then
8915 else
8916 cat <<_LT_EOF 1>&2
8918 *** Warning: the command libtool uses to detect shared libraries,
8919 *** $file_magic_cmd, produces output that libtool cannot recognize.
8920 *** The result is that libtool may fail to recognize shared libraries
8921 *** as such. This will affect the creation of libtool libraries that
8922 *** depend on shared libraries, but programs linked with such libtool
8923 *** libraries will work regardless of this problem. Nevertheless, you
8924 *** may want to report the problem to your system manager and/or to
8925 *** bug-libtool@gnu.org
8927 _LT_EOF
8928 fi ;;
8929 esac
8931 break
8933 done
8934 IFS=$lt_save_ifs
8935 MAGIC_CMD=$lt_save_MAGIC_CMD
8937 esac
8940 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8941 if test -n "$MAGIC_CMD"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8943 $as_echo "$MAGIC_CMD" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8953 if test -z "$lt_cv_path_MAGIC_CMD"; then
8954 if test -n "$ac_tool_prefix"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8956 $as_echo_n "checking for file... " >&6; }
8957 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 case $MAGIC_CMD in
8961 [\\/*] | ?:[\\/]*)
8962 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8965 lt_save_MAGIC_CMD=$MAGIC_CMD
8966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8967 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8968 for ac_dir in $ac_dummy; do
8969 IFS=$lt_save_ifs
8970 test -z "$ac_dir" && ac_dir=.
8971 if test -f "$ac_dir/file"; then
8972 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8973 if test -n "$file_magic_test_file"; then
8974 case $deplibs_check_method in
8975 "file_magic "*)
8976 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8977 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8978 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8979 $EGREP "$file_magic_regex" > /dev/null; then
8981 else
8982 cat <<_LT_EOF 1>&2
8984 *** Warning: the command libtool uses to detect shared libraries,
8985 *** $file_magic_cmd, produces output that libtool cannot recognize.
8986 *** The result is that libtool may fail to recognize shared libraries
8987 *** as such. This will affect the creation of libtool libraries that
8988 *** depend on shared libraries, but programs linked with such libtool
8989 *** libraries will work regardless of this problem. Nevertheless, you
8990 *** may want to report the problem to your system manager and/or to
8991 *** bug-libtool@gnu.org
8993 _LT_EOF
8994 fi ;;
8995 esac
8997 break
8999 done
9000 IFS=$lt_save_ifs
9001 MAGIC_CMD=$lt_save_MAGIC_CMD
9003 esac
9006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9007 if test -n "$MAGIC_CMD"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9009 $as_echo "$MAGIC_CMD" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9016 else
9017 MAGIC_CMD=:
9023 esac
9025 # Use C for the default configuration in the libtool script
9027 lt_save_CC=$CC
9028 ac_ext=c
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035 # Source file extension for C test sources.
9036 ac_ext=c
9038 # Object file extension for compiled C test sources.
9039 objext=o
9040 objext=$objext
9042 # Code to be used in simple compile tests
9043 lt_simple_compile_test_code="int some_variable = 0;"
9045 # Code to be used in simple link tests
9046 lt_simple_link_test_code='int main(){return(0);}'
9054 # If no C compiler was specified, use CC.
9055 LTCC=${LTCC-"$CC"}
9057 # If no C compiler flags were specified, use CFLAGS.
9058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9060 # Allow CC to be a program name with arguments.
9061 compiler=$CC
9063 # Save the default compiler, since it gets overwritten when the other
9064 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9065 compiler_DEFAULT=$CC
9067 # save warnings/boilerplate of simple test code
9068 ac_outfile=conftest.$ac_objext
9069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9071 _lt_compiler_boilerplate=`cat conftest.err`
9072 $RM conftest*
9074 ac_outfile=conftest.$ac_objext
9075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9077 _lt_linker_boilerplate=`cat conftest.err`
9078 $RM -r conftest*
9081 ## CAVEAT EMPTOR:
9082 ## There is no encapsulation within the following macros, do not change
9083 ## the running order or otherwise move them around unless you know exactly
9084 ## what you are doing...
9085 if test -n "$compiler"; then
9087 lt_prog_compiler_no_builtin_flag=
9089 if test yes = "$GCC"; then
9090 case $cc_basename in
9091 nvcc*)
9092 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9094 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9095 esac
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9098 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9099 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 lt_cv_prog_compiler_rtti_exceptions=no
9103 ac_outfile=conftest.$ac_objext
9104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9105 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9106 # Insert the option either (1) after the last *FLAGS variable, or
9107 # (2) before a word containing "conftest.", or (3) at the end.
9108 # Note that $ac_compile itself does not contain backslashes and begins
9109 # with a dollar sign (not a hyphen), so the echo should work correctly.
9110 # The option is referenced via a variable to avoid confusing sed.
9111 lt_compile=`echo "$ac_compile" | $SED \
9112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9114 -e 's:$: $lt_compiler_flag:'`
9115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9116 (eval "$lt_compile" 2>conftest.err)
9117 ac_status=$?
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 if (exit $ac_status) && test -s "$ac_outfile"; then
9121 # The compiler can only warn and ignore the option if not recognized
9122 # So say no if there are warnings other than the usual output.
9123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9126 lt_cv_prog_compiler_rtti_exceptions=yes
9129 $RM conftest*
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9133 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9135 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9137 else
9148 lt_prog_compiler_wl=
9149 lt_prog_compiler_pic=
9150 lt_prog_compiler_static=
9153 if test yes = "$GCC"; then
9154 lt_prog_compiler_wl='-Wl,'
9155 lt_prog_compiler_static='-static'
9157 case $host_os in
9158 aix*)
9159 # All AIX code is PIC.
9160 if test ia64 = "$host_cpu"; then
9161 # AIX 5 now supports IA64 processor
9162 lt_prog_compiler_static='-Bstatic'
9164 lt_prog_compiler_pic='-fPIC'
9167 amigaos*)
9168 case $host_cpu in
9169 powerpc)
9170 # see comment about AmigaOS4 .so support
9171 lt_prog_compiler_pic='-fPIC'
9173 m68k)
9174 # FIXME: we need at least 68020 code to build shared libraries, but
9175 # adding the '-m68020' flag to GCC prevents building anything better,
9176 # like '-m68040'.
9177 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9179 esac
9182 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9183 # PIC is the default for these OSes.
9186 mingw* | cygwin* | pw32* | os2* | cegcc*)
9187 # This hack is so that the source file can tell whether it is being
9188 # built for inclusion in a dll (and should export symbols for example).
9189 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9190 # (--disable-auto-import) libraries
9191 lt_prog_compiler_pic='-DDLL_EXPORT'
9192 case $host_os in
9193 os2*)
9194 lt_prog_compiler_static='$wl-static'
9196 esac
9199 darwin* | rhapsody*)
9200 # PIC is the default on this platform
9201 # Common symbols not allowed in MH_DYLIB files
9202 lt_prog_compiler_pic='-fno-common'
9205 haiku*)
9206 # PIC is the default for Haiku.
9207 # The "-static" flag exists, but is broken.
9208 lt_prog_compiler_static=
9211 hpux*)
9212 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9213 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9214 # sets the default TLS model and affects inlining.
9215 case $host_cpu in
9216 hppa*64*)
9217 # +Z the default
9220 lt_prog_compiler_pic='-fPIC'
9222 esac
9225 interix[3-9]*)
9226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9227 # Instead, we relocate shared libraries at runtime.
9230 msdosdjgpp*)
9231 # Just because we use GCC doesn't mean we suddenly get shared libraries
9232 # on systems that don't support them.
9233 lt_prog_compiler_can_build_shared=no
9234 enable_shared=no
9237 *nto* | *qnx*)
9238 # QNX uses GNU C++, but need to define -shared option too, otherwise
9239 # it will coredump.
9240 lt_prog_compiler_pic='-fPIC -shared'
9243 sysv4*MP*)
9244 if test -d /usr/nec; then
9245 lt_prog_compiler_pic=-Kconform_pic
9250 lt_prog_compiler_pic='-fPIC'
9252 esac
9254 case $cc_basename in
9255 nvcc*) # Cuda Compiler Driver 2.2
9256 lt_prog_compiler_wl='-Xlinker '
9257 if test -n "$lt_prog_compiler_pic"; then
9258 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9261 esac
9262 else
9263 # PORTME Check for flag to pass linker flags through the system compiler.
9264 case $host_os in
9265 aix*)
9266 lt_prog_compiler_wl='-Wl,'
9267 if test ia64 = "$host_cpu"; then
9268 # AIX 5 now supports IA64 processor
9269 lt_prog_compiler_static='-Bstatic'
9270 else
9271 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9275 darwin* | rhapsody*)
9276 # PIC is the default on this platform
9277 # Common symbols not allowed in MH_DYLIB files
9278 lt_prog_compiler_pic='-fno-common'
9279 case $cc_basename in
9280 nagfor*)
9281 # NAG Fortran compiler
9282 lt_prog_compiler_wl='-Wl,-Wl,,'
9283 lt_prog_compiler_pic='-PIC'
9284 lt_prog_compiler_static='-Bstatic'
9286 esac
9289 mingw* | cygwin* | pw32* | os2* | cegcc*)
9290 # This hack is so that the source file can tell whether it is being
9291 # built for inclusion in a dll (and should export symbols for example).
9292 lt_prog_compiler_pic='-DDLL_EXPORT'
9293 case $host_os in
9294 os2*)
9295 lt_prog_compiler_static='$wl-static'
9297 esac
9300 hpux9* | hpux10* | hpux11*)
9301 lt_prog_compiler_wl='-Wl,'
9302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9303 # not for PA HP-UX.
9304 case $host_cpu in
9305 hppa*64*|ia64*)
9306 # +Z the default
9309 lt_prog_compiler_pic='+Z'
9311 esac
9312 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9313 lt_prog_compiler_static='$wl-a ${wl}archive'
9316 irix5* | irix6* | nonstopux*)
9317 lt_prog_compiler_wl='-Wl,'
9318 # PIC (with -KPIC) is the default.
9319 lt_prog_compiler_static='-non_shared'
9322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9323 case $cc_basename in
9324 # old Intel for x86_64, which still supported -KPIC.
9325 ecc*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-static'
9330 # icc used to be incompatible with GCC.
9331 # ICC 10 doesn't accept -KPIC any more.
9332 icc* | ifort*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fPIC'
9335 lt_prog_compiler_static='-static'
9337 # Lahey Fortran 8.1.
9338 lf95*)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_pic='--shared'
9341 lt_prog_compiler_static='--static'
9343 nagfor*)
9344 # NAG Fortran compiler
9345 lt_prog_compiler_wl='-Wl,-Wl,,'
9346 lt_prog_compiler_pic='-PIC'
9347 lt_prog_compiler_static='-Bstatic'
9349 tcc*)
9350 # Fabrice Bellard et al's Tiny C Compiler
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-fPIC'
9353 lt_prog_compiler_static='-static'
9355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9356 # Portland Group compilers (*not* the Pentium gcc compiler,
9357 # which looks to be a dead project)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-fpic'
9360 lt_prog_compiler_static='-Bstatic'
9362 ccc*)
9363 lt_prog_compiler_wl='-Wl,'
9364 # All Alpha code is PIC.
9365 lt_prog_compiler_static='-non_shared'
9367 xl* | bgxl* | bgf* | mpixl*)
9368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-qpic'
9371 lt_prog_compiler_static='-qstaticlink'
9374 case `$CC -V 2>&1 | sed 5q` in
9375 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 lt_prog_compiler_wl=''
9381 *Sun\ F* | *Sun*Fortran*)
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 lt_prog_compiler_wl='-Qoption ld '
9386 *Sun\ C*)
9387 # Sun C 5.9
9388 lt_prog_compiler_pic='-KPIC'
9389 lt_prog_compiler_static='-Bstatic'
9390 lt_prog_compiler_wl='-Wl,'
9392 *Intel*\ [CF]*Compiler*)
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_pic='-fPIC'
9395 lt_prog_compiler_static='-static'
9397 *Portland\ Group*)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-fpic'
9400 lt_prog_compiler_static='-Bstatic'
9402 esac
9404 esac
9407 newsos6)
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-Bstatic'
9412 *nto* | *qnx*)
9413 # QNX uses GNU C++, but need to define -shared option too, otherwise
9414 # it will coredump.
9415 lt_prog_compiler_pic='-fPIC -shared'
9418 osf3* | osf4* | osf5*)
9419 lt_prog_compiler_wl='-Wl,'
9420 # All OSF/1 code is PIC.
9421 lt_prog_compiler_static='-non_shared'
9424 rdos*)
9425 lt_prog_compiler_static='-non_shared'
9428 solaris*)
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 case $cc_basename in
9432 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9433 lt_prog_compiler_wl='-Qoption ld ';;
9435 lt_prog_compiler_wl='-Wl,';;
9436 esac
9439 sunos4*)
9440 lt_prog_compiler_wl='-Qoption ld '
9441 lt_prog_compiler_pic='-PIC'
9442 lt_prog_compiler_static='-Bstatic'
9445 sysv4 | sysv4.2uw2* | sysv4.3*)
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-KPIC'
9448 lt_prog_compiler_static='-Bstatic'
9451 sysv4*MP*)
9452 if test -d /usr/nec; then
9453 lt_prog_compiler_pic='-Kconform_pic'
9454 lt_prog_compiler_static='-Bstatic'
9458 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9464 unicos*)
9465 lt_prog_compiler_wl='-Wl,'
9466 lt_prog_compiler_can_build_shared=no
9469 uts4*)
9470 lt_prog_compiler_pic='-pic'
9471 lt_prog_compiler_static='-Bstatic'
9475 lt_prog_compiler_can_build_shared=no
9477 esac
9480 case $host_os in
9481 # For platforms that do not support PIC, -DPIC is meaningless:
9482 *djgpp*)
9483 lt_prog_compiler_pic=
9486 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9488 esac
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9491 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9492 if ${lt_cv_prog_compiler_pic+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9498 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9499 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9502 # Check to make sure the PIC flag actually works.
9504 if test -n "$lt_prog_compiler_pic"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9507 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 lt_cv_prog_compiler_pic_works=no
9511 ac_outfile=conftest.$ac_objext
9512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9513 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9514 # Insert the option either (1) after the last *FLAGS variable, or
9515 # (2) before a word containing "conftest.", or (3) at the end.
9516 # Note that $ac_compile itself does not contain backslashes and begins
9517 # with a dollar sign (not a hyphen), so the echo should work correctly.
9518 # The option is referenced via a variable to avoid confusing sed.
9519 lt_compile=`echo "$ac_compile" | $SED \
9520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9522 -e 's:$: $lt_compiler_flag:'`
9523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9524 (eval "$lt_compile" 2>conftest.err)
9525 ac_status=$?
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 if (exit $ac_status) && test -s "$ac_outfile"; then
9529 # The compiler can only warn and ignore the option if not recognized
9530 # So say no if there are warnings other than the usual output.
9531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9534 lt_cv_prog_compiler_pic_works=yes
9537 $RM conftest*
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9541 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9543 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9544 case $lt_prog_compiler_pic in
9545 "" | " "*) ;;
9546 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9547 esac
9548 else
9549 lt_prog_compiler_pic=
9550 lt_prog_compiler_can_build_shared=no
9566 # Check to make sure the static flag actually works.
9568 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9570 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9571 if ${lt_cv_prog_compiler_static_works+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 lt_cv_prog_compiler_static_works=no
9575 save_LDFLAGS=$LDFLAGS
9576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9579 # The linker can only warn and ignore the option if not recognized
9580 # So say no if there are warnings
9581 if test -s conftest.err; then
9582 # Append any errors to the config.log.
9583 cat conftest.err 1>&5
9584 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586 if diff conftest.exp conftest.er2 >/dev/null; then
9587 lt_cv_prog_compiler_static_works=yes
9589 else
9590 lt_cv_prog_compiler_static_works=yes
9593 $RM -r conftest*
9594 LDFLAGS=$save_LDFLAGS
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9598 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9600 if test yes = "$lt_cv_prog_compiler_static_works"; then
9602 else
9603 lt_prog_compiler_static=
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9614 if ${lt_cv_prog_compiler_c_o+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 lt_cv_prog_compiler_c_o=no
9618 $RM -r conftest 2>/dev/null
9619 mkdir conftest
9620 cd conftest
9621 mkdir out
9622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624 lt_compiler_flag="-o out/conftest2.$ac_objext"
9625 # Insert the option either (1) after the last *FLAGS variable, or
9626 # (2) before a word containing "conftest.", or (3) at the end.
9627 # Note that $ac_compile itself does not contain backslashes and begins
9628 # with a dollar sign (not a hyphen), so the echo should work correctly.
9629 lt_compile=`echo "$ac_compile" | $SED \
9630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9632 -e 's:$: $lt_compiler_flag:'`
9633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9634 (eval "$lt_compile" 2>out/conftest.err)
9635 ac_status=$?
9636 cat out/conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9639 then
9640 # The compiler can only warn and ignore the option if not recognized
9641 # So say no if there are warnings
9642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9645 lt_cv_prog_compiler_c_o=yes
9648 chmod u+w . 2>&5
9649 $RM conftest*
9650 # SGI C++ compiler will create directory out/ii_files/ for
9651 # template instantiation
9652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9653 $RM out/* && rmdir out
9654 cd ..
9655 $RM -r conftest
9656 $RM conftest*
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9660 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9669 if ${lt_cv_prog_compiler_c_o+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 lt_cv_prog_compiler_c_o=no
9673 $RM -r conftest 2>/dev/null
9674 mkdir conftest
9675 cd conftest
9676 mkdir out
9677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9679 lt_compiler_flag="-o out/conftest2.$ac_objext"
9680 # Insert the option either (1) after the last *FLAGS variable, or
9681 # (2) before a word containing "conftest.", or (3) at the end.
9682 # Note that $ac_compile itself does not contain backslashes and begins
9683 # with a dollar sign (not a hyphen), so the echo should work correctly.
9684 lt_compile=`echo "$ac_compile" | $SED \
9685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9687 -e 's:$: $lt_compiler_flag:'`
9688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9689 (eval "$lt_compile" 2>out/conftest.err)
9690 ac_status=$?
9691 cat out/conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9694 then
9695 # The compiler can only warn and ignore the option if not recognized
9696 # So say no if there are warnings
9697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9700 lt_cv_prog_compiler_c_o=yes
9703 chmod u+w . 2>&5
9704 $RM conftest*
9705 # SGI C++ compiler will create directory out/ii_files/ for
9706 # template instantiation
9707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9708 $RM out/* && rmdir out
9709 cd ..
9710 $RM -r conftest
9711 $RM conftest*
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9715 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9720 hard_links=nottested
9721 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9722 # do not overwrite the value of need_locks provided by the user
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9724 $as_echo_n "checking if we can lock with hard links... " >&6; }
9725 hard_links=yes
9726 $RM conftest*
9727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9728 touch conftest.a
9729 ln conftest.a conftest.b 2>&5 || hard_links=no
9730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9732 $as_echo "$hard_links" >&6; }
9733 if test no = "$hard_links"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9735 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9736 need_locks=warn
9738 else
9739 need_locks=no
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9748 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9750 runpath_var=
9751 allow_undefined_flag=
9752 always_export_symbols=no
9753 archive_cmds=
9754 archive_expsym_cmds=
9755 compiler_needs_object=no
9756 enable_shared_with_static_runtimes=no
9757 export_dynamic_flag_spec=
9758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9759 hardcode_automatic=no
9760 hardcode_direct=no
9761 hardcode_direct_absolute=no
9762 hardcode_libdir_flag_spec=
9763 hardcode_libdir_separator=
9764 hardcode_minus_L=no
9765 hardcode_shlibpath_var=unsupported
9766 inherit_rpath=no
9767 link_all_deplibs=unknown
9768 module_cmds=
9769 module_expsym_cmds=
9770 old_archive_from_new_cmds=
9771 old_archive_from_expsyms_cmds=
9772 thread_safe_flag_spec=
9773 whole_archive_flag_spec=
9774 # include_expsyms should be a list of space-separated symbols to be *always*
9775 # included in the symbol list
9776 include_expsyms=
9777 # exclude_expsyms can be an extended regexp of symbols to exclude
9778 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9779 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9780 # as well as any symbol that contains 'd'.
9781 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9783 # platforms (ab)use it in PIC code, but their linkers get confused if
9784 # the symbol is explicitly referenced. Since portable code cannot
9785 # rely on this symbol name, it's probably fine to never include it in
9786 # preloaded symbol tables.
9787 # Exclude shared library initialization/finalization symbols.
9788 extract_expsyms_cmds=
9790 case $host_os in
9791 cygwin* | mingw* | pw32* | cegcc*)
9792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9793 # When not using gcc, we currently assume that we are using
9794 # Microsoft Visual C++.
9795 if test yes != "$GCC"; then
9796 with_gnu_ld=no
9799 interix*)
9800 # we just hope/assume this is gcc and not c89 (= MSVC++)
9801 with_gnu_ld=yes
9803 openbsd* | bitrig*)
9804 with_gnu_ld=no
9806 esac
9808 ld_shlibs=yes
9810 # On some targets, GNU ld is compatible enough with the native linker
9811 # that we're better off using the native interface for both.
9812 lt_use_gnu_ld_interface=no
9813 if test yes = "$with_gnu_ld"; then
9814 case $host_os in
9815 aix*)
9816 # The AIX port of GNU ld has always aspired to compatibility
9817 # with the native linker. However, as the warning in the GNU ld
9818 # block says, versions before 2.19.5* couldn't really create working
9819 # shared libraries, regardless of the interface used.
9820 case `$LD -v 2>&1` in
9821 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9822 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9823 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9825 lt_use_gnu_ld_interface=yes
9827 esac
9830 lt_use_gnu_ld_interface=yes
9832 esac
9835 if test yes = "$lt_use_gnu_ld_interface"; then
9836 # If archive_cmds runs LD, not CC, wlarc should be empty
9837 wlarc='$wl'
9839 # Set some defaults for GNU ld with shared library support. These
9840 # are reset later if shared libraries are not supported. Putting them
9841 # here allows them to be overridden if necessary.
9842 runpath_var=LD_RUN_PATH
9843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9844 export_dynamic_flag_spec='$wl--export-dynamic'
9845 # ancient GNU ld didn't support --whole-archive et. al.
9846 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9847 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9848 else
9849 whole_archive_flag_spec=
9851 supports_anon_versioning=no
9852 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9853 *GNU\ gold*) supports_anon_versioning=yes ;;
9854 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9855 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9856 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9857 *\ 2.11.*) ;; # other 2.11 versions
9858 *) supports_anon_versioning=yes ;;
9859 esac
9861 # See if GNU ld supports shared libraries.
9862 case $host_os in
9863 aix[3-9]*)
9864 # On AIX/PPC, the GNU linker is very broken
9865 if test ia64 != "$host_cpu"; then
9866 ld_shlibs=no
9867 cat <<_LT_EOF 1>&2
9869 *** Warning: the GNU linker, at least up to release 2.19, is reported
9870 *** to be unable to reliably create shared libraries on AIX.
9871 *** Therefore, libtool is disabling shared libraries support. If you
9872 *** really care for shared libraries, you may want to install binutils
9873 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9874 *** You will then need to restart the configuration process.
9876 _LT_EOF
9880 amigaos*)
9881 case $host_cpu in
9882 powerpc)
9883 # see comment about AmigaOS4 .so support
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9885 archive_expsym_cmds=''
9887 m68k)
9888 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)'
9889 hardcode_libdir_flag_spec='-L$libdir'
9890 hardcode_minus_L=yes
9892 esac
9895 beos*)
9896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9897 allow_undefined_flag=unsupported
9898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9899 # support --undefined. This deserves some investigation. FIXME
9900 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901 else
9902 ld_shlibs=no
9906 cygwin* | mingw* | pw32* | cegcc*)
9907 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9908 # as there is no search path for DLLs.
9909 hardcode_libdir_flag_spec='-L$libdir'
9910 export_dynamic_flag_spec='$wl--export-all-symbols'
9911 allow_undefined_flag=unsupported
9912 always_export_symbols=no
9913 enable_shared_with_static_runtimes=yes
9914 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'
9915 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9919 # If the export-symbols file already is a .def file, use it as
9920 # is; otherwise, prepend EXPORTS...
9921 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9922 cp $export_symbols $output_objdir/$soname.def;
9923 else
9924 echo EXPORTS > $output_objdir/$soname.def;
9925 cat $export_symbols >> $output_objdir/$soname.def;
9927 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9928 else
9929 ld_shlibs=no
9933 haiku*)
9934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935 link_all_deplibs=yes
9938 os2*)
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_minus_L=yes
9941 allow_undefined_flag=unsupported
9942 shrext_cmds=.dll
9943 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9944 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9945 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9946 $ECHO EXPORTS >> $output_objdir/$libname.def~
9947 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9948 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9949 emximp -o $lib $output_objdir/$libname.def'
9950 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9953 $ECHO EXPORTS >> $output_objdir/$libname.def~
9954 prefix_cmds="$SED"~
9955 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9956 prefix_cmds="$prefix_cmds -e 1d";
9958 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9959 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9961 emximp -o $lib $output_objdir/$libname.def'
9962 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9963 enable_shared_with_static_runtimes=yes
9966 interix[3-9]*)
9967 hardcode_direct=no
9968 hardcode_shlibpath_var=no
9969 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9970 export_dynamic_flag_spec='$wl-E'
9971 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9972 # Instead, shared libraries are loaded at an image base (0x10000000 by
9973 # default) and relocated if they conflict, which is a slow very memory
9974 # consuming and fragmenting process. To avoid this, we pick a random,
9975 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9976 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9977 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9978 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'
9981 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9982 tmp_diet=no
9983 if test linux-dietlibc = "$host_os"; then
9984 case $cc_basename in
9985 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9986 esac
9988 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9989 && test no = "$tmp_diet"
9990 then
9991 tmp_addflag=' $pic_flag'
9992 tmp_sharedflag='-shared'
9993 case $cc_basename,$host_cpu in
9994 pgcc*) # Portland Group C compiler
9995 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'
9996 tmp_addflag=' $pic_flag'
9998 pgf77* | pgf90* | pgf95* | pgfortran*)
9999 # Portland Group f77 and f90 compilers
10000 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'
10001 tmp_addflag=' $pic_flag -Mnomain' ;;
10002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10003 tmp_addflag=' -i_dynamic' ;;
10004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10005 tmp_addflag=' -i_dynamic -nofor_main' ;;
10006 ifc* | ifort*) # Intel Fortran compiler
10007 tmp_addflag=' -nofor_main' ;;
10008 lf95*) # Lahey Fortran 8.1
10009 whole_archive_flag_spec=
10010 tmp_sharedflag='--shared' ;;
10011 nagfor*) # NAGFOR 5.3
10012 tmp_sharedflag='-Wl,-shared' ;;
10013 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10014 tmp_sharedflag='-qmkshrobj'
10015 tmp_addflag= ;;
10016 nvcc*) # Cuda Compiler Driver 2.2
10017 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'
10018 compiler_needs_object=yes
10020 esac
10021 case `$CC -V 2>&1 | sed 5q` in
10022 *Sun\ C*) # Sun C 5.9
10023 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'
10024 compiler_needs_object=yes
10025 tmp_sharedflag='-G' ;;
10026 *Sun\ F*) # Sun Fortran 8.3
10027 tmp_sharedflag='-G' ;;
10028 esac
10029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10031 if test yes = "$supports_anon_versioning"; then
10032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10034 echo "local: *; };" >> $output_objdir/$libname.ver~
10035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10038 case $cc_basename in
10039 tcc*)
10040 export_dynamic_flag_spec='-rdynamic'
10042 xlf* | bgf* | bgxlf* | mpixlf*)
10043 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10044 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10046 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10047 if test yes = "$supports_anon_versioning"; then
10048 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10050 echo "local: *; };" >> $output_objdir/$libname.ver~
10051 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10054 esac
10055 else
10056 ld_shlibs=no
10060 netbsd*)
10061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10062 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10063 wlarc=
10064 else
10065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10070 solaris*)
10071 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10072 ld_shlibs=no
10073 cat <<_LT_EOF 1>&2
10075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10076 *** create shared libraries on Solaris systems. Therefore, libtool
10077 *** is disabling shared libraries support. We urge you to upgrade GNU
10078 *** binutils to release 2.9.1 or newer. Another option is to modify
10079 *** your PATH or compiler configuration so that the native linker is
10080 *** used, and then restart.
10082 _LT_EOF
10083 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10086 else
10087 ld_shlibs=no
10091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10092 case `$LD -v 2>&1` in
10093 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10094 ld_shlibs=no
10095 cat <<_LT_EOF 1>&2
10097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10098 *** reliably create shared libraries on SCO systems. Therefore, libtool
10099 *** is disabling shared libraries support. We urge you to upgrade GNU
10100 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10101 *** your PATH or compiler configuration so that the native linker is
10102 *** used, and then restart.
10104 _LT_EOF
10107 # For security reasons, it is highly recommended that you always
10108 # use absolute paths for naming shared libraries, and exclude the
10109 # DT_RUNPATH tag from executables and libraries. But doing so
10110 # requires that you compile everything twice, which is a pain.
10111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10115 else
10116 ld_shlibs=no
10119 esac
10122 sunos4*)
10123 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10124 wlarc=
10125 hardcode_direct=yes
10126 hardcode_shlibpath_var=no
10130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10133 else
10134 ld_shlibs=no
10137 esac
10139 if test no = "$ld_shlibs"; then
10140 runpath_var=
10141 hardcode_libdir_flag_spec=
10142 export_dynamic_flag_spec=
10143 whole_archive_flag_spec=
10145 else
10146 # PORTME fill in a description of your system's linker (not GNU ld)
10147 case $host_os in
10148 aix3*)
10149 allow_undefined_flag=unsupported
10150 always_export_symbols=yes
10151 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'
10152 # Note: this linker hardcodes the directories in LIBPATH if there
10153 # are no directories specified by -L.
10154 hardcode_minus_L=yes
10155 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10156 # Neither direct hardcoding nor static linking is supported with a
10157 # broken collect2.
10158 hardcode_direct=unsupported
10162 aix[4-9]*)
10163 if test ia64 = "$host_cpu"; then
10164 # On IA64, the linker does run time linking by default, so we don't
10165 # have to do anything special.
10166 aix_use_runtimelinking=no
10167 exp_sym_flag='-Bexport'
10168 no_entry_flag=
10169 else
10170 # If we're using GNU nm, then we don't want the "-C" option.
10171 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10172 # Without the "-l" option, or with the "-B" option, AIX nm treats
10173 # weak defined symbols like other global defined symbols, whereas
10174 # GNU nm marks them as "W".
10175 # While the 'weak' keyword is ignored in the Export File, we need
10176 # it in the Import File for the 'aix-soname' feature, so we have
10177 # to replace the "-B" option with "-P" for AIX nm.
10178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10179 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'
10180 else
10181 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 == "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'
10183 aix_use_runtimelinking=no
10185 # Test if we are trying to use run time linking or normal
10186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10187 # have runtime linking enabled, and use it for executables.
10188 # For shared libraries, we enable/disable runtime linking
10189 # depending on the kind of the shared library created -
10190 # when "with_aix_soname,aix_use_runtimelinking" is:
10191 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10192 # "aix,yes" lib.so shared, rtl:yes, for executables
10193 # lib.a static archive
10194 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10195 # lib.a(lib.so.V) shared, rtl:no, for executables
10196 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10197 # lib.a(lib.so.V) shared, rtl:no
10198 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10199 # lib.a static archive
10200 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10201 for ld_flag in $LDFLAGS; do
10202 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10203 aix_use_runtimelinking=yes
10204 break
10206 done
10207 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10208 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10209 # so we don't have lib.a shared libs to link our executables.
10210 # We have to force runtime linking in this case.
10211 aix_use_runtimelinking=yes
10212 LDFLAGS="$LDFLAGS -Wl,-brtl"
10215 esac
10217 exp_sym_flag='-bexport'
10218 no_entry_flag='-bnoentry'
10221 # When large executables or shared objects are built, AIX ld can
10222 # have problems creating the table of contents. If linking a library
10223 # or program results in "error TOC overflow" add -mminimal-toc to
10224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10227 archive_cmds=''
10228 hardcode_direct=yes
10229 hardcode_direct_absolute=yes
10230 hardcode_libdir_separator=':'
10231 link_all_deplibs=yes
10232 file_list_spec='$wl-f,'
10233 case $with_aix_soname,$aix_use_runtimelinking in
10234 aix,*) ;; # traditional, no import file
10235 svr4,* | *,yes) # use import file
10236 # The Import File defines what to hardcode.
10237 hardcode_direct=no
10238 hardcode_direct_absolute=no
10240 esac
10242 if test yes = "$GCC"; then
10243 case $host_os in aix4.[012]|aix4.[012].*)
10244 # We only want to do this on AIX 4.2 and lower, the check
10245 # below for broken collect2 doesn't work under 4.3+
10246 collect2name=`$CC -print-prog-name=collect2`
10247 if test -f "$collect2name" &&
10248 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10249 then
10250 # We have reworked collect2
10252 else
10253 # We have old collect2
10254 hardcode_direct=unsupported
10255 # It fails to find uninstalled libraries when the uninstalled
10256 # path is not listed in the libpath. Setting hardcode_minus_L
10257 # to unsupported forces relinking
10258 hardcode_minus_L=yes
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_libdir_separator=
10263 esac
10264 shared_flag='-shared'
10265 if test yes = "$aix_use_runtimelinking"; then
10266 shared_flag="$shared_flag "'$wl-G'
10268 # Need to ensure runtime linking is disabled for the traditional
10269 # shared library, or the linker may eventually find shared libraries
10270 # /with/ Import File - we do not want to mix them.
10271 shared_flag_aix='-shared'
10272 shared_flag_svr4='-shared $wl-G'
10273 else
10274 # not using gcc
10275 if test ia64 = "$host_cpu"; then
10276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10277 # chokes on -Wl,-G. The following line is correct:
10278 shared_flag='-G'
10279 else
10280 if test yes = "$aix_use_runtimelinking"; then
10281 shared_flag='$wl-G'
10282 else
10283 shared_flag='$wl-bM:SRE'
10285 shared_flag_aix='$wl-bM:SRE'
10286 shared_flag_svr4='$wl-G'
10290 export_dynamic_flag_spec='$wl-bexpall'
10291 # It seems that -bexpall does not export symbols beginning with
10292 # underscore (_), so it is better to generate a list of symbols to export.
10293 always_export_symbols=yes
10294 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10295 # Warning - without using the other runtime loading flags (-brtl),
10296 # -berok will link without error, but may produce a broken library.
10297 allow_undefined_flag='-berok'
10298 # Determine the default libpath from the value encoded in an
10299 # empty executable.
10300 if test set = "${lt_cv_aix_libpath+set}"; then
10301 aix_libpath=$lt_cv_aix_libpath
10302 else
10303 if ${lt_cv_aix_libpath_+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10310 main ()
10314 return 0;
10316 _ACEOF
10317 if ac_fn_c_try_link "$LINENO"; then :
10319 lt_aix_libpath_sed='
10320 /Import File Strings/,/^$/ {
10321 /^0/ {
10322 s/^0 *\([^ ]*\) *$/\1/
10326 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10327 # Check for a 64-bit object if we didn't find anything.
10328 if test -z "$lt_cv_aix_libpath_"; then
10329 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 if test -z "$lt_cv_aix_libpath_"; then
10335 lt_cv_aix_libpath_=/usr/lib:/lib
10340 aix_libpath=$lt_cv_aix_libpath_
10343 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10344 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
10345 else
10346 if test ia64 = "$host_cpu"; then
10347 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10348 allow_undefined_flag="-z nodefs"
10349 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"
10350 else
10351 # Determine the default libpath from the value encoded in an
10352 # empty executable.
10353 if test set = "${lt_cv_aix_libpath+set}"; then
10354 aix_libpath=$lt_cv_aix_libpath
10355 else
10356 if ${lt_cv_aix_libpath_+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10363 main ()
10367 return 0;
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10372 lt_aix_libpath_sed='
10373 /Import File Strings/,/^$/ {
10374 /^0/ {
10375 s/^0 *\([^ ]*\) *$/\1/
10379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380 # Check for a 64-bit object if we didn't find anything.
10381 if test -z "$lt_cv_aix_libpath_"; then
10382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 if test -z "$lt_cv_aix_libpath_"; then
10388 lt_cv_aix_libpath_=/usr/lib:/lib
10393 aix_libpath=$lt_cv_aix_libpath_
10396 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10397 # Warning - without using the other run time loading flags,
10398 # -berok will link without error, but may produce a broken library.
10399 no_undefined_flag=' $wl-bernotok'
10400 allow_undefined_flag=' $wl-berok'
10401 if test yes = "$with_gnu_ld"; then
10402 # We only use this code for GNU lds that support --whole-archive.
10403 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10404 else
10405 # Exported symbols can be pulled into shared objects from archives
10406 whole_archive_flag_spec='$convenience'
10408 archive_cmds_need_lc=yes
10409 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10410 # -brtl affects multiple linker settings, -berok does not and is overridden later
10411 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10412 if test svr4 != "$with_aix_soname"; then
10413 # This is similar to how AIX traditionally builds its shared libraries.
10414 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'
10416 if test aix != "$with_aix_soname"; then
10417 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'
10418 else
10419 # used by -dlpreopen to get the symbols
10420 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10422 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10427 amigaos*)
10428 case $host_cpu in
10429 powerpc)
10430 # see comment about AmigaOS4 .so support
10431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10432 archive_expsym_cmds=''
10434 m68k)
10435 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)'
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 hardcode_minus_L=yes
10439 esac
10442 bsdi[45]*)
10443 export_dynamic_flag_spec=-rdynamic
10446 cygwin* | mingw* | pw32* | cegcc*)
10447 # When not using gcc, we currently assume that we are using
10448 # Microsoft Visual C++.
10449 # hardcode_libdir_flag_spec is actually meaningless, as there is
10450 # no search path for DLLs.
10451 case $cc_basename in
10452 cl*)
10453 # Native MSVC
10454 hardcode_libdir_flag_spec=' '
10455 allow_undefined_flag=unsupported
10456 always_export_symbols=yes
10457 file_list_spec='@'
10458 # Tell ltmain to make .lib files, not .a files.
10459 libext=lib
10460 # Tell ltmain to make .dll files, not .so files.
10461 shrext_cmds=.dll
10462 # FIXME: Setting linknames here is a bad hack.
10463 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10464 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10465 cp "$export_symbols" "$output_objdir/$soname.def";
10466 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10467 else
10468 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10470 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10471 linknames='
10472 # The linker will not automatically build a static lib if we build a DLL.
10473 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10474 enable_shared_with_static_runtimes=yes
10475 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10477 # Don't use ranlib
10478 old_postinstall_cmds='chmod 644 $oldlib'
10479 postlink_cmds='lt_outputfile="@OUTPUT@"~
10480 lt_tool_outputfile="@TOOL_OUTPUT@"~
10481 case $lt_outputfile in
10482 *.exe|*.EXE) ;;
10484 lt_outputfile=$lt_outputfile.exe
10485 lt_tool_outputfile=$lt_tool_outputfile.exe
10487 esac~
10488 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10489 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10490 $RM "$lt_outputfile.manifest";
10494 # Assume MSVC wrapper
10495 hardcode_libdir_flag_spec=' '
10496 allow_undefined_flag=unsupported
10497 # Tell ltmain to make .lib files, not .a files.
10498 libext=lib
10499 # Tell ltmain to make .dll files, not .so files.
10500 shrext_cmds=.dll
10501 # FIXME: Setting linknames here is a bad hack.
10502 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10503 # The linker will automatically build a .lib file if we build a DLL.
10504 old_archive_from_new_cmds='true'
10505 # FIXME: Should let the user specify the lib program.
10506 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10507 enable_shared_with_static_runtimes=yes
10509 esac
10512 darwin* | rhapsody*)
10515 archive_cmds_need_lc=no
10516 hardcode_direct=no
10517 hardcode_automatic=yes
10518 hardcode_shlibpath_var=unsupported
10519 if test yes = "$lt_cv_ld_force_load"; then
10520 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\"`'
10522 else
10523 whole_archive_flag_spec=''
10525 link_all_deplibs=yes
10526 allow_undefined_flag=$_lt_dar_allow_undefined
10527 case $cc_basename in
10528 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10529 *) _lt_dar_can_shared=$GCC ;;
10530 esac
10531 if test yes = "$_lt_dar_can_shared"; then
10532 output_verbose_link_cmd=func_echo_all
10533 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10534 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10535 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"
10536 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"
10538 else
10539 ld_shlibs=no
10544 dgux*)
10545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_libdir_flag_spec='-L$libdir'
10547 hardcode_shlibpath_var=no
10550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10551 # support. Future versions do this automatically, but an explicit c++rt0.o
10552 # does not break anything, and helps significantly (at the cost of a little
10553 # extra space).
10554 freebsd2.2*)
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10556 hardcode_libdir_flag_spec='-R$libdir'
10557 hardcode_direct=yes
10558 hardcode_shlibpath_var=no
10561 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10562 freebsd2.*)
10563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_direct=yes
10565 hardcode_minus_L=yes
10566 hardcode_shlibpath_var=no
10569 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10570 freebsd* | dragonfly*)
10571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572 hardcode_libdir_flag_spec='-R$libdir'
10573 hardcode_direct=yes
10574 hardcode_shlibpath_var=no
10577 hpux9*)
10578 if test yes = "$GCC"; then
10579 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'
10580 else
10581 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'
10583 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10584 hardcode_libdir_separator=:
10585 hardcode_direct=yes
10587 # hardcode_minus_L: Not really in the search PATH,
10588 # but as the default location of the library.
10589 hardcode_minus_L=yes
10590 export_dynamic_flag_spec='$wl-E'
10593 hpux10*)
10594 if test yes,no = "$GCC,$with_gnu_ld"; then
10595 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10596 else
10597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10599 if test no = "$with_gnu_ld"; then
10600 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10601 hardcode_libdir_separator=:
10602 hardcode_direct=yes
10603 hardcode_direct_absolute=yes
10604 export_dynamic_flag_spec='$wl-E'
10605 # hardcode_minus_L: Not really in the search PATH,
10606 # but as the default location of the library.
10607 hardcode_minus_L=yes
10611 hpux11*)
10612 if test yes,no = "$GCC,$with_gnu_ld"; then
10613 case $host_cpu in
10614 hppa*64*)
10615 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 ia64*)
10618 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10623 esac
10624 else
10625 case $host_cpu in
10626 hppa*64*)
10627 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 ia64*)
10630 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10634 # Older versions of the 11.00 compiler do not understand -b yet
10635 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10637 $as_echo_n "checking if $CC understands -b... " >&6; }
10638 if ${lt_cv_prog_compiler__b+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 lt_cv_prog_compiler__b=no
10642 save_LDFLAGS=$LDFLAGS
10643 LDFLAGS="$LDFLAGS -b"
10644 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10646 # The linker can only warn and ignore the option if not recognized
10647 # So say no if there are warnings
10648 if test -s conftest.err; then
10649 # Append any errors to the config.log.
10650 cat conftest.err 1>&5
10651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10653 if diff conftest.exp conftest.er2 >/dev/null; then
10654 lt_cv_prog_compiler__b=yes
10656 else
10657 lt_cv_prog_compiler__b=yes
10660 $RM -r conftest*
10661 LDFLAGS=$save_LDFLAGS
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10665 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10667 if test yes = "$lt_cv_prog_compiler__b"; then
10668 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 else
10670 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10674 esac
10676 if test no = "$with_gnu_ld"; then
10677 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10678 hardcode_libdir_separator=:
10680 case $host_cpu in
10681 hppa*64*|ia64*)
10682 hardcode_direct=no
10683 hardcode_shlibpath_var=no
10686 hardcode_direct=yes
10687 hardcode_direct_absolute=yes
10688 export_dynamic_flag_spec='$wl-E'
10690 # hardcode_minus_L: Not really in the search PATH,
10691 # but as the default location of the library.
10692 hardcode_minus_L=yes
10694 esac
10698 irix5* | irix6* | nonstopux*)
10699 if test yes = "$GCC"; then
10700 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'
10701 # Try to use the -exported_symbol ld option, if it does not
10702 # work, assume that -exports_file does not work either and
10703 # implicitly export all symbols.
10704 # This should be the same for all languages, so no per-tag cache variable.
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10706 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10707 if ${lt_cv_irix_exported_symbol+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 save_LDFLAGS=$LDFLAGS
10711 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 int foo (void) { return 0; }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 lt_cv_irix_exported_symbol=yes
10718 else
10719 lt_cv_irix_exported_symbol=no
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LDFLAGS=$save_LDFLAGS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10726 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10727 if test yes = "$lt_cv_irix_exported_symbol"; then
10728 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'
10730 else
10731 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'
10732 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'
10734 archive_cmds_need_lc='no'
10735 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10736 hardcode_libdir_separator=:
10737 inherit_rpath=yes
10738 link_all_deplibs=yes
10741 linux*)
10742 case $cc_basename in
10743 tcc*)
10744 # Fabrice Bellard et al's Tiny C Compiler
10745 ld_shlibs=yes
10746 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10748 esac
10751 netbsd*)
10752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10754 else
10755 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10757 hardcode_libdir_flag_spec='-R$libdir'
10758 hardcode_direct=yes
10759 hardcode_shlibpath_var=no
10762 newsos6)
10763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_direct=yes
10765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10766 hardcode_libdir_separator=:
10767 hardcode_shlibpath_var=no
10770 *nto* | *qnx*)
10773 openbsd* | bitrig*)
10774 if test -f /usr/libexec/ld.so; then
10775 hardcode_direct=yes
10776 hardcode_shlibpath_var=no
10777 hardcode_direct_absolute=yes
10778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10780 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10781 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10782 export_dynamic_flag_spec='$wl-E'
10783 else
10784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10785 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10787 else
10788 ld_shlibs=no
10792 os2*)
10793 hardcode_libdir_flag_spec='-L$libdir'
10794 hardcode_minus_L=yes
10795 allow_undefined_flag=unsupported
10796 shrext_cmds=.dll
10797 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10798 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10799 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10800 $ECHO EXPORTS >> $output_objdir/$libname.def~
10801 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10802 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10803 emximp -o $lib $output_objdir/$libname.def'
10804 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10805 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10806 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10807 $ECHO EXPORTS >> $output_objdir/$libname.def~
10808 prefix_cmds="$SED"~
10809 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10810 prefix_cmds="$prefix_cmds -e 1d";
10812 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10813 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10814 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10815 emximp -o $lib $output_objdir/$libname.def'
10816 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10817 enable_shared_with_static_runtimes=yes
10820 osf3*)
10821 if test yes = "$GCC"; then
10822 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10823 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'
10824 else
10825 allow_undefined_flag=' -expect_unresolved \*'
10826 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'
10828 archive_cmds_need_lc='no'
10829 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10830 hardcode_libdir_separator=:
10833 osf4* | osf5*) # as osf3* with the addition of -msym flag
10834 if test yes = "$GCC"; then
10835 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10836 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'
10837 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10838 else
10839 allow_undefined_flag=' -expect_unresolved \*'
10840 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'
10841 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~
10842 $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'
10844 # Both c and cxx compiler support -rpath directly
10845 hardcode_libdir_flag_spec='-rpath $libdir'
10847 archive_cmds_need_lc='no'
10848 hardcode_libdir_separator=:
10851 solaris*)
10852 no_undefined_flag=' -z defs'
10853 if test yes = "$GCC"; then
10854 wlarc='$wl'
10855 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10857 $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'
10858 else
10859 case `$CC -V 2>&1` in
10860 *"Compilers 5.0"*)
10861 wlarc=''
10862 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10867 wlarc='$wl'
10868 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10870 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10872 esac
10874 hardcode_libdir_flag_spec='-R$libdir'
10875 hardcode_shlibpath_var=no
10876 case $host_os in
10877 solaris2.[0-5] | solaris2.[0-5].*) ;;
10879 # The compiler driver will combine and reorder linker options,
10880 # but understands '-z linker_flag'. GCC discards it without '$wl',
10881 # but is careful enough not to reorder.
10882 # Supported since Solaris 2.6 (maybe 2.5.1?)
10883 if test yes = "$GCC"; then
10884 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10885 else
10886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10889 esac
10890 link_all_deplibs=yes
10893 sunos4*)
10894 if test sequent = "$host_vendor"; then
10895 # Use $CC to link under sequent, because it throws in some extra .o
10896 # files that make .init and .fini sections work.
10897 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10898 else
10899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_libdir_flag_spec='-L$libdir'
10902 hardcode_direct=yes
10903 hardcode_minus_L=yes
10904 hardcode_shlibpath_var=no
10907 sysv4)
10908 case $host_vendor in
10909 sni)
10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_direct=yes # is this really true???
10913 siemens)
10914 ## LD is ld it makes a PLAMLIB
10915 ## CC just makes a GrossModule.
10916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10917 reload_cmds='$CC -r -o $output$reload_objs'
10918 hardcode_direct=no
10920 motorola)
10921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10924 esac
10925 runpath_var='LD_RUN_PATH'
10926 hardcode_shlibpath_var=no
10929 sysv4.3*)
10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 hardcode_shlibpath_var=no
10932 export_dynamic_flag_spec='-Bexport'
10935 sysv4*MP*)
10936 if test -d /usr/nec; then
10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938 hardcode_shlibpath_var=no
10939 runpath_var=LD_RUN_PATH
10940 hardcode_runpath_var=yes
10941 ld_shlibs=yes
10945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10946 no_undefined_flag='$wl-z,text'
10947 archive_cmds_need_lc=no
10948 hardcode_shlibpath_var=no
10949 runpath_var='LD_RUN_PATH'
10951 if test yes = "$GCC"; then
10952 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 else
10955 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 sysv5* | sco3.2v5* | sco5v6*)
10961 # Note: We CANNOT use -z defs as we might desire, because we do not
10962 # link with -lc, and that would cause any symbols used from libc to
10963 # always be unresolved, which means just about no library would
10964 # ever link correctly. If we're not using GNU ld we use -z text
10965 # though, which does catch some bad symbols but isn't as heavy-handed
10966 # as -z defs.
10967 no_undefined_flag='$wl-z,text'
10968 allow_undefined_flag='$wl-z,nodefs'
10969 archive_cmds_need_lc=no
10970 hardcode_shlibpath_var=no
10971 hardcode_libdir_flag_spec='$wl-R,$libdir'
10972 hardcode_libdir_separator=':'
10973 link_all_deplibs=yes
10974 export_dynamic_flag_spec='$wl-Bexport'
10975 runpath_var='LD_RUN_PATH'
10977 if test yes = "$GCC"; then
10978 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980 else
10981 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 uts4*)
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_libdir_flag_spec='-L$libdir'
10989 hardcode_shlibpath_var=no
10993 ld_shlibs=no
10995 esac
10997 if test sni = "$host_vendor"; then
10998 case $host in
10999 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11000 export_dynamic_flag_spec='$wl-Blargedynsym'
11002 esac
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11007 $as_echo "$ld_shlibs" >&6; }
11008 test no = "$ld_shlibs" && can_build_shared=no
11010 with_gnu_ld=$with_gnu_ld
11027 # Do we need to explicitly link libc?
11029 case "x$archive_cmds_need_lc" in
11030 x|xyes)
11031 # Assume -lc should be added
11032 archive_cmds_need_lc=yes
11034 if test yes,yes = "$GCC,$enable_shared"; then
11035 case $archive_cmds in
11036 *'~'*)
11037 # FIXME: we may have to deal with multi-command sequences.
11039 '$CC '*)
11040 # Test whether the compiler implicitly links with -lc since on some
11041 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11042 # to ld, don't add -lc before -lgcc.
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11044 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11045 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 $RM conftest*
11049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11052 (eval $ac_compile) 2>&5
11053 ac_status=$?
11054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11055 test $ac_status = 0; } 2>conftest.err; then
11056 soname=conftest
11057 lib=conftest
11058 libobjs=conftest.$ac_objext
11059 deplibs=
11060 wl=$lt_prog_compiler_wl
11061 pic_flag=$lt_prog_compiler_pic
11062 compiler_flags=-v
11063 linker_flags=-v
11064 verstring=
11065 output_objdir=.
11066 libname=conftest
11067 lt_save_allow_undefined_flag=$allow_undefined_flag
11068 allow_undefined_flag=
11069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11070 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073 test $ac_status = 0; }
11074 then
11075 lt_cv_archive_cmds_need_lc=no
11076 else
11077 lt_cv_archive_cmds_need_lc=yes
11079 allow_undefined_flag=$lt_save_allow_undefined_flag
11080 else
11081 cat conftest.err 1>&5
11083 $RM conftest*
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11087 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11088 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11090 esac
11093 esac
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11247 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11249 if test yes = "$GCC"; then
11250 case $host_os in
11251 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11252 *) lt_awk_arg='/^libraries:/' ;;
11253 esac
11254 case $host_os in
11255 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11256 *) lt_sed_strip_eq='s|=/|/|g' ;;
11257 esac
11258 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11259 case $lt_search_path_spec in
11260 *\;*)
11261 # if the path contains ";" then we assume it to be the separator
11262 # otherwise default to the standard path separator (i.e. ":") - it is
11263 # assumed that no part of a normal pathname contains ";" but that should
11264 # okay in the real world where ";" in dirpaths is itself problematic.
11265 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11270 esac
11271 # Ok, now we have the path, separated by spaces, we can step through it
11272 # and add multilib dir if necessary...
11273 lt_tmp_lt_search_path_spec=
11274 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11275 # ...but if some path component already ends with the multilib dir we assume
11276 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11277 case "$lt_multi_os_dir; $lt_search_path_spec " in
11278 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11279 lt_multi_os_dir=
11281 esac
11282 for lt_sys_path in $lt_search_path_spec; do
11283 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11284 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11285 elif test -n "$lt_multi_os_dir"; then
11286 test -d "$lt_sys_path" && \
11287 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11289 done
11290 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11291 BEGIN {RS = " "; FS = "/|\n";} {
11292 lt_foo = "";
11293 lt_count = 0;
11294 for (lt_i = NF; lt_i > 0; lt_i--) {
11295 if ($lt_i != "" && $lt_i != ".") {
11296 if ($lt_i == "..") {
11297 lt_count++;
11298 } else {
11299 if (lt_count == 0) {
11300 lt_foo = "/" $lt_i lt_foo;
11301 } else {
11302 lt_count--;
11307 if (lt_foo != "") { lt_freq[lt_foo]++; }
11308 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11310 # AWK program above erroneously prepends '/' to C:/dos/paths
11311 # for these hosts.
11312 case $host_os in
11313 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11314 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11315 esac
11316 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11317 else
11318 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11320 library_names_spec=
11321 libname_spec='lib$name'
11322 soname_spec=
11323 shrext_cmds=.so
11324 postinstall_cmds=
11325 postuninstall_cmds=
11326 finish_cmds=
11327 finish_eval=
11328 shlibpath_var=
11329 shlibpath_overrides_runpath=unknown
11330 version_type=none
11331 dynamic_linker="$host_os ld.so"
11332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11333 need_lib_prefix=unknown
11334 hardcode_into_libs=no
11336 # when you set need_version to no, make sure it does not cause -set_version
11337 # flags to be left without arguments
11338 need_version=unknown
11342 case $host_os in
11343 aix3*)
11344 version_type=linux # correct to gnu/linux during the next big refactor
11345 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11346 shlibpath_var=LIBPATH
11348 # AIX 3 has no versioning support, so we append a major version to the name.
11349 soname_spec='$libname$release$shared_ext$major'
11352 aix[4-9]*)
11353 version_type=linux # correct to gnu/linux during the next big refactor
11354 need_lib_prefix=no
11355 need_version=no
11356 hardcode_into_libs=yes
11357 if test ia64 = "$host_cpu"; then
11358 # AIX 5 supports IA64
11359 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 else
11362 # With GCC up to 2.95.x, collect2 would create an import file
11363 # for dependence libraries. The import file would start with
11364 # the line '#! .'. This would cause the generated library to
11365 # depend on '.', always an invalid library. This was fixed in
11366 # development snapshots of GCC prior to 3.0.
11367 case $host_os in
11368 aix4 | aix4.[01] | aix4.[01].*)
11369 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11370 echo ' yes '
11371 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11373 else
11374 can_build_shared=no
11377 esac
11378 # Using Import Files as archive members, it is possible to support
11379 # filename-based versioning of shared library archives on AIX. While
11380 # this would work for both with and without runtime linking, it will
11381 # prevent static linking of such archives. So we do filename-based
11382 # shared library versioning with .so extension only, which is used
11383 # when both runtime linking and shared linking is enabled.
11384 # Unfortunately, runtime linking may impact performance, so we do
11385 # not want this to be the default eventually. Also, we use the
11386 # versioned .so libs for executables only if there is the -brtl
11387 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11388 # To allow for filename-based versioning support, we need to create
11389 # libNAME.so.V as an archive file, containing:
11390 # *) an Import File, referring to the versioned filename of the
11391 # archive as well as the shared archive member, telling the
11392 # bitwidth (32 or 64) of that shared object, and providing the
11393 # list of exported symbols of that shared object, eventually
11394 # decorated with the 'weak' keyword
11395 # *) the shared object with the F_LOADONLY flag set, to really avoid
11396 # it being seen by the linker.
11397 # At run time we better use the real file rather than another symlink,
11398 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11400 case $with_aix_soname,$aix_use_runtimelinking in
11401 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11402 # soname into executable. Probably we can add versioning support to
11403 # collect2, so additional links can be useful in future.
11404 aix,yes) # traditional libtool
11405 dynamic_linker='AIX unversionable lib.so'
11406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11407 # instead of lib<name>.a to let people know that these are not
11408 # typical AIX shared libraries.
11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411 aix,no) # traditional AIX only
11412 dynamic_linker='AIX lib.a(lib.so.V)'
11413 # We preserve .a as extension for shared libraries through AIX4.2
11414 # and later when we are not doing run time linking.
11415 library_names_spec='$libname$release.a $libname.a'
11416 soname_spec='$libname$release$shared_ext$major'
11418 svr4,*) # full svr4 only
11419 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11420 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11421 # We do not specify a path in Import Files, so LIBPATH fires.
11422 shlibpath_overrides_runpath=yes
11424 *,yes) # both, prefer svr4
11425 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11426 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11427 # unpreferred sharedlib libNAME.a needs extra handling
11428 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"'
11429 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"'
11430 # We do not specify a path in Import Files, so LIBPATH fires.
11431 shlibpath_overrides_runpath=yes
11433 *,no) # both, prefer aix
11434 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11435 library_names_spec='$libname$release.a $libname.a'
11436 soname_spec='$libname$release$shared_ext$major'
11437 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11438 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)'
11439 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"'
11441 esac
11442 shlibpath_var=LIBPATH
11446 amigaos*)
11447 case $host_cpu in
11448 powerpc)
11449 # Since July 2007 AmigaOS4 officially supports .so libraries.
11450 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453 m68k)
11454 library_names_spec='$libname.ixlibrary $libname.a'
11455 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11456 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'
11458 esac
11461 beos*)
11462 library_names_spec='$libname$shared_ext'
11463 dynamic_linker="$host_os ld.so"
11464 shlibpath_var=LIBRARY_PATH
11467 bsdi[45]*)
11468 version_type=linux # correct to gnu/linux during the next big refactor
11469 need_version=no
11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 soname_spec='$libname$release$shared_ext$major'
11472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11476 # the default ld.so.conf also contains /usr/contrib/lib and
11477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11478 # libtool to hard-code these into programs
11481 cygwin* | mingw* | pw32* | cegcc*)
11482 version_type=windows
11483 shrext_cmds=.dll
11484 need_version=no
11485 need_lib_prefix=no
11487 case $GCC,$cc_basename in
11488 yes,*)
11489 # gcc
11490 library_names_spec='$libname.dll.a'
11491 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11492 postinstall_cmds='base_file=`basename \$file`~
11493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11494 dldir=$destdir/`dirname \$dlpath`~
11495 test -d \$dldir || mkdir -p \$dldir~
11496 $install_prog $dir/$dlname \$dldir/$dlname~
11497 chmod a+x \$dldir/$dlname~
11498 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11499 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11501 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11502 dlpath=$dir/\$dldll~
11503 $RM \$dlpath'
11504 shlibpath_overrides_runpath=yes
11506 case $host_os in
11507 cygwin*)
11508 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11509 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11511 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11513 mingw* | cegcc*)
11514 # MinGW DLLs use traditional 'lib' prefix
11515 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11517 pw32*)
11518 # pw32 DLLs use 'pw' prefix rather than 'lib'
11519 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11521 esac
11522 dynamic_linker='Win32 ld.exe'
11525 *,cl*)
11526 # Native MSVC
11527 libname_spec='$name'
11528 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11529 library_names_spec='$libname.dll.lib'
11531 case $build_os in
11532 mingw*)
11533 sys_lib_search_path_spec=
11534 lt_save_ifs=$IFS
11535 IFS=';'
11536 for lt_path in $LIB
11538 IFS=$lt_save_ifs
11539 # Let DOS variable expansion print the short 8.3 style file name.
11540 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11541 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11542 done
11543 IFS=$lt_save_ifs
11544 # Convert to MSYS style.
11545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11547 cygwin*)
11548 # Convert to unix form, then to dos form, then back to unix form
11549 # but this time dos style (no spaces!) so that the unix form looks
11550 # like /cygdrive/c/PROGRA~1:/cygdr...
11551 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11552 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11553 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11556 sys_lib_search_path_spec=$LIB
11557 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11558 # It is most probably a Windows format PATH.
11559 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11560 else
11561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11563 # FIXME: find the short name or the path components, as spaces are
11564 # common. (e.g. "Program Files" -> "PROGRA~1")
11566 esac
11568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11569 postinstall_cmds='base_file=`basename \$file`~
11570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11571 dldir=$destdir/`dirname \$dlpath`~
11572 test -d \$dldir || mkdir -p \$dldir~
11573 $install_prog $dir/$dlname \$dldir/$dlname'
11574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11575 dlpath=$dir/\$dldll~
11576 $RM \$dlpath'
11577 shlibpath_overrides_runpath=yes
11578 dynamic_linker='Win32 link.exe'
11582 # Assume MSVC wrapper
11583 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11584 dynamic_linker='Win32 ld.exe'
11586 esac
11587 # FIXME: first we should search . and the directory the executable is in
11588 shlibpath_var=PATH
11591 darwin* | rhapsody*)
11592 dynamic_linker="$host_os dyld"
11593 version_type=darwin
11594 need_lib_prefix=no
11595 need_version=no
11596 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11597 soname_spec='$libname$release$major$shared_ext'
11598 shlibpath_overrides_runpath=yes
11599 shlibpath_var=DYLD_LIBRARY_PATH
11600 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11602 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11606 dgux*)
11607 version_type=linux # correct to gnu/linux during the next big refactor
11608 need_lib_prefix=no
11609 need_version=no
11610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11611 soname_spec='$libname$release$shared_ext$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11615 freebsd* | dragonfly*)
11616 # DragonFly does not have aout. When/if they implement a new
11617 # versioning mechanism, adjust this.
11618 if test -x /usr/bin/objformat; then
11619 objformat=`/usr/bin/objformat`
11620 else
11621 case $host_os in
11622 freebsd[23].*) objformat=aout ;;
11623 *) objformat=elf ;;
11624 esac
11626 version_type=freebsd-$objformat
11627 case $version_type in
11628 freebsd-elf*)
11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11630 soname_spec='$libname$release$shared_ext$major'
11631 need_version=no
11632 need_lib_prefix=no
11634 freebsd-*)
11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11636 need_version=yes
11638 esac
11639 shlibpath_var=LD_LIBRARY_PATH
11640 case $host_os in
11641 freebsd2.*)
11642 shlibpath_overrides_runpath=yes
11644 freebsd3.[01]* | freebsdelf3.[01]*)
11645 shlibpath_overrides_runpath=yes
11646 hardcode_into_libs=yes
11648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11650 shlibpath_overrides_runpath=no
11651 hardcode_into_libs=yes
11653 *) # from 4.6 on, and DragonFly
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11657 esac
11660 haiku*)
11661 version_type=linux # correct to gnu/linux during the next big refactor
11662 need_lib_prefix=no
11663 need_version=no
11664 dynamic_linker="$host_os runtime_loader"
11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11666 soname_spec='$libname$release$shared_ext$major'
11667 shlibpath_var=LIBRARY_PATH
11668 shlibpath_overrides_runpath=no
11669 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11670 hardcode_into_libs=yes
11673 hpux9* | hpux10* | hpux11*)
11674 # Give a soname corresponding to the major version so that dld.sl refuses to
11675 # link against other versions.
11676 version_type=sunos
11677 need_lib_prefix=no
11678 need_version=no
11679 case $host_cpu in
11680 ia64*)
11681 shrext_cmds='.so'
11682 hardcode_into_libs=yes
11683 dynamic_linker="$host_os dld.so"
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 soname_spec='$libname$release$shared_ext$major'
11688 if test 32 = "$HPUX_IA64_MODE"; then
11689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11690 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11691 else
11692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11693 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11696 hppa*64*)
11697 shrext_cmds='.sl'
11698 hardcode_into_libs=yes
11699 dynamic_linker="$host_os dld.sl"
11700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703 soname_spec='$libname$release$shared_ext$major'
11704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11708 shrext_cmds='.sl'
11709 dynamic_linker="$host_os dld.sl"
11710 shlibpath_var=SHLIB_PATH
11711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11713 soname_spec='$libname$release$shared_ext$major'
11715 esac
11716 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11717 postinstall_cmds='chmod 555 $lib'
11718 # or fails outright, so override atomically:
11719 install_override_mode=555
11722 interix[3-9]*)
11723 version_type=linux # correct to gnu/linux during the next big refactor
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727 soname_spec='$libname$release$shared_ext$major'
11728 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=no
11731 hardcode_into_libs=yes
11734 irix5* | irix6* | nonstopux*)
11735 case $host_os in
11736 nonstopux*) version_type=nonstopux ;;
11738 if test yes = "$lt_cv_prog_gnu_ld"; then
11739 version_type=linux # correct to gnu/linux during the next big refactor
11740 else
11741 version_type=irix
11742 fi ;;
11743 esac
11744 need_lib_prefix=no
11745 need_version=no
11746 soname_spec='$libname$release$shared_ext$major'
11747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11748 case $host_os in
11749 irix5* | nonstopux*)
11750 libsuff= shlibsuff=
11753 case $LD in # libtool.m4 will add one of these switches to LD
11754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11755 libsuff= shlibsuff= libmagic=32-bit;;
11756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11757 libsuff=32 shlibsuff=N32 libmagic=N32;;
11758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11760 *) libsuff= shlibsuff= libmagic=never-match;;
11761 esac
11763 esac
11764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11765 shlibpath_overrides_runpath=no
11766 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11767 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11768 hardcode_into_libs=yes
11771 # No shared lib support for Linux oldld, aout, or coff.
11772 linux*oldld* | linux*aout* | linux*coff*)
11773 dynamic_linker=no
11776 linux*android*)
11777 version_type=none # Android doesn't support versioned libraries.
11778 need_lib_prefix=no
11779 need_version=no
11780 library_names_spec='$libname$release$shared_ext'
11781 soname_spec='$libname$release$shared_ext'
11782 finish_cmds=
11783 shlibpath_var=LD_LIBRARY_PATH
11784 shlibpath_overrides_runpath=yes
11786 # This implies no fast_install, which is unacceptable.
11787 # Some rework will be needed to allow for fast_install
11788 # before this can be enabled.
11789 hardcode_into_libs=yes
11791 dynamic_linker='Android linker'
11792 # Don't embed -rpath directories since the linker doesn't support them.
11793 hardcode_libdir_flag_spec='-L$libdir'
11796 # This must be glibc/ELF.
11797 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11798 version_type=linux # correct to gnu/linux during the next big refactor
11799 need_lib_prefix=no
11800 need_version=no
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802 soname_spec='$libname$release$shared_ext$major'
11803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 shlibpath_overrides_runpath=no
11807 # Some binutils ld are patched to set DT_RUNPATH
11808 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 lt_cv_shlibpath_overrides_runpath=no
11812 save_LDFLAGS=$LDFLAGS
11813 save_libdir=$libdir
11814 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11815 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11820 main ()
11824 return 0;
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11829 lt_cv_shlibpath_overrides_runpath=yes
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 LDFLAGS=$save_LDFLAGS
11835 libdir=$save_libdir
11839 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11841 # This implies no fast_install, which is unacceptable.
11842 # Some rework will be needed to allow for fast_install
11843 # before this can be enabled.
11844 hardcode_into_libs=yes
11846 # Ideally, we could use ldconfig to report *all* directores which are
11847 # searched for libraries, however this is still not possible. Aside from not
11848 # being certain /sbin/ldconfig is available, command
11849 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11850 # even though it is searched at run-time. Try to do the best guess by
11851 # appending ld.so.conf contents (and includes) to the search path.
11852 if test -f /etc/ld.so.conf; then
11853 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' ' '`
11854 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11857 # We used to test for /lib/ld.so.1 and disable shared libraries on
11858 # powerpc, because MkLinux only supported shared libraries with the
11859 # GNU dynamic linker. Since this was broken with cross compilers,
11860 # most powerpc-linux boxes support dynamic linking these days and
11861 # people can always --disable-shared, the test was removed, and we
11862 # assume the GNU/Linux dynamic linker is in use.
11863 dynamic_linker='GNU/Linux ld.so'
11866 netbsd*)
11867 version_type=sunos
11868 need_lib_prefix=no
11869 need_version=no
11870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11873 dynamic_linker='NetBSD (a.out) ld.so'
11874 else
11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11876 soname_spec='$libname$release$shared_ext$major'
11877 dynamic_linker='NetBSD ld.elf_so'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881 hardcode_into_libs=yes
11884 newsos6)
11885 version_type=linux # correct to gnu/linux during the next big refactor
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11891 *nto* | *qnx*)
11892 version_type=qnx
11893 need_lib_prefix=no
11894 need_version=no
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11896 soname_spec='$libname$release$shared_ext$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=no
11899 hardcode_into_libs=yes
11900 dynamic_linker='ldqnx.so'
11903 openbsd* | bitrig*)
11904 version_type=sunos
11905 sys_lib_dlsearch_path_spec=/usr/lib
11906 need_lib_prefix=no
11907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11908 need_version=no
11909 else
11910 need_version=yes
11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11914 shlibpath_var=LD_LIBRARY_PATH
11915 shlibpath_overrides_runpath=yes
11918 os2*)
11919 libname_spec='$name'
11920 version_type=windows
11921 shrext_cmds=.dll
11922 need_version=no
11923 need_lib_prefix=no
11924 # OS/2 can only load a DLL with a base name of 8 characters or less.
11925 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11926 v=$($ECHO $release$versuffix | tr -d .-);
11927 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11928 $ECHO $n$v`$shared_ext'
11929 library_names_spec='${libname}_dll.$libext'
11930 dynamic_linker='OS/2 ld.exe'
11931 shlibpath_var=BEGINLIBPATH
11932 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11934 postinstall_cmds='base_file=`basename \$file`~
11935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11936 dldir=$destdir/`dirname \$dlpath`~
11937 test -d \$dldir || mkdir -p \$dldir~
11938 $install_prog $dir/$dlname \$dldir/$dlname~
11939 chmod a+x \$dldir/$dlname~
11940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11944 dlpath=$dir/\$dldll~
11945 $RM \$dlpath'
11948 osf3* | osf4* | osf5*)
11949 version_type=osf
11950 need_lib_prefix=no
11951 need_version=no
11952 soname_spec='$libname$release$shared_ext$major'
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11959 rdos*)
11960 dynamic_linker=no
11963 solaris*)
11964 version_type=linux # correct to gnu/linux during the next big refactor
11965 need_lib_prefix=no
11966 need_version=no
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968 soname_spec='$libname$release$shared_ext$major'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=yes
11971 hardcode_into_libs=yes
11972 # ldd complains unless libraries are executable
11973 postinstall_cmds='chmod +x $lib'
11976 sunos4*)
11977 version_type=sunos
11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 shlibpath_overrides_runpath=yes
11982 if test yes = "$with_gnu_ld"; then
11983 need_lib_prefix=no
11985 need_version=yes
11988 sysv4 | sysv4.3*)
11989 version_type=linux # correct to gnu/linux during the next big refactor
11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11991 soname_spec='$libname$release$shared_ext$major'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 case $host_vendor in
11994 sni)
11995 shlibpath_overrides_runpath=no
11996 need_lib_prefix=no
11997 runpath_var=LD_RUN_PATH
11999 siemens)
12000 need_lib_prefix=no
12002 motorola)
12003 need_lib_prefix=no
12004 need_version=no
12005 shlibpath_overrides_runpath=no
12006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12008 esac
12011 sysv4*MP*)
12012 if test -d /usr/nec; then
12013 version_type=linux # correct to gnu/linux during the next big refactor
12014 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12015 soname_spec='$libname$shared_ext.$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12021 version_type=sco
12022 need_lib_prefix=no
12023 need_version=no
12024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12025 soname_spec='$libname$release$shared_ext$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12029 if test yes = "$with_gnu_ld"; then
12030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12031 else
12032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12033 case $host_os in
12034 sco3.2v5*)
12035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12037 esac
12039 sys_lib_dlsearch_path_spec='/usr/lib'
12042 tpf*)
12043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12044 version_type=linux # correct to gnu/linux during the next big refactor
12045 need_lib_prefix=no
12046 need_version=no
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=no
12050 hardcode_into_libs=yes
12053 uts4*)
12054 version_type=linux # correct to gnu/linux during the next big refactor
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056 soname_spec='$libname$release$shared_ext$major'
12057 shlibpath_var=LD_LIBRARY_PATH
12061 dynamic_linker=no
12063 esac
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12065 $as_echo "$dynamic_linker" >&6; }
12066 test no = "$dynamic_linker" && can_build_shared=no
12068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12069 if test yes = "$GCC"; then
12070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12073 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12074 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12077 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12078 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12081 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12082 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12084 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12085 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12087 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12088 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12187 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12188 hardcode_action=
12189 if test -n "$hardcode_libdir_flag_spec" ||
12190 test -n "$runpath_var" ||
12191 test yes = "$hardcode_automatic"; then
12193 # We can hardcode non-existent directories.
12194 if test no != "$hardcode_direct" &&
12195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12196 # have to relink, otherwise we might link with an installed library
12197 # when we should be linking with a yet-to-be-installed one
12198 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12199 test no != "$hardcode_minus_L"; then
12200 # Linking always hardcodes the temporary library directory.
12201 hardcode_action=relink
12202 else
12203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12204 hardcode_action=immediate
12206 else
12207 # We cannot hardcode anything, or else we can only hardcode existing
12208 # directories.
12209 hardcode_action=unsupported
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12212 $as_echo "$hardcode_action" >&6; }
12214 if test relink = "$hardcode_action" ||
12215 test yes = "$inherit_rpath"; then
12216 # Fast installation is not supported
12217 enable_fast_install=no
12218 elif test yes = "$shlibpath_overrides_runpath" ||
12219 test no = "$enable_shared"; then
12220 # Fast installation is not necessary
12221 enable_fast_install=needless
12229 if test yes != "$enable_dlopen"; then
12230 enable_dlopen=unknown
12231 enable_dlopen_self=unknown
12232 enable_dlopen_self_static=unknown
12233 else
12234 lt_cv_dlopen=no
12235 lt_cv_dlopen_libs=
12237 case $host_os in
12238 beos*)
12239 lt_cv_dlopen=load_add_on
12240 lt_cv_dlopen_libs=
12241 lt_cv_dlopen_self=yes
12244 mingw* | pw32* | cegcc*)
12245 lt_cv_dlopen=LoadLibrary
12246 lt_cv_dlopen_libs=
12249 cygwin*)
12250 lt_cv_dlopen=dlopen
12251 lt_cv_dlopen_libs=
12254 darwin*)
12255 # if libdl is installed we need to link against it
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12257 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12258 if ${ac_cv_lib_dl_dlopen+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-ldl $LIBS"
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char dlopen ();
12274 main ()
12276 return dlopen ();
12278 return 0;
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"; then :
12282 ac_cv_lib_dl_dlopen=yes
12283 else
12284 ac_cv_lib_dl_dlopen=no
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12291 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12292 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12293 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12294 else
12296 lt_cv_dlopen=dyld
12297 lt_cv_dlopen_libs=
12298 lt_cv_dlopen_self=yes
12304 tpf*)
12305 # Don't try to run any link tests for TPF. We know it's impossible
12306 # because TPF is a cross-compiler, and we know how we open DSOs.
12307 lt_cv_dlopen=dlopen
12308 lt_cv_dlopen_libs=
12309 lt_cv_dlopen_self=no
12313 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12314 if test "x$ac_cv_func_shl_load" = xyes; then :
12315 lt_cv_dlopen=shl_load
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12318 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12319 if ${ac_cv_lib_dld_shl_load+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 ac_check_lib_save_LIBS=$LIBS
12323 LIBS="-ldld $LIBS"
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 char shl_load ();
12335 main ()
12337 return shl_load ();
12339 return 0;
12341 _ACEOF
12342 if ac_fn_c_try_link "$LINENO"; then :
12343 ac_cv_lib_dld_shl_load=yes
12344 else
12345 ac_cv_lib_dld_shl_load=no
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12352 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12353 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12354 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12355 else
12356 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12357 if test "x$ac_cv_func_dlopen" = xyes; then :
12358 lt_cv_dlopen=dlopen
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12361 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12362 if ${ac_cv_lib_dl_dlopen+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 ac_check_lib_save_LIBS=$LIBS
12366 LIBS="-ldl $LIBS"
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char dlopen ();
12378 main ()
12380 return dlopen ();
12382 return 0;
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 ac_cv_lib_dl_dlopen=yes
12387 else
12388 ac_cv_lib_dl_dlopen=no
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12395 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12396 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12397 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12400 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12401 if ${ac_cv_lib_svld_dlopen+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lsvld $LIBS"
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12412 #ifdef __cplusplus
12413 extern "C"
12414 #endif
12415 char dlopen ();
12417 main ()
12419 return dlopen ();
12421 return 0;
12423 _ACEOF
12424 if ac_fn_c_try_link "$LINENO"; then :
12425 ac_cv_lib_svld_dlopen=yes
12426 else
12427 ac_cv_lib_svld_dlopen=no
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_lib_save_LIBS
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12434 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12435 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12436 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12439 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12440 if ${ac_cv_lib_dld_dld_link+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-ldld $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char dld_link ();
12456 main ()
12458 return dld_link ();
12460 return 0;
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_dld_dld_link=yes
12465 else
12466 ac_cv_lib_dld_dld_link=no
12468 rm -f core conftest.err conftest.$ac_objext \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12473 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12474 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12475 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12494 esac
12496 if test no = "$lt_cv_dlopen"; then
12497 enable_dlopen=no
12498 else
12499 enable_dlopen=yes
12502 case $lt_cv_dlopen in
12503 dlopen)
12504 save_CPPFLAGS=$CPPFLAGS
12505 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12507 save_LDFLAGS=$LDFLAGS
12508 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12510 save_LIBS=$LIBS
12511 LIBS="$lt_cv_dlopen_libs $LIBS"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12514 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12515 if ${lt_cv_dlopen_self+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test yes = "$cross_compiling"; then :
12519 lt_cv_dlopen_self=cross
12520 else
12521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12522 lt_status=$lt_dlunknown
12523 cat > conftest.$ac_ext <<_LT_EOF
12524 #line $LINENO "configure"
12525 #include "confdefs.h"
12527 #if HAVE_DLFCN_H
12528 #include <dlfcn.h>
12529 #endif
12531 #include <stdio.h>
12533 #ifdef RTLD_GLOBAL
12534 # define LT_DLGLOBAL RTLD_GLOBAL
12535 #else
12536 # ifdef DL_GLOBAL
12537 # define LT_DLGLOBAL DL_GLOBAL
12538 # else
12539 # define LT_DLGLOBAL 0
12540 # endif
12541 #endif
12543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12544 find out it does not work in some platform. */
12545 #ifndef LT_DLLAZY_OR_NOW
12546 # ifdef RTLD_LAZY
12547 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12548 # else
12549 # ifdef DL_LAZY
12550 # define LT_DLLAZY_OR_NOW DL_LAZY
12551 # else
12552 # ifdef RTLD_NOW
12553 # define LT_DLLAZY_OR_NOW RTLD_NOW
12554 # else
12555 # ifdef DL_NOW
12556 # define LT_DLLAZY_OR_NOW DL_NOW
12557 # else
12558 # define LT_DLLAZY_OR_NOW 0
12559 # endif
12560 # endif
12561 # endif
12562 # endif
12563 #endif
12565 /* When -fvisibility=hidden is used, assume the code has been annotated
12566 correspondingly for the symbols needed. */
12567 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12568 int fnord () __attribute__((visibility("default")));
12569 #endif
12571 int fnord () { return 42; }
12572 int main ()
12574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12575 int status = $lt_dlunknown;
12577 if (self)
12579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12580 else
12582 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12583 else puts (dlerror ());
12585 /* dlclose (self); */
12587 else
12588 puts (dlerror ());
12590 return status;
12592 _LT_EOF
12593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12594 (eval $ac_link) 2>&5
12595 ac_status=$?
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12598 (./conftest; exit; ) >&5 2>/dev/null
12599 lt_status=$?
12600 case x$lt_status in
12601 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12602 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12603 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12604 esac
12605 else :
12606 # compilation failed
12607 lt_cv_dlopen_self=no
12610 rm -fr conftest*
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12615 $as_echo "$lt_cv_dlopen_self" >&6; }
12617 if test yes = "$lt_cv_dlopen_self"; then
12618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12620 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12621 if ${lt_cv_dlopen_self_static+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 if test yes = "$cross_compiling"; then :
12625 lt_cv_dlopen_self_static=cross
12626 else
12627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12628 lt_status=$lt_dlunknown
12629 cat > conftest.$ac_ext <<_LT_EOF
12630 #line $LINENO "configure"
12631 #include "confdefs.h"
12633 #if HAVE_DLFCN_H
12634 #include <dlfcn.h>
12635 #endif
12637 #include <stdio.h>
12639 #ifdef RTLD_GLOBAL
12640 # define LT_DLGLOBAL RTLD_GLOBAL
12641 #else
12642 # ifdef DL_GLOBAL
12643 # define LT_DLGLOBAL DL_GLOBAL
12644 # else
12645 # define LT_DLGLOBAL 0
12646 # endif
12647 #endif
12649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12650 find out it does not work in some platform. */
12651 #ifndef LT_DLLAZY_OR_NOW
12652 # ifdef RTLD_LAZY
12653 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12654 # else
12655 # ifdef DL_LAZY
12656 # define LT_DLLAZY_OR_NOW DL_LAZY
12657 # else
12658 # ifdef RTLD_NOW
12659 # define LT_DLLAZY_OR_NOW RTLD_NOW
12660 # else
12661 # ifdef DL_NOW
12662 # define LT_DLLAZY_OR_NOW DL_NOW
12663 # else
12664 # define LT_DLLAZY_OR_NOW 0
12665 # endif
12666 # endif
12667 # endif
12668 # endif
12669 #endif
12671 /* When -fvisibility=hidden is used, assume the code has been annotated
12672 correspondingly for the symbols needed. */
12673 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12674 int fnord () __attribute__((visibility("default")));
12675 #endif
12677 int fnord () { return 42; }
12678 int main ()
12680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12681 int status = $lt_dlunknown;
12683 if (self)
12685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12686 else
12688 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12689 else puts (dlerror ());
12691 /* dlclose (self); */
12693 else
12694 puts (dlerror ());
12696 return status;
12698 _LT_EOF
12699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12700 (eval $ac_link) 2>&5
12701 ac_status=$?
12702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12703 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12704 (./conftest; exit; ) >&5 2>/dev/null
12705 lt_status=$?
12706 case x$lt_status in
12707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12709 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12710 esac
12711 else :
12712 # compilation failed
12713 lt_cv_dlopen_self_static=no
12716 rm -fr conftest*
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12721 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12724 CPPFLAGS=$save_CPPFLAGS
12725 LDFLAGS=$save_LDFLAGS
12726 LIBS=$save_LIBS
12728 esac
12730 case $lt_cv_dlopen_self in
12731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12732 *) enable_dlopen_self=unknown ;;
12733 esac
12735 case $lt_cv_dlopen_self_static in
12736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12737 *) enable_dlopen_self_static=unknown ;;
12738 esac
12757 striplib=
12758 old_striplib=
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12760 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12761 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765 $as_echo "yes" >&6; }
12766 else
12767 # FIXME - insert some real tests, host_os isn't really good enough
12768 case $host_os in
12769 darwin*)
12770 if test -n "$STRIP"; then
12771 striplib="$STRIP -x"
12772 old_striplib="$STRIP -S"
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12784 esac
12798 # Report what library types will actually be built
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12800 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12802 $as_echo "$can_build_shared" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12805 $as_echo_n "checking whether to build shared libraries... " >&6; }
12806 test no = "$can_build_shared" && enable_shared=no
12808 # On AIX, shared libraries and static libraries use the same namespace, and
12809 # are all built from PIC.
12810 case $host_os in
12811 aix3*)
12812 test yes = "$enable_shared" && enable_static=no
12813 if test -n "$RANLIB"; then
12814 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12815 postinstall_cmds='$RANLIB $lib'
12819 aix[4-9]*)
12820 if test ia64 != "$host_cpu"; then
12821 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12822 yes,aix,yes) ;; # shared object as lib.so file only
12823 yes,svr4,*) ;; # shared object as lib.so archive member only
12824 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12825 esac
12828 esac
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12830 $as_echo "$enable_shared" >&6; }
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12833 $as_echo_n "checking whether to build static libraries... " >&6; }
12834 # Make sure either enable_shared or enable_static is yes.
12835 test yes = "$enable_shared" || enable_static=yes
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12837 $as_echo "$enable_static" >&6; }
12843 ac_ext=c
12844 ac_cpp='$CPP $CPPFLAGS'
12845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849 CC=$lt_save_CC
12865 ac_config_commands="$ac_config_commands libtool"
12870 # Only expand once:
12873 # Check whether --enable-largefile was given.
12874 if test "${enable_largefile+set}" = set; then :
12875 enableval=$enable_largefile;
12878 if test "$enable_largefile" != no; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12881 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12882 if ${ac_cv_sys_largefile_CC+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 ac_cv_sys_largefile_CC=no
12886 if test "$GCC" != yes; then
12887 ac_save_CC=$CC
12888 while :; do
12889 # IRIX 6.2 and later do not support large files by default,
12890 # so use the C compiler's -n32 option if that helps.
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893 #include <sys/types.h>
12894 /* Check that off_t can represent 2**63 - 1 correctly.
12895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12896 since some C++ compilers masquerading as C compilers
12897 incorrectly reject 9223372036854775807. */
12898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12900 && LARGE_OFF_T % 2147483647 == 1)
12901 ? 1 : -1];
12903 main ()
12907 return 0;
12909 _ACEOF
12910 if ac_fn_c_try_compile "$LINENO"; then :
12911 break
12913 rm -f core conftest.err conftest.$ac_objext
12914 CC="$CC -n32"
12915 if ac_fn_c_try_compile "$LINENO"; then :
12916 ac_cv_sys_largefile_CC=' -n32'; break
12918 rm -f core conftest.err conftest.$ac_objext
12919 break
12920 done
12921 CC=$ac_save_CC
12922 rm -f conftest.$ac_ext
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12926 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12927 if test "$ac_cv_sys_largefile_CC" != no; then
12928 CC=$CC$ac_cv_sys_largefile_CC
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12932 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12933 if ${ac_cv_sys_file_offset_bits+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 while :; do
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939 #include <sys/types.h>
12940 /* Check that off_t can represent 2**63 - 1 correctly.
12941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12942 since some C++ compilers masquerading as C compilers
12943 incorrectly reject 9223372036854775807. */
12944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12946 && LARGE_OFF_T % 2147483647 == 1)
12947 ? 1 : -1];
12949 main ()
12953 return 0;
12955 _ACEOF
12956 if ac_fn_c_try_compile "$LINENO"; then :
12957 ac_cv_sys_file_offset_bits=no; break
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962 #define _FILE_OFFSET_BITS 64
12963 #include <sys/types.h>
12964 /* Check that off_t can represent 2**63 - 1 correctly.
12965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12966 since some C++ compilers masquerading as C compilers
12967 incorrectly reject 9223372036854775807. */
12968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12970 && LARGE_OFF_T % 2147483647 == 1)
12971 ? 1 : -1];
12973 main ()
12977 return 0;
12979 _ACEOF
12980 if ac_fn_c_try_compile "$LINENO"; then :
12981 ac_cv_sys_file_offset_bits=64; break
12983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984 ac_cv_sys_file_offset_bits=unknown
12985 break
12986 done
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12989 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12990 case $ac_cv_sys_file_offset_bits in #(
12991 no | unknown) ;;
12993 cat >>confdefs.h <<_ACEOF
12994 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12995 _ACEOF
12997 esac
12998 rm -rf conftest*
12999 if test $ac_cv_sys_file_offset_bits = unknown; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13001 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13002 if ${ac_cv_sys_large_files+:} false; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 while :; do
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #include <sys/types.h>
13009 /* Check that off_t can represent 2**63 - 1 correctly.
13010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13011 since some C++ compilers masquerading as C compilers
13012 incorrectly reject 9223372036854775807. */
13013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13015 && LARGE_OFF_T % 2147483647 == 1)
13016 ? 1 : -1];
13018 main ()
13022 return 0;
13024 _ACEOF
13025 if ac_fn_c_try_compile "$LINENO"; then :
13026 ac_cv_sys_large_files=no; break
13028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031 #define _LARGE_FILES 1
13032 #include <sys/types.h>
13033 /* Check that off_t can represent 2**63 - 1 correctly.
13034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13035 since some C++ compilers masquerading as C compilers
13036 incorrectly reject 9223372036854775807. */
13037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13039 && LARGE_OFF_T % 2147483647 == 1)
13040 ? 1 : -1];
13042 main ()
13046 return 0;
13048 _ACEOF
13049 if ac_fn_c_try_compile "$LINENO"; then :
13050 ac_cv_sys_large_files=1; break
13052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 ac_cv_sys_large_files=unknown
13054 break
13055 done
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13058 $as_echo "$ac_cv_sys_large_files" >&6; }
13059 case $ac_cv_sys_large_files in #(
13060 no | unknown) ;;
13062 cat >>confdefs.h <<_ACEOF
13063 #define _LARGE_FILES $ac_cv_sys_large_files
13064 _ACEOF
13066 esac
13067 rm -rf conftest*
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13074 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13075 if ${ac_cv_sys_largefile_source+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 while :; do
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #include <sys/types.h> /* for off_t */
13082 #include <stdio.h>
13084 main ()
13086 int (*fp) (FILE *, off_t, int) = fseeko;
13087 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13089 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_sys_largefile_source=no; break
13095 rm -f core conftest.err conftest.$ac_objext \
13096 conftest$ac_exeext conftest.$ac_ext
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 #define _LARGEFILE_SOURCE 1
13100 #include <sys/types.h> /* for off_t */
13101 #include <stdio.h>
13103 main ()
13105 int (*fp) (FILE *, off_t, int) = fseeko;
13106 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13108 return 0;
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 ac_cv_sys_largefile_source=1; break
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116 ac_cv_sys_largefile_source=unknown
13117 break
13118 done
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13121 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13122 case $ac_cv_sys_largefile_source in #(
13123 no | unknown) ;;
13125 cat >>confdefs.h <<_ACEOF
13126 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13127 _ACEOF
13129 esac
13130 rm -rf conftest*
13132 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13133 # in glibc 2.1.3, but that breaks too many other things.
13134 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13135 if test $ac_cv_sys_largefile_source != unknown; then
13137 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13141 ac_header_dirent=no
13142 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13143 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13145 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13146 if eval \${$as_ac_Header+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151 #include <sys/types.h>
13152 #include <$ac_hdr>
13155 main ()
13157 if ((DIR *) 0)
13158 return 0;
13160 return 0;
13162 _ACEOF
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164 eval "$as_ac_Header=yes"
13165 else
13166 eval "$as_ac_Header=no"
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 eval ac_res=\$$as_ac_Header
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13172 $as_echo "$ac_res" >&6; }
13173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13174 cat >>confdefs.h <<_ACEOF
13175 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13176 _ACEOF
13178 ac_header_dirent=$ac_hdr; break
13181 done
13182 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13183 if test $ac_header_dirent = dirent.h; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13185 $as_echo_n "checking for library containing opendir... " >&6; }
13186 if ${ac_cv_search_opendir+:} false; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 ac_func_search_save_LIBS=$LIBS
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char opendir ();
13201 main ()
13203 return opendir ();
13205 return 0;
13207 _ACEOF
13208 for ac_lib in '' dir; do
13209 if test -z "$ac_lib"; then
13210 ac_res="none required"
13211 else
13212 ac_res=-l$ac_lib
13213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_search_opendir=$ac_res
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext
13220 if ${ac_cv_search_opendir+:} false; then :
13221 break
13223 done
13224 if ${ac_cv_search_opendir+:} false; then :
13226 else
13227 ac_cv_search_opendir=no
13229 rm conftest.$ac_ext
13230 LIBS=$ac_func_search_save_LIBS
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13233 $as_echo "$ac_cv_search_opendir" >&6; }
13234 ac_res=$ac_cv_search_opendir
13235 if test "$ac_res" != no; then :
13236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13242 $as_echo_n "checking for library containing opendir... " >&6; }
13243 if ${ac_cv_search_opendir+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 ac_func_search_save_LIBS=$LIBS
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char opendir ();
13258 main ()
13260 return opendir ();
13262 return 0;
13264 _ACEOF
13265 for ac_lib in '' x; do
13266 if test -z "$ac_lib"; then
13267 ac_res="none required"
13268 else
13269 ac_res=-l$ac_lib
13270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_search_opendir=$ac_res
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext
13277 if ${ac_cv_search_opendir+:} false; then :
13278 break
13280 done
13281 if ${ac_cv_search_opendir+:} false; then :
13283 else
13284 ac_cv_search_opendir=no
13286 rm conftest.$ac_ext
13287 LIBS=$ac_func_search_save_LIBS
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13290 $as_echo "$ac_cv_search_opendir" >&6; }
13291 ac_res=$ac_cv_search_opendir
13292 if test "$ac_res" != no; then :
13293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13300 $as_echo_n "checking for ANSI C header files... " >&6; }
13301 if ${ac_cv_header_stdc+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <stdlib.h>
13307 #include <stdarg.h>
13308 #include <string.h>
13309 #include <float.h>
13312 main ()
13316 return 0;
13318 _ACEOF
13319 if ac_fn_c_try_compile "$LINENO"; then :
13320 ac_cv_header_stdc=yes
13321 else
13322 ac_cv_header_stdc=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13326 if test $ac_cv_header_stdc = yes; then
13327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 #include <string.h>
13332 _ACEOF
13333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334 $EGREP "memchr" >/dev/null 2>&1; then :
13336 else
13337 ac_cv_header_stdc=no
13339 rm -f conftest*
13343 if test $ac_cv_header_stdc = yes; then
13344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 #include <stdlib.h>
13349 _ACEOF
13350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13351 $EGREP "free" >/dev/null 2>&1; then :
13353 else
13354 ac_cv_header_stdc=no
13356 rm -f conftest*
13360 if test $ac_cv_header_stdc = yes; then
13361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13362 if test "$cross_compiling" = yes; then :
13364 else
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 #include <ctype.h>
13368 #include <stdlib.h>
13369 #if ((' ' & 0x0FF) == 0x020)
13370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13372 #else
13373 # define ISLOWER(c) \
13374 (('a' <= (c) && (c) <= 'i') \
13375 || ('j' <= (c) && (c) <= 'r') \
13376 || ('s' <= (c) && (c) <= 'z'))
13377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13378 #endif
13380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13382 main ()
13384 int i;
13385 for (i = 0; i < 256; i++)
13386 if (XOR (islower (i), ISLOWER (i))
13387 || toupper (i) != TOUPPER (i))
13388 return 2;
13389 return 0;
13391 _ACEOF
13392 if ac_fn_c_try_run "$LINENO"; then :
13394 else
13395 ac_cv_header_stdc=no
13397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13398 conftest.$ac_objext conftest.beam conftest.$ac_ext
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13404 $as_echo "$ac_cv_header_stdc" >&6; }
13405 if test $ac_cv_header_stdc = yes; then
13407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13412 $as_echo_n "checking whether closedir returns void... " >&6; }
13413 if ${ac_cv_func_closedir_void+:} false; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416 if test "$cross_compiling" = yes; then :
13417 ac_cv_func_closedir_void=yes
13418 else
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 #include <$ac_header_dirent>
13423 #ifndef __cplusplus
13424 int closedir ();
13425 #endif
13428 main ()
13430 return closedir (opendir (".")) != 0;
13432 return 0;
13434 _ACEOF
13435 if ac_fn_c_try_run "$LINENO"; then :
13436 ac_cv_func_closedir_void=no
13437 else
13438 ac_cv_func_closedir_void=yes
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13446 $as_echo "$ac_cv_func_closedir_void" >&6; }
13447 if test $ac_cv_func_closedir_void = yes; then
13449 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
13453 for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
13454 do :
13455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13458 cat >>confdefs.h <<_ACEOF
13459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13460 _ACEOF
13464 done
13466 for ac_func in putenv
13467 do :
13468 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
13469 if test "x$ac_cv_func_putenv" = xyes; then :
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_PUTENV 1
13472 _ACEOF
13475 done
13477 for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
13478 do :
13479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13482 cat >>confdefs.h <<_ACEOF
13483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13484 _ACEOF
13487 done
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13490 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13491 if ${ac_cv_c_const+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13498 main ()
13501 #ifndef __cplusplus
13502 /* Ultrix mips cc rejects this sort of thing. */
13503 typedef int charset[2];
13504 const charset cs = { 0, 0 };
13505 /* SunOS 4.1.1 cc rejects this. */
13506 char const *const *pcpcc;
13507 char **ppc;
13508 /* NEC SVR4.0.2 mips cc rejects this. */
13509 struct point {int x, y;};
13510 static struct point const zero = {0,0};
13511 /* AIX XL C 1.02.0.0 rejects this.
13512 It does not let you subtract one const X* pointer from another in
13513 an arm of an if-expression whose if-part is not a constant
13514 expression */
13515 const char *g = "string";
13516 pcpcc = &g + (g ? g-g : 0);
13517 /* HPUX 7.0 cc rejects these. */
13518 ++pcpcc;
13519 ppc = (char**) pcpcc;
13520 pcpcc = (char const *const *) ppc;
13521 { /* SCO 3.2v4 cc rejects this sort of thing. */
13522 char tx;
13523 char *t = &tx;
13524 char const *s = 0 ? (char *) 0 : (char const *) 0;
13526 *t++ = 0;
13527 if (s) return 0;
13529 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13530 int x[] = {25, 17};
13531 const int *foo = &x[0];
13532 ++foo;
13534 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13535 typedef const int *iptr;
13536 iptr p = 0;
13537 ++p;
13539 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13540 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13541 struct s { int j; const int *ap[3]; } bx;
13542 struct s *b = &bx; b->j = 5;
13544 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13545 const int foo = 10;
13546 if (!foo) return 0;
13548 return !cs[0] && !zero.x;
13549 #endif
13552 return 0;
13554 _ACEOF
13555 if ac_fn_c_try_compile "$LINENO"; then :
13556 ac_cv_c_const=yes
13557 else
13558 ac_cv_c_const=no
13560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13563 $as_echo "$ac_cv_c_const" >&6; }
13564 if test $ac_cv_c_const = no; then
13566 $as_echo "#define const /**/" >>confdefs.h
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13571 $as_echo_n "checking for inline... " >&6; }
13572 if ${ac_cv_c_inline+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 ac_cv_c_inline=no
13576 for ac_kw in inline __inline__ __inline; do
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13579 #ifndef __cplusplus
13580 typedef int foo_t;
13581 static $ac_kw foo_t static_foo () {return 0; }
13582 $ac_kw foo_t foo () {return 0; }
13583 #endif
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587 ac_cv_c_inline=$ac_kw
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 test "$ac_cv_c_inline" != no && break
13591 done
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13595 $as_echo "$ac_cv_c_inline" >&6; }
13597 case $ac_cv_c_inline in
13598 inline | yes) ;;
13600 case $ac_cv_c_inline in
13601 no) ac_val=;;
13602 *) ac_val=$ac_cv_c_inline;;
13603 esac
13604 cat >>confdefs.h <<_ACEOF
13605 #ifndef __cplusplus
13606 #define inline $ac_val
13607 #endif
13608 _ACEOF
13610 esac
13612 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13613 if test "x$ac_cv_type_size_t" = xyes; then :
13615 else
13617 cat >>confdefs.h <<_ACEOF
13618 #define size_t unsigned int
13619 _ACEOF
13623 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13624 case $ac_cv_c_int64_t in #(
13625 no|yes) ;; #(
13628 cat >>confdefs.h <<_ACEOF
13629 #define int64_t $ac_cv_c_int64_t
13630 _ACEOF
13632 esac
13634 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13635 case $ac_cv_c_uint64_t in #(
13636 no|yes) ;; #(
13639 $as_echo "#define _UINT64_T 1" >>confdefs.h
13642 cat >>confdefs.h <<_ACEOF
13643 #define uint64_t $ac_cv_c_uint64_t
13644 _ACEOF
13646 esac
13648 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
13649 *':no:'*) :
13650 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
13651 *) :
13653 esac
13654 ac_fn_c_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
13656 if test "x$ac_cv_have_decl_isascii" = xyes; then :
13657 ac_have_decl=1
13658 else
13659 ac_have_decl=0
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_DECL_ISASCII $ac_have_decl
13664 _ACEOF
13666 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13667 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13669 cat >>confdefs.h <<_ACEOF
13670 #define HAVE_STRUCT_STAT_ST_MTIM 1
13671 _ACEOF
13678 ## texk/kpathsea/ac/mktex.ac: configure.ac fragment for the TeX Live
13679 ## subdirectory texk/kpathsea.
13680 ## configure defaults for mktexfmt & Co.
13681 # Check whether --enable-mktexmf-default was given.
13682 if test "${enable_mktexmf_default+set}" = set; then :
13683 enableval=$enable_mktexmf_default;
13685 # Check whether --enable-mktexpk-default was given.
13686 if test "${enable_mktexpk_default+set}" = set; then :
13687 enableval=$enable_mktexpk_default;
13689 # Check whether --enable-mktextfm-default was given.
13690 if test "${enable_mktextfm_default+set}" = set; then :
13691 enableval=$enable_mktextfm_default;
13693 # Check whether --enable-mkocp-default was given.
13694 if test "${enable_mkocp_default+set}" = set; then :
13695 enableval=$enable_mkocp_default;
13697 # Check whether --enable-mkofm-default was given.
13698 if test "${enable_mkofm_default+set}" = set; then :
13699 enableval=$enable_mkofm_default;
13701 # Check whether --enable-mktexfmt-default was given.
13702 if test "${enable_mktexfmt_default+set}" = set; then :
13703 enableval=$enable_mktexfmt_default;
13705 # Check whether --enable-mktextex-default was given.
13706 if test "${enable_mktextex_default+set}" = set; then :
13707 enableval=$enable_mktextex_default;
13711 case $enable_mktexmf_default in #(
13712 yes | no) :
13713 ;; #(
13714 *) :
13715 enable_mktexmf_default=yes ;;
13716 esac
13717 if test "x$enable_mktexmf_default" = xyes; then :
13719 $as_echo "#define MAKE_TEX_MF_BY_DEFAULT 1" >>confdefs.h
13721 else
13722 $as_echo "#define MAKE_TEX_MF_BY_DEFAULT 0" >>confdefs.h
13725 case $enable_mktexpk_default in #(
13726 yes | no) :
13727 ;; #(
13728 *) :
13729 enable_mktexpk_default=yes ;;
13730 esac
13731 if test "x$enable_mktexpk_default" = xyes; then :
13733 $as_echo "#define MAKE_TEX_PK_BY_DEFAULT 1" >>confdefs.h
13735 else
13736 $as_echo "#define MAKE_TEX_PK_BY_DEFAULT 0" >>confdefs.h
13739 case $enable_mktextfm_default in #(
13740 yes | no) :
13741 ;; #(
13742 *) :
13743 enable_mktextfm_default=yes ;;
13744 esac
13745 if test "x$enable_mktextfm_default" = xyes; then :
13747 $as_echo "#define MAKE_TEX_TFM_BY_DEFAULT 1" >>confdefs.h
13749 else
13750 $as_echo "#define MAKE_TEX_TFM_BY_DEFAULT 0" >>confdefs.h
13753 case $enable_mkocp_default in #(
13754 yes | no) :
13755 ;; #(
13756 *) :
13757 enable_mkocp_default=yes ;;
13758 esac
13759 if test "x$enable_mkocp_default" = xyes; then :
13761 $as_echo "#define MAKE_OMEGA_OCP_BY_DEFAULT 1" >>confdefs.h
13763 else
13764 $as_echo "#define MAKE_OMEGA_OCP_BY_DEFAULT 0" >>confdefs.h
13767 case $enable_mkofm_default in #(
13768 yes | no) :
13769 ;; #(
13770 *) :
13771 enable_mkofm_default=yes ;;
13772 esac
13773 if test "x$enable_mkofm_default" = xyes; then :
13775 $as_echo "#define MAKE_OMEGA_OFM_BY_DEFAULT 1" >>confdefs.h
13777 else
13778 $as_echo "#define MAKE_OMEGA_OFM_BY_DEFAULT 0" >>confdefs.h
13781 case $enable_mktexfmt_default in #(
13782 yes | no) :
13783 ;; #(
13784 *) :
13785 enable_mktexfmt_default=yes ;;
13786 esac
13787 if test "x$enable_mktexfmt_default" = xyes; then :
13789 $as_echo "#define MAKE_TEX_FMT_BY_DEFAULT 1" >>confdefs.h
13791 else
13792 $as_echo "#define MAKE_TEX_FMT_BY_DEFAULT 0" >>confdefs.h
13795 case $enable_mktextex_default in #(
13796 yes | no) :
13797 ;; #(
13798 *) :
13799 enable_mktextex_default=no ;;
13800 esac
13801 if test "x$enable_mktextex_default" = xyes; then :
13803 $as_echo "#define MAKE_TEX_TEX_BY_DEFAULT 1" >>confdefs.h
13805 else
13806 $as_echo "#define MAKE_TEX_TEX_BY_DEFAULT 0" >>confdefs.h
13810 # So we can use reasonable awk in the Makefile.
13811 for ac_prog in gawk mawk nawk awk
13813 # Extract the first word of "$ac_prog", so it can be a program name with args.
13814 set dummy $ac_prog; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_prog_AWK+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 if test -n "$AWK"; then
13821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13822 else
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_prog_AWK="$ac_prog"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13834 done
13835 done
13836 IFS=$as_save_IFS
13840 AWK=$ac_cv_prog_AWK
13841 if test -n "$AWK"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13843 $as_echo "$AWK" >&6; }
13844 else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13850 test -n "$AWK" && break
13851 done
13854 # The cast to long int works around a bug in the HP C Compiler
13855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13857 # This bug is HP SR number 8606223364.
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13859 $as_echo_n "checking size of long... " >&6; }
13860 if ${ac_cv_sizeof_long+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13865 else
13866 if test "$ac_cv_type_long" = yes; then
13867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13869 as_fn_error 77 "cannot compute sizeof (long)
13870 See \`config.log' for more details" "$LINENO" 5; }
13871 else
13872 ac_cv_sizeof_long=0
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13878 $as_echo "$ac_cv_sizeof_long" >&6; }
13882 cat >>confdefs.h <<_ACEOF
13883 #define SIZEOF_LONG $ac_cv_sizeof_long
13884 _ACEOF
13888 ac_fn_c_check_decl "$LINENO" "putenv" "ac_cv_have_decl_putenv" "$ac_includes_default"
13889 if test "x$ac_cv_have_decl_putenv" = xyes; then :
13890 ac_have_decl=1
13891 else
13892 ac_have_decl=0
13895 cat >>confdefs.h <<_ACEOF
13896 #define HAVE_DECL_PUTENV $ac_have_decl
13897 _ACEOF
13899 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
13900 if test "x$ac_cv_func_putenv" = xyes; then :
13901 $as_echo "#define HAVE_PUTENV 1" >>confdefs.h
13903 else
13904 case " $LIBOBJS " in
13905 *" putenv.$ac_objext "* ) ;;
13906 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
13908 esac
13914 if test "x$ac_cv_func_getcwd" = xyes; then
13915 # We only need to run this if we have getcwd.
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd uses fork or vfork" >&5
13917 $as_echo_n "checking whether getcwd uses fork or vfork... " >&6; }
13918 if ${kb_cv_func_getcwd_forks+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test "$cross_compiling" = yes; then :
13922 kb_cv_func_getcwd_forks=no
13923 else
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13926 int fork() { exit(1); }
13927 int vfork() { exit(1); }
13928 extern char *getcwd();
13929 char path[100];
13931 main ()
13933 getcwd(path,100);
13935 return 0;
13937 _ACEOF
13938 if ac_fn_c_try_run "$LINENO"; then :
13939 kb_cv_func_getcwd_forks=no
13940 else
13941 kb_cv_func_getcwd_forks=yes
13943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13944 conftest.$ac_objext conftest.beam conftest.$ac_ext
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_func_getcwd_forks" >&5
13949 $as_echo "$kb_cv_func_getcwd_forks" >&6; }
13950 if test "x$kb_cv_func_getcwd_forks" = xyes; then
13952 $as_echo "#define GETCWD_FORKS 1" >>confdefs.h
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
13958 $as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
13959 if ${kpse_cv_have_win32+:} false; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 #ifndef WIN32
13965 choke me
13966 #endif
13968 main ()
13972 return 0;
13974 _ACEOF
13975 if ac_fn_c_try_compile "$LINENO"; then :
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 #ifndef __MINGW32__
13979 choke me
13980 #endif
13982 main ()
13986 return 0;
13988 _ACEOF
13989 if ac_fn_c_try_compile "$LINENO"; then :
13990 kpse_cv_have_win32=mingw32
13991 else
13992 kpse_cv_have_win32=native
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 else
13996 kpse_cv_have_win32=no
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
14001 $as_echo "$kpse_cv_have_win32" >&6; }
14003 if test "x$kpse_cv_have_win32" != xno; then
14004 WIN32_TRUE=
14005 WIN32_FALSE='#'
14006 else
14007 WIN32_TRUE='#'
14008 WIN32_FALSE=
14012 if test "x$kpse_cv_have_win32" = xmingw32; then
14013 MINGW32_TRUE=
14014 MINGW32_FALSE='#'
14015 else
14016 MINGW32_TRUE='#'
14017 MINGW32_FALSE=
14022 LT_OBJDIR="$lt_cv_objdir"
14025 # Checking snprintf and vsnprintf
14027 # Check whether --with-snprintf-wrapper was given.
14028 if test "${with_snprintf_wrapper+set}" = set; then :
14029 withval=$with_snprintf_wrapper; kpse_cv_wrap_snprintf=$withval
14030 else
14031 test "x$kpse_cv_have_win32" != xno && kpse_cv_wrap_snprintf=yes
14033 if test "x$kpse_cv_have_win32" = xno; then
14034 snfunc=snprintf vsnfunc=vsnprintf
14035 else
14036 snfunc=_snprintf vsnfunc=_vsnprintf
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $snfunc and $vsnfunc" >&5
14039 $as_echo_n "checking for $snfunc and $vsnfunc... " >&6; }
14040 if ${kpse_cv_have_snfuncs+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045 #include <stdarg.h>
14046 char buf[16];
14047 va_list ap;
14049 main ()
14051 $snfunc (buf, 16, "%s", "abc");
14052 $vsnfunc (buf, 16, "%s", ap);
14054 return 0;
14056 _ACEOF
14057 if ac_fn_c_try_link "$LINENO"; then :
14058 kpse_cv_have_snfuncs=yes
14059 else
14060 kpse_cv_have_snfuncs=no
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_snfuncs" >&5
14066 $as_echo "$kpse_cv_have_snfuncs" >&6; }
14067 if test "x$kpse_cv_have_snfuncs" != xyes; then
14068 as_fn_error $? "Sorry, you need $snfunc and $vsnfunc." "$LINENO" 5
14070 if test "$cross_compiling" = yes; then :
14072 else
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 char buf[4] = "abc";
14077 main ()
14079 if ($snfunc (buf, 1, "%s", "x") == 0 || buf[1] != 'b')
14080 return 1;
14082 return 0;
14084 _ACEOF
14085 if ac_fn_c_try_run "$LINENO"; then :
14087 else
14088 as_fn_error $? "Sorry, your $snfunc is badly broken." "$LINENO" 5
14090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14091 conftest.$ac_objext conftest.beam conftest.$ac_ext
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need (v)snprintf wrapper functions" >&5
14095 $as_echo_n "checking if we need (v)snprintf wrapper functions... " >&6; }
14096 if ${kpse_cv_wrap_snprintf+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 if test "$cross_compiling" = yes; then :
14100 kpse_cv_wrap_snprintf=no
14101 else
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104 char buf[4] = "abc";
14106 main ()
14108 $snfunc (buf, 3, "xyz");
14109 if (buf[2] != 0) return 1;
14110 $snfunc (buf, 2, "xyz");
14111 if (buf[1] != 0) return 1;
14113 return 0;
14115 _ACEOF
14116 if ac_fn_c_try_run "$LINENO"; then :
14117 kpse_cv_wrap_snprintf=no
14118 else
14119 kpse_cv_wrap_snprintf=yes
14121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14122 conftest.$ac_objext conftest.beam conftest.$ac_ext
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_wrap_snprintf" >&5
14127 $as_echo "$kpse_cv_wrap_snprintf" >&6; }
14128 if test "x$kpse_cv_wrap_snprintf" = xyes; then
14130 $as_echo "#define WRAP_SNPRINTF 1" >>confdefs.h
14134 if test -n "$EXEEXT"; then
14135 have_EXEEXT_TRUE=
14136 have_EXEEXT_FALSE='#'
14137 else
14138 have_EXEEXT_TRUE='#'
14139 have_EXEEXT_FALSE=
14143 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
14149 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile win32/Makefile kpathsea.pc"
14152 cat >confcache <<\_ACEOF
14153 # This file is a shell script that caches the results of configure
14154 # tests run on this system so they can be shared between configure
14155 # scripts and configure runs, see configure's option --config-cache.
14156 # It is not useful on other systems. If it contains results you don't
14157 # want to keep, you may remove or edit it.
14159 # config.status only pays attention to the cache file if you give it
14160 # the --recheck option to rerun configure.
14162 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14163 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14164 # following values.
14166 _ACEOF
14168 # The following way of writing the cache mishandles newlines in values,
14169 # but we know of no workaround that is simple, portable, and efficient.
14170 # So, we kill variables containing newlines.
14171 # Ultrix sh set writes to stderr and can't be redirected directly,
14172 # and sets the high bit in the cache file unless we assign to the vars.
14174 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14175 eval ac_val=\$$ac_var
14176 case $ac_val in #(
14177 *${as_nl}*)
14178 case $ac_var in #(
14179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14181 esac
14182 case $ac_var in #(
14183 _ | IFS | as_nl) ;; #(
14184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14185 *) { eval $ac_var=; unset $ac_var;} ;;
14186 esac ;;
14187 esac
14188 done
14190 (set) 2>&1 |
14191 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14192 *${as_nl}ac_space=\ *)
14193 # `set' does not quote correctly, so add quotes: double-quote
14194 # substitution turns \\\\ into \\, and sed turns \\ into \.
14195 sed -n \
14196 "s/'/'\\\\''/g;
14197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14198 ;; #(
14200 # `set' quotes correctly as required by POSIX, so do not add quotes.
14201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14203 esac |
14204 sort
14206 sed '
14207 /^ac_cv_env_/b end
14208 t clear
14209 :clear
14210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14211 t end
14212 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14213 :end' >>confcache
14214 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14215 if test -w "$cache_file"; then
14216 if test "x$cache_file" != "x/dev/null"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14218 $as_echo "$as_me: updating cache $cache_file" >&6;}
14219 if test ! -f "$cache_file" || test -h "$cache_file"; then
14220 cat confcache >"$cache_file"
14221 else
14222 case $cache_file in #(
14223 */* | ?:*)
14224 mv -f confcache "$cache_file"$$ &&
14225 mv -f "$cache_file"$$ "$cache_file" ;; #(
14227 mv -f confcache "$cache_file" ;;
14228 esac
14231 else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14233 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14236 rm -f confcache
14238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14239 # Let make expand exec_prefix.
14240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14242 DEFS=-DHAVE_CONFIG_H
14244 ac_libobjs=
14245 ac_ltlibobjs=
14247 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14248 # 1. Remove the extension, and $U if already installed.
14249 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14250 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14251 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14252 # will be set to the directory where LIBOBJS objects are built.
14253 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14254 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14255 done
14256 LIBOBJS=$ac_libobjs
14258 LTLIBOBJS=$ac_ltlibobjs
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14262 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14263 if test -n "$am_sleep_pid"; then
14264 # Hide warnings about reused PIDs.
14265 wait $am_sleep_pid 2>/dev/null
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14268 $as_echo "done" >&6; }
14269 if test -n "$EXEEXT"; then
14270 am__EXEEXT_TRUE=
14271 am__EXEEXT_FALSE='#'
14272 else
14273 am__EXEEXT_TRUE='#'
14274 am__EXEEXT_FALSE=
14277 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14278 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14281 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14282 as_fn_error $? "conditional \"AMDEP\" was never defined.
14283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14285 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14286 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14289 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
14290 as_fn_error $? "conditional \"WIN32\" was never defined.
14291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14293 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
14294 as_fn_error $? "conditional \"MINGW32\" was never defined.
14295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14297 if test -z "${have_EXEEXT_TRUE}" && test -z "${have_EXEEXT_FALSE}"; then
14298 as_fn_error $? "conditional \"have_EXEEXT\" was never defined.
14299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14302 : "${CONFIG_STATUS=./config.status}"
14303 ac_write_fail=0
14304 ac_clean_files_save=$ac_clean_files
14305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14307 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14308 as_write_fail=0
14309 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14310 #! $SHELL
14311 # Generated by $as_me.
14312 # Run this file to recreate the current configuration.
14313 # Compiler output produced by configure, useful for debugging
14314 # configure, is in config.log if it exists.
14316 debug=false
14317 ac_cs_recheck=false
14318 ac_cs_silent=false
14320 SHELL=\${CONFIG_SHELL-$SHELL}
14321 export SHELL
14322 _ASEOF
14323 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14324 ## -------------------- ##
14325 ## M4sh Initialization. ##
14326 ## -------------------- ##
14328 # Be more Bourne compatible
14329 DUALCASE=1; export DUALCASE # for MKS sh
14330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14331 emulate sh
14332 NULLCMD=:
14333 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14334 # is contrary to our usage. Disable this feature.
14335 alias -g '${1+"$@"}'='"$@"'
14336 setopt NO_GLOB_SUBST
14337 else
14338 case `(set -o) 2>/dev/null` in #(
14339 *posix*) :
14340 set -o posix ;; #(
14341 *) :
14343 esac
14347 as_nl='
14349 export as_nl
14350 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14351 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14354 # Prefer a ksh shell builtin over an external printf program on Solaris,
14355 # but without wasting forks for bash or zsh.
14356 if test -z "$BASH_VERSION$ZSH_VERSION" \
14357 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14358 as_echo='print -r --'
14359 as_echo_n='print -rn --'
14360 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14361 as_echo='printf %s\n'
14362 as_echo_n='printf %s'
14363 else
14364 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14365 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14366 as_echo_n='/usr/ucb/echo -n'
14367 else
14368 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14369 as_echo_n_body='eval
14370 arg=$1;
14371 case $arg in #(
14372 *"$as_nl"*)
14373 expr "X$arg" : "X\\(.*\\)$as_nl";
14374 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14375 esac;
14376 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14378 export as_echo_n_body
14379 as_echo_n='sh -c $as_echo_n_body as_echo'
14381 export as_echo_body
14382 as_echo='sh -c $as_echo_body as_echo'
14385 # The user is always right.
14386 if test "${PATH_SEPARATOR+set}" != set; then
14387 PATH_SEPARATOR=:
14388 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14389 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14390 PATH_SEPARATOR=';'
14395 # IFS
14396 # We need space, tab and new line, in precisely that order. Quoting is
14397 # there to prevent editors from complaining about space-tab.
14398 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14399 # splitting by setting IFS to empty value.)
14400 IFS=" "" $as_nl"
14402 # Find who we are. Look in the path if we contain no directory separator.
14403 as_myself=
14404 case $0 in #((
14405 *[\\/]* ) as_myself=$0 ;;
14406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14412 done
14413 IFS=$as_save_IFS
14416 esac
14417 # We did not find ourselves, most probably we were run as `sh COMMAND'
14418 # in which case we are not to be found in the path.
14419 if test "x$as_myself" = x; then
14420 as_myself=$0
14422 if test ! -f "$as_myself"; then
14423 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14424 exit 1
14427 # Unset variables that we do not need and which cause bugs (e.g. in
14428 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14429 # suppresses any "Segmentation fault" message there. '((' could
14430 # trigger a bug in pdksh 5.2.14.
14431 for as_var in BASH_ENV ENV MAIL MAILPATH
14432 do eval test x\${$as_var+set} = xset \
14433 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14434 done
14435 PS1='$ '
14436 PS2='> '
14437 PS4='+ '
14439 # NLS nuisances.
14440 LC_ALL=C
14441 export LC_ALL
14442 LANGUAGE=C
14443 export LANGUAGE
14445 # CDPATH.
14446 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14449 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14450 # ----------------------------------------
14451 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14452 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14453 # script with STATUS, using 1 if that was 0.
14454 as_fn_error ()
14456 as_status=$1; test $as_status -eq 0 && as_status=1
14457 if test "$4"; then
14458 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14459 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14461 $as_echo "$as_me: error: $2" >&2
14462 as_fn_exit $as_status
14463 } # as_fn_error
14466 # as_fn_set_status STATUS
14467 # -----------------------
14468 # Set $? to STATUS, without forking.
14469 as_fn_set_status ()
14471 return $1
14472 } # as_fn_set_status
14474 # as_fn_exit STATUS
14475 # -----------------
14476 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14477 as_fn_exit ()
14479 set +e
14480 as_fn_set_status $1
14481 exit $1
14482 } # as_fn_exit
14484 # as_fn_unset VAR
14485 # ---------------
14486 # Portably unset VAR.
14487 as_fn_unset ()
14489 { eval $1=; unset $1;}
14491 as_unset=as_fn_unset
14492 # as_fn_append VAR VALUE
14493 # ----------------------
14494 # Append the text in VALUE to the end of the definition contained in VAR. Take
14495 # advantage of any shell optimizations that allow amortized linear growth over
14496 # repeated appends, instead of the typical quadratic growth present in naive
14497 # implementations.
14498 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14499 eval 'as_fn_append ()
14501 eval $1+=\$2
14503 else
14504 as_fn_append ()
14506 eval $1=\$$1\$2
14508 fi # as_fn_append
14510 # as_fn_arith ARG...
14511 # ------------------
14512 # Perform arithmetic evaluation on the ARGs, and store the result in the
14513 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14514 # must be portable across $(()) and expr.
14515 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14516 eval 'as_fn_arith ()
14518 as_val=$(( $* ))
14520 else
14521 as_fn_arith ()
14523 as_val=`expr "$@" || test $? -eq 1`
14525 fi # as_fn_arith
14528 if expr a : '\(a\)' >/dev/null 2>&1 &&
14529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14530 as_expr=expr
14531 else
14532 as_expr=false
14535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14536 as_basename=basename
14537 else
14538 as_basename=false
14541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14542 as_dirname=dirname
14543 else
14544 as_dirname=false
14547 as_me=`$as_basename -- "$0" ||
14548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14549 X"$0" : 'X\(//\)$' \| \
14550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14551 $as_echo X/"$0" |
14552 sed '/^.*\/\([^/][^/]*\)\/*$/{
14553 s//\1/
14556 /^X\/\(\/\/\)$/{
14557 s//\1/
14560 /^X\/\(\/\).*/{
14561 s//\1/
14564 s/.*/./; q'`
14566 # Avoid depending upon Character Ranges.
14567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14570 as_cr_digits='0123456789'
14571 as_cr_alnum=$as_cr_Letters$as_cr_digits
14573 ECHO_C= ECHO_N= ECHO_T=
14574 case `echo -n x` in #(((((
14575 -n*)
14576 case `echo 'xy\c'` in
14577 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14578 xy) ECHO_C='\c';;
14579 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14580 ECHO_T=' ';;
14581 esac;;
14583 ECHO_N='-n';;
14584 esac
14586 rm -f conf$$ conf$$.exe conf$$.file
14587 if test -d conf$$.dir; then
14588 rm -f conf$$.dir/conf$$.file
14589 else
14590 rm -f conf$$.dir
14591 mkdir conf$$.dir 2>/dev/null
14593 if (echo >conf$$.file) 2>/dev/null; then
14594 if ln -s conf$$.file conf$$ 2>/dev/null; then
14595 as_ln_s='ln -s'
14596 # ... but there are two gotchas:
14597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14599 # In both cases, we have to default to `cp -pR'.
14600 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14601 as_ln_s='cp -pR'
14602 elif ln conf$$.file conf$$ 2>/dev/null; then
14603 as_ln_s=ln
14604 else
14605 as_ln_s='cp -pR'
14607 else
14608 as_ln_s='cp -pR'
14610 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14611 rmdir conf$$.dir 2>/dev/null
14614 # as_fn_mkdir_p
14615 # -------------
14616 # Create "$as_dir" as a directory, including parents if necessary.
14617 as_fn_mkdir_p ()
14620 case $as_dir in #(
14621 -*) as_dir=./$as_dir;;
14622 esac
14623 test -d "$as_dir" || eval $as_mkdir_p || {
14624 as_dirs=
14625 while :; do
14626 case $as_dir in #(
14627 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14628 *) as_qdir=$as_dir;;
14629 esac
14630 as_dirs="'$as_qdir' $as_dirs"
14631 as_dir=`$as_dirname -- "$as_dir" ||
14632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14633 X"$as_dir" : 'X\(//\)[^/]' \| \
14634 X"$as_dir" : 'X\(//\)$' \| \
14635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14636 $as_echo X"$as_dir" |
14637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14638 s//\1/
14641 /^X\(\/\/\)[^/].*/{
14642 s//\1/
14645 /^X\(\/\/\)$/{
14646 s//\1/
14649 /^X\(\/\).*/{
14650 s//\1/
14653 s/.*/./; q'`
14654 test -d "$as_dir" && break
14655 done
14656 test -z "$as_dirs" || eval "mkdir $as_dirs"
14657 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14660 } # as_fn_mkdir_p
14661 if mkdir -p . 2>/dev/null; then
14662 as_mkdir_p='mkdir -p "$as_dir"'
14663 else
14664 test -d ./-p && rmdir ./-p
14665 as_mkdir_p=false
14669 # as_fn_executable_p FILE
14670 # -----------------------
14671 # Test if FILE is an executable regular file.
14672 as_fn_executable_p ()
14674 test -f "$1" && test -x "$1"
14675 } # as_fn_executable_p
14676 as_test_x='test -x'
14677 as_executable_p=as_fn_executable_p
14679 # Sed expression to map a string onto a valid CPP name.
14680 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14682 # Sed expression to map a string onto a valid variable name.
14683 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14686 exec 6>&1
14687 ## ----------------------------------- ##
14688 ## Main body of $CONFIG_STATUS script. ##
14689 ## ----------------------------------- ##
14690 _ASEOF
14691 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694 # Save the log message, to keep $0 and so on meaningful, and to
14695 # report actual input values of CONFIG_FILES etc. instead of their
14696 # values after options handling.
14697 ac_log="
14698 This file was extended by Kpathsea $as_me 6.2.2dev, which was
14699 generated by GNU Autoconf 2.69. Invocation command line was
14701 CONFIG_FILES = $CONFIG_FILES
14702 CONFIG_HEADERS = $CONFIG_HEADERS
14703 CONFIG_LINKS = $CONFIG_LINKS
14704 CONFIG_COMMANDS = $CONFIG_COMMANDS
14705 $ $0 $@
14707 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14710 _ACEOF
14712 case $ac_config_files in *"
14713 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14714 esac
14716 case $ac_config_headers in *"
14717 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14718 esac
14721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14722 # Files that config.status was made for.
14723 config_files="$ac_config_files"
14724 config_headers="$ac_config_headers"
14725 config_commands="$ac_config_commands"
14727 _ACEOF
14729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14730 ac_cs_usage="\
14731 \`$as_me' instantiates files and other configuration actions
14732 from templates according to the current configuration. Unless the files
14733 and actions are specified as TAGs, all are instantiated by default.
14735 Usage: $0 [OPTION]... [TAG]...
14737 -h, --help print this help, then exit
14738 -V, --version print version number and configuration settings, then exit
14739 --config print configuration, then exit
14740 -q, --quiet, --silent
14741 do not print progress messages
14742 -d, --debug don't remove temporary files
14743 --recheck update $as_me by reconfiguring in the same conditions
14744 --file=FILE[:TEMPLATE]
14745 instantiate the configuration file FILE
14746 --header=FILE[:TEMPLATE]
14747 instantiate the configuration header FILE
14749 Configuration files:
14750 $config_files
14752 Configuration headers:
14753 $config_headers
14755 Configuration commands:
14756 $config_commands
14758 Report bugs to <tex-k@tug.org>."
14760 _ACEOF
14761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14763 ac_cs_version="\\
14764 Kpathsea config.status 6.2.2dev
14765 configured by $0, generated by GNU Autoconf 2.69,
14766 with options \\"\$ac_cs_config\\"
14768 Copyright (C) 2012 Free Software Foundation, Inc.
14769 This config.status script is free software; the Free Software Foundation
14770 gives unlimited permission to copy, distribute and modify it."
14772 ac_pwd='$ac_pwd'
14773 srcdir='$srcdir'
14774 INSTALL='$INSTALL'
14775 MKDIR_P='$MKDIR_P'
14776 AWK='$AWK'
14777 test -n "\$AWK" || AWK=awk
14778 _ACEOF
14780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14781 # The default lists apply if the user does not specify any file.
14782 ac_need_defaults=:
14783 while test $# != 0
14785 case $1 in
14786 --*=?*)
14787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14789 ac_shift=:
14791 --*=)
14792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14793 ac_optarg=
14794 ac_shift=:
14797 ac_option=$1
14798 ac_optarg=$2
14799 ac_shift=shift
14801 esac
14803 case $ac_option in
14804 # Handling of the options.
14805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14806 ac_cs_recheck=: ;;
14807 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14808 $as_echo "$ac_cs_version"; exit ;;
14809 --config | --confi | --conf | --con | --co | --c )
14810 $as_echo "$ac_cs_config"; exit ;;
14811 --debug | --debu | --deb | --de | --d | -d )
14812 debug=: ;;
14813 --file | --fil | --fi | --f )
14814 $ac_shift
14815 case $ac_optarg in
14816 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14817 '') as_fn_error $? "missing file argument" ;;
14818 esac
14819 as_fn_append CONFIG_FILES " '$ac_optarg'"
14820 ac_need_defaults=false;;
14821 --header | --heade | --head | --hea )
14822 $ac_shift
14823 case $ac_optarg in
14824 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14825 esac
14826 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14827 ac_need_defaults=false;;
14828 --he | --h)
14829 # Conflict between --help and --header
14830 as_fn_error $? "ambiguous option: \`$1'
14831 Try \`$0 --help' for more information.";;
14832 --help | --hel | -h )
14833 $as_echo "$ac_cs_usage"; exit ;;
14834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14836 ac_cs_silent=: ;;
14838 # This is an error.
14839 -*) as_fn_error $? "unrecognized option: \`$1'
14840 Try \`$0 --help' for more information." ;;
14842 *) as_fn_append ac_config_targets " $1"
14843 ac_need_defaults=false ;;
14845 esac
14846 shift
14847 done
14849 ac_configure_extra_args=
14851 if $ac_cs_silent; then
14852 exec 6>/dev/null
14853 ac_configure_extra_args="$ac_configure_extra_args --silent"
14856 _ACEOF
14857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 if \$ac_cs_recheck; then
14859 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14860 shift
14861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14862 CONFIG_SHELL='$SHELL'
14863 export CONFIG_SHELL
14864 exec "\$@"
14867 _ACEOF
14868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14869 exec 5>>config.log
14871 echo
14872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14873 ## Running $as_me. ##
14874 _ASBOX
14875 $as_echo "$ac_log"
14876 } >&5
14878 _ACEOF
14879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14881 # INIT-COMMANDS
14883 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14886 # The HP-UX ksh and POSIX shell print the target directory to stdout
14887 # if CDPATH is set.
14888 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14890 sed_quote_subst='$sed_quote_subst'
14891 double_quote_subst='$double_quote_subst'
14892 delay_variable_subst='$delay_variable_subst'
14893 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14894 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14895 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14896 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14897 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14898 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14899 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14900 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14901 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14902 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14903 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14904 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14905 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14906 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14907 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14908 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14909 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14910 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14911 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14912 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14913 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14914 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14915 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14916 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14917 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14918 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14919 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14920 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14921 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14922 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14923 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14924 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14925 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14926 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14927 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14928 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14929 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14930 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14931 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14932 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14933 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14934 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14935 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14936 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14937 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14938 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14939 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14940 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14941 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14942 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14943 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14944 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14945 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14946 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14947 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14948 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14949 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14950 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14951 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14952 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"`'
14953 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14954 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14955 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14956 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14957 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14958 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14959 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14960 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14961 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14962 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14963 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14964 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14965 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14966 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14967 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14968 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14969 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14970 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14971 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14972 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14973 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14974 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14975 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14976 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14977 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14978 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14979 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14980 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14981 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14982 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14983 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14984 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14985 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14986 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14987 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14988 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14989 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14990 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14991 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14992 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14993 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14994 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14995 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14996 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14997 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14998 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14999 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15000 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15001 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15002 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15003 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15004 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15005 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15006 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15007 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15008 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15009 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15010 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15011 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15012 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15013 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15014 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15015 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15016 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15017 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15018 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15019 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15020 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15021 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15022 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15023 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15024 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15025 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15026 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15027 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15028 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15030 LTCC='$LTCC'
15031 LTCFLAGS='$LTCFLAGS'
15032 compiler='$compiler_DEFAULT'
15034 # A function that is used when there is no print builtin or printf.
15035 func_fallback_echo ()
15037 eval 'cat <<_LTECHO_EOF
15039 _LTECHO_EOF'
15042 # Quote evaled strings.
15043 for var in AS \
15044 DLLTOOL \
15045 OBJDUMP \
15046 SHELL \
15047 ECHO \
15048 PATH_SEPARATOR \
15049 SED \
15050 GREP \
15051 EGREP \
15052 FGREP \
15053 LD \
15054 NM \
15055 LN_S \
15056 lt_SP2NL \
15057 lt_NL2SP \
15058 reload_flag \
15059 deplibs_check_method \
15060 file_magic_cmd \
15061 file_magic_glob \
15062 want_nocaseglob \
15063 sharedlib_from_linklib_cmd \
15064 AR \
15065 AR_FLAGS \
15066 archiver_list_spec \
15067 STRIP \
15068 RANLIB \
15069 CC \
15070 CFLAGS \
15071 compiler \
15072 lt_cv_sys_global_symbol_pipe \
15073 lt_cv_sys_global_symbol_to_cdecl \
15074 lt_cv_sys_global_symbol_to_import \
15075 lt_cv_sys_global_symbol_to_c_name_address \
15076 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15077 lt_cv_nm_interface \
15078 nm_file_list_spec \
15079 lt_cv_truncate_bin \
15080 lt_prog_compiler_no_builtin_flag \
15081 lt_prog_compiler_pic \
15082 lt_prog_compiler_wl \
15083 lt_prog_compiler_static \
15084 lt_cv_prog_compiler_c_o \
15085 need_locks \
15086 MANIFEST_TOOL \
15087 DSYMUTIL \
15088 NMEDIT \
15089 LIPO \
15090 OTOOL \
15091 OTOOL64 \
15092 shrext_cmds \
15093 export_dynamic_flag_spec \
15094 whole_archive_flag_spec \
15095 compiler_needs_object \
15096 with_gnu_ld \
15097 allow_undefined_flag \
15098 no_undefined_flag \
15099 hardcode_libdir_flag_spec \
15100 hardcode_libdir_separator \
15101 exclude_expsyms \
15102 include_expsyms \
15103 file_list_spec \
15104 variables_saved_for_relink \
15105 libname_spec \
15106 library_names_spec \
15107 soname_spec \
15108 install_override_mode \
15109 finish_eval \
15110 old_striplib \
15111 striplib; do
15112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15113 *[\\\\\\\`\\"\\\$]*)
15114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15119 esac
15120 done
15122 # Double-quote double-evaled strings.
15123 for var in reload_cmds \
15124 old_postinstall_cmds \
15125 old_postuninstall_cmds \
15126 old_archive_cmds \
15127 extract_expsyms_cmds \
15128 old_archive_from_new_cmds \
15129 old_archive_from_expsyms_cmds \
15130 archive_cmds \
15131 archive_expsym_cmds \
15132 module_cmds \
15133 module_expsym_cmds \
15134 export_symbols_cmds \
15135 prelink_cmds \
15136 postlink_cmds \
15137 postinstall_cmds \
15138 postuninstall_cmds \
15139 finish_cmds \
15140 sys_lib_search_path_spec \
15141 configure_time_dlsearch_path \
15142 configure_time_lt_sys_library_path; do
15143 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15144 *[\\\\\\\`\\"\\\$]*)
15145 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15148 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15150 esac
15151 done
15153 ac_aux_dir='$ac_aux_dir'
15155 # See if we are running on zsh, and set the options that allow our
15156 # commands through without removal of \ escapes INIT.
15157 if test -n "\${ZSH_VERSION+set}"; then
15158 setopt NO_GLOB_SUBST
15162 PACKAGE='$PACKAGE'
15163 VERSION='$VERSION'
15164 RM='$RM'
15165 ofile='$ofile'
15170 _ACEOF
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15174 # Handling of arguments.
15175 for ac_config_target in $ac_config_targets
15177 case $ac_config_target in
15178 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15179 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15180 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
15181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15182 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15183 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15184 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
15185 "kpathsea.pc") CONFIG_FILES="$CONFIG_FILES kpathsea.pc" ;;
15187 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15188 esac
15189 done
15192 # If the user did not use the arguments to specify the items to instantiate,
15193 # then the envvar interface is used. Set only those that are not.
15194 # We use the long form for the default assignment because of an extremely
15195 # bizarre bug on SunOS 4.1.3.
15196 if $ac_need_defaults; then
15197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15202 # Have a temporary directory for convenience. Make it in the build tree
15203 # simply because there is no reason against having it here, and in addition,
15204 # creating and moving files from /tmp can sometimes cause problems.
15205 # Hook for its removal unless debugging.
15206 # Note that there is a small window in which the directory will not be cleaned:
15207 # after its creation but before its name has been assigned to `$tmp'.
15208 $debug ||
15210 tmp= ac_tmp=
15211 trap 'exit_status=$?
15212 : "${ac_tmp:=$tmp}"
15213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15215 trap 'as_fn_exit 1' 1 2 13 15
15217 # Create a (secure) tmp directory for tmp files.
15220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15221 test -d "$tmp"
15222 } ||
15224 tmp=./conf$$-$RANDOM
15225 (umask 077 && mkdir "$tmp")
15226 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15227 ac_tmp=$tmp
15229 # Set up the scripts for CONFIG_FILES section.
15230 # No need to generate them if there are no CONFIG_FILES.
15231 # This happens for instance with `./config.status config.h'.
15232 if test -n "$CONFIG_FILES"; then
15235 ac_cr=`echo X | tr X '\015'`
15236 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15237 # But we know of no other shell where ac_cr would be empty at this
15238 # point, so we can use a bashism as a fallback.
15239 if test "x$ac_cr" = x; then
15240 eval ac_cr=\$\'\\r\'
15242 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15243 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15244 ac_cs_awk_cr='\\r'
15245 else
15246 ac_cs_awk_cr=$ac_cr
15249 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15250 _ACEOF
15254 echo "cat >conf$$subs.awk <<_ACEOF" &&
15255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15256 echo "_ACEOF"
15257 } >conf$$subs.sh ||
15258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15259 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15260 ac_delim='%!_!# '
15261 for ac_last_try in false false false false false :; do
15262 . ./conf$$subs.sh ||
15263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15266 if test $ac_delim_n = $ac_delim_num; then
15267 break
15268 elif $ac_last_try; then
15269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15270 else
15271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15273 done
15274 rm -f conf$$subs.sh
15276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15277 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15278 _ACEOF
15279 sed -n '
15281 s/^/S["/; s/!.*/"]=/
15284 s/^[^!]*!//
15285 :repl
15286 t repl
15287 s/'"$ac_delim"'$//
15288 t delim
15291 s/\(.\{148\}\)..*/\1/
15292 t more1
15293 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15296 b repl
15297 :more1
15298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15301 s/.\{148\}//
15302 t nl
15303 :delim
15305 s/\(.\{148\}\)..*/\1/
15306 t more2
15307 s/["\\]/\\&/g; s/^/"/; s/$/"/
15310 :more2
15311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15314 s/.\{148\}//
15315 t delim
15316 ' <conf$$subs.awk | sed '
15317 /^[^""]/{
15319 s/\n//
15321 ' >>$CONFIG_STATUS || ac_write_fail=1
15322 rm -f conf$$subs.awk
15323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 _ACAWK
15325 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15326 for (key in S) S_is_set[key] = 1
15327 FS = "\a"
15331 line = $ 0
15332 nfields = split(line, field, "@")
15333 substed = 0
15334 len = length(field[1])
15335 for (i = 2; i < nfields; i++) {
15336 key = field[i]
15337 keylen = length(key)
15338 if (S_is_set[key]) {
15339 value = S[key]
15340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15341 len += length(value) + length(field[++i])
15342 substed = 1
15343 } else
15344 len += 1 + keylen
15347 print line
15350 _ACAWK
15351 _ACEOF
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15355 else
15357 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15359 _ACEOF
15361 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15362 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15363 # trailing colons and then remove the whole line if VPATH becomes empty
15364 # (actually we leave an empty line to preserve line numbers).
15365 if test "x$srcdir" = x.; then
15366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15368 s///
15369 s/^/:/
15370 s/[ ]*$/:/
15371 s/:\$(srcdir):/:/g
15372 s/:\${srcdir}:/:/g
15373 s/:@srcdir@:/:/g
15374 s/^:*//
15375 s/:*$//
15377 s/\(=[ ]*\).*/\1/
15379 s/\n//
15380 s/^[^=]*=[ ]*$//
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385 fi # test -n "$CONFIG_FILES"
15387 # Set up the scripts for CONFIG_HEADERS section.
15388 # No need to generate them if there are no CONFIG_HEADERS.
15389 # This happens for instance with `./config.status Makefile'.
15390 if test -n "$CONFIG_HEADERS"; then
15391 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15392 BEGIN {
15393 _ACEOF
15395 # Transform confdefs.h into an awk script `defines.awk', embedded as
15396 # here-document in config.status, that substitutes the proper values into
15397 # config.h.in to produce config.h.
15399 # Create a delimiter string that does not exist in confdefs.h, to ease
15400 # handling of long lines.
15401 ac_delim='%!_!# '
15402 for ac_last_try in false false :; do
15403 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15404 if test -z "$ac_tt"; then
15405 break
15406 elif $ac_last_try; then
15407 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15408 else
15409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15411 done
15413 # For the awk script, D is an array of macro values keyed by name,
15414 # likewise P contains macro parameters if any. Preserve backslash
15415 # newline sequences.
15417 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15418 sed -n '
15419 s/.\{148\}/&'"$ac_delim"'/g
15420 t rset
15421 :rset
15422 s/^[ ]*#[ ]*define[ ][ ]*/ /
15423 t def
15425 :def
15426 s/\\$//
15427 t bsnl
15428 s/["\\]/\\&/g
15429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15430 D["\1"]=" \3"/p
15431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15433 :bsnl
15434 s/["\\]/\\&/g
15435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15436 D["\1"]=" \3\\\\\\n"\\/p
15437 t cont
15438 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15439 t cont
15441 :cont
15443 s/.\{148\}/&'"$ac_delim"'/g
15444 t clear
15445 :clear
15446 s/\\$//
15447 t bsnlc
15448 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15450 :bsnlc
15451 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15452 b cont
15453 ' <confdefs.h | sed '
15454 s/'"$ac_delim"'/"\\\
15455 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15458 for (key in D) D_is_set[key] = 1
15459 FS = "\a"
15461 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15462 line = \$ 0
15463 split(line, arg, " ")
15464 if (arg[1] == "#") {
15465 defundef = arg[2]
15466 mac1 = arg[3]
15467 } else {
15468 defundef = substr(arg[1], 2)
15469 mac1 = arg[2]
15471 split(mac1, mac2, "(") #)
15472 macro = mac2[1]
15473 prefix = substr(line, 1, index(line, defundef) - 1)
15474 if (D_is_set[macro]) {
15475 # Preserve the white space surrounding the "#".
15476 print prefix "define", macro P[macro] D[macro]
15477 next
15478 } else {
15479 # Replace #undef with comments. This is necessary, for example,
15480 # in the case of _POSIX_SOURCE, which is predefined and required
15481 # on some systems where configure will not decide to define it.
15482 if (defundef == "undef") {
15483 print "/*", prefix defundef, macro, "*/"
15484 next
15488 { print }
15489 _ACAWK
15490 _ACEOF
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15493 fi # test -n "$CONFIG_HEADERS"
15496 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15497 shift
15498 for ac_tag
15500 case $ac_tag in
15501 :[FHLC]) ac_mode=$ac_tag; continue;;
15502 esac
15503 case $ac_mode$ac_tag in
15504 :[FHL]*:*);;
15505 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15506 :[FH]-) ac_tag=-:-;;
15507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15508 esac
15509 ac_save_IFS=$IFS
15510 IFS=:
15511 set x $ac_tag
15512 IFS=$ac_save_IFS
15513 shift
15514 ac_file=$1
15515 shift
15517 case $ac_mode in
15518 :L) ac_source=$1;;
15519 :[FH])
15520 ac_file_inputs=
15521 for ac_f
15523 case $ac_f in
15524 -) ac_f="$ac_tmp/stdin";;
15525 *) # Look for the file first in the build tree, then in the source tree
15526 # (if the path is not absolute). The absolute path cannot be DOS-style,
15527 # because $ac_f cannot contain `:'.
15528 test -f "$ac_f" ||
15529 case $ac_f in
15530 [\\/$]*) false;;
15531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15532 esac ||
15533 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15534 esac
15535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15536 as_fn_append ac_file_inputs " '$ac_f'"
15537 done
15539 # Let's still pretend it is `configure' which instantiates (i.e., don't
15540 # use $as_me), people would be surprised to read:
15541 # /* config.h. Generated by config.status. */
15542 configure_input='Generated from '`
15543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15544 `' by configure.'
15545 if test x"$ac_file" != x-; then
15546 configure_input="$ac_file. $configure_input"
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15548 $as_echo "$as_me: creating $ac_file" >&6;}
15550 # Neutralize special characters interpreted by sed in replacement strings.
15551 case $configure_input in #(
15552 *\&* | *\|* | *\\* )
15553 ac_sed_conf_input=`$as_echo "$configure_input" |
15554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15555 *) ac_sed_conf_input=$configure_input;;
15556 esac
15558 case $ac_tag in
15559 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15561 esac
15563 esac
15565 ac_dir=`$as_dirname -- "$ac_file" ||
15566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15567 X"$ac_file" : 'X\(//\)[^/]' \| \
15568 X"$ac_file" : 'X\(//\)$' \| \
15569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15570 $as_echo X"$ac_file" |
15571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15572 s//\1/
15575 /^X\(\/\/\)[^/].*/{
15576 s//\1/
15579 /^X\(\/\/\)$/{
15580 s//\1/
15583 /^X\(\/\).*/{
15584 s//\1/
15587 s/.*/./; q'`
15588 as_dir="$ac_dir"; as_fn_mkdir_p
15589 ac_builddir=.
15591 case "$ac_dir" in
15592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15595 # A ".." for each directory in $ac_dir_suffix.
15596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15597 case $ac_top_builddir_sub in
15598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15600 esac ;;
15601 esac
15602 ac_abs_top_builddir=$ac_pwd
15603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15604 # for backward compatibility:
15605 ac_top_builddir=$ac_top_build_prefix
15607 case $srcdir in
15608 .) # We are building in place.
15609 ac_srcdir=.
15610 ac_top_srcdir=$ac_top_builddir_sub
15611 ac_abs_top_srcdir=$ac_pwd ;;
15612 [\\/]* | ?:[\\/]* ) # Absolute name.
15613 ac_srcdir=$srcdir$ac_dir_suffix;
15614 ac_top_srcdir=$srcdir
15615 ac_abs_top_srcdir=$srcdir ;;
15616 *) # Relative name.
15617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15618 ac_top_srcdir=$ac_top_build_prefix$srcdir
15619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15620 esac
15621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15624 case $ac_mode in
15627 # CONFIG_FILE
15630 case $INSTALL in
15631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15633 esac
15634 ac_MKDIR_P=$MKDIR_P
15635 case $MKDIR_P in
15636 [\\/$]* | ?:[\\/]* ) ;;
15637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15638 esac
15639 _ACEOF
15641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15642 # If the template does not know about datarootdir, expand it.
15643 # FIXME: This hack should be removed a few years after 2.60.
15644 ac_datarootdir_hack=; ac_datarootdir_seen=
15645 ac_sed_dataroot='
15646 /datarootdir/ {
15650 /@datadir@/p
15651 /@docdir@/p
15652 /@infodir@/p
15653 /@localedir@/p
15654 /@mandir@/p'
15655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15656 *datarootdir*) ac_datarootdir_seen=yes;;
15657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15660 _ACEOF
15661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662 ac_datarootdir_hack='
15663 s&@datadir@&$datadir&g
15664 s&@docdir@&$docdir&g
15665 s&@infodir@&$infodir&g
15666 s&@localedir@&$localedir&g
15667 s&@mandir@&$mandir&g
15668 s&\\\${datarootdir}&$datarootdir&g' ;;
15669 esac
15670 _ACEOF
15672 # Neutralize VPATH when `$srcdir' = `.'.
15673 # Shell code in configure.ac might set extrasub.
15674 # FIXME: do we really want to maintain this feature?
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 ac_sed_extra="$ac_vpsub
15677 $extrasub
15678 _ACEOF
15679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15682 s|@configure_input@|$ac_sed_conf_input|;t t
15683 s&@top_builddir@&$ac_top_builddir_sub&;t t
15684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15685 s&@srcdir@&$ac_srcdir&;t t
15686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15687 s&@top_srcdir@&$ac_top_srcdir&;t t
15688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15689 s&@builddir@&$ac_builddir&;t t
15690 s&@abs_builddir@&$ac_abs_builddir&;t t
15691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15692 s&@INSTALL@&$ac_INSTALL&;t t
15693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15694 $ac_datarootdir_hack
15696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15704 which seems to be undefined. Please make sure it is defined" >&5
15705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15706 which seems to be undefined. Please make sure it is defined" >&2;}
15708 rm -f "$ac_tmp/stdin"
15709 case $ac_file in
15710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15712 esac \
15713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15717 # CONFIG_HEADER
15719 if test x"$ac_file" != x-; then
15721 $as_echo "/* $configure_input */" \
15722 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15723 } >"$ac_tmp/config.h" \
15724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15725 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15728 else
15729 rm -f "$ac_file"
15730 mv "$ac_tmp/config.h" "$ac_file" \
15731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15733 else
15734 $as_echo "/* $configure_input */" \
15735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15736 || as_fn_error $? "could not create -" "$LINENO" 5
15738 # Compute "$ac_file"'s index in $config_headers.
15739 _am_arg="$ac_file"
15740 _am_stamp_count=1
15741 for _am_header in $config_headers :; do
15742 case $_am_header in
15743 $_am_arg | $_am_arg:* )
15744 break ;;
15746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15747 esac
15748 done
15749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15751 X"$_am_arg" : 'X\(//\)[^/]' \| \
15752 X"$_am_arg" : 'X\(//\)$' \| \
15753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15754 $as_echo X"$_am_arg" |
15755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15756 s//\1/
15759 /^X\(\/\/\)[^/].*/{
15760 s//\1/
15763 /^X\(\/\/\)$/{
15764 s//\1/
15767 /^X\(\/\).*/{
15768 s//\1/
15771 s/.*/./; q'`/stamp-h$_am_stamp_count
15774 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15775 $as_echo "$as_me: executing $ac_file commands" >&6;}
15777 esac
15780 case $ac_file$ac_mode in
15781 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15782 # Older Autoconf quotes --file arguments for eval, but not when files
15783 # are listed without --file. Let's play safe and only enable the eval
15784 # if we detect the quoting.
15785 case $CONFIG_FILES in
15786 *\'*) eval set x "$CONFIG_FILES" ;;
15787 *) set x $CONFIG_FILES ;;
15788 esac
15789 shift
15790 for mf
15792 # Strip MF so we end up with the name of the file.
15793 mf=`echo "$mf" | sed -e 's/:.*$//'`
15794 # Check whether this is an Automake generated Makefile or not.
15795 # We used to match only the files named 'Makefile.in', but
15796 # some people rename them; so instead we look at the file content.
15797 # Grep'ing the first line is not enough: some people post-process
15798 # each Makefile.in and add a new line on top of each file to say so.
15799 # Grep'ing the whole file is not good either: AIX grep has a line
15800 # limit of 2048, but all sed's we know have understand at least 4000.
15801 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15802 dirpart=`$as_dirname -- "$mf" ||
15803 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15804 X"$mf" : 'X\(//\)[^/]' \| \
15805 X"$mf" : 'X\(//\)$' \| \
15806 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15807 $as_echo X"$mf" |
15808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15809 s//\1/
15812 /^X\(\/\/\)[^/].*/{
15813 s//\1/
15816 /^X\(\/\/\)$/{
15817 s//\1/
15820 /^X\(\/\).*/{
15821 s//\1/
15824 s/.*/./; q'`
15825 else
15826 continue
15828 # Extract the definition of DEPDIR, am__include, and am__quote
15829 # from the Makefile without running 'make'.
15830 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15831 test -z "$DEPDIR" && continue
15832 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15833 test -z "$am__include" && continue
15834 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15835 # Find all dependency output files, they are included files with
15836 # $(DEPDIR) in their names. We invoke sed twice because it is the
15837 # simplest approach to changing $(DEPDIR) to its actual value in the
15838 # expansion.
15839 for file in `sed -n "
15840 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15841 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15842 # Make sure the directory exists.
15843 test -f "$dirpart/$file" && continue
15844 fdir=`$as_dirname -- "$file" ||
15845 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15846 X"$file" : 'X\(//\)[^/]' \| \
15847 X"$file" : 'X\(//\)$' \| \
15848 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15849 $as_echo X"$file" |
15850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15851 s//\1/
15854 /^X\(\/\/\)[^/].*/{
15855 s//\1/
15858 /^X\(\/\/\)$/{
15859 s//\1/
15862 /^X\(\/\).*/{
15863 s//\1/
15866 s/.*/./; q'`
15867 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15868 # echo "creating $dirpart/$file"
15869 echo '# dummy' > "$dirpart/$file"
15870 done
15871 done
15874 "libtool":C)
15876 # See if we are running on zsh, and set the options that allow our
15877 # commands through without removal of \ escapes.
15878 if test -n "${ZSH_VERSION+set}"; then
15879 setopt NO_GLOB_SUBST
15882 cfgfile=${ofile}T
15883 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15884 $RM "$cfgfile"
15886 cat <<_LT_EOF >> "$cfgfile"
15887 #! $SHELL
15888 # Generated automatically by $as_me ($PACKAGE) $VERSION
15889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15892 # Provide generalized library-building support services.
15893 # Written by Gordon Matzigkeit, 1996
15895 # Copyright (C) 2014 Free Software Foundation, Inc.
15896 # This is free software; see the source for copying conditions. There is NO
15897 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15899 # GNU Libtool is free software; you can redistribute it and/or modify
15900 # it under the terms of the GNU General Public License as published by
15901 # the Free Software Foundation; either version 2 of of the License, or
15902 # (at your option) any later version.
15904 # As a special exception to the GNU General Public License, if you
15905 # distribute this file as part of a program or library that is built
15906 # using GNU Libtool, you may include this file under the same
15907 # distribution terms that you use for the rest of that program.
15909 # GNU Libtool is distributed in the hope that it will be useful, but
15910 # WITHOUT ANY WARRANTY; without even the implied warranty of
15911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15912 # GNU General Public License for more details.
15914 # You should have received a copy of the GNU General Public License
15915 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15918 # The names of the tagged configurations supported by this script.
15919 available_tags=''
15921 # Configured defaults for sys_lib_dlsearch_path munging.
15922 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15924 # ### BEGIN LIBTOOL CONFIG
15926 # Which release of libtool.m4 was used?
15927 macro_version=$macro_version
15928 macro_revision=$macro_revision
15930 # Assembler program.
15931 AS=$lt_AS
15933 # DLL creation program.
15934 DLLTOOL=$lt_DLLTOOL
15936 # Object dumper program.
15937 OBJDUMP=$lt_OBJDUMP
15939 # Whether or not to build shared libraries.
15940 build_libtool_libs=$enable_shared
15942 # Whether or not to build static libraries.
15943 build_old_libs=$enable_static
15945 # What type of objects to build.
15946 pic_mode=$pic_mode
15948 # Whether or not to optimize for fast installation.
15949 fast_install=$enable_fast_install
15951 # Shared archive member basename,for filename based shared library versioning on AIX.
15952 shared_archive_member_spec=$shared_archive_member_spec
15954 # Shell to use when invoking shell scripts.
15955 SHELL=$lt_SHELL
15957 # An echo program that protects backslashes.
15958 ECHO=$lt_ECHO
15960 # The PATH separator for the build system.
15961 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15963 # The host system.
15964 host_alias=$host_alias
15965 host=$host
15966 host_os=$host_os
15968 # The build system.
15969 build_alias=$build_alias
15970 build=$build
15971 build_os=$build_os
15973 # A sed program that does not truncate output.
15974 SED=$lt_SED
15976 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15977 Xsed="\$SED -e 1s/^X//"
15979 # A grep program that handles long lines.
15980 GREP=$lt_GREP
15982 # An ERE matcher.
15983 EGREP=$lt_EGREP
15985 # A literal string matcher.
15986 FGREP=$lt_FGREP
15988 # A BSD- or MS-compatible name lister.
15989 NM=$lt_NM
15991 # Whether we need soft or hard links.
15992 LN_S=$lt_LN_S
15994 # What is the maximum length of a command?
15995 max_cmd_len=$max_cmd_len
15997 # Object file suffix (normally "o").
15998 objext=$ac_objext
16000 # Executable file suffix (normally "").
16001 exeext=$exeext
16003 # whether the shell understands "unset".
16004 lt_unset=$lt_unset
16006 # turn spaces into newlines.
16007 SP2NL=$lt_lt_SP2NL
16009 # turn newlines into spaces.
16010 NL2SP=$lt_lt_NL2SP
16012 # convert \$build file names to \$host format.
16013 to_host_file_cmd=$lt_cv_to_host_file_cmd
16015 # convert \$build files to toolchain format.
16016 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16018 # Method to check whether dependent libraries are shared objects.
16019 deplibs_check_method=$lt_deplibs_check_method
16021 # Command to use when deplibs_check_method = "file_magic".
16022 file_magic_cmd=$lt_file_magic_cmd
16024 # How to find potential files when deplibs_check_method = "file_magic".
16025 file_magic_glob=$lt_file_magic_glob
16027 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16028 want_nocaseglob=$lt_want_nocaseglob
16030 # Command to associate shared and link libraries.
16031 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16033 # The archiver.
16034 AR=$lt_AR
16036 # Flags to create an archive.
16037 AR_FLAGS=$lt_AR_FLAGS
16039 # How to feed a file listing to the archiver.
16040 archiver_list_spec=$lt_archiver_list_spec
16042 # A symbol stripping program.
16043 STRIP=$lt_STRIP
16045 # Commands used to install an old-style archive.
16046 RANLIB=$lt_RANLIB
16047 old_postinstall_cmds=$lt_old_postinstall_cmds
16048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16050 # Whether to use a lock for old archive extraction.
16051 lock_old_archive_extraction=$lock_old_archive_extraction
16053 # A C compiler.
16054 LTCC=$lt_CC
16056 # LTCC compiler flags.
16057 LTCFLAGS=$lt_CFLAGS
16059 # Take the output of nm and produce a listing of raw symbols and C names.
16060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16062 # Transform the output of nm in a proper C declaration.
16063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16065 # Transform the output of nm into a list of symbols to manually relocate.
16066 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16068 # Transform the output of nm in a C name address pair.
16069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16071 # Transform the output of nm in a C name address pair when lib prefix is needed.
16072 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16074 # The name lister interface.
16075 nm_interface=$lt_lt_cv_nm_interface
16077 # Specify filename containing input files for \$NM.
16078 nm_file_list_spec=$lt_nm_file_list_spec
16080 # The root where to search for dependent libraries,and where our libraries should be installed.
16081 lt_sysroot=$lt_sysroot
16083 # Command to truncate a binary pipe.
16084 lt_truncate_bin=$lt_lt_cv_truncate_bin
16086 # The name of the directory that contains temporary libtool files.
16087 objdir=$objdir
16089 # Used to examine libraries when file_magic_cmd begins with "file".
16090 MAGIC_CMD=$MAGIC_CMD
16092 # Must we lock files when doing compilation?
16093 need_locks=$lt_need_locks
16095 # Manifest tool.
16096 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16098 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16099 DSYMUTIL=$lt_DSYMUTIL
16101 # Tool to change global to local symbols on Mac OS X.
16102 NMEDIT=$lt_NMEDIT
16104 # Tool to manipulate fat objects and archives on Mac OS X.
16105 LIPO=$lt_LIPO
16107 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16108 OTOOL=$lt_OTOOL
16110 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16111 OTOOL64=$lt_OTOOL64
16113 # Old archive suffix (normally "a").
16114 libext=$libext
16116 # Shared library suffix (normally ".so").
16117 shrext_cmds=$lt_shrext_cmds
16119 # The commands to extract the exported symbol list from a shared archive.
16120 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16122 # Variables whose values should be saved in libtool wrapper scripts and
16123 # restored at link time.
16124 variables_saved_for_relink=$lt_variables_saved_for_relink
16126 # Do we need the "lib" prefix for modules?
16127 need_lib_prefix=$need_lib_prefix
16129 # Do we need a version for libraries?
16130 need_version=$need_version
16132 # Library versioning type.
16133 version_type=$version_type
16135 # Shared library runtime path variable.
16136 runpath_var=$runpath_var
16138 # Shared library path variable.
16139 shlibpath_var=$shlibpath_var
16141 # Is shlibpath searched before the hard-coded library search path?
16142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16144 # Format of library name prefix.
16145 libname_spec=$lt_libname_spec
16147 # List of archive names. First name is the real one, the rest are links.
16148 # The last name is the one that the linker finds with -lNAME
16149 library_names_spec=$lt_library_names_spec
16151 # The coded name of the library, if different from the real name.
16152 soname_spec=$lt_soname_spec
16154 # Permission mode override for installation of shared libraries.
16155 install_override_mode=$lt_install_override_mode
16157 # Command to use after installation of a shared archive.
16158 postinstall_cmds=$lt_postinstall_cmds
16160 # Command to use after uninstallation of a shared archive.
16161 postuninstall_cmds=$lt_postuninstall_cmds
16163 # Commands used to finish a libtool library installation in a directory.
16164 finish_cmds=$lt_finish_cmds
16166 # As "finish_cmds", except a single script fragment to be evaled but
16167 # not shown.
16168 finish_eval=$lt_finish_eval
16170 # Whether we should hardcode library paths into libraries.
16171 hardcode_into_libs=$hardcode_into_libs
16173 # Compile-time system search path for libraries.
16174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16176 # Detected run-time system search path for libraries.
16177 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16179 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16180 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16182 # Whether dlopen is supported.
16183 dlopen_support=$enable_dlopen
16185 # Whether dlopen of programs is supported.
16186 dlopen_self=$enable_dlopen_self
16188 # Whether dlopen of statically linked programs is supported.
16189 dlopen_self_static=$enable_dlopen_self_static
16191 # Commands to strip libraries.
16192 old_striplib=$lt_old_striplib
16193 striplib=$lt_striplib
16196 # The linker used to build libraries.
16197 LD=$lt_LD
16199 # How to create reloadable object files.
16200 reload_flag=$lt_reload_flag
16201 reload_cmds=$lt_reload_cmds
16203 # Commands used to build an old-style archive.
16204 old_archive_cmds=$lt_old_archive_cmds
16206 # A language specific compiler.
16207 CC=$lt_compiler
16209 # Is the compiler the GNU compiler?
16210 with_gcc=$GCC
16212 # Compiler flag to turn off builtin functions.
16213 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16215 # Additional compiler flags for building library objects.
16216 pic_flag=$lt_lt_prog_compiler_pic
16218 # How to pass a linker flag through the compiler.
16219 wl=$lt_lt_prog_compiler_wl
16221 # Compiler flag to prevent dynamic linking.
16222 link_static_flag=$lt_lt_prog_compiler_static
16224 # Does compiler simultaneously support -c and -o options?
16225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16227 # Whether or not to add -lc for building shared libraries.
16228 build_libtool_need_lc=$archive_cmds_need_lc
16230 # Whether or not to disallow shared libs when runtime libs are static.
16231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16233 # Compiler flag to allow reflexive dlopens.
16234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16236 # Compiler flag to generate shared objects directly from archives.
16237 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16239 # Whether the compiler copes with passing no objects directly.
16240 compiler_needs_object=$lt_compiler_needs_object
16242 # Create an old-style archive from a shared archive.
16243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16245 # Create a temporary old-style archive to link instead of a shared archive.
16246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16248 # Commands used to build a shared archive.
16249 archive_cmds=$lt_archive_cmds
16250 archive_expsym_cmds=$lt_archive_expsym_cmds
16252 # Commands used to build a loadable module if different from building
16253 # a shared archive.
16254 module_cmds=$lt_module_cmds
16255 module_expsym_cmds=$lt_module_expsym_cmds
16257 # Whether we are building with GNU ld or not.
16258 with_gnu_ld=$lt_with_gnu_ld
16260 # Flag that allows shared libraries with undefined symbols to be built.
16261 allow_undefined_flag=$lt_allow_undefined_flag
16263 # Flag that enforces no undefined symbols.
16264 no_undefined_flag=$lt_no_undefined_flag
16266 # Flag to hardcode \$libdir into a binary during linking.
16267 # This must work even if \$libdir does not exist
16268 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16270 # Whether we need a single "-rpath" flag with a separated argument.
16271 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16273 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16274 # DIR into the resulting binary.
16275 hardcode_direct=$hardcode_direct
16277 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16278 # DIR into the resulting binary and the resulting library dependency is
16279 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16280 # library is relocated.
16281 hardcode_direct_absolute=$hardcode_direct_absolute
16283 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16284 # into the resulting binary.
16285 hardcode_minus_L=$hardcode_minus_L
16287 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16288 # into the resulting binary.
16289 hardcode_shlibpath_var=$hardcode_shlibpath_var
16291 # Set to "yes" if building a shared library automatically hardcodes DIR
16292 # into the library and all subsequent libraries and executables linked
16293 # against it.
16294 hardcode_automatic=$hardcode_automatic
16296 # Set to yes if linker adds runtime paths of dependent libraries
16297 # to runtime path list.
16298 inherit_rpath=$inherit_rpath
16300 # Whether libtool must link a program against all its dependency libraries.
16301 link_all_deplibs=$link_all_deplibs
16303 # Set to "yes" if exported symbols are required.
16304 always_export_symbols=$always_export_symbols
16306 # The commands to list exported symbols.
16307 export_symbols_cmds=$lt_export_symbols_cmds
16309 # Symbols that should not be listed in the preloaded symbols.
16310 exclude_expsyms=$lt_exclude_expsyms
16312 # Symbols that must always be exported.
16313 include_expsyms=$lt_include_expsyms
16315 # Commands necessary for linking programs (against libraries) with templates.
16316 prelink_cmds=$lt_prelink_cmds
16318 # Commands necessary for finishing linking programs.
16319 postlink_cmds=$lt_postlink_cmds
16321 # Specify filename containing input files.
16322 file_list_spec=$lt_file_list_spec
16324 # How to hardcode a shared library path into an executable.
16325 hardcode_action=$hardcode_action
16327 # ### END LIBTOOL CONFIG
16329 _LT_EOF
16331 cat <<'_LT_EOF' >> "$cfgfile"
16333 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16335 # func_munge_path_list VARIABLE PATH
16336 # -----------------------------------
16337 # VARIABLE is name of variable containing _space_ separated list of
16338 # directories to be munged by the contents of PATH, which is string
16339 # having a format:
16340 # "DIR[:DIR]:"
16341 # string "DIR[ DIR]" will be prepended to VARIABLE
16342 # ":DIR[:DIR]"
16343 # string "DIR[ DIR]" will be appended to VARIABLE
16344 # "DIRP[:DIRP]::[DIRA:]DIRA"
16345 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16346 # "DIRA[ DIRA]" will be appended to VARIABLE
16347 # "DIR[:DIR]"
16348 # VARIABLE will be replaced by "DIR[ DIR]"
16349 func_munge_path_list ()
16351 case x$2 in
16355 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16357 x:*)
16358 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16360 *::*)
16361 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16362 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16365 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16367 esac
16371 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16372 func_cc_basename ()
16374 for cc_temp in $*""; do
16375 case $cc_temp in
16376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16378 \-*) ;;
16379 *) break;;
16380 esac
16381 done
16382 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16386 # ### END FUNCTIONS SHARED WITH CONFIGURE
16388 _LT_EOF
16390 case $host_os in
16391 aix3*)
16392 cat <<\_LT_EOF >> "$cfgfile"
16393 # AIX sometimes has problems with the GCC collect2 program. For some
16394 # reason, if we set the COLLECT_NAMES environment variable, the problems
16395 # vanish in a puff of smoke.
16396 if test set != "${COLLECT_NAMES+set}"; then
16397 COLLECT_NAMES=
16398 export COLLECT_NAMES
16400 _LT_EOF
16402 esac
16405 ltmain=$ac_aux_dir/ltmain.sh
16408 # We use sed instead of cat because bash on DJGPP gets confused if
16409 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16410 # text mode, it properly converts lines to CR/LF. This bash problem
16411 # is reportedly fixed, but why not run on old versions too?
16412 sed '$q' "$ltmain" >> "$cfgfile" \
16413 || (rm -f "$cfgfile"; exit 1)
16415 mv -f "$cfgfile" "$ofile" ||
16416 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16417 chmod +x "$ofile"
16420 "c-auto.h":H) sed -e 's/^#define PACKAGE/#define KPSE_PACKAGE/' \
16421 -e 's/^#define VERSION/#define KPSE_VERSION/' c-auto.h >c-auto.tmp && mv -f c-auto.tmp c-auto.h ;;
16423 esac
16424 done # for ac_tag
16427 as_fn_exit 0
16428 _ACEOF
16429 ac_clean_files=$ac_clean_files_save
16431 test $ac_write_fail = 0 ||
16432 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16435 # configure is writing to config.log, and then calls config.status.
16436 # config.status does its own redirection, appending to config.log.
16437 # Unfortunately, on DOS this fails, as config.log is still kept open
16438 # by configure, so config.status won't be able to write to it; its
16439 # output is simply discarded. So we exec the FD to /dev/null,
16440 # effectively closing config.log, so it can be properly (re)opened and
16441 # appended to by config.status. When coming back to configure, we
16442 # need to make the FD available again.
16443 if test "$no_create" != yes; then
16444 ac_cs_success=:
16445 ac_config_status_args=
16446 test "$silent" = yes &&
16447 ac_config_status_args="$ac_config_status_args --quiet"
16448 exec 5>/dev/null
16449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16450 exec 5>>config.log
16451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16452 # would make configure fail if this is the last instruction.
16453 $ac_cs_success || as_fn_exit 1
16455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16457 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}