fix getsup (HH)
[luatex.git] / source / configure
blob587a6fd1265c817f7c092953b26fa83d69a76504
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TeX Live 2016-05-23.
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='TeX Live'
592 PACKAGE_TARNAME='tex-live'
593 PACKAGE_VERSION='2016-05-23'
594 PACKAGE_STRING='TeX Live 2016-05-23'
595 PACKAGE_BUGREPORT='tex-k@tug.org'
596 PACKAGE_URL=''
598 ac_unique_file="m4/kpse-pkgs.m4"
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 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 cross_FALSE
641 cross_TRUE
642 ICU_CONFIG
643 FT2_CONFIG
644 PKG_CONFIG
645 CONF_SUBDIRS
646 MAKE_SUBDIRS
647 subdirs
648 CXXCPP
649 WARNING_CXXFLAGS
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
656 X_EXTRA_LIBS
657 X_LIBS
658 X_PRE_LIBS
659 X_CFLAGS
660 XMKMF
662 LT_SYS_LIBRARY_PATH
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 ac_ct_AR
672 LN_S
674 ac_ct_DUMPBIN
675 DUMPBIN
677 FGREP
678 EGREP
679 GREP
681 LIBTOOL
682 OBJDUMP
683 DLLTOOL
685 WARNING_CFLAGS
686 MAINT
687 MAINTAINER_MODE_FALSE
688 MAINTAINER_MODE_TRUE
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__quote
701 am__include
702 DEPDIR
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 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_missing
783 enable_all_pkgs
784 enable_native_texlive_build
785 enable_multiplatform
786 enable_cxx_runtime_hack
787 enable_libtool_hack
788 enable_web2c
789 with_banner_add
790 with_editor
791 enable_auto_core
792 enable_dump_share
793 enable_ipc
794 enable_tex
795 enable_tex_synctex
796 enable_etex
797 enable_etex_synctex
798 enable_ptex
799 enable_ptex_synctex
800 enable_eptex
801 enable_eptex_synctex
802 enable_uptex
803 enable_uptex_synctex
804 enable_euptex
805 enable_euptex_synctex
806 enable_aleph
807 enable_pdftex
808 enable_pdftex_synctex
809 enable_luatex
810 enable_luajittex
811 enable_mp
812 enable_pmp
813 enable_upmp
814 enable_xetex
815 enable_xetex_synctex
816 enable_mf
817 enable_mf_nowin
818 enable_mflua
819 enable_mflua_nowin
820 enable_mfluajit
821 enable_mfluajit_nowin
822 with_mf_x_toolkit
823 enable_epsfwin
824 enable_hp2627win
825 enable_mftalkwin
826 enable_nextwin
827 enable_regiswin
828 enable_suntoolswin
829 enable_tektronixwin
830 enable_unitermwin
831 enable_web_progs
832 enable_synctex
833 enable_texlive
834 enable_linked_scripts
835 with_system_zziplib
836 with_system_poppler
837 with_system_mpfr
838 with_mpfr_includes
839 with_mpfr_libdir
840 with_system_gmp
841 with_gmp_includes
842 with_gmp_libdir
843 with_system_cairo
844 with_system_pixman
845 with_system_libpng
846 with_system_zlib
847 with_zlib_includes
848 with_zlib_libdir
849 with_system_kpathsea
850 enable_mktexmf_default
851 enable_mktexpk_default
852 enable_mktextfm_default
853 enable_mkocp_default
854 enable_mkofm_default
855 enable_mktexfmt_default
856 enable_mktextex_default
857 enable_dependency_tracking
858 enable_silent_rules
859 enable_maintainer_mode
860 enable_compiler_warnings
861 enable_shared
862 enable_static
863 with_pic
864 enable_fast_install
865 with_aix_soname
866 with_gnu_ld
867 with_sysroot
868 enable_libtool_lock
869 enable_largefile
870 with_x
871 with_ln_s
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 LT_SYS_LIBRARY_PATH
883 XMKMF
885 CXXFLAGS
887 CXXCPP'
888 ac_subdirs_all='texk/kpathsea
889 auxdir/auxsub libs utils texk'
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
939 ac_prev=
940 ac_dashdash=
941 for ac_option
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
960 ac_dashdash=yes ;;
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
979 --config-cache | -C)
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296 esac
1297 done
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1381 /^X\(\/\/\)$/{
1382 s//\1/
1385 /^X\(\/\).*/{
1386 s//\1/
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1394 else
1395 ac_srcdir_defaulted=no
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures TeX Live 2016-05-23 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking ...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/tex-live]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1484 cat <<\_ACEOF
1486 Program names:
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491 X features:
1492 --x-includes=DIR X include files are in DIR
1493 --x-libraries=DIR X library files are in DIR
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of TeX Live 2016-05-23:";;
1504 esac
1505 cat <<\_ACEOF
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --disable-missing terminate if a requested program or feature must be
1512 disabled, e.g., due to missing libraries
1513 --disable-all-pkgs do not build packages unless explicitly enabled
1514 --disable-native-texlive-build
1515 do not build for the TeX Live binary distribution
1516 --enable-multiplatform put executables into bin/PLATFORM and libraries into
1517 lib/PLATFORM
1518 --enable-cxx-runtime-hack link C++ runtime statically
1519 --enable-libtool-hack ignore libtool dependency_libs
1520 --disable-web2c do not build the web2c (TeX & Co.) package
1521 --enable-auto-core cause TeX&MF to dump core, given a certain
1522 filename
1523 --disable-dump-share make fmt/base files architecture-dependent
1524 --disable-ipc disable TeX's --ipc option, i.e., pipe to a
1525 program
1526 --disable-tex do not compile and install TeX
1527 --enable-tex-synctex build TeX with SyncTeX support
1528 --enable-etex compile and install e-TeX
1529 --disable-etex-synctex build e-TeX without SyncTeX support
1530 --disable-ptex do not compile and install pTeX
1531 --disable-ptex-synctex build pTeX without SyncTeX support
1532 --disable-eptex do not compile and install e-pTeX
1533 --disable-eptex-synctex build e-pTeX without SyncTeX support
1534 --disable-uptex do not compile and install upTeX
1535 --disable-uptex-synctex build upTeX without SyncTeX support
1536 --disable-euptex do not compile and install e-upTeX
1537 --disable-euptex-synctex build e-upTeX without SyncTeX support
1538 --disable-aleph do not compile and install Aleph
1539 --disable-pdftex do not compile and install pdfTeX
1540 --disable-pdftex-synctex build pdfTeX without SyncTeX support
1541 --disable-luatex do not compile and install LuaTeX
1542 --disable-luajittex do not compile and install LuaJITTeX
1543 --disable-mp do not compile and install MetaPost
1544 --disable-pmp do not compile and install pMetaPost
1545 --disable-upmp do not compile and install upMetaPost
1546 --disable-xetex do not compile and install XeTeX
1547 --disable-xetex-synctex build XeTeX without SyncTeX support
1548 --disable-mf do not compile and install METAFONT
1549 --disable-mf-nowin do not build a separate non-window-capable
1550 METAFONT
1551 --disable-mflua do not compile and install MFLua
1552 --enable-mflua-nowin build a separate non-window-capable MFLua
1553 --disable-mfluajit do not compile and install MFLuaJIT
1554 --enable-mfluajit-nowin build a separate non-window-capable MFLuaJIT
1555 --enable-epsfwin include EPSF pseudo window support
1556 --enable-hp2627win include HP 2627 window support
1557 --enable-mftalkwin include mftalk (generic server) window support
1558 --enable-nextwin include NeXT window support
1559 --enable-regiswin include Regis window support
1560 --enable-suntoolswin include old Suntools (not X) window support
1561 --enable-tektronixwin include Tektronix window support
1562 --enable-unitermwin include Uniterm window support
1563 --disable-web-progs do not build WEB programs bibtex ... weave
1564 --disable-synctex do not build the SyncTeX library and tool
1565 --disable-texlive do not build the texlive (TeX Live scripts) package
1566 --disable-linked-scripts do not install the linked scripts
1567 --disable-mktexmf-default do not run mktexmf if MF source missing
1568 --disable-mktexpk-default do not run mktexpk if PK font missing
1569 --disable-mktextfm-default do not run mktextfm if TFM file missing
1570 --disable-mkocp-default do not run mkocp if OCP file missing
1571 --disable-mkofm-default do not run mkofm if OFM file missing
1572 --disable-mktexfmt-default do not run mktexfmt if format file missing
1573 --enable-mktextex-default run mktextex if TeX source missing
1574 --enable-dependency-tracking
1575 do not reject slow dependency extractors
1576 --disable-dependency-tracking
1577 speeds up one-time build
1578 --enable-silent-rules less verbose build output (undo: "make V=1")
1579 --disable-silent-rules verbose build output (undo: "make V=0")
1580 --enable-maintainer-mode
1581 enable make rules and dependencies not useful (and
1582 sometimes confusing) to the casual installer
1583 --enable-compiler-warnings=[no|min|yes|max|all]
1584 Turn on compiler warnings [default: yes if
1585 maintainer-mode, min otherwise]
1586 --enable-shared[=PKGS] build shared libraries [default=yes]
1587 --enable-static[=PKGS] build static libraries [default=yes]
1588 --enable-fast-install[=PKGS]
1589 optimize for fast installation [default=yes]
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1591 --disable-largefile omit support for large files
1593 Optional Packages:
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-banner-add=STR add STR to version string appended to banner lines
1597 --with-editor=CMD invoke CMD from the `e' option [vi +%d '%s'] or
1598 [texworks --position=%d "%s"]
1599 --with-mf-x-toolkit use X toolkit for METAFONT
1600 --with-system-zziplib use installed zziplib headers and library (requires
1601 pkg-config)
1602 --with-system-poppler use installed poppler headers and library (requires
1603 pkg-config)
1604 --with-system-mpfr use installed mpfr headers and library
1605 --with-mpfr-includes=DIR
1606 mpfr headers installed in DIR
1607 --with-mpfr-libdir=DIR mpfr library installed in DIR
1608 --with-system-gmp use installed gmp headers and library
1609 --with-gmp-includes=DIR gmp headers installed in DIR
1610 --with-gmp-libdir=DIR gmp library installed in DIR
1611 --with-system-cairo use installed cairo headers and library (requires
1612 pkg-config)
1613 --with-system-pixman use installed pixman headers and library (requires
1614 pkg-config)
1615 --with-system-libpng use installed libpng headers and library (requires
1616 pkg-config)
1617 --with-system-zlib use installed zlib headers and library
1618 --with-zlib-includes=DIR
1619 zlib headers installed in DIR
1620 --with-zlib-libdir=DIR zlib library installed in DIR
1621 --with-system-kpathsea use installed kpathsea headers and library (requires
1622 pkg-config)
1623 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1624 both]
1625 --with-aix-soname=aix|svr4|both
1626 shared library versioning (aka "SONAME") variant to
1627 provide on AIX, [default=aix].
1628 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1629 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1630 compiler's sysroot if not specified).
1631 --with-x use the X Window System
1632 --without-ln-s do build even if `ln -s' does not work
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 LT_SYS_LIBRARY_PATH
1643 User-defined run-time library search path.
1644 CPP C preprocessor
1645 XMKMF Path to xmkmf, Makefile generator for X Window System
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
1648 CXXCPP C++ preprocessor
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1653 Report bugs to <tex-k@tug.org>.
1654 _ACEOF
1655 ac_status=$?
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663 continue
1664 ac_builddir=.
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1682 case $srcdir in
1683 .) # We are building in place.
1684 ac_srcdir=.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1691 *) # Relative name.
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1706 else
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1710 done
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715 cat <<\_ACEOF
1716 TeX Live configure 2016-05-23
1717 generated by GNU Autoconf 2.69
1719 Copyright (C) 2012 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1722 _ACEOF
1723 exit
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_compile
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_link
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 } # ac_fn_c_check_header_compile
1845 # ac_fn_c_try_cpp LINENO
1846 # ----------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_cpp ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_cpp conftest.$ac_ext"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } > conftest.i && {
1867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=1
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_cpp
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_try_run
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1939 #define $2 innocuous_$2
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char $2 (); below.
1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944 <limits.h> exists even on freestanding compilers. */
1946 #ifdef __STDC__
1947 # include <limits.h>
1948 #else
1949 # include <assert.h>
1950 #endif
1952 #undef $2
1954 /* Override any GCC internal prototype to avoid an error.
1955 Use char because int might match the return type of a GCC
1956 builtin and then its argument prototype would still apply. */
1957 #ifdef __cplusplus
1958 extern "C"
1959 #endif
1960 char $2 ();
1961 /* The GNU C library defines this for functions which it implements
1962 to always fail with ENOSYS. Some functions are actually named
1963 something starting with __ and the normal name is an alias. */
1964 #if defined __stub_$2 || defined __stub___$2
1965 choke me
1966 #endif
1969 main ()
1971 return $2 ();
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_link "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f core conftest.err conftest.$ac_objext \
1982 conftest$ac_exeext conftest.$ac_ext
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_func
1991 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1992 # -------------------------------------------------------
1993 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1994 # the include files in INCLUDES and setting the cache variable VAR
1995 # accordingly.
1996 ac_fn_c_check_header_mongrel ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if eval \${$3+:} false; then :
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 else
2009 # Is the header compilable?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2011 $as_echo_n "checking $2 usability... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_header_compiler=yes
2019 else
2020 ac_header_compiler=no
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2024 $as_echo "$ac_header_compiler" >&6; }
2026 # Is the header present?
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2028 $as_echo_n "checking $2 presence... " >&6; }
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_cpp "$LINENO"; then :
2034 ac_header_preproc=yes
2035 else
2036 ac_header_preproc=no
2038 rm -f conftest.err conftest.i conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2040 $as_echo "$ac_header_preproc" >&6; }
2042 # So? What about this header?
2043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2044 yes:no: )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2046 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 no:yes:* )
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2052 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2054 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2056 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2058 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ( $as_echo "## ---------------------------- ##
2062 ## Report this to tex-k@tug.org ##
2063 ## ---------------------------- ##"
2064 ) | sed "s/^/$as_me: WARNING: /" >&2
2066 esac
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \${$3+:} false; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 eval "$3=\$ac_header_compiler"
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 } # ac_fn_c_check_header_mongrel
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 eval "$3=no"
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 main ()
2101 if (sizeof ($2))
2102 return 0;
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 if (sizeof (($2)))
2115 return 0;
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2122 else
2123 eval "$3=yes"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_type
2136 # ac_fn_c_find_intX_t LINENO BITS VAR
2137 # -----------------------------------
2138 # Finds a signed integer type with width BITS, setting cache variable VAR
2139 # accordingly.
2140 ac_fn_c_find_intX_t ()
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 int$2_t" >&5
2144 $as_echo_n "checking for int$2_t... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 eval "$3=no"
2149 # Order is important - never check a type that is potentially smaller
2150 # than half of the expected target width.
2151 for ac_type in int$2_t 'int' 'long int' \
2152 'long long int' 'short int' 'signed char'; do
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $ac_includes_default
2156 enum { N = $2 / 2 - 1 };
2158 main ()
2160 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2161 test_array [0] = 0;
2162 return test_array [0];
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2171 $ac_includes_default
2172 enum { N = $2 / 2 - 1 };
2174 main ()
2176 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2177 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2178 test_array [0] = 0;
2179 return test_array [0];
2182 return 0;
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2187 else
2188 case $ac_type in #(
2189 int$2_t) :
2190 eval "$3=yes" ;; #(
2191 *) :
2192 eval "$3=\$ac_type" ;;
2193 esac
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 if eval test \"x\$"$3"\" = x"no"; then :
2200 else
2201 break
2203 done
2205 eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_find_intX_t
2212 # ac_fn_c_find_uintX_t LINENO BITS VAR
2213 # ------------------------------------
2214 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2215 # accordingly.
2216 ac_fn_c_find_uintX_t ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2220 $as_echo_n "checking for uint$2_t... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 eval "$3=no"
2225 # Order is important - never check a type that is potentially smaller
2226 # than half of the expected target width.
2227 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2228 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $ac_includes_default
2233 main ()
2235 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2236 test_array [0] = 0;
2237 return test_array [0];
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 case $ac_type in #(
2245 uint$2_t) :
2246 eval "$3=yes" ;; #(
2247 *) :
2248 eval "$3=\$ac_type" ;;
2249 esac
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 if eval test \"x\$"$3"\" = x"no"; then :
2254 else
2255 break
2257 done
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 } # ac_fn_c_find_uintX_t
2266 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2267 # ---------------------------------------------
2268 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2269 # accordingly.
2270 ac_fn_c_check_decl ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 as_decl_name=`echo $2|sed 's/ *(.*//'`
2274 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2276 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2277 if eval \${$3+:} false; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 #ifndef $as_decl_name
2287 #ifdef __cplusplus
2288 (void) $as_decl_use;
2289 #else
2290 (void) $as_decl_name;
2291 #endif
2292 #endif
2295 return 0;
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 eval "$3=yes"
2300 else
2301 eval "$3=no"
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310 } # ac_fn_c_check_decl
2312 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2313 # ----------------------------------------------------
2314 # Tries to find if the field MEMBER exists in type AGGR, after including
2315 # INCLUDES, setting cache variable VAR accordingly.
2316 ac_fn_c_check_member ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2320 $as_echo_n "checking for $2.$3... " >&6; }
2321 if eval \${$4+:} false; then :
2322 $as_echo_n "(cached) " >&6
2323 else
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2328 main ()
2330 static $2 ac_aggr;
2331 if (ac_aggr.$3)
2332 return 0;
2334 return 0;
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338 eval "$4=yes"
2339 else
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2344 main ()
2346 static $2 ac_aggr;
2347 if (sizeof ac_aggr.$3)
2348 return 0;
2350 return 0;
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$4=yes"
2355 else
2356 eval "$4=no"
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 eval ac_res=\$$4
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367 } # ac_fn_c_check_member
2369 # ac_fn_cxx_try_compile LINENO
2370 # ----------------------------
2371 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_cxx_try_compile ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext
2376 if { { ac_try="$ac_compile"
2377 case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_compile") 2>conftest.err
2384 ac_status=$?
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_cxx_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest.$ac_objext; then :
2395 ac_retval=0
2396 else
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 ac_retval=1
2402 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403 as_fn_set_status $ac_retval
2405 } # ac_fn_cxx_try_compile
2407 # ac_fn_cxx_try_cpp LINENO
2408 # ------------------------
2409 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2410 ac_fn_cxx_try_cpp ()
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if { { ac_try="$ac_cpp conftest.$ac_ext"
2414 case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } > conftest.i && {
2429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2430 test ! -s conftest.err
2431 }; then :
2432 ac_retval=0
2433 else
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 ac_retval=1
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_cxx_try_cpp
2444 # ac_fn_cxx_try_link LINENO
2445 # -------------------------
2446 # Try to link conftest.$ac_ext, and return whether this succeeded.
2447 ac_fn_cxx_try_link ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2452 case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 test -x conftest$ac_exeext
2472 }; then :
2473 ac_retval=0
2474 else
2475 $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2478 ac_retval=1
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 as_fn_set_status $ac_retval
2488 } # ac_fn_cxx_try_link
2489 cat >config.log <<_ACEOF
2490 This file contains any messages produced by compilers while
2491 running configure, to aid debugging if configure makes a mistake.
2493 It was created by TeX Live $as_me 2016-05-23, which was
2494 generated by GNU Autoconf 2.69. Invocation command line was
2496 $ $0 $@
2498 _ACEOF
2499 exec 5>>config.log
2501 cat <<_ASUNAME
2502 ## --------- ##
2503 ## Platform. ##
2504 ## --------- ##
2506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2523 _ASUNAME
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 $as_echo "PATH: $as_dir"
2531 done
2532 IFS=$as_save_IFS
2534 } >&5
2536 cat >&5 <<_ACEOF
2539 ## ----------- ##
2540 ## Core tests. ##
2541 ## ----------- ##
2543 _ACEOF
2546 # Keep a trace of the command line.
2547 # Strip out --no-create and --no-recursion so they do not pile up.
2548 # Strip out --silent because we don't want to record it for future runs.
2549 # Also quote any args containing shell meta-characters.
2550 # Make two passes to allow for proper duplicate-argument suppression.
2551 ac_configure_args=
2552 ac_configure_args0=
2553 ac_configure_args1=
2554 ac_must_keep_next=false
2555 for ac_pass in 1 2
2557 for ac_arg
2559 case $ac_arg in
2560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2562 | -silent | --silent | --silen | --sile | --sil)
2563 continue ;;
2564 *\'*)
2565 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 esac
2567 case $ac_pass in
2568 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2570 as_fn_append ac_configure_args1 " '$ac_arg'"
2571 if test $ac_must_keep_next = true; then
2572 ac_must_keep_next=false # Got value, back to normal.
2573 else
2574 case $ac_arg in
2575 *=* | --config-cache | -C | -disable-* | --disable-* \
2576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2578 | -with-* | --with-* | -without-* | --without-* | --x)
2579 case "$ac_configure_args0 " in
2580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2581 esac
2583 -* ) ac_must_keep_next=true ;;
2584 esac
2586 as_fn_append ac_configure_args " '$ac_arg'"
2588 esac
2589 done
2590 done
2591 { ac_configure_args0=; unset ac_configure_args0;}
2592 { ac_configure_args1=; unset ac_configure_args1;}
2594 # When interrupted or exit'd, cleanup temporary files, and complete
2595 # config.log. We remove comments because anyway the quotes in there
2596 # would cause problems or look ugly.
2597 # WARNING: Use '\'' to represent an apostrophe within the trap.
2598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2599 trap 'exit_status=$?
2600 # Save into config.log some information that might help in debugging.
2602 echo
2604 $as_echo "## ---------------- ##
2605 ## Cache variables. ##
2606 ## ---------------- ##"
2607 echo
2608 # The following way of writing the cache mishandles newlines in values,
2610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2611 eval ac_val=\$$ac_var
2612 case $ac_val in #(
2613 *${as_nl}*)
2614 case $ac_var in #(
2615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2617 esac
2618 case $ac_var in #(
2619 _ | IFS | as_nl) ;; #(
2620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2621 *) { eval $ac_var=; unset $ac_var;} ;;
2622 esac ;;
2623 esac
2624 done
2625 (set) 2>&1 |
2626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2627 *${as_nl}ac_space=\ *)
2628 sed -n \
2629 "s/'\''/'\''\\\\'\'''\''/g;
2630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2631 ;; #(
2633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2635 esac |
2636 sort
2638 echo
2640 $as_echo "## ----------------- ##
2641 ## Output variables. ##
2642 ## ----------------- ##"
2643 echo
2644 for ac_var in $ac_subst_vars
2646 eval ac_val=\$$ac_var
2647 case $ac_val in
2648 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2649 esac
2650 $as_echo "$ac_var='\''$ac_val'\''"
2651 done | sort
2652 echo
2654 if test -n "$ac_subst_files"; then
2655 $as_echo "## ------------------- ##
2656 ## File substitutions. ##
2657 ## ------------------- ##"
2658 echo
2659 for ac_var in $ac_subst_files
2661 eval ac_val=\$$ac_var
2662 case $ac_val in
2663 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2664 esac
2665 $as_echo "$ac_var='\''$ac_val'\''"
2666 done | sort
2667 echo
2670 if test -s confdefs.h; then
2671 $as_echo "## ----------- ##
2672 ## confdefs.h. ##
2673 ## ----------- ##"
2674 echo
2675 cat confdefs.h
2676 echo
2678 test "$ac_signal" != 0 &&
2679 $as_echo "$as_me: caught signal $ac_signal"
2680 $as_echo "$as_me: exit $exit_status"
2681 } >&5
2682 rm -f core *.core core.conftest.* &&
2683 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2684 exit $exit_status
2686 for ac_signal in 1 2 13 15; do
2687 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2688 done
2689 ac_signal=0
2691 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2692 rm -f -r conftest* confdefs.h
2694 $as_echo "/* confdefs.h */" > confdefs.h
2696 # Predefined preprocessor variables.
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_NAME "$PACKAGE_NAME"
2700 _ACEOF
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2704 _ACEOF
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2708 _ACEOF
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_STRING "$PACKAGE_STRING"
2712 _ACEOF
2714 cat >>confdefs.h <<_ACEOF
2715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2716 _ACEOF
2718 cat >>confdefs.h <<_ACEOF
2719 #define PACKAGE_URL "$PACKAGE_URL"
2720 _ACEOF
2723 # Let the site file select an alternate cache file if it wants to.
2724 # Prefer an explicitly selected file to automatically selected ones.
2725 ac_site_file1=NONE
2726 ac_site_file2=NONE
2727 if test -n "$CONFIG_SITE"; then
2728 # We do not want a PATH search for config.site.
2729 case $CONFIG_SITE in #((
2730 -*) ac_site_file1=./$CONFIG_SITE;;
2731 */*) ac_site_file1=$CONFIG_SITE;;
2732 *) ac_site_file1=./$CONFIG_SITE;;
2733 esac
2734 elif test "x$prefix" != xNONE; then
2735 ac_site_file1=$prefix/share/config.site
2736 ac_site_file2=$prefix/etc/config.site
2737 else
2738 ac_site_file1=$ac_default_prefix/share/config.site
2739 ac_site_file2=$ac_default_prefix/etc/config.site
2741 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2743 test "x$ac_site_file" = xNONE && continue
2744 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2746 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2747 sed 's/^/| /' "$ac_site_file" >&5
2748 . "$ac_site_file" \
2749 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 as_fn_error $? "failed to load site script $ac_site_file
2752 See \`config.log' for more details" "$LINENO" 5; }
2754 done
2756 if test -r "$cache_file"; then
2757 # Some versions of bash will fail to source /dev/null (special files
2758 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2759 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2761 $as_echo "$as_me: loading cache $cache_file" >&6;}
2762 case $cache_file in
2763 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2764 *) . "./$cache_file";;
2765 esac
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2769 $as_echo "$as_me: creating cache $cache_file" >&6;}
2770 >$cache_file
2773 # Check that the precious variables saved in the cache have kept the same
2774 # value.
2775 ac_cache_corrupted=false
2776 for ac_var in $ac_precious_vars; do
2777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2778 eval ac_new_set=\$ac_env_${ac_var}_set
2779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2780 eval ac_new_val=\$ac_env_${ac_var}_value
2781 case $ac_old_set,$ac_new_set in
2782 set,)
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2784 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2785 ac_cache_corrupted=: ;;
2786 ,set)
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2788 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2789 ac_cache_corrupted=: ;;
2790 ,);;
2792 if test "x$ac_old_val" != "x$ac_new_val"; then
2793 # differences in whitespace do not lead to failure.
2794 ac_old_val_w=`echo x $ac_old_val`
2795 ac_new_val_w=`echo x $ac_new_val`
2796 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2798 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2799 ac_cache_corrupted=:
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2802 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2803 eval $ac_var=\$ac_old_val
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2806 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2808 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2809 fi;;
2810 esac
2811 # Pass precious variables to config.status.
2812 if test "$ac_new_set" = set; then
2813 case $ac_new_val in
2814 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2815 *) ac_arg=$ac_var=$ac_new_val ;;
2816 esac
2817 case " $ac_configure_args " in
2818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2819 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2820 esac
2822 done
2823 if $ac_cache_corrupted; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2827 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2828 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2830 ## -------------------- ##
2831 ## Main body of script. ##
2832 ## -------------------- ##
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843 ac_aux_dir=
2844 for ac_dir in build-aux "$srcdir"/build-aux; do
2845 if test -f "$ac_dir/install-sh"; then
2846 ac_aux_dir=$ac_dir
2847 ac_install_sh="$ac_aux_dir/install-sh -c"
2848 break
2849 elif test -f "$ac_dir/install.sh"; then
2850 ac_aux_dir=$ac_dir
2851 ac_install_sh="$ac_aux_dir/install.sh -c"
2852 break
2853 elif test -f "$ac_dir/shtool"; then
2854 ac_aux_dir=$ac_dir
2855 ac_install_sh="$ac_aux_dir/shtool install -c"
2856 break
2858 done
2859 if test -z "$ac_aux_dir"; then
2860 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2863 # These three variables are undocumented and unsupported,
2864 # and are intended to be withdrawn in a future Autoconf release.
2865 # They can cause serious problems if a builder's source tree is in a directory
2866 # whose full name contains unusual characters.
2867 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2868 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2869 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2874 if test "x$srcdir" = x. && test "x$enable_build_in_source_tree" != xyes; then
2875 rm -rf config.log
2876 as_fn_error $? "Configuring and building TeX Live in the source tree
2877 is strongly discouraged. If you really want to do that, you must
2878 specify the configure option \`--enable-build-in-source-tree', but
2879 then do not ask for help -- you have been warned." "$LINENO" 5
2882 # Make sure we can run config.sub.
2883 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2884 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2887 $as_echo_n "checking build system type... " >&6; }
2888 if ${ac_cv_build+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 ac_build_alias=$build_alias
2892 test "x$ac_build_alias" = x &&
2893 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2894 test "x$ac_build_alias" = x &&
2895 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2901 $as_echo "$ac_cv_build" >&6; }
2902 case $ac_cv_build in
2903 *-*-*) ;;
2904 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2905 esac
2906 build=$ac_cv_build
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_build
2909 shift
2910 build_cpu=$1
2911 build_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 build_os=$*
2916 IFS=$ac_save_IFS
2917 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2921 $as_echo_n "checking host system type... " >&6; }
2922 if ${ac_cv_host+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test "x$host_alias" = x; then
2926 ac_cv_host=$ac_cv_build
2927 else
2928 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2929 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2934 $as_echo "$ac_cv_host" >&6; }
2935 case $ac_cv_host in
2936 *-*-*) ;;
2937 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 esac
2939 host=$ac_cv_host
2940 ac_save_IFS=$IFS; IFS='-'
2941 set x $ac_cv_host
2942 shift
2943 host_cpu=$1
2944 host_vendor=$2
2945 shift; shift
2946 # Remember, the first character of IFS is used to create $*,
2947 # except with old shells:
2948 host_os=$*
2949 IFS=$ac_save_IFS
2950 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2953 # Check whether --enable-missing was given.
2954 if test "${enable_missing+set}" = set; then :
2955 enableval=$enable_missing;
2958 # Expand $ac_aux_dir to an absolute path.
2959 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$ac_cv_prog_CC"; then
3006 ac_ct_CC=$CC
3007 # Extract the first word of "gcc", so it can be a program name with args.
3008 set dummy gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_CC="gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3043 if test "x$ac_ct_CC" = x; then
3044 CC=""
3045 else
3046 case $cross_compiling:$ac_tool_warned in
3047 yes:)
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3051 esac
3052 CC=$ac_ct_CC
3054 else
3055 CC="$ac_cv_prog_CC"
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CC="${ac_tool_prefix}cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 ac_prog_rejected=no
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3120 continue
3122 ac_cv_prog_CC="cc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3130 if test $ac_prog_rejected = yes; then
3131 # We found a bogon in the path, so make sure we never use it.
3132 set dummy $ac_cv_prog_CC
3133 shift
3134 if test $# != 0; then
3135 # We chose a different compiler from the bogus one.
3136 # However, it has the same basename, so the bogon will be chosen
3137 # first if we set CC to just the basename; use the full file name.
3138 shift
3139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$CC" && break
3197 done
3199 if test -z "$CC"; then
3200 ac_ct_CC=$CC
3201 for ac_prog in cl.exe
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_CC="$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$ac_ct_CC" && break
3241 done
3243 if test "x$ac_ct_CC" = x; then
3244 CC=""
3245 else
3246 case $cross_compiling:$ac_tool_warned in
3247 yes:)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3251 esac
3252 CC=$ac_ct_CC
3259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details" "$LINENO" 5; }
3264 # Provide some information about the compiler.
3265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266 set X $ac_compile
3267 ac_compiler=$2
3268 for ac_option in --version -v -V -qversion; do
3269 { { ac_try="$ac_compiler $ac_option >&5"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3277 ac_status=$?
3278 if test -s conftest.err; then
3279 sed '10a\
3280 ... rest of stderr output deleted ...
3281 10q' conftest.err >conftest.er1
3282 cat conftest.er1 >&5
3284 rm -f conftest.er1 conftest.err
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3287 done
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3304 # of exeext.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3306 $as_echo_n "checking whether the C compiler works... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319 done
3320 rm -f $ac_rmfiles
3322 if { { ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3337 # Autoconf.
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3360 break;;
3361 esac
3362 done
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 else
3366 ac_file=''
3368 if test -z "$ac_file"; then :
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error 77 "C compiler cannot create executables
3377 See \`config.log' for more details" "$LINENO" 5; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3385 $as_echo "$ac_file" >&6; }
3386 ac_exeext=$ac_cv_exeext
3388 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3391 $as_echo_n "checking for suffix of executables... " >&6; }
3392 if { { ac_try="$ac_link"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3404 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3405 # work properly (i.e., refer to `conftest.exe'), while it won't with
3406 # `rm'.
3407 for ac_file in conftest.exe conftest conftest.*; do
3408 test -f "$ac_file" || continue
3409 case $ac_file in
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 break;;
3413 * ) break;;
3414 esac
3415 done
3416 else
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3420 See \`config.log' for more details" "$LINENO" 5; }
3422 rm -f conftest conftest$ac_cv_exeext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3424 $as_echo "$ac_cv_exeext" >&6; }
3426 rm -f conftest.$ac_ext
3427 EXEEXT=$ac_cv_exeext
3428 ac_exeext=$EXEEXT
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431 #include <stdio.h>
3433 main ()
3435 FILE *f = fopen ("conftest.out", "w");
3436 return ferror (f) || fclose (f) != 0;
3439 return 0;
3441 _ACEOF
3442 ac_clean_files="$ac_clean_files conftest.out"
3443 # Check that the compiler produces executables we can run. If not, either
3444 # the compiler is broken, or we cross compile.
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3446 $as_echo_n "checking whether we are cross compiling... " >&6; }
3447 if test "$cross_compiling" != yes; then
3448 { { ac_try="$ac_link"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3459 if { ac_try='./conftest$ac_cv_exeext'
3460 { { case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_try") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; }; then
3470 cross_compiling=no
3471 else
3472 if test "$cross_compiling" = maybe; then
3473 cross_compiling=yes
3474 else
3475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $? "cannot run C compiled programs.
3478 If you meant to cross compile, use \`--host'.
3479 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3484 $as_echo "$cross_compiling" >&6; }
3486 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3487 ac_clean_files=$ac_clean_files_save
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489 $as_echo_n "checking for suffix of object files... " >&6; }
3490 if ${ac_cv_objext+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 main ()
3501 return 0;
3503 _ACEOF
3504 rm -f conftest.o conftest.obj
3505 if { { ac_try="$ac_compile"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compile") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 for ac_file in conftest.o conftest.obj conftest.*; do
3517 test -f "$ac_file" || continue;
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 break;;
3522 esac
3523 done
3524 else
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "cannot compute suffix of object files: cannot compile
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3536 $as_echo "$ac_cv_objext" >&6; }
3537 OBJEXT=$ac_cv_objext
3538 ac_objext=$OBJEXT
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3540 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3541 if ${ac_cv_c_compiler_gnu+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 main ()
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3555 return 0;
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_compiler_gnu=yes
3560 else
3561 ac_compiler_gnu=no
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3568 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3569 if test $ac_compiler_gnu = yes; then
3570 GCC=yes
3571 else
3572 GCC=
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3577 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3578 if ${ac_cv_prog_cc_g+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3583 ac_cv_prog_cc_g=no
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3598 else
3599 CFLAGS=""
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3613 else
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615 CFLAGS="-g"
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 main ()
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_g=yes
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 $as_echo "$ac_cv_prog_cc_g" >&6; }
3639 if test "$ac_test_CFLAGS" = set; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3643 CFLAGS="-g -O2"
3644 else
3645 CFLAGS="-g"
3647 else
3648 if test "$GCC" = yes; then
3649 CFLAGS="-O2"
3650 else
3651 CFLAGS=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656 if ${ac_cv_prog_cc_c89+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_cv_prog_cc_c89=no
3660 ac_save_CC=$CC
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdio.h>
3665 struct stat;
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3670 char **p;
3671 int i;
3673 return p[i];
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3677 char *s;
3678 va_list v;
3679 va_start (v,p);
3680 s = g (p, va_arg (v,int));
3681 va_end (v);
3682 return s;
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3686 function prototypes and stuff, but not '\xHH' hex character constants.
3687 These don't provoke an error unfortunately, instead are silently treated
3688 as 'x'. The following induces an error, until -std is added to get
3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3690 array size at least. It's necessary to write '\x00'==0 to get something
3691 that's true only with -std. */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695 inside strings and character constants. */
3696 #define FOO(x) 'x'
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 int argc;
3704 char **argv;
3706 main ()
3708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3710 return 0;
3712 _ACEOF
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 CC="$ac_save_CC $ac_arg"
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_prog_cc_c89=$ac_arg
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3732 xno)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3744 ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3756 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3757 if ${am_cv_prog_cc_c_o+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3764 main ()
3768 return 0;
3770 _ACEOF
3771 # Make sure it works both with $CC and with simple cc.
3772 # Following AC_PROG_CC_C_O, we do the test twice because some
3773 # compilers refuse to overwrite an existing .o file with -o,
3774 # though they will create one.
3775 am_cv_prog_cc_c_o=yes
3776 for am_i in 1 2; do
3777 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3778 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } \
3782 && test -f conftest2.$ac_objext; then
3783 : OK
3784 else
3785 am_cv_prog_cc_c_o=no
3786 break
3788 done
3789 rm -f core conftest*
3790 unset am_i
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3793 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3794 if test "$am_cv_prog_cc_c_o" != yes; then
3795 # Losing compiler, so override with the script.
3796 # FIXME: It is wrong to rewrite CC.
3797 # But if we don't then we get into trouble of one sort or another.
3798 # A longer-term fix would be to have automake use am__CC in this case,
3799 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3800 CC="$am_aux_dir/compile $CC"
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 # Check whether --enable-all-pkgs was given.
3814 if test "${enable_all_pkgs+set}" = set; then :
3815 enableval=$enable_all_pkgs;
3817 test "x$enable_all_pkgs" = xno || enable_all_pkgs=yes
3818 # Check whether --enable-native-texlive-build was given.
3819 if test "${enable_native_texlive_build+set}" = set; then :
3820 enableval=$enable_native_texlive_build;
3822 case $enable_native_texlive_build in #(
3823 yes | no) :
3824 : ;; #(
3825 *) :
3826 enable_native_texlive_build=yes
3827 ac_configure_args="$ac_configure_args '--enable-native-texlive-build'" ;;
3828 esac
3829 case $enable_largefile in #(
3830 yes | no) :
3831 : ;; #(
3832 *) :
3833 enable_largefile=yes
3834 ac_configure_args="$ac_configure_args '--enable-largefile'" ;;
3835 esac
3836 case $enable_silent_rules in #(
3837 yes | no) :
3838 : ;; #(
3839 *) :
3840 enable_silent_rules=no
3841 ac_configure_args="$ac_configure_args '--disable-silent-rules'" ;;
3842 esac
3843 case $enable_multiplatform in #(
3844 yes | no) :
3845 : ;; #(
3846 *) :
3847 enable_multiplatform=$enable_native_texlive_build
3848 ac_configure_args="$ac_configure_args '--enable-multiplatform=$enable_native_texlive_build'" ;;
3849 esac
3850 case $enable_cxx_runtime_hack in #(
3851 yes | no) :
3852 : ;; #(
3853 *) :
3854 enable_cxx_runtime_hack=$enable_native_texlive_build
3855 ac_configure_args="$ac_configure_args '--enable-cxx-runtime-hack=$enable_native_texlive_build'" ;;
3856 esac
3857 case $enable_libtool_hack in #(
3858 yes | no) :
3859 : ;; #(
3860 *) :
3861 case $host_os in #(
3862 do-not-match) :
3863 enable_libtool_hack=no ;; #(
3864 *) :
3865 enable_libtool_hack=yes ;;
3866 esac
3867 ac_configure_args="$ac_configure_args '--enable-libtool-hack=$enable_libtool_hack'" ;;
3868 esac
3869 case $enable_shared:$host_os in #(
3870 no:* | yes:mingw* | yes:cygwin*) :
3871 : ;; #(
3872 yes:* ) :
3873 if test "x$enable_native_texlive_build" = xyes; then :
3874 as_fn_error $? "you can not use a shared Kpathsea library for a native TeX Live build" "$LINENO" 5
3875 fi ;; #(
3876 *) :
3877 enable_shared=no
3878 ac_configure_args="$ac_configure_args '--disable-shared'" ;;
3879 esac
3880 case $enable_texlive_build in #(
3881 yes) :
3882 : ;; #(
3883 no) :
3884 as_fn_error $? "you can not configure the TeX Live tree with \`--disable-texlive-build'" "$LINENO" 5 ;; #(
3885 *) :
3886 enable_texlive_build=yes
3887 ac_configure_args="$ac_configure_args '--enable-texlive-build'" ;;
3888 esac
3889 # Check whether --enable-multiplatform was given.
3890 if test "${enable_multiplatform+set}" = set; then :
3891 enableval=$enable_multiplatform;
3893 if test "x$enable_multiplatform" = xyes; then
3894 if test "x$bindir" = 'x${exec_prefix}/bin'; then
3895 bindir="$bindir/${host_alias-$host}"
3896 ac_configure_args="$ac_configure_args '--bindir=$bindir'"
3898 if test "x$libdir" = 'x${exec_prefix}/lib'; then
3899 libdir="$libdir/${host_alias-$host}"
3900 ac_configure_args="$ac_configure_args '--libdir=$libdir'"
3904 # Check whether --enable-cxx-runtime-hack was given.
3905 if test "${enable_cxx_runtime_hack+set}" = set; then :
3906 enableval=$enable_cxx_runtime_hack;
3909 # Check whether --enable-libtool-hack was given.
3910 if test "${enable_libtool_hack+set}" = set; then :
3911 enableval=$enable_libtool_hack;
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
3918 $as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
3919 if ${kpse_cv_have_win32+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #ifndef WIN32
3925 choke me
3926 #endif
3928 main ()
3932 return 0;
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 #ifndef __MINGW32__
3939 choke me
3940 #endif
3942 main ()
3946 return 0;
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 kpse_cv_have_win32=mingw32
3951 else
3952 kpse_cv_have_win32=native
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 else
3956 kpse_cv_have_win32=no
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
3961 $as_echo "$kpse_cv_have_win32" >&6; }
3963 case $with_x:$kpse_cv_have_win32 in #(
3964 yes:no | no:*) :
3965 : ;; #(
3966 yes:*) :
3967 as_fn_error $? "you can not use \`--with-x' for WIN32" "$LINENO" 5 ;; #(
3968 *:no) :
3969 with_x=yes
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--with-x'" >&5
3971 $as_echo "$as_me: Assuming \`--with-x'" >&6;}
3972 ac_configure_args="$ac_configure_args '--with-x'" ;; #(
3973 *) :
3974 with_x=no
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: WIN32 -> \`--without-x'" >&5
3976 $as_echo "$as_me: WIN32 -> \`--without-x'" >&6;}
3977 ac_configure_args="$ac_configure_args '--without-x'" ;;
3978 esac
3979 case $enable_luajittex in #(
3980 yes | no) :
3981 : ;; #(
3982 *) :
3983 case $host in #(
3984 alpha* | sparc* | x86_64-*-solaris* | powerpc-*-darwin* ) :
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-luajittex'" >&5
3986 $as_echo "$as_me: $host -> \`--disable-luajittex'" >&6;}
3987 ac_configure_args="$ac_configure_args '--disable-luajittex'" ;; #(
3988 *) :
3990 esac ;;
3991 esac
3992 case $enable_mfluajit in #(
3993 yes | no) :
3994 : ;; #(
3995 *) :
3996 case $host in #(
3997 alpha* | sparc* | x86_64-*-solaris* | powerpc-*-darwin* ) :
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: $host -> \`--disable-mfluajit'" >&5
3999 $as_echo "$as_me: $host -> \`--disable-mfluajit'" >&6;}
4000 ac_configure_args="$ac_configure_args '--disable-mfluajit'" ;; #(
4001 *) :
4003 esac ;;
4004 esac
4007 ## texk/web2c/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
4008 ## configure options and TL libraries required for web2c
4009 # Check whether --enable-web2c was given.
4010 if test "${enable_web2c+set}" = set; then :
4011 enableval=$enable_web2c;
4013 case $enable_web2c in #(
4014 yes|no) :
4015 ;; #(
4016 *) :
4018 enable_web2c=$enable_all_pkgs
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-web2c=$enable_web2c'" >&5
4020 $as_echo "$as_me: Assuming \`--enable-web2c=$enable_web2c'" >&6;}
4021 ac_configure_args="$ac_configure_args '--enable-web2c=$enable_web2c'"
4023 esac
4025 test "x$enable_web2c" = xno || {
4026 need_kpathsea=yes
4027 need_zlib=yes
4030 ## texk/web2c/ac/web2c.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
4031 ## configure options for TeX and MF
4033 # Check whether --with-banner-add was given.
4034 if test "${with_banner_add+set}" = set; then :
4035 withval=$with_banner_add;
4038 # Check whether --with-editor was given.
4039 if test "${with_editor+set}" = set; then :
4040 withval=$with_editor;
4042 # Check whether --enable-auto-core was given.
4043 if test "${enable_auto_core+set}" = set; then :
4044 enableval=$enable_auto_core;
4046 # Check whether --enable-dump-share was given.
4047 if test "${enable_dump_share+set}" = set; then :
4048 enableval=$enable_dump_share;
4050 ## configure options for TeX
4051 # Check whether --enable-ipc was given.
4052 if test "${enable_ipc+set}" = set; then :
4053 enableval=$enable_ipc;
4055 # Check whether --enable-tex was given.
4056 if test "${enable_tex+set}" = set; then :
4057 enableval=$enable_tex;
4059 case $enable_tex in #(
4060 yes | no) :
4061 ;; #(
4062 *) :
4063 enable_tex=yes ;;
4064 esac
4066 # Check whether --enable-tex-synctex was given.
4067 if test "${enable_tex_synctex+set}" = set; then :
4068 enableval=$enable_tex_synctex;
4070 # Check whether --enable-etex was given.
4071 if test "${enable_etex+set}" = set; then :
4072 enableval=$enable_etex;
4074 case $enable_etex in #(
4075 yes | no) :
4076 ;; #(
4077 *) :
4078 enable_etex=no ;;
4079 esac
4081 # Check whether --enable-etex-synctex was given.
4082 if test "${enable_etex_synctex+set}" = set; then :
4083 enableval=$enable_etex_synctex;
4085 # Check whether --enable-ptex was given.
4086 if test "${enable_ptex+set}" = set; then :
4087 enableval=$enable_ptex;
4089 case $enable_ptex in #(
4090 yes | no) :
4091 ;; #(
4092 *) :
4093 enable_ptex=yes ;;
4094 esac
4096 # Check whether --enable-ptex-synctex was given.
4097 if test "${enable_ptex_synctex+set}" = set; then :
4098 enableval=$enable_ptex_synctex;
4101 test "x$enable_web2c:$enable_ptex" = xyes:yes && {
4102 need_ptexenc=yes
4104 # Check whether --enable-eptex was given.
4105 if test "${enable_eptex+set}" = set; then :
4106 enableval=$enable_eptex;
4108 case $enable_eptex in #(
4109 yes | no) :
4110 ;; #(
4111 *) :
4112 enable_eptex=yes ;;
4113 esac
4115 # Check whether --enable-eptex-synctex was given.
4116 if test "${enable_eptex_synctex+set}" = set; then :
4117 enableval=$enable_eptex_synctex;
4120 test "x$enable_web2c:$enable_eptex" = xyes:yes && {
4121 need_ptexenc=yes
4123 # Check whether --enable-uptex was given.
4124 if test "${enable_uptex+set}" = set; then :
4125 enableval=$enable_uptex;
4127 case $enable_uptex in #(
4128 yes | no) :
4129 ;; #(
4130 *) :
4131 enable_uptex=yes ;;
4132 esac
4134 # Check whether --enable-uptex-synctex was given.
4135 if test "${enable_uptex_synctex+set}" = set; then :
4136 enableval=$enable_uptex_synctex;
4139 test "x$enable_web2c:$enable_uptex" = xyes:yes && {
4140 need_ptexenc=yes
4142 # Check whether --enable-euptex was given.
4143 if test "${enable_euptex+set}" = set; then :
4144 enableval=$enable_euptex;
4146 case $enable_euptex in #(
4147 yes | no) :
4148 ;; #(
4149 *) :
4150 enable_euptex=yes ;;
4151 esac
4153 # Check whether --enable-euptex-synctex was given.
4154 if test "${enable_euptex_synctex+set}" = set; then :
4155 enableval=$enable_euptex_synctex;
4158 test "x$enable_web2c:$enable_euptex" = xyes:yes && {
4159 need_ptexenc=yes
4161 # Check whether --enable-aleph was given.
4162 if test "${enable_aleph+set}" = set; then :
4163 enableval=$enable_aleph;
4165 case $enable_aleph in #(
4166 yes | no) :
4167 ;; #(
4168 *) :
4169 enable_aleph=yes ;;
4170 esac
4171 # Check whether --enable-pdftex was given.
4172 if test "${enable_pdftex+set}" = set; then :
4173 enableval=$enable_pdftex;
4175 case $enable_pdftex in #(
4176 yes | no) :
4177 ;; #(
4178 *) :
4179 enable_pdftex=yes ;;
4180 esac
4182 # Check whether --enable-pdftex-synctex was given.
4183 if test "${enable_pdftex_synctex+set}" = set; then :
4184 enableval=$enable_pdftex_synctex;
4187 test "x$enable_web2c:$enable_pdftex" = xyes:yes && {
4188 need_xpdf=yes
4189 need_libpng=yes
4191 # Check whether --enable-luatex was given.
4192 if test "${enable_luatex+set}" = set; then :
4193 enableval=$enable_luatex;
4195 case $enable_luatex in #(
4196 yes | no) :
4197 ;; #(
4198 *) :
4199 enable_luatex=yes ;;
4200 esac
4202 test "x$enable_web2c:$enable_luatex" = xyes:yes && {
4203 need_poppler=yes
4204 need_mpfr=yes
4205 need_cairo=yes
4206 need_libpng=yes
4207 need_zziplib=yes
4208 need_lua52=yes
4210 # Check whether --enable-luajittex was given.
4211 if test "${enable_luajittex+set}" = set; then :
4212 enableval=$enable_luajittex;
4214 case $enable_luajittex in #(
4215 yes | no) :
4216 ;; #(
4217 *) :
4218 enable_luajittex=yes ;;
4219 esac
4221 test "x$enable_web2c:$enable_luajittex" = xyes:yes && {
4222 need_poppler=yes
4223 need_mpfr=yes
4224 need_cairo=yes
4225 need_libpng=yes
4226 need_zziplib=yes
4227 need_luajit=yes
4229 # Check whether --enable-mp was given.
4230 if test "${enable_mp+set}" = set; then :
4231 enableval=$enable_mp;
4233 case $enable_mp in #(
4234 yes | no) :
4235 ;; #(
4236 *) :
4237 enable_mp=yes ;;
4238 esac
4240 test "x$enable_web2c:$enable_mp" = xyes:yes && {
4241 need_mpfr=yes
4242 need_cairo=yes
4243 need_libpng=yes
4245 # Check whether --enable-pmp was given.
4246 if test "${enable_pmp+set}" = set; then :
4247 enableval=$enable_pmp;
4249 case $enable_pmp in #(
4250 yes | no) :
4251 ;; #(
4252 *) :
4253 enable_pmp=yes ;;
4254 esac
4256 test "x$enable_web2c:$enable_pmp" = xyes:yes && {
4257 need_mpfr=yes
4258 need_cairo=yes
4259 need_libpng=yes
4260 need_ptexenc=yes
4262 # Check whether --enable-upmp was given.
4263 if test "${enable_upmp+set}" = set; then :
4264 enableval=$enable_upmp;
4266 case $enable_upmp in #(
4267 yes | no) :
4268 ;; #(
4269 *) :
4270 enable_upmp=yes ;;
4271 esac
4273 test "x$enable_web2c:$enable_upmp" = xyes:yes && {
4274 need_mpfr=yes
4275 need_cairo=yes
4276 need_libpng=yes
4277 need_ptexenc=yes
4279 # Check whether --enable-xetex was given.
4280 if test "${enable_xetex+set}" = set; then :
4281 enableval=$enable_xetex;
4283 case $enable_xetex in #(
4284 yes | no) :
4285 ;; #(
4286 *) :
4287 enable_xetex=yes ;;
4288 esac
4290 # Check whether --enable-xetex-synctex was given.
4291 if test "${enable_xetex_synctex+set}" = set; then :
4292 enableval=$enable_xetex_synctex;
4295 test "x$enable_web2c:$enable_xetex" = xyes:yes && {
4296 need_poppler=yes
4297 need_libpng=yes
4298 need_freetype2=yes
4299 need_teckit=yes
4300 need_harfbuzz=yes
4302 ## configure options for MF
4303 # Check whether --enable-mf was given.
4304 if test "${enable_mf+set}" = set; then :
4305 enableval=$enable_mf;
4307 case $enable_mf in #(
4308 yes | no) :
4309 ;; #(
4310 *) :
4311 enable_mf=yes ;;
4312 esac
4314 # Check whether --enable-mf-nowin was given.
4315 if test "${enable_mf_nowin+set}" = set; then :
4316 enableval=$enable_mf_nowin;
4318 case $enable_mf_nowin in #(
4319 yes | no) :
4320 ;; #(
4321 *) :
4322 enable_mf_nowin=yes ;;
4323 esac
4324 # Check whether --enable-mflua was given.
4325 if test "${enable_mflua+set}" = set; then :
4326 enableval=$enable_mflua;
4328 case $enable_mflua in #(
4329 yes | no) :
4330 ;; #(
4331 *) :
4332 enable_mflua=yes ;;
4333 esac
4335 # Check whether --enable-mflua-nowin was given.
4336 if test "${enable_mflua_nowin+set}" = set; then :
4337 enableval=$enable_mflua_nowin;
4339 case $enable_mflua_nowin in #(
4340 yes | no) :
4341 ;; #(
4342 *) :
4343 enable_mflua_nowin=no ;;
4344 esac
4346 test "x$enable_web2c:$enable_mflua" = xyes:yes && {
4347 need_lua52=yes
4349 # Check whether --enable-mfluajit was given.
4350 if test "${enable_mfluajit+set}" = set; then :
4351 enableval=$enable_mfluajit;
4353 case $enable_mfluajit in #(
4354 yes | no) :
4355 ;; #(
4356 *) :
4357 enable_mfluajit=yes ;;
4358 esac
4360 # Check whether --enable-mfluajit-nowin was given.
4361 if test "${enable_mfluajit_nowin+set}" = set; then :
4362 enableval=$enable_mfluajit_nowin;
4364 case $enable_mfluajit_nowin in #(
4365 yes | no) :
4366 ;; #(
4367 *) :
4368 enable_mfluajit_nowin=no ;;
4369 esac
4371 test "x$enable_web2c:$enable_mfluajit" = xyes:yes && {
4372 need_luajit=yes
4375 # Check whether --with-mf-x-toolkit was given.
4376 if test "${with_mf_x_toolkit+set}" = set; then :
4377 withval=$with_mf_x_toolkit;
4379 # Check whether --enable-epsfwin was given.
4380 if test "${enable_epsfwin+set}" = set; then :
4381 enableval=$enable_epsfwin;
4383 # Check whether --enable-hp2627win was given.
4384 if test "${enable_hp2627win+set}" = set; then :
4385 enableval=$enable_hp2627win;
4387 # Check whether --enable-mftalkwin was given.
4388 if test "${enable_mftalkwin+set}" = set; then :
4389 enableval=$enable_mftalkwin;
4391 # Check whether --enable-nextwin was given.
4392 if test "${enable_nextwin+set}" = set; then :
4393 enableval=$enable_nextwin;
4395 # Check whether --enable-regiswin was given.
4396 if test "${enable_regiswin+set}" = set; then :
4397 enableval=$enable_regiswin;
4399 # Check whether --enable-suntoolswin was given.
4400 if test "${enable_suntoolswin+set}" = set; then :
4401 enableval=$enable_suntoolswin;
4403 # Check whether --enable-tektronixwin was given.
4404 if test "${enable_tektronixwin+set}" = set; then :
4405 enableval=$enable_tektronixwin;
4407 # Check whether --enable-unitermwin was given.
4408 if test "${enable_unitermwin+set}" = set; then :
4409 enableval=$enable_unitermwin;
4411 ## configure options for WEB programs
4412 # Check whether --enable-web-progs was given.
4413 if test "${enable_web_progs+set}" = set; then :
4414 enableval=$enable_web_progs;
4416 ## configure option for the SyncTeX library and tool
4417 # Check whether --enable-synctex was given.
4418 if test "${enable_synctex+set}" = set; then :
4419 enableval=$enable_synctex;
4423 ## texk/texlive/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/texlive/
4424 ## configure options and TL libraries required for texlive
4425 # Check whether --enable-texlive was given.
4426 if test "${enable_texlive+set}" = set; then :
4427 enableval=$enable_texlive;
4429 case $enable_texlive in #(
4430 yes|no) :
4431 ;; #(
4432 *) :
4434 enable_texlive=$enable_all_pkgs
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-texlive=$enable_texlive'" >&5
4436 $as_echo "$as_me: Assuming \`--enable-texlive=$enable_texlive'" >&6;}
4437 ac_configure_args="$ac_configure_args '--enable-texlive=$enable_texlive'"
4439 esac
4441 ## texk/texlive/ac/texlive.ac: configure.ac fragment for the TeX Live subdirectory texk/texlive/
4442 ## configure options for texlive
4443 # Check whether --enable-linked-scripts was given.
4444 if test "${enable_linked_scripts+set}" = set; then :
4445 enableval=$enable_linked_scripts;
4449 ## libs/zziplib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/zziplib/
4450 ## configure options and TL libraries required for zziplib
4452 # Check whether --with-system-zziplib was given.
4453 if test "${with_system_zziplib+set}" = set; then :
4454 withval=$with_system_zziplib;
4456 if test "x$with_system_zziplib" = x; then
4457 if test -f $srcdir/libs/zziplib/configure; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`zziplib' headers and library from TL tree" >&5
4459 $as_echo "$as_me: Assuming \`zziplib' headers and library from TL tree" >&6;}
4460 with_system_zziplib=no
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`zziplib' headers and library" >&5
4463 $as_echo "$as_me: Assuming installed \`zziplib' headers and library" >&6;}
4464 with_system_zziplib=yes
4466 ac_configure_args="$ac_configure_args '--with-system-zziplib=$with_system_zziplib'"
4467 elif test "x$with_system_zziplib" = xyes; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`zziplib' headers and library" >&5
4469 $as_echo "$as_me: Using installed \`zziplib' headers and library" >&6;}
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`zziplib' headers and library from TL tree" >&5
4472 $as_echo "$as_me: Using \`zziplib' headers and library from TL tree" >&6;}
4473 if test "x$with_system_zziplib" != xno; then
4474 with_system_zziplib=no
4475 ac_configure_args="$ac_configure_args '--without-system-zziplib'"
4478 if test "x$with_system_zziplib" = xyes; then
4479 if test "x$with_system_zlib" = x; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4481 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4482 with_system_zlib=yes
4483 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4484 elif test "x$with_system_zlib" != xyes; then
4485 as_fn_error $? "Sorry, \`--with-system-zziplib' requires \`--with-system-zlib'" "$LINENO" 5
4489 test "x$need_zziplib" = xyes && {
4490 need_zlib=yes
4493 ## libs/poppler/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/poppler/
4494 ## configure options and TL libraries required for poppler
4496 # Check whether --with-system-poppler was given.
4497 if test "${with_system_poppler+set}" = set; then :
4498 withval=$with_system_poppler;
4500 if test "x$with_system_poppler" = x; then
4501 if test -f $srcdir/libs/poppler/configure; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`poppler' headers and library from TL tree" >&5
4503 $as_echo "$as_me: Assuming \`poppler' headers and library from TL tree" >&6;}
4504 with_system_poppler=no
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`poppler' headers and library" >&5
4507 $as_echo "$as_me: Assuming installed \`poppler' headers and library" >&6;}
4508 with_system_poppler=yes
4510 ac_configure_args="$ac_configure_args '--with-system-poppler=$with_system_poppler'"
4511 elif test "x$with_system_poppler" = xyes; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`poppler' headers and library" >&5
4513 $as_echo "$as_me: Using installed \`poppler' headers and library" >&6;}
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`poppler' headers and library from TL tree" >&5
4516 $as_echo "$as_me: Using \`poppler' headers and library from TL tree" >&6;}
4517 if test "x$with_system_poppler" != xno; then
4518 with_system_poppler=no
4519 ac_configure_args="$ac_configure_args '--without-system-poppler'"
4522 if test "x$with_system_poppler" = xyes; then
4523 if test "x$with_system_zlib" = x; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4525 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4526 with_system_zlib=yes
4527 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4528 elif test "x$with_system_zlib" != xyes; then
4529 as_fn_error $? "Sorry, \`--with-system-poppler' requires \`--with-system-zlib'" "$LINENO" 5
4533 test "x$need_poppler" = xyes && {
4534 need_zlib=yes
4537 ## libs/mpfr/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/mpfr/
4538 ## configure options and TL libraries required for mpfr
4540 # Check whether --with-system-mpfr was given.
4541 if test "${with_system_mpfr+set}" = set; then :
4542 withval=$with_system_mpfr;
4545 # Check whether --with-mpfr-includes was given.
4546 if test "${with_mpfr_includes+set}" = set; then :
4547 withval=$with_mpfr_includes;
4550 # Check whether --with-mpfr-libdir was given.
4551 if test "${with_mpfr_libdir+set}" = set; then :
4552 withval=$with_mpfr_libdir;
4554 if test "x$with_system_mpfr" = x; then
4555 if test -f $srcdir/libs/mpfr/configure; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`mpfr' headers and library from TL tree" >&5
4557 $as_echo "$as_me: Assuming \`mpfr' headers and library from TL tree" >&6;}
4558 with_system_mpfr=no
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`mpfr' headers and library" >&5
4561 $as_echo "$as_me: Assuming installed \`mpfr' headers and library" >&6;}
4562 with_system_mpfr=yes
4564 ac_configure_args="$ac_configure_args '--with-system-mpfr=$with_system_mpfr'"
4565 elif test "x$with_system_mpfr" = xyes; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`mpfr' headers and library" >&5
4567 $as_echo "$as_me: Using installed \`mpfr' headers and library" >&6;}
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`mpfr' headers and library from TL tree" >&5
4570 $as_echo "$as_me: Using \`mpfr' headers and library from TL tree" >&6;}
4571 if test "x$with_system_mpfr" != xno; then
4572 with_system_mpfr=no
4573 ac_configure_args="$ac_configure_args '--without-system-mpfr'"
4576 if test "x$with_system_mpfr" = xyes; then
4577 if test "x$with_system_gmp" = x; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`gmp' headers and library" >&5
4579 $as_echo "$as_me: -> installed \`gmp' headers and library" >&6;}
4580 with_system_gmp=yes
4581 ac_configure_args="$ac_configure_args '--with-system-gmp'"
4582 elif test "x$with_system_gmp" != xyes; then
4583 as_fn_error $? "Sorry, \`--with-system-mpfr' requires \`--with-system-gmp'" "$LINENO" 5
4587 test "x$need_mpfr" = xyes && {
4588 need_gmp=yes
4591 ## libs/gmp/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/gmp/
4592 ## configure options and TL libraries required for gmp
4594 # Check whether --with-system-gmp was given.
4595 if test "${with_system_gmp+set}" = set; then :
4596 withval=$with_system_gmp;
4599 # Check whether --with-gmp-includes was given.
4600 if test "${with_gmp_includes+set}" = set; then :
4601 withval=$with_gmp_includes;
4604 # Check whether --with-gmp-libdir was given.
4605 if test "${with_gmp_libdir+set}" = set; then :
4606 withval=$with_gmp_libdir;
4608 if test "x$with_system_gmp" = x; then
4609 if test -f $srcdir/libs/gmp/configure; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`gmp' headers and library from TL tree" >&5
4611 $as_echo "$as_me: Assuming \`gmp' headers and library from TL tree" >&6;}
4612 with_system_gmp=no
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`gmp' headers and library" >&5
4615 $as_echo "$as_me: Assuming installed \`gmp' headers and library" >&6;}
4616 with_system_gmp=yes
4618 ac_configure_args="$ac_configure_args '--with-system-gmp=$with_system_gmp'"
4619 elif test "x$with_system_gmp" = xyes; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`gmp' headers and library" >&5
4621 $as_echo "$as_me: Using installed \`gmp' headers and library" >&6;}
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`gmp' headers and library from TL tree" >&5
4624 $as_echo "$as_me: Using \`gmp' headers and library from TL tree" >&6;}
4625 if test "x$with_system_gmp" != xno; then
4626 with_system_gmp=no
4627 ac_configure_args="$ac_configure_args '--without-system-gmp'"
4631 ## libs/cairo/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/cairo/
4632 ## configure options and TL libraries required for cairo
4634 # Check whether --with-system-cairo was given.
4635 if test "${with_system_cairo+set}" = set; then :
4636 withval=$with_system_cairo;
4638 if test "x$with_system_cairo" = x; then
4639 if test -f $srcdir/libs/cairo/configure; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`cairo' headers and library from TL tree" >&5
4641 $as_echo "$as_me: Assuming \`cairo' headers and library from TL tree" >&6;}
4642 with_system_cairo=no
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`cairo' headers and library" >&5
4645 $as_echo "$as_me: Assuming installed \`cairo' headers and library" >&6;}
4646 with_system_cairo=yes
4648 ac_configure_args="$ac_configure_args '--with-system-cairo=$with_system_cairo'"
4649 elif test "x$with_system_cairo" = xyes; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`cairo' headers and library" >&5
4651 $as_echo "$as_me: Using installed \`cairo' headers and library" >&6;}
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`cairo' headers and library from TL tree" >&5
4654 $as_echo "$as_me: Using \`cairo' headers and library from TL tree" >&6;}
4655 if test "x$with_system_cairo" != xno; then
4656 with_system_cairo=no
4657 ac_configure_args="$ac_configure_args '--without-system-cairo'"
4660 if test "x$with_system_cairo" = xyes; then
4661 if test "x$with_system_pixman" = x; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`pixman' headers and library" >&5
4663 $as_echo "$as_me: -> installed \`pixman' headers and library" >&6;}
4664 with_system_pixman=yes
4665 ac_configure_args="$ac_configure_args '--with-system-pixman'"
4666 elif test "x$with_system_pixman" != xyes; then
4667 as_fn_error $? "Sorry, \`--with-system-cairo' requires \`--with-system-pixman'" "$LINENO" 5
4671 test "x$need_cairo" = xyes && {
4672 need_pixman=yes
4675 ## libs/pixman/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/pixman/
4676 ## configure options and TL libraries required for pixman
4678 # Check whether --with-system-pixman was given.
4679 if test "${with_system_pixman+set}" = set; then :
4680 withval=$with_system_pixman;
4682 if test "x$with_system_pixman" = x; then
4683 if test -f $srcdir/libs/pixman/configure; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`pixman' headers and library from TL tree" >&5
4685 $as_echo "$as_me: Assuming \`pixman' headers and library from TL tree" >&6;}
4686 with_system_pixman=no
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`pixman' headers and library" >&5
4689 $as_echo "$as_me: Assuming installed \`pixman' headers and library" >&6;}
4690 with_system_pixman=yes
4692 ac_configure_args="$ac_configure_args '--with-system-pixman=$with_system_pixman'"
4693 elif test "x$with_system_pixman" = xyes; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`pixman' headers and library" >&5
4695 $as_echo "$as_me: Using installed \`pixman' headers and library" >&6;}
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`pixman' headers and library from TL tree" >&5
4698 $as_echo "$as_me: Using \`pixman' headers and library from TL tree" >&6;}
4699 if test "x$with_system_pixman" != xno; then
4700 with_system_pixman=no
4701 ac_configure_args="$ac_configure_args '--without-system-pixman'"
4705 ## libs/libpng/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/libpng/
4706 ## configure options and TL libraries required for libpng
4708 # Check whether --with-system-libpng was given.
4709 if test "${with_system_libpng+set}" = set; then :
4710 withval=$with_system_libpng;
4712 if test "x$with_system_libpng" = x; then
4713 if test -f $srcdir/libs/libpng/configure; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`libpng' headers and library from TL tree" >&5
4715 $as_echo "$as_me: Assuming \`libpng' headers and library from TL tree" >&6;}
4716 with_system_libpng=no
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`libpng' headers and library" >&5
4719 $as_echo "$as_me: Assuming installed \`libpng' headers and library" >&6;}
4720 with_system_libpng=yes
4722 ac_configure_args="$ac_configure_args '--with-system-libpng=$with_system_libpng'"
4723 elif test "x$with_system_libpng" = xyes; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`libpng' headers and library" >&5
4725 $as_echo "$as_me: Using installed \`libpng' headers and library" >&6;}
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`libpng' headers and library from TL tree" >&5
4728 $as_echo "$as_me: Using \`libpng' headers and library from TL tree" >&6;}
4729 if test "x$with_system_libpng" != xno; then
4730 with_system_libpng=no
4731 ac_configure_args="$ac_configure_args '--without-system-libpng'"
4734 if test "x$with_system_libpng" = xyes; then
4735 if test "x$with_system_zlib" = x; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: -> installed \`zlib' headers and library" >&5
4737 $as_echo "$as_me: -> installed \`zlib' headers and library" >&6;}
4738 with_system_zlib=yes
4739 ac_configure_args="$ac_configure_args '--with-system-zlib'"
4740 elif test "x$with_system_zlib" != xyes; then
4741 as_fn_error $? "Sorry, \`--with-system-libpng' requires \`--with-system-zlib'" "$LINENO" 5
4745 test "x$need_libpng" = xyes && {
4746 need_zlib=yes
4749 ## libs/luajit/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/luajit/
4750 ## configure options and TL libraries required for luajit
4752 ## libs/lua52/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/lua52/
4753 ## configure options and TL libraries required for lua52
4755 ## libs/zlib/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory libs/zlib/
4756 ## configure options and TL libraries required for zlib
4758 # Check whether --with-system-zlib was given.
4759 if test "${with_system_zlib+set}" = set; then :
4760 withval=$with_system_zlib;
4763 # Check whether --with-zlib-includes was given.
4764 if test "${with_zlib_includes+set}" = set; then :
4765 withval=$with_zlib_includes;
4768 # Check whether --with-zlib-libdir was given.
4769 if test "${with_zlib_libdir+set}" = set; then :
4770 withval=$with_zlib_libdir;
4772 if test "x$with_system_zlib" = x; then
4773 if test -f $srcdir/libs/zlib/configure; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`zlib' headers and library from TL tree" >&5
4775 $as_echo "$as_me: Assuming \`zlib' headers and library from TL tree" >&6;}
4776 with_system_zlib=no
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`zlib' headers and library" >&5
4779 $as_echo "$as_me: Assuming installed \`zlib' headers and library" >&6;}
4780 with_system_zlib=yes
4782 ac_configure_args="$ac_configure_args '--with-system-zlib=$with_system_zlib'"
4783 elif test "x$with_system_zlib" = xyes; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`zlib' headers and library" >&5
4785 $as_echo "$as_me: Using installed \`zlib' headers and library" >&6;}
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`zlib' headers and library from TL tree" >&5
4788 $as_echo "$as_me: Using \`zlib' headers and library from TL tree" >&6;}
4789 if test "x$with_system_zlib" != xno; then
4790 with_system_zlib=no
4791 ac_configure_args="$ac_configure_args '--without-system-zlib'"
4796 ## texk/kpathsea/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/kpathsea/
4797 ## configure options and TL libraries required for kpathsea
4799 # Check whether --with-system-kpathsea was given.
4800 if test "${with_system_kpathsea+set}" = set; then :
4801 withval=$with_system_kpathsea;
4803 if test "x$with_system_kpathsea" = x; then
4804 if test -f $srcdir/texk/kpathsea/configure; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`kpathsea' headers and library from TL tree" >&5
4806 $as_echo "$as_me: Assuming \`kpathsea' headers and library from TL tree" >&6;}
4807 with_system_kpathsea=no
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming installed \`kpathsea' headers and library" >&5
4810 $as_echo "$as_me: Assuming installed \`kpathsea' headers and library" >&6;}
4811 with_system_kpathsea=yes
4813 ac_configure_args="$ac_configure_args '--with-system-kpathsea=$with_system_kpathsea'"
4814 elif test "x$with_system_kpathsea" = xyes; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: Using installed \`kpathsea' headers and library" >&5
4816 $as_echo "$as_me: Using installed \`kpathsea' headers and library" >&6;}
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \`kpathsea' headers and library from TL tree" >&5
4819 $as_echo "$as_me: Using \`kpathsea' headers and library from TL tree" >&6;}
4820 if test "x$with_system_kpathsea" != xno; then
4821 with_system_kpathsea=no
4822 ac_configure_args="$ac_configure_args '--without-system-kpathsea'"
4826 ## texk/kpathsea/ac/mktex.ac: configure.ac fragment for the TeX Live
4827 ## subdirectory texk/kpathsea.
4828 ## configure defaults for mktexfmt & Co.
4829 # Check whether --enable-mktexmf-default was given.
4830 if test "${enable_mktexmf_default+set}" = set; then :
4831 enableval=$enable_mktexmf_default;
4833 # Check whether --enable-mktexpk-default was given.
4834 if test "${enable_mktexpk_default+set}" = set; then :
4835 enableval=$enable_mktexpk_default;
4837 # Check whether --enable-mktextfm-default was given.
4838 if test "${enable_mktextfm_default+set}" = set; then :
4839 enableval=$enable_mktextfm_default;
4841 # Check whether --enable-mkocp-default was given.
4842 if test "${enable_mkocp_default+set}" = set; then :
4843 enableval=$enable_mkocp_default;
4845 # Check whether --enable-mkofm-default was given.
4846 if test "${enable_mkofm_default+set}" = set; then :
4847 enableval=$enable_mkofm_default;
4849 # Check whether --enable-mktexfmt-default was given.
4850 if test "${enable_mktexfmt_default+set}" = set; then :
4851 enableval=$enable_mktexfmt_default;
4853 # Check whether --enable-mktextex-default was given.
4854 if test "${enable_mktextex_default+set}" = set; then :
4855 enableval=$enable_mktextex_default;
4861 am__api_version='1.15'
4863 # Find a good install program. We prefer a C program (faster),
4864 # so one script is as good as another. But avoid the broken or
4865 # incompatible versions:
4866 # SysV /etc/install, /usr/sbin/install
4867 # SunOS /usr/etc/install
4868 # IRIX /sbin/install
4869 # AIX /bin/install
4870 # AmigaOS /C/install, which installs bootblocks on floppy discs
4871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4874 # OS/2's system install, which has a completely different semantic
4875 # ./install, which can be erroneously created by make from ./install.sh.
4876 # Reject install programs that cannot install multiple files.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4878 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4879 if test -z "$INSTALL"; then
4880 if ${ac_cv_path_install+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 # Account for people who put trailing slashes in PATH elements.
4889 case $as_dir/ in #((
4890 ./ | .// | /[cC]/* | \
4891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4893 /usr/ucb/* ) ;;
4895 # OSF1 and SCO ODT 3.0 have their own names for install.
4896 # Don't use installbsd from OSF since it installs stuff as root
4897 # by default.
4898 for ac_prog in ginstall scoinst install; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4901 if test $ac_prog = install &&
4902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4903 # AIX install. It has an incompatible calling convention.
4905 elif test $ac_prog = install &&
4906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4907 # program-specific install script used by HP pwplus--don't use.
4909 else
4910 rm -rf conftest.one conftest.two conftest.dir
4911 echo one > conftest.one
4912 echo two > conftest.two
4913 mkdir conftest.dir
4914 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4915 test -s conftest.one && test -s conftest.two &&
4916 test -s conftest.dir/conftest.one &&
4917 test -s conftest.dir/conftest.two
4918 then
4919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4920 break 3
4924 done
4925 done
4927 esac
4929 done
4930 IFS=$as_save_IFS
4932 rm -rf conftest.one conftest.two conftest.dir
4935 if test "${ac_cv_path_install+set}" = set; then
4936 INSTALL=$ac_cv_path_install
4937 else
4938 # As a last resort, use the slow shell script. Don't cache a
4939 # value for INSTALL within a source directory, because that will
4940 # break other packages using the cache if that directory is
4941 # removed, or if the value is a relative name.
4942 INSTALL=$ac_install_sh
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4946 $as_echo "$INSTALL" >&6; }
4948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4949 # It thinks the first close brace ends the variable substitution.
4950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4957 $as_echo_n "checking whether build environment is sane... " >&6; }
4958 # Reject unsafe characters in $srcdir or the absolute working directory
4959 # name. Accept space and tab only in the latter.
4960 am_lf='
4962 case `pwd` in
4963 *[\\\"\#\$\&\'\`$am_lf]*)
4964 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4965 esac
4966 case $srcdir in
4967 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4968 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4969 esac
4971 # Do 'set' in a subshell so we don't clobber the current shell's
4972 # arguments. Must try -L first in case configure is actually a
4973 # symlink; some systems play weird games with the mod time of symlinks
4974 # (eg FreeBSD returns the mod time of the symlink's containing
4975 # directory).
4976 if (
4977 am_has_slept=no
4978 for am_try in 1 2; do
4979 echo "timestamp, slept: $am_has_slept" > conftest.file
4980 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4981 if test "$*" = "X"; then
4982 # -L didn't work.
4983 set X `ls -t "$srcdir/configure" conftest.file`
4985 if test "$*" != "X $srcdir/configure conftest.file" \
4986 && test "$*" != "X conftest.file $srcdir/configure"; then
4988 # If neither matched, then we have a broken ls. This can happen
4989 # if, for instance, CONFIG_SHELL is bash and it inherits a
4990 # broken ls alias from the environment. This has actually
4991 # happened. Such a system could not be considered "sane".
4992 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4993 alias in your environment" "$LINENO" 5
4995 if test "$2" = conftest.file || test $am_try -eq 2; then
4996 break
4998 # Just in case.
4999 sleep 1
5000 am_has_slept=yes
5001 done
5002 test "$2" = conftest.file
5004 then
5005 # Ok.
5007 else
5008 as_fn_error $? "newly created file is older than distributed files!
5009 Check your system clock" "$LINENO" 5
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012 $as_echo "yes" >&6; }
5013 # If we didn't sleep, we still need to ensure time stamps of config.status and
5014 # generated files are strictly newer.
5015 am_sleep_pid=
5016 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5017 ( sleep 1 ) &
5018 am_sleep_pid=$!
5021 rm -f conftest.file
5023 test "$program_prefix" != NONE &&
5024 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5025 # Use a double $ so make ignores it.
5026 test "$program_suffix" != NONE &&
5027 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5028 # Double any \ or $.
5029 # By default was `s,x,x', remove it if useless.
5030 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5031 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5033 if test x"${MISSING+set}" != xset; then
5034 case $am_aux_dir in
5035 *\ * | *\ *)
5036 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5038 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5039 esac
5041 # Use eval to expand $SHELL
5042 if eval "$MISSING --is-lightweight"; then
5043 am_missing_run="$MISSING "
5044 else
5045 am_missing_run=
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5047 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5050 if test x"${install_sh+set}" != xset; then
5051 case $am_aux_dir in
5052 *\ * | *\ *)
5053 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5055 install_sh="\${SHELL} $am_aux_dir/install-sh"
5056 esac
5059 # Installed binaries are usually stripped using 'strip' when the user
5060 # run "make install-strip". However 'strip' might not be the right
5061 # tool to use in cross-compilation environments, therefore Automake
5062 # will honor the 'STRIP' environment variable to overrule this program.
5063 if test "$cross_compiling" != no; then
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}strip; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_STRIP+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$STRIP"; then
5073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 STRIP=$ac_cv_prog_STRIP
5093 if test -n "$STRIP"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5095 $as_echo "$STRIP" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5103 if test -z "$ac_cv_prog_STRIP"; then
5104 ac_ct_STRIP=$STRIP
5105 # Extract the first word of "strip", so it can be a program name with args.
5106 set dummy strip; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_STRIP"; then
5113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_STRIP="strip"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5133 if test -n "$ac_ct_STRIP"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5135 $as_echo "$ac_ct_STRIP" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5141 if test "x$ac_ct_STRIP" = x; then
5142 STRIP=":"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150 STRIP=$ac_ct_STRIP
5152 else
5153 STRIP="$ac_cv_prog_STRIP"
5157 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5160 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5161 if test -z "$MKDIR_P"; then
5162 if ${ac_cv_path_mkdir+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_prog in mkdir gmkdir; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5173 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5174 'mkdir (GNU coreutils) '* | \
5175 'mkdir (coreutils) '* | \
5176 'mkdir (fileutils) '4.1*)
5177 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5178 break 3;;
5179 esac
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5187 test -d ./--version && rmdir ./--version
5188 if test "${ac_cv_path_mkdir+set}" = set; then
5189 MKDIR_P="$ac_cv_path_mkdir -p"
5190 else
5191 # As a last resort, use the slow shell script. Don't cache a
5192 # value for MKDIR_P within a source directory, because that will
5193 # break other packages using the cache if that directory is
5194 # removed, or if the value is a relative name.
5195 MKDIR_P="$ac_install_sh -d"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5199 $as_echo "$MKDIR_P" >&6; }
5201 for ac_prog in gawk mawk nawk awk
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_AWK+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$AWK"; then
5211 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_AWK="$ac_prog"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 AWK=$ac_cv_prog_AWK
5231 if test -n "$AWK"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5233 $as_echo "$AWK" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 test -n "$AWK" && break
5241 done
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5244 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5245 set x ${MAKE-make}
5246 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5247 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat >conftest.make <<\_ACEOF
5251 SHELL = /bin/sh
5252 all:
5253 @echo '@@@%%%=$(MAKE)=@@@%%%'
5254 _ACEOF
5255 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5256 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5257 *@@@%%%=?*=@@@%%%*)
5258 eval ac_cv_prog_make_${ac_make}_set=yes;;
5260 eval ac_cv_prog_make_${ac_make}_set=no;;
5261 esac
5262 rm -f conftest.make
5264 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5266 $as_echo "yes" >&6; }
5267 SET_MAKE=
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 SET_MAKE="MAKE=${MAKE-make}"
5274 rm -rf .tst 2>/dev/null
5275 mkdir .tst 2>/dev/null
5276 if test -d .tst; then
5277 am__leading_dot=.
5278 else
5279 am__leading_dot=_
5281 rmdir .tst 2>/dev/null
5283 DEPDIR="${am__leading_dot}deps"
5285 ac_config_commands="$ac_config_commands depfiles"
5288 am_make=${MAKE-make}
5289 cat > confinc << 'END'
5290 am__doit:
5291 @echo this is the am__doit target
5292 .PHONY: am__doit
5294 # If we don't find an include directive, just comment out the code.
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5296 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5297 am__include="#"
5298 am__quote=
5299 _am_result=none
5300 # First try GNU make style include.
5301 echo "include confinc" > confmf
5302 # Ignore all kinds of additional output from 'make'.
5303 case `$am_make -s -f confmf 2> /dev/null` in #(
5304 *the\ am__doit\ target*)
5305 am__include=include
5306 am__quote=
5307 _am_result=GNU
5309 esac
5310 # Now try BSD make style include.
5311 if test "$am__include" = "#"; then
5312 echo '.include "confinc"' > confmf
5313 case `$am_make -s -f confmf 2> /dev/null` in #(
5314 *the\ am__doit\ target*)
5315 am__include=.include
5316 am__quote="\""
5317 _am_result=BSD
5319 esac
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5324 $as_echo "$_am_result" >&6; }
5325 rm -f confinc confmf
5327 # Check whether --enable-dependency-tracking was given.
5328 if test "${enable_dependency_tracking+set}" = set; then :
5329 enableval=$enable_dependency_tracking;
5332 if test "x$enable_dependency_tracking" != xno; then
5333 am_depcomp="$ac_aux_dir/depcomp"
5334 AMDEPBACKSLASH='\'
5335 am__nodep='_no'
5337 if test "x$enable_dependency_tracking" != xno; then
5338 AMDEP_TRUE=
5339 AMDEP_FALSE='#'
5340 else
5341 AMDEP_TRUE='#'
5342 AMDEP_FALSE=
5346 # Check whether --enable-silent-rules was given.
5347 if test "${enable_silent_rules+set}" = set; then :
5348 enableval=$enable_silent_rules;
5351 case $enable_silent_rules in # (((
5352 yes) AM_DEFAULT_VERBOSITY=0;;
5353 no) AM_DEFAULT_VERBOSITY=1;;
5354 *) AM_DEFAULT_VERBOSITY=1;;
5355 esac
5356 am_make=${MAKE-make}
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5358 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5359 if ${am_cv_make_support_nested_variables+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if $as_echo 'TRUE=$(BAR$(V))
5363 BAR0=false
5364 BAR1=true
5366 am__doit:
5367 @$(TRUE)
5368 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5369 am_cv_make_support_nested_variables=yes
5370 else
5371 am_cv_make_support_nested_variables=no
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5375 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5376 if test $am_cv_make_support_nested_variables = yes; then
5377 AM_V='$(V)'
5378 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5379 else
5380 AM_V=$AM_DEFAULT_VERBOSITY
5381 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5383 AM_BACKSLASH='\'
5385 # Check whether --enable-compiler-warnings was given.
5386 if test "${enable_compiler_warnings+set}" = set; then :
5387 enableval=$enable_compiler_warnings;
5389 case $enable_compiler_warnings in #(
5390 no | min | yes | max | all) :
5391 ;; #(
5392 *) :
5393 if test "x$enable_maintainer_mode" = xyes; then :
5394 enable_compiler_warnings=yes
5395 else
5396 enable_compiler_warnings=min
5397 fi ;;
5398 esac
5400 case `pwd` in
5401 *\ * | *\ *)
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5403 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5404 esac
5408 macro_version='2.4.6'
5409 macro_revision='2.4.6'
5423 ltmain=$ac_aux_dir/ltmain.sh
5425 # Backslashify metacharacters that are still active within
5426 # double-quoted strings.
5427 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5429 # Same as above, but do not quote variable references.
5430 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5432 # Sed substitution to delay expansion of an escaped shell variable in a
5433 # double_quote_subst'ed string.
5434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5436 # Sed substitution to delay expansion of an escaped single quote.
5437 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5439 # Sed substitution to avoid accidental globbing in evaled expressions
5440 no_glob_subst='s/\*/\\\*/g'
5442 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5443 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5444 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5447 $as_echo_n "checking how to print strings... " >&6; }
5448 # Test print first, because it will be a builtin if present.
5449 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5450 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5451 ECHO='print -r --'
5452 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5453 ECHO='printf %s\n'
5454 else
5455 # Use this function as a fallback that always works.
5456 func_fallback_echo ()
5458 eval 'cat <<_LTECHO_EOF
5460 _LTECHO_EOF'
5462 ECHO='func_fallback_echo'
5465 # func_echo_all arg...
5466 # Invoke $ECHO with all args, space-separated.
5467 func_echo_all ()
5469 $ECHO ""
5472 case $ECHO in
5473 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5474 $as_echo "printf" >&6; } ;;
5475 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5476 $as_echo "print -r" >&6; } ;;
5477 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5478 $as_echo "cat" >&6; } ;;
5479 esac
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5495 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5496 if ${ac_cv_path_SED+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5500 for ac_i in 1 2 3 4 5 6 7; do
5501 ac_script="$ac_script$as_nl$ac_script"
5502 done
5503 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5504 { ac_script=; unset ac_script;}
5505 if test -z "$SED"; then
5506 ac_path_SED_found=false
5507 # Loop through the user's path and test for each of PROGNAME-LIST
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_prog in sed gsed; do
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5516 as_fn_executable_p "$ac_path_SED" || continue
5517 # Check for GNU ac_path_SED and select it if it is found.
5518 # Check for GNU $ac_path_SED
5519 case `"$ac_path_SED" --version 2>&1` in
5520 *GNU*)
5521 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5523 ac_count=0
5524 $as_echo_n 0123456789 >"conftest.in"
5525 while :
5527 cat "conftest.in" "conftest.in" >"conftest.tmp"
5528 mv "conftest.tmp" "conftest.in"
5529 cp "conftest.in" "conftest.nl"
5530 $as_echo '' >> "conftest.nl"
5531 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5533 as_fn_arith $ac_count + 1 && ac_count=$as_val
5534 if test $ac_count -gt ${ac_path_SED_max-0}; then
5535 # Best one so far, save it but keep looking for a better one
5536 ac_cv_path_SED="$ac_path_SED"
5537 ac_path_SED_max=$ac_count
5539 # 10*(2^10) chars as input seems more than enough
5540 test $ac_count -gt 10 && break
5541 done
5542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5543 esac
5545 $ac_path_SED_found && break 3
5546 done
5547 done
5548 done
5549 IFS=$as_save_IFS
5550 if test -z "$ac_cv_path_SED"; then
5551 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5553 else
5554 ac_cv_path_SED=$SED
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5559 $as_echo "$ac_cv_path_SED" >&6; }
5560 SED="$ac_cv_path_SED"
5561 rm -f conftest.sed
5563 test -z "$SED" && SED=sed
5564 Xsed="$SED -e 1s/^X//"
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5578 if ${ac_cv_path_GREP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -z "$GREP"; then
5582 ac_path_GREP_found=false
5583 # Loop through the user's path and test for each of PROGNAME-LIST
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_prog in grep ggrep; do
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5592 as_fn_executable_p "$ac_path_GREP" || continue
5593 # Check for GNU ac_path_GREP and select it if it is found.
5594 # Check for GNU $ac_path_GREP
5595 case `"$ac_path_GREP" --version 2>&1` in
5596 *GNU*)
5597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5599 ac_count=0
5600 $as_echo_n 0123456789 >"conftest.in"
5601 while :
5603 cat "conftest.in" "conftest.in" >"conftest.tmp"
5604 mv "conftest.tmp" "conftest.in"
5605 cp "conftest.in" "conftest.nl"
5606 $as_echo 'GREP' >> "conftest.nl"
5607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5609 as_fn_arith $ac_count + 1 && ac_count=$as_val
5610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5611 # Best one so far, save it but keep looking for a better one
5612 ac_cv_path_GREP="$ac_path_GREP"
5613 ac_path_GREP_max=$ac_count
5615 # 10*(2^10) chars as input seems more than enough
5616 test $ac_count -gt 10 && break
5617 done
5618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5619 esac
5621 $ac_path_GREP_found && break 3
5622 done
5623 done
5624 done
5625 IFS=$as_save_IFS
5626 if test -z "$ac_cv_path_GREP"; then
5627 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5629 else
5630 ac_cv_path_GREP=$GREP
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5635 $as_echo "$ac_cv_path_GREP" >&6; }
5636 GREP="$ac_cv_path_GREP"
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5640 $as_echo_n "checking for egrep... " >&6; }
5641 if ${ac_cv_path_EGREP+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5645 then ac_cv_path_EGREP="$GREP -E"
5646 else
5647 if test -z "$EGREP"; then
5648 ac_path_EGREP_found=false
5649 # Loop through the user's path and test for each of PROGNAME-LIST
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_prog in egrep; do
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5658 as_fn_executable_p "$ac_path_EGREP" || continue
5659 # Check for GNU ac_path_EGREP and select it if it is found.
5660 # Check for GNU $ac_path_EGREP
5661 case `"$ac_path_EGREP" --version 2>&1` in
5662 *GNU*)
5663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5665 ac_count=0
5666 $as_echo_n 0123456789 >"conftest.in"
5667 while :
5669 cat "conftest.in" "conftest.in" >"conftest.tmp"
5670 mv "conftest.tmp" "conftest.in"
5671 cp "conftest.in" "conftest.nl"
5672 $as_echo 'EGREP' >> "conftest.nl"
5673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5675 as_fn_arith $ac_count + 1 && ac_count=$as_val
5676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5677 # Best one so far, save it but keep looking for a better one
5678 ac_cv_path_EGREP="$ac_path_EGREP"
5679 ac_path_EGREP_max=$ac_count
5681 # 10*(2^10) chars as input seems more than enough
5682 test $ac_count -gt 10 && break
5683 done
5684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5685 esac
5687 $ac_path_EGREP_found && break 3
5688 done
5689 done
5690 done
5691 IFS=$as_save_IFS
5692 if test -z "$ac_cv_path_EGREP"; then
5693 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5695 else
5696 ac_cv_path_EGREP=$EGREP
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5702 $as_echo "$ac_cv_path_EGREP" >&6; }
5703 EGREP="$ac_cv_path_EGREP"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5707 $as_echo_n "checking for fgrep... " >&6; }
5708 if ${ac_cv_path_FGREP+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5712 then ac_cv_path_FGREP="$GREP -F"
5713 else
5714 if test -z "$FGREP"; then
5715 ac_path_FGREP_found=false
5716 # Loop through the user's path and test for each of PROGNAME-LIST
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_prog in fgrep; do
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5725 as_fn_executable_p "$ac_path_FGREP" || continue
5726 # Check for GNU ac_path_FGREP and select it if it is found.
5727 # Check for GNU $ac_path_FGREP
5728 case `"$ac_path_FGREP" --version 2>&1` in
5729 *GNU*)
5730 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5732 ac_count=0
5733 $as_echo_n 0123456789 >"conftest.in"
5734 while :
5736 cat "conftest.in" "conftest.in" >"conftest.tmp"
5737 mv "conftest.tmp" "conftest.in"
5738 cp "conftest.in" "conftest.nl"
5739 $as_echo 'FGREP' >> "conftest.nl"
5740 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5742 as_fn_arith $ac_count + 1 && ac_count=$as_val
5743 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5744 # Best one so far, save it but keep looking for a better one
5745 ac_cv_path_FGREP="$ac_path_FGREP"
5746 ac_path_FGREP_max=$ac_count
5748 # 10*(2^10) chars as input seems more than enough
5749 test $ac_count -gt 10 && break
5750 done
5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 esac
5754 $ac_path_FGREP_found && break 3
5755 done
5756 done
5757 done
5758 IFS=$as_save_IFS
5759 if test -z "$ac_cv_path_FGREP"; then
5760 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5762 else
5763 ac_cv_path_FGREP=$FGREP
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5769 $as_echo "$ac_cv_path_FGREP" >&6; }
5770 FGREP="$ac_cv_path_FGREP"
5773 test -z "$GREP" && GREP=grep
5793 # Check whether --with-gnu-ld was given.
5794 if test "${with_gnu_ld+set}" = set; then :
5795 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5796 else
5797 with_gnu_ld=no
5800 ac_prog=ld
5801 if test yes = "$GCC"; then
5802 # Check if gcc -print-prog-name=ld gives a path.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5804 $as_echo_n "checking for ld used by $CC... " >&6; }
5805 case $host in
5806 *-*-mingw*)
5807 # gcc leaves a trailing carriage return, which upsets mingw
5808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5811 esac
5812 case $ac_prog in
5813 # Accept absolute paths.
5814 [\\/]* | ?:[\\/]*)
5815 re_direlt='/[^/][^/]*/\.\./'
5816 # Canonicalize the pathname of ld
5817 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5818 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5819 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5820 done
5821 test -z "$LD" && LD=$ac_prog
5824 # If it fails, then pretend we aren't using GCC.
5825 ac_prog=ld
5828 # If it is relative, then search for the first ld in PATH.
5829 with_gnu_ld=unknown
5831 esac
5832 elif test yes = "$with_gnu_ld"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5834 $as_echo_n "checking for GNU ld... " >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5837 $as_echo_n "checking for non-GNU ld... " >&6; }
5839 if ${lt_cv_path_LD+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -z "$LD"; then
5843 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5844 for ac_dir in $PATH; do
5845 IFS=$lt_save_ifs
5846 test -z "$ac_dir" && ac_dir=.
5847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5848 lt_cv_path_LD=$ac_dir/$ac_prog
5849 # Check to see if the program is GNU ld. I'd rather use --version,
5850 # but apparently some variants of GNU ld only accept -v.
5851 # Break only if it was the GNU/non-GNU ld that we prefer.
5852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5853 *GNU* | *'with BFD'*)
5854 test no != "$with_gnu_ld" && break
5857 test yes != "$with_gnu_ld" && break
5859 esac
5861 done
5862 IFS=$lt_save_ifs
5863 else
5864 lt_cv_path_LD=$LD # Let the user override the test with a path.
5868 LD=$lt_cv_path_LD
5869 if test -n "$LD"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5871 $as_echo "$LD" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5879 if ${lt_cv_prog_gnu_ld+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5883 case `$LD -v 2>&1 </dev/null` in
5884 *GNU* | *'with BFD'*)
5885 lt_cv_prog_gnu_ld=yes
5888 lt_cv_prog_gnu_ld=no
5890 esac
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5893 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5894 with_gnu_ld=$lt_cv_prog_gnu_ld
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5905 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5906 if ${lt_cv_path_NM+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$NM"; then
5910 # Let the user override the test.
5911 lt_cv_path_NM=$NM
5912 else
5913 lt_nm_to_check=${ac_tool_prefix}nm
5914 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5915 lt_nm_to_check="$lt_nm_to_check nm"
5917 for lt_tmp_nm in $lt_nm_to_check; do
5918 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5919 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5920 IFS=$lt_save_ifs
5921 test -z "$ac_dir" && ac_dir=.
5922 tmp_nm=$ac_dir/$lt_tmp_nm
5923 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5924 # Check to see if the nm accepts a BSD-compat flag.
5925 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5926 # nm: unknown option "B" ignored
5927 # Tru64's nm complains that /dev/null is an invalid object file
5928 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5929 case $build_os in
5930 mingw*) lt_bad_file=conftest.nm/nofile ;;
5931 *) lt_bad_file=/dev/null ;;
5932 esac
5933 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5934 *$lt_bad_file* | *'Invalid file or object type'*)
5935 lt_cv_path_NM="$tmp_nm -B"
5936 break 2
5939 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5940 */dev/null*)
5941 lt_cv_path_NM="$tmp_nm -p"
5942 break 2
5945 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5946 continue # so that we can try to find one that supports BSD flags
5948 esac
5950 esac
5952 done
5953 IFS=$lt_save_ifs
5954 done
5955 : ${lt_cv_path_NM=no}
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5959 $as_echo "$lt_cv_path_NM" >&6; }
5960 if test no != "$lt_cv_path_NM"; then
5961 NM=$lt_cv_path_NM
5962 else
5963 # Didn't find any BSD compatible name lister, look for dumpbin.
5964 if test -n "$DUMPBIN"; then :
5965 # Let the user override the test.
5966 else
5967 if test -n "$ac_tool_prefix"; then
5968 for ac_prog in dumpbin "link -dump"
5970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_DUMPBIN+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$DUMPBIN"; then
5978 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5991 done
5992 done
5993 IFS=$as_save_IFS
5997 DUMPBIN=$ac_cv_prog_DUMPBIN
5998 if test -n "$DUMPBIN"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6000 $as_echo "$DUMPBIN" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6007 test -n "$DUMPBIN" && break
6008 done
6010 if test -z "$DUMPBIN"; then
6011 ac_ct_DUMPBIN=$DUMPBIN
6012 for ac_prog in dumpbin "link -dump"
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$ac_ct_DUMPBIN"; then
6022 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6035 done
6036 done
6037 IFS=$as_save_IFS
6041 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6042 if test -n "$ac_ct_DUMPBIN"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6044 $as_echo "$ac_ct_DUMPBIN" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6051 test -n "$ac_ct_DUMPBIN" && break
6052 done
6054 if test "x$ac_ct_DUMPBIN" = x; then
6055 DUMPBIN=":"
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058 yes:)
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061 ac_tool_warned=yes ;;
6062 esac
6063 DUMPBIN=$ac_ct_DUMPBIN
6067 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6068 *COFF*)
6069 DUMPBIN="$DUMPBIN -symbols -headers"
6072 DUMPBIN=:
6074 esac
6077 if test : != "$DUMPBIN"; then
6078 NM=$DUMPBIN
6081 test -z "$NM" && NM=nm
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6089 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6090 if ${lt_cv_nm_interface+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 lt_cv_nm_interface="BSD nm"
6094 echo "int some_variable = 0;" > conftest.$ac_ext
6095 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6096 (eval "$ac_compile" 2>conftest.err)
6097 cat conftest.err >&5
6098 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6099 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6100 cat conftest.err >&5
6101 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6102 cat conftest.out >&5
6103 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6104 lt_cv_nm_interface="MS dumpbin"
6106 rm -f conftest*
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6109 $as_echo "$lt_cv_nm_interface" >&6; }
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6112 $as_echo_n "checking whether ln -s works... " >&6; }
6113 LN_S=$as_ln_s
6114 if test "$LN_S" = "ln -s"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6116 $as_echo "yes" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6119 $as_echo "no, using $LN_S" >&6; }
6122 # find the maximum length of command line arguments
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6124 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6125 if ${lt_cv_sys_max_cmd_len+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6129 teststring=ABCD
6131 case $build_os in
6132 msdosdjgpp*)
6133 # On DJGPP, this test can blow up pretty badly due to problems in libc
6134 # (any single argument exceeding 2000 bytes causes a buffer overrun
6135 # during glob expansion). Even if it were fixed, the result of this
6136 # check would be larger than it should be.
6137 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6140 gnu*)
6141 # Under GNU Hurd, this test is not required because there is
6142 # no limit to the length of command line arguments.
6143 # Libtool will interpret -1 as no limit whatsoever
6144 lt_cv_sys_max_cmd_len=-1;
6147 cygwin* | mingw* | cegcc*)
6148 # On Win9x/ME, this test blows up -- it succeeds, but takes
6149 # about 5 minutes as the teststring grows exponentially.
6150 # Worse, since 9x/ME are not pre-emptively multitasking,
6151 # you end up with a "frozen" computer, even though with patience
6152 # the test eventually succeeds (with a max line length of 256k).
6153 # Instead, let's just punt: use the minimum linelength reported by
6154 # all of the supported platforms: 8192 (on NT/2K/XP).
6155 lt_cv_sys_max_cmd_len=8192;
6158 mint*)
6159 # On MiNT this can take a long time and run out of memory.
6160 lt_cv_sys_max_cmd_len=8192;
6163 amigaos*)
6164 # On AmigaOS with pdksh, this test takes hours, literally.
6165 # So we just punt and use a minimum line length of 8192.
6166 lt_cv_sys_max_cmd_len=8192;
6169 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6170 # This has been around since 386BSD, at least. Likely further.
6171 if test -x /sbin/sysctl; then
6172 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6173 elif test -x /usr/sbin/sysctl; then
6174 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6175 else
6176 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6178 # And add a safety zone
6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6183 interix*)
6184 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6185 lt_cv_sys_max_cmd_len=196608
6188 os2*)
6189 # The test takes a long time on OS/2.
6190 lt_cv_sys_max_cmd_len=8192
6193 osf*)
6194 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6195 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6196 # nice to cause kernel panics so lets avoid the loop below.
6197 # First set a reasonable default.
6198 lt_cv_sys_max_cmd_len=16384
6200 if test -x /sbin/sysconfig; then
6201 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6202 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6203 esac
6206 sco3.2v5*)
6207 lt_cv_sys_max_cmd_len=102400
6209 sysv5* | sco5v6* | sysv4.2uw2*)
6210 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6211 if test -n "$kargmax"; then
6212 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6213 else
6214 lt_cv_sys_max_cmd_len=32768
6218 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6219 if test -n "$lt_cv_sys_max_cmd_len" && \
6220 test undefined != "$lt_cv_sys_max_cmd_len"; then
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6223 else
6224 # Make teststring a little bigger before we do anything with it.
6225 # a 1K string should be a reasonable start.
6226 for i in 1 2 3 4 5 6 7 8; do
6227 teststring=$teststring$teststring
6228 done
6229 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6230 # If test is not a shell built-in, we'll probably end up computing a
6231 # maximum length that is only half of the actual maximum length, but
6232 # we can't tell.
6233 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6234 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6235 test 17 != "$i" # 1/2 MB should be enough
6237 i=`expr $i + 1`
6238 teststring=$teststring$teststring
6239 done
6240 # Only check the string length outside the loop.
6241 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6242 teststring=
6243 # Add a significant safety factor because C++ compilers can tack on
6244 # massive amounts of additional arguments before passing them to the
6245 # linker. It appears as though 1/2 is a usable value.
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6249 esac
6253 if test -n "$lt_cv_sys_max_cmd_len"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6255 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6258 $as_echo "none" >&6; }
6260 max_cmd_len=$lt_cv_sys_max_cmd_len
6267 : ${CP="cp -f"}
6268 : ${MV="mv -f"}
6269 : ${RM="rm -f"}
6271 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6272 lt_unset=unset
6273 else
6274 lt_unset=false
6281 # test EBCDIC or ASCII
6282 case `echo X|tr X '\101'` in
6283 A) # ASCII based system
6284 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6285 lt_SP2NL='tr \040 \012'
6286 lt_NL2SP='tr \015\012 \040\040'
6288 *) # EBCDIC based system
6289 lt_SP2NL='tr \100 \n'
6290 lt_NL2SP='tr \r\n \100\100'
6292 esac
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6303 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6304 if ${lt_cv_to_host_file_cmd+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 case $host in
6308 *-*-mingw* )
6309 case $build in
6310 *-*-mingw* ) # actually msys
6311 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6313 *-*-cygwin* )
6314 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6316 * ) # otherwise, assume *nix
6317 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6319 esac
6321 *-*-cygwin* )
6322 case $build in
6323 *-*-mingw* ) # actually msys
6324 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6326 *-*-cygwin* )
6327 lt_cv_to_host_file_cmd=func_convert_file_noop
6329 * ) # otherwise, assume *nix
6330 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6332 esac
6334 * ) # unhandled hosts (and "normal" native builds)
6335 lt_cv_to_host_file_cmd=func_convert_file_noop
6337 esac
6341 to_host_file_cmd=$lt_cv_to_host_file_cmd
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6343 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6350 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6351 if ${lt_cv_to_tool_file_cmd+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 #assume ordinary cross tools, or native build.
6355 lt_cv_to_tool_file_cmd=func_convert_file_noop
6356 case $host in
6357 *-*-mingw* )
6358 case $build in
6359 *-*-mingw* ) # actually msys
6360 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6362 esac
6364 esac
6368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6370 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6377 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6378 if ${lt_cv_ld_reload_flag+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 lt_cv_ld_reload_flag='-r'
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6384 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6385 reload_flag=$lt_cv_ld_reload_flag
6386 case $reload_flag in
6387 "" | " "*) ;;
6388 *) reload_flag=" $reload_flag" ;;
6389 esac
6390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6391 case $host_os in
6392 cygwin* | mingw* | pw32* | cegcc*)
6393 if test yes != "$GCC"; then
6394 reload_cmds=false
6397 darwin*)
6398 if test yes = "$GCC"; then
6399 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6400 else
6401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6404 esac
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_OBJDUMP+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$OBJDUMP"; then
6423 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6436 done
6437 done
6438 IFS=$as_save_IFS
6442 OBJDUMP=$ac_cv_prog_OBJDUMP
6443 if test -n "$OBJDUMP"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6445 $as_echo "$OBJDUMP" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6453 if test -z "$ac_cv_prog_OBJDUMP"; then
6454 ac_ct_OBJDUMP=$OBJDUMP
6455 # Extract the first word of "objdump", so it can be a program name with args.
6456 set dummy objdump; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$ac_ct_OBJDUMP"; then
6463 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6476 done
6477 done
6478 IFS=$as_save_IFS
6482 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6483 if test -n "$ac_ct_OBJDUMP"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6485 $as_echo "$ac_ct_OBJDUMP" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6491 if test "x$ac_ct_OBJDUMP" = x; then
6492 OBJDUMP="false"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 OBJDUMP=$ac_ct_OBJDUMP
6502 else
6503 OBJDUMP="$ac_cv_prog_OBJDUMP"
6506 test -z "$OBJDUMP" && OBJDUMP=objdump
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6514 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6515 if ${lt_cv_deplibs_check_method+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_file_magic_cmd='$MAGIC_CMD'
6519 lt_cv_file_magic_test_file=
6520 lt_cv_deplibs_check_method='unknown'
6521 # Need to set the preceding variable on all platforms that support
6522 # interlibrary dependencies.
6523 # 'none' -- dependencies not supported.
6524 # 'unknown' -- same as none, but documents that we really don't know.
6525 # 'pass_all' -- all dependencies passed with no checks.
6526 # 'test_compile' -- check by making test program.
6527 # 'file_magic [[regex]]' -- check by looking for files in library path
6528 # that responds to the $file_magic_cmd with a given extended regex.
6529 # If you have 'file' or equivalent on your system and you're not sure
6530 # whether 'pass_all' will *always* work, you probably want this one.
6532 case $host_os in
6533 aix[4-9]*)
6534 lt_cv_deplibs_check_method=pass_all
6537 beos*)
6538 lt_cv_deplibs_check_method=pass_all
6541 bsdi[45]*)
6542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6543 lt_cv_file_magic_cmd='/usr/bin/file -L'
6544 lt_cv_file_magic_test_file=/shlib/libc.so
6547 cygwin*)
6548 # func_win32_libid is a shell function defined in ltmain.sh
6549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6550 lt_cv_file_magic_cmd='func_win32_libid'
6553 mingw* | pw32*)
6554 # Base MSYS/MinGW do not provide the 'file' command needed by
6555 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6556 # unless we find 'file', for example because we are cross-compiling.
6557 if ( file / ) >/dev/null 2>&1; then
6558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6559 lt_cv_file_magic_cmd='func_win32_libid'
6560 else
6561 # Keep this pattern in sync with the one in func_win32_libid.
6562 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6563 lt_cv_file_magic_cmd='$OBJDUMP -f'
6567 cegcc*)
6568 # use the weaker test based on 'objdump'. See mingw*.
6569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6570 lt_cv_file_magic_cmd='$OBJDUMP -f'
6573 darwin* | rhapsody*)
6574 lt_cv_deplibs_check_method=pass_all
6577 freebsd* | dragonfly*)
6578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6579 case $host_cpu in
6580 i*86 )
6581 # Not sure whether the presence of OpenBSD here was a mistake.
6582 # Let's accept both of them until this is cleared up.
6583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6584 lt_cv_file_magic_cmd=/usr/bin/file
6585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6587 esac
6588 else
6589 lt_cv_deplibs_check_method=pass_all
6593 haiku*)
6594 lt_cv_deplibs_check_method=pass_all
6597 hpux10.20* | hpux11*)
6598 lt_cv_file_magic_cmd=/usr/bin/file
6599 case $host_cpu in
6600 ia64*)
6601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6604 hppa*64*)
6605 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]'
6606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6612 esac
6615 interix[3-9]*)
6616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6620 irix5* | irix6* | nonstopux*)
6621 case $LD in
6622 *-32|*"-32 ") libmagic=32-bit;;
6623 *-n32|*"-n32 ") libmagic=N32;;
6624 *-64|*"-64 ") libmagic=64-bit;;
6625 *) libmagic=never-match;;
6626 esac
6627 lt_cv_deplibs_check_method=pass_all
6630 # This must be glibc/ELF.
6631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6632 lt_cv_deplibs_check_method=pass_all
6635 netbsd*)
6636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638 else
6639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6643 newos6*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6645 lt_cv_file_magic_cmd=/usr/bin/file
6646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6649 *nto* | *qnx*)
6650 lt_cv_deplibs_check_method=pass_all
6653 openbsd* | bitrig*)
6654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6656 else
6657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6661 osf3* | osf4* | osf5*)
6662 lt_cv_deplibs_check_method=pass_all
6665 rdos*)
6666 lt_cv_deplibs_check_method=pass_all
6669 solaris*)
6670 lt_cv_deplibs_check_method=pass_all
6673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6674 lt_cv_deplibs_check_method=pass_all
6677 sysv4 | sysv4.3*)
6678 case $host_vendor in
6679 motorola)
6680 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]'
6681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6683 ncr)
6684 lt_cv_deplibs_check_method=pass_all
6686 sequent)
6687 lt_cv_file_magic_cmd='/bin/file'
6688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6690 sni)
6691 lt_cv_file_magic_cmd='/bin/file'
6692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6693 lt_cv_file_magic_test_file=/lib/libc.so
6695 siemens)
6696 lt_cv_deplibs_check_method=pass_all
6699 lt_cv_deplibs_check_method=pass_all
6701 esac
6704 tpf*)
6705 lt_cv_deplibs_check_method=pass_all
6707 os2*)
6708 lt_cv_deplibs_check_method=pass_all
6710 esac
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6714 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6716 file_magic_glob=
6717 want_nocaseglob=no
6718 if test "$build" = "$host"; then
6719 case $host_os in
6720 mingw* | pw32*)
6721 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6722 want_nocaseglob=yes
6723 else
6724 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6727 esac
6730 file_magic_cmd=$lt_cv_file_magic_cmd
6731 deplibs_check_method=$lt_cv_deplibs_check_method
6732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_DLLTOOL+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$DLLTOOL"; then
6764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6777 done
6778 done
6779 IFS=$as_save_IFS
6783 DLLTOOL=$ac_cv_prog_DLLTOOL
6784 if test -n "$DLLTOOL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6786 $as_echo "$DLLTOOL" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6794 if test -z "$ac_cv_prog_DLLTOOL"; then
6795 ac_ct_DLLTOOL=$DLLTOOL
6796 # Extract the first word of "dlltool", so it can be a program name with args.
6797 set dummy dlltool; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$ac_ct_DLLTOOL"; then
6804 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6817 done
6818 done
6819 IFS=$as_save_IFS
6823 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6824 if test -n "$ac_ct_DLLTOOL"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6826 $as_echo "$ac_ct_DLLTOOL" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6832 if test "x$ac_ct_DLLTOOL" = x; then
6833 DLLTOOL="false"
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839 ac_tool_warned=yes ;;
6840 esac
6841 DLLTOOL=$ac_ct_DLLTOOL
6843 else
6844 DLLTOOL="$ac_cv_prog_DLLTOOL"
6847 test -z "$DLLTOOL" && DLLTOOL=dlltool
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 lt_cv_sharedlib_from_linklib_cmd='unknown'
6862 case $host_os in
6863 cygwin* | mingw* | pw32* | cegcc*)
6864 # two different shell functions defined in ltmain.sh;
6865 # decide which one to use based on capabilities of $DLLTOOL
6866 case `$DLLTOOL --help 2>&1` in
6867 *--identify-strict*)
6868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6871 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6873 esac
6876 # fallback: assume linklib IS sharedlib
6877 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6879 esac
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6893 if test -n "$ac_tool_prefix"; then
6894 for ac_prog in ar
6896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_AR+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$AR"; then
6904 ac_cv_prog_AR="$AR" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6917 done
6918 done
6919 IFS=$as_save_IFS
6923 AR=$ac_cv_prog_AR
6924 if test -n "$AR"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6926 $as_echo "$AR" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6933 test -n "$AR" && break
6934 done
6936 if test -z "$AR"; then
6937 ac_ct_AR=$AR
6938 for ac_prog in ar
6940 # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_AR"; then
6948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_AR="$ac_prog"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6961 done
6962 done
6963 IFS=$as_save_IFS
6967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6968 if test -n "$ac_ct_AR"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6970 $as_echo "$ac_ct_AR" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6977 test -n "$ac_ct_AR" && break
6978 done
6980 if test "x$ac_ct_AR" = x; then
6981 AR="false"
6982 else
6983 case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989 AR=$ac_ct_AR
6993 : ${AR=ar}
6994 : ${AR_FLAGS=cru}
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7007 $as_echo_n "checking for archiver @FILE support... " >&6; }
7008 if ${lt_cv_ar_at_file+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 lt_cv_ar_at_file=no
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7016 main ()
7020 return 0;
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024 echo conftest.$ac_objext > conftest.lst
7025 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7027 (eval $lt_ar_try) 2>&5
7028 ac_status=$?
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }
7031 if test 0 -eq "$ac_status"; then
7032 # Ensure the archiver fails upon bogus file names.
7033 rm -f conftest.$ac_objext libconftest.a
7034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7035 (eval $lt_ar_try) 2>&5
7036 ac_status=$?
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }
7039 if test 0 -ne "$ac_status"; then
7040 lt_cv_ar_at_file=@
7043 rm -f conftest.* libconftest.a
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7050 $as_echo "$lt_cv_ar_at_file" >&6; }
7052 if test no = "$lt_cv_ar_at_file"; then
7053 archiver_list_spec=
7054 else
7055 archiver_list_spec=$lt_cv_ar_at_file
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}strip; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_STRIP+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 if test -n "$STRIP"; then
7073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7086 done
7087 done
7088 IFS=$as_save_IFS
7092 STRIP=$ac_cv_prog_STRIP
7093 if test -n "$STRIP"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7095 $as_echo "$STRIP" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7103 if test -z "$ac_cv_prog_STRIP"; then
7104 ac_ct_STRIP=$STRIP
7105 # Extract the first word of "strip", so it can be a program name with args.
7106 set dummy strip; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 if test -n "$ac_ct_STRIP"; then
7113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_STRIP="strip"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7126 done
7127 done
7128 IFS=$as_save_IFS
7132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7133 if test -n "$ac_ct_STRIP"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7135 $as_echo "$ac_ct_STRIP" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7141 if test "x$ac_ct_STRIP" = x; then
7142 STRIP=":"
7143 else
7144 case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150 STRIP=$ac_ct_STRIP
7152 else
7153 STRIP="$ac_cv_prog_STRIP"
7156 test -z "$STRIP" && STRIP=:
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_RANLIB+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 if test -n "$RANLIB"; then
7172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7187 IFS=$as_save_IFS
7191 RANLIB=$ac_cv_prog_RANLIB
7192 if test -n "$RANLIB"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7194 $as_echo "$RANLIB" >&6; }
7195 else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7202 if test -z "$ac_cv_prog_RANLIB"; then
7203 ac_ct_RANLIB=$RANLIB
7204 # Extract the first word of "ranlib", so it can be a program name with args.
7205 set dummy ranlib; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 if test -n "$ac_ct_RANLIB"; then
7212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_RANLIB="ranlib"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7225 done
7226 done
7227 IFS=$as_save_IFS
7231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7232 if test -n "$ac_ct_RANLIB"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7234 $as_echo "$ac_ct_RANLIB" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7240 if test "x$ac_ct_RANLIB" = x; then
7241 RANLIB=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249 RANLIB=$ac_ct_RANLIB
7251 else
7252 RANLIB="$ac_cv_prog_RANLIB"
7255 test -z "$RANLIB" && RANLIB=:
7262 # Determine commands to create old-style static archives.
7263 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7264 old_postinstall_cmds='chmod 644 $oldlib'
7265 old_postuninstall_cmds=
7267 if test -n "$RANLIB"; then
7268 case $host_os in
7269 bitrig* | openbsd*)
7270 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7275 esac
7276 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7279 case $host_os in
7280 darwin*)
7281 lock_old_archive_extraction=yes ;;
7283 lock_old_archive_extraction=no ;;
7284 esac
7324 # If no C compiler was specified, use CC.
7325 LTCC=${LTCC-"$CC"}
7327 # If no C compiler flags were specified, use CFLAGS.
7328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7330 # Allow CC to be a program name with arguments.
7331 compiler=$CC
7334 # Check for command to grab the raw symbol name followed by C symbol from nm.
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7336 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7337 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7341 # These are sane defaults that work on at least a few old systems.
7342 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7344 # Character class describing NM global symbol codes.
7345 symcode='[BCDEGRST]'
7347 # Regexp to match symbols that can be accessed directly from C.
7348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7350 # Define system-specific variables.
7351 case $host_os in
7352 aix*)
7353 symcode='[BCDT]'
7355 cygwin* | mingw* | pw32* | cegcc*)
7356 symcode='[ABCDGISTW]'
7358 hpux*)
7359 if test ia64 = "$host_cpu"; then
7360 symcode='[ABCDEGRST]'
7363 irix* | nonstopux*)
7364 symcode='[BCDEGRST]'
7366 osf*)
7367 symcode='[BCDEGQRST]'
7369 solaris*)
7370 symcode='[BDRT]'
7372 sco3.2v5*)
7373 symcode='[DT]'
7375 sysv4.2uw2*)
7376 symcode='[DT]'
7378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7379 symcode='[ABDT]'
7381 sysv4)
7382 symcode='[DFNSTU]'
7384 esac
7386 # If we're using GNU nm, then use its standard symbol codes.
7387 case `$NM -V 2>&1` in
7388 *GNU* | *'with BFD'*)
7389 symcode='[ABCDGIRSTW]' ;;
7390 esac
7392 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7393 # Gets list of data symbols to import.
7394 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7395 # Adjust the below global symbol transforms to fixup imported variables.
7396 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7397 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7398 lt_c_name_lib_hook="\
7399 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7400 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7401 else
7402 # Disable hooks by default.
7403 lt_cv_sys_global_symbol_to_import=
7404 lt_cdecl_hook=
7405 lt_c_name_hook=
7406 lt_c_name_lib_hook=
7409 # Transform an extracted symbol line into a proper C declaration.
7410 # Some systems (esp. on ia64) link data and code symbols differently,
7411 # so use this general approach.
7412 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7413 $lt_cdecl_hook\
7414 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7415 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7417 # Transform an extracted symbol line into symbol name and symbol address
7418 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7419 $lt_c_name_hook\
7420 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7421 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7423 # Transform an extracted symbol line into symbol name with lib prefix and
7424 # symbol address.
7425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7426 $lt_c_name_lib_hook\
7427 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7428 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7429 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7431 # Handle CRLF in mingw tool chain
7432 opt_cr=
7433 case $build_os in
7434 mingw*)
7435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7437 esac
7439 # Try without a prefix underscore, then with it.
7440 for ac_symprfx in "" "_"; do
7442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7443 symxfrm="\\1 $ac_symprfx\\2 \\2"
7445 # Write the raw and C identifiers.
7446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7447 # Fake it for dumpbin and say T for any non-static function,
7448 # D for any global variable and I for any imported variable.
7449 # Also find C++ and __fastcall symbols from MSVC++,
7450 # which start with @ or ?.
7451 lt_cv_sys_global_symbol_pipe="$AWK '"\
7452 " {last_section=section; section=\$ 3};"\
7453 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7454 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7455 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7456 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7457 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7458 " \$ 0!~/External *\|/{next};"\
7459 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7460 " {if(hide[section]) next};"\
7461 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7462 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7463 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7464 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7465 " ' prfx=^$ac_symprfx"
7466 else
7467 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7469 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7471 # Check to see that the pipe works correctly.
7472 pipe_works=no
7474 rm -f conftest*
7475 cat > conftest.$ac_ext <<_LT_EOF
7476 #ifdef __cplusplus
7477 extern "C" {
7478 #endif
7479 char nm_test_var;
7480 void nm_test_func(void);
7481 void nm_test_func(void){}
7482 #ifdef __cplusplus
7484 #endif
7485 int main(){nm_test_var='a';nm_test_func();return(0);}
7486 _LT_EOF
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489 (eval $ac_compile) 2>&5
7490 ac_status=$?
7491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 # Now try to grab the symbols.
7494 nlist=conftest.nm
7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7496 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; } && test -s "$nlist"; then
7500 # Try sorting and uniquifying the output.
7501 if sort "$nlist" | uniq > "$nlist"T; then
7502 mv -f "$nlist"T "$nlist"
7503 else
7504 rm -f "$nlist"T
7507 # Make sure that we snagged all the symbols we need.
7508 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7509 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7510 cat <<_LT_EOF > conftest.$ac_ext
7511 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7512 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7513 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7514 relocations are performed -- see ld's documentation on pseudo-relocs. */
7515 # define LT_DLSYM_CONST
7516 #elif defined __osf__
7517 /* This system does not cope well with relocations in const data. */
7518 # define LT_DLSYM_CONST
7519 #else
7520 # define LT_DLSYM_CONST const
7521 #endif
7523 #ifdef __cplusplus
7524 extern "C" {
7525 #endif
7527 _LT_EOF
7528 # Now generate the symbol file.
7529 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7531 cat <<_LT_EOF >> conftest.$ac_ext
7533 /* The mapping between symbol names and symbols. */
7534 LT_DLSYM_CONST struct {
7535 const char *name;
7536 void *address;
7538 lt__PROGRAM__LTX_preloaded_symbols[] =
7540 { "@PROGRAM@", (void *) 0 },
7541 _LT_EOF
7542 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7543 cat <<\_LT_EOF >> conftest.$ac_ext
7544 {0, (void *) 0}
7547 /* This works around a problem in FreeBSD linker */
7548 #ifdef FREEBSD_WORKAROUND
7549 static const void *lt_preloaded_setup() {
7550 return lt__PROGRAM__LTX_preloaded_symbols;
7552 #endif
7554 #ifdef __cplusplus
7556 #endif
7557 _LT_EOF
7558 # Now try linking the two files.
7559 mv conftest.$ac_objext conftstm.$ac_objext
7560 lt_globsym_save_LIBS=$LIBS
7561 lt_globsym_save_CFLAGS=$CFLAGS
7562 LIBS=conftstm.$ac_objext
7563 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7565 (eval $ac_link) 2>&5
7566 ac_status=$?
7567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7569 pipe_works=yes
7571 LIBS=$lt_globsym_save_LIBS
7572 CFLAGS=$lt_globsym_save_CFLAGS
7573 else
7574 echo "cannot find nm_test_func in $nlist" >&5
7576 else
7577 echo "cannot find nm_test_var in $nlist" >&5
7579 else
7580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7582 else
7583 echo "$progname: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 rm -rf conftest* conftst*
7588 # Do not use the global_symbol_pipe unless it works.
7589 if test yes = "$pipe_works"; then
7590 break
7591 else
7592 lt_cv_sys_global_symbol_pipe=
7594 done
7598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7599 lt_cv_sys_global_symbol_to_cdecl=
7601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7603 $as_echo "failed" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7606 $as_echo "ok" >&6; }
7609 # Response file support.
7610 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7611 nm_file_list_spec='@'
7612 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7613 nm_file_list_spec='@'
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7653 $as_echo_n "checking for sysroot... " >&6; }
7655 # Check whether --with-sysroot was given.
7656 if test "${with_sysroot+set}" = set; then :
7657 withval=$with_sysroot;
7658 else
7659 with_sysroot=no
7663 lt_sysroot=
7664 case $with_sysroot in #(
7665 yes)
7666 if test yes = "$GCC"; then
7667 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7669 ;; #(
7671 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7672 ;; #(
7673 no|'')
7674 ;; #(
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7677 $as_echo "$with_sysroot" >&6; }
7678 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7680 esac
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7683 $as_echo "${lt_sysroot:-no}" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7690 $as_echo_n "checking for a working dd... " >&6; }
7691 if ${ac_cv_path_lt_DD+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 printf 0123456789abcdef0123456789abcdef >conftest.i
7695 cat conftest.i conftest.i >conftest2.i
7696 : ${lt_DD:=$DD}
7697 if test -z "$lt_DD"; then
7698 ac_path_lt_DD_found=false
7699 # Loop through the user's path and test for each of PROGNAME-LIST
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_prog in dd; do
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7708 as_fn_executable_p "$ac_path_lt_DD" || continue
7709 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7710 cmp -s conftest.i conftest.out \
7711 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7713 $ac_path_lt_DD_found && break 3
7714 done
7715 done
7716 done
7717 IFS=$as_save_IFS
7718 if test -z "$ac_cv_path_lt_DD"; then
7721 else
7722 ac_cv_path_lt_DD=$lt_DD
7725 rm -f conftest.i conftest2.i conftest.out
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7728 $as_echo "$ac_cv_path_lt_DD" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7732 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7733 if ${lt_cv_truncate_bin+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 printf 0123456789abcdef0123456789abcdef >conftest.i
7737 cat conftest.i conftest.i >conftest2.i
7738 lt_cv_truncate_bin=
7739 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7740 cmp -s conftest.i conftest.out \
7741 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7743 rm -f conftest.i conftest2.i conftest.out
7744 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7747 $as_echo "$lt_cv_truncate_bin" >&6; }
7755 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7756 func_cc_basename ()
7758 for cc_temp in $*""; do
7759 case $cc_temp in
7760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7762 \-*) ;;
7763 *) break;;
7764 esac
7765 done
7766 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7769 # Check whether --enable-libtool-lock was given.
7770 if test "${enable_libtool_lock+set}" = set; then :
7771 enableval=$enable_libtool_lock;
7774 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7776 # Some flags need to be propagated to the compiler or linker for good
7777 # libtool support.
7778 case $host in
7779 ia64-*-hpux*)
7780 # Find out what ABI is being produced by ac_compile, and set mode
7781 # options accordingly.
7782 echo 'int i;' > conftest.$ac_ext
7783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7784 (eval $ac_compile) 2>&5
7785 ac_status=$?
7786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787 test $ac_status = 0; }; then
7788 case `/usr/bin/file conftest.$ac_objext` in
7789 *ELF-32*)
7790 HPUX_IA64_MODE=32
7792 *ELF-64*)
7793 HPUX_IA64_MODE=64
7795 esac
7797 rm -rf conftest*
7799 *-*-irix6*)
7800 # Find out what ABI is being produced by ac_compile, and set linker
7801 # options accordingly.
7802 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7804 (eval $ac_compile) 2>&5
7805 ac_status=$?
7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7807 test $ac_status = 0; }; then
7808 if test yes = "$lt_cv_prog_gnu_ld"; then
7809 case `/usr/bin/file conftest.$ac_objext` in
7810 *32-bit*)
7811 LD="${LD-ld} -melf32bsmip"
7813 *N32*)
7814 LD="${LD-ld} -melf32bmipn32"
7816 *64-bit*)
7817 LD="${LD-ld} -melf64bmip"
7819 esac
7820 else
7821 case `/usr/bin/file conftest.$ac_objext` in
7822 *32-bit*)
7823 LD="${LD-ld} -32"
7825 *N32*)
7826 LD="${LD-ld} -n32"
7828 *64-bit*)
7829 LD="${LD-ld} -64"
7831 esac
7834 rm -rf conftest*
7837 mips64*-*linux*)
7838 # Find out what ABI is being produced by ac_compile, and set linker
7839 # options accordingly.
7840 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7842 (eval $ac_compile) 2>&5
7843 ac_status=$?
7844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; }; then
7846 emul=elf
7847 case `/usr/bin/file conftest.$ac_objext` in
7848 *32-bit*)
7849 emul="${emul}32"
7851 *64-bit*)
7852 emul="${emul}64"
7854 esac
7855 case `/usr/bin/file conftest.$ac_objext` in
7856 *MSB*)
7857 emul="${emul}btsmip"
7859 *LSB*)
7860 emul="${emul}ltsmip"
7862 esac
7863 case `/usr/bin/file conftest.$ac_objext` in
7864 *N32*)
7865 emul="${emul}n32"
7867 esac
7868 LD="${LD-ld} -m $emul"
7870 rm -rf conftest*
7873 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7874 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7875 # Find out what ABI is being produced by ac_compile, and set linker
7876 # options accordingly. Note that the listed cases only cover the
7877 # situations where additional linker options are needed (such as when
7878 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7879 # vice versa); the common cases where no linker options are needed do
7880 # not appear in the list.
7881 echo 'int i;' > conftest.$ac_ext
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7883 (eval $ac_compile) 2>&5
7884 ac_status=$?
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; }; then
7887 case `/usr/bin/file conftest.o` in
7888 *32-bit*)
7889 case $host in
7890 x86_64-*kfreebsd*-gnu)
7891 LD="${LD-ld} -m elf_i386_fbsd"
7893 x86_64-*linux*)
7894 case `/usr/bin/file conftest.o` in
7895 *x86-64*)
7896 LD="${LD-ld} -m elf32_x86_64"
7899 LD="${LD-ld} -m elf_i386"
7901 esac
7903 powerpc64le-*linux*)
7904 LD="${LD-ld} -m elf32lppclinux"
7906 powerpc64-*linux*)
7907 LD="${LD-ld} -m elf32ppclinux"
7909 s390x-*linux*)
7910 LD="${LD-ld} -m elf_s390"
7912 sparc64-*linux*)
7913 LD="${LD-ld} -m elf32_sparc"
7915 esac
7917 *64-bit*)
7918 case $host in
7919 x86_64-*kfreebsd*-gnu)
7920 LD="${LD-ld} -m elf_x86_64_fbsd"
7922 x86_64-*linux*)
7923 LD="${LD-ld} -m elf_x86_64"
7925 powerpcle-*linux*)
7926 LD="${LD-ld} -m elf64lppc"
7928 powerpc-*linux*)
7929 LD="${LD-ld} -m elf64ppc"
7931 s390*-*linux*|s390*-*tpf*)
7932 LD="${LD-ld} -m elf64_s390"
7934 sparc*-*linux*)
7935 LD="${LD-ld} -m elf64_sparc"
7937 esac
7939 esac
7941 rm -rf conftest*
7944 *-*-sco3.2v5*)
7945 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7946 SAVE_CFLAGS=$CFLAGS
7947 CFLAGS="$CFLAGS -belf"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7949 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7950 if ${lt_cv_cc_needs_belf+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 ac_ext=c
7954 ac_cpp='$CPP $CPPFLAGS'
7955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7963 main ()
7967 return 0;
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 lt_cv_cc_needs_belf=yes
7972 else
7973 lt_cv_cc_needs_belf=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 ac_ext=c
7978 ac_cpp='$CPP $CPPFLAGS'
7979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7985 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7986 if test yes != "$lt_cv_cc_needs_belf"; then
7987 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7988 CFLAGS=$SAVE_CFLAGS
7991 *-*solaris*)
7992 # Find out what ABI is being produced by ac_compile, and set linker
7993 # options accordingly.
7994 echo 'int i;' > conftest.$ac_ext
7995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7996 (eval $ac_compile) 2>&5
7997 ac_status=$?
7998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7999 test $ac_status = 0; }; then
8000 case `/usr/bin/file conftest.o` in
8001 *64-bit*)
8002 case $lt_cv_prog_gnu_ld in
8003 yes*)
8004 case $host in
8005 i?86-*-solaris*|x86_64-*-solaris*)
8006 LD="${LD-ld} -m elf_x86_64"
8008 sparc*-*-solaris*)
8009 LD="${LD-ld} -m elf64_sparc"
8011 esac
8012 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8013 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8014 LD=${LD-ld}_sol2
8018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8019 LD="${LD-ld} -64"
8022 esac
8024 esac
8026 rm -rf conftest*
8028 esac
8030 need_locks=$enable_libtool_lock
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}mt; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 if test -n "$MANIFEST_TOOL"; then
8041 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8054 done
8055 done
8056 IFS=$as_save_IFS
8060 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8061 if test -n "$MANIFEST_TOOL"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8063 $as_echo "$MANIFEST_TOOL" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8071 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8072 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8073 # Extract the first word of "mt", so it can be a program name with args.
8074 set dummy mt; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$ac_ct_MANIFEST_TOOL"; then
8081 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8096 IFS=$as_save_IFS
8100 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8101 if test -n "$ac_ct_MANIFEST_TOOL"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8103 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8109 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8110 MANIFEST_TOOL=":"
8111 else
8112 case $cross_compiling:$ac_tool_warned in
8113 yes:)
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116 ac_tool_warned=yes ;;
8117 esac
8118 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8120 else
8121 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8124 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8126 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8127 if ${lt_cv_path_mainfest_tool+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 lt_cv_path_mainfest_tool=no
8131 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8132 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8133 cat conftest.err >&5
8134 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8135 lt_cv_path_mainfest_tool=yes
8137 rm -f conftest*
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8140 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8141 if test yes != "$lt_cv_path_mainfest_tool"; then
8142 MANIFEST_TOOL=:
8150 case $host_os in
8151 rhapsody* | darwin*)
8152 if test -n "$ac_tool_prefix"; then
8153 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 if test -n "$DSYMUTIL"; then
8161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8174 done
8175 done
8176 IFS=$as_save_IFS
8180 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8181 if test -n "$DSYMUTIL"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8183 $as_echo "$DSYMUTIL" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -z "$ac_cv_prog_DSYMUTIL"; then
8192 ac_ct_DSYMUTIL=$DSYMUTIL
8193 # Extract the first word of "dsymutil", so it can be a program name with args.
8194 set dummy dsymutil; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 if test -n "$ac_ct_DSYMUTIL"; then
8201 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8214 done
8215 done
8216 IFS=$as_save_IFS
8220 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8221 if test -n "$ac_ct_DSYMUTIL"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8223 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8224 else
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8229 if test "x$ac_ct_DSYMUTIL" = x; then
8230 DSYMUTIL=":"
8231 else
8232 case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238 DSYMUTIL=$ac_ct_DSYMUTIL
8240 else
8241 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_NMEDIT+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 if test -n "$NMEDIT"; then
8253 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8266 done
8267 done
8268 IFS=$as_save_IFS
8272 NMEDIT=$ac_cv_prog_NMEDIT
8273 if test -n "$NMEDIT"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8275 $as_echo "$NMEDIT" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 if test -z "$ac_cv_prog_NMEDIT"; then
8284 ac_ct_NMEDIT=$NMEDIT
8285 # Extract the first word of "nmedit", so it can be a program name with args.
8286 set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$ac_ct_NMEDIT"; then
8293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8313 if test -n "$ac_ct_NMEDIT"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8315 $as_echo "$ac_ct_NMEDIT" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8321 if test "x$ac_ct_NMEDIT" = x; then
8322 NMEDIT=":"
8323 else
8324 case $cross_compiling:$ac_tool_warned in
8325 yes:)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330 NMEDIT=$ac_ct_NMEDIT
8332 else
8333 NMEDIT="$ac_cv_prog_NMEDIT"
8336 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_LIPO+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 if test -n "$LIPO"; then
8345 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8360 IFS=$as_save_IFS
8364 LIPO=$ac_cv_prog_LIPO
8365 if test -n "$LIPO"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8367 $as_echo "$LIPO" >&6; }
8368 else
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8375 if test -z "$ac_cv_prog_LIPO"; then
8376 ac_ct_LIPO=$LIPO
8377 # Extract the first word of "lipo", so it can be a program name with args.
8378 set dummy lipo; 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_ac_ct_LIPO+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$ac_ct_LIPO"; then
8385 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8405 if test -n "$ac_ct_LIPO"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8407 $as_echo "$ac_ct_LIPO" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8413 if test "x$ac_ct_LIPO" = x; then
8414 LIPO=":"
8415 else
8416 case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8421 esac
8422 LIPO=$ac_ct_LIPO
8424 else
8425 LIPO="$ac_cv_prog_LIPO"
8428 if test -n "$ac_tool_prefix"; then
8429 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8430 set dummy ${ac_tool_prefix}otool; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_prog_OTOOL+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 if test -n "$OTOOL"; then
8437 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8450 done
8451 done
8452 IFS=$as_save_IFS
8456 OTOOL=$ac_cv_prog_OTOOL
8457 if test -n "$OTOOL"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8459 $as_echo "$OTOOL" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8467 if test -z "$ac_cv_prog_OTOOL"; then
8468 ac_ct_OTOOL=$OTOOL
8469 # Extract the first word of "otool", so it can be a program name with args.
8470 set dummy otool; 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_ac_ct_OTOOL+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$ac_ct_OTOOL"; then
8477 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8497 if test -n "$ac_ct_OTOOL"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8499 $as_echo "$ac_ct_OTOOL" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8505 if test "x$ac_ct_OTOOL" = x; then
8506 OTOOL=":"
8507 else
8508 case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514 OTOOL=$ac_ct_OTOOL
8516 else
8517 OTOOL="$ac_cv_prog_OTOOL"
8520 if test -n "$ac_tool_prefix"; then
8521 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8522 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_OTOOL64+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$OTOOL64"; then
8529 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8538 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8542 done
8543 done
8544 IFS=$as_save_IFS
8548 OTOOL64=$ac_cv_prog_OTOOL64
8549 if test -n "$OTOOL64"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8551 $as_echo "$OTOOL64" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8559 if test -z "$ac_cv_prog_OTOOL64"; then
8560 ac_ct_OTOOL64=$OTOOL64
8561 # Extract the first word of "otool64", so it can be a program name with args.
8562 set dummy otool64; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 if test -n "$ac_ct_OTOOL64"; then
8569 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8574 IFS=$as_save_IFS
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_ac_ct_OTOOL64="otool64"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 break 2
8582 done
8583 done
8584 IFS=$as_save_IFS
8588 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8589 if test -n "$ac_ct_OTOOL64"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8591 $as_echo "$ac_ct_OTOOL64" >&6; }
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8597 if test "x$ac_ct_OTOOL64" = x; then
8598 OTOOL64=":"
8599 else
8600 case $cross_compiling:$ac_tool_warned in
8601 yes:)
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 ac_tool_warned=yes ;;
8605 esac
8606 OTOOL64=$ac_ct_OTOOL64
8608 else
8609 OTOOL64="$ac_cv_prog_OTOOL64"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8639 $as_echo_n "checking for -single_module linker flag... " >&6; }
8640 if ${lt_cv_apple_cc_single_mod+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 lt_cv_apple_cc_single_mod=no
8644 if test -z "$LT_MULTI_MODULE"; then
8645 # By default we will add the -single_module flag. You can override
8646 # by either setting the environment variable LT_MULTI_MODULE
8647 # non-empty at configure time, or by adding -multi_module to the
8648 # link flags.
8649 rm -rf libconftest.dylib*
8650 echo "int foo(void){return 1;}" > conftest.c
8651 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8652 -dynamiclib -Wl,-single_module conftest.c" >&5
8653 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8654 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8655 _lt_result=$?
8656 # If there is a non-empty error log, and "single_module"
8657 # appears in it, assume the flag caused a linker warning
8658 if test -s conftest.err && $GREP single_module conftest.err; then
8659 cat conftest.err >&5
8660 # Otherwise, if the output was created with a 0 exit code from
8661 # the compiler, it worked.
8662 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8663 lt_cv_apple_cc_single_mod=yes
8664 else
8665 cat conftest.err >&5
8667 rm -rf libconftest.dylib*
8668 rm -f conftest.*
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8672 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8675 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8676 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 lt_cv_ld_exported_symbols_list=no
8680 save_LDFLAGS=$LDFLAGS
8681 echo "_main" > conftest.sym
8682 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8687 main ()
8691 return 0;
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"; then :
8695 lt_cv_ld_exported_symbols_list=yes
8696 else
8697 lt_cv_ld_exported_symbols_list=no
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LDFLAGS=$save_LDFLAGS
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8705 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8708 $as_echo_n "checking for -force_load linker flag... " >&6; }
8709 if ${lt_cv_ld_force_load+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 lt_cv_ld_force_load=no
8713 cat > conftest.c << _LT_EOF
8714 int forced_loaded() { return 2;}
8715 _LT_EOF
8716 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8717 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8718 echo "$AR cru libconftest.a conftest.o" >&5
8719 $AR cru libconftest.a conftest.o 2>&5
8720 echo "$RANLIB libconftest.a" >&5
8721 $RANLIB libconftest.a 2>&5
8722 cat > conftest.c << _LT_EOF
8723 int main() { return 0;}
8724 _LT_EOF
8725 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8726 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8727 _lt_result=$?
8728 if test -s conftest.err && $GREP force_load conftest.err; then
8729 cat conftest.err >&5
8730 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8731 lt_cv_ld_force_load=yes
8732 else
8733 cat conftest.err >&5
8735 rm -f conftest.err libconftest.a conftest conftest.c
8736 rm -rf conftest.dSYM
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8740 $as_echo "$lt_cv_ld_force_load" >&6; }
8741 case $host_os in
8742 rhapsody* | darwin1.[012])
8743 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8744 darwin1.*)
8745 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8746 darwin*) # darwin 5.x on
8747 # if running on 10.5 or later, the deployment target defaults
8748 # to the OS version, if on x86, and 10.4, the deployment
8749 # target defaults to 10.4. Don't you love it?
8750 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8751 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8752 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8753 10.[012][,.]*)
8754 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8755 10.*)
8756 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8757 esac
8759 esac
8760 if test yes = "$lt_cv_apple_cc_single_mod"; then
8761 _lt_dar_single_mod='$single_module'
8763 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8764 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8765 else
8766 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8768 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8769 _lt_dsymutil='~$DSYMUTIL $lib || :'
8770 else
8771 _lt_dsymutil=
8774 esac
8776 # func_munge_path_list VARIABLE PATH
8777 # -----------------------------------
8778 # VARIABLE is name of variable containing _space_ separated list of
8779 # directories to be munged by the contents of PATH, which is string
8780 # having a format:
8781 # "DIR[:DIR]:"
8782 # string "DIR[ DIR]" will be prepended to VARIABLE
8783 # ":DIR[:DIR]"
8784 # string "DIR[ DIR]" will be appended to VARIABLE
8785 # "DIRP[:DIRP]::[DIRA:]DIRA"
8786 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8787 # "DIRA[ DIRA]" will be appended to VARIABLE
8788 # "DIR[:DIR]"
8789 # VARIABLE will be replaced by "DIR[ DIR]"
8790 func_munge_path_list ()
8792 case x$2 in
8796 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8798 x:*)
8799 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8801 *::*)
8802 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8803 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8806 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8808 esac
8811 ac_ext=c
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8817 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8818 # On Suns, sometimes $CPP names a directory.
8819 if test -n "$CPP" && test -d "$CPP"; then
8820 CPP=
8822 if test -z "$CPP"; then
8823 if ${ac_cv_prog_CPP+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 # Double quotes because CPP needs to be expanded
8827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8829 ac_preproc_ok=false
8830 for ac_c_preproc_warn_flag in '' yes
8832 # Use a header file that comes with gcc, so configuring glibc
8833 # with a fresh cross-compiler works.
8834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835 # <limits.h> exists even on freestanding compilers.
8836 # On the NeXT, cc -E runs the code through the compiler's parser,
8837 # not just through cpp. "Syntax error" is here to catch this case.
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #ifdef __STDC__
8841 # include <limits.h>
8842 #else
8843 # include <assert.h>
8844 #endif
8845 Syntax error
8846 _ACEOF
8847 if ac_fn_c_try_cpp "$LINENO"; then :
8849 else
8850 # Broken: fails on valid input.
8851 continue
8853 rm -f conftest.err conftest.i conftest.$ac_ext
8855 # OK, works on sane cases. Now check whether nonexistent headers
8856 # can be detected and how.
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <ac_nonexistent.h>
8860 _ACEOF
8861 if ac_fn_c_try_cpp "$LINENO"; then :
8862 # Broken: success on invalid input.
8863 continue
8864 else
8865 # Passes both tests.
8866 ac_preproc_ok=:
8867 break
8869 rm -f conftest.err conftest.i conftest.$ac_ext
8871 done
8872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8873 rm -f conftest.i conftest.err conftest.$ac_ext
8874 if $ac_preproc_ok; then :
8875 break
8878 done
8879 ac_cv_prog_CPP=$CPP
8882 CPP=$ac_cv_prog_CPP
8883 else
8884 ac_cv_prog_CPP=$CPP
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8887 $as_echo "$CPP" >&6; }
8888 ac_preproc_ok=false
8889 for ac_c_preproc_warn_flag in '' yes
8891 # Use a header file that comes with gcc, so configuring glibc
8892 # with a fresh cross-compiler works.
8893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894 # <limits.h> exists even on freestanding compilers.
8895 # On the NeXT, cc -E runs the code through the compiler's parser,
8896 # not just through cpp. "Syntax error" is here to catch this case.
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 #ifdef __STDC__
8900 # include <limits.h>
8901 #else
8902 # include <assert.h>
8903 #endif
8904 Syntax error
8905 _ACEOF
8906 if ac_fn_c_try_cpp "$LINENO"; then :
8908 else
8909 # Broken: fails on valid input.
8910 continue
8912 rm -f conftest.err conftest.i conftest.$ac_ext
8914 # OK, works on sane cases. Now check whether nonexistent headers
8915 # can be detected and how.
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 #include <ac_nonexistent.h>
8919 _ACEOF
8920 if ac_fn_c_try_cpp "$LINENO"; then :
8921 # Broken: success on invalid input.
8922 continue
8923 else
8924 # Passes both tests.
8925 ac_preproc_ok=:
8926 break
8928 rm -f conftest.err conftest.i conftest.$ac_ext
8930 done
8931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8932 rm -f conftest.i conftest.err conftest.$ac_ext
8933 if $ac_preproc_ok; then :
8935 else
8936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8938 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8939 See \`config.log' for more details" "$LINENO" 5; }
8942 ac_ext=c
8943 ac_cpp='$CPP $CPPFLAGS'
8944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8950 $as_echo_n "checking for ANSI C header files... " >&6; }
8951 if ${ac_cv_header_stdc+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #include <stdlib.h>
8957 #include <stdarg.h>
8958 #include <string.h>
8959 #include <float.h>
8962 main ()
8966 return 0;
8968 _ACEOF
8969 if ac_fn_c_try_compile "$LINENO"; then :
8970 ac_cv_header_stdc=yes
8971 else
8972 ac_cv_header_stdc=no
8974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976 if test $ac_cv_header_stdc = yes; then
8977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 #include <string.h>
8982 _ACEOF
8983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8984 $EGREP "memchr" >/dev/null 2>&1; then :
8986 else
8987 ac_cv_header_stdc=no
8989 rm -f conftest*
8993 if test $ac_cv_header_stdc = yes; then
8994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #include <stdlib.h>
8999 _ACEOF
9000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9001 $EGREP "free" >/dev/null 2>&1; then :
9003 else
9004 ac_cv_header_stdc=no
9006 rm -f conftest*
9010 if test $ac_cv_header_stdc = yes; then
9011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9012 if test "$cross_compiling" = yes; then :
9014 else
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <ctype.h>
9018 #include <stdlib.h>
9019 #if ((' ' & 0x0FF) == 0x020)
9020 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9021 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9022 #else
9023 # define ISLOWER(c) \
9024 (('a' <= (c) && (c) <= 'i') \
9025 || ('j' <= (c) && (c) <= 'r') \
9026 || ('s' <= (c) && (c) <= 'z'))
9027 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9028 #endif
9030 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9032 main ()
9034 int i;
9035 for (i = 0; i < 256; i++)
9036 if (XOR (islower (i), ISLOWER (i))
9037 || toupper (i) != TOUPPER (i))
9038 return 2;
9039 return 0;
9041 _ACEOF
9042 if ac_fn_c_try_run "$LINENO"; then :
9044 else
9045 ac_cv_header_stdc=no
9047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9048 conftest.$ac_objext conftest.beam conftest.$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9054 $as_echo "$ac_cv_header_stdc" >&6; }
9055 if test $ac_cv_header_stdc = yes; then
9057 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9063 inttypes.h stdint.h unistd.h
9064 do :
9065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9066 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9068 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9069 cat >>confdefs.h <<_ACEOF
9070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9071 _ACEOF
9075 done
9078 for ac_header in dlfcn.h
9079 do :
9080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9082 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9083 cat >>confdefs.h <<_ACEOF
9084 #define HAVE_DLFCN_H 1
9085 _ACEOF
9089 done
9092 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9093 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9094 # is not polluted with repeated "-I."
9095 am__isrc=' -I$(srcdir)'
9096 # test to see if srcdir already configured
9097 if test -f $srcdir/config.status; then
9098 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9102 # test whether we have cygpath
9103 if test -z "$CYGPATH_W"; then
9104 if (cygpath --version) >/dev/null 2>/dev/null; then
9105 CYGPATH_W='cygpath -w'
9106 else
9107 CYGPATH_W=echo
9112 # Define the identity of the package.
9113 PACKAGE='tex-live'
9114 VERSION='2016-05-23'
9117 cat >>confdefs.h <<_ACEOF
9118 #define PACKAGE "$PACKAGE"
9119 _ACEOF
9122 cat >>confdefs.h <<_ACEOF
9123 #define VERSION "$VERSION"
9124 _ACEOF
9126 # Some tools Automake needs.
9128 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9131 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9134 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9137 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9140 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9142 # For better backward compatibility. To be removed once Automake 1.9.x
9143 # dies out for good. For more background, see:
9144 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9145 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9146 mkdir_p='$(MKDIR_P)'
9148 # We need awk for the "check" target (and possibly the TAP driver). The
9149 # system "awk" is bad on some platforms.
9150 # Always define AMTAR for backward compatibility. Yes, it's still used
9151 # in the wild :-( We should find a proper way to deprecate it ...
9152 AMTAR='$${TAR-tar}'
9155 # We'll loop over all known methods to create a tar archive until one works.
9156 _am_tools='gnutar pax cpio none'
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
9161 $as_echo_n "checking how to create a pax tar archive... " >&6; }
9163 # Go ahead even if we have the value already cached. We do so because we
9164 # need to set the values for the 'am__tar' and 'am__untar' variables.
9165 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
9167 for _am_tool in $_am_tools; do
9168 case $_am_tool in
9169 gnutar)
9170 for _am_tar in tar gnutar gtar; do
9171 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9172 ($_am_tar --version) >&5 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && break
9176 done
9177 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
9178 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
9179 am__untar="$_am_tar -xf -"
9181 plaintar)
9182 # Must skip GNU tar: if it does not support --format= it doesn't create
9183 # ustar tarball either.
9184 (tar --version) >/dev/null 2>&1 && continue
9185 am__tar='tar chf - "$$tardir"'
9186 am__tar_='tar chf - "$tardir"'
9187 am__untar='tar xf -'
9189 pax)
9190 am__tar='pax -L -x pax -w "$$tardir"'
9191 am__tar_='pax -L -x pax -w "$tardir"'
9192 am__untar='pax -r'
9194 cpio)
9195 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
9196 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
9197 am__untar='cpio -i -H pax -d'
9199 none)
9200 am__tar=false
9201 am__tar_=false
9202 am__untar=false
9204 esac
9206 # If the value was cached, stop now. We just wanted to have am__tar
9207 # and am__untar set.
9208 test -n "${am_cv_prog_tar_pax}" && break
9210 # tar/untar a dummy directory, and stop if the command works.
9211 rm -rf conftest.dir
9212 mkdir conftest.dir
9213 echo GrepMe > conftest.dir/file
9214 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9215 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }
9219 rm -rf conftest.dir
9220 if test -s conftest.tar; then
9221 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9222 ($am__untar <conftest.tar) >&5 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }
9226 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9227 (cat conftest.dir/file) >&5 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }
9231 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9233 done
9234 rm -rf conftest.dir
9236 if ${am_cv_prog_tar_pax+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 am_cv_prog_tar_pax=$_am_tool
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
9243 $as_echo "$am_cv_prog_tar_pax" >&6; }
9249 depcc="$CC" am_compiler_list=
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9252 $as_echo_n "checking dependency style of $depcc... " >&6; }
9253 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9257 # We make a subdir and do the tests there. Otherwise we can end up
9258 # making bogus files that we don't know about and never remove. For
9259 # instance it was reported that on HP-UX the gcc test will end up
9260 # making a dummy file named 'D' -- because '-MD' means "put the output
9261 # in D".
9262 rm -rf conftest.dir
9263 mkdir conftest.dir
9264 # Copy depcomp to subdir because otherwise we won't find it if we're
9265 # using a relative directory.
9266 cp "$am_depcomp" conftest.dir
9267 cd conftest.dir
9268 # We will build objects and dependencies in a subdirectory because
9269 # it helps to detect inapplicable dependency modes. For instance
9270 # both Tru64's cc and ICC support -MD to output dependencies as a
9271 # side effect of compilation, but ICC will put the dependencies in
9272 # the current directory while Tru64 will put them in the object
9273 # directory.
9274 mkdir sub
9276 am_cv_CC_dependencies_compiler_type=none
9277 if test "$am_compiler_list" = ""; then
9278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9280 am__universal=false
9281 case " $depcc " in #(
9282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9283 esac
9285 for depmode in $am_compiler_list; do
9286 # Setup a source with many dependencies, because some compilers
9287 # like to wrap large dependency lists on column 80 (with \), and
9288 # we should not choose a depcomp mode which is confused by this.
9290 # We need to recreate these files for each test, as the compiler may
9291 # overwrite some of them when testing with obscure command lines.
9292 # This happens at least with the AIX C compiler.
9293 : > sub/conftest.c
9294 for i in 1 2 3 4 5 6; do
9295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9297 # Solaris 10 /bin/sh.
9298 echo '/* dummy */' > sub/conftst$i.h
9299 done
9300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9302 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9303 # mode. It turns out that the SunPro C++ compiler does not properly
9304 # handle '-M -o', and we need to detect this. Also, some Intel
9305 # versions had trouble with output in subdirs.
9306 am__obj=sub/conftest.${OBJEXT-o}
9307 am__minus_obj="-o $am__obj"
9308 case $depmode in
9309 gcc)
9310 # This depmode causes a compiler race in universal mode.
9311 test "$am__universal" = false || continue
9313 nosideeffect)
9314 # After this tag, mechanisms are not by side-effect, so they'll
9315 # only be used when explicitly requested.
9316 if test "x$enable_dependency_tracking" = xyes; then
9317 continue
9318 else
9319 break
9322 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9323 # This compiler won't grok '-c -o', but also, the minuso test has
9324 # not run yet. These depmodes are late enough in the game, and
9325 # so weak that their functioning should not be impacted.
9326 am__obj=conftest.${OBJEXT-o}
9327 am__minus_obj=
9329 none) break ;;
9330 esac
9331 if depmode=$depmode \
9332 source=sub/conftest.c object=$am__obj \
9333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9335 >/dev/null 2>conftest.err &&
9336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9340 # icc doesn't choke on unknown options, it will just issue warnings
9341 # or remarks (even with -Werror). So we grep stderr for any message
9342 # that says an option was ignored or not supported.
9343 # When given -MP, icc 7.0 and 7.1 complain thusly:
9344 # icc: Command line warning: ignoring option '-M'; no argument required
9345 # The diagnosis changed in icc 8.0:
9346 # icc: Command line remark: option '-MP' not supported
9347 if (grep 'ignoring option' conftest.err ||
9348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9349 am_cv_CC_dependencies_compiler_type=$depmode
9350 break
9353 done
9355 cd ..
9356 rm -rf conftest.dir
9357 else
9358 am_cv_CC_dependencies_compiler_type=none
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9363 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9364 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9367 test "x$enable_dependency_tracking" != xno \
9368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9369 am__fastdepCC_TRUE=
9370 am__fastdepCC_FALSE='#'
9371 else
9372 am__fastdepCC_TRUE='#'
9373 am__fastdepCC_FALSE=
9378 # POSIX will say in a future version that running "rm -f" with no argument
9379 # is OK; and we want to be able to make that assumption in our Makefile
9380 # recipes. So use an aggressive probe to check that the usage we want is
9381 # actually supported "in the wild" to an acceptable degree.
9382 # See automake bug#10828.
9383 # To make any issue more visible, cause the running configure to be aborted
9384 # by default if the 'rm' program in use doesn't match our expectations; the
9385 # user can still override this though.
9386 if rm -f && rm -fr && rm -rf; then : OK; else
9387 cat >&2 <<'END'
9388 Oops!
9390 Your 'rm' program seems unable to run without file operands specified
9391 on the command line, even when the '-f' option is present. This is contrary
9392 to the behaviour of most rm programs out there, and not conforming with
9393 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9395 Please tell bug-automake@gnu.org about your system, including the value
9396 of your $PATH and any error possibly output before this message. This
9397 can help us improve future automake versions.
9400 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9401 echo 'Configuration will proceed anyway, since you have set the' >&2
9402 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9403 echo >&2
9404 else
9405 cat >&2 <<'END'
9406 Aborting the configuration process, to ensure you take notice of the issue.
9408 You can download and install GNU coreutils to get an 'rm' implementation
9409 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9411 If you want to complete the configuration process using your problematic
9412 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9413 to "yes", and re-run configure.
9416 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9423 # Check whether --enable-maintainer-mode was given.
9424 if test "${enable_maintainer_mode+set}" = set; then :
9425 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9426 else
9427 USE_MAINTAINER_MODE=no
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
9432 if test $USE_MAINTAINER_MODE = yes; then
9433 MAINTAINER_MODE_TRUE=
9434 MAINTAINER_MODE_FALSE='#'
9435 else
9436 MAINTAINER_MODE_TRUE='#'
9437 MAINTAINER_MODE_FALSE=
9440 MAINT=$MAINTAINER_MODE_TRUE
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9444 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
9445 if ${kb_cv_c_prototypes+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #include <stdarg.h>
9452 main ()
9454 extern void foo(int i,...);
9456 return 0;
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 kb_cv_c_prototypes=yes
9461 else
9462 kb_cv_c_prototypes=no
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9468 $as_echo "$kb_cv_c_prototypes" >&6; }
9469 if test "x$kb_cv_c_prototypes" = xno; then
9470 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9473 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
9474 if ${kpse_cv_warning_cflags+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test "x$GCC" = xyes; then
9478 kpse_cv_warning_cflags=
9479 if test "x$enable_compiler_warnings" != xno; then
9480 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9481 case `$CC -dumpversion` in #(
9482 3.4.* | 4.* | 5.*) :
9483 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9484 *) :
9486 esac
9487 case `$CC -dumpversion` in #(
9488 3.[234].* | 4.* | 5.*) :
9489 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9490 *) :
9492 esac
9493 if test "x$enable_compiler_warnings" != xmin; then
9494 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9495 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9496 if test "x$enable_compiler_warnings" != xyes; then
9497 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9498 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9499 case `$CC -dumpversion` in #(
9500 3.4.* | 4.* | 5.*) :
9501 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9502 *) :
9504 esac
9505 if test "x$enable_compiler_warnings" != xmax; then
9506 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9511 elif test "x$enable_compiler_warnings" = xno; then
9512 kpse_cv_warning_cflags=
9513 else
9514 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9518 $as_echo "$kpse_cv_warning_cflags" >&6; }
9519 WARNING_CFLAGS=$kpse_cv_warning_cflags
9532 # Set options
9533 enable_win32_dll=yes
9535 case $host in
9536 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9537 if test -n "$ac_tool_prefix"; then
9538 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9539 set dummy ${ac_tool_prefix}as; ac_word=$2
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541 $as_echo_n "checking for $ac_word... " >&6; }
9542 if ${ac_cv_prog_AS+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 if test -n "$AS"; then
9546 ac_cv_prog_AS="$AS" # Let the user override the test.
9547 else
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555 ac_cv_prog_AS="${ac_tool_prefix}as"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9565 AS=$ac_cv_prog_AS
9566 if test -n "$AS"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9568 $as_echo "$AS" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9576 if test -z "$ac_cv_prog_AS"; then
9577 ac_ct_AS=$AS
9578 # Extract the first word of "as", so it can be a program name with args.
9579 set dummy as; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 if test -n "$ac_ct_AS"; then
9586 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_ac_ct_AS="as"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9599 done
9600 done
9601 IFS=$as_save_IFS
9605 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9606 if test -n "$ac_ct_AS"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9608 $as_echo "$ac_ct_AS" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9614 if test "x$ac_ct_AS" = x; then
9615 AS="false"
9616 else
9617 case $cross_compiling:$ac_tool_warned in
9618 yes:)
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9621 ac_tool_warned=yes ;;
9622 esac
9623 AS=$ac_ct_AS
9625 else
9626 AS="$ac_cv_prog_AS"
9629 if test -n "$ac_tool_prefix"; then
9630 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9631 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_prog_DLLTOOL+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test -n "$DLLTOOL"; then
9638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9647 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9651 done
9652 done
9653 IFS=$as_save_IFS
9657 DLLTOOL=$ac_cv_prog_DLLTOOL
9658 if test -n "$DLLTOOL"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9660 $as_echo "$DLLTOOL" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9668 if test -z "$ac_cv_prog_DLLTOOL"; then
9669 ac_ct_DLLTOOL=$DLLTOOL
9670 # Extract the first word of "dlltool", so it can be a program name with args.
9671 set dummy dlltool; ac_word=$2
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673 $as_echo_n "checking for $ac_word... " >&6; }
9674 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 if test -n "$ac_ct_DLLTOOL"; then
9678 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9691 done
9692 done
9693 IFS=$as_save_IFS
9697 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9698 if test -n "$ac_ct_DLLTOOL"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9700 $as_echo "$ac_ct_DLLTOOL" >&6; }
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9706 if test "x$ac_ct_DLLTOOL" = x; then
9707 DLLTOOL="false"
9708 else
9709 case $cross_compiling:$ac_tool_warned in
9710 yes:)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9713 ac_tool_warned=yes ;;
9714 esac
9715 DLLTOOL=$ac_ct_DLLTOOL
9717 else
9718 DLLTOOL="$ac_cv_prog_DLLTOOL"
9721 if test -n "$ac_tool_prefix"; then
9722 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9723 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9725 $as_echo_n "checking for $ac_word... " >&6; }
9726 if ${ac_cv_prog_OBJDUMP+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 if test -n "$OBJDUMP"; then
9730 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9731 else
9732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 for as_dir in $PATH
9735 IFS=$as_save_IFS
9736 test -z "$as_dir" && as_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9739 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 break 2
9743 done
9744 done
9745 IFS=$as_save_IFS
9749 OBJDUMP=$ac_cv_prog_OBJDUMP
9750 if test -n "$OBJDUMP"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9752 $as_echo "$OBJDUMP" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9760 if test -z "$ac_cv_prog_OBJDUMP"; then
9761 ac_ct_OBJDUMP=$OBJDUMP
9762 # Extract the first word of "objdump", so it can be a program name with args.
9763 set dummy objdump; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 if test -n "$ac_ct_OBJDUMP"; then
9770 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9779 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9783 done
9784 done
9785 IFS=$as_save_IFS
9789 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9790 if test -n "$ac_ct_OBJDUMP"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9792 $as_echo "$ac_ct_OBJDUMP" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9798 if test "x$ac_ct_OBJDUMP" = x; then
9799 OBJDUMP="false"
9800 else
9801 case $cross_compiling:$ac_tool_warned in
9802 yes:)
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9805 ac_tool_warned=yes ;;
9806 esac
9807 OBJDUMP=$ac_ct_OBJDUMP
9809 else
9810 OBJDUMP="$ac_cv_prog_OBJDUMP"
9814 esac
9816 test -z "$AS" && AS=as
9822 test -z "$DLLTOOL" && DLLTOOL=dlltool
9828 test -z "$OBJDUMP" && OBJDUMP=objdump
9836 enable_dlopen=no
9840 # Check whether --enable-shared was given.
9841 if test "${enable_shared+set}" = set; then :
9842 enableval=$enable_shared; p=${PACKAGE-default}
9843 case $enableval in
9844 yes) enable_shared=yes ;;
9845 no) enable_shared=no ;;
9847 enable_shared=no
9848 # Look at the argument we got. We use all the common list separators.
9849 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9850 for pkg in $enableval; do
9851 IFS=$lt_save_ifs
9852 if test "X$pkg" = "X$p"; then
9853 enable_shared=yes
9855 done
9856 IFS=$lt_save_ifs
9858 esac
9859 else
9860 enable_shared=yes
9871 # Check whether --enable-static was given.
9872 if test "${enable_static+set}" = set; then :
9873 enableval=$enable_static; p=${PACKAGE-default}
9874 case $enableval in
9875 yes) enable_static=yes ;;
9876 no) enable_static=no ;;
9878 enable_static=no
9879 # Look at the argument we got. We use all the common list separators.
9880 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9881 for pkg in $enableval; do
9882 IFS=$lt_save_ifs
9883 if test "X$pkg" = "X$p"; then
9884 enable_static=yes
9886 done
9887 IFS=$lt_save_ifs
9889 esac
9890 else
9891 enable_static=yes
9903 # Check whether --with-pic was given.
9904 if test "${with_pic+set}" = set; then :
9905 withval=$with_pic; lt_p=${PACKAGE-default}
9906 case $withval in
9907 yes|no) pic_mode=$withval ;;
9909 pic_mode=default
9910 # Look at the argument we got. We use all the common list separators.
9911 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9912 for lt_pkg in $withval; do
9913 IFS=$lt_save_ifs
9914 if test "X$lt_pkg" = "X$lt_p"; then
9915 pic_mode=yes
9917 done
9918 IFS=$lt_save_ifs
9920 esac
9921 else
9922 pic_mode=default
9932 # Check whether --enable-fast-install was given.
9933 if test "${enable_fast_install+set}" = set; then :
9934 enableval=$enable_fast_install; p=${PACKAGE-default}
9935 case $enableval in
9936 yes) enable_fast_install=yes ;;
9937 no) enable_fast_install=no ;;
9939 enable_fast_install=no
9940 # Look at the argument we got. We use all the common list separators.
9941 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9942 for pkg in $enableval; do
9943 IFS=$lt_save_ifs
9944 if test "X$pkg" = "X$p"; then
9945 enable_fast_install=yes
9947 done
9948 IFS=$lt_save_ifs
9950 esac
9951 else
9952 enable_fast_install=yes
9962 shared_archive_member_spec=
9963 case $host,$enable_shared in
9964 power*-*-aix[5-9]*,yes)
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9966 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9968 # Check whether --with-aix-soname was given.
9969 if test "${with_aix_soname+set}" = set; then :
9970 withval=$with_aix_soname; case $withval in
9971 aix|svr4|both)
9974 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9976 esac
9977 lt_cv_with_aix_soname=$with_aix_soname
9978 else
9979 if ${lt_cv_with_aix_soname+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 lt_cv_with_aix_soname=aix
9985 with_aix_soname=$lt_cv_with_aix_soname
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9989 $as_echo "$with_aix_soname" >&6; }
9990 if test aix != "$with_aix_soname"; then
9991 # For the AIX way of multilib, we name the shared archive member
9992 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9993 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9994 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9995 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9996 if test 64 = "${OBJECT_MODE-32}"; then
9997 shared_archive_member_spec=shr_64
9998 else
9999 shared_archive_member_spec=shr
10004 with_aix_soname=aix
10006 esac
10017 # This can be used to rebuild libtool when needed
10018 LIBTOOL_DEPS=$ltmain
10020 # Always use our own libtool.
10021 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10052 test -z "$LN_S" && LN_S="ln -s"
10067 if test -n "${ZSH_VERSION+set}"; then
10068 setopt NO_GLOB_SUBST
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10072 $as_echo_n "checking for objdir... " >&6; }
10073 if ${lt_cv_objdir+:} false; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 rm -f .libs 2>/dev/null
10077 mkdir .libs 2>/dev/null
10078 if test -d .libs; then
10079 lt_cv_objdir=.libs
10080 else
10081 # MS-DOS does not allow filenames that begin with a dot.
10082 lt_cv_objdir=_libs
10084 rmdir .libs 2>/dev/null
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10087 $as_echo "$lt_cv_objdir" >&6; }
10088 objdir=$lt_cv_objdir
10094 cat >>confdefs.h <<_ACEOF
10095 #define LT_OBJDIR "$lt_cv_objdir/"
10096 _ACEOF
10101 case $host_os in
10102 aix3*)
10103 # AIX sometimes has problems with the GCC collect2 program. For some
10104 # reason, if we set the COLLECT_NAMES environment variable, the problems
10105 # vanish in a puff of smoke.
10106 if test set != "${COLLECT_NAMES+set}"; then
10107 COLLECT_NAMES=
10108 export COLLECT_NAMES
10111 esac
10113 # Global variables:
10114 ofile=libtool
10115 can_build_shared=yes
10117 # All known linkers require a '.a' archive for static linking (except MSVC,
10118 # which needs '.lib').
10119 libext=a
10121 with_gnu_ld=$lt_cv_prog_gnu_ld
10123 old_CC=$CC
10124 old_CFLAGS=$CFLAGS
10126 # Set sane defaults for various variables
10127 test -z "$CC" && CC=cc
10128 test -z "$LTCC" && LTCC=$CC
10129 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10130 test -z "$LD" && LD=ld
10131 test -z "$ac_objext" && ac_objext=o
10133 func_cc_basename $compiler
10134 cc_basename=$func_cc_basename_result
10137 # Only perform the check for file, if the check method requires it
10138 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10139 case $deplibs_check_method in
10140 file_magic*)
10141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10143 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10144 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 case $MAGIC_CMD in
10148 [\\/*] | ?:[\\/]*)
10149 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10152 lt_save_MAGIC_CMD=$MAGIC_CMD
10153 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10155 for ac_dir in $ac_dummy; do
10156 IFS=$lt_save_ifs
10157 test -z "$ac_dir" && ac_dir=.
10158 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10159 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10160 if test -n "$file_magic_test_file"; then
10161 case $deplibs_check_method in
10162 "file_magic "*)
10163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10166 $EGREP "$file_magic_regex" > /dev/null; then
10168 else
10169 cat <<_LT_EOF 1>&2
10171 *** Warning: the command libtool uses to detect shared libraries,
10172 *** $file_magic_cmd, produces output that libtool cannot recognize.
10173 *** The result is that libtool may fail to recognize shared libraries
10174 *** as such. This will affect the creation of libtool libraries that
10175 *** depend on shared libraries, but programs linked with such libtool
10176 *** libraries will work regardless of this problem. Nevertheless, you
10177 *** may want to report the problem to your system manager and/or to
10178 *** bug-libtool@gnu.org
10180 _LT_EOF
10181 fi ;;
10182 esac
10184 break
10186 done
10187 IFS=$lt_save_ifs
10188 MAGIC_CMD=$lt_save_MAGIC_CMD
10190 esac
10193 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10194 if test -n "$MAGIC_CMD"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10196 $as_echo "$MAGIC_CMD" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10206 if test -z "$lt_cv_path_MAGIC_CMD"; then
10207 if test -n "$ac_tool_prefix"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10209 $as_echo_n "checking for file... " >&6; }
10210 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 case $MAGIC_CMD in
10214 [\\/*] | ?:[\\/]*)
10215 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10218 lt_save_MAGIC_CMD=$MAGIC_CMD
10219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10221 for ac_dir in $ac_dummy; do
10222 IFS=$lt_save_ifs
10223 test -z "$ac_dir" && ac_dir=.
10224 if test -f "$ac_dir/file"; then
10225 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10226 if test -n "$file_magic_test_file"; then
10227 case $deplibs_check_method in
10228 "file_magic "*)
10229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10232 $EGREP "$file_magic_regex" > /dev/null; then
10234 else
10235 cat <<_LT_EOF 1>&2
10237 *** Warning: the command libtool uses to detect shared libraries,
10238 *** $file_magic_cmd, produces output that libtool cannot recognize.
10239 *** The result is that libtool may fail to recognize shared libraries
10240 *** as such. This will affect the creation of libtool libraries that
10241 *** depend on shared libraries, but programs linked with such libtool
10242 *** libraries will work regardless of this problem. Nevertheless, you
10243 *** may want to report the problem to your system manager and/or to
10244 *** bug-libtool@gnu.org
10246 _LT_EOF
10247 fi ;;
10248 esac
10250 break
10252 done
10253 IFS=$lt_save_ifs
10254 MAGIC_CMD=$lt_save_MAGIC_CMD
10256 esac
10259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10260 if test -n "$MAGIC_CMD"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10262 $as_echo "$MAGIC_CMD" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10269 else
10270 MAGIC_CMD=:
10276 esac
10278 # Use C for the default configuration in the libtool script
10280 lt_save_CC=$CC
10281 ac_ext=c
10282 ac_cpp='$CPP $CPPFLAGS'
10283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10288 # Source file extension for C test sources.
10289 ac_ext=c
10291 # Object file extension for compiled C test sources.
10292 objext=o
10293 objext=$objext
10295 # Code to be used in simple compile tests
10296 lt_simple_compile_test_code="int some_variable = 0;"
10298 # Code to be used in simple link tests
10299 lt_simple_link_test_code='int main(){return(0);}'
10307 # If no C compiler was specified, use CC.
10308 LTCC=${LTCC-"$CC"}
10310 # If no C compiler flags were specified, use CFLAGS.
10311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10313 # Allow CC to be a program name with arguments.
10314 compiler=$CC
10316 # Save the default compiler, since it gets overwritten when the other
10317 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10318 compiler_DEFAULT=$CC
10320 # save warnings/boilerplate of simple test code
10321 ac_outfile=conftest.$ac_objext
10322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10324 _lt_compiler_boilerplate=`cat conftest.err`
10325 $RM conftest*
10327 ac_outfile=conftest.$ac_objext
10328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10330 _lt_linker_boilerplate=`cat conftest.err`
10331 $RM -r conftest*
10334 ## CAVEAT EMPTOR:
10335 ## There is no encapsulation within the following macros, do not change
10336 ## the running order or otherwise move them around unless you know exactly
10337 ## what you are doing...
10338 if test -n "$compiler"; then
10340 lt_prog_compiler_no_builtin_flag=
10342 if test yes = "$GCC"; then
10343 case $cc_basename in
10344 nvcc*)
10345 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10347 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10348 esac
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10351 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10352 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 lt_cv_prog_compiler_rtti_exceptions=no
10356 ac_outfile=conftest.$ac_objext
10357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10358 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10359 # Insert the option either (1) after the last *FLAGS variable, or
10360 # (2) before a word containing "conftest.", or (3) at the end.
10361 # Note that $ac_compile itself does not contain backslashes and begins
10362 # with a dollar sign (not a hyphen), so the echo should work correctly.
10363 # The option is referenced via a variable to avoid confusing sed.
10364 lt_compile=`echo "$ac_compile" | $SED \
10365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10367 -e 's:$: $lt_compiler_flag:'`
10368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10369 (eval "$lt_compile" 2>conftest.err)
10370 ac_status=$?
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 if (exit $ac_status) && test -s "$ac_outfile"; then
10374 # The compiler can only warn and ignore the option if not recognized
10375 # So say no if there are warnings other than the usual output.
10376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler_rtti_exceptions=yes
10382 $RM conftest*
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10386 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10388 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10389 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10390 else
10401 lt_prog_compiler_wl=
10402 lt_prog_compiler_pic=
10403 lt_prog_compiler_static=
10406 if test yes = "$GCC"; then
10407 lt_prog_compiler_wl='-Wl,'
10408 lt_prog_compiler_static='-static'
10410 case $host_os in
10411 aix*)
10412 # All AIX code is PIC.
10413 if test ia64 = "$host_cpu"; then
10414 # AIX 5 now supports IA64 processor
10415 lt_prog_compiler_static='-Bstatic'
10417 lt_prog_compiler_pic='-fPIC'
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 lt_prog_compiler_pic='-fPIC'
10426 m68k)
10427 # FIXME: we need at least 68020 code to build shared libraries, but
10428 # adding the '-m68020' flag to GCC prevents building anything better,
10429 # like '-m68040'.
10430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10432 esac
10435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10436 # PIC is the default for these OSes.
10439 mingw* | cygwin* | pw32* | os2* | cegcc*)
10440 # This hack is so that the source file can tell whether it is being
10441 # built for inclusion in a dll (and should export symbols for example).
10442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10443 # (--disable-auto-import) libraries
10444 lt_prog_compiler_pic='-DDLL_EXPORT'
10445 case $host_os in
10446 os2*)
10447 lt_prog_compiler_static='$wl-static'
10449 esac
10452 darwin* | rhapsody*)
10453 # PIC is the default on this platform
10454 # Common symbols not allowed in MH_DYLIB files
10455 lt_prog_compiler_pic='-fno-common'
10458 haiku*)
10459 # PIC is the default for Haiku.
10460 # The "-static" flag exists, but is broken.
10461 lt_prog_compiler_static=
10464 hpux*)
10465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10467 # sets the default TLS model and affects inlining.
10468 case $host_cpu in
10469 hppa*64*)
10470 # +Z the default
10473 lt_prog_compiler_pic='-fPIC'
10475 esac
10478 interix[3-9]*)
10479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10480 # Instead, we relocate shared libraries at runtime.
10483 msdosdjgpp*)
10484 # Just because we use GCC doesn't mean we suddenly get shared libraries
10485 # on systems that don't support them.
10486 lt_prog_compiler_can_build_shared=no
10487 enable_shared=no
10490 *nto* | *qnx*)
10491 # QNX uses GNU C++, but need to define -shared option too, otherwise
10492 # it will coredump.
10493 lt_prog_compiler_pic='-fPIC -shared'
10496 sysv4*MP*)
10497 if test -d /usr/nec; then
10498 lt_prog_compiler_pic=-Kconform_pic
10503 lt_prog_compiler_pic='-fPIC'
10505 esac
10507 case $cc_basename in
10508 nvcc*) # Cuda Compiler Driver 2.2
10509 lt_prog_compiler_wl='-Xlinker '
10510 if test -n "$lt_prog_compiler_pic"; then
10511 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10514 esac
10515 else
10516 # PORTME Check for flag to pass linker flags through the system compiler.
10517 case $host_os in
10518 aix*)
10519 lt_prog_compiler_wl='-Wl,'
10520 if test ia64 = "$host_cpu"; then
10521 # AIX 5 now supports IA64 processor
10522 lt_prog_compiler_static='-Bstatic'
10523 else
10524 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10528 darwin* | rhapsody*)
10529 # PIC is the default on this platform
10530 # Common symbols not allowed in MH_DYLIB files
10531 lt_prog_compiler_pic='-fno-common'
10532 case $cc_basename in
10533 nagfor*)
10534 # NAG Fortran compiler
10535 lt_prog_compiler_wl='-Wl,-Wl,,'
10536 lt_prog_compiler_pic='-PIC'
10537 lt_prog_compiler_static='-Bstatic'
10539 esac
10542 mingw* | cygwin* | pw32* | os2* | cegcc*)
10543 # This hack is so that the source file can tell whether it is being
10544 # built for inclusion in a dll (and should export symbols for example).
10545 lt_prog_compiler_pic='-DDLL_EXPORT'
10546 case $host_os in
10547 os2*)
10548 lt_prog_compiler_static='$wl-static'
10550 esac
10553 hpux9* | hpux10* | hpux11*)
10554 lt_prog_compiler_wl='-Wl,'
10555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10556 # not for PA HP-UX.
10557 case $host_cpu in
10558 hppa*64*|ia64*)
10559 # +Z the default
10562 lt_prog_compiler_pic='+Z'
10564 esac
10565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10566 lt_prog_compiler_static='$wl-a ${wl}archive'
10569 irix5* | irix6* | nonstopux*)
10570 lt_prog_compiler_wl='-Wl,'
10571 # PIC (with -KPIC) is the default.
10572 lt_prog_compiler_static='-non_shared'
10575 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10576 case $cc_basename in
10577 # old Intel for x86_64, which still supported -KPIC.
10578 ecc*)
10579 lt_prog_compiler_wl='-Wl,'
10580 lt_prog_compiler_pic='-KPIC'
10581 lt_prog_compiler_static='-static'
10583 # icc used to be incompatible with GCC.
10584 # ICC 10 doesn't accept -KPIC any more.
10585 icc* | ifort*)
10586 lt_prog_compiler_wl='-Wl,'
10587 lt_prog_compiler_pic='-fPIC'
10588 lt_prog_compiler_static='-static'
10590 # Lahey Fortran 8.1.
10591 lf95*)
10592 lt_prog_compiler_wl='-Wl,'
10593 lt_prog_compiler_pic='--shared'
10594 lt_prog_compiler_static='--static'
10596 nagfor*)
10597 # NAG Fortran compiler
10598 lt_prog_compiler_wl='-Wl,-Wl,,'
10599 lt_prog_compiler_pic='-PIC'
10600 lt_prog_compiler_static='-Bstatic'
10602 tcc*)
10603 # Fabrice Bellard et al's Tiny C Compiler
10604 lt_prog_compiler_wl='-Wl,'
10605 lt_prog_compiler_pic='-fPIC'
10606 lt_prog_compiler_static='-static'
10608 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10609 # Portland Group compilers (*not* the Pentium gcc compiler,
10610 # which looks to be a dead project)
10611 lt_prog_compiler_wl='-Wl,'
10612 lt_prog_compiler_pic='-fpic'
10613 lt_prog_compiler_static='-Bstatic'
10615 ccc*)
10616 lt_prog_compiler_wl='-Wl,'
10617 # All Alpha code is PIC.
10618 lt_prog_compiler_static='-non_shared'
10620 xl* | bgxl* | bgf* | mpixl*)
10621 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10622 lt_prog_compiler_wl='-Wl,'
10623 lt_prog_compiler_pic='-qpic'
10624 lt_prog_compiler_static='-qstaticlink'
10627 case `$CC -V 2>&1 | sed 5q` in
10628 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10629 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10630 lt_prog_compiler_pic='-KPIC'
10631 lt_prog_compiler_static='-Bstatic'
10632 lt_prog_compiler_wl=''
10634 *Sun\ F* | *Sun*Fortran*)
10635 lt_prog_compiler_pic='-KPIC'
10636 lt_prog_compiler_static='-Bstatic'
10637 lt_prog_compiler_wl='-Qoption ld '
10639 *Sun\ C*)
10640 # Sun C 5.9
10641 lt_prog_compiler_pic='-KPIC'
10642 lt_prog_compiler_static='-Bstatic'
10643 lt_prog_compiler_wl='-Wl,'
10645 *Intel*\ [CF]*Compiler*)
10646 lt_prog_compiler_wl='-Wl,'
10647 lt_prog_compiler_pic='-fPIC'
10648 lt_prog_compiler_static='-static'
10650 *Portland\ Group*)
10651 lt_prog_compiler_wl='-Wl,'
10652 lt_prog_compiler_pic='-fpic'
10653 lt_prog_compiler_static='-Bstatic'
10655 esac
10657 esac
10660 newsos6)
10661 lt_prog_compiler_pic='-KPIC'
10662 lt_prog_compiler_static='-Bstatic'
10665 *nto* | *qnx*)
10666 # QNX uses GNU C++, but need to define -shared option too, otherwise
10667 # it will coredump.
10668 lt_prog_compiler_pic='-fPIC -shared'
10671 osf3* | osf4* | osf5*)
10672 lt_prog_compiler_wl='-Wl,'
10673 # All OSF/1 code is PIC.
10674 lt_prog_compiler_static='-non_shared'
10677 rdos*)
10678 lt_prog_compiler_static='-non_shared'
10681 solaris*)
10682 lt_prog_compiler_pic='-KPIC'
10683 lt_prog_compiler_static='-Bstatic'
10684 case $cc_basename in
10685 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10686 lt_prog_compiler_wl='-Qoption ld ';;
10688 lt_prog_compiler_wl='-Wl,';;
10689 esac
10692 sunos4*)
10693 lt_prog_compiler_wl='-Qoption ld '
10694 lt_prog_compiler_pic='-PIC'
10695 lt_prog_compiler_static='-Bstatic'
10698 sysv4 | sysv4.2uw2* | sysv4.3*)
10699 lt_prog_compiler_wl='-Wl,'
10700 lt_prog_compiler_pic='-KPIC'
10701 lt_prog_compiler_static='-Bstatic'
10704 sysv4*MP*)
10705 if test -d /usr/nec; then
10706 lt_prog_compiler_pic='-Kconform_pic'
10707 lt_prog_compiler_static='-Bstatic'
10711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10712 lt_prog_compiler_wl='-Wl,'
10713 lt_prog_compiler_pic='-KPIC'
10714 lt_prog_compiler_static='-Bstatic'
10717 unicos*)
10718 lt_prog_compiler_wl='-Wl,'
10719 lt_prog_compiler_can_build_shared=no
10722 uts4*)
10723 lt_prog_compiler_pic='-pic'
10724 lt_prog_compiler_static='-Bstatic'
10728 lt_prog_compiler_can_build_shared=no
10730 esac
10733 case $host_os in
10734 # For platforms that do not support PIC, -DPIC is meaningless:
10735 *djgpp*)
10736 lt_prog_compiler_pic=
10739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10741 esac
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10744 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10745 if ${lt_cv_prog_compiler_pic+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10751 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10752 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10755 # Check to make sure the PIC flag actually works.
10757 if test -n "$lt_prog_compiler_pic"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10759 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10760 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 lt_cv_prog_compiler_pic_works=no
10764 ac_outfile=conftest.$ac_objext
10765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10766 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10767 # Insert the option either (1) after the last *FLAGS variable, or
10768 # (2) before a word containing "conftest.", or (3) at the end.
10769 # Note that $ac_compile itself does not contain backslashes and begins
10770 # with a dollar sign (not a hyphen), so the echo should work correctly.
10771 # The option is referenced via a variable to avoid confusing sed.
10772 lt_compile=`echo "$ac_compile" | $SED \
10773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10775 -e 's:$: $lt_compiler_flag:'`
10776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10777 (eval "$lt_compile" 2>conftest.err)
10778 ac_status=$?
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 if (exit $ac_status) && test -s "$ac_outfile"; then
10782 # The compiler can only warn and ignore the option if not recognized
10783 # So say no if there are warnings other than the usual output.
10784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10787 lt_cv_prog_compiler_pic_works=yes
10790 $RM conftest*
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10794 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10796 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10797 case $lt_prog_compiler_pic in
10798 "" | " "*) ;;
10799 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10800 esac
10801 else
10802 lt_prog_compiler_pic=
10803 lt_prog_compiler_can_build_shared=no
10819 # Check to make sure the static flag actually works.
10821 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10824 if ${lt_cv_prog_compiler_static_works+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 lt_cv_prog_compiler_static_works=no
10828 save_LDFLAGS=$LDFLAGS
10829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10832 # The linker can only warn and ignore the option if not recognized
10833 # So say no if there are warnings
10834 if test -s conftest.err; then
10835 # Append any errors to the config.log.
10836 cat conftest.err 1>&5
10837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10839 if diff conftest.exp conftest.er2 >/dev/null; then
10840 lt_cv_prog_compiler_static_works=yes
10842 else
10843 lt_cv_prog_compiler_static_works=yes
10846 $RM -r conftest*
10847 LDFLAGS=$save_LDFLAGS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10851 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10853 if test yes = "$lt_cv_prog_compiler_static_works"; then
10855 else
10856 lt_prog_compiler_static=
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10867 if ${lt_cv_prog_compiler_c_o+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 lt_cv_prog_compiler_c_o=no
10871 $RM -r conftest 2>/dev/null
10872 mkdir conftest
10873 cd conftest
10874 mkdir out
10875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10877 lt_compiler_flag="-o out/conftest2.$ac_objext"
10878 # Insert the option either (1) after the last *FLAGS variable, or
10879 # (2) before a word containing "conftest.", or (3) at the end.
10880 # Note that $ac_compile itself does not contain backslashes and begins
10881 # with a dollar sign (not a hyphen), so the echo should work correctly.
10882 lt_compile=`echo "$ac_compile" | $SED \
10883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10885 -e 's:$: $lt_compiler_flag:'`
10886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10887 (eval "$lt_compile" 2>out/conftest.err)
10888 ac_status=$?
10889 cat out/conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10892 then
10893 # The compiler can only warn and ignore the option if not recognized
10894 # So say no if there are warnings
10895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10898 lt_cv_prog_compiler_c_o=yes
10901 chmod u+w . 2>&5
10902 $RM conftest*
10903 # SGI C++ compiler will create directory out/ii_files/ for
10904 # template instantiation
10905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10906 $RM out/* && rmdir out
10907 cd ..
10908 $RM -r conftest
10909 $RM conftest*
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10913 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10922 if ${lt_cv_prog_compiler_c_o+:} false; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 lt_cv_prog_compiler_c_o=no
10926 $RM -r conftest 2>/dev/null
10927 mkdir conftest
10928 cd conftest
10929 mkdir out
10930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10932 lt_compiler_flag="-o out/conftest2.$ac_objext"
10933 # Insert the option either (1) after the last *FLAGS variable, or
10934 # (2) before a word containing "conftest.", or (3) at the end.
10935 # Note that $ac_compile itself does not contain backslashes and begins
10936 # with a dollar sign (not a hyphen), so the echo should work correctly.
10937 lt_compile=`echo "$ac_compile" | $SED \
10938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10940 -e 's:$: $lt_compiler_flag:'`
10941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10942 (eval "$lt_compile" 2>out/conftest.err)
10943 ac_status=$?
10944 cat out/conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10947 then
10948 # The compiler can only warn and ignore the option if not recognized
10949 # So say no if there are warnings
10950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10953 lt_cv_prog_compiler_c_o=yes
10956 chmod u+w . 2>&5
10957 $RM conftest*
10958 # SGI C++ compiler will create directory out/ii_files/ for
10959 # template instantiation
10960 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10961 $RM out/* && rmdir out
10962 cd ..
10963 $RM -r conftest
10964 $RM conftest*
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10968 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10973 hard_links=nottested
10974 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10975 # do not overwrite the value of need_locks provided by the user
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10977 $as_echo_n "checking if we can lock with hard links... " >&6; }
10978 hard_links=yes
10979 $RM conftest*
10980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10981 touch conftest.a
10982 ln conftest.a conftest.b 2>&5 || hard_links=no
10983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10985 $as_echo "$hard_links" >&6; }
10986 if test no = "$hard_links"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10988 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10989 need_locks=warn
10991 else
10992 need_locks=no
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11001 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11003 runpath_var=
11004 allow_undefined_flag=
11005 always_export_symbols=no
11006 archive_cmds=
11007 archive_expsym_cmds=
11008 compiler_needs_object=no
11009 enable_shared_with_static_runtimes=no
11010 export_dynamic_flag_spec=
11011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11012 hardcode_automatic=no
11013 hardcode_direct=no
11014 hardcode_direct_absolute=no
11015 hardcode_libdir_flag_spec=
11016 hardcode_libdir_separator=
11017 hardcode_minus_L=no
11018 hardcode_shlibpath_var=unsupported
11019 inherit_rpath=no
11020 link_all_deplibs=unknown
11021 module_cmds=
11022 module_expsym_cmds=
11023 old_archive_from_new_cmds=
11024 old_archive_from_expsyms_cmds=
11025 thread_safe_flag_spec=
11026 whole_archive_flag_spec=
11027 # include_expsyms should be a list of space-separated symbols to be *always*
11028 # included in the symbol list
11029 include_expsyms=
11030 # exclude_expsyms can be an extended regexp of symbols to exclude
11031 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11032 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11033 # as well as any symbol that contains 'd'.
11034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11036 # platforms (ab)use it in PIC code, but their linkers get confused if
11037 # the symbol is explicitly referenced. Since portable code cannot
11038 # rely on this symbol name, it's probably fine to never include it in
11039 # preloaded symbol tables.
11040 # Exclude shared library initialization/finalization symbols.
11041 extract_expsyms_cmds=
11043 case $host_os in
11044 cygwin* | mingw* | pw32* | cegcc*)
11045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11046 # When not using gcc, we currently assume that we are using
11047 # Microsoft Visual C++.
11048 if test yes != "$GCC"; then
11049 with_gnu_ld=no
11052 interix*)
11053 # we just hope/assume this is gcc and not c89 (= MSVC++)
11054 with_gnu_ld=yes
11056 openbsd* | bitrig*)
11057 with_gnu_ld=no
11059 esac
11061 ld_shlibs=yes
11063 # On some targets, GNU ld is compatible enough with the native linker
11064 # that we're better off using the native interface for both.
11065 lt_use_gnu_ld_interface=no
11066 if test yes = "$with_gnu_ld"; then
11067 case $host_os in
11068 aix*)
11069 # The AIX port of GNU ld has always aspired to compatibility
11070 # with the native linker. However, as the warning in the GNU ld
11071 # block says, versions before 2.19.5* couldn't really create working
11072 # shared libraries, regardless of the interface used.
11073 case `$LD -v 2>&1` in
11074 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11075 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11076 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11078 lt_use_gnu_ld_interface=yes
11080 esac
11083 lt_use_gnu_ld_interface=yes
11085 esac
11088 if test yes = "$lt_use_gnu_ld_interface"; then
11089 # If archive_cmds runs LD, not CC, wlarc should be empty
11090 wlarc='$wl'
11092 # Set some defaults for GNU ld with shared library support. These
11093 # are reset later if shared libraries are not supported. Putting them
11094 # here allows them to be overridden if necessary.
11095 runpath_var=LD_RUN_PATH
11096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11097 export_dynamic_flag_spec='$wl--export-dynamic'
11098 # ancient GNU ld didn't support --whole-archive et. al.
11099 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11100 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11101 else
11102 whole_archive_flag_spec=
11104 supports_anon_versioning=no
11105 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11106 *GNU\ gold*) supports_anon_versioning=yes ;;
11107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11110 *\ 2.11.*) ;; # other 2.11 versions
11111 *) supports_anon_versioning=yes ;;
11112 esac
11114 # See if GNU ld supports shared libraries.
11115 case $host_os in
11116 aix[3-9]*)
11117 # On AIX/PPC, the GNU linker is very broken
11118 if test ia64 != "$host_cpu"; then
11119 ld_shlibs=no
11120 cat <<_LT_EOF 1>&2
11122 *** Warning: the GNU linker, at least up to release 2.19, is reported
11123 *** to be unable to reliably create shared libraries on AIX.
11124 *** Therefore, libtool is disabling shared libraries support. If you
11125 *** really care for shared libraries, you may want to install binutils
11126 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11127 *** You will then need to restart the configuration process.
11129 _LT_EOF
11133 amigaos*)
11134 case $host_cpu in
11135 powerpc)
11136 # see comment about AmigaOS4 .so support
11137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11138 archive_expsym_cmds=''
11140 m68k)
11141 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)'
11142 hardcode_libdir_flag_spec='-L$libdir'
11143 hardcode_minus_L=yes
11145 esac
11148 beos*)
11149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11150 allow_undefined_flag=unsupported
11151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11152 # support --undefined. This deserves some investigation. FIXME
11153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11154 else
11155 ld_shlibs=no
11159 cygwin* | mingw* | pw32* | cegcc*)
11160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11161 # as there is no search path for DLLs.
11162 hardcode_libdir_flag_spec='-L$libdir'
11163 export_dynamic_flag_spec='$wl--export-all-symbols'
11164 allow_undefined_flag=unsupported
11165 always_export_symbols=no
11166 enable_shared_with_static_runtimes=yes
11167 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'
11168 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11172 # If the export-symbols file already is a .def file, use it as
11173 # is; otherwise, prepend EXPORTS...
11174 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11175 cp $export_symbols $output_objdir/$soname.def;
11176 else
11177 echo EXPORTS > $output_objdir/$soname.def;
11178 cat $export_symbols >> $output_objdir/$soname.def;
11180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11181 else
11182 ld_shlibs=no
11186 haiku*)
11187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11188 link_all_deplibs=yes
11191 os2*)
11192 hardcode_libdir_flag_spec='-L$libdir'
11193 hardcode_minus_L=yes
11194 allow_undefined_flag=unsupported
11195 shrext_cmds=.dll
11196 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11197 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11198 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11199 $ECHO EXPORTS >> $output_objdir/$libname.def~
11200 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11201 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11202 emximp -o $lib $output_objdir/$libname.def'
11203 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11204 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11205 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11206 $ECHO EXPORTS >> $output_objdir/$libname.def~
11207 prefix_cmds="$SED"~
11208 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11209 prefix_cmds="$prefix_cmds -e 1d";
11211 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11212 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11213 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11214 emximp -o $lib $output_objdir/$libname.def'
11215 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11216 enable_shared_with_static_runtimes=yes
11219 interix[3-9]*)
11220 hardcode_direct=no
11221 hardcode_shlibpath_var=no
11222 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11223 export_dynamic_flag_spec='$wl-E'
11224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11225 # Instead, shared libraries are loaded at an image base (0x10000000 by
11226 # default) and relocated if they conflict, which is a slow very memory
11227 # consuming and fragmenting process. To avoid this, we pick a random,
11228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11230 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11231 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'
11234 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11235 tmp_diet=no
11236 if test linux-dietlibc = "$host_os"; then
11237 case $cc_basename in
11238 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11239 esac
11241 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11242 && test no = "$tmp_diet"
11243 then
11244 tmp_addflag=' $pic_flag'
11245 tmp_sharedflag='-shared'
11246 case $cc_basename,$host_cpu in
11247 pgcc*) # Portland Group C compiler
11248 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'
11249 tmp_addflag=' $pic_flag'
11251 pgf77* | pgf90* | pgf95* | pgfortran*)
11252 # Portland Group f77 and f90 compilers
11253 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'
11254 tmp_addflag=' $pic_flag -Mnomain' ;;
11255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11256 tmp_addflag=' -i_dynamic' ;;
11257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11258 tmp_addflag=' -i_dynamic -nofor_main' ;;
11259 ifc* | ifort*) # Intel Fortran compiler
11260 tmp_addflag=' -nofor_main' ;;
11261 lf95*) # Lahey Fortran 8.1
11262 whole_archive_flag_spec=
11263 tmp_sharedflag='--shared' ;;
11264 nagfor*) # NAGFOR 5.3
11265 tmp_sharedflag='-Wl,-shared' ;;
11266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11267 tmp_sharedflag='-qmkshrobj'
11268 tmp_addflag= ;;
11269 nvcc*) # Cuda Compiler Driver 2.2
11270 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'
11271 compiler_needs_object=yes
11273 esac
11274 case `$CC -V 2>&1 | sed 5q` in
11275 *Sun\ C*) # Sun C 5.9
11276 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'
11277 compiler_needs_object=yes
11278 tmp_sharedflag='-G' ;;
11279 *Sun\ F*) # Sun Fortran 8.3
11280 tmp_sharedflag='-G' ;;
11281 esac
11282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11284 if test yes = "$supports_anon_versioning"; then
11285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11287 echo "local: *; };" >> $output_objdir/$libname.ver~
11288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11291 case $cc_basename in
11292 tcc*)
11293 export_dynamic_flag_spec='-rdynamic'
11295 xlf* | bgf* | bgxlf* | mpixlf*)
11296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11299 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11300 if test yes = "$supports_anon_versioning"; then
11301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11303 echo "local: *; };" >> $output_objdir/$libname.ver~
11304 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11307 esac
11308 else
11309 ld_shlibs=no
11313 netbsd*)
11314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11315 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11316 wlarc=
11317 else
11318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11323 solaris*)
11324 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11325 ld_shlibs=no
11326 cat <<_LT_EOF 1>&2
11328 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11329 *** create shared libraries on Solaris systems. Therefore, libtool
11330 *** is disabling shared libraries support. We urge you to upgrade GNU
11331 *** binutils to release 2.9.1 or newer. Another option is to modify
11332 *** your PATH or compiler configuration so that the native linker is
11333 *** used, and then restart.
11335 _LT_EOF
11336 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11339 else
11340 ld_shlibs=no
11344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11345 case `$LD -v 2>&1` in
11346 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11347 ld_shlibs=no
11348 cat <<_LT_EOF 1>&2
11350 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11351 *** reliably create shared libraries on SCO systems. Therefore, libtool
11352 *** is disabling shared libraries support. We urge you to upgrade GNU
11353 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11354 *** your PATH or compiler configuration so that the native linker is
11355 *** used, and then restart.
11357 _LT_EOF
11360 # For security reasons, it is highly recommended that you always
11361 # use absolute paths for naming shared libraries, and exclude the
11362 # DT_RUNPATH tag from executables and libraries. But doing so
11363 # requires that you compile everything twice, which is a pain.
11364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11368 else
11369 ld_shlibs=no
11372 esac
11375 sunos4*)
11376 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11377 wlarc=
11378 hardcode_direct=yes
11379 hardcode_shlibpath_var=no
11383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11386 else
11387 ld_shlibs=no
11390 esac
11392 if test no = "$ld_shlibs"; then
11393 runpath_var=
11394 hardcode_libdir_flag_spec=
11395 export_dynamic_flag_spec=
11396 whole_archive_flag_spec=
11398 else
11399 # PORTME fill in a description of your system's linker (not GNU ld)
11400 case $host_os in
11401 aix3*)
11402 allow_undefined_flag=unsupported
11403 always_export_symbols=yes
11404 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'
11405 # Note: this linker hardcodes the directories in LIBPATH if there
11406 # are no directories specified by -L.
11407 hardcode_minus_L=yes
11408 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11409 # Neither direct hardcoding nor static linking is supported with a
11410 # broken collect2.
11411 hardcode_direct=unsupported
11415 aix[4-9]*)
11416 if test ia64 = "$host_cpu"; then
11417 # On IA64, the linker does run time linking by default, so we don't
11418 # have to do anything special.
11419 aix_use_runtimelinking=no
11420 exp_sym_flag='-Bexport'
11421 no_entry_flag=
11422 else
11423 # If we're using GNU nm, then we don't want the "-C" option.
11424 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11425 # Without the "-l" option, or with the "-B" option, AIX nm treats
11426 # weak defined symbols like other global defined symbols, whereas
11427 # GNU nm marks them as "W".
11428 # While the 'weak' keyword is ignored in the Export File, we need
11429 # it in the Import File for the 'aix-soname' feature, so we have
11430 # to replace the "-B" option with "-P" for AIX nm.
11431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11432 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'
11433 else
11434 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'
11436 aix_use_runtimelinking=no
11438 # Test if we are trying to use run time linking or normal
11439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11440 # have runtime linking enabled, and use it for executables.
11441 # For shared libraries, we enable/disable runtime linking
11442 # depending on the kind of the shared library created -
11443 # when "with_aix_soname,aix_use_runtimelinking" is:
11444 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11445 # "aix,yes" lib.so shared, rtl:yes, for executables
11446 # lib.a static archive
11447 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11448 # lib.a(lib.so.V) shared, rtl:no, for executables
11449 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11450 # lib.a(lib.so.V) shared, rtl:no
11451 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11452 # lib.a static archive
11453 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11454 for ld_flag in $LDFLAGS; do
11455 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11456 aix_use_runtimelinking=yes
11457 break
11459 done
11460 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11461 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11462 # so we don't have lib.a shared libs to link our executables.
11463 # We have to force runtime linking in this case.
11464 aix_use_runtimelinking=yes
11465 LDFLAGS="$LDFLAGS -Wl,-brtl"
11468 esac
11470 exp_sym_flag='-bexport'
11471 no_entry_flag='-bnoentry'
11474 # When large executables or shared objects are built, AIX ld can
11475 # have problems creating the table of contents. If linking a library
11476 # or program results in "error TOC overflow" add -mminimal-toc to
11477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11480 archive_cmds=''
11481 hardcode_direct=yes
11482 hardcode_direct_absolute=yes
11483 hardcode_libdir_separator=':'
11484 link_all_deplibs=yes
11485 file_list_spec='$wl-f,'
11486 case $with_aix_soname,$aix_use_runtimelinking in
11487 aix,*) ;; # traditional, no import file
11488 svr4,* | *,yes) # use import file
11489 # The Import File defines what to hardcode.
11490 hardcode_direct=no
11491 hardcode_direct_absolute=no
11493 esac
11495 if test yes = "$GCC"; then
11496 case $host_os in aix4.[012]|aix4.[012].*)
11497 # We only want to do this on AIX 4.2 and lower, the check
11498 # below for broken collect2 doesn't work under 4.3+
11499 collect2name=`$CC -print-prog-name=collect2`
11500 if test -f "$collect2name" &&
11501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11502 then
11503 # We have reworked collect2
11505 else
11506 # We have old collect2
11507 hardcode_direct=unsupported
11508 # It fails to find uninstalled libraries when the uninstalled
11509 # path is not listed in the libpath. Setting hardcode_minus_L
11510 # to unsupported forces relinking
11511 hardcode_minus_L=yes
11512 hardcode_libdir_flag_spec='-L$libdir'
11513 hardcode_libdir_separator=
11516 esac
11517 shared_flag='-shared'
11518 if test yes = "$aix_use_runtimelinking"; then
11519 shared_flag="$shared_flag "'$wl-G'
11521 # Need to ensure runtime linking is disabled for the traditional
11522 # shared library, or the linker may eventually find shared libraries
11523 # /with/ Import File - we do not want to mix them.
11524 shared_flag_aix='-shared'
11525 shared_flag_svr4='-shared $wl-G'
11526 else
11527 # not using gcc
11528 if test ia64 = "$host_cpu"; then
11529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11530 # chokes on -Wl,-G. The following line is correct:
11531 shared_flag='-G'
11532 else
11533 if test yes = "$aix_use_runtimelinking"; then
11534 shared_flag='$wl-G'
11535 else
11536 shared_flag='$wl-bM:SRE'
11538 shared_flag_aix='$wl-bM:SRE'
11539 shared_flag_svr4='$wl-G'
11543 export_dynamic_flag_spec='$wl-bexpall'
11544 # It seems that -bexpall does not export symbols beginning with
11545 # underscore (_), so it is better to generate a list of symbols to export.
11546 always_export_symbols=yes
11547 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11548 # Warning - without using the other runtime loading flags (-brtl),
11549 # -berok will link without error, but may produce a broken library.
11550 allow_undefined_flag='-berok'
11551 # Determine the default libpath from the value encoded in an
11552 # empty executable.
11553 if test set = "${lt_cv_aix_libpath+set}"; then
11554 aix_libpath=$lt_cv_aix_libpath
11555 else
11556 if ${lt_cv_aix_libpath_+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11563 main ()
11567 return 0;
11569 _ACEOF
11570 if ac_fn_c_try_link "$LINENO"; then :
11572 lt_aix_libpath_sed='
11573 /Import File Strings/,/^$/ {
11574 /^0/ {
11575 s/^0 *\([^ ]*\) *$/\1/
11579 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11580 # Check for a 64-bit object if we didn't find anything.
11581 if test -z "$lt_cv_aix_libpath_"; then
11582 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 if test -z "$lt_cv_aix_libpath_"; then
11588 lt_cv_aix_libpath_=/usr/lib:/lib
11593 aix_libpath=$lt_cv_aix_libpath_
11596 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11597 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
11598 else
11599 if test ia64 = "$host_cpu"; then
11600 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11601 allow_undefined_flag="-z nodefs"
11602 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"
11603 else
11604 # Determine the default libpath from the value encoded in an
11605 # empty executable.
11606 if test set = "${lt_cv_aix_libpath+set}"; then
11607 aix_libpath=$lt_cv_aix_libpath
11608 else
11609 if ${lt_cv_aix_libpath_+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11616 main ()
11620 return 0;
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11625 lt_aix_libpath_sed='
11626 /Import File Strings/,/^$/ {
11627 /^0/ {
11628 s/^0 *\([^ ]*\) *$/\1/
11632 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11633 # Check for a 64-bit object if we didn't find anything.
11634 if test -z "$lt_cv_aix_libpath_"; then
11635 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 if test -z "$lt_cv_aix_libpath_"; then
11641 lt_cv_aix_libpath_=/usr/lib:/lib
11646 aix_libpath=$lt_cv_aix_libpath_
11649 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11650 # Warning - without using the other run time loading flags,
11651 # -berok will link without error, but may produce a broken library.
11652 no_undefined_flag=' $wl-bernotok'
11653 allow_undefined_flag=' $wl-berok'
11654 if test yes = "$with_gnu_ld"; then
11655 # We only use this code for GNU lds that support --whole-archive.
11656 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11657 else
11658 # Exported symbols can be pulled into shared objects from archives
11659 whole_archive_flag_spec='$convenience'
11661 archive_cmds_need_lc=yes
11662 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11663 # -brtl affects multiple linker settings, -berok does not and is overridden later
11664 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11665 if test svr4 != "$with_aix_soname"; then
11666 # This is similar to how AIX traditionally builds its shared libraries.
11667 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'
11669 if test aix != "$with_aix_soname"; then
11670 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'
11671 else
11672 # used by -dlpreopen to get the symbols
11673 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11675 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11680 amigaos*)
11681 case $host_cpu in
11682 powerpc)
11683 # see comment about AmigaOS4 .so support
11684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11685 archive_expsym_cmds=''
11687 m68k)
11688 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)'
11689 hardcode_libdir_flag_spec='-L$libdir'
11690 hardcode_minus_L=yes
11692 esac
11695 bsdi[45]*)
11696 export_dynamic_flag_spec=-rdynamic
11699 cygwin* | mingw* | pw32* | cegcc*)
11700 # When not using gcc, we currently assume that we are using
11701 # Microsoft Visual C++.
11702 # hardcode_libdir_flag_spec is actually meaningless, as there is
11703 # no search path for DLLs.
11704 case $cc_basename in
11705 cl*)
11706 # Native MSVC
11707 hardcode_libdir_flag_spec=' '
11708 allow_undefined_flag=unsupported
11709 always_export_symbols=yes
11710 file_list_spec='@'
11711 # Tell ltmain to make .lib files, not .a files.
11712 libext=lib
11713 # Tell ltmain to make .dll files, not .so files.
11714 shrext_cmds=.dll
11715 # FIXME: Setting linknames here is a bad hack.
11716 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11717 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11718 cp "$export_symbols" "$output_objdir/$soname.def";
11719 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11720 else
11721 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11723 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11724 linknames='
11725 # The linker will not automatically build a static lib if we build a DLL.
11726 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11727 enable_shared_with_static_runtimes=yes
11728 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11730 # Don't use ranlib
11731 old_postinstall_cmds='chmod 644 $oldlib'
11732 postlink_cmds='lt_outputfile="@OUTPUT@"~
11733 lt_tool_outputfile="@TOOL_OUTPUT@"~
11734 case $lt_outputfile in
11735 *.exe|*.EXE) ;;
11737 lt_outputfile=$lt_outputfile.exe
11738 lt_tool_outputfile=$lt_tool_outputfile.exe
11740 esac~
11741 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11742 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11743 $RM "$lt_outputfile.manifest";
11747 # Assume MSVC wrapper
11748 hardcode_libdir_flag_spec=' '
11749 allow_undefined_flag=unsupported
11750 # Tell ltmain to make .lib files, not .a files.
11751 libext=lib
11752 # Tell ltmain to make .dll files, not .so files.
11753 shrext_cmds=.dll
11754 # FIXME: Setting linknames here is a bad hack.
11755 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11756 # The linker will automatically build a .lib file if we build a DLL.
11757 old_archive_from_new_cmds='true'
11758 # FIXME: Should let the user specify the lib program.
11759 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11760 enable_shared_with_static_runtimes=yes
11762 esac
11765 darwin* | rhapsody*)
11768 archive_cmds_need_lc=no
11769 hardcode_direct=no
11770 hardcode_automatic=yes
11771 hardcode_shlibpath_var=unsupported
11772 if test yes = "$lt_cv_ld_force_load"; then
11773 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\"`'
11775 else
11776 whole_archive_flag_spec=''
11778 link_all_deplibs=yes
11779 allow_undefined_flag=$_lt_dar_allow_undefined
11780 case $cc_basename in
11781 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11782 *) _lt_dar_can_shared=$GCC ;;
11783 esac
11784 if test yes = "$_lt_dar_can_shared"; then
11785 output_verbose_link_cmd=func_echo_all
11786 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11787 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11788 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"
11789 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"
11791 else
11792 ld_shlibs=no
11797 dgux*)
11798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11799 hardcode_libdir_flag_spec='-L$libdir'
11800 hardcode_shlibpath_var=no
11803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11804 # support. Future versions do this automatically, but an explicit c++rt0.o
11805 # does not break anything, and helps significantly (at the cost of a little
11806 # extra space).
11807 freebsd2.2*)
11808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11809 hardcode_libdir_flag_spec='-R$libdir'
11810 hardcode_direct=yes
11811 hardcode_shlibpath_var=no
11814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11815 freebsd2.*)
11816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11817 hardcode_direct=yes
11818 hardcode_minus_L=yes
11819 hardcode_shlibpath_var=no
11822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11823 freebsd* | dragonfly*)
11824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11825 hardcode_libdir_flag_spec='-R$libdir'
11826 hardcode_direct=yes
11827 hardcode_shlibpath_var=no
11830 hpux9*)
11831 if test yes = "$GCC"; then
11832 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'
11833 else
11834 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'
11836 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11837 hardcode_libdir_separator=:
11838 hardcode_direct=yes
11840 # hardcode_minus_L: Not really in the search PATH,
11841 # but as the default location of the library.
11842 hardcode_minus_L=yes
11843 export_dynamic_flag_spec='$wl-E'
11846 hpux10*)
11847 if test yes,no = "$GCC,$with_gnu_ld"; then
11848 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11849 else
11850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11852 if test no = "$with_gnu_ld"; then
11853 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11854 hardcode_libdir_separator=:
11855 hardcode_direct=yes
11856 hardcode_direct_absolute=yes
11857 export_dynamic_flag_spec='$wl-E'
11858 # hardcode_minus_L: Not really in the search PATH,
11859 # but as the default location of the library.
11860 hardcode_minus_L=yes
11864 hpux11*)
11865 if test yes,no = "$GCC,$with_gnu_ld"; then
11866 case $host_cpu in
11867 hppa*64*)
11868 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11870 ia64*)
11871 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11874 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11876 esac
11877 else
11878 case $host_cpu in
11879 hppa*64*)
11880 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 ia64*)
11883 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11887 # Older versions of the 11.00 compiler do not understand -b yet
11888 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11890 $as_echo_n "checking if $CC understands -b... " >&6; }
11891 if ${lt_cv_prog_compiler__b+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 lt_cv_prog_compiler__b=no
11895 save_LDFLAGS=$LDFLAGS
11896 LDFLAGS="$LDFLAGS -b"
11897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11899 # The linker can only warn and ignore the option if not recognized
11900 # So say no if there are warnings
11901 if test -s conftest.err; then
11902 # Append any errors to the config.log.
11903 cat conftest.err 1>&5
11904 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11906 if diff conftest.exp conftest.er2 >/dev/null; then
11907 lt_cv_prog_compiler__b=yes
11909 else
11910 lt_cv_prog_compiler__b=yes
11913 $RM -r conftest*
11914 LDFLAGS=$save_LDFLAGS
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11918 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11920 if test yes = "$lt_cv_prog_compiler__b"; then
11921 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11922 else
11923 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11927 esac
11929 if test no = "$with_gnu_ld"; then
11930 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11931 hardcode_libdir_separator=:
11933 case $host_cpu in
11934 hppa*64*|ia64*)
11935 hardcode_direct=no
11936 hardcode_shlibpath_var=no
11939 hardcode_direct=yes
11940 hardcode_direct_absolute=yes
11941 export_dynamic_flag_spec='$wl-E'
11943 # hardcode_minus_L: Not really in the search PATH,
11944 # but as the default location of the library.
11945 hardcode_minus_L=yes
11947 esac
11951 irix5* | irix6* | nonstopux*)
11952 if test yes = "$GCC"; then
11953 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'
11954 # Try to use the -exported_symbol ld option, if it does not
11955 # work, assume that -exports_file does not work either and
11956 # implicitly export all symbols.
11957 # This should be the same for all languages, so no per-tag cache variable.
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11959 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11960 if ${lt_cv_irix_exported_symbol+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 save_LDFLAGS=$LDFLAGS
11964 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 int foo (void) { return 0; }
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 lt_cv_irix_exported_symbol=yes
11971 else
11972 lt_cv_irix_exported_symbol=no
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LDFLAGS=$save_LDFLAGS
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11979 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11980 if test yes = "$lt_cv_irix_exported_symbol"; then
11981 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'
11983 else
11984 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'
11985 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'
11987 archive_cmds_need_lc='no'
11988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11989 hardcode_libdir_separator=:
11990 inherit_rpath=yes
11991 link_all_deplibs=yes
11994 linux*)
11995 case $cc_basename in
11996 tcc*)
11997 # Fabrice Bellard et al's Tiny C Compiler
11998 ld_shlibs=yes
11999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12001 esac
12004 netbsd*)
12005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12007 else
12008 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12010 hardcode_libdir_flag_spec='-R$libdir'
12011 hardcode_direct=yes
12012 hardcode_shlibpath_var=no
12015 newsos6)
12016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12017 hardcode_direct=yes
12018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12019 hardcode_libdir_separator=:
12020 hardcode_shlibpath_var=no
12023 *nto* | *qnx*)
12026 openbsd* | bitrig*)
12027 if test -f /usr/libexec/ld.so; then
12028 hardcode_direct=yes
12029 hardcode_shlibpath_var=no
12030 hardcode_direct_absolute=yes
12031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12033 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12034 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12035 export_dynamic_flag_spec='$wl-E'
12036 else
12037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12038 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12040 else
12041 ld_shlibs=no
12045 os2*)
12046 hardcode_libdir_flag_spec='-L$libdir'
12047 hardcode_minus_L=yes
12048 allow_undefined_flag=unsupported
12049 shrext_cmds=.dll
12050 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12053 $ECHO EXPORTS >> $output_objdir/$libname.def~
12054 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12055 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12056 emximp -o $lib $output_objdir/$libname.def'
12057 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12058 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12059 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12060 $ECHO EXPORTS >> $output_objdir/$libname.def~
12061 prefix_cmds="$SED"~
12062 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12063 prefix_cmds="$prefix_cmds -e 1d";
12065 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12066 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12068 emximp -o $lib $output_objdir/$libname.def'
12069 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12070 enable_shared_with_static_runtimes=yes
12073 osf3*)
12074 if test yes = "$GCC"; then
12075 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12076 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'
12077 else
12078 allow_undefined_flag=' -expect_unresolved \*'
12079 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'
12081 archive_cmds_need_lc='no'
12082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12083 hardcode_libdir_separator=:
12086 osf4* | osf5*) # as osf3* with the addition of -msym flag
12087 if test yes = "$GCC"; then
12088 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12089 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'
12090 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12091 else
12092 allow_undefined_flag=' -expect_unresolved \*'
12093 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'
12094 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~
12095 $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'
12097 # Both c and cxx compiler support -rpath directly
12098 hardcode_libdir_flag_spec='-rpath $libdir'
12100 archive_cmds_need_lc='no'
12101 hardcode_libdir_separator=:
12104 solaris*)
12105 no_undefined_flag=' -z defs'
12106 if test yes = "$GCC"; then
12107 wlarc='$wl'
12108 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12110 $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'
12111 else
12112 case `$CC -V 2>&1` in
12113 *"Compilers 5.0"*)
12114 wlarc=''
12115 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12117 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12120 wlarc='$wl'
12121 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12123 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12125 esac
12127 hardcode_libdir_flag_spec='-R$libdir'
12128 hardcode_shlibpath_var=no
12129 case $host_os in
12130 solaris2.[0-5] | solaris2.[0-5].*) ;;
12132 # The compiler driver will combine and reorder linker options,
12133 # but understands '-z linker_flag'. GCC discards it without '$wl',
12134 # but is careful enough not to reorder.
12135 # Supported since Solaris 2.6 (maybe 2.5.1?)
12136 if test yes = "$GCC"; then
12137 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12138 else
12139 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12142 esac
12143 link_all_deplibs=yes
12146 sunos4*)
12147 if test sequent = "$host_vendor"; then
12148 # Use $CC to link under sequent, because it throws in some extra .o
12149 # files that make .init and .fini sections work.
12150 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12151 else
12152 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12154 hardcode_libdir_flag_spec='-L$libdir'
12155 hardcode_direct=yes
12156 hardcode_minus_L=yes
12157 hardcode_shlibpath_var=no
12160 sysv4)
12161 case $host_vendor in
12162 sni)
12163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12164 hardcode_direct=yes # is this really true???
12166 siemens)
12167 ## LD is ld it makes a PLAMLIB
12168 ## CC just makes a GrossModule.
12169 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12170 reload_cmds='$CC -r -o $output$reload_objs'
12171 hardcode_direct=no
12173 motorola)
12174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12175 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12177 esac
12178 runpath_var='LD_RUN_PATH'
12179 hardcode_shlibpath_var=no
12182 sysv4.3*)
12183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12184 hardcode_shlibpath_var=no
12185 export_dynamic_flag_spec='-Bexport'
12188 sysv4*MP*)
12189 if test -d /usr/nec; then
12190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12191 hardcode_shlibpath_var=no
12192 runpath_var=LD_RUN_PATH
12193 hardcode_runpath_var=yes
12194 ld_shlibs=yes
12198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12199 no_undefined_flag='$wl-z,text'
12200 archive_cmds_need_lc=no
12201 hardcode_shlibpath_var=no
12202 runpath_var='LD_RUN_PATH'
12204 if test yes = "$GCC"; then
12205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 else
12208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12213 sysv5* | sco3.2v5* | sco5v6*)
12214 # Note: We CANNOT use -z defs as we might desire, because we do not
12215 # link with -lc, and that would cause any symbols used from libc to
12216 # always be unresolved, which means just about no library would
12217 # ever link correctly. If we're not using GNU ld we use -z text
12218 # though, which does catch some bad symbols but isn't as heavy-handed
12219 # as -z defs.
12220 no_undefined_flag='$wl-z,text'
12221 allow_undefined_flag='$wl-z,nodefs'
12222 archive_cmds_need_lc=no
12223 hardcode_shlibpath_var=no
12224 hardcode_libdir_flag_spec='$wl-R,$libdir'
12225 hardcode_libdir_separator=':'
12226 link_all_deplibs=yes
12227 export_dynamic_flag_spec='$wl-Bexport'
12228 runpath_var='LD_RUN_PATH'
12230 if test yes = "$GCC"; then
12231 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12232 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12233 else
12234 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12235 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12239 uts4*)
12240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12241 hardcode_libdir_flag_spec='-L$libdir'
12242 hardcode_shlibpath_var=no
12246 ld_shlibs=no
12248 esac
12250 if test sni = "$host_vendor"; then
12251 case $host in
12252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12253 export_dynamic_flag_spec='$wl-Blargedynsym'
12255 esac
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12260 $as_echo "$ld_shlibs" >&6; }
12261 test no = "$ld_shlibs" && can_build_shared=no
12263 with_gnu_ld=$with_gnu_ld
12280 # Do we need to explicitly link libc?
12282 case "x$archive_cmds_need_lc" in
12283 x|xyes)
12284 # Assume -lc should be added
12285 archive_cmds_need_lc=yes
12287 if test yes,yes = "$GCC,$enable_shared"; then
12288 case $archive_cmds in
12289 *'~'*)
12290 # FIXME: we may have to deal with multi-command sequences.
12292 '$CC '*)
12293 # Test whether the compiler implicitly links with -lc since on some
12294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12295 # to ld, don't add -lc before -lgcc.
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12298 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 $RM conftest*
12302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12305 (eval $ac_compile) 2>&5
12306 ac_status=$?
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; } 2>conftest.err; then
12309 soname=conftest
12310 lib=conftest
12311 libobjs=conftest.$ac_objext
12312 deplibs=
12313 wl=$lt_prog_compiler_wl
12314 pic_flag=$lt_prog_compiler_pic
12315 compiler_flags=-v
12316 linker_flags=-v
12317 verstring=
12318 output_objdir=.
12319 libname=conftest
12320 lt_save_allow_undefined_flag=$allow_undefined_flag
12321 allow_undefined_flag=
12322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12323 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12324 ac_status=$?
12325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12326 test $ac_status = 0; }
12327 then
12328 lt_cv_archive_cmds_need_lc=no
12329 else
12330 lt_cv_archive_cmds_need_lc=yes
12332 allow_undefined_flag=$lt_save_allow_undefined_flag
12333 else
12334 cat conftest.err 1>&5
12336 $RM conftest*
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12340 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12341 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12343 esac
12346 esac
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12500 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12502 if test yes = "$GCC"; then
12503 case $host_os in
12504 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12505 *) lt_awk_arg='/^libraries:/' ;;
12506 esac
12507 case $host_os in
12508 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12509 *) lt_sed_strip_eq='s|=/|/|g' ;;
12510 esac
12511 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12512 case $lt_search_path_spec in
12513 *\;*)
12514 # if the path contains ";" then we assume it to be the separator
12515 # otherwise default to the standard path separator (i.e. ":") - it is
12516 # assumed that no part of a normal pathname contains ";" but that should
12517 # okay in the real world where ";" in dirpaths is itself problematic.
12518 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12521 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12523 esac
12524 # Ok, now we have the path, separated by spaces, we can step through it
12525 # and add multilib dir if necessary...
12526 lt_tmp_lt_search_path_spec=
12527 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12528 # ...but if some path component already ends with the multilib dir we assume
12529 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12530 case "$lt_multi_os_dir; $lt_search_path_spec " in
12531 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12532 lt_multi_os_dir=
12534 esac
12535 for lt_sys_path in $lt_search_path_spec; do
12536 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12537 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12538 elif test -n "$lt_multi_os_dir"; then
12539 test -d "$lt_sys_path" && \
12540 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12542 done
12543 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12544 BEGIN {RS = " "; FS = "/|\n";} {
12545 lt_foo = "";
12546 lt_count = 0;
12547 for (lt_i = NF; lt_i > 0; lt_i--) {
12548 if ($lt_i != "" && $lt_i != ".") {
12549 if ($lt_i == "..") {
12550 lt_count++;
12551 } else {
12552 if (lt_count == 0) {
12553 lt_foo = "/" $lt_i lt_foo;
12554 } else {
12555 lt_count--;
12560 if (lt_foo != "") { lt_freq[lt_foo]++; }
12561 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12563 # AWK program above erroneously prepends '/' to C:/dos/paths
12564 # for these hosts.
12565 case $host_os in
12566 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12567 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12568 esac
12569 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12570 else
12571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12573 library_names_spec=
12574 libname_spec='lib$name'
12575 soname_spec=
12576 shrext_cmds=.so
12577 postinstall_cmds=
12578 postuninstall_cmds=
12579 finish_cmds=
12580 finish_eval=
12581 shlibpath_var=
12582 shlibpath_overrides_runpath=unknown
12583 version_type=none
12584 dynamic_linker="$host_os ld.so"
12585 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12586 need_lib_prefix=unknown
12587 hardcode_into_libs=no
12589 # when you set need_version to no, make sure it does not cause -set_version
12590 # flags to be left without arguments
12591 need_version=unknown
12595 case $host_os in
12596 aix3*)
12597 version_type=linux # correct to gnu/linux during the next big refactor
12598 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12599 shlibpath_var=LIBPATH
12601 # AIX 3 has no versioning support, so we append a major version to the name.
12602 soname_spec='$libname$release$shared_ext$major'
12605 aix[4-9]*)
12606 version_type=linux # correct to gnu/linux during the next big refactor
12607 need_lib_prefix=no
12608 need_version=no
12609 hardcode_into_libs=yes
12610 if test ia64 = "$host_cpu"; then
12611 # AIX 5 supports IA64
12612 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12613 shlibpath_var=LD_LIBRARY_PATH
12614 else
12615 # With GCC up to 2.95.x, collect2 would create an import file
12616 # for dependence libraries. The import file would start with
12617 # the line '#! .'. This would cause the generated library to
12618 # depend on '.', always an invalid library. This was fixed in
12619 # development snapshots of GCC prior to 3.0.
12620 case $host_os in
12621 aix4 | aix4.[01] | aix4.[01].*)
12622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12623 echo ' yes '
12624 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12626 else
12627 can_build_shared=no
12630 esac
12631 # Using Import Files as archive members, it is possible to support
12632 # filename-based versioning of shared library archives on AIX. While
12633 # this would work for both with and without runtime linking, it will
12634 # prevent static linking of such archives. So we do filename-based
12635 # shared library versioning with .so extension only, which is used
12636 # when both runtime linking and shared linking is enabled.
12637 # Unfortunately, runtime linking may impact performance, so we do
12638 # not want this to be the default eventually. Also, we use the
12639 # versioned .so libs for executables only if there is the -brtl
12640 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12641 # To allow for filename-based versioning support, we need to create
12642 # libNAME.so.V as an archive file, containing:
12643 # *) an Import File, referring to the versioned filename of the
12644 # archive as well as the shared archive member, telling the
12645 # bitwidth (32 or 64) of that shared object, and providing the
12646 # list of exported symbols of that shared object, eventually
12647 # decorated with the 'weak' keyword
12648 # *) the shared object with the F_LOADONLY flag set, to really avoid
12649 # it being seen by the linker.
12650 # At run time we better use the real file rather than another symlink,
12651 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12653 case $with_aix_soname,$aix_use_runtimelinking in
12654 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12655 # soname into executable. Probably we can add versioning support to
12656 # collect2, so additional links can be useful in future.
12657 aix,yes) # traditional libtool
12658 dynamic_linker='AIX unversionable lib.so'
12659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12660 # instead of lib<name>.a to let people know that these are not
12661 # typical AIX shared libraries.
12662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664 aix,no) # traditional AIX only
12665 dynamic_linker='AIX lib.a(lib.so.V)'
12666 # We preserve .a as extension for shared libraries through AIX4.2
12667 # and later when we are not doing run time linking.
12668 library_names_spec='$libname$release.a $libname.a'
12669 soname_spec='$libname$release$shared_ext$major'
12671 svr4,*) # full svr4 only
12672 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12673 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12674 # We do not specify a path in Import Files, so LIBPATH fires.
12675 shlibpath_overrides_runpath=yes
12677 *,yes) # both, prefer svr4
12678 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12679 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12680 # unpreferred sharedlib libNAME.a needs extra handling
12681 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"'
12682 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"'
12683 # We do not specify a path in Import Files, so LIBPATH fires.
12684 shlibpath_overrides_runpath=yes
12686 *,no) # both, prefer aix
12687 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12688 library_names_spec='$libname$release.a $libname.a'
12689 soname_spec='$libname$release$shared_ext$major'
12690 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12691 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)'
12692 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"'
12694 esac
12695 shlibpath_var=LIBPATH
12699 amigaos*)
12700 case $host_cpu in
12701 powerpc)
12702 # Since July 2007 AmigaOS4 officially supports .so libraries.
12703 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12706 m68k)
12707 library_names_spec='$libname.ixlibrary $libname.a'
12708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12709 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'
12711 esac
12714 beos*)
12715 library_names_spec='$libname$shared_ext'
12716 dynamic_linker="$host_os ld.so"
12717 shlibpath_var=LIBRARY_PATH
12720 bsdi[45]*)
12721 version_type=linux # correct to gnu/linux during the next big refactor
12722 need_version=no
12723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12724 soname_spec='$libname$release$shared_ext$major'
12725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12729 # the default ld.so.conf also contains /usr/contrib/lib and
12730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12731 # libtool to hard-code these into programs
12734 cygwin* | mingw* | pw32* | cegcc*)
12735 version_type=windows
12736 shrext_cmds=.dll
12737 need_version=no
12738 need_lib_prefix=no
12740 case $GCC,$cc_basename in
12741 yes,*)
12742 # gcc
12743 library_names_spec='$libname.dll.a'
12744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12745 postinstall_cmds='base_file=`basename \$file`~
12746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12747 dldir=$destdir/`dirname \$dlpath`~
12748 test -d \$dldir || mkdir -p \$dldir~
12749 $install_prog $dir/$dlname \$dldir/$dlname~
12750 chmod a+x \$dldir/$dlname~
12751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12755 dlpath=$dir/\$dldll~
12756 $RM \$dlpath'
12757 shlibpath_overrides_runpath=yes
12759 case $host_os in
12760 cygwin*)
12761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12762 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12764 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12766 mingw* | cegcc*)
12767 # MinGW DLLs use traditional 'lib' prefix
12768 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12770 pw32*)
12771 # pw32 DLLs use 'pw' prefix rather than 'lib'
12772 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12774 esac
12775 dynamic_linker='Win32 ld.exe'
12778 *,cl*)
12779 # Native MSVC
12780 libname_spec='$name'
12781 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12782 library_names_spec='$libname.dll.lib'
12784 case $build_os in
12785 mingw*)
12786 sys_lib_search_path_spec=
12787 lt_save_ifs=$IFS
12788 IFS=';'
12789 for lt_path in $LIB
12791 IFS=$lt_save_ifs
12792 # Let DOS variable expansion print the short 8.3 style file name.
12793 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12794 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12795 done
12796 IFS=$lt_save_ifs
12797 # Convert to MSYS style.
12798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12800 cygwin*)
12801 # Convert to unix form, then to dos form, then back to unix form
12802 # but this time dos style (no spaces!) so that the unix form looks
12803 # like /cygdrive/c/PROGRA~1:/cygdr...
12804 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12805 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12806 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12809 sys_lib_search_path_spec=$LIB
12810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12811 # It is most probably a Windows format PATH.
12812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12813 else
12814 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12816 # FIXME: find the short name or the path components, as spaces are
12817 # common. (e.g. "Program Files" -> "PROGRA~1")
12819 esac
12821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12822 postinstall_cmds='base_file=`basename \$file`~
12823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12824 dldir=$destdir/`dirname \$dlpath`~
12825 test -d \$dldir || mkdir -p \$dldir~
12826 $install_prog $dir/$dlname \$dldir/$dlname'
12827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12828 dlpath=$dir/\$dldll~
12829 $RM \$dlpath'
12830 shlibpath_overrides_runpath=yes
12831 dynamic_linker='Win32 link.exe'
12835 # Assume MSVC wrapper
12836 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12837 dynamic_linker='Win32 ld.exe'
12839 esac
12840 # FIXME: first we should search . and the directory the executable is in
12841 shlibpath_var=PATH
12844 darwin* | rhapsody*)
12845 dynamic_linker="$host_os dyld"
12846 version_type=darwin
12847 need_lib_prefix=no
12848 need_version=no
12849 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12850 soname_spec='$libname$release$major$shared_ext'
12851 shlibpath_overrides_runpath=yes
12852 shlibpath_var=DYLD_LIBRARY_PATH
12853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12855 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12859 dgux*)
12860 version_type=linux # correct to gnu/linux during the next big refactor
12861 need_lib_prefix=no
12862 need_version=no
12863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12864 soname_spec='$libname$release$shared_ext$major'
12865 shlibpath_var=LD_LIBRARY_PATH
12868 freebsd* | dragonfly*)
12869 # DragonFly does not have aout. When/if they implement a new
12870 # versioning mechanism, adjust this.
12871 if test -x /usr/bin/objformat; then
12872 objformat=`/usr/bin/objformat`
12873 else
12874 case $host_os in
12875 freebsd[23].*) objformat=aout ;;
12876 *) objformat=elf ;;
12877 esac
12879 version_type=freebsd-$objformat
12880 case $version_type in
12881 freebsd-elf*)
12882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12883 soname_spec='$libname$release$shared_ext$major'
12884 need_version=no
12885 need_lib_prefix=no
12887 freebsd-*)
12888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12889 need_version=yes
12891 esac
12892 shlibpath_var=LD_LIBRARY_PATH
12893 case $host_os in
12894 freebsd2.*)
12895 shlibpath_overrides_runpath=yes
12897 freebsd3.[01]* | freebsdelf3.[01]*)
12898 shlibpath_overrides_runpath=yes
12899 hardcode_into_libs=yes
12901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12903 shlibpath_overrides_runpath=no
12904 hardcode_into_libs=yes
12906 *) # from 4.6 on, and DragonFly
12907 shlibpath_overrides_runpath=yes
12908 hardcode_into_libs=yes
12910 esac
12913 haiku*)
12914 version_type=linux # correct to gnu/linux during the next big refactor
12915 need_lib_prefix=no
12916 need_version=no
12917 dynamic_linker="$host_os runtime_loader"
12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12919 soname_spec='$libname$release$shared_ext$major'
12920 shlibpath_var=LIBRARY_PATH
12921 shlibpath_overrides_runpath=no
12922 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12923 hardcode_into_libs=yes
12926 hpux9* | hpux10* | hpux11*)
12927 # Give a soname corresponding to the major version so that dld.sl refuses to
12928 # link against other versions.
12929 version_type=sunos
12930 need_lib_prefix=no
12931 need_version=no
12932 case $host_cpu in
12933 ia64*)
12934 shrext_cmds='.so'
12935 hardcode_into_libs=yes
12936 dynamic_linker="$host_os dld.so"
12937 shlibpath_var=LD_LIBRARY_PATH
12938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12940 soname_spec='$libname$release$shared_ext$major'
12941 if test 32 = "$HPUX_IA64_MODE"; then
12942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12943 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12944 else
12945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12946 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12949 hppa*64*)
12950 shrext_cmds='.sl'
12951 hardcode_into_libs=yes
12952 dynamic_linker="$host_os dld.sl"
12953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12956 soname_spec='$libname$release$shared_ext$major'
12957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12961 shrext_cmds='.sl'
12962 dynamic_linker="$host_os dld.sl"
12963 shlibpath_var=SHLIB_PATH
12964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12966 soname_spec='$libname$release$shared_ext$major'
12968 esac
12969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12970 postinstall_cmds='chmod 555 $lib'
12971 # or fails outright, so override atomically:
12972 install_override_mode=555
12975 interix[3-9]*)
12976 version_type=linux # correct to gnu/linux during the next big refactor
12977 need_lib_prefix=no
12978 need_version=no
12979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12980 soname_spec='$libname$release$shared_ext$major'
12981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=no
12984 hardcode_into_libs=yes
12987 irix5* | irix6* | nonstopux*)
12988 case $host_os in
12989 nonstopux*) version_type=nonstopux ;;
12991 if test yes = "$lt_cv_prog_gnu_ld"; then
12992 version_type=linux # correct to gnu/linux during the next big refactor
12993 else
12994 version_type=irix
12995 fi ;;
12996 esac
12997 need_lib_prefix=no
12998 need_version=no
12999 soname_spec='$libname$release$shared_ext$major'
13000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13001 case $host_os in
13002 irix5* | nonstopux*)
13003 libsuff= shlibsuff=
13006 case $LD in # libtool.m4 will add one of these switches to LD
13007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13008 libsuff= shlibsuff= libmagic=32-bit;;
13009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13010 libsuff=32 shlibsuff=N32 libmagic=N32;;
13011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13013 *) libsuff= shlibsuff= libmagic=never-match;;
13014 esac
13016 esac
13017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13018 shlibpath_overrides_runpath=no
13019 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13020 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13021 hardcode_into_libs=yes
13024 # No shared lib support for Linux oldld, aout, or coff.
13025 linux*oldld* | linux*aout* | linux*coff*)
13026 dynamic_linker=no
13029 linux*android*)
13030 version_type=none # Android doesn't support versioned libraries.
13031 need_lib_prefix=no
13032 need_version=no
13033 library_names_spec='$libname$release$shared_ext'
13034 soname_spec='$libname$release$shared_ext'
13035 finish_cmds=
13036 shlibpath_var=LD_LIBRARY_PATH
13037 shlibpath_overrides_runpath=yes
13039 # This implies no fast_install, which is unacceptable.
13040 # Some rework will be needed to allow for fast_install
13041 # before this can be enabled.
13042 hardcode_into_libs=yes
13044 dynamic_linker='Android linker'
13045 # Don't embed -rpath directories since the linker doesn't support them.
13046 hardcode_libdir_flag_spec='-L$libdir'
13049 # This must be glibc/ELF.
13050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13051 version_type=linux # correct to gnu/linux during the next big refactor
13052 need_lib_prefix=no
13053 need_version=no
13054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13055 soname_spec='$libname$release$shared_ext$major'
13056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13057 shlibpath_var=LD_LIBRARY_PATH
13058 shlibpath_overrides_runpath=no
13060 # Some binutils ld are patched to set DT_RUNPATH
13061 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 lt_cv_shlibpath_overrides_runpath=no
13065 save_LDFLAGS=$LDFLAGS
13066 save_libdir=$libdir
13067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13073 main ()
13077 return 0;
13079 _ACEOF
13080 if ac_fn_c_try_link "$LINENO"; then :
13081 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13082 lt_cv_shlibpath_overrides_runpath=yes
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 LDFLAGS=$save_LDFLAGS
13088 libdir=$save_libdir
13092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13094 # This implies no fast_install, which is unacceptable.
13095 # Some rework will be needed to allow for fast_install
13096 # before this can be enabled.
13097 hardcode_into_libs=yes
13099 # Ideally, we could use ldconfig to report *all* directores which are
13100 # searched for libraries, however this is still not possible. Aside from not
13101 # being certain /sbin/ldconfig is available, command
13102 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13103 # even though it is searched at run-time. Try to do the best guess by
13104 # appending ld.so.conf contents (and includes) to the search path.
13105 if test -f /etc/ld.so.conf; then
13106 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' ' '`
13107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13110 # We used to test for /lib/ld.so.1 and disable shared libraries on
13111 # powerpc, because MkLinux only supported shared libraries with the
13112 # GNU dynamic linker. Since this was broken with cross compilers,
13113 # most powerpc-linux boxes support dynamic linking these days and
13114 # people can always --disable-shared, the test was removed, and we
13115 # assume the GNU/Linux dynamic linker is in use.
13116 dynamic_linker='GNU/Linux ld.so'
13119 netbsd*)
13120 version_type=sunos
13121 need_lib_prefix=no
13122 need_version=no
13123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13124 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13126 dynamic_linker='NetBSD (a.out) ld.so'
13127 else
13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13129 soname_spec='$libname$release$shared_ext$major'
13130 dynamic_linker='NetBSD ld.elf_so'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 shlibpath_overrides_runpath=yes
13134 hardcode_into_libs=yes
13137 newsos6)
13138 version_type=linux # correct to gnu/linux during the next big refactor
13139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 shlibpath_overrides_runpath=yes
13144 *nto* | *qnx*)
13145 version_type=qnx
13146 need_lib_prefix=no
13147 need_version=no
13148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13149 soname_spec='$libname$release$shared_ext$major'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 shlibpath_overrides_runpath=no
13152 hardcode_into_libs=yes
13153 dynamic_linker='ldqnx.so'
13156 openbsd* | bitrig*)
13157 version_type=sunos
13158 sys_lib_dlsearch_path_spec=/usr/lib
13159 need_lib_prefix=no
13160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13161 need_version=no
13162 else
13163 need_version=yes
13165 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13167 shlibpath_var=LD_LIBRARY_PATH
13168 shlibpath_overrides_runpath=yes
13171 os2*)
13172 libname_spec='$name'
13173 version_type=windows
13174 shrext_cmds=.dll
13175 need_version=no
13176 need_lib_prefix=no
13177 # OS/2 can only load a DLL with a base name of 8 characters or less.
13178 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13179 v=$($ECHO $release$versuffix | tr -d .-);
13180 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13181 $ECHO $n$v`$shared_ext'
13182 library_names_spec='${libname}_dll.$libext'
13183 dynamic_linker='OS/2 ld.exe'
13184 shlibpath_var=BEGINLIBPATH
13185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13187 postinstall_cmds='base_file=`basename \$file`~
13188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13189 dldir=$destdir/`dirname \$dlpath`~
13190 test -d \$dldir || mkdir -p \$dldir~
13191 $install_prog $dir/$dlname \$dldir/$dlname~
13192 chmod a+x \$dldir/$dlname~
13193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13197 dlpath=$dir/\$dldll~
13198 $RM \$dlpath'
13201 osf3* | osf4* | osf5*)
13202 version_type=osf
13203 need_lib_prefix=no
13204 need_version=no
13205 soname_spec='$libname$release$shared_ext$major'
13206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13212 rdos*)
13213 dynamic_linker=no
13216 solaris*)
13217 version_type=linux # correct to gnu/linux during the next big refactor
13218 need_lib_prefix=no
13219 need_version=no
13220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13221 soname_spec='$libname$release$shared_ext$major'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 shlibpath_overrides_runpath=yes
13224 hardcode_into_libs=yes
13225 # ldd complains unless libraries are executable
13226 postinstall_cmds='chmod +x $lib'
13229 sunos4*)
13230 version_type=sunos
13231 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13233 shlibpath_var=LD_LIBRARY_PATH
13234 shlibpath_overrides_runpath=yes
13235 if test yes = "$with_gnu_ld"; then
13236 need_lib_prefix=no
13238 need_version=yes
13241 sysv4 | sysv4.3*)
13242 version_type=linux # correct to gnu/linux during the next big refactor
13243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13244 soname_spec='$libname$release$shared_ext$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 case $host_vendor in
13247 sni)
13248 shlibpath_overrides_runpath=no
13249 need_lib_prefix=no
13250 runpath_var=LD_RUN_PATH
13252 siemens)
13253 need_lib_prefix=no
13255 motorola)
13256 need_lib_prefix=no
13257 need_version=no
13258 shlibpath_overrides_runpath=no
13259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13261 esac
13264 sysv4*MP*)
13265 if test -d /usr/nec; then
13266 version_type=linux # correct to gnu/linux during the next big refactor
13267 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13268 soname_spec='$libname$shared_ext.$major'
13269 shlibpath_var=LD_LIBRARY_PATH
13273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13274 version_type=sco
13275 need_lib_prefix=no
13276 need_version=no
13277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13278 soname_spec='$libname$release$shared_ext$major'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=yes
13281 hardcode_into_libs=yes
13282 if test yes = "$with_gnu_ld"; then
13283 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13284 else
13285 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13286 case $host_os in
13287 sco3.2v5*)
13288 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13290 esac
13292 sys_lib_dlsearch_path_spec='/usr/lib'
13295 tpf*)
13296 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13297 version_type=linux # correct to gnu/linux during the next big refactor
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13303 hardcode_into_libs=yes
13306 uts4*)
13307 version_type=linux # correct to gnu/linux during the next big refactor
13308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13309 soname_spec='$libname$release$shared_ext$major'
13310 shlibpath_var=LD_LIBRARY_PATH
13314 dynamic_linker=no
13316 esac
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13318 $as_echo "$dynamic_linker" >&6; }
13319 test no = "$dynamic_linker" && can_build_shared=no
13321 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13322 if test yes = "$GCC"; then
13323 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13326 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13327 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13330 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13331 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13334 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13335 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13337 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13338 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13340 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13341 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13440 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13441 hardcode_action=
13442 if test -n "$hardcode_libdir_flag_spec" ||
13443 test -n "$runpath_var" ||
13444 test yes = "$hardcode_automatic"; then
13446 # We can hardcode non-existent directories.
13447 if test no != "$hardcode_direct" &&
13448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13449 # have to relink, otherwise we might link with an installed library
13450 # when we should be linking with a yet-to-be-installed one
13451 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13452 test no != "$hardcode_minus_L"; then
13453 # Linking always hardcodes the temporary library directory.
13454 hardcode_action=relink
13455 else
13456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13457 hardcode_action=immediate
13459 else
13460 # We cannot hardcode anything, or else we can only hardcode existing
13461 # directories.
13462 hardcode_action=unsupported
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13465 $as_echo "$hardcode_action" >&6; }
13467 if test relink = "$hardcode_action" ||
13468 test yes = "$inherit_rpath"; then
13469 # Fast installation is not supported
13470 enable_fast_install=no
13471 elif test yes = "$shlibpath_overrides_runpath" ||
13472 test no = "$enable_shared"; then
13473 # Fast installation is not necessary
13474 enable_fast_install=needless
13482 if test yes != "$enable_dlopen"; then
13483 enable_dlopen=unknown
13484 enable_dlopen_self=unknown
13485 enable_dlopen_self_static=unknown
13486 else
13487 lt_cv_dlopen=no
13488 lt_cv_dlopen_libs=
13490 case $host_os in
13491 beos*)
13492 lt_cv_dlopen=load_add_on
13493 lt_cv_dlopen_libs=
13494 lt_cv_dlopen_self=yes
13497 mingw* | pw32* | cegcc*)
13498 lt_cv_dlopen=LoadLibrary
13499 lt_cv_dlopen_libs=
13502 cygwin*)
13503 lt_cv_dlopen=dlopen
13504 lt_cv_dlopen_libs=
13507 darwin*)
13508 # if libdl is installed we need to link against it
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13510 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13511 if ${ac_cv_lib_dl_dlopen+:} false; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-ldl $LIBS"
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char dlopen ();
13527 main ()
13529 return dlopen ();
13531 return 0;
13533 _ACEOF
13534 if ac_fn_c_try_link "$LINENO"; then :
13535 ac_cv_lib_dl_dlopen=yes
13536 else
13537 ac_cv_lib_dl_dlopen=no
13539 rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13544 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13545 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13546 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13547 else
13549 lt_cv_dlopen=dyld
13550 lt_cv_dlopen_libs=
13551 lt_cv_dlopen_self=yes
13557 tpf*)
13558 # Don't try to run any link tests for TPF. We know it's impossible
13559 # because TPF is a cross-compiler, and we know how we open DSOs.
13560 lt_cv_dlopen=dlopen
13561 lt_cv_dlopen_libs=
13562 lt_cv_dlopen_self=no
13566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13567 if test "x$ac_cv_func_shl_load" = xyes; then :
13568 lt_cv_dlopen=shl_load
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13572 if ${ac_cv_lib_dld_shl_load+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-ldld $LIBS"
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 /* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13583 #ifdef __cplusplus
13584 extern "C"
13585 #endif
13586 char shl_load ();
13588 main ()
13590 return shl_load ();
13592 return 0;
13594 _ACEOF
13595 if ac_fn_c_try_link "$LINENO"; then :
13596 ac_cv_lib_dld_shl_load=yes
13597 else
13598 ac_cv_lib_dld_shl_load=no
13600 rm -f core conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13606 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13607 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13608 else
13609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13610 if test "x$ac_cv_func_dlopen" = xyes; then :
13611 lt_cv_dlopen=dlopen
13612 else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13615 if ${ac_cv_lib_dl_dlopen+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-ldl $LIBS"
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 char dlopen ();
13631 main ()
13633 return dlopen ();
13635 return 0;
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_lib_dl_dlopen=yes
13640 else
13641 ac_cv_lib_dl_dlopen=no
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13649 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13650 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13651 else
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13654 if ${ac_cv_lib_svld_dlopen+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 ac_check_lib_save_LIBS=$LIBS
13658 LIBS="-lsvld $LIBS"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13662 /* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13665 #ifdef __cplusplus
13666 extern "C"
13667 #endif
13668 char dlopen ();
13670 main ()
13672 return dlopen ();
13674 return 0;
13676 _ACEOF
13677 if ac_fn_c_try_link "$LINENO"; then :
13678 ac_cv_lib_svld_dlopen=yes
13679 else
13680 ac_cv_lib_svld_dlopen=no
13682 rm -f core conftest.err conftest.$ac_objext \
13683 conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_check_lib_save_LIBS
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13688 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13689 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13690 else
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13693 if ${ac_cv_lib_dld_dld_link+:} false; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 ac_check_lib_save_LIBS=$LIBS
13697 LIBS="-ldld $LIBS"
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13701 /* Override any GCC internal prototype to avoid an error.
13702 Use char because int might match the return type of a GCC
13703 builtin and then its argument prototype would still apply. */
13704 #ifdef __cplusplus
13705 extern "C"
13706 #endif
13707 char dld_link ();
13709 main ()
13711 return dld_link ();
13713 return 0;
13715 _ACEOF
13716 if ac_fn_c_try_link "$LINENO"; then :
13717 ac_cv_lib_dld_dld_link=yes
13718 else
13719 ac_cv_lib_dld_dld_link=no
13721 rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13727 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13728 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13747 esac
13749 if test no = "$lt_cv_dlopen"; then
13750 enable_dlopen=no
13751 else
13752 enable_dlopen=yes
13755 case $lt_cv_dlopen in
13756 dlopen)
13757 save_CPPFLAGS=$CPPFLAGS
13758 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13760 save_LDFLAGS=$LDFLAGS
13761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13763 save_LIBS=$LIBS
13764 LIBS="$lt_cv_dlopen_libs $LIBS"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13768 if ${lt_cv_dlopen_self+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test yes = "$cross_compiling"; then :
13772 lt_cv_dlopen_self=cross
13773 else
13774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13775 lt_status=$lt_dlunknown
13776 cat > conftest.$ac_ext <<_LT_EOF
13777 #line $LINENO "configure"
13778 #include "confdefs.h"
13780 #if HAVE_DLFCN_H
13781 #include <dlfcn.h>
13782 #endif
13784 #include <stdio.h>
13786 #ifdef RTLD_GLOBAL
13787 # define LT_DLGLOBAL RTLD_GLOBAL
13788 #else
13789 # ifdef DL_GLOBAL
13790 # define LT_DLGLOBAL DL_GLOBAL
13791 # else
13792 # define LT_DLGLOBAL 0
13793 # endif
13794 #endif
13796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13797 find out it does not work in some platform. */
13798 #ifndef LT_DLLAZY_OR_NOW
13799 # ifdef RTLD_LAZY
13800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13801 # else
13802 # ifdef DL_LAZY
13803 # define LT_DLLAZY_OR_NOW DL_LAZY
13804 # else
13805 # ifdef RTLD_NOW
13806 # define LT_DLLAZY_OR_NOW RTLD_NOW
13807 # else
13808 # ifdef DL_NOW
13809 # define LT_DLLAZY_OR_NOW DL_NOW
13810 # else
13811 # define LT_DLLAZY_OR_NOW 0
13812 # endif
13813 # endif
13814 # endif
13815 # endif
13816 #endif
13818 /* When -fvisibility=hidden is used, assume the code has been annotated
13819 correspondingly for the symbols needed. */
13820 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13821 int fnord () __attribute__((visibility("default")));
13822 #endif
13824 int fnord () { return 42; }
13825 int main ()
13827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13828 int status = $lt_dlunknown;
13830 if (self)
13832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13833 else
13835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13836 else puts (dlerror ());
13838 /* dlclose (self); */
13840 else
13841 puts (dlerror ());
13843 return status;
13845 _LT_EOF
13846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13847 (eval $ac_link) 2>&5
13848 ac_status=$?
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13850 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13851 (./conftest; exit; ) >&5 2>/dev/null
13852 lt_status=$?
13853 case x$lt_status in
13854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13857 esac
13858 else :
13859 # compilation failed
13860 lt_cv_dlopen_self=no
13863 rm -fr conftest*
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13868 $as_echo "$lt_cv_dlopen_self" >&6; }
13870 if test yes = "$lt_cv_dlopen_self"; then
13871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13874 if ${lt_cv_dlopen_self_static+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 if test yes = "$cross_compiling"; then :
13878 lt_cv_dlopen_self_static=cross
13879 else
13880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13881 lt_status=$lt_dlunknown
13882 cat > conftest.$ac_ext <<_LT_EOF
13883 #line $LINENO "configure"
13884 #include "confdefs.h"
13886 #if HAVE_DLFCN_H
13887 #include <dlfcn.h>
13888 #endif
13890 #include <stdio.h>
13892 #ifdef RTLD_GLOBAL
13893 # define LT_DLGLOBAL RTLD_GLOBAL
13894 #else
13895 # ifdef DL_GLOBAL
13896 # define LT_DLGLOBAL DL_GLOBAL
13897 # else
13898 # define LT_DLGLOBAL 0
13899 # endif
13900 #endif
13902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13903 find out it does not work in some platform. */
13904 #ifndef LT_DLLAZY_OR_NOW
13905 # ifdef RTLD_LAZY
13906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13907 # else
13908 # ifdef DL_LAZY
13909 # define LT_DLLAZY_OR_NOW DL_LAZY
13910 # else
13911 # ifdef RTLD_NOW
13912 # define LT_DLLAZY_OR_NOW RTLD_NOW
13913 # else
13914 # ifdef DL_NOW
13915 # define LT_DLLAZY_OR_NOW DL_NOW
13916 # else
13917 # define LT_DLLAZY_OR_NOW 0
13918 # endif
13919 # endif
13920 # endif
13921 # endif
13922 #endif
13924 /* When -fvisibility=hidden is used, assume the code has been annotated
13925 correspondingly for the symbols needed. */
13926 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13927 int fnord () __attribute__((visibility("default")));
13928 #endif
13930 int fnord () { return 42; }
13931 int main ()
13933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13934 int status = $lt_dlunknown;
13936 if (self)
13938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13939 else
13941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13942 else puts (dlerror ());
13944 /* dlclose (self); */
13946 else
13947 puts (dlerror ());
13949 return status;
13951 _LT_EOF
13952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13953 (eval $ac_link) 2>&5
13954 ac_status=$?
13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13956 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13957 (./conftest; exit; ) >&5 2>/dev/null
13958 lt_status=$?
13959 case x$lt_status in
13960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13963 esac
13964 else :
13965 # compilation failed
13966 lt_cv_dlopen_self_static=no
13969 rm -fr conftest*
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13977 CPPFLAGS=$save_CPPFLAGS
13978 LDFLAGS=$save_LDFLAGS
13979 LIBS=$save_LIBS
13981 esac
13983 case $lt_cv_dlopen_self in
13984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13985 *) enable_dlopen_self=unknown ;;
13986 esac
13988 case $lt_cv_dlopen_self_static in
13989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13990 *) enable_dlopen_self_static=unknown ;;
13991 esac
14010 striplib=
14011 old_striplib=
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14018 $as_echo "yes" >&6; }
14019 else
14020 # FIXME - insert some real tests, host_os isn't really good enough
14021 case $host_os in
14022 darwin*)
14023 if test -n "$STRIP"; then
14024 striplib="$STRIP -x"
14025 old_striplib="$STRIP -S"
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14027 $as_echo "yes" >&6; }
14028 else
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 $as_echo "no" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14037 esac
14051 # Report what library types will actually be built
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14055 $as_echo "$can_build_shared" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14058 $as_echo_n "checking whether to build shared libraries... " >&6; }
14059 test no = "$can_build_shared" && enable_shared=no
14061 # On AIX, shared libraries and static libraries use the same namespace, and
14062 # are all built from PIC.
14063 case $host_os in
14064 aix3*)
14065 test yes = "$enable_shared" && enable_static=no
14066 if test -n "$RANLIB"; then
14067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14068 postinstall_cmds='$RANLIB $lib'
14072 aix[4-9]*)
14073 if test ia64 != "$host_cpu"; then
14074 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14075 yes,aix,yes) ;; # shared object as lib.so file only
14076 yes,svr4,*) ;; # shared object as lib.so archive member only
14077 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14078 esac
14081 esac
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14083 $as_echo "$enable_shared" >&6; }
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14086 $as_echo_n "checking whether to build static libraries... " >&6; }
14087 # Make sure either enable_shared or enable_static is yes.
14088 test yes = "$enable_shared" || enable_static=yes
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14090 $as_echo "$enable_static" >&6; }
14096 ac_ext=c
14097 ac_cpp='$CPP $CPPFLAGS'
14098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14102 CC=$lt_save_CC
14118 ac_config_commands="$ac_config_commands libtool"
14123 # Only expand once:
14126 # Check whether --enable-largefile was given.
14127 if test "${enable_largefile+set}" = set; then :
14128 enableval=$enable_largefile;
14131 if test "$enable_largefile" != no; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14134 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14135 if ${ac_cv_sys_largefile_CC+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 ac_cv_sys_largefile_CC=no
14139 if test "$GCC" != yes; then
14140 ac_save_CC=$CC
14141 while :; do
14142 # IRIX 6.2 and later do not support large files by default,
14143 # so use the C compiler's -n32 option if that helps.
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <sys/types.h>
14147 /* Check that off_t can represent 2**63 - 1 correctly.
14148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14149 since some C++ compilers masquerading as C compilers
14150 incorrectly reject 9223372036854775807. */
14151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14153 && LARGE_OFF_T % 2147483647 == 1)
14154 ? 1 : -1];
14156 main ()
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164 break
14166 rm -f core conftest.err conftest.$ac_objext
14167 CC="$CC -n32"
14168 if ac_fn_c_try_compile "$LINENO"; then :
14169 ac_cv_sys_largefile_CC=' -n32'; break
14171 rm -f core conftest.err conftest.$ac_objext
14172 break
14173 done
14174 CC=$ac_save_CC
14175 rm -f conftest.$ac_ext
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14179 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14180 if test "$ac_cv_sys_largefile_CC" != no; then
14181 CC=$CC$ac_cv_sys_largefile_CC
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14185 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14186 if ${ac_cv_sys_file_offset_bits+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 while :; do
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 #include <sys/types.h>
14193 /* Check that off_t can represent 2**63 - 1 correctly.
14194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14195 since some C++ compilers masquerading as C compilers
14196 incorrectly reject 9223372036854775807. */
14197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14199 && LARGE_OFF_T % 2147483647 == 1)
14200 ? 1 : -1];
14202 main ()
14206 return 0;
14208 _ACEOF
14209 if ac_fn_c_try_compile "$LINENO"; then :
14210 ac_cv_sys_file_offset_bits=no; break
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #define _FILE_OFFSET_BITS 64
14216 #include <sys/types.h>
14217 /* Check that off_t can represent 2**63 - 1 correctly.
14218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14219 since some C++ compilers masquerading as C compilers
14220 incorrectly reject 9223372036854775807. */
14221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14223 && LARGE_OFF_T % 2147483647 == 1)
14224 ? 1 : -1];
14226 main ()
14230 return 0;
14232 _ACEOF
14233 if ac_fn_c_try_compile "$LINENO"; then :
14234 ac_cv_sys_file_offset_bits=64; break
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 ac_cv_sys_file_offset_bits=unknown
14238 break
14239 done
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14242 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14243 case $ac_cv_sys_file_offset_bits in #(
14244 no | unknown) ;;
14246 cat >>confdefs.h <<_ACEOF
14247 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14248 _ACEOF
14250 esac
14251 rm -rf conftest*
14252 if test $ac_cv_sys_file_offset_bits = unknown; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14254 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14255 if ${ac_cv_sys_large_files+:} false; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 while :; do
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 #include <sys/types.h>
14262 /* Check that off_t can represent 2**63 - 1 correctly.
14263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14264 since some C++ compilers masquerading as C compilers
14265 incorrectly reject 9223372036854775807. */
14266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14268 && LARGE_OFF_T % 2147483647 == 1)
14269 ? 1 : -1];
14271 main ()
14275 return 0;
14277 _ACEOF
14278 if ac_fn_c_try_compile "$LINENO"; then :
14279 ac_cv_sys_large_files=no; break
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #define _LARGE_FILES 1
14285 #include <sys/types.h>
14286 /* Check that off_t can represent 2**63 - 1 correctly.
14287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14288 since some C++ compilers masquerading as C compilers
14289 incorrectly reject 9223372036854775807. */
14290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14292 && LARGE_OFF_T % 2147483647 == 1)
14293 ? 1 : -1];
14295 main ()
14299 return 0;
14301 _ACEOF
14302 if ac_fn_c_try_compile "$LINENO"; then :
14303 ac_cv_sys_large_files=1; break
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 ac_cv_sys_large_files=unknown
14307 break
14308 done
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14311 $as_echo "$ac_cv_sys_large_files" >&6; }
14312 case $ac_cv_sys_large_files in #(
14313 no | unknown) ;;
14315 cat >>confdefs.h <<_ACEOF
14316 #define _LARGE_FILES $ac_cv_sys_large_files
14317 _ACEOF
14319 esac
14320 rm -rf conftest*
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14327 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14328 if ${ac_cv_sys_largefile_source+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 while :; do
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <sys/types.h> /* for off_t */
14335 #include <stdio.h>
14337 main ()
14339 int (*fp) (FILE *, off_t, int) = fseeko;
14340 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14342 return 0;
14344 _ACEOF
14345 if ac_fn_c_try_link "$LINENO"; then :
14346 ac_cv_sys_largefile_source=no; break
14348 rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #define _LARGEFILE_SOURCE 1
14353 #include <sys/types.h> /* for off_t */
14354 #include <stdio.h>
14356 main ()
14358 int (*fp) (FILE *, off_t, int) = fseeko;
14359 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14361 return 0;
14363 _ACEOF
14364 if ac_fn_c_try_link "$LINENO"; then :
14365 ac_cv_sys_largefile_source=1; break
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 ac_cv_sys_largefile_source=unknown
14370 break
14371 done
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14374 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14375 case $ac_cv_sys_largefile_source in #(
14376 no | unknown) ;;
14378 cat >>confdefs.h <<_ACEOF
14379 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14380 _ACEOF
14382 esac
14383 rm -rf conftest*
14385 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14386 # in glibc 2.1.3, but that breaks too many other things.
14387 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14388 if test $ac_cv_sys_largefile_source != unknown; then
14390 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14394 ac_header_dirent=no
14395 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14396 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14398 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14399 if eval \${$as_ac_Header+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14404 #include <sys/types.h>
14405 #include <$ac_hdr>
14408 main ()
14410 if ((DIR *) 0)
14411 return 0;
14413 return 0;
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417 eval "$as_ac_Header=yes"
14418 else
14419 eval "$as_ac_Header=no"
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 eval ac_res=\$$as_ac_Header
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14425 $as_echo "$ac_res" >&6; }
14426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14427 cat >>confdefs.h <<_ACEOF
14428 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14429 _ACEOF
14431 ac_header_dirent=$ac_hdr; break
14434 done
14435 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14436 if test $ac_header_dirent = dirent.h; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14438 $as_echo_n "checking for library containing opendir... " >&6; }
14439 if ${ac_cv_search_opendir+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 ac_func_search_save_LIBS=$LIBS
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14446 /* Override any GCC internal prototype to avoid an error.
14447 Use char because int might match the return type of a GCC
14448 builtin and then its argument prototype would still apply. */
14449 #ifdef __cplusplus
14450 extern "C"
14451 #endif
14452 char opendir ();
14454 main ()
14456 return opendir ();
14458 return 0;
14460 _ACEOF
14461 for ac_lib in '' dir; do
14462 if test -z "$ac_lib"; then
14463 ac_res="none required"
14464 else
14465 ac_res=-l$ac_lib
14466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14468 if ac_fn_c_try_link "$LINENO"; then :
14469 ac_cv_search_opendir=$ac_res
14471 rm -f core conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext
14473 if ${ac_cv_search_opendir+:} false; then :
14474 break
14476 done
14477 if ${ac_cv_search_opendir+:} false; then :
14479 else
14480 ac_cv_search_opendir=no
14482 rm conftest.$ac_ext
14483 LIBS=$ac_func_search_save_LIBS
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14486 $as_echo "$ac_cv_search_opendir" >&6; }
14487 ac_res=$ac_cv_search_opendir
14488 if test "$ac_res" != no; then :
14489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14493 else
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14495 $as_echo_n "checking for library containing opendir... " >&6; }
14496 if ${ac_cv_search_opendir+:} false; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 ac_func_search_save_LIBS=$LIBS
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14503 /* Override any GCC internal prototype to avoid an error.
14504 Use char because int might match the return type of a GCC
14505 builtin and then its argument prototype would still apply. */
14506 #ifdef __cplusplus
14507 extern "C"
14508 #endif
14509 char opendir ();
14511 main ()
14513 return opendir ();
14515 return 0;
14517 _ACEOF
14518 for ac_lib in '' x; do
14519 if test -z "$ac_lib"; then
14520 ac_res="none required"
14521 else
14522 ac_res=-l$ac_lib
14523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 ac_cv_search_opendir=$ac_res
14528 rm -f core conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext
14530 if ${ac_cv_search_opendir+:} false; then :
14531 break
14533 done
14534 if ${ac_cv_search_opendir+:} false; then :
14536 else
14537 ac_cv_search_opendir=no
14539 rm conftest.$ac_ext
14540 LIBS=$ac_func_search_save_LIBS
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14543 $as_echo "$ac_cv_search_opendir" >&6; }
14544 ac_res=$ac_cv_search_opendir
14545 if test "$ac_res" != no; then :
14546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14553 $as_echo_n "checking for ANSI C header files... " >&6; }
14554 if ${ac_cv_header_stdc+:} false; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <stdlib.h>
14560 #include <stdarg.h>
14561 #include <string.h>
14562 #include <float.h>
14565 main ()
14569 return 0;
14571 _ACEOF
14572 if ac_fn_c_try_compile "$LINENO"; then :
14573 ac_cv_header_stdc=yes
14574 else
14575 ac_cv_header_stdc=no
14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 if test $ac_cv_header_stdc = yes; then
14580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 #include <string.h>
14585 _ACEOF
14586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14587 $EGREP "memchr" >/dev/null 2>&1; then :
14589 else
14590 ac_cv_header_stdc=no
14592 rm -f conftest*
14596 if test $ac_cv_header_stdc = yes; then
14597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14600 #include <stdlib.h>
14602 _ACEOF
14603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14604 $EGREP "free" >/dev/null 2>&1; then :
14606 else
14607 ac_cv_header_stdc=no
14609 rm -f conftest*
14613 if test $ac_cv_header_stdc = yes; then
14614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14615 if test "$cross_compiling" = yes; then :
14617 else
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620 #include <ctype.h>
14621 #include <stdlib.h>
14622 #if ((' ' & 0x0FF) == 0x020)
14623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14625 #else
14626 # define ISLOWER(c) \
14627 (('a' <= (c) && (c) <= 'i') \
14628 || ('j' <= (c) && (c) <= 'r') \
14629 || ('s' <= (c) && (c) <= 'z'))
14630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14631 #endif
14633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14635 main ()
14637 int i;
14638 for (i = 0; i < 256; i++)
14639 if (XOR (islower (i), ISLOWER (i))
14640 || toupper (i) != TOUPPER (i))
14641 return 2;
14642 return 0;
14644 _ACEOF
14645 if ac_fn_c_try_run "$LINENO"; then :
14647 else
14648 ac_cv_header_stdc=no
14650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14651 conftest.$ac_objext conftest.beam conftest.$ac_ext
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14657 $as_echo "$ac_cv_header_stdc" >&6; }
14658 if test $ac_cv_header_stdc = yes; then
14660 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
14665 $as_echo_n "checking whether closedir returns void... " >&6; }
14666 if ${ac_cv_func_closedir_void+:} false; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 if test "$cross_compiling" = yes; then :
14670 ac_cv_func_closedir_void=yes
14671 else
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 $ac_includes_default
14675 #include <$ac_header_dirent>
14676 #ifndef __cplusplus
14677 int closedir ();
14678 #endif
14681 main ()
14683 return closedir (opendir (".")) != 0;
14685 return 0;
14687 _ACEOF
14688 if ac_fn_c_try_run "$LINENO"; then :
14689 ac_cv_func_closedir_void=no
14690 else
14691 ac_cv_func_closedir_void=yes
14693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14694 conftest.$ac_objext conftest.beam conftest.$ac_ext
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
14699 $as_echo "$ac_cv_func_closedir_void" >&6; }
14700 if test $ac_cv_func_closedir_void = yes; then
14702 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
14706 for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
14707 do :
14708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14709 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14711 cat >>confdefs.h <<_ACEOF
14712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14713 _ACEOF
14717 done
14719 for ac_func in putenv
14720 do :
14721 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
14722 if test "x$ac_cv_func_putenv" = xyes; then :
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_PUTENV 1
14725 _ACEOF
14728 done
14730 for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
14731 do :
14732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14735 cat >>confdefs.h <<_ACEOF
14736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14737 _ACEOF
14740 done
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14744 if ${ac_cv_c_const+:} false; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14751 main ()
14754 #ifndef __cplusplus
14755 /* Ultrix mips cc rejects this sort of thing. */
14756 typedef int charset[2];
14757 const charset cs = { 0, 0 };
14758 /* SunOS 4.1.1 cc rejects this. */
14759 char const *const *pcpcc;
14760 char **ppc;
14761 /* NEC SVR4.0.2 mips cc rejects this. */
14762 struct point {int x, y;};
14763 static struct point const zero = {0,0};
14764 /* AIX XL C 1.02.0.0 rejects this.
14765 It does not let you subtract one const X* pointer from another in
14766 an arm of an if-expression whose if-part is not a constant
14767 expression */
14768 const char *g = "string";
14769 pcpcc = &g + (g ? g-g : 0);
14770 /* HPUX 7.0 cc rejects these. */
14771 ++pcpcc;
14772 ppc = (char**) pcpcc;
14773 pcpcc = (char const *const *) ppc;
14774 { /* SCO 3.2v4 cc rejects this sort of thing. */
14775 char tx;
14776 char *t = &tx;
14777 char const *s = 0 ? (char *) 0 : (char const *) 0;
14779 *t++ = 0;
14780 if (s) return 0;
14782 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14783 int x[] = {25, 17};
14784 const int *foo = &x[0];
14785 ++foo;
14787 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14788 typedef const int *iptr;
14789 iptr p = 0;
14790 ++p;
14792 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14793 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14794 struct s { int j; const int *ap[3]; } bx;
14795 struct s *b = &bx; b->j = 5;
14797 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14798 const int foo = 10;
14799 if (!foo) return 0;
14801 return !cs[0] && !zero.x;
14802 #endif
14805 return 0;
14807 _ACEOF
14808 if ac_fn_c_try_compile "$LINENO"; then :
14809 ac_cv_c_const=yes
14810 else
14811 ac_cv_c_const=no
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14816 $as_echo "$ac_cv_c_const" >&6; }
14817 if test $ac_cv_c_const = no; then
14819 $as_echo "#define const /**/" >>confdefs.h
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14824 $as_echo_n "checking for inline... " >&6; }
14825 if ${ac_cv_c_inline+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 ac_cv_c_inline=no
14829 for ac_kw in inline __inline__ __inline; do
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 #ifndef __cplusplus
14833 typedef int foo_t;
14834 static $ac_kw foo_t static_foo () {return 0; }
14835 $ac_kw foo_t foo () {return 0; }
14836 #endif
14838 _ACEOF
14839 if ac_fn_c_try_compile "$LINENO"; then :
14840 ac_cv_c_inline=$ac_kw
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 test "$ac_cv_c_inline" != no && break
14844 done
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14848 $as_echo "$ac_cv_c_inline" >&6; }
14850 case $ac_cv_c_inline in
14851 inline | yes) ;;
14853 case $ac_cv_c_inline in
14854 no) ac_val=;;
14855 *) ac_val=$ac_cv_c_inline;;
14856 esac
14857 cat >>confdefs.h <<_ACEOF
14858 #ifndef __cplusplus
14859 #define inline $ac_val
14860 #endif
14861 _ACEOF
14863 esac
14865 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14866 if test "x$ac_cv_type_size_t" = xyes; then :
14868 else
14870 cat >>confdefs.h <<_ACEOF
14871 #define size_t unsigned int
14872 _ACEOF
14876 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14877 case $ac_cv_c_int64_t in #(
14878 no|yes) ;; #(
14881 cat >>confdefs.h <<_ACEOF
14882 #define int64_t $ac_cv_c_int64_t
14883 _ACEOF
14885 esac
14887 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14888 case $ac_cv_c_uint64_t in #(
14889 no|yes) ;; #(
14892 $as_echo "#define _UINT64_T 1" >>confdefs.h
14895 cat >>confdefs.h <<_ACEOF
14896 #define uint64_t $ac_cv_c_uint64_t
14897 _ACEOF
14899 esac
14901 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
14902 *':no:'*) :
14903 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
14904 *) :
14906 esac
14907 ac_fn_c_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
14909 if test "x$ac_cv_have_decl_isascii" = xyes; then :
14910 ac_have_decl=1
14911 else
14912 ac_have_decl=0
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_DECL_ISASCII $ac_have_decl
14917 _ACEOF
14919 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14920 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_STRUCT_STAT_ST_MTIM 1
14924 _ACEOF
14930 if test "x$host_alias" != x && test "x$build_alias" = x; then :
14931 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
14933 eval kpse_build_alias=\${build_alias-$build}
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14939 $as_echo_n "checking for X... " >&6; }
14942 # Check whether --with-x was given.
14943 if test "${with_x+set}" = set; then :
14944 withval=$with_x;
14947 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14948 if test "x$with_x" = xno; then
14949 # The user explicitly disabled X.
14950 have_x=disabled
14951 else
14952 case $x_includes,$x_libraries in #(
14953 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
14954 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 # One or both of the vars are not set, and there is no cached value.
14958 ac_x_includes=no ac_x_libraries=no
14959 rm -f -r conftest.dir
14960 if mkdir conftest.dir; then
14961 cd conftest.dir
14962 cat >Imakefile <<'_ACEOF'
14963 incroot:
14964 @echo incroot='${INCROOT}'
14965 usrlibdir:
14966 @echo usrlibdir='${USRLIBDIR}'
14967 libdir:
14968 @echo libdir='${LIBDIR}'
14969 _ACEOF
14970 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14971 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14972 for ac_var in incroot usrlibdir libdir; do
14973 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14974 done
14975 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14976 for ac_extension in a so sl dylib la dll; do
14977 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14978 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14979 ac_im_usrlibdir=$ac_im_libdir; break
14981 done
14982 # Screen out bogus values from the imake configuration. They are
14983 # bogus both because they are the default anyway, and because
14984 # using them would break gcc on systems where it needs fixed includes.
14985 case $ac_im_incroot in
14986 /usr/include) ac_x_includes= ;;
14987 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14988 esac
14989 case $ac_im_usrlibdir in
14990 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14991 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14992 esac
14994 cd ..
14995 rm -f -r conftest.dir
14998 # Standard set of common directories for X headers.
14999 # Check X11 before X11Rn because it is often a symlink to the current release.
15000 ac_x_header_dirs='
15001 /usr/X11/include
15002 /usr/X11R7/include
15003 /usr/X11R6/include
15004 /usr/X11R5/include
15005 /usr/X11R4/include
15007 /usr/include/X11
15008 /usr/include/X11R7
15009 /usr/include/X11R6
15010 /usr/include/X11R5
15011 /usr/include/X11R4
15013 /usr/local/X11/include
15014 /usr/local/X11R7/include
15015 /usr/local/X11R6/include
15016 /usr/local/X11R5/include
15017 /usr/local/X11R4/include
15019 /usr/local/include/X11
15020 /usr/local/include/X11R7
15021 /usr/local/include/X11R6
15022 /usr/local/include/X11R5
15023 /usr/local/include/X11R4
15025 /usr/X386/include
15026 /usr/x386/include
15027 /usr/XFree86/include/X11
15029 /usr/include
15030 /usr/local/include
15031 /usr/unsupported/include
15032 /usr/athena/include
15033 /usr/local/x11r5/include
15034 /usr/lpp/Xamples/include
15036 /usr/openwin/include
15037 /usr/openwin/share/include'
15039 if test "$ac_x_includes" = no; then
15040 # Guess where to find include files, by looking for Xlib.h.
15041 # First, try using that file with no special directory specified.
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 #include <X11/Xlib.h>
15045 _ACEOF
15046 if ac_fn_c_try_cpp "$LINENO"; then :
15047 # We can compile using X headers with no special include directory.
15048 ac_x_includes=
15049 else
15050 for ac_dir in $ac_x_header_dirs; do
15051 if test -r "$ac_dir/X11/Xlib.h"; then
15052 ac_x_includes=$ac_dir
15053 break
15055 done
15057 rm -f conftest.err conftest.i conftest.$ac_ext
15058 fi # $ac_x_includes = no
15060 if test "$ac_x_libraries" = no; then
15061 # Check for the libraries.
15062 # See if we find them without any special options.
15063 # Don't add to $LIBS permanently.
15064 ac_save_LIBS=$LIBS
15065 LIBS="-lX11 $LIBS"
15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068 #include <X11/Xlib.h>
15070 main ()
15072 XrmInitialize ()
15074 return 0;
15076 _ACEOF
15077 if ac_fn_c_try_link "$LINENO"; then :
15078 LIBS=$ac_save_LIBS
15079 # We can link X programs with no special library path.
15080 ac_x_libraries=
15081 else
15082 LIBS=$ac_save_LIBS
15083 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15085 # Don't even attempt the hair of trying to link an X program!
15086 for ac_extension in a so sl dylib la dll; do
15087 if test -r "$ac_dir/libX11.$ac_extension"; then
15088 ac_x_libraries=$ac_dir
15089 break 2
15091 done
15092 done
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15096 fi # $ac_x_libraries = no
15098 case $ac_x_includes,$ac_x_libraries in #(
15099 no,* | *,no | *\'*)
15100 # Didn't find X, or a directory has "'" in its name.
15101 ac_cv_have_x="have_x=no";; #(
15103 # Record where we found X for the cache.
15104 ac_cv_have_x="have_x=yes\
15105 ac_x_includes='$ac_x_includes'\
15106 ac_x_libraries='$ac_x_libraries'"
15107 esac
15109 ;; #(
15110 *) have_x=yes;;
15111 esac
15112 eval "$ac_cv_have_x"
15113 fi # $with_x != no
15115 if test "$have_x" != yes; then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15117 $as_echo "$have_x" >&6; }
15118 no_x=yes
15119 else
15120 # If each of the values was on the command line, it overrides each guess.
15121 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15122 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15123 # Update the cache value to reflect the command line values.
15124 ac_cv_have_x="have_x=yes\
15125 ac_x_includes='$x_includes'\
15126 ac_x_libraries='$x_libraries'"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15128 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15131 if test "$no_x" = yes; then
15132 # Not all programs may use this symbol, but it does not hurt to define it.
15134 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
15136 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
15137 else
15138 if test -n "$x_includes"; then
15139 X_CFLAGS="$X_CFLAGS -I$x_includes"
15142 # It would also be nice to do this for all -L options, not just this one.
15143 if test -n "$x_libraries"; then
15144 X_LIBS="$X_LIBS -L$x_libraries"
15145 # For Solaris; some versions of Sun CC require a space after -R and
15146 # others require no space. Words are not sufficient . . . .
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
15148 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
15149 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
15150 ac_xsave_c_werror_flag=$ac_c_werror_flag
15151 ac_c_werror_flag=yes
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15156 main ()
15160 return 0;
15162 _ACEOF
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165 $as_echo "no" >&6; }
15166 X_LIBS="$X_LIBS -R$x_libraries"
15167 else
15168 LIBS="$ac_xsave_LIBS -R $x_libraries"
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15173 main ()
15177 return 0;
15179 _ACEOF
15180 if ac_fn_c_try_link "$LINENO"; then :
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15182 $as_echo "yes" >&6; }
15183 X_LIBS="$X_LIBS -R $x_libraries"
15184 else
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
15186 $as_echo "neither works" >&6; }
15188 rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15193 ac_c_werror_flag=$ac_xsave_c_werror_flag
15194 LIBS=$ac_xsave_LIBS
15197 # Check for system-dependent libraries X programs must link with.
15198 # Do this before checking for the system-independent R6 libraries
15199 # (-lICE), since we may need -lsocket or whatever for X linking.
15201 if test "$ISC" = yes; then
15202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
15203 else
15204 # Martyn Johnson says this is needed for Ultrix, if the X
15205 # libraries were built with DECnet support. And Karl Berry says
15206 # the Alpha needs dnet_stub (dnet does not exist).
15207 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
15214 #ifdef __cplusplus
15215 extern "C"
15216 #endif
15217 char XOpenDisplay ();
15219 main ()
15221 return XOpenDisplay ();
15223 return 0;
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15228 else
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
15230 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
15231 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
15232 $as_echo_n "(cached) " >&6
15233 else
15234 ac_check_lib_save_LIBS=$LIBS
15235 LIBS="-ldnet $LIBS"
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15239 /* Override any GCC internal prototype to avoid an error.
15240 Use char because int might match the return type of a GCC
15241 builtin and then its argument prototype would still apply. */
15242 #ifdef __cplusplus
15243 extern "C"
15244 #endif
15245 char dnet_ntoa ();
15247 main ()
15249 return dnet_ntoa ();
15251 return 0;
15253 _ACEOF
15254 if ac_fn_c_try_link "$LINENO"; then :
15255 ac_cv_lib_dnet_dnet_ntoa=yes
15256 else
15257 ac_cv_lib_dnet_dnet_ntoa=no
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
15264 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
15265 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
15266 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
15269 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
15271 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
15272 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-ldnet_stub $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char dnet_ntoa ();
15288 main ()
15290 return dnet_ntoa ();
15292 return 0;
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_dnet_stub_dnet_ntoa=yes
15297 else
15298 ac_cv_lib_dnet_stub_dnet_ntoa=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
15305 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
15306 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
15307 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
15312 rm -f core conftest.err conftest.$ac_objext \
15313 conftest$ac_exeext conftest.$ac_ext
15314 LIBS="$ac_xsave_LIBS"
15316 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
15317 # to get the SysV transport functions.
15318 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
15319 # needs -lnsl.
15320 # The nsl library prevents programs from opening the X display
15321 # on Irix 5.2, according to T.E. Dickey.
15322 # The functions gethostbyname, getservbyname, and inet_addr are
15323 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
15324 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15325 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15329 if test $ac_cv_func_gethostbyname = no; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15331 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15332 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15333 $as_echo_n "(cached) " >&6
15334 else
15335 ac_check_lib_save_LIBS=$LIBS
15336 LIBS="-lnsl $LIBS"
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 char gethostbyname ();
15348 main ()
15350 return gethostbyname ();
15352 return 0;
15354 _ACEOF
15355 if ac_fn_c_try_link "$LINENO"; then :
15356 ac_cv_lib_nsl_gethostbyname=yes
15357 else
15358 ac_cv_lib_nsl_gethostbyname=no
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15365 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15366 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15370 if test $ac_cv_lib_nsl_gethostbyname = no; then
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
15372 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
15373 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376 ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-lbsd $LIBS"
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 char gethostbyname ();
15389 main ()
15391 return gethostbyname ();
15393 return 0;
15395 _ACEOF
15396 if ac_fn_c_try_link "$LINENO"; then :
15397 ac_cv_lib_bsd_gethostbyname=yes
15398 else
15399 ac_cv_lib_bsd_gethostbyname=no
15401 rm -f core conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15403 LIBS=$ac_check_lib_save_LIBS
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
15406 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
15407 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
15408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
15414 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15415 # socket/setsockopt and other routines are undefined under SCO ODT
15416 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15417 # on later versions), says Simon Leinen: it contains gethostby*
15418 # variants that don't use the name server (or something). -lsocket
15419 # must be given before -lnsl if both are needed. We assume that
15420 # if connect needs -lnsl, so does gethostbyname.
15421 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15422 if test "x$ac_cv_func_connect" = xyes; then :
15426 if test $ac_cv_func_connect = no; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15428 $as_echo_n "checking for connect in -lsocket... " >&6; }
15429 if ${ac_cv_lib_socket_connect+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 ac_check_lib_save_LIBS=$LIBS
15433 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15437 /* Override any GCC internal prototype to avoid an error.
15438 Use char because int might match the return type of a GCC
15439 builtin and then its argument prototype would still apply. */
15440 #ifdef __cplusplus
15441 extern "C"
15442 #endif
15443 char connect ();
15445 main ()
15447 return connect ();
15449 return 0;
15451 _ACEOF
15452 if ac_fn_c_try_link "$LINENO"; then :
15453 ac_cv_lib_socket_connect=yes
15454 else
15455 ac_cv_lib_socket_connect=no
15457 rm -f core conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 LIBS=$ac_check_lib_save_LIBS
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15462 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15463 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15464 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15469 # Guillermo Gomez says -lposix is necessary on A/UX.
15470 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
15471 if test "x$ac_cv_func_remove" = xyes; then :
15475 if test $ac_cv_func_remove = no; then
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
15477 $as_echo_n "checking for remove in -lposix... " >&6; }
15478 if ${ac_cv_lib_posix_remove+:} false; then :
15479 $as_echo_n "(cached) " >&6
15480 else
15481 ac_check_lib_save_LIBS=$LIBS
15482 LIBS="-lposix $LIBS"
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15486 /* Override any GCC internal prototype to avoid an error.
15487 Use char because int might match the return type of a GCC
15488 builtin and then its argument prototype would still apply. */
15489 #ifdef __cplusplus
15490 extern "C"
15491 #endif
15492 char remove ();
15494 main ()
15496 return remove ();
15498 return 0;
15500 _ACEOF
15501 if ac_fn_c_try_link "$LINENO"; then :
15502 ac_cv_lib_posix_remove=yes
15503 else
15504 ac_cv_lib_posix_remove=no
15506 rm -f core conftest.err conftest.$ac_objext \
15507 conftest$ac_exeext conftest.$ac_ext
15508 LIBS=$ac_check_lib_save_LIBS
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
15511 $as_echo "$ac_cv_lib_posix_remove" >&6; }
15512 if test "x$ac_cv_lib_posix_remove" = xyes; then :
15513 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15518 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15519 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
15520 if test "x$ac_cv_func_shmat" = xyes; then :
15524 if test $ac_cv_func_shmat = no; then
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
15526 $as_echo_n "checking for shmat in -lipc... " >&6; }
15527 if ${ac_cv_lib_ipc_shmat+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 ac_check_lib_save_LIBS=$LIBS
15531 LIBS="-lipc $LIBS"
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15535 /* Override any GCC internal prototype to avoid an error.
15536 Use char because int might match the return type of a GCC
15537 builtin and then its argument prototype would still apply. */
15538 #ifdef __cplusplus
15539 extern "C"
15540 #endif
15541 char shmat ();
15543 main ()
15545 return shmat ();
15547 return 0;
15549 _ACEOF
15550 if ac_fn_c_try_link "$LINENO"; then :
15551 ac_cv_lib_ipc_shmat=yes
15552 else
15553 ac_cv_lib_ipc_shmat=no
15555 rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557 LIBS=$ac_check_lib_save_LIBS
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
15560 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
15561 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
15562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15568 # Check for libraries that X11R6 Xt/Xaw programs need.
15569 ac_save_LDFLAGS=$LDFLAGS
15570 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15571 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15572 # check for ICE first), but we must link in the order -lSM -lICE or
15573 # we get undefined symbols. So assume we have SM if we have ICE.
15574 # These have to be linked with before -lX11, unlike the other
15575 # libraries we check for below, so use a different variable.
15576 # John Interrante, Karl Berry
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
15578 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
15579 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581 else
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15587 /* Override any GCC internal prototype to avoid an error.
15588 Use char because int might match the return type of a GCC
15589 builtin and then its argument prototype would still apply. */
15590 #ifdef __cplusplus
15591 extern "C"
15592 #endif
15593 char IceConnectionNumber ();
15595 main ()
15597 return IceConnectionNumber ();
15599 return 0;
15601 _ACEOF
15602 if ac_fn_c_try_link "$LINENO"; then :
15603 ac_cv_lib_ICE_IceConnectionNumber=yes
15604 else
15605 ac_cv_lib_ICE_IceConnectionNumber=no
15607 rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
15612 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
15613 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
15614 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15617 LDFLAGS=$ac_save_LDFLAGS
15622 ac_ext=cpp
15623 ac_cpp='$CXXCPP $CPPFLAGS'
15624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15627 if test -z "$CXX"; then
15628 if test -n "$CCC"; then
15629 CXX=$CCC
15630 else
15631 if test -n "$ac_tool_prefix"; then
15632 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if ${ac_cv_prog_CXX+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 if test -n "$CXX"; then
15642 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15643 else
15644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645 for as_dir in $PATH
15647 IFS=$as_save_IFS
15648 test -z "$as_dir" && as_dir=.
15649 for ac_exec_ext in '' $ac_executable_extensions; do
15650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15651 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15653 break 2
15655 done
15656 done
15657 IFS=$as_save_IFS
15661 CXX=$ac_cv_prog_CXX
15662 if test -n "$CXX"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15664 $as_echo "$CXX" >&6; }
15665 else
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15671 test -n "$CXX" && break
15672 done
15674 if test -z "$CXX"; then
15675 ac_ct_CXX=$CXX
15676 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15678 # Extract the first word of "$ac_prog", so it can be a program name with args.
15679 set dummy $ac_prog; ac_word=$2
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15681 $as_echo_n "checking for $ac_word... " >&6; }
15682 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 if test -n "$ac_ct_CXX"; then
15686 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15687 else
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15695 ac_cv_prog_ac_ct_CXX="$ac_prog"
15696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15699 done
15700 done
15701 IFS=$as_save_IFS
15705 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15706 if test -n "$ac_ct_CXX"; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15708 $as_echo "$ac_ct_CXX" >&6; }
15709 else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 $as_echo "no" >&6; }
15715 test -n "$ac_ct_CXX" && break
15716 done
15718 if test "x$ac_ct_CXX" = x; then
15719 CXX="g++"
15720 else
15721 case $cross_compiling:$ac_tool_warned in
15722 yes:)
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15725 ac_tool_warned=yes ;;
15726 esac
15727 CXX=$ac_ct_CXX
15733 # Provide some information about the compiler.
15734 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15735 set X $ac_compile
15736 ac_compiler=$2
15737 for ac_option in --version -v -V -qversion; do
15738 { { ac_try="$ac_compiler $ac_option >&5"
15739 case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742 esac
15743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15744 $as_echo "$ac_try_echo"; } >&5
15745 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15746 ac_status=$?
15747 if test -s conftest.err; then
15748 sed '10a\
15749 ... rest of stderr output deleted ...
15750 10q' conftest.err >conftest.er1
15751 cat conftest.er1 >&5
15753 rm -f conftest.er1 conftest.err
15754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15755 test $ac_status = 0; }
15756 done
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15759 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15760 if ${ac_cv_cxx_compiler_gnu+:} false; then :
15761 $as_echo_n "(cached) " >&6
15762 else
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15767 main ()
15769 #ifndef __GNUC__
15770 choke me
15771 #endif
15774 return 0;
15776 _ACEOF
15777 if ac_fn_cxx_try_compile "$LINENO"; then :
15778 ac_compiler_gnu=yes
15779 else
15780 ac_compiler_gnu=no
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15787 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15788 if test $ac_compiler_gnu = yes; then
15789 GXX=yes
15790 else
15791 GXX=
15793 ac_test_CXXFLAGS=${CXXFLAGS+set}
15794 ac_save_CXXFLAGS=$CXXFLAGS
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15796 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
15797 if ${ac_cv_prog_cxx_g+:} false; then :
15798 $as_echo_n "(cached) " >&6
15799 else
15800 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15801 ac_cxx_werror_flag=yes
15802 ac_cv_prog_cxx_g=no
15803 CXXFLAGS="-g"
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15808 main ()
15812 return 0;
15814 _ACEOF
15815 if ac_fn_cxx_try_compile "$LINENO"; then :
15816 ac_cv_prog_cxx_g=yes
15817 else
15818 CXXFLAGS=""
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15823 main ()
15827 return 0;
15829 _ACEOF
15830 if ac_fn_cxx_try_compile "$LINENO"; then :
15832 else
15833 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15834 CXXFLAGS="-g"
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15839 main ()
15843 return 0;
15845 _ACEOF
15846 if ac_fn_cxx_try_compile "$LINENO"; then :
15847 ac_cv_prog_cxx_g=yes
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15857 $as_echo "$ac_cv_prog_cxx_g" >&6; }
15858 if test "$ac_test_CXXFLAGS" = set; then
15859 CXXFLAGS=$ac_save_CXXFLAGS
15860 elif test $ac_cv_prog_cxx_g = yes; then
15861 if test "$GXX" = yes; then
15862 CXXFLAGS="-g -O2"
15863 else
15864 CXXFLAGS="-g"
15866 else
15867 if test "$GXX" = yes; then
15868 CXXFLAGS="-O2"
15869 else
15870 CXXFLAGS=
15873 ac_ext=c
15874 ac_cpp='$CPP $CPPFLAGS'
15875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15879 depcc="$CXX" am_compiler_list=
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15882 $as_echo_n "checking dependency style of $depcc... " >&6; }
15883 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15887 # We make a subdir and do the tests there. Otherwise we can end up
15888 # making bogus files that we don't know about and never remove. For
15889 # instance it was reported that on HP-UX the gcc test will end up
15890 # making a dummy file named 'D' -- because '-MD' means "put the output
15891 # in D".
15892 rm -rf conftest.dir
15893 mkdir conftest.dir
15894 # Copy depcomp to subdir because otherwise we won't find it if we're
15895 # using a relative directory.
15896 cp "$am_depcomp" conftest.dir
15897 cd conftest.dir
15898 # We will build objects and dependencies in a subdirectory because
15899 # it helps to detect inapplicable dependency modes. For instance
15900 # both Tru64's cc and ICC support -MD to output dependencies as a
15901 # side effect of compilation, but ICC will put the dependencies in
15902 # the current directory while Tru64 will put them in the object
15903 # directory.
15904 mkdir sub
15906 am_cv_CXX_dependencies_compiler_type=none
15907 if test "$am_compiler_list" = ""; then
15908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15910 am__universal=false
15911 case " $depcc " in #(
15912 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15913 esac
15915 for depmode in $am_compiler_list; do
15916 # Setup a source with many dependencies, because some compilers
15917 # like to wrap large dependency lists on column 80 (with \), and
15918 # we should not choose a depcomp mode which is confused by this.
15920 # We need to recreate these files for each test, as the compiler may
15921 # overwrite some of them when testing with obscure command lines.
15922 # This happens at least with the AIX C compiler.
15923 : > sub/conftest.c
15924 for i in 1 2 3 4 5 6; do
15925 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15926 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15927 # Solaris 10 /bin/sh.
15928 echo '/* dummy */' > sub/conftst$i.h
15929 done
15930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15932 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15933 # mode. It turns out that the SunPro C++ compiler does not properly
15934 # handle '-M -o', and we need to detect this. Also, some Intel
15935 # versions had trouble with output in subdirs.
15936 am__obj=sub/conftest.${OBJEXT-o}
15937 am__minus_obj="-o $am__obj"
15938 case $depmode in
15939 gcc)
15940 # This depmode causes a compiler race in universal mode.
15941 test "$am__universal" = false || continue
15943 nosideeffect)
15944 # After this tag, mechanisms are not by side-effect, so they'll
15945 # only be used when explicitly requested.
15946 if test "x$enable_dependency_tracking" = xyes; then
15947 continue
15948 else
15949 break
15952 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15953 # This compiler won't grok '-c -o', but also, the minuso test has
15954 # not run yet. These depmodes are late enough in the game, and
15955 # so weak that their functioning should not be impacted.
15956 am__obj=conftest.${OBJEXT-o}
15957 am__minus_obj=
15959 none) break ;;
15960 esac
15961 if depmode=$depmode \
15962 source=sub/conftest.c object=$am__obj \
15963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15964 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15965 >/dev/null 2>conftest.err &&
15966 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15967 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15968 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15969 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15970 # icc doesn't choke on unknown options, it will just issue warnings
15971 # or remarks (even with -Werror). So we grep stderr for any message
15972 # that says an option was ignored or not supported.
15973 # When given -MP, icc 7.0 and 7.1 complain thusly:
15974 # icc: Command line warning: ignoring option '-M'; no argument required
15975 # The diagnosis changed in icc 8.0:
15976 # icc: Command line remark: option '-MP' not supported
15977 if (grep 'ignoring option' conftest.err ||
15978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15979 am_cv_CXX_dependencies_compiler_type=$depmode
15980 break
15983 done
15985 cd ..
15986 rm -rf conftest.dir
15987 else
15988 am_cv_CXX_dependencies_compiler_type=none
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15993 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15994 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15997 test "x$enable_dependency_tracking" != xno \
15998 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15999 am__fastdepCXX_TRUE=
16000 am__fastdepCXX_FALSE='#'
16001 else
16002 am__fastdepCXX_TRUE='#'
16003 am__fastdepCXX_FALSE=
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
16007 $as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
16008 if ${kpse_cv_warning_cxxflags+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 if test "x$GXX" = xyes; then
16012 kpse_cv_warning_cxxflags=
16013 kpse_warn_strings="-Wno-write-strings"
16014 if test "x$enable_compiler_warnings" != xno; then
16015 kpse_cv_warning_cxxflags="-Wreturn-type"
16016 case `$CXX -dumpversion` in #(
16017 3.* | 4.[012345].*) :
16018 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
16019 *) :
16021 esac
16022 case `$CXX -dumpversion` in #(
16023 3.[234].* | 4.* | 5.*) :
16024 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
16025 *) :
16027 esac
16028 if test "x$enable_compiler_warnings" != xmin; then
16029 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
16030 if test "x$enable_compiler_warnings" != xyes; then
16031 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
16032 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
16033 kpse_warn_strings="-Wwrite-strings"
16034 if test "x$enable_compiler_warnings" != xmax; then
16035 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
16040 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
16041 elif test "x$enable_compiler_warnings" = xno; then
16042 kpse_cv_warning_cxxflags=
16043 else
16044 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
16048 $as_echo "$kpse_cv_warning_cxxflags" >&6; }
16049 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
16055 func_stripname_cnf ()
16057 case $2 in
16058 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16059 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16060 esac
16061 } # func_stripname_cnf
16063 if test -n "$CXX" && ( test no != "$CXX" &&
16064 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16065 (test g++ != "$CXX"))); then
16066 ac_ext=cpp
16067 ac_cpp='$CXXCPP $CPPFLAGS'
16068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16072 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16073 if test -z "$CXXCPP"; then
16074 if ${ac_cv_prog_CXXCPP+:} false; then :
16075 $as_echo_n "(cached) " >&6
16076 else
16077 # Double quotes because CXXCPP needs to be expanded
16078 for CXXCPP in "$CXX -E" "/lib/cpp"
16080 ac_preproc_ok=false
16081 for ac_cxx_preproc_warn_flag in '' yes
16083 # Use a header file that comes with gcc, so configuring glibc
16084 # with a fresh cross-compiler works.
16085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086 # <limits.h> exists even on freestanding compilers.
16087 # On the NeXT, cc -E runs the code through the compiler's parser,
16088 # not just through cpp. "Syntax error" is here to catch this case.
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 #ifdef __STDC__
16092 # include <limits.h>
16093 #else
16094 # include <assert.h>
16095 #endif
16096 Syntax error
16097 _ACEOF
16098 if ac_fn_cxx_try_cpp "$LINENO"; then :
16100 else
16101 # Broken: fails on valid input.
16102 continue
16104 rm -f conftest.err conftest.i conftest.$ac_ext
16106 # OK, works on sane cases. Now check whether nonexistent headers
16107 # can be detected and how.
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 #include <ac_nonexistent.h>
16111 _ACEOF
16112 if ac_fn_cxx_try_cpp "$LINENO"; then :
16113 # Broken: success on invalid input.
16114 continue
16115 else
16116 # Passes both tests.
16117 ac_preproc_ok=:
16118 break
16120 rm -f conftest.err conftest.i conftest.$ac_ext
16122 done
16123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16124 rm -f conftest.i conftest.err conftest.$ac_ext
16125 if $ac_preproc_ok; then :
16126 break
16129 done
16130 ac_cv_prog_CXXCPP=$CXXCPP
16133 CXXCPP=$ac_cv_prog_CXXCPP
16134 else
16135 ac_cv_prog_CXXCPP=$CXXCPP
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16138 $as_echo "$CXXCPP" >&6; }
16139 ac_preproc_ok=false
16140 for ac_cxx_preproc_warn_flag in '' yes
16142 # Use a header file that comes with gcc, so configuring glibc
16143 # with a fresh cross-compiler works.
16144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16145 # <limits.h> exists even on freestanding compilers.
16146 # On the NeXT, cc -E runs the code through the compiler's parser,
16147 # not just through cpp. "Syntax error" is here to catch this case.
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 #ifdef __STDC__
16151 # include <limits.h>
16152 #else
16153 # include <assert.h>
16154 #endif
16155 Syntax error
16156 _ACEOF
16157 if ac_fn_cxx_try_cpp "$LINENO"; then :
16159 else
16160 # Broken: fails on valid input.
16161 continue
16163 rm -f conftest.err conftest.i conftest.$ac_ext
16165 # OK, works on sane cases. Now check whether nonexistent headers
16166 # can be detected and how.
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #include <ac_nonexistent.h>
16170 _ACEOF
16171 if ac_fn_cxx_try_cpp "$LINENO"; then :
16172 # Broken: success on invalid input.
16173 continue
16174 else
16175 # Passes both tests.
16176 ac_preproc_ok=:
16177 break
16179 rm -f conftest.err conftest.i conftest.$ac_ext
16181 done
16182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16183 rm -f conftest.i conftest.err conftest.$ac_ext
16184 if $ac_preproc_ok; then :
16186 else
16187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16189 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16190 See \`config.log' for more details" "$LINENO" 5; }
16193 ac_ext=c
16194 ac_cpp='$CPP $CPPFLAGS'
16195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16199 else
16200 _lt_caught_CXX_error=yes
16203 ac_ext=cpp
16204 ac_cpp='$CXXCPP $CPPFLAGS'
16205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16209 archive_cmds_need_lc_CXX=no
16210 allow_undefined_flag_CXX=
16211 always_export_symbols_CXX=no
16212 archive_expsym_cmds_CXX=
16213 compiler_needs_object_CXX=no
16214 export_dynamic_flag_spec_CXX=
16215 hardcode_direct_CXX=no
16216 hardcode_direct_absolute_CXX=no
16217 hardcode_libdir_flag_spec_CXX=
16218 hardcode_libdir_separator_CXX=
16219 hardcode_minus_L_CXX=no
16220 hardcode_shlibpath_var_CXX=unsupported
16221 hardcode_automatic_CXX=no
16222 inherit_rpath_CXX=no
16223 module_cmds_CXX=
16224 module_expsym_cmds_CXX=
16225 link_all_deplibs_CXX=unknown
16226 old_archive_cmds_CXX=$old_archive_cmds
16227 reload_flag_CXX=$reload_flag
16228 reload_cmds_CXX=$reload_cmds
16229 no_undefined_flag_CXX=
16230 whole_archive_flag_spec_CXX=
16231 enable_shared_with_static_runtimes_CXX=no
16233 # Source file extension for C++ test sources.
16234 ac_ext=cpp
16236 # Object file extension for compiled C++ test sources.
16237 objext=o
16238 objext_CXX=$objext
16240 # No sense in running all these tests if we already determined that
16241 # the CXX compiler isn't working. Some variables (like enable_shared)
16242 # are currently assumed to apply to all compilers on this platform,
16243 # and will be corrupted by setting them based on a non-working compiler.
16244 if test yes != "$_lt_caught_CXX_error"; then
16245 # Code to be used in simple compile tests
16246 lt_simple_compile_test_code="int some_variable = 0;"
16248 # Code to be used in simple link tests
16249 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16251 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16258 # If no C compiler was specified, use CC.
16259 LTCC=${LTCC-"$CC"}
16261 # If no C compiler flags were specified, use CFLAGS.
16262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16264 # Allow CC to be a program name with arguments.
16265 compiler=$CC
16268 # save warnings/boilerplate of simple test code
16269 ac_outfile=conftest.$ac_objext
16270 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16271 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16272 _lt_compiler_boilerplate=`cat conftest.err`
16273 $RM conftest*
16275 ac_outfile=conftest.$ac_objext
16276 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16278 _lt_linker_boilerplate=`cat conftest.err`
16279 $RM -r conftest*
16282 # Allow CC to be a program name with arguments.
16283 lt_save_CC=$CC
16284 lt_save_CFLAGS=$CFLAGS
16285 lt_save_LD=$LD
16286 lt_save_GCC=$GCC
16287 GCC=$GXX
16288 lt_save_with_gnu_ld=$with_gnu_ld
16289 lt_save_path_LD=$lt_cv_path_LD
16290 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16291 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16292 else
16293 $as_unset lt_cv_prog_gnu_ld
16295 if test -n "${lt_cv_path_LDCXX+set}"; then
16296 lt_cv_path_LD=$lt_cv_path_LDCXX
16297 else
16298 $as_unset lt_cv_path_LD
16300 test -z "${LDCXX+set}" || LD=$LDCXX
16301 CC=${CXX-"c++"}
16302 CFLAGS=$CXXFLAGS
16303 compiler=$CC
16304 compiler_CXX=$CC
16305 func_cc_basename $compiler
16306 cc_basename=$func_cc_basename_result
16309 if test -n "$compiler"; then
16310 # We don't want -fno-exception when compiling C++ code, so set the
16311 # no_builtin_flag separately
16312 if test yes = "$GXX"; then
16313 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16314 else
16315 lt_prog_compiler_no_builtin_flag_CXX=
16318 if test yes = "$GXX"; then
16319 # Set up default GNU C++ configuration
16323 # Check whether --with-gnu-ld was given.
16324 if test "${with_gnu_ld+set}" = set; then :
16325 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16326 else
16327 with_gnu_ld=no
16330 ac_prog=ld
16331 if test yes = "$GCC"; then
16332 # Check if gcc -print-prog-name=ld gives a path.
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16334 $as_echo_n "checking for ld used by $CC... " >&6; }
16335 case $host in
16336 *-*-mingw*)
16337 # gcc leaves a trailing carriage return, which upsets mingw
16338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16341 esac
16342 case $ac_prog in
16343 # Accept absolute paths.
16344 [\\/]* | ?:[\\/]*)
16345 re_direlt='/[^/][^/]*/\.\./'
16346 # Canonicalize the pathname of ld
16347 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16348 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16349 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16350 done
16351 test -z "$LD" && LD=$ac_prog
16354 # If it fails, then pretend we aren't using GCC.
16355 ac_prog=ld
16358 # If it is relative, then search for the first ld in PATH.
16359 with_gnu_ld=unknown
16361 esac
16362 elif test yes = "$with_gnu_ld"; then
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16364 $as_echo_n "checking for GNU ld... " >&6; }
16365 else
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16367 $as_echo_n "checking for non-GNU ld... " >&6; }
16369 if ${lt_cv_path_LD+:} false; then :
16370 $as_echo_n "(cached) " >&6
16371 else
16372 if test -z "$LD"; then
16373 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16374 for ac_dir in $PATH; do
16375 IFS=$lt_save_ifs
16376 test -z "$ac_dir" && ac_dir=.
16377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16378 lt_cv_path_LD=$ac_dir/$ac_prog
16379 # Check to see if the program is GNU ld. I'd rather use --version,
16380 # but apparently some variants of GNU ld only accept -v.
16381 # Break only if it was the GNU/non-GNU ld that we prefer.
16382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16383 *GNU* | *'with BFD'*)
16384 test no != "$with_gnu_ld" && break
16387 test yes != "$with_gnu_ld" && break
16389 esac
16391 done
16392 IFS=$lt_save_ifs
16393 else
16394 lt_cv_path_LD=$LD # Let the user override the test with a path.
16398 LD=$lt_cv_path_LD
16399 if test -n "$LD"; then
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16401 $as_echo "$LD" >&6; }
16402 else
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404 $as_echo "no" >&6; }
16406 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16409 if ${lt_cv_prog_gnu_ld+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16413 case `$LD -v 2>&1 </dev/null` in
16414 *GNU* | *'with BFD'*)
16415 lt_cv_prog_gnu_ld=yes
16418 lt_cv_prog_gnu_ld=no
16420 esac
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16423 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16424 with_gnu_ld=$lt_cv_prog_gnu_ld
16432 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16433 # archiving commands below assume that GNU ld is being used.
16434 if test yes = "$with_gnu_ld"; then
16435 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16436 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16438 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16439 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16441 # If archive_cmds runs LD, not CC, wlarc should be empty
16442 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16443 # investigate it a little bit more. (MM)
16444 wlarc='$wl'
16446 # ancient GNU ld didn't support --whole-archive et. al.
16447 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16448 $GREP 'no-whole-archive' > /dev/null; then
16449 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16450 else
16451 whole_archive_flag_spec_CXX=
16453 else
16454 with_gnu_ld=no
16455 wlarc=
16457 # A generic and very simple default shared library creation
16458 # command for GNU C++ for the case where it uses the native
16459 # linker, instead of GNU ld. If possible, this setting should
16460 # overridden to take advantage of the native linker features on
16461 # the platform it is being used on.
16462 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16465 # Commands to make compiler produce verbose output that lists
16466 # what "hidden" libraries, object files and flags are used when
16467 # linking a shared library.
16468 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16470 else
16471 GXX=no
16472 with_gnu_ld=no
16473 wlarc=
16476 # PORTME: fill in a description of your system's C++ link characteristics
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16478 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16479 ld_shlibs_CXX=yes
16480 case $host_os in
16481 aix3*)
16482 # FIXME: insert proper C++ library support
16483 ld_shlibs_CXX=no
16485 aix[4-9]*)
16486 if test ia64 = "$host_cpu"; then
16487 # On IA64, the linker does run time linking by default, so we don't
16488 # have to do anything special.
16489 aix_use_runtimelinking=no
16490 exp_sym_flag='-Bexport'
16491 no_entry_flag=
16492 else
16493 aix_use_runtimelinking=no
16495 # Test if we are trying to use run time linking or normal
16496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16497 # have runtime linking enabled, and use it for executables.
16498 # For shared libraries, we enable/disable runtime linking
16499 # depending on the kind of the shared library created -
16500 # when "with_aix_soname,aix_use_runtimelinking" is:
16501 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16502 # "aix,yes" lib.so shared, rtl:yes, for executables
16503 # lib.a static archive
16504 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16505 # lib.a(lib.so.V) shared, rtl:no, for executables
16506 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16507 # lib.a(lib.so.V) shared, rtl:no
16508 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16509 # lib.a static archive
16510 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16511 for ld_flag in $LDFLAGS; do
16512 case $ld_flag in
16513 *-brtl*)
16514 aix_use_runtimelinking=yes
16515 break
16517 esac
16518 done
16519 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16520 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16521 # so we don't have lib.a shared libs to link our executables.
16522 # We have to force runtime linking in this case.
16523 aix_use_runtimelinking=yes
16524 LDFLAGS="$LDFLAGS -Wl,-brtl"
16527 esac
16529 exp_sym_flag='-bexport'
16530 no_entry_flag='-bnoentry'
16533 # When large executables or shared objects are built, AIX ld can
16534 # have problems creating the table of contents. If linking a library
16535 # or program results in "error TOC overflow" add -mminimal-toc to
16536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16539 archive_cmds_CXX=''
16540 hardcode_direct_CXX=yes
16541 hardcode_direct_absolute_CXX=yes
16542 hardcode_libdir_separator_CXX=':'
16543 link_all_deplibs_CXX=yes
16544 file_list_spec_CXX='$wl-f,'
16545 case $with_aix_soname,$aix_use_runtimelinking in
16546 aix,*) ;; # no import file
16547 svr4,* | *,yes) # use import file
16548 # The Import File defines what to hardcode.
16549 hardcode_direct_CXX=no
16550 hardcode_direct_absolute_CXX=no
16552 esac
16554 if test yes = "$GXX"; then
16555 case $host_os in aix4.[012]|aix4.[012].*)
16556 # We only want to do this on AIX 4.2 and lower, the check
16557 # below for broken collect2 doesn't work under 4.3+
16558 collect2name=`$CC -print-prog-name=collect2`
16559 if test -f "$collect2name" &&
16560 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16561 then
16562 # We have reworked collect2
16564 else
16565 # We have old collect2
16566 hardcode_direct_CXX=unsupported
16567 # It fails to find uninstalled libraries when the uninstalled
16568 # path is not listed in the libpath. Setting hardcode_minus_L
16569 # to unsupported forces relinking
16570 hardcode_minus_L_CXX=yes
16571 hardcode_libdir_flag_spec_CXX='-L$libdir'
16572 hardcode_libdir_separator_CXX=
16574 esac
16575 shared_flag='-shared'
16576 if test yes = "$aix_use_runtimelinking"; then
16577 shared_flag=$shared_flag' $wl-G'
16579 # Need to ensure runtime linking is disabled for the traditional
16580 # shared library, or the linker may eventually find shared libraries
16581 # /with/ Import File - we do not want to mix them.
16582 shared_flag_aix='-shared'
16583 shared_flag_svr4='-shared $wl-G'
16584 else
16585 # not using gcc
16586 if test ia64 = "$host_cpu"; then
16587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16588 # chokes on -Wl,-G. The following line is correct:
16589 shared_flag='-G'
16590 else
16591 if test yes = "$aix_use_runtimelinking"; then
16592 shared_flag='$wl-G'
16593 else
16594 shared_flag='$wl-bM:SRE'
16596 shared_flag_aix='$wl-bM:SRE'
16597 shared_flag_svr4='$wl-G'
16601 export_dynamic_flag_spec_CXX='$wl-bexpall'
16602 # It seems that -bexpall does not export symbols beginning with
16603 # underscore (_), so it is better to generate a list of symbols to
16604 # export.
16605 always_export_symbols_CXX=yes
16606 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16607 # Warning - without using the other runtime loading flags (-brtl),
16608 # -berok will link without error, but may produce a broken library.
16609 # The "-G" linker flag allows undefined symbols.
16610 no_undefined_flag_CXX='-bernotok'
16611 # Determine the default libpath from the value encoded in an empty
16612 # executable.
16613 if test set = "${lt_cv_aix_libpath+set}"; then
16614 aix_libpath=$lt_cv_aix_libpath
16615 else
16616 if ${lt_cv_aix_libpath__CXX+:} false; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16623 main ()
16627 return 0;
16629 _ACEOF
16630 if ac_fn_cxx_try_link "$LINENO"; then :
16632 lt_aix_libpath_sed='
16633 /Import File Strings/,/^$/ {
16634 /^0/ {
16635 s/^0 *\([^ ]*\) *$/\1/
16639 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16640 # Check for a 64-bit object if we didn't find anything.
16641 if test -z "$lt_cv_aix_libpath__CXX"; then
16642 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16645 rm -f core conftest.err conftest.$ac_objext \
16646 conftest$ac_exeext conftest.$ac_ext
16647 if test -z "$lt_cv_aix_libpath__CXX"; then
16648 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16653 aix_libpath=$lt_cv_aix_libpath__CXX
16656 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16658 archive_expsym_cmds_CXX='$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
16659 else
16660 if test ia64 = "$host_cpu"; then
16661 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16662 allow_undefined_flag_CXX="-z nodefs"
16663 archive_expsym_cmds_CXX="\$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"
16664 else
16665 # Determine the default libpath from the value encoded in an
16666 # empty executable.
16667 if test set = "${lt_cv_aix_libpath+set}"; then
16668 aix_libpath=$lt_cv_aix_libpath
16669 else
16670 if ${lt_cv_aix_libpath__CXX+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16677 main ()
16681 return 0;
16683 _ACEOF
16684 if ac_fn_cxx_try_link "$LINENO"; then :
16686 lt_aix_libpath_sed='
16687 /Import File Strings/,/^$/ {
16688 /^0/ {
16689 s/^0 *\([^ ]*\) *$/\1/
16693 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16694 # Check for a 64-bit object if we didn't find anything.
16695 if test -z "$lt_cv_aix_libpath__CXX"; then
16696 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16699 rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 if test -z "$lt_cv_aix_libpath__CXX"; then
16702 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16707 aix_libpath=$lt_cv_aix_libpath__CXX
16710 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16711 # Warning - without using the other run time loading flags,
16712 # -berok will link without error, but may produce a broken library.
16713 no_undefined_flag_CXX=' $wl-bernotok'
16714 allow_undefined_flag_CXX=' $wl-berok'
16715 if test yes = "$with_gnu_ld"; then
16716 # We only use this code for GNU lds that support --whole-archive.
16717 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16718 else
16719 # Exported symbols can be pulled into shared objects from archives
16720 whole_archive_flag_spec_CXX='$convenience'
16722 archive_cmds_need_lc_CXX=yes
16723 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16724 # -brtl affects multiple linker settings, -berok does not and is overridden later
16725 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16726 if test svr4 != "$with_aix_soname"; then
16727 # This is similar to how AIX traditionally builds its shared
16728 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16729 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16731 if test aix != "$with_aix_soname"; then
16732 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16733 else
16734 # used by -dlpreopen to get the symbols
16735 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16737 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16742 beos*)
16743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16744 allow_undefined_flag_CXX=unsupported
16745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16746 # support --undefined. This deserves some investigation. FIXME
16747 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16748 else
16749 ld_shlibs_CXX=no
16753 chorus*)
16754 case $cc_basename in
16756 # FIXME: insert proper C++ library support
16757 ld_shlibs_CXX=no
16759 esac
16762 cygwin* | mingw* | pw32* | cegcc*)
16763 case $GXX,$cc_basename in
16764 ,cl* | no,cl*)
16765 # Native MSVC
16766 # hardcode_libdir_flag_spec is actually meaningless, as there is
16767 # no search path for DLLs.
16768 hardcode_libdir_flag_spec_CXX=' '
16769 allow_undefined_flag_CXX=unsupported
16770 always_export_symbols_CXX=yes
16771 file_list_spec_CXX='@'
16772 # Tell ltmain to make .lib files, not .a files.
16773 libext=lib
16774 # Tell ltmain to make .dll files, not .so files.
16775 shrext_cmds=.dll
16776 # FIXME: Setting linknames here is a bad hack.
16777 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16778 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16779 cp "$export_symbols" "$output_objdir/$soname.def";
16780 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16781 else
16782 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16784 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16785 linknames='
16786 # The linker will not automatically build a static lib if we build a DLL.
16787 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16788 enable_shared_with_static_runtimes_CXX=yes
16789 # Don't use ranlib
16790 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16791 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16792 lt_tool_outputfile="@TOOL_OUTPUT@"~
16793 case $lt_outputfile in
16794 *.exe|*.EXE) ;;
16796 lt_outputfile=$lt_outputfile.exe
16797 lt_tool_outputfile=$lt_tool_outputfile.exe
16799 esac~
16800 func_to_tool_file "$lt_outputfile"~
16801 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16802 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16803 $RM "$lt_outputfile.manifest";
16807 # g++
16808 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16809 # as there is no search path for DLLs.
16810 hardcode_libdir_flag_spec_CXX='-L$libdir'
16811 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16812 allow_undefined_flag_CXX=unsupported
16813 always_export_symbols_CXX=no
16814 enable_shared_with_static_runtimes_CXX=yes
16816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16817 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16818 # If the export-symbols file already is a .def file, use it as
16819 # is; otherwise, prepend EXPORTS...
16820 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16821 cp $export_symbols $output_objdir/$soname.def;
16822 else
16823 echo EXPORTS > $output_objdir/$soname.def;
16824 cat $export_symbols >> $output_objdir/$soname.def;
16826 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16827 else
16828 ld_shlibs_CXX=no
16831 esac
16833 darwin* | rhapsody*)
16836 archive_cmds_need_lc_CXX=no
16837 hardcode_direct_CXX=no
16838 hardcode_automatic_CXX=yes
16839 hardcode_shlibpath_var_CXX=unsupported
16840 if test yes = "$lt_cv_ld_force_load"; then
16841 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16843 else
16844 whole_archive_flag_spec_CXX=''
16846 link_all_deplibs_CXX=yes
16847 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16848 case $cc_basename in
16849 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16850 *) _lt_dar_can_shared=$GCC ;;
16851 esac
16852 if test yes = "$_lt_dar_can_shared"; then
16853 output_verbose_link_cmd=func_echo_all
16854 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16855 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16856 archive_expsym_cmds_CXX="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"
16857 module_expsym_cmds_CXX="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"
16858 if test yes != "$lt_cv_apple_cc_single_mod"; then
16859 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16860 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16863 else
16864 ld_shlibs_CXX=no
16869 os2*)
16870 hardcode_libdir_flag_spec_CXX='-L$libdir'
16871 hardcode_minus_L_CXX=yes
16872 allow_undefined_flag_CXX=unsupported
16873 shrext_cmds=.dll
16874 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16875 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16876 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16877 $ECHO EXPORTS >> $output_objdir/$libname.def~
16878 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16880 emximp -o $lib $output_objdir/$libname.def'
16881 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16884 $ECHO EXPORTS >> $output_objdir/$libname.def~
16885 prefix_cmds="$SED"~
16886 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16887 prefix_cmds="$prefix_cmds -e 1d";
16889 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16890 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16891 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16892 emximp -o $lib $output_objdir/$libname.def'
16893 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16894 enable_shared_with_static_runtimes_CXX=yes
16897 dgux*)
16898 case $cc_basename in
16899 ec++*)
16900 # FIXME: insert proper C++ library support
16901 ld_shlibs_CXX=no
16903 ghcx*)
16904 # Green Hills C++ Compiler
16905 # FIXME: insert proper C++ library support
16906 ld_shlibs_CXX=no
16909 # FIXME: insert proper C++ library support
16910 ld_shlibs_CXX=no
16912 esac
16915 freebsd2.*)
16916 # C++ shared libraries reported to be fairly broken before
16917 # switch to ELF
16918 ld_shlibs_CXX=no
16921 freebsd-elf*)
16922 archive_cmds_need_lc_CXX=no
16925 freebsd* | dragonfly*)
16926 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16927 # conventions
16928 ld_shlibs_CXX=yes
16931 haiku*)
16932 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16933 link_all_deplibs_CXX=yes
16936 hpux9*)
16937 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16938 hardcode_libdir_separator_CXX=:
16939 export_dynamic_flag_spec_CXX='$wl-E'
16940 hardcode_direct_CXX=yes
16941 hardcode_minus_L_CXX=yes # Not in the search PATH,
16942 # but as the default
16943 # location of the library.
16945 case $cc_basename in
16946 CC*)
16947 # FIXME: insert proper C++ library support
16948 ld_shlibs_CXX=no
16950 aCC*)
16951 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16952 # Commands to make compiler produce verbose output that lists
16953 # what "hidden" libraries, object files and flags are used when
16954 # linking a shared library.
16956 # There doesn't appear to be a way to prevent this compiler from
16957 # explicitly linking system object files so we need to strip them
16958 # from the output so that they don't get included in the library
16959 # dependencies.
16960 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16963 if test yes = "$GXX"; then
16964 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16965 else
16966 # FIXME: insert proper C++ library support
16967 ld_shlibs_CXX=no
16970 esac
16973 hpux10*|hpux11*)
16974 if test no = "$with_gnu_ld"; then
16975 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16976 hardcode_libdir_separator_CXX=:
16978 case $host_cpu in
16979 hppa*64*|ia64*)
16982 export_dynamic_flag_spec_CXX='$wl-E'
16984 esac
16986 case $host_cpu in
16987 hppa*64*|ia64*)
16988 hardcode_direct_CXX=no
16989 hardcode_shlibpath_var_CXX=no
16992 hardcode_direct_CXX=yes
16993 hardcode_direct_absolute_CXX=yes
16994 hardcode_minus_L_CXX=yes # Not in the search PATH,
16995 # but as the default
16996 # location of the library.
16998 esac
17000 case $cc_basename in
17001 CC*)
17002 # FIXME: insert proper C++ library support
17003 ld_shlibs_CXX=no
17005 aCC*)
17006 case $host_cpu in
17007 hppa*64*)
17008 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17010 ia64*)
17011 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17014 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17016 esac
17017 # Commands to make compiler produce verbose output that lists
17018 # what "hidden" libraries, object files and flags are used when
17019 # linking a shared library.
17021 # There doesn't appear to be a way to prevent this compiler from
17022 # explicitly linking system object files so we need to strip them
17023 # from the output so that they don't get included in the library
17024 # dependencies.
17025 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17028 if test yes = "$GXX"; then
17029 if test no = "$with_gnu_ld"; then
17030 case $host_cpu in
17031 hppa*64*)
17032 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17034 ia64*)
17035 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17038 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17040 esac
17042 else
17043 # FIXME: insert proper C++ library support
17044 ld_shlibs_CXX=no
17047 esac
17050 interix[3-9]*)
17051 hardcode_direct_CXX=no
17052 hardcode_shlibpath_var_CXX=no
17053 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17054 export_dynamic_flag_spec_CXX='$wl-E'
17055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17056 # Instead, shared libraries are loaded at an image base (0x10000000 by
17057 # default) and relocated if they conflict, which is a slow very memory
17058 # consuming and fragmenting process. To avoid this, we pick a random,
17059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17060 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17061 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17062 archive_expsym_cmds_CXX='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'
17064 irix5* | irix6*)
17065 case $cc_basename in
17066 CC*)
17067 # SGI C++
17068 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17070 # Archives containing C++ object files must be created using
17071 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17072 # necessary to make sure instantiated templates are included
17073 # in the archive.
17074 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17077 if test yes = "$GXX"; then
17078 if test no = "$with_gnu_ld"; then
17079 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
17080 else
17081 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
17084 link_all_deplibs_CXX=yes
17086 esac
17087 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17088 hardcode_libdir_separator_CXX=:
17089 inherit_rpath_CXX=yes
17092 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17093 case $cc_basename in
17094 KCC*)
17095 # Kuck and Associates, Inc. (KAI) C++ Compiler
17097 # KCC will only create a shared library if the output file
17098 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17099 # to its proper name (with version) after linking.
17100 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17101 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
17102 # Commands to make compiler produce verbose output that lists
17103 # what "hidden" libraries, object files and flags are used when
17104 # linking a shared library.
17106 # There doesn't appear to be a way to prevent this compiler from
17107 # explicitly linking system object files so we need to strip them
17108 # from the output so that they don't get included in the library
17109 # dependencies.
17110 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17112 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17113 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17115 # Archives containing C++ object files must be created using
17116 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17117 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17119 icpc* | ecpc* )
17120 # Intel C++
17121 with_gnu_ld=yes
17122 # version 8.0 and above of icpc choke on multiply defined symbols
17123 # if we add $predep_objects and $postdep_objects, however 7.1 and
17124 # earlier do not add the objects themselves.
17125 case `$CC -V 2>&1` in
17126 *"Version 7."*)
17127 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17128 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17130 *) # Version 8.0 or newer
17131 tmp_idyn=
17132 case $host_cpu in
17133 ia64*) tmp_idyn=' -i_dynamic';;
17134 esac
17135 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17136 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17138 esac
17139 archive_cmds_need_lc_CXX=no
17140 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17141 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17142 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17144 pgCC* | pgcpp*)
17145 # Portland Group C++ compiler
17146 case `$CC -V` in
17147 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17148 prelink_cmds_CXX='tpldir=Template.dir~
17149 rm -rf $tpldir~
17150 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17151 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17152 old_archive_cmds_CXX='tpldir=Template.dir~
17153 rm -rf $tpldir~
17154 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17155 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17156 $RANLIB $oldlib'
17157 archive_cmds_CXX='tpldir=Template.dir~
17158 rm -rf $tpldir~
17159 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17160 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17161 archive_expsym_cmds_CXX='tpldir=Template.dir~
17162 rm -rf $tpldir~
17163 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17164 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17166 *) # Version 6 and above use weak symbols
17167 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17168 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17170 esac
17172 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17173 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17174 whole_archive_flag_spec_CXX='$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'
17176 cxx*)
17177 # Compaq C++
17178 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17179 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
17181 runpath_var=LD_RUN_PATH
17182 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17183 hardcode_libdir_separator_CXX=:
17185 # Commands to make compiler produce verbose output that lists
17186 # what "hidden" libraries, object files and flags are used when
17187 # linking a shared library.
17189 # There doesn't appear to be a way to prevent this compiler from
17190 # explicitly linking system object files so we need to strip them
17191 # from the output so that they don't get included in the library
17192 # dependencies.
17193 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17195 xl* | mpixl* | bgxl*)
17196 # IBM XL 8.0 on PPC, with GNU ld
17197 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17198 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17199 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17200 if test yes = "$supports_anon_versioning"; then
17201 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17203 echo "local: *; };" >> $output_objdir/$libname.ver~
17204 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17208 case `$CC -V 2>&1 | sed 5q` in
17209 *Sun\ C*)
17210 # Sun C++ 5.9
17211 no_undefined_flag_CXX=' -zdefs'
17212 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17213 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17214 hardcode_libdir_flag_spec_CXX='-R$libdir'
17215 whole_archive_flag_spec_CXX='$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'
17216 compiler_needs_object_CXX=yes
17218 # Not sure whether something based on
17219 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17220 # would be better.
17221 output_verbose_link_cmd='func_echo_all'
17223 # Archives containing C++ object files must be created using
17224 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17225 # necessary to make sure instantiated templates are included
17226 # in the archive.
17227 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17229 esac
17231 esac
17234 lynxos*)
17235 # FIXME: insert proper C++ library support
17236 ld_shlibs_CXX=no
17239 m88k*)
17240 # FIXME: insert proper C++ library support
17241 ld_shlibs_CXX=no
17244 mvs*)
17245 case $cc_basename in
17246 cxx*)
17247 # FIXME: insert proper C++ library support
17248 ld_shlibs_CXX=no
17251 # FIXME: insert proper C++ library support
17252 ld_shlibs_CXX=no
17254 esac
17257 netbsd*)
17258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17259 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17260 wlarc=
17261 hardcode_libdir_flag_spec_CXX='-R$libdir'
17262 hardcode_direct_CXX=yes
17263 hardcode_shlibpath_var_CXX=no
17265 # Workaround some broken pre-1.5 toolchains
17266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17269 *nto* | *qnx*)
17270 ld_shlibs_CXX=yes
17273 openbsd* | bitrig*)
17274 if test -f /usr/libexec/ld.so; then
17275 hardcode_direct_CXX=yes
17276 hardcode_shlibpath_var_CXX=no
17277 hardcode_direct_absolute_CXX=yes
17278 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17279 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17281 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17282 export_dynamic_flag_spec_CXX='$wl-E'
17283 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17285 output_verbose_link_cmd=func_echo_all
17286 else
17287 ld_shlibs_CXX=no
17291 osf3* | osf4* | osf5*)
17292 case $cc_basename in
17293 KCC*)
17294 # Kuck and Associates, Inc. (KAI) C++ Compiler
17296 # KCC will only create a shared library if the output file
17297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17298 # to its proper name (with version) after linking.
17299 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17301 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17302 hardcode_libdir_separator_CXX=:
17304 # Archives containing C++ object files must be created using
17305 # the KAI C++ compiler.
17306 case $host in
17307 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17308 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17309 esac
17311 RCC*)
17312 # Rational C++ 2.4.1
17313 # FIXME: insert proper C++ library support
17314 ld_shlibs_CXX=no
17316 cxx*)
17317 case $host in
17318 osf3*)
17319 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17320 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17321 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17324 allow_undefined_flag_CXX=' -expect_unresolved \*'
17325 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17326 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17327 echo "-hidden">> $lib.exp~
17328 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17329 $RM $lib.exp'
17330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17332 esac
17334 hardcode_libdir_separator_CXX=:
17336 # Commands to make compiler produce verbose output that lists
17337 # what "hidden" libraries, object files and flags are used when
17338 # linking a shared library.
17340 # There doesn't appear to be a way to prevent this compiler from
17341 # explicitly linking system object files so we need to strip them
17342 # from the output so that they don't get included in the library
17343 # dependencies.
17344 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17347 if test yes,no = "$GXX,$with_gnu_ld"; then
17348 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17349 case $host in
17350 osf3*)
17351 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17354 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17356 esac
17358 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17359 hardcode_libdir_separator_CXX=:
17361 # Commands to make compiler produce verbose output that lists
17362 # what "hidden" libraries, object files and flags are used when
17363 # linking a shared library.
17364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17366 else
17367 # FIXME: insert proper C++ library support
17368 ld_shlibs_CXX=no
17371 esac
17374 psos*)
17375 # FIXME: insert proper C++ library support
17376 ld_shlibs_CXX=no
17379 sunos4*)
17380 case $cc_basename in
17381 CC*)
17382 # Sun C++ 4.x
17383 # FIXME: insert proper C++ library support
17384 ld_shlibs_CXX=no
17386 lcc*)
17387 # Lucid
17388 # FIXME: insert proper C++ library support
17389 ld_shlibs_CXX=no
17392 # FIXME: insert proper C++ library support
17393 ld_shlibs_CXX=no
17395 esac
17398 solaris*)
17399 case $cc_basename in
17400 CC* | sunCC*)
17401 # Sun C++ 4.2, 5.x and Centerline C++
17402 archive_cmds_need_lc_CXX=yes
17403 no_undefined_flag_CXX=' -zdefs'
17404 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17405 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17406 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17408 hardcode_libdir_flag_spec_CXX='-R$libdir'
17409 hardcode_shlibpath_var_CXX=no
17410 case $host_os in
17411 solaris2.[0-5] | solaris2.[0-5].*) ;;
17413 # The compiler driver will combine and reorder linker options,
17414 # but understands '-z linker_flag'.
17415 # Supported since Solaris 2.6 (maybe 2.5.1?)
17416 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17418 esac
17419 link_all_deplibs_CXX=yes
17421 output_verbose_link_cmd='func_echo_all'
17423 # Archives containing C++ object files must be created using
17424 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17425 # necessary to make sure instantiated templates are included
17426 # in the archive.
17427 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17429 gcx*)
17430 # Green Hills C++ Compiler
17431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17433 # The C++ compiler must be used to create the archive.
17434 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17437 # GNU C++ compiler with Solaris linker
17438 if test yes,no = "$GXX,$with_gnu_ld"; then
17439 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17440 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17441 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17442 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17443 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17445 # Commands to make compiler produce verbose output that lists
17446 # what "hidden" libraries, object files and flags are used when
17447 # linking a shared library.
17448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17449 else
17450 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17451 # platform.
17452 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17453 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17454 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17456 # Commands to make compiler produce verbose output that lists
17457 # what "hidden" libraries, object files and flags are used when
17458 # linking a shared library.
17459 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17462 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17463 case $host_os in
17464 solaris2.[0-5] | solaris2.[0-5].*) ;;
17466 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17468 esac
17471 esac
17474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17475 no_undefined_flag_CXX='$wl-z,text'
17476 archive_cmds_need_lc_CXX=no
17477 hardcode_shlibpath_var_CXX=no
17478 runpath_var='LD_RUN_PATH'
17480 case $cc_basename in
17481 CC*)
17482 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17483 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17486 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17487 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17489 esac
17492 sysv5* | sco3.2v5* | sco5v6*)
17493 # Note: We CANNOT use -z defs as we might desire, because we do not
17494 # link with -lc, and that would cause any symbols used from libc to
17495 # always be unresolved, which means just about no library would
17496 # ever link correctly. If we're not using GNU ld we use -z text
17497 # though, which does catch some bad symbols but isn't as heavy-handed
17498 # as -z defs.
17499 no_undefined_flag_CXX='$wl-z,text'
17500 allow_undefined_flag_CXX='$wl-z,nodefs'
17501 archive_cmds_need_lc_CXX=no
17502 hardcode_shlibpath_var_CXX=no
17503 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17504 hardcode_libdir_separator_CXX=':'
17505 link_all_deplibs_CXX=yes
17506 export_dynamic_flag_spec_CXX='$wl-Bexport'
17507 runpath_var='LD_RUN_PATH'
17509 case $cc_basename in
17510 CC*)
17511 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17512 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17513 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17514 '"$old_archive_cmds_CXX"
17515 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17516 '"$reload_cmds_CXX"
17519 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17520 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17522 esac
17525 tandem*)
17526 case $cc_basename in
17527 NCC*)
17528 # NonStop-UX NCC 3.20
17529 # FIXME: insert proper C++ library support
17530 ld_shlibs_CXX=no
17533 # FIXME: insert proper C++ library support
17534 ld_shlibs_CXX=no
17536 esac
17539 vxworks*)
17540 # FIXME: insert proper C++ library support
17541 ld_shlibs_CXX=no
17545 # FIXME: insert proper C++ library support
17546 ld_shlibs_CXX=no
17548 esac
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17551 $as_echo "$ld_shlibs_CXX" >&6; }
17552 test no = "$ld_shlibs_CXX" && can_build_shared=no
17554 GCC_CXX=$GXX
17555 LD_CXX=$LD
17557 ## CAVEAT EMPTOR:
17558 ## There is no encapsulation within the following macros, do not change
17559 ## the running order or otherwise move them around unless you know exactly
17560 ## what you are doing...
17561 # Dependencies to place before and after the object being linked:
17562 predep_objects_CXX=
17563 postdep_objects_CXX=
17564 predeps_CXX=
17565 postdeps_CXX=
17566 compiler_lib_search_path_CXX=
17568 cat > conftest.$ac_ext <<_LT_EOF
17569 class Foo
17571 public:
17572 Foo (void) { a = 0; }
17573 private:
17574 int a;
17576 _LT_EOF
17579 _lt_libdeps_save_CFLAGS=$CFLAGS
17580 case "$CC $CFLAGS " in #(
17581 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17582 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17583 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17584 esac
17586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17587 (eval $ac_compile) 2>&5
17588 ac_status=$?
17589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17590 test $ac_status = 0; }; then
17591 # Parse the compiler output and extract the necessary
17592 # objects, libraries and library flags.
17594 # Sentinel used to keep track of whether or not we are before
17595 # the conftest object file.
17596 pre_test_object_deps_done=no
17598 for p in `eval "$output_verbose_link_cmd"`; do
17599 case $prev$p in
17601 -L* | -R* | -l*)
17602 # Some compilers place space between "-{L,R}" and the path.
17603 # Remove the space.
17604 if test x-L = "$p" ||
17605 test x-R = "$p"; then
17606 prev=$p
17607 continue
17610 # Expand the sysroot to ease extracting the directories later.
17611 if test -z "$prev"; then
17612 case $p in
17613 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17614 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17615 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17616 esac
17618 case $p in
17619 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17620 esac
17621 if test no = "$pre_test_object_deps_done"; then
17622 case $prev in
17623 -L | -R)
17624 # Internal compiler library paths should come after those
17625 # provided the user. The postdeps already come after the
17626 # user supplied libs so there is no need to process them.
17627 if test -z "$compiler_lib_search_path_CXX"; then
17628 compiler_lib_search_path_CXX=$prev$p
17629 else
17630 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17633 # The "-l" case would never come before the object being
17634 # linked, so don't bother handling this case.
17635 esac
17636 else
17637 if test -z "$postdeps_CXX"; then
17638 postdeps_CXX=$prev$p
17639 else
17640 postdeps_CXX="${postdeps_CXX} $prev$p"
17643 prev=
17646 *.lto.$objext) ;; # Ignore GCC LTO objects
17647 *.$objext)
17648 # This assumes that the test object file only shows up
17649 # once in the compiler output.
17650 if test "$p" = "conftest.$objext"; then
17651 pre_test_object_deps_done=yes
17652 continue
17655 if test no = "$pre_test_object_deps_done"; then
17656 if test -z "$predep_objects_CXX"; then
17657 predep_objects_CXX=$p
17658 else
17659 predep_objects_CXX="$predep_objects_CXX $p"
17661 else
17662 if test -z "$postdep_objects_CXX"; then
17663 postdep_objects_CXX=$p
17664 else
17665 postdep_objects_CXX="$postdep_objects_CXX $p"
17670 *) ;; # Ignore the rest.
17672 esac
17673 done
17675 # Clean up.
17676 rm -f a.out a.exe
17677 else
17678 echo "libtool.m4: error: problem compiling CXX test program"
17681 $RM -f confest.$objext
17682 CFLAGS=$_lt_libdeps_save_CFLAGS
17684 # PORTME: override above test on systems where it is broken
17685 case $host_os in
17686 interix[3-9]*)
17687 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17688 # hack all around it, let's just trust "g++" to DTRT.
17689 predep_objects_CXX=
17690 postdep_objects_CXX=
17691 postdeps_CXX=
17693 esac
17696 case " $postdeps_CXX " in
17697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17698 esac
17699 compiler_lib_search_dirs_CXX=
17700 if test -n "${compiler_lib_search_path_CXX}"; then
17701 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17734 lt_prog_compiler_wl_CXX=
17735 lt_prog_compiler_pic_CXX=
17736 lt_prog_compiler_static_CXX=
17739 # C++ specific cases for pic, static, wl, etc.
17740 if test yes = "$GXX"; then
17741 lt_prog_compiler_wl_CXX='-Wl,'
17742 lt_prog_compiler_static_CXX='-static'
17744 case $host_os in
17745 aix*)
17746 # All AIX code is PIC.
17747 if test ia64 = "$host_cpu"; then
17748 # AIX 5 now supports IA64 processor
17749 lt_prog_compiler_static_CXX='-Bstatic'
17751 lt_prog_compiler_pic_CXX='-fPIC'
17754 amigaos*)
17755 case $host_cpu in
17756 powerpc)
17757 # see comment about AmigaOS4 .so support
17758 lt_prog_compiler_pic_CXX='-fPIC'
17760 m68k)
17761 # FIXME: we need at least 68020 code to build shared libraries, but
17762 # adding the '-m68020' flag to GCC prevents building anything better,
17763 # like '-m68040'.
17764 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17766 esac
17769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17770 # PIC is the default for these OSes.
17772 mingw* | cygwin* | os2* | pw32* | cegcc*)
17773 # This hack is so that the source file can tell whether it is being
17774 # built for inclusion in a dll (and should export symbols for example).
17775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17776 # (--disable-auto-import) libraries
17777 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17778 case $host_os in
17779 os2*)
17780 lt_prog_compiler_static_CXX='$wl-static'
17782 esac
17784 darwin* | rhapsody*)
17785 # PIC is the default on this platform
17786 # Common symbols not allowed in MH_DYLIB files
17787 lt_prog_compiler_pic_CXX='-fno-common'
17789 *djgpp*)
17790 # DJGPP does not support shared libraries at all
17791 lt_prog_compiler_pic_CXX=
17793 haiku*)
17794 # PIC is the default for Haiku.
17795 # The "-static" flag exists, but is broken.
17796 lt_prog_compiler_static_CXX=
17798 interix[3-9]*)
17799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17800 # Instead, we relocate shared libraries at runtime.
17802 sysv4*MP*)
17803 if test -d /usr/nec; then
17804 lt_prog_compiler_pic_CXX=-Kconform_pic
17807 hpux*)
17808 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17809 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17810 # sets the default TLS model and affects inlining.
17811 case $host_cpu in
17812 hppa*64*)
17815 lt_prog_compiler_pic_CXX='-fPIC'
17817 esac
17819 *qnx* | *nto*)
17820 # QNX uses GNU C++, but need to define -shared option too, otherwise
17821 # it will coredump.
17822 lt_prog_compiler_pic_CXX='-fPIC -shared'
17825 lt_prog_compiler_pic_CXX='-fPIC'
17827 esac
17828 else
17829 case $host_os in
17830 aix[4-9]*)
17831 # All AIX code is PIC.
17832 if test ia64 = "$host_cpu"; then
17833 # AIX 5 now supports IA64 processor
17834 lt_prog_compiler_static_CXX='-Bstatic'
17835 else
17836 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17839 chorus*)
17840 case $cc_basename in
17841 cxch68*)
17842 # Green Hills C++ Compiler
17843 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17845 esac
17847 mingw* | cygwin* | os2* | pw32* | cegcc*)
17848 # This hack is so that the source file can tell whether it is being
17849 # built for inclusion in a dll (and should export symbols for example).
17850 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17852 dgux*)
17853 case $cc_basename in
17854 ec++*)
17855 lt_prog_compiler_pic_CXX='-KPIC'
17857 ghcx*)
17858 # Green Hills C++ Compiler
17859 lt_prog_compiler_pic_CXX='-pic'
17863 esac
17865 freebsd* | dragonfly*)
17866 # FreeBSD uses GNU C++
17868 hpux9* | hpux10* | hpux11*)
17869 case $cc_basename in
17870 CC*)
17871 lt_prog_compiler_wl_CXX='-Wl,'
17872 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17873 if test ia64 != "$host_cpu"; then
17874 lt_prog_compiler_pic_CXX='+Z'
17877 aCC*)
17878 lt_prog_compiler_wl_CXX='-Wl,'
17879 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17880 case $host_cpu in
17881 hppa*64*|ia64*)
17882 # +Z the default
17885 lt_prog_compiler_pic_CXX='+Z'
17887 esac
17891 esac
17893 interix*)
17894 # This is c89, which is MS Visual C++ (no shared libs)
17895 # Anyone wants to do a port?
17897 irix5* | irix6* | nonstopux*)
17898 case $cc_basename in
17899 CC*)
17900 lt_prog_compiler_wl_CXX='-Wl,'
17901 lt_prog_compiler_static_CXX='-non_shared'
17902 # CC pic flag -KPIC is the default.
17906 esac
17908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17909 case $cc_basename in
17910 KCC*)
17911 # KAI C++ Compiler
17912 lt_prog_compiler_wl_CXX='--backend -Wl,'
17913 lt_prog_compiler_pic_CXX='-fPIC'
17915 ecpc* )
17916 # old Intel C++ for x86_64, which still supported -KPIC.
17917 lt_prog_compiler_wl_CXX='-Wl,'
17918 lt_prog_compiler_pic_CXX='-KPIC'
17919 lt_prog_compiler_static_CXX='-static'
17921 icpc* )
17922 # Intel C++, used to be incompatible with GCC.
17923 # ICC 10 doesn't accept -KPIC any more.
17924 lt_prog_compiler_wl_CXX='-Wl,'
17925 lt_prog_compiler_pic_CXX='-fPIC'
17926 lt_prog_compiler_static_CXX='-static'
17928 pgCC* | pgcpp*)
17929 # Portland Group C++ compiler
17930 lt_prog_compiler_wl_CXX='-Wl,'
17931 lt_prog_compiler_pic_CXX='-fpic'
17932 lt_prog_compiler_static_CXX='-Bstatic'
17934 cxx*)
17935 # Compaq C++
17936 # Make sure the PIC flag is empty. It appears that all Alpha
17937 # Linux and Compaq Tru64 Unix objects are PIC.
17938 lt_prog_compiler_pic_CXX=
17939 lt_prog_compiler_static_CXX='-non_shared'
17941 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17942 # IBM XL 8.0, 9.0 on PPC and BlueGene
17943 lt_prog_compiler_wl_CXX='-Wl,'
17944 lt_prog_compiler_pic_CXX='-qpic'
17945 lt_prog_compiler_static_CXX='-qstaticlink'
17948 case `$CC -V 2>&1 | sed 5q` in
17949 *Sun\ C*)
17950 # Sun C++ 5.9
17951 lt_prog_compiler_pic_CXX='-KPIC'
17952 lt_prog_compiler_static_CXX='-Bstatic'
17953 lt_prog_compiler_wl_CXX='-Qoption ld '
17955 esac
17957 esac
17959 lynxos*)
17961 m88k*)
17963 mvs*)
17964 case $cc_basename in
17965 cxx*)
17966 lt_prog_compiler_pic_CXX='-W c,exportall'
17970 esac
17972 netbsd*)
17974 *qnx* | *nto*)
17975 # QNX uses GNU C++, but need to define -shared option too, otherwise
17976 # it will coredump.
17977 lt_prog_compiler_pic_CXX='-fPIC -shared'
17979 osf3* | osf4* | osf5*)
17980 case $cc_basename in
17981 KCC*)
17982 lt_prog_compiler_wl_CXX='--backend -Wl,'
17984 RCC*)
17985 # Rational C++ 2.4.1
17986 lt_prog_compiler_pic_CXX='-pic'
17988 cxx*)
17989 # Digital/Compaq C++
17990 lt_prog_compiler_wl_CXX='-Wl,'
17991 # Make sure the PIC flag is empty. It appears that all Alpha
17992 # Linux and Compaq Tru64 Unix objects are PIC.
17993 lt_prog_compiler_pic_CXX=
17994 lt_prog_compiler_static_CXX='-non_shared'
17998 esac
18000 psos*)
18002 solaris*)
18003 case $cc_basename in
18004 CC* | sunCC*)
18005 # Sun C++ 4.2, 5.x and Centerline C++
18006 lt_prog_compiler_pic_CXX='-KPIC'
18007 lt_prog_compiler_static_CXX='-Bstatic'
18008 lt_prog_compiler_wl_CXX='-Qoption ld '
18010 gcx*)
18011 # Green Hills C++ Compiler
18012 lt_prog_compiler_pic_CXX='-PIC'
18016 esac
18018 sunos4*)
18019 case $cc_basename in
18020 CC*)
18021 # Sun C++ 4.x
18022 lt_prog_compiler_pic_CXX='-pic'
18023 lt_prog_compiler_static_CXX='-Bstatic'
18025 lcc*)
18026 # Lucid
18027 lt_prog_compiler_pic_CXX='-pic'
18031 esac
18033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18034 case $cc_basename in
18035 CC*)
18036 lt_prog_compiler_wl_CXX='-Wl,'
18037 lt_prog_compiler_pic_CXX='-KPIC'
18038 lt_prog_compiler_static_CXX='-Bstatic'
18040 esac
18042 tandem*)
18043 case $cc_basename in
18044 NCC*)
18045 # NonStop-UX NCC 3.20
18046 lt_prog_compiler_pic_CXX='-KPIC'
18050 esac
18052 vxworks*)
18055 lt_prog_compiler_can_build_shared_CXX=no
18057 esac
18060 case $host_os in
18061 # For platforms that do not support PIC, -DPIC is meaningless:
18062 *djgpp*)
18063 lt_prog_compiler_pic_CXX=
18066 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18068 esac
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18071 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18072 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18073 $as_echo_n "(cached) " >&6
18074 else
18075 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18078 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18079 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18082 # Check to make sure the PIC flag actually works.
18084 if test -n "$lt_prog_compiler_pic_CXX"; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18086 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18087 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18088 $as_echo_n "(cached) " >&6
18089 else
18090 lt_cv_prog_compiler_pic_works_CXX=no
18091 ac_outfile=conftest.$ac_objext
18092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18093 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18094 # Insert the option either (1) after the last *FLAGS variable, or
18095 # (2) before a word containing "conftest.", or (3) at the end.
18096 # Note that $ac_compile itself does not contain backslashes and begins
18097 # with a dollar sign (not a hyphen), so the echo should work correctly.
18098 # The option is referenced via a variable to avoid confusing sed.
18099 lt_compile=`echo "$ac_compile" | $SED \
18100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18102 -e 's:$: $lt_compiler_flag:'`
18103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18104 (eval "$lt_compile" 2>conftest.err)
18105 ac_status=$?
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 if (exit $ac_status) && test -s "$ac_outfile"; then
18109 # The compiler can only warn and ignore the option if not recognized
18110 # So say no if there are warnings other than the usual output.
18111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18114 lt_cv_prog_compiler_pic_works_CXX=yes
18117 $RM conftest*
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18121 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18123 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18124 case $lt_prog_compiler_pic_CXX in
18125 "" | " "*) ;;
18126 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18127 esac
18128 else
18129 lt_prog_compiler_pic_CXX=
18130 lt_prog_compiler_can_build_shared_CXX=no
18140 # Check to make sure the static flag actually works.
18142 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18144 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18145 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18146 $as_echo_n "(cached) " >&6
18147 else
18148 lt_cv_prog_compiler_static_works_CXX=no
18149 save_LDFLAGS=$LDFLAGS
18150 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18151 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18153 # The linker can only warn and ignore the option if not recognized
18154 # So say no if there are warnings
18155 if test -s conftest.err; then
18156 # Append any errors to the config.log.
18157 cat conftest.err 1>&5
18158 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18160 if diff conftest.exp conftest.er2 >/dev/null; then
18161 lt_cv_prog_compiler_static_works_CXX=yes
18163 else
18164 lt_cv_prog_compiler_static_works_CXX=yes
18167 $RM -r conftest*
18168 LDFLAGS=$save_LDFLAGS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18172 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18174 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18176 else
18177 lt_prog_compiler_static_CXX=
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18185 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 lt_cv_prog_compiler_c_o_CXX=no
18189 $RM -r conftest 2>/dev/null
18190 mkdir conftest
18191 cd conftest
18192 mkdir out
18193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18195 lt_compiler_flag="-o out/conftest2.$ac_objext"
18196 # Insert the option either (1) after the last *FLAGS variable, or
18197 # (2) before a word containing "conftest.", or (3) at the end.
18198 # Note that $ac_compile itself does not contain backslashes and begins
18199 # with a dollar sign (not a hyphen), so the echo should work correctly.
18200 lt_compile=`echo "$ac_compile" | $SED \
18201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18203 -e 's:$: $lt_compiler_flag:'`
18204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18205 (eval "$lt_compile" 2>out/conftest.err)
18206 ac_status=$?
18207 cat out/conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18210 then
18211 # The compiler can only warn and ignore the option if not recognized
18212 # So say no if there are warnings
18213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18216 lt_cv_prog_compiler_c_o_CXX=yes
18219 chmod u+w . 2>&5
18220 $RM conftest*
18221 # SGI C++ compiler will create directory out/ii_files/ for
18222 # template instantiation
18223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18224 $RM out/* && rmdir out
18225 cd ..
18226 $RM -r conftest
18227 $RM conftest*
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18231 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18237 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18238 $as_echo_n "(cached) " >&6
18239 else
18240 lt_cv_prog_compiler_c_o_CXX=no
18241 $RM -r conftest 2>/dev/null
18242 mkdir conftest
18243 cd conftest
18244 mkdir out
18245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18247 lt_compiler_flag="-o out/conftest2.$ac_objext"
18248 # Insert the option either (1) after the last *FLAGS variable, or
18249 # (2) before a word containing "conftest.", or (3) at the end.
18250 # Note that $ac_compile itself does not contain backslashes and begins
18251 # with a dollar sign (not a hyphen), so the echo should work correctly.
18252 lt_compile=`echo "$ac_compile" | $SED \
18253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18255 -e 's:$: $lt_compiler_flag:'`
18256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18257 (eval "$lt_compile" 2>out/conftest.err)
18258 ac_status=$?
18259 cat out/conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18262 then
18263 # The compiler can only warn and ignore the option if not recognized
18264 # So say no if there are warnings
18265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18268 lt_cv_prog_compiler_c_o_CXX=yes
18271 chmod u+w . 2>&5
18272 $RM conftest*
18273 # SGI C++ compiler will create directory out/ii_files/ for
18274 # template instantiation
18275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18276 $RM out/* && rmdir out
18277 cd ..
18278 $RM -r conftest
18279 $RM conftest*
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18283 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18288 hard_links=nottested
18289 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18290 # do not overwrite the value of need_locks provided by the user
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18292 $as_echo_n "checking if we can lock with hard links... " >&6; }
18293 hard_links=yes
18294 $RM conftest*
18295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18296 touch conftest.a
18297 ln conftest.a conftest.b 2>&5 || hard_links=no
18298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18300 $as_echo "$hard_links" >&6; }
18301 if test no = "$hard_links"; then
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18303 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18304 need_locks=warn
18306 else
18307 need_locks=no
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18313 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18315 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18316 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18317 case $host_os in
18318 aix[4-9]*)
18319 # If we're using GNU nm, then we don't want the "-C" option.
18320 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18321 # Without the "-l" option, or with the "-B" option, AIX nm treats
18322 # weak defined symbols like other global defined symbols, whereas
18323 # GNU nm marks them as "W".
18324 # While the 'weak' keyword is ignored in the Export File, we need
18325 # it in the Import File for the 'aix-soname' feature, so we have
18326 # to replace the "-B" option with "-P" for AIX nm.
18327 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18328 export_symbols_cmds_CXX='$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'
18329 else
18330 export_symbols_cmds_CXX='`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'
18333 pw32*)
18334 export_symbols_cmds_CXX=$ltdll_cmds
18336 cygwin* | mingw* | cegcc*)
18337 case $cc_basename in
18338 cl*)
18339 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18342 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18343 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18345 esac
18348 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18350 esac
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18353 $as_echo "$ld_shlibs_CXX" >&6; }
18354 test no = "$ld_shlibs_CXX" && can_build_shared=no
18356 with_gnu_ld_CXX=$with_gnu_ld
18364 # Do we need to explicitly link libc?
18366 case "x$archive_cmds_need_lc_CXX" in
18367 x|xyes)
18368 # Assume -lc should be added
18369 archive_cmds_need_lc_CXX=yes
18371 if test yes,yes = "$GCC,$enable_shared"; then
18372 case $archive_cmds_CXX in
18373 *'~'*)
18374 # FIXME: we may have to deal with multi-command sequences.
18376 '$CC '*)
18377 # Test whether the compiler implicitly links with -lc since on some
18378 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18379 # to ld, don't add -lc before -lgcc.
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18381 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18382 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 $RM conftest*
18386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18389 (eval $ac_compile) 2>&5
18390 ac_status=$?
18391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18392 test $ac_status = 0; } 2>conftest.err; then
18393 soname=conftest
18394 lib=conftest
18395 libobjs=conftest.$ac_objext
18396 deplibs=
18397 wl=$lt_prog_compiler_wl_CXX
18398 pic_flag=$lt_prog_compiler_pic_CXX
18399 compiler_flags=-v
18400 linker_flags=-v
18401 verstring=
18402 output_objdir=.
18403 libname=conftest
18404 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18405 allow_undefined_flag_CXX=
18406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18407 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18408 ac_status=$?
18409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18410 test $ac_status = 0; }
18411 then
18412 lt_cv_archive_cmds_need_lc_CXX=no
18413 else
18414 lt_cv_archive_cmds_need_lc_CXX=yes
18416 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18417 else
18418 cat conftest.err 1>&5
18420 $RM conftest*
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18424 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18425 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18427 esac
18430 esac
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18494 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18496 library_names_spec=
18497 libname_spec='lib$name'
18498 soname_spec=
18499 shrext_cmds=.so
18500 postinstall_cmds=
18501 postuninstall_cmds=
18502 finish_cmds=
18503 finish_eval=
18504 shlibpath_var=
18505 shlibpath_overrides_runpath=unknown
18506 version_type=none
18507 dynamic_linker="$host_os ld.so"
18508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18509 need_lib_prefix=unknown
18510 hardcode_into_libs=no
18512 # when you set need_version to no, make sure it does not cause -set_version
18513 # flags to be left without arguments
18514 need_version=unknown
18518 case $host_os in
18519 aix3*)
18520 version_type=linux # correct to gnu/linux during the next big refactor
18521 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18522 shlibpath_var=LIBPATH
18524 # AIX 3 has no versioning support, so we append a major version to the name.
18525 soname_spec='$libname$release$shared_ext$major'
18528 aix[4-9]*)
18529 version_type=linux # correct to gnu/linux during the next big refactor
18530 need_lib_prefix=no
18531 need_version=no
18532 hardcode_into_libs=yes
18533 if test ia64 = "$host_cpu"; then
18534 # AIX 5 supports IA64
18535 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 else
18538 # With GCC up to 2.95.x, collect2 would create an import file
18539 # for dependence libraries. The import file would start with
18540 # the line '#! .'. This would cause the generated library to
18541 # depend on '.', always an invalid library. This was fixed in
18542 # development snapshots of GCC prior to 3.0.
18543 case $host_os in
18544 aix4 | aix4.[01] | aix4.[01].*)
18545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18546 echo ' yes '
18547 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18549 else
18550 can_build_shared=no
18553 esac
18554 # Using Import Files as archive members, it is possible to support
18555 # filename-based versioning of shared library archives on AIX. While
18556 # this would work for both with and without runtime linking, it will
18557 # prevent static linking of such archives. So we do filename-based
18558 # shared library versioning with .so extension only, which is used
18559 # when both runtime linking and shared linking is enabled.
18560 # Unfortunately, runtime linking may impact performance, so we do
18561 # not want this to be the default eventually. Also, we use the
18562 # versioned .so libs for executables only if there is the -brtl
18563 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18564 # To allow for filename-based versioning support, we need to create
18565 # libNAME.so.V as an archive file, containing:
18566 # *) an Import File, referring to the versioned filename of the
18567 # archive as well as the shared archive member, telling the
18568 # bitwidth (32 or 64) of that shared object, and providing the
18569 # list of exported symbols of that shared object, eventually
18570 # decorated with the 'weak' keyword
18571 # *) the shared object with the F_LOADONLY flag set, to really avoid
18572 # it being seen by the linker.
18573 # At run time we better use the real file rather than another symlink,
18574 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18576 case $with_aix_soname,$aix_use_runtimelinking in
18577 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18578 # soname into executable. Probably we can add versioning support to
18579 # collect2, so additional links can be useful in future.
18580 aix,yes) # traditional libtool
18581 dynamic_linker='AIX unversionable lib.so'
18582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18583 # instead of lib<name>.a to let people know that these are not
18584 # typical AIX shared libraries.
18585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18587 aix,no) # traditional AIX only
18588 dynamic_linker='AIX lib.a(lib.so.V)'
18589 # We preserve .a as extension for shared libraries through AIX4.2
18590 # and later when we are not doing run time linking.
18591 library_names_spec='$libname$release.a $libname.a'
18592 soname_spec='$libname$release$shared_ext$major'
18594 svr4,*) # full svr4 only
18595 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18596 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18597 # We do not specify a path in Import Files, so LIBPATH fires.
18598 shlibpath_overrides_runpath=yes
18600 *,yes) # both, prefer svr4
18601 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18602 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18603 # unpreferred sharedlib libNAME.a needs extra handling
18604 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"'
18605 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"'
18606 # We do not specify a path in Import Files, so LIBPATH fires.
18607 shlibpath_overrides_runpath=yes
18609 *,no) # both, prefer aix
18610 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18611 library_names_spec='$libname$release.a $libname.a'
18612 soname_spec='$libname$release$shared_ext$major'
18613 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18614 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)'
18615 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"'
18617 esac
18618 shlibpath_var=LIBPATH
18622 amigaos*)
18623 case $host_cpu in
18624 powerpc)
18625 # Since July 2007 AmigaOS4 officially supports .so libraries.
18626 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18629 m68k)
18630 library_names_spec='$libname.ixlibrary $libname.a'
18631 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18632 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'
18634 esac
18637 beos*)
18638 library_names_spec='$libname$shared_ext'
18639 dynamic_linker="$host_os ld.so"
18640 shlibpath_var=LIBRARY_PATH
18643 bsdi[45]*)
18644 version_type=linux # correct to gnu/linux during the next big refactor
18645 need_version=no
18646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18647 soname_spec='$libname$release$shared_ext$major'
18648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18652 # the default ld.so.conf also contains /usr/contrib/lib and
18653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18654 # libtool to hard-code these into programs
18657 cygwin* | mingw* | pw32* | cegcc*)
18658 version_type=windows
18659 shrext_cmds=.dll
18660 need_version=no
18661 need_lib_prefix=no
18663 case $GCC,$cc_basename in
18664 yes,*)
18665 # gcc
18666 library_names_spec='$libname.dll.a'
18667 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18668 postinstall_cmds='base_file=`basename \$file`~
18669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18670 dldir=$destdir/`dirname \$dlpath`~
18671 test -d \$dldir || mkdir -p \$dldir~
18672 $install_prog $dir/$dlname \$dldir/$dlname~
18673 chmod a+x \$dldir/$dlname~
18674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18678 dlpath=$dir/\$dldll~
18679 $RM \$dlpath'
18680 shlibpath_overrides_runpath=yes
18682 case $host_os in
18683 cygwin*)
18684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18685 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18688 mingw* | cegcc*)
18689 # MinGW DLLs use traditional 'lib' prefix
18690 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18692 pw32*)
18693 # pw32 DLLs use 'pw' prefix rather than 'lib'
18694 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18696 esac
18697 dynamic_linker='Win32 ld.exe'
18700 *,cl*)
18701 # Native MSVC
18702 libname_spec='$name'
18703 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18704 library_names_spec='$libname.dll.lib'
18706 case $build_os in
18707 mingw*)
18708 sys_lib_search_path_spec=
18709 lt_save_ifs=$IFS
18710 IFS=';'
18711 for lt_path in $LIB
18713 IFS=$lt_save_ifs
18714 # Let DOS variable expansion print the short 8.3 style file name.
18715 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18716 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18717 done
18718 IFS=$lt_save_ifs
18719 # Convert to MSYS style.
18720 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18722 cygwin*)
18723 # Convert to unix form, then to dos form, then back to unix form
18724 # but this time dos style (no spaces!) so that the unix form looks
18725 # like /cygdrive/c/PROGRA~1:/cygdr...
18726 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18727 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18728 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18731 sys_lib_search_path_spec=$LIB
18732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18733 # It is most probably a Windows format PATH.
18734 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18735 else
18736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18738 # FIXME: find the short name or the path components, as spaces are
18739 # common. (e.g. "Program Files" -> "PROGRA~1")
18741 esac
18743 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18744 postinstall_cmds='base_file=`basename \$file`~
18745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18746 dldir=$destdir/`dirname \$dlpath`~
18747 test -d \$dldir || mkdir -p \$dldir~
18748 $install_prog $dir/$dlname \$dldir/$dlname'
18749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18750 dlpath=$dir/\$dldll~
18751 $RM \$dlpath'
18752 shlibpath_overrides_runpath=yes
18753 dynamic_linker='Win32 link.exe'
18757 # Assume MSVC wrapper
18758 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18759 dynamic_linker='Win32 ld.exe'
18761 esac
18762 # FIXME: first we should search . and the directory the executable is in
18763 shlibpath_var=PATH
18766 darwin* | rhapsody*)
18767 dynamic_linker="$host_os dyld"
18768 version_type=darwin
18769 need_lib_prefix=no
18770 need_version=no
18771 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18772 soname_spec='$libname$release$major$shared_ext'
18773 shlibpath_overrides_runpath=yes
18774 shlibpath_var=DYLD_LIBRARY_PATH
18775 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18780 dgux*)
18781 version_type=linux # correct to gnu/linux during the next big refactor
18782 need_lib_prefix=no
18783 need_version=no
18784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18785 soname_spec='$libname$release$shared_ext$major'
18786 shlibpath_var=LD_LIBRARY_PATH
18789 freebsd* | dragonfly*)
18790 # DragonFly does not have aout. When/if they implement a new
18791 # versioning mechanism, adjust this.
18792 if test -x /usr/bin/objformat; then
18793 objformat=`/usr/bin/objformat`
18794 else
18795 case $host_os in
18796 freebsd[23].*) objformat=aout ;;
18797 *) objformat=elf ;;
18798 esac
18800 version_type=freebsd-$objformat
18801 case $version_type in
18802 freebsd-elf*)
18803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18804 soname_spec='$libname$release$shared_ext$major'
18805 need_version=no
18806 need_lib_prefix=no
18808 freebsd-*)
18809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18810 need_version=yes
18812 esac
18813 shlibpath_var=LD_LIBRARY_PATH
18814 case $host_os in
18815 freebsd2.*)
18816 shlibpath_overrides_runpath=yes
18818 freebsd3.[01]* | freebsdelf3.[01]*)
18819 shlibpath_overrides_runpath=yes
18820 hardcode_into_libs=yes
18822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18824 shlibpath_overrides_runpath=no
18825 hardcode_into_libs=yes
18827 *) # from 4.6 on, and DragonFly
18828 shlibpath_overrides_runpath=yes
18829 hardcode_into_libs=yes
18831 esac
18834 haiku*)
18835 version_type=linux # correct to gnu/linux during the next big refactor
18836 need_lib_prefix=no
18837 need_version=no
18838 dynamic_linker="$host_os runtime_loader"
18839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18840 soname_spec='$libname$release$shared_ext$major'
18841 shlibpath_var=LIBRARY_PATH
18842 shlibpath_overrides_runpath=no
18843 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18844 hardcode_into_libs=yes
18847 hpux9* | hpux10* | hpux11*)
18848 # Give a soname corresponding to the major version so that dld.sl refuses to
18849 # link against other versions.
18850 version_type=sunos
18851 need_lib_prefix=no
18852 need_version=no
18853 case $host_cpu in
18854 ia64*)
18855 shrext_cmds='.so'
18856 hardcode_into_libs=yes
18857 dynamic_linker="$host_os dld.so"
18858 shlibpath_var=LD_LIBRARY_PATH
18859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18861 soname_spec='$libname$release$shared_ext$major'
18862 if test 32 = "$HPUX_IA64_MODE"; then
18863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18864 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18865 else
18866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18867 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18870 hppa*64*)
18871 shrext_cmds='.sl'
18872 hardcode_into_libs=yes
18873 dynamic_linker="$host_os dld.sl"
18874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18877 soname_spec='$libname$release$shared_ext$major'
18878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18882 shrext_cmds='.sl'
18883 dynamic_linker="$host_os dld.sl"
18884 shlibpath_var=SHLIB_PATH
18885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18887 soname_spec='$libname$release$shared_ext$major'
18889 esac
18890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18891 postinstall_cmds='chmod 555 $lib'
18892 # or fails outright, so override atomically:
18893 install_override_mode=555
18896 interix[3-9]*)
18897 version_type=linux # correct to gnu/linux during the next big refactor
18898 need_lib_prefix=no
18899 need_version=no
18900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18901 soname_spec='$libname$release$shared_ext$major'
18902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18903 shlibpath_var=LD_LIBRARY_PATH
18904 shlibpath_overrides_runpath=no
18905 hardcode_into_libs=yes
18908 irix5* | irix6* | nonstopux*)
18909 case $host_os in
18910 nonstopux*) version_type=nonstopux ;;
18912 if test yes = "$lt_cv_prog_gnu_ld"; then
18913 version_type=linux # correct to gnu/linux during the next big refactor
18914 else
18915 version_type=irix
18916 fi ;;
18917 esac
18918 need_lib_prefix=no
18919 need_version=no
18920 soname_spec='$libname$release$shared_ext$major'
18921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18922 case $host_os in
18923 irix5* | nonstopux*)
18924 libsuff= shlibsuff=
18927 case $LD in # libtool.m4 will add one of these switches to LD
18928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18929 libsuff= shlibsuff= libmagic=32-bit;;
18930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18931 libsuff=32 shlibsuff=N32 libmagic=N32;;
18932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18934 *) libsuff= shlibsuff= libmagic=never-match;;
18935 esac
18937 esac
18938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18939 shlibpath_overrides_runpath=no
18940 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18941 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18942 hardcode_into_libs=yes
18945 # No shared lib support for Linux oldld, aout, or coff.
18946 linux*oldld* | linux*aout* | linux*coff*)
18947 dynamic_linker=no
18950 linux*android*)
18951 version_type=none # Android doesn't support versioned libraries.
18952 need_lib_prefix=no
18953 need_version=no
18954 library_names_spec='$libname$release$shared_ext'
18955 soname_spec='$libname$release$shared_ext'
18956 finish_cmds=
18957 shlibpath_var=LD_LIBRARY_PATH
18958 shlibpath_overrides_runpath=yes
18960 # This implies no fast_install, which is unacceptable.
18961 # Some rework will be needed to allow for fast_install
18962 # before this can be enabled.
18963 hardcode_into_libs=yes
18965 dynamic_linker='Android linker'
18966 # Don't embed -rpath directories since the linker doesn't support them.
18967 hardcode_libdir_flag_spec_CXX='-L$libdir'
18970 # This must be glibc/ELF.
18971 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18972 version_type=linux # correct to gnu/linux during the next big refactor
18973 need_lib_prefix=no
18974 need_version=no
18975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18976 soname_spec='$libname$release$shared_ext$major'
18977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 shlibpath_overrides_runpath=no
18981 # Some binutils ld are patched to set DT_RUNPATH
18982 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18983 $as_echo_n "(cached) " >&6
18984 else
18985 lt_cv_shlibpath_overrides_runpath=no
18986 save_LDFLAGS=$LDFLAGS
18987 save_libdir=$libdir
18988 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18989 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18994 main ()
18998 return 0;
19000 _ACEOF
19001 if ac_fn_cxx_try_link "$LINENO"; then :
19002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19003 lt_cv_shlibpath_overrides_runpath=yes
19006 rm -f core conftest.err conftest.$ac_objext \
19007 conftest$ac_exeext conftest.$ac_ext
19008 LDFLAGS=$save_LDFLAGS
19009 libdir=$save_libdir
19013 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19015 # This implies no fast_install, which is unacceptable.
19016 # Some rework will be needed to allow for fast_install
19017 # before this can be enabled.
19018 hardcode_into_libs=yes
19020 # Ideally, we could use ldconfig to report *all* directores which are
19021 # searched for libraries, however this is still not possible. Aside from not
19022 # being certain /sbin/ldconfig is available, command
19023 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19024 # even though it is searched at run-time. Try to do the best guess by
19025 # appending ld.so.conf contents (and includes) to the search path.
19026 if test -f /etc/ld.so.conf; then
19027 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' ' '`
19028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19031 # We used to test for /lib/ld.so.1 and disable shared libraries on
19032 # powerpc, because MkLinux only supported shared libraries with the
19033 # GNU dynamic linker. Since this was broken with cross compilers,
19034 # most powerpc-linux boxes support dynamic linking these days and
19035 # people can always --disable-shared, the test was removed, and we
19036 # assume the GNU/Linux dynamic linker is in use.
19037 dynamic_linker='GNU/Linux ld.so'
19040 netbsd*)
19041 version_type=sunos
19042 need_lib_prefix=no
19043 need_version=no
19044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19047 dynamic_linker='NetBSD (a.out) ld.so'
19048 else
19049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19050 soname_spec='$libname$release$shared_ext$major'
19051 dynamic_linker='NetBSD ld.elf_so'
19053 shlibpath_var=LD_LIBRARY_PATH
19054 shlibpath_overrides_runpath=yes
19055 hardcode_into_libs=yes
19058 newsos6)
19059 version_type=linux # correct to gnu/linux during the next big refactor
19060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19061 shlibpath_var=LD_LIBRARY_PATH
19062 shlibpath_overrides_runpath=yes
19065 *nto* | *qnx*)
19066 version_type=qnx
19067 need_lib_prefix=no
19068 need_version=no
19069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19070 soname_spec='$libname$release$shared_ext$major'
19071 shlibpath_var=LD_LIBRARY_PATH
19072 shlibpath_overrides_runpath=no
19073 hardcode_into_libs=yes
19074 dynamic_linker='ldqnx.so'
19077 openbsd* | bitrig*)
19078 version_type=sunos
19079 sys_lib_dlsearch_path_spec=/usr/lib
19080 need_lib_prefix=no
19081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19082 need_version=no
19083 else
19084 need_version=yes
19086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19088 shlibpath_var=LD_LIBRARY_PATH
19089 shlibpath_overrides_runpath=yes
19092 os2*)
19093 libname_spec='$name'
19094 version_type=windows
19095 shrext_cmds=.dll
19096 need_version=no
19097 need_lib_prefix=no
19098 # OS/2 can only load a DLL with a base name of 8 characters or less.
19099 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19100 v=$($ECHO $release$versuffix | tr -d .-);
19101 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19102 $ECHO $n$v`$shared_ext'
19103 library_names_spec='${libname}_dll.$libext'
19104 dynamic_linker='OS/2 ld.exe'
19105 shlibpath_var=BEGINLIBPATH
19106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19108 postinstall_cmds='base_file=`basename \$file`~
19109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19110 dldir=$destdir/`dirname \$dlpath`~
19111 test -d \$dldir || mkdir -p \$dldir~
19112 $install_prog $dir/$dlname \$dldir/$dlname~
19113 chmod a+x \$dldir/$dlname~
19114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19118 dlpath=$dir/\$dldll~
19119 $RM \$dlpath'
19122 osf3* | osf4* | osf5*)
19123 version_type=osf
19124 need_lib_prefix=no
19125 need_version=no
19126 soname_spec='$libname$release$shared_ext$major'
19127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19128 shlibpath_var=LD_LIBRARY_PATH
19129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19133 rdos*)
19134 dynamic_linker=no
19137 solaris*)
19138 version_type=linux # correct to gnu/linux during the next big refactor
19139 need_lib_prefix=no
19140 need_version=no
19141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19142 soname_spec='$libname$release$shared_ext$major'
19143 shlibpath_var=LD_LIBRARY_PATH
19144 shlibpath_overrides_runpath=yes
19145 hardcode_into_libs=yes
19146 # ldd complains unless libraries are executable
19147 postinstall_cmds='chmod +x $lib'
19150 sunos4*)
19151 version_type=sunos
19152 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19154 shlibpath_var=LD_LIBRARY_PATH
19155 shlibpath_overrides_runpath=yes
19156 if test yes = "$with_gnu_ld"; then
19157 need_lib_prefix=no
19159 need_version=yes
19162 sysv4 | sysv4.3*)
19163 version_type=linux # correct to gnu/linux during the next big refactor
19164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19165 soname_spec='$libname$release$shared_ext$major'
19166 shlibpath_var=LD_LIBRARY_PATH
19167 case $host_vendor in
19168 sni)
19169 shlibpath_overrides_runpath=no
19170 need_lib_prefix=no
19171 runpath_var=LD_RUN_PATH
19173 siemens)
19174 need_lib_prefix=no
19176 motorola)
19177 need_lib_prefix=no
19178 need_version=no
19179 shlibpath_overrides_runpath=no
19180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19182 esac
19185 sysv4*MP*)
19186 if test -d /usr/nec; then
19187 version_type=linux # correct to gnu/linux during the next big refactor
19188 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19189 soname_spec='$libname$shared_ext.$major'
19190 shlibpath_var=LD_LIBRARY_PATH
19194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19195 version_type=sco
19196 need_lib_prefix=no
19197 need_version=no
19198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19199 soname_spec='$libname$release$shared_ext$major'
19200 shlibpath_var=LD_LIBRARY_PATH
19201 shlibpath_overrides_runpath=yes
19202 hardcode_into_libs=yes
19203 if test yes = "$with_gnu_ld"; then
19204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19205 else
19206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19207 case $host_os in
19208 sco3.2v5*)
19209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19211 esac
19213 sys_lib_dlsearch_path_spec='/usr/lib'
19216 tpf*)
19217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19218 version_type=linux # correct to gnu/linux during the next big refactor
19219 need_lib_prefix=no
19220 need_version=no
19221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=no
19224 hardcode_into_libs=yes
19227 uts4*)
19228 version_type=linux # correct to gnu/linux during the next big refactor
19229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19230 soname_spec='$libname$release$shared_ext$major'
19231 shlibpath_var=LD_LIBRARY_PATH
19235 dynamic_linker=no
19237 esac
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19239 $as_echo "$dynamic_linker" >&6; }
19240 test no = "$dynamic_linker" && can_build_shared=no
19242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19243 if test yes = "$GCC"; then
19244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19247 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19248 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19251 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19252 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19255 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19256 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19258 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19259 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19261 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19262 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19304 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19305 hardcode_action_CXX=
19306 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19307 test -n "$runpath_var_CXX" ||
19308 test yes = "$hardcode_automatic_CXX"; then
19310 # We can hardcode non-existent directories.
19311 if test no != "$hardcode_direct_CXX" &&
19312 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19313 # have to relink, otherwise we might link with an installed library
19314 # when we should be linking with a yet-to-be-installed one
19315 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19316 test no != "$hardcode_minus_L_CXX"; then
19317 # Linking always hardcodes the temporary library directory.
19318 hardcode_action_CXX=relink
19319 else
19320 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19321 hardcode_action_CXX=immediate
19323 else
19324 # We cannot hardcode anything, or else we can only hardcode existing
19325 # directories.
19326 hardcode_action_CXX=unsupported
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19329 $as_echo "$hardcode_action_CXX" >&6; }
19331 if test relink = "$hardcode_action_CXX" ||
19332 test yes = "$inherit_rpath_CXX"; then
19333 # Fast installation is not supported
19334 enable_fast_install=no
19335 elif test yes = "$shlibpath_overrides_runpath" ||
19336 test no = "$enable_shared"; then
19337 # Fast installation is not necessary
19338 enable_fast_install=needless
19347 fi # test -n "$compiler"
19349 CC=$lt_save_CC
19350 CFLAGS=$lt_save_CFLAGS
19351 LDCXX=$LD
19352 LD=$lt_save_LD
19353 GCC=$lt_save_GCC
19354 with_gnu_ld=$lt_save_with_gnu_ld
19355 lt_cv_path_LDCXX=$lt_cv_path_LD
19356 lt_cv_path_LD=$lt_save_path_LD
19357 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19358 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19359 fi # test yes != "$_lt_caught_CXX_error"
19361 ac_ext=c
19362 ac_cpp='$CPP $CPPFLAGS'
19363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19370 $as_echo_n "checking whether ln -s works... " >&6; }
19371 LN_S=$as_ln_s
19372 if test "$LN_S" = "ln -s"; then
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19374 $as_echo "yes" >&6; }
19375 else
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19377 $as_echo "no, using $LN_S" >&6; }
19381 # Check whether --with-ln-s was given.
19382 if test "${with_ln_s+set}" = set; then :
19383 withval=$with_ln_s;
19385 if test "x$LN_S" != "xln -s" && test "x$kpse_cv_have_win32" = xno && test "x$with_ln_s" != xno; then
19386 as_fn_error $? "You could use \`--without-ln-s' to build without working \`ln -s'" "$LINENO" 5
19389 if test "x$enable_native_texlive_build" = xyes; then
19390 if test "x$datarootdir" = 'x${prefix}/share'; then
19391 datarootdir='${prefix}'
19392 ac_configure_args="$ac_configure_args '--datarootdir=$datarootdir'"
19394 if test "x$mandir" = 'x${datarootdir}/man'; then
19395 mandir='${prefix}/texmf-dist/doc/man'
19396 ac_configure_args="$ac_configure_args '--mandir=$mandir'"
19398 if test "x$infodir" = 'x${datarootdir}/info'; then
19399 infodir='${prefix}/texmf-dist/doc/info'
19400 ac_configure_args="$ac_configure_args '--infodir=$infodir'"
19404 if test "x$enable_web2c" = xyes && test "x$with_system_kpathsea" = xyes; then
19405 if test "x$with_kpathsea_includes" = x; then
19406 list="/usr/include /usr/local/include"
19407 else
19408 list=$with_kpathsea_includes
19410 found=no
19411 for ac_dir in $list; do
19412 if test -r "$ac_dir/kpathsea/paths.h"; then
19413 found=yes
19414 break
19416 done
19417 if test "x$found" = xno; then
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: You requested to build \`web2c' using an installed \`kpathsea' version," >&5
19419 $as_echo "$as_me: You requested to build \`web2c' using an installed \`kpathsea' version," >&6;}
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: which requires to locate the <kpathsea/paths.h> header file." >&5
19421 $as_echo "$as_me: which requires to locate the <kpathsea/paths.h> header file." >&6;}
19422 as_fn_error $? "Sorry, not found under any of: $list *****" "$LINENO" 5
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX specific libraries to build" >&5
19429 $as_echo_n "checking for TeX specific libraries to build... " >&6; }
19430 MAKE_SUBDIRS=
19431 CONF_SUBDIRS=
19432 if test -x $srcdir/texk/kpathsea/configure; then
19433 test "x$with_system_kpathsea" != xyes && test "x$need_kpathsea" = xyes && MAKE_SUBDIRS="texk/kpathsea $MAKE_SUBDIRS"
19434 CONF_SUBDIRS="texk/kpathsea $CONF_SUBDIRS"
19435 if false; then
19436 subdirs="$subdirs texk/kpathsea"
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_SUBDIRS" >&5
19442 $as_echo "$MAKE_SUBDIRS" >&6; }
19444 kpse_save_CPPFLAGS=$CPPFLAGS
19445 kpse_save_LIBS=$LIBS
19447 syslib_status=yes
19448 syslib_used=no
19449 if test -n "$ac_tool_prefix"; then
19450 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19453 $as_echo_n "checking for $ac_word... " >&6; }
19454 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
19455 $as_echo_n "(cached) " >&6
19456 else
19457 if test -n "$PKG_CONFIG"; then
19458 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
19459 else
19460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461 for as_dir in $PATH
19463 IFS=$as_save_IFS
19464 test -z "$as_dir" && as_dir=.
19465 for ac_exec_ext in '' $ac_executable_extensions; do
19466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19467 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
19468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19469 break 2
19471 done
19472 done
19473 IFS=$as_save_IFS
19477 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
19478 if test -n "$PKG_CONFIG"; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19480 $as_echo "$PKG_CONFIG" >&6; }
19481 else
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483 $as_echo "no" >&6; }
19488 if test -z "$ac_cv_prog_PKG_CONFIG"; then
19489 ac_ct_PKG_CONFIG=$PKG_CONFIG
19490 # Extract the first word of "pkg-config", so it can be a program name with args.
19491 set dummy pkg-config; ac_word=$2
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19493 $as_echo_n "checking for $ac_word... " >&6; }
19494 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
19495 $as_echo_n "(cached) " >&6
19496 else
19497 if test -n "$ac_ct_PKG_CONFIG"; then
19498 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
19499 else
19500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501 for as_dir in $PATH
19503 IFS=$as_save_IFS
19504 test -z "$as_dir" && as_dir=.
19505 for ac_exec_ext in '' $ac_executable_extensions; do
19506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19507 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
19508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19509 break 2
19511 done
19512 done
19513 IFS=$as_save_IFS
19517 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
19518 if test -n "$ac_ct_PKG_CONFIG"; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
19520 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
19521 else
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523 $as_echo "no" >&6; }
19526 if test "x$ac_ct_PKG_CONFIG" = x; then
19527 PKG_CONFIG="false"
19528 else
19529 case $cross_compiling:$ac_tool_warned in
19530 yes:)
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19533 ac_tool_warned=yes ;;
19534 esac
19535 PKG_CONFIG=$ac_ct_PKG_CONFIG
19537 else
19538 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
19541 if $PKG_CONFIG kpathsea; then
19542 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
19543 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
19544 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
19545 as_fn_error $? "did not find kpathsea" "$LINENO" 5
19548 if $PKG_CONFIG ptexenc; then
19549 PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags`
19550 PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs`
19551 elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then
19552 as_fn_error $? "did not find ptexenc" "$LINENO" 5
19555 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
19556 ZLIB_INCLUDES="-I$with_zlib_includes"
19558 ZLIB_LIBS="-lz"
19559 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
19560 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
19563 if test "x$with_libpaper_includes" != x && test "x$with_libpaper_includes" != xyes; then
19564 LIBPAPER_INCLUDES="-I$with_libpaper_includes"
19566 LIBPAPER_LIBS="-lpaper"
19567 if test "x$with_libpaper_libdir" != x && test "x$with_libpaper_libdir" != xyes; then
19568 LIBPAPER_LIBS="-L$with_libpaper_libdir $LIBPAPER_LIBS"
19571 if $PKG_CONFIG libpng; then
19572 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
19573 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
19574 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
19575 as_fn_error $? "did not find libpng" "$LINENO" 5
19578 if test -n "$ac_tool_prefix"; then
19579 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
19580 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19582 $as_echo_n "checking for $ac_word... " >&6; }
19583 if ${ac_cv_prog_FT2_CONFIG+:} false; then :
19584 $as_echo_n "(cached) " >&6
19585 else
19586 if test -n "$FT2_CONFIG"; then
19587 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
19588 else
19589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19590 for as_dir in $PATH
19592 IFS=$as_save_IFS
19593 test -z "$as_dir" && as_dir=.
19594 for ac_exec_ext in '' $ac_executable_extensions; do
19595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19596 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
19597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19598 break 2
19600 done
19601 done
19602 IFS=$as_save_IFS
19606 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
19607 if test -n "$FT2_CONFIG"; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
19609 $as_echo "$FT2_CONFIG" >&6; }
19610 else
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19612 $as_echo "no" >&6; }
19617 if test -z "$ac_cv_prog_FT2_CONFIG"; then
19618 ac_ct_FT2_CONFIG=$FT2_CONFIG
19619 # Extract the first word of "freetype-config", so it can be a program name with args.
19620 set dummy freetype-config; ac_word=$2
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19622 $as_echo_n "checking for $ac_word... " >&6; }
19623 if ${ac_cv_prog_ac_ct_FT2_CONFIG+:} false; then :
19624 $as_echo_n "(cached) " >&6
19625 else
19626 if test -n "$ac_ct_FT2_CONFIG"; then
19627 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
19628 else
19629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19630 for as_dir in $PATH
19632 IFS=$as_save_IFS
19633 test -z "$as_dir" && as_dir=.
19634 for ac_exec_ext in '' $ac_executable_extensions; do
19635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19636 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
19637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19638 break 2
19640 done
19641 done
19642 IFS=$as_save_IFS
19646 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
19647 if test -n "$ac_ct_FT2_CONFIG"; then
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
19649 $as_echo "$ac_ct_FT2_CONFIG" >&6; }
19650 else
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19652 $as_echo "no" >&6; }
19655 if test "x$ac_ct_FT2_CONFIG" = x; then
19656 FT2_CONFIG="false"
19657 else
19658 case $cross_compiling:$ac_tool_warned in
19659 yes:)
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19662 ac_tool_warned=yes ;;
19663 esac
19664 FT2_CONFIG=$ac_ct_FT2_CONFIG
19666 else
19667 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
19669 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
19670 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
19671 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
19672 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
19673 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
19676 if test "x$with_gd_includes" != x && test "x$with_gd_includes" != xyes; then
19677 GD_INCLUDES="-I$with_gd_includes"
19679 GD_LIBS="-lgd"
19680 if test "x$with_gd_libdir" != x && test "x$with_gd_libdir" != xyes; then
19681 GD_LIBS="-L$with_gd_libdir $GD_LIBS"
19684 if test "x$with_potrace_includes" != x && test "x$with_potrace_includes" != xyes; then
19685 POTRACE_INCLUDES="-I$with_potrace_includes"
19687 POTRACE_LIBS="-lpotrace"
19688 if test "x$with_potrace_libdir" != x && test "x$with_potrace_libdir" != xyes; then
19689 POTRACE_LIBS="-L$with_potrace_libdir $POTRACE_LIBS"
19692 if $PKG_CONFIG pixman-1 --atleast-version=0.18; then
19693 PIXMAN_INCLUDES=`$PKG_CONFIG pixman-1 --cflags`
19694 PIXMAN_LIBS=`$PKG_CONFIG pixman-1 --libs`
19695 elif test "x$need_pixman:$with_system_pixman" = xyes:yes; then
19696 as_fn_error $? "did not find pixman-1 0.18 or better" "$LINENO" 5
19699 if $PKG_CONFIG cairo --atleast-version=1.12; then
19700 CAIRO_INCLUDES=`$PKG_CONFIG cairo --cflags`
19701 CAIRO_LIBS=`$PKG_CONFIG cairo --libs`
19702 elif test "x$need_cairo:$with_system_cairo" = xyes:yes; then
19703 as_fn_error $? "did not find cairo 1.12 or better" "$LINENO" 5
19706 if test "x$with_gmp_includes" != x && test "x$with_gmp_includes" != xyes; then
19707 GMP_INCLUDES="-I$with_gmp_includes"
19709 GMP_LIBS="-lgmp"
19710 if test "x$with_gmp_libdir" != x && test "x$with_gmp_libdir" != xyes; then
19711 GMP_LIBS="-L$with_gmp_libdir $GMP_LIBS"
19714 if test "x$with_mpfr_includes" != x && test "x$with_mpfr_includes" != xyes; then
19715 MPFR_INCLUDES="-I$with_mpfr_includes"
19717 MPFR_LIBS="-lmpfr"
19718 if test "x$with_mpfr_libdir" != x && test "x$with_mpfr_libdir" != xyes; then
19719 MPFR_LIBS="-L$with_mpfr_libdir $MPFR_LIBS"
19722 if $PKG_CONFIG poppler --atleast-version=0.30; then
19723 POPPLER_INCLUDES=`$PKG_CONFIG poppler --cflags`
19724 POPPLER_LIBS=`$PKG_CONFIG poppler --libs`
19725 elif test "x$need_poppler:$with_system_poppler" = xyes:yes; then
19726 as_fn_error $? "did not find poppler 0.30 or better" "$LINENO" 5
19729 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
19730 POPPLER_INCLUDES="$POPPLER_VERSION $POPPLER_INCLUDES"
19732 if $PKG_CONFIG poppler --atleast-version=0.12; then
19733 XPDF_INCLUDES=`$PKG_CONFIG poppler --cflags`
19734 XPDF_LIBS=`$PKG_CONFIG poppler --libs`
19735 elif test "x$need_xpdf:$with_system_xpdf" = xyes:yes; then
19736 as_fn_error $? "did not find poppler 0.12 or better" "$LINENO" 5
19739 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
19740 XPDF_INCLUDES="$POPPLER_VERSION $XPDF_INCLUDES"
19742 if $PKG_CONFIG zziplib --atleast-version=0.12; then
19743 ZZIPLIB_INCLUDES=`$PKG_CONFIG zziplib --cflags`
19744 ZZIPLIB_LIBS=`$PKG_CONFIG zziplib --libs`
19745 elif test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then
19746 as_fn_error $? "did not find zziplib 0.12 or better" "$LINENO" 5
19749 if $PKG_CONFIG graphite2; then
19750 GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags`
19751 GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs`
19752 elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then
19753 as_fn_error $? "did not find graphite2" "$LINENO" 5
19756 if $PKG_CONFIG teckit; then
19757 TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags`
19758 TECKIT_LIBS=`$PKG_CONFIG teckit --libs`
19759 elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then
19760 as_fn_error $? "did not find teckit" "$LINENO" 5
19763 if test -n "$ac_tool_prefix"; then
19764 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
19765 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19767 $as_echo_n "checking for $ac_word... " >&6; }
19768 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
19769 $as_echo_n "(cached) " >&6
19770 else
19771 if test -n "$ICU_CONFIG"; then
19772 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
19773 else
19774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775 for as_dir in $PATH
19777 IFS=$as_save_IFS
19778 test -z "$as_dir" && as_dir=.
19779 for ac_exec_ext in '' $ac_executable_extensions; do
19780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19781 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
19782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19783 break 2
19785 done
19786 done
19787 IFS=$as_save_IFS
19791 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
19792 if test -n "$ICU_CONFIG"; then
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
19794 $as_echo "$ICU_CONFIG" >&6; }
19795 else
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19802 if test -z "$ac_cv_prog_ICU_CONFIG"; then
19803 ac_ct_ICU_CONFIG=$ICU_CONFIG
19804 # Extract the first word of "icu-config", so it can be a program name with args.
19805 set dummy icu-config; ac_word=$2
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19807 $as_echo_n "checking for $ac_word... " >&6; }
19808 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 if test -n "$ac_ct_ICU_CONFIG"; then
19812 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
19813 else
19814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19815 for as_dir in $PATH
19817 IFS=$as_save_IFS
19818 test -z "$as_dir" && as_dir=.
19819 for ac_exec_ext in '' $ac_executable_extensions; do
19820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19821 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
19822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19823 break 2
19825 done
19826 done
19827 IFS=$as_save_IFS
19831 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
19832 if test -n "$ac_ct_ICU_CONFIG"; then
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
19834 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
19835 else
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19837 $as_echo "no" >&6; }
19840 if test "x$ac_ct_ICU_CONFIG" = x; then
19841 ICU_CONFIG="false"
19842 else
19843 case $cross_compiling:$ac_tool_warned in
19844 yes:)
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19847 ac_tool_warned=yes ;;
19848 esac
19849 ICU_CONFIG=$ac_ct_ICU_CONFIG
19851 else
19852 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
19854 if $ICU_CONFIG --version >/dev/null 2>&1; then
19855 ICU_INCLUDES=`$ICU_CONFIG --cppflags`
19856 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly --ldflags-system`
19857 elif test "x$need_icu:$with_system_icu" = xyes:yes; then
19858 as_fn_error $? "did not find icu-config required for system icu libraries" "$LINENO" 5
19861 if $PKG_CONFIG harfbuzz-icu; then
19862 HARFBUZZ_INCLUDES=`$PKG_CONFIG harfbuzz-icu --cflags`
19863 HARFBUZZ_LIBS=`$PKG_CONFIG harfbuzz-icu --libs`
19864 elif test "x$need_harfbuzz:$with_system_harfbuzz" = xyes:yes; then
19865 as_fn_error $? "did not find harfbuzz-icu" "$LINENO" 5
19873 ## texk/kpathsea/ac/kpathsea.ac: configure.ac fragment for the TeX Live subdirectory texk/kpathsea/
19874 ## basic check of system kpathsea
19875 if test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`kpathsea' library" >&5
19877 $as_echo_n "checking requested system \`kpathsea' library... " >&6; }
19878 CPPFLAGS="$KPATHSEA_INCLUDES $CPPFLAGS"
19879 LIBS="$KPATHSEA_LIBS $LIBS"
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882 #include <kpathsea/kpathsea.h>
19883 #include <kpathsea/version.h>
19885 main ()
19887 const char *version = kpathsea_version_string;
19888 kpse_set_program_name("prog", "name");
19890 return 0;
19892 _ACEOF
19893 if ac_fn_c_try_link "$LINENO"; then :
19894 syslib_used=yes kpse_res=ok
19895 else
19896 syslib_status=no kpse_res=failed
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19901 $as_echo "$kpse_res" >&6; }
19904 ## libs/zlib/ac/zlib.ac: configure.ac fragment for the TeX Live subdirectory libs/zlib/
19905 ## basic check of system zlib
19906 if test "x$need_zlib:$with_system_zlib" = xyes:yes; then
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`zlib' library" >&5
19908 $as_echo_n "checking requested system \`zlib' library... " >&6; }
19909 CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
19910 LIBS="$ZLIB_LIBS $LIBS"
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19913 #include <zlib.h>
19915 main ()
19917 z_stream stream;
19918 const char *version = zlibVersion();
19919 deflate(&stream, 0);
19921 return 0;
19923 _ACEOF
19924 if ac_fn_c_try_link "$LINENO"; then :
19925 syslib_used=yes kpse_res=ok
19926 else
19927 syslib_status=no kpse_res=failed
19929 rm -f core conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19932 $as_echo "$kpse_res" >&6; }
19935 ## libs/libpng/ac/libpng.ac: configure.ac fragment for the TeX Live subdirectory libs/libpng/
19936 ## basic check of system libpng
19937 if test "x$need_libpng:$with_system_libpng" = xyes:yes; then
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`libpng' library" >&5
19939 $as_echo_n "checking requested system \`libpng' library... " >&6; }
19940 CPPFLAGS="$LIBPNG_INCLUDES $CPPFLAGS"
19941 LIBS="$LIBPNG_LIBS $LIBS"
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19944 #include <png.h>
19946 main ()
19948 png_structp png; png_voidp io; png_rw_ptr fn;
19949 png_set_read_fn(png, io, fn);
19951 return 0;
19953 _ACEOF
19954 if ac_fn_c_try_link "$LINENO"; then :
19955 syslib_used=yes kpse_res=ok
19956 else
19957 syslib_status=no kpse_res=failed
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19962 $as_echo "$kpse_res" >&6; }
19965 ## libs/pixman/ac/pixman.ac: configure.ac fragment for the TeX Live subdirectory libs/pixman/
19966 ## basic check of system pixman
19967 if test "x$need_pixman:$with_system_pixman" = xyes:yes; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`pixman' library" >&5
19969 $as_echo_n "checking requested system \`pixman' library... " >&6; }
19970 CPPFLAGS="$PIXMAN_INCLUDES $CPPFLAGS"
19971 LIBS="$PIXMAN_LIBS $LIBS"
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19974 #include <pixman.h>
19976 main ()
19978 const char *s = pixman_version_string();
19980 return 0;
19982 _ACEOF
19983 if ac_fn_c_try_link "$LINENO"; then :
19984 syslib_used=yes kpse_res=ok
19985 else
19986 syslib_status=no kpse_res=failed
19988 rm -f core conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext conftest.$ac_ext
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
19991 $as_echo "$kpse_res" >&6; }
19994 ## libs/cairo/ac/cairo.ac: configure.ac fragment for the TeX Live subdirectory libs/cairo/
19995 ## basic check of system cairo
19996 if test "x$need_cairo:$with_system_cairo" = xyes:yes; then
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`cairo' library" >&5
19998 $as_echo_n "checking requested system \`cairo' library... " >&6; }
19999 CPPFLAGS="$CAIRO_INCLUDES $CPPFLAGS"
20000 LIBS="$CAIRO_LIBS $LIBS"
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003 #include <cairo.h>
20005 main ()
20007 const char *s = cairo_version_string();
20009 return 0;
20011 _ACEOF
20012 if ac_fn_c_try_link "$LINENO"; then :
20013 syslib_used=yes kpse_res=ok
20014 else
20015 syslib_status=no kpse_res=failed
20017 rm -f core conftest.err conftest.$ac_objext \
20018 conftest$ac_exeext conftest.$ac_ext
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
20020 $as_echo "$kpse_res" >&6; }
20023 ## libs/gmp/ac/gmp.ac: configure.ac fragment for the TeX Live subdirectory libs/gmp/
20024 ## basic check of system gmp
20025 if test "x$need_gmp:$with_system_gmp" = xyes:yes; then
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`gmp' library" >&5
20027 $as_echo_n "checking requested system \`gmp' library... " >&6; }
20028 CPPFLAGS="$GMP_INCLUDES $CPPFLAGS"
20029 LIBS="$GMP_LIBS $LIBS"
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h. */
20032 #include <gmp.h>
20034 main ()
20036 const char *s = gmp_version;
20038 return 0;
20040 _ACEOF
20041 if ac_fn_c_try_link "$LINENO"; then :
20042 syslib_used=yes kpse_res=ok
20043 else
20044 syslib_status=no kpse_res=failed
20046 rm -f core conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
20049 $as_echo "$kpse_res" >&6; }
20052 ## libs/mpfr/ac/mpfr.ac: configure.ac fragment for the TeX Live subdirectory libs/mpfr/
20053 ## basic check of system mpfr
20054 if test "x$need_mpfr:$with_system_mpfr" = xyes:yes; then
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`mpfr' library" >&5
20056 $as_echo_n "checking requested system \`mpfr' library... " >&6; }
20057 CPPFLAGS="$MPFR_INCLUDES $CPPFLAGS"
20058 LIBS="$MPFR_LIBS $LIBS"
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20061 #include <mpfr.h>
20063 main ()
20065 const char *s = mpfr_get_version();
20067 return 0;
20069 _ACEOF
20070 if ac_fn_c_try_link "$LINENO"; then :
20071 syslib_used=yes kpse_res=ok
20072 else
20073 syslib_status=no kpse_res=failed
20075 rm -f core conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
20078 $as_echo "$kpse_res" >&6; }
20081 ## libs/poppler/ac/poppler.ac: configure.ac fragment for the TeX Live subdirectory libs/poppler/
20082 ## basic check of system poppler
20083 ac_ext=cpp
20084 ac_cpp='$CXXCPP $CPPFLAGS'
20085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20088 if test "x$need_poppler:$with_system_poppler" = xyes:yes; then
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`poppler' library" >&5
20090 $as_echo_n "checking requested system \`poppler' library... " >&6; }
20091 CPPFLAGS="$POPPLER_INCLUDES $CPPFLAGS"
20092 LIBS="$POPPLER_LIBS $LIBS"
20093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094 /* end confdefs.h. */
20095 #include <GfxFont.h>
20097 main ()
20099 GfxFont *gfxFont; gfxFont->decRefCnt();
20101 return 0;
20103 _ACEOF
20104 if ac_fn_cxx_try_link "$LINENO"; then :
20105 syslib_used=yes kpse_res=ok
20106 else
20107 syslib_status=no kpse_res=failed
20109 rm -f core conftest.err conftest.$ac_objext \
20110 conftest$ac_exeext conftest.$ac_ext
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
20112 $as_echo "$kpse_res" >&6; }
20114 ac_ext=c
20115 ac_cpp='$CPP $CPPFLAGS'
20116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20120 ## libs/zziplib/ac/zziplib.ac: configure.ac fragment for the TeX Live subdirectory libs/zziplib/
20121 ## basic check of system zziplib
20122 if test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking requested system \`zziplib' library" >&5
20124 $as_echo_n "checking requested system \`zziplib' library... " >&6; }
20125 CPPFLAGS="$ZZIPLIB_INCLUDES $CPPFLAGS"
20126 LIBS="$ZZIPLIB_LIBS $LIBS"
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20129 #include <zzip/zzip.h>
20131 main ()
20133 ZZIP_FILE *z_FILE = zzip_open("file_name", 0);
20135 return 0;
20137 _ACEOF
20138 if ac_fn_c_try_link "$LINENO"; then :
20139 syslib_used=yes kpse_res=ok
20140 else
20141 syslib_status=no kpse_res=failed
20143 rm -f core conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_res" >&5
20146 $as_echo "$kpse_res" >&6; }
20149 if test "x$syslib_status" = xno; then
20150 as_fn_error $? "some requested system libraries failed" "$LINENO" 5
20152 if test "x$syslib_used:$enable_native_texlive_build" = xyes:yes; then
20153 as_fn_error $? "you can not use system libraries for a native TeX Live build" "$LINENO" 5
20155 CPPFLAGS=$kpse_save_CPPFLAGS
20156 LIBS=$kpse_save_LIBS
20159 if test "x$cross_compiling" = xyes; then
20160 cross_TRUE=
20161 cross_FALSE='#'
20162 else
20163 cross_TRUE='#'
20164 cross_FALSE=
20168 subdirs="$subdirs auxdir/auxsub libs utils texk"
20171 ac_config_files="$ac_config_files Makefile doc/Makefile"
20174 rm -f Makefile
20175 kpse_GNU_make=`${MAKE-make} -v 2>/dev/null | grep GNU`
20177 cat >confcache <<\_ACEOF
20178 # This file is a shell script that caches the results of configure
20179 # tests run on this system so they can be shared between configure
20180 # scripts and configure runs, see configure's option --config-cache.
20181 # It is not useful on other systems. If it contains results you don't
20182 # want to keep, you may remove or edit it.
20184 # config.status only pays attention to the cache file if you give it
20185 # the --recheck option to rerun configure.
20187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20189 # following values.
20191 _ACEOF
20193 # The following way of writing the cache mishandles newlines in values,
20194 # but we know of no workaround that is simple, portable, and efficient.
20195 # So, we kill variables containing newlines.
20196 # Ultrix sh set writes to stderr and can't be redirected directly,
20197 # and sets the high bit in the cache file unless we assign to the vars.
20199 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20200 eval ac_val=\$$ac_var
20201 case $ac_val in #(
20202 *${as_nl}*)
20203 case $ac_var in #(
20204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20206 esac
20207 case $ac_var in #(
20208 _ | IFS | as_nl) ;; #(
20209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20210 *) { eval $ac_var=; unset $ac_var;} ;;
20211 esac ;;
20212 esac
20213 done
20215 (set) 2>&1 |
20216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20217 *${as_nl}ac_space=\ *)
20218 # `set' does not quote correctly, so add quotes: double-quote
20219 # substitution turns \\\\ into \\, and sed turns \\ into \.
20220 sed -n \
20221 "s/'/'\\\\''/g;
20222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20223 ;; #(
20225 # `set' quotes correctly as required by POSIX, so do not add quotes.
20226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20228 esac |
20229 sort
20231 sed '
20232 /^ac_cv_env_/b end
20233 t clear
20234 :clear
20235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20236 t end
20237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20238 :end' >>confcache
20239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20240 if test -w "$cache_file"; then
20241 if test "x$cache_file" != "x/dev/null"; then
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20243 $as_echo "$as_me: updating cache $cache_file" >&6;}
20244 if test ! -f "$cache_file" || test -h "$cache_file"; then
20245 cat confcache >"$cache_file"
20246 else
20247 case $cache_file in #(
20248 */* | ?:*)
20249 mv -f confcache "$cache_file"$$ &&
20250 mv -f "$cache_file"$$ "$cache_file" ;; #(
20252 mv -f confcache "$cache_file" ;;
20253 esac
20256 else
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20261 rm -f confcache
20263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20264 # Let make expand exec_prefix.
20265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20267 # Transform confdefs.h into DEFS.
20268 # Protect against shell expansion while executing Makefile rules.
20269 # Protect against Makefile macro expansion.
20271 # If the first sed substitution is executed (which looks for macros that
20272 # take arguments), then branch to the quote section. Otherwise,
20273 # look for a macro that doesn't take arguments.
20274 ac_script='
20275 :mline
20276 /\\$/{
20278 s,\\\n,,
20279 b mline
20281 t clear
20282 :clear
20283 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20284 t quote
20285 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20286 t quote
20287 b any
20288 :quote
20289 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20290 s/\[/\\&/g
20291 s/\]/\\&/g
20292 s/\$/$$/g
20294 :any
20297 s/^\n//
20298 s/\n/ /g
20302 DEFS=`sed -n "$ac_script" confdefs.h`
20305 ac_libobjs=
20306 ac_ltlibobjs=
20308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20309 # 1. Remove the extension, and $U if already installed.
20310 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20311 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20312 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20313 # will be set to the directory where LIBOBJS objects are built.
20314 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20315 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20316 done
20317 LIBOBJS=$ac_libobjs
20319 LTLIBOBJS=$ac_ltlibobjs
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20323 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20324 if test -n "$am_sleep_pid"; then
20325 # Hide warnings about reused PIDs.
20326 wait $am_sleep_pid 2>/dev/null
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20329 $as_echo "done" >&6; }
20330 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20331 as_fn_error $? "conditional \"AMDEP\" was never defined.
20332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20334 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20335 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20338 if test -n "$EXEEXT"; then
20339 am__EXEEXT_TRUE=
20340 am__EXEEXT_FALSE='#'
20341 else
20342 am__EXEEXT_TRUE='#'
20343 am__EXEEXT_FALSE=
20346 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20347 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20350 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20351 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20354 if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then
20355 as_fn_error $? "conditional \"cross\" was never defined.
20356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20359 : "${CONFIG_STATUS=./config.status}"
20360 ac_write_fail=0
20361 ac_clean_files_save=$ac_clean_files
20362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20365 as_write_fail=0
20366 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20367 #! $SHELL
20368 # Generated by $as_me.
20369 # Run this file to recreate the current configuration.
20370 # Compiler output produced by configure, useful for debugging
20371 # configure, is in config.log if it exists.
20373 debug=false
20374 ac_cs_recheck=false
20375 ac_cs_silent=false
20377 SHELL=\${CONFIG_SHELL-$SHELL}
20378 export SHELL
20379 _ASEOF
20380 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20381 ## -------------------- ##
20382 ## M4sh Initialization. ##
20383 ## -------------------- ##
20385 # Be more Bourne compatible
20386 DUALCASE=1; export DUALCASE # for MKS sh
20387 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20388 emulate sh
20389 NULLCMD=:
20390 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20391 # is contrary to our usage. Disable this feature.
20392 alias -g '${1+"$@"}'='"$@"'
20393 setopt NO_GLOB_SUBST
20394 else
20395 case `(set -o) 2>/dev/null` in #(
20396 *posix*) :
20397 set -o posix ;; #(
20398 *) :
20400 esac
20404 as_nl='
20406 export as_nl
20407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20411 # Prefer a ksh shell builtin over an external printf program on Solaris,
20412 # but without wasting forks for bash or zsh.
20413 if test -z "$BASH_VERSION$ZSH_VERSION" \
20414 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20415 as_echo='print -r --'
20416 as_echo_n='print -rn --'
20417 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20418 as_echo='printf %s\n'
20419 as_echo_n='printf %s'
20420 else
20421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20423 as_echo_n='/usr/ucb/echo -n'
20424 else
20425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20426 as_echo_n_body='eval
20427 arg=$1;
20428 case $arg in #(
20429 *"$as_nl"*)
20430 expr "X$arg" : "X\\(.*\\)$as_nl";
20431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20432 esac;
20433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20435 export as_echo_n_body
20436 as_echo_n='sh -c $as_echo_n_body as_echo'
20438 export as_echo_body
20439 as_echo='sh -c $as_echo_body as_echo'
20442 # The user is always right.
20443 if test "${PATH_SEPARATOR+set}" != set; then
20444 PATH_SEPARATOR=:
20445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20447 PATH_SEPARATOR=';'
20452 # IFS
20453 # We need space, tab and new line, in precisely that order. Quoting is
20454 # there to prevent editors from complaining about space-tab.
20455 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20456 # splitting by setting IFS to empty value.)
20457 IFS=" "" $as_nl"
20459 # Find who we are. Look in the path if we contain no directory separator.
20460 as_myself=
20461 case $0 in #((
20462 *[\\/]* ) as_myself=$0 ;;
20463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20464 for as_dir in $PATH
20466 IFS=$as_save_IFS
20467 test -z "$as_dir" && as_dir=.
20468 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20469 done
20470 IFS=$as_save_IFS
20473 esac
20474 # We did not find ourselves, most probably we were run as `sh COMMAND'
20475 # in which case we are not to be found in the path.
20476 if test "x$as_myself" = x; then
20477 as_myself=$0
20479 if test ! -f "$as_myself"; then
20480 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20481 exit 1
20484 # Unset variables that we do not need and which cause bugs (e.g. in
20485 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20486 # suppresses any "Segmentation fault" message there. '((' could
20487 # trigger a bug in pdksh 5.2.14.
20488 for as_var in BASH_ENV ENV MAIL MAILPATH
20489 do eval test x\${$as_var+set} = xset \
20490 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20491 done
20492 PS1='$ '
20493 PS2='> '
20494 PS4='+ '
20496 # NLS nuisances.
20497 LC_ALL=C
20498 export LC_ALL
20499 LANGUAGE=C
20500 export LANGUAGE
20502 # CDPATH.
20503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20506 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20507 # ----------------------------------------
20508 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20509 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20510 # script with STATUS, using 1 if that was 0.
20511 as_fn_error ()
20513 as_status=$1; test $as_status -eq 0 && as_status=1
20514 if test "$4"; then
20515 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20516 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20518 $as_echo "$as_me: error: $2" >&2
20519 as_fn_exit $as_status
20520 } # as_fn_error
20523 # as_fn_set_status STATUS
20524 # -----------------------
20525 # Set $? to STATUS, without forking.
20526 as_fn_set_status ()
20528 return $1
20529 } # as_fn_set_status
20531 # as_fn_exit STATUS
20532 # -----------------
20533 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20534 as_fn_exit ()
20536 set +e
20537 as_fn_set_status $1
20538 exit $1
20539 } # as_fn_exit
20541 # as_fn_unset VAR
20542 # ---------------
20543 # Portably unset VAR.
20544 as_fn_unset ()
20546 { eval $1=; unset $1;}
20548 as_unset=as_fn_unset
20549 # as_fn_append VAR VALUE
20550 # ----------------------
20551 # Append the text in VALUE to the end of the definition contained in VAR. Take
20552 # advantage of any shell optimizations that allow amortized linear growth over
20553 # repeated appends, instead of the typical quadratic growth present in naive
20554 # implementations.
20555 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20556 eval 'as_fn_append ()
20558 eval $1+=\$2
20560 else
20561 as_fn_append ()
20563 eval $1=\$$1\$2
20565 fi # as_fn_append
20567 # as_fn_arith ARG...
20568 # ------------------
20569 # Perform arithmetic evaluation on the ARGs, and store the result in the
20570 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20571 # must be portable across $(()) and expr.
20572 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20573 eval 'as_fn_arith ()
20575 as_val=$(( $* ))
20577 else
20578 as_fn_arith ()
20580 as_val=`expr "$@" || test $? -eq 1`
20582 fi # as_fn_arith
20585 if expr a : '\(a\)' >/dev/null 2>&1 &&
20586 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20587 as_expr=expr
20588 else
20589 as_expr=false
20592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20593 as_basename=basename
20594 else
20595 as_basename=false
20598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20599 as_dirname=dirname
20600 else
20601 as_dirname=false
20604 as_me=`$as_basename -- "$0" ||
20605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20606 X"$0" : 'X\(//\)$' \| \
20607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20608 $as_echo X/"$0" |
20609 sed '/^.*\/\([^/][^/]*\)\/*$/{
20610 s//\1/
20613 /^X\/\(\/\/\)$/{
20614 s//\1/
20617 /^X\/\(\/\).*/{
20618 s//\1/
20621 s/.*/./; q'`
20623 # Avoid depending upon Character Ranges.
20624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20627 as_cr_digits='0123456789'
20628 as_cr_alnum=$as_cr_Letters$as_cr_digits
20630 ECHO_C= ECHO_N= ECHO_T=
20631 case `echo -n x` in #(((((
20632 -n*)
20633 case `echo 'xy\c'` in
20634 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20635 xy) ECHO_C='\c';;
20636 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20637 ECHO_T=' ';;
20638 esac;;
20640 ECHO_N='-n';;
20641 esac
20643 rm -f conf$$ conf$$.exe conf$$.file
20644 if test -d conf$$.dir; then
20645 rm -f conf$$.dir/conf$$.file
20646 else
20647 rm -f conf$$.dir
20648 mkdir conf$$.dir 2>/dev/null
20650 if (echo >conf$$.file) 2>/dev/null; then
20651 if ln -s conf$$.file conf$$ 2>/dev/null; then
20652 as_ln_s='ln -s'
20653 # ... but there are two gotchas:
20654 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20655 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20656 # In both cases, we have to default to `cp -pR'.
20657 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20658 as_ln_s='cp -pR'
20659 elif ln conf$$.file conf$$ 2>/dev/null; then
20660 as_ln_s=ln
20661 else
20662 as_ln_s='cp -pR'
20664 else
20665 as_ln_s='cp -pR'
20667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20668 rmdir conf$$.dir 2>/dev/null
20671 # as_fn_mkdir_p
20672 # -------------
20673 # Create "$as_dir" as a directory, including parents if necessary.
20674 as_fn_mkdir_p ()
20677 case $as_dir in #(
20678 -*) as_dir=./$as_dir;;
20679 esac
20680 test -d "$as_dir" || eval $as_mkdir_p || {
20681 as_dirs=
20682 while :; do
20683 case $as_dir in #(
20684 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20685 *) as_qdir=$as_dir;;
20686 esac
20687 as_dirs="'$as_qdir' $as_dirs"
20688 as_dir=`$as_dirname -- "$as_dir" ||
20689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20690 X"$as_dir" : 'X\(//\)[^/]' \| \
20691 X"$as_dir" : 'X\(//\)$' \| \
20692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20693 $as_echo X"$as_dir" |
20694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20695 s//\1/
20698 /^X\(\/\/\)[^/].*/{
20699 s//\1/
20702 /^X\(\/\/\)$/{
20703 s//\1/
20706 /^X\(\/\).*/{
20707 s//\1/
20710 s/.*/./; q'`
20711 test -d "$as_dir" && break
20712 done
20713 test -z "$as_dirs" || eval "mkdir $as_dirs"
20714 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20717 } # as_fn_mkdir_p
20718 if mkdir -p . 2>/dev/null; then
20719 as_mkdir_p='mkdir -p "$as_dir"'
20720 else
20721 test -d ./-p && rmdir ./-p
20722 as_mkdir_p=false
20726 # as_fn_executable_p FILE
20727 # -----------------------
20728 # Test if FILE is an executable regular file.
20729 as_fn_executable_p ()
20731 test -f "$1" && test -x "$1"
20732 } # as_fn_executable_p
20733 as_test_x='test -x'
20734 as_executable_p=as_fn_executable_p
20736 # Sed expression to map a string onto a valid CPP name.
20737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20739 # Sed expression to map a string onto a valid variable name.
20740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20743 exec 6>&1
20744 ## ----------------------------------- ##
20745 ## Main body of $CONFIG_STATUS script. ##
20746 ## ----------------------------------- ##
20747 _ASEOF
20748 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20751 # Save the log message, to keep $0 and so on meaningful, and to
20752 # report actual input values of CONFIG_FILES etc. instead of their
20753 # values after options handling.
20754 ac_log="
20755 This file was extended by TeX Live $as_me 2016-05-23, which was
20756 generated by GNU Autoconf 2.69. Invocation command line was
20758 CONFIG_FILES = $CONFIG_FILES
20759 CONFIG_HEADERS = $CONFIG_HEADERS
20760 CONFIG_LINKS = $CONFIG_LINKS
20761 CONFIG_COMMANDS = $CONFIG_COMMANDS
20762 $ $0 $@
20764 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20767 _ACEOF
20769 case $ac_config_files in *"
20770 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20771 esac
20775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20776 # Files that config.status was made for.
20777 config_files="$ac_config_files"
20778 config_commands="$ac_config_commands"
20780 _ACEOF
20782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20783 ac_cs_usage="\
20784 \`$as_me' instantiates files and other configuration actions
20785 from templates according to the current configuration. Unless the files
20786 and actions are specified as TAGs, all are instantiated by default.
20788 Usage: $0 [OPTION]... [TAG]...
20790 -h, --help print this help, then exit
20791 -V, --version print version number and configuration settings, then exit
20792 --config print configuration, then exit
20793 -q, --quiet, --silent
20794 do not print progress messages
20795 -d, --debug don't remove temporary files
20796 --recheck update $as_me by reconfiguring in the same conditions
20797 --file=FILE[:TEMPLATE]
20798 instantiate the configuration file FILE
20800 Configuration files:
20801 $config_files
20803 Configuration commands:
20804 $config_commands
20806 Report bugs to <tex-k@tug.org>."
20808 _ACEOF
20809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20810 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20811 ac_cs_version="\\
20812 TeX Live config.status 2016-05-23
20813 configured by $0, generated by GNU Autoconf 2.69,
20814 with options \\"\$ac_cs_config\\"
20816 Copyright (C) 2012 Free Software Foundation, Inc.
20817 This config.status script is free software; the Free Software Foundation
20818 gives unlimited permission to copy, distribute and modify it."
20820 ac_pwd='$ac_pwd'
20821 srcdir='$srcdir'
20822 INSTALL='$INSTALL'
20823 MKDIR_P='$MKDIR_P'
20824 AWK='$AWK'
20825 test -n "\$AWK" || AWK=awk
20826 _ACEOF
20828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20829 # The default lists apply if the user does not specify any file.
20830 ac_need_defaults=:
20831 while test $# != 0
20833 case $1 in
20834 --*=?*)
20835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20837 ac_shift=:
20839 --*=)
20840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20841 ac_optarg=
20842 ac_shift=:
20845 ac_option=$1
20846 ac_optarg=$2
20847 ac_shift=shift
20849 esac
20851 case $ac_option in
20852 # Handling of the options.
20853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20854 ac_cs_recheck=: ;;
20855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20856 $as_echo "$ac_cs_version"; exit ;;
20857 --config | --confi | --conf | --con | --co | --c )
20858 $as_echo "$ac_cs_config"; exit ;;
20859 --debug | --debu | --deb | --de | --d | -d )
20860 debug=: ;;
20861 --file | --fil | --fi | --f )
20862 $ac_shift
20863 case $ac_optarg in
20864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20865 '') as_fn_error $? "missing file argument" ;;
20866 esac
20867 as_fn_append CONFIG_FILES " '$ac_optarg'"
20868 ac_need_defaults=false;;
20869 --he | --h | --help | --hel | -h )
20870 $as_echo "$ac_cs_usage"; exit ;;
20871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20873 ac_cs_silent=: ;;
20875 # This is an error.
20876 -*) as_fn_error $? "unrecognized option: \`$1'
20877 Try \`$0 --help' for more information." ;;
20879 *) as_fn_append ac_config_targets " $1"
20880 ac_need_defaults=false ;;
20882 esac
20883 shift
20884 done
20886 ac_configure_extra_args=
20888 if $ac_cs_silent; then
20889 exec 6>/dev/null
20890 ac_configure_extra_args="$ac_configure_extra_args --silent"
20893 _ACEOF
20894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20895 if \$ac_cs_recheck; then
20896 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20897 shift
20898 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20899 CONFIG_SHELL='$SHELL'
20900 export CONFIG_SHELL
20901 exec "\$@"
20904 _ACEOF
20905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20906 exec 5>>config.log
20908 echo
20909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20910 ## Running $as_me. ##
20911 _ASBOX
20912 $as_echo "$ac_log"
20913 } >&5
20915 _ACEOF
20916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20918 # INIT-COMMANDS
20920 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20923 # The HP-UX ksh and POSIX shell print the target directory to stdout
20924 # if CDPATH is set.
20925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20927 sed_quote_subst='$sed_quote_subst'
20928 double_quote_subst='$double_quote_subst'
20929 delay_variable_subst='$delay_variable_subst'
20930 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20931 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20932 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20933 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20934 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20935 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20936 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20937 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20938 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20939 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20940 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20941 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20942 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20943 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20944 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20945 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20946 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20947 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20948 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20949 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20950 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20951 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20952 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20953 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20954 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20955 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20956 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20957 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20958 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20959 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20960 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20961 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20962 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20963 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20964 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20965 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20966 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20967 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20968 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20969 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20970 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20971 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20972 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20973 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20974 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20975 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20976 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20977 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20978 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20979 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20980 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20981 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20982 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20983 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20984 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20985 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20986 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20987 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20988 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20989 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"`'
20990 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20991 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20992 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20993 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20994 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20995 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20996 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20997 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20998 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20999 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21000 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21001 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21002 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21003 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21004 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21005 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21006 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21007 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21008 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21009 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21010 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21011 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21012 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21013 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21014 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21015 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21016 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21017 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21018 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21019 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21020 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21021 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21022 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21023 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21024 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21025 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21026 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21027 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21028 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21029 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21030 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21031 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21032 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21033 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21034 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21035 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21036 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21037 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21038 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21039 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21040 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21041 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21042 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21043 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21044 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21045 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21046 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21047 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21048 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21049 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21050 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21051 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21052 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21053 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21054 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21055 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21056 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21057 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21058 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21059 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21060 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21061 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21062 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21063 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21064 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21065 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21066 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21067 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21068 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21069 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21070 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21071 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21072 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21073 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21074 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21075 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21076 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21077 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21078 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21079 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21080 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21081 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21082 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21083 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21084 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21085 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21086 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21087 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21088 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21089 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21090 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21092 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21093 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21094 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21095 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21096 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21098 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21099 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21100 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21101 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21102 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21103 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21104 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21105 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21106 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21107 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21108 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21109 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21110 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21111 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21112 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21113 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21114 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21115 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21116 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21117 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21118 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21119 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21121 LTCC='$LTCC'
21122 LTCFLAGS='$LTCFLAGS'
21123 compiler='$compiler_DEFAULT'
21125 # A function that is used when there is no print builtin or printf.
21126 func_fallback_echo ()
21128 eval 'cat <<_LTECHO_EOF
21130 _LTECHO_EOF'
21133 # Quote evaled strings.
21134 for var in AS \
21135 DLLTOOL \
21136 OBJDUMP \
21137 SHELL \
21138 ECHO \
21139 PATH_SEPARATOR \
21140 SED \
21141 GREP \
21142 EGREP \
21143 FGREP \
21144 LD \
21145 NM \
21146 LN_S \
21147 lt_SP2NL \
21148 lt_NL2SP \
21149 reload_flag \
21150 deplibs_check_method \
21151 file_magic_cmd \
21152 file_magic_glob \
21153 want_nocaseglob \
21154 sharedlib_from_linklib_cmd \
21155 AR \
21156 AR_FLAGS \
21157 archiver_list_spec \
21158 STRIP \
21159 RANLIB \
21160 CC \
21161 CFLAGS \
21162 compiler \
21163 lt_cv_sys_global_symbol_pipe \
21164 lt_cv_sys_global_symbol_to_cdecl \
21165 lt_cv_sys_global_symbol_to_import \
21166 lt_cv_sys_global_symbol_to_c_name_address \
21167 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21168 lt_cv_nm_interface \
21169 nm_file_list_spec \
21170 lt_cv_truncate_bin \
21171 lt_prog_compiler_no_builtin_flag \
21172 lt_prog_compiler_pic \
21173 lt_prog_compiler_wl \
21174 lt_prog_compiler_static \
21175 lt_cv_prog_compiler_c_o \
21176 need_locks \
21177 MANIFEST_TOOL \
21178 DSYMUTIL \
21179 NMEDIT \
21180 LIPO \
21181 OTOOL \
21182 OTOOL64 \
21183 shrext_cmds \
21184 export_dynamic_flag_spec \
21185 whole_archive_flag_spec \
21186 compiler_needs_object \
21187 with_gnu_ld \
21188 allow_undefined_flag \
21189 no_undefined_flag \
21190 hardcode_libdir_flag_spec \
21191 hardcode_libdir_separator \
21192 exclude_expsyms \
21193 include_expsyms \
21194 file_list_spec \
21195 variables_saved_for_relink \
21196 libname_spec \
21197 library_names_spec \
21198 soname_spec \
21199 install_override_mode \
21200 finish_eval \
21201 old_striplib \
21202 striplib \
21203 compiler_lib_search_dirs \
21204 predep_objects \
21205 postdep_objects \
21206 predeps \
21207 postdeps \
21208 compiler_lib_search_path \
21209 LD_CXX \
21210 reload_flag_CXX \
21211 compiler_CXX \
21212 lt_prog_compiler_no_builtin_flag_CXX \
21213 lt_prog_compiler_pic_CXX \
21214 lt_prog_compiler_wl_CXX \
21215 lt_prog_compiler_static_CXX \
21216 lt_cv_prog_compiler_c_o_CXX \
21217 export_dynamic_flag_spec_CXX \
21218 whole_archive_flag_spec_CXX \
21219 compiler_needs_object_CXX \
21220 with_gnu_ld_CXX \
21221 allow_undefined_flag_CXX \
21222 no_undefined_flag_CXX \
21223 hardcode_libdir_flag_spec_CXX \
21224 hardcode_libdir_separator_CXX \
21225 exclude_expsyms_CXX \
21226 include_expsyms_CXX \
21227 file_list_spec_CXX \
21228 compiler_lib_search_dirs_CXX \
21229 predep_objects_CXX \
21230 postdep_objects_CXX \
21231 predeps_CXX \
21232 postdeps_CXX \
21233 compiler_lib_search_path_CXX; do
21234 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21235 *[\\\\\\\`\\"\\\$]*)
21236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21241 esac
21242 done
21244 # Double-quote double-evaled strings.
21245 for var in reload_cmds \
21246 old_postinstall_cmds \
21247 old_postuninstall_cmds \
21248 old_archive_cmds \
21249 extract_expsyms_cmds \
21250 old_archive_from_new_cmds \
21251 old_archive_from_expsyms_cmds \
21252 archive_cmds \
21253 archive_expsym_cmds \
21254 module_cmds \
21255 module_expsym_cmds \
21256 export_symbols_cmds \
21257 prelink_cmds \
21258 postlink_cmds \
21259 postinstall_cmds \
21260 postuninstall_cmds \
21261 finish_cmds \
21262 sys_lib_search_path_spec \
21263 configure_time_dlsearch_path \
21264 configure_time_lt_sys_library_path \
21265 reload_cmds_CXX \
21266 old_archive_cmds_CXX \
21267 old_archive_from_new_cmds_CXX \
21268 old_archive_from_expsyms_cmds_CXX \
21269 archive_cmds_CXX \
21270 archive_expsym_cmds_CXX \
21271 module_cmds_CXX \
21272 module_expsym_cmds_CXX \
21273 export_symbols_cmds_CXX \
21274 prelink_cmds_CXX \
21275 postlink_cmds_CXX; do
21276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21277 *[\\\\\\\`\\"\\\$]*)
21278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21283 esac
21284 done
21286 ac_aux_dir='$ac_aux_dir'
21288 # See if we are running on zsh, and set the options that allow our
21289 # commands through without removal of \ escapes INIT.
21290 if test -n "\${ZSH_VERSION+set}"; then
21291 setopt NO_GLOB_SUBST
21295 PACKAGE='$PACKAGE'
21296 VERSION='$VERSION'
21297 RM='$RM'
21298 ofile='$ofile'
21302 enable_libtool_hack='$enable_libtool_hack'
21306 _ACEOF
21308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21310 # Handling of arguments.
21311 for ac_config_target in $ac_config_targets
21313 case $ac_config_target in
21314 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21315 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21316 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21317 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21319 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21320 esac
21321 done
21324 # If the user did not use the arguments to specify the items to instantiate,
21325 # then the envvar interface is used. Set only those that are not.
21326 # We use the long form for the default assignment because of an extremely
21327 # bizarre bug on SunOS 4.1.3.
21328 if $ac_need_defaults; then
21329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21333 # Have a temporary directory for convenience. Make it in the build tree
21334 # simply because there is no reason against having it here, and in addition,
21335 # creating and moving files from /tmp can sometimes cause problems.
21336 # Hook for its removal unless debugging.
21337 # Note that there is a small window in which the directory will not be cleaned:
21338 # after its creation but before its name has been assigned to `$tmp'.
21339 $debug ||
21341 tmp= ac_tmp=
21342 trap 'exit_status=$?
21343 : "${ac_tmp:=$tmp}"
21344 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21346 trap 'as_fn_exit 1' 1 2 13 15
21348 # Create a (secure) tmp directory for tmp files.
21351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21352 test -d "$tmp"
21353 } ||
21355 tmp=./conf$$-$RANDOM
21356 (umask 077 && mkdir "$tmp")
21357 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21358 ac_tmp=$tmp
21360 # Set up the scripts for CONFIG_FILES section.
21361 # No need to generate them if there are no CONFIG_FILES.
21362 # This happens for instance with `./config.status config.h'.
21363 if test -n "$CONFIG_FILES"; then
21366 ac_cr=`echo X | tr X '\015'`
21367 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21368 # But we know of no other shell where ac_cr would be empty at this
21369 # point, so we can use a bashism as a fallback.
21370 if test "x$ac_cr" = x; then
21371 eval ac_cr=\$\'\\r\'
21373 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21375 ac_cs_awk_cr='\\r'
21376 else
21377 ac_cs_awk_cr=$ac_cr
21380 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21381 _ACEOF
21385 echo "cat >conf$$subs.awk <<_ACEOF" &&
21386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21387 echo "_ACEOF"
21388 } >conf$$subs.sh ||
21389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21390 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21391 ac_delim='%!_!# '
21392 for ac_last_try in false false false false false :; do
21393 . ./conf$$subs.sh ||
21394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21397 if test $ac_delim_n = $ac_delim_num; then
21398 break
21399 elif $ac_last_try; then
21400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21401 else
21402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21404 done
21405 rm -f conf$$subs.sh
21407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21408 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21409 _ACEOF
21410 sed -n '
21412 s/^/S["/; s/!.*/"]=/
21415 s/^[^!]*!//
21416 :repl
21417 t repl
21418 s/'"$ac_delim"'$//
21419 t delim
21422 s/\(.\{148\}\)..*/\1/
21423 t more1
21424 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21427 b repl
21428 :more1
21429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21432 s/.\{148\}//
21433 t nl
21434 :delim
21436 s/\(.\{148\}\)..*/\1/
21437 t more2
21438 s/["\\]/\\&/g; s/^/"/; s/$/"/
21441 :more2
21442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21445 s/.\{148\}//
21446 t delim
21447 ' <conf$$subs.awk | sed '
21448 /^[^""]/{
21450 s/\n//
21452 ' >>$CONFIG_STATUS || ac_write_fail=1
21453 rm -f conf$$subs.awk
21454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21455 _ACAWK
21456 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21457 for (key in S) S_is_set[key] = 1
21458 FS = "\a"
21462 line = $ 0
21463 nfields = split(line, field, "@")
21464 substed = 0
21465 len = length(field[1])
21466 for (i = 2; i < nfields; i++) {
21467 key = field[i]
21468 keylen = length(key)
21469 if (S_is_set[key]) {
21470 value = S[key]
21471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21472 len += length(value) + length(field[++i])
21473 substed = 1
21474 } else
21475 len += 1 + keylen
21478 print line
21481 _ACAWK
21482 _ACEOF
21483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21484 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21486 else
21488 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21489 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21490 _ACEOF
21492 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21493 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21494 # trailing colons and then remove the whole line if VPATH becomes empty
21495 # (actually we leave an empty line to preserve line numbers).
21496 if test "x$srcdir" = x.; then
21497 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21499 s///
21500 s/^/:/
21501 s/[ ]*$/:/
21502 s/:\$(srcdir):/:/g
21503 s/:\${srcdir}:/:/g
21504 s/:@srcdir@:/:/g
21505 s/^:*//
21506 s/:*$//
21508 s/\(=[ ]*\).*/\1/
21510 s/\n//
21511 s/^[^=]*=[ ]*$//
21515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21516 fi # test -n "$CONFIG_FILES"
21519 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21520 shift
21521 for ac_tag
21523 case $ac_tag in
21524 :[FHLC]) ac_mode=$ac_tag; continue;;
21525 esac
21526 case $ac_mode$ac_tag in
21527 :[FHL]*:*);;
21528 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21529 :[FH]-) ac_tag=-:-;;
21530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21531 esac
21532 ac_save_IFS=$IFS
21533 IFS=:
21534 set x $ac_tag
21535 IFS=$ac_save_IFS
21536 shift
21537 ac_file=$1
21538 shift
21540 case $ac_mode in
21541 :L) ac_source=$1;;
21542 :[FH])
21543 ac_file_inputs=
21544 for ac_f
21546 case $ac_f in
21547 -) ac_f="$ac_tmp/stdin";;
21548 *) # Look for the file first in the build tree, then in the source tree
21549 # (if the path is not absolute). The absolute path cannot be DOS-style,
21550 # because $ac_f cannot contain `:'.
21551 test -f "$ac_f" ||
21552 case $ac_f in
21553 [\\/$]*) false;;
21554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21555 esac ||
21556 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21557 esac
21558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21559 as_fn_append ac_file_inputs " '$ac_f'"
21560 done
21562 # Let's still pretend it is `configure' which instantiates (i.e., don't
21563 # use $as_me), people would be surprised to read:
21564 # /* config.h. Generated by config.status. */
21565 configure_input='Generated from '`
21566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21567 `' by configure.'
21568 if test x"$ac_file" != x-; then
21569 configure_input="$ac_file. $configure_input"
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21571 $as_echo "$as_me: creating $ac_file" >&6;}
21573 # Neutralize special characters interpreted by sed in replacement strings.
21574 case $configure_input in #(
21575 *\&* | *\|* | *\\* )
21576 ac_sed_conf_input=`$as_echo "$configure_input" |
21577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21578 *) ac_sed_conf_input=$configure_input;;
21579 esac
21581 case $ac_tag in
21582 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21584 esac
21586 esac
21588 ac_dir=`$as_dirname -- "$ac_file" ||
21589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21590 X"$ac_file" : 'X\(//\)[^/]' \| \
21591 X"$ac_file" : 'X\(//\)$' \| \
21592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21593 $as_echo X"$ac_file" |
21594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21595 s//\1/
21598 /^X\(\/\/\)[^/].*/{
21599 s//\1/
21602 /^X\(\/\/\)$/{
21603 s//\1/
21606 /^X\(\/\).*/{
21607 s//\1/
21610 s/.*/./; q'`
21611 as_dir="$ac_dir"; as_fn_mkdir_p
21612 ac_builddir=.
21614 case "$ac_dir" in
21615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21618 # A ".." for each directory in $ac_dir_suffix.
21619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21620 case $ac_top_builddir_sub in
21621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21623 esac ;;
21624 esac
21625 ac_abs_top_builddir=$ac_pwd
21626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21627 # for backward compatibility:
21628 ac_top_builddir=$ac_top_build_prefix
21630 case $srcdir in
21631 .) # We are building in place.
21632 ac_srcdir=.
21633 ac_top_srcdir=$ac_top_builddir_sub
21634 ac_abs_top_srcdir=$ac_pwd ;;
21635 [\\/]* | ?:[\\/]* ) # Absolute name.
21636 ac_srcdir=$srcdir$ac_dir_suffix;
21637 ac_top_srcdir=$srcdir
21638 ac_abs_top_srcdir=$srcdir ;;
21639 *) # Relative name.
21640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21641 ac_top_srcdir=$ac_top_build_prefix$srcdir
21642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21643 esac
21644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21647 case $ac_mode in
21650 # CONFIG_FILE
21653 case $INSTALL in
21654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21656 esac
21657 ac_MKDIR_P=$MKDIR_P
21658 case $MKDIR_P in
21659 [\\/$]* | ?:[\\/]* ) ;;
21660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21661 esac
21662 _ACEOF
21664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21665 # If the template does not know about datarootdir, expand it.
21666 # FIXME: This hack should be removed a few years after 2.60.
21667 ac_datarootdir_hack=; ac_datarootdir_seen=
21668 ac_sed_dataroot='
21669 /datarootdir/ {
21673 /@datadir@/p
21674 /@docdir@/p
21675 /@infodir@/p
21676 /@localedir@/p
21677 /@mandir@/p'
21678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21679 *datarootdir*) ac_datarootdir_seen=yes;;
21680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21683 _ACEOF
21684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21685 ac_datarootdir_hack='
21686 s&@datadir@&$datadir&g
21687 s&@docdir@&$docdir&g
21688 s&@infodir@&$infodir&g
21689 s&@localedir@&$localedir&g
21690 s&@mandir@&$mandir&g
21691 s&\\\${datarootdir}&$datarootdir&g' ;;
21692 esac
21693 _ACEOF
21695 # Neutralize VPATH when `$srcdir' = `.'.
21696 # Shell code in configure.ac might set extrasub.
21697 # FIXME: do we really want to maintain this feature?
21698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21699 ac_sed_extra="$ac_vpsub
21700 $extrasub
21701 _ACEOF
21702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21705 s|@configure_input@|$ac_sed_conf_input|;t t
21706 s&@top_builddir@&$ac_top_builddir_sub&;t t
21707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21708 s&@srcdir@&$ac_srcdir&;t t
21709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21710 s&@top_srcdir@&$ac_top_srcdir&;t t
21711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21712 s&@builddir@&$ac_builddir&;t t
21713 s&@abs_builddir@&$ac_abs_builddir&;t t
21714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21715 s&@INSTALL@&$ac_INSTALL&;t t
21716 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21717 $ac_datarootdir_hack
21719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21720 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21723 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21725 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21727 which seems to be undefined. Please make sure it is defined" >&5
21728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21729 which seems to be undefined. Please make sure it is defined" >&2;}
21731 rm -f "$ac_tmp/stdin"
21732 case $ac_file in
21733 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21734 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21735 esac \
21736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21741 $as_echo "$as_me: executing $ac_file commands" >&6;}
21743 esac
21746 case $ac_file$ac_mode in
21747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21748 # Older Autoconf quotes --file arguments for eval, but not when files
21749 # are listed without --file. Let's play safe and only enable the eval
21750 # if we detect the quoting.
21751 case $CONFIG_FILES in
21752 *\'*) eval set x "$CONFIG_FILES" ;;
21753 *) set x $CONFIG_FILES ;;
21754 esac
21755 shift
21756 for mf
21758 # Strip MF so we end up with the name of the file.
21759 mf=`echo "$mf" | sed -e 's/:.*$//'`
21760 # Check whether this is an Automake generated Makefile or not.
21761 # We used to match only the files named 'Makefile.in', but
21762 # some people rename them; so instead we look at the file content.
21763 # Grep'ing the first line is not enough: some people post-process
21764 # each Makefile.in and add a new line on top of each file to say so.
21765 # Grep'ing the whole file is not good either: AIX grep has a line
21766 # limit of 2048, but all sed's we know have understand at least 4000.
21767 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21768 dirpart=`$as_dirname -- "$mf" ||
21769 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$mf" : 'X\(//\)[^/]' \| \
21771 X"$mf" : 'X\(//\)$' \| \
21772 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21773 $as_echo X"$mf" |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21775 s//\1/
21778 /^X\(\/\/\)[^/].*/{
21779 s//\1/
21782 /^X\(\/\/\)$/{
21783 s//\1/
21786 /^X\(\/\).*/{
21787 s//\1/
21790 s/.*/./; q'`
21791 else
21792 continue
21794 # Extract the definition of DEPDIR, am__include, and am__quote
21795 # from the Makefile without running 'make'.
21796 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21797 test -z "$DEPDIR" && continue
21798 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21799 test -z "$am__include" && continue
21800 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21801 # Find all dependency output files, they are included files with
21802 # $(DEPDIR) in their names. We invoke sed twice because it is the
21803 # simplest approach to changing $(DEPDIR) to its actual value in the
21804 # expansion.
21805 for file in `sed -n "
21806 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21807 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21808 # Make sure the directory exists.
21809 test -f "$dirpart/$file" && continue
21810 fdir=`$as_dirname -- "$file" ||
21811 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812 X"$file" : 'X\(//\)[^/]' \| \
21813 X"$file" : 'X\(//\)$' \| \
21814 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21815 $as_echo X"$file" |
21816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21817 s//\1/
21820 /^X\(\/\/\)[^/].*/{
21821 s//\1/
21824 /^X\(\/\/\)$/{
21825 s//\1/
21828 /^X\(\/\).*/{
21829 s//\1/
21832 s/.*/./; q'`
21833 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21834 # echo "creating $dirpart/$file"
21835 echo '# dummy' > "$dirpart/$file"
21836 done
21837 done
21840 "libtool":C)
21842 # See if we are running on zsh, and set the options that allow our
21843 # commands through without removal of \ escapes.
21844 if test -n "${ZSH_VERSION+set}"; then
21845 setopt NO_GLOB_SUBST
21848 cfgfile=${ofile}T
21849 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21850 $RM "$cfgfile"
21852 cat <<_LT_EOF >> "$cfgfile"
21853 #! $SHELL
21854 # Generated automatically by $as_me ($PACKAGE) $VERSION
21855 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21856 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21858 # Provide generalized library-building support services.
21859 # Written by Gordon Matzigkeit, 1996
21861 # Copyright (C) 2014 Free Software Foundation, Inc.
21862 # This is free software; see the source for copying conditions. There is NO
21863 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21865 # GNU Libtool is free software; you can redistribute it and/or modify
21866 # it under the terms of the GNU General Public License as published by
21867 # the Free Software Foundation; either version 2 of of the License, or
21868 # (at your option) any later version.
21870 # As a special exception to the GNU General Public License, if you
21871 # distribute this file as part of a program or library that is built
21872 # using GNU Libtool, you may include this file under the same
21873 # distribution terms that you use for the rest of that program.
21875 # GNU Libtool is distributed in the hope that it will be useful, but
21876 # WITHOUT ANY WARRANTY; without even the implied warranty of
21877 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21878 # GNU General Public License for more details.
21880 # You should have received a copy of the GNU General Public License
21881 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21884 # The names of the tagged configurations supported by this script.
21885 available_tags='CXX '
21887 # Configured defaults for sys_lib_dlsearch_path munging.
21888 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21890 # ### BEGIN LIBTOOL CONFIG
21892 # Which release of libtool.m4 was used?
21893 macro_version=$macro_version
21894 macro_revision=$macro_revision
21896 # Assembler program.
21897 AS=$lt_AS
21899 # DLL creation program.
21900 DLLTOOL=$lt_DLLTOOL
21902 # Object dumper program.
21903 OBJDUMP=$lt_OBJDUMP
21905 # Whether or not to build shared libraries.
21906 build_libtool_libs=$enable_shared
21908 # Whether or not to build static libraries.
21909 build_old_libs=$enable_static
21911 # What type of objects to build.
21912 pic_mode=$pic_mode
21914 # Whether or not to optimize for fast installation.
21915 fast_install=$enable_fast_install
21917 # Shared archive member basename,for filename based shared library versioning on AIX.
21918 shared_archive_member_spec=$shared_archive_member_spec
21920 # Shell to use when invoking shell scripts.
21921 SHELL=$lt_SHELL
21923 # An echo program that protects backslashes.
21924 ECHO=$lt_ECHO
21926 # The PATH separator for the build system.
21927 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21929 # The host system.
21930 host_alias=$host_alias
21931 host=$host
21932 host_os=$host_os
21934 # The build system.
21935 build_alias=$build_alias
21936 build=$build
21937 build_os=$build_os
21939 # A sed program that does not truncate output.
21940 SED=$lt_SED
21942 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21943 Xsed="\$SED -e 1s/^X//"
21945 # A grep program that handles long lines.
21946 GREP=$lt_GREP
21948 # An ERE matcher.
21949 EGREP=$lt_EGREP
21951 # A literal string matcher.
21952 FGREP=$lt_FGREP
21954 # A BSD- or MS-compatible name lister.
21955 NM=$lt_NM
21957 # Whether we need soft or hard links.
21958 LN_S=$lt_LN_S
21960 # What is the maximum length of a command?
21961 max_cmd_len=$max_cmd_len
21963 # Object file suffix (normally "o").
21964 objext=$ac_objext
21966 # Executable file suffix (normally "").
21967 exeext=$exeext
21969 # whether the shell understands "unset".
21970 lt_unset=$lt_unset
21972 # turn spaces into newlines.
21973 SP2NL=$lt_lt_SP2NL
21975 # turn newlines into spaces.
21976 NL2SP=$lt_lt_NL2SP
21978 # convert \$build file names to \$host format.
21979 to_host_file_cmd=$lt_cv_to_host_file_cmd
21981 # convert \$build files to toolchain format.
21982 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21984 # Method to check whether dependent libraries are shared objects.
21985 deplibs_check_method=$lt_deplibs_check_method
21987 # Command to use when deplibs_check_method = "file_magic".
21988 file_magic_cmd=$lt_file_magic_cmd
21990 # How to find potential files when deplibs_check_method = "file_magic".
21991 file_magic_glob=$lt_file_magic_glob
21993 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21994 want_nocaseglob=$lt_want_nocaseglob
21996 # Command to associate shared and link libraries.
21997 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21999 # The archiver.
22000 AR=$lt_AR
22002 # Flags to create an archive.
22003 AR_FLAGS=$lt_AR_FLAGS
22005 # How to feed a file listing to the archiver.
22006 archiver_list_spec=$lt_archiver_list_spec
22008 # A symbol stripping program.
22009 STRIP=$lt_STRIP
22011 # Commands used to install an old-style archive.
22012 RANLIB=$lt_RANLIB
22013 old_postinstall_cmds=$lt_old_postinstall_cmds
22014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22016 # Whether to use a lock for old archive extraction.
22017 lock_old_archive_extraction=$lock_old_archive_extraction
22019 # A C compiler.
22020 LTCC=$lt_CC
22022 # LTCC compiler flags.
22023 LTCFLAGS=$lt_CFLAGS
22025 # Take the output of nm and produce a listing of raw symbols and C names.
22026 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22028 # Transform the output of nm in a proper C declaration.
22029 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22031 # Transform the output of nm into a list of symbols to manually relocate.
22032 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22034 # Transform the output of nm in a C name address pair.
22035 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22037 # Transform the output of nm in a C name address pair when lib prefix is needed.
22038 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22040 # The name lister interface.
22041 nm_interface=$lt_lt_cv_nm_interface
22043 # Specify filename containing input files for \$NM.
22044 nm_file_list_spec=$lt_nm_file_list_spec
22046 # The root where to search for dependent libraries,and where our libraries should be installed.
22047 lt_sysroot=$lt_sysroot
22049 # Command to truncate a binary pipe.
22050 lt_truncate_bin=$lt_lt_cv_truncate_bin
22052 # The name of the directory that contains temporary libtool files.
22053 objdir=$objdir
22055 # Used to examine libraries when file_magic_cmd begins with "file".
22056 MAGIC_CMD=$MAGIC_CMD
22058 # Must we lock files when doing compilation?
22059 need_locks=$lt_need_locks
22061 # Manifest tool.
22062 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22064 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22065 DSYMUTIL=$lt_DSYMUTIL
22067 # Tool to change global to local symbols on Mac OS X.
22068 NMEDIT=$lt_NMEDIT
22070 # Tool to manipulate fat objects and archives on Mac OS X.
22071 LIPO=$lt_LIPO
22073 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22074 OTOOL=$lt_OTOOL
22076 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22077 OTOOL64=$lt_OTOOL64
22079 # Old archive suffix (normally "a").
22080 libext=$libext
22082 # Shared library suffix (normally ".so").
22083 shrext_cmds=$lt_shrext_cmds
22085 # The commands to extract the exported symbol list from a shared archive.
22086 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22088 # Variables whose values should be saved in libtool wrapper scripts and
22089 # restored at link time.
22090 variables_saved_for_relink=$lt_variables_saved_for_relink
22092 # Do we need the "lib" prefix for modules?
22093 need_lib_prefix=$need_lib_prefix
22095 # Do we need a version for libraries?
22096 need_version=$need_version
22098 # Library versioning type.
22099 version_type=$version_type
22101 # Shared library runtime path variable.
22102 runpath_var=$runpath_var
22104 # Shared library path variable.
22105 shlibpath_var=$shlibpath_var
22107 # Is shlibpath searched before the hard-coded library search path?
22108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22110 # Format of library name prefix.
22111 libname_spec=$lt_libname_spec
22113 # List of archive names. First name is the real one, the rest are links.
22114 # The last name is the one that the linker finds with -lNAME
22115 library_names_spec=$lt_library_names_spec
22117 # The coded name of the library, if different from the real name.
22118 soname_spec=$lt_soname_spec
22120 # Permission mode override for installation of shared libraries.
22121 install_override_mode=$lt_install_override_mode
22123 # Command to use after installation of a shared archive.
22124 postinstall_cmds=$lt_postinstall_cmds
22126 # Command to use after uninstallation of a shared archive.
22127 postuninstall_cmds=$lt_postuninstall_cmds
22129 # Commands used to finish a libtool library installation in a directory.
22130 finish_cmds=$lt_finish_cmds
22132 # As "finish_cmds", except a single script fragment to be evaled but
22133 # not shown.
22134 finish_eval=$lt_finish_eval
22136 # Whether we should hardcode library paths into libraries.
22137 hardcode_into_libs=$hardcode_into_libs
22139 # Compile-time system search path for libraries.
22140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22142 # Detected run-time system search path for libraries.
22143 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22145 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22146 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22148 # Whether dlopen is supported.
22149 dlopen_support=$enable_dlopen
22151 # Whether dlopen of programs is supported.
22152 dlopen_self=$enable_dlopen_self
22154 # Whether dlopen of statically linked programs is supported.
22155 dlopen_self_static=$enable_dlopen_self_static
22157 # Commands to strip libraries.
22158 old_striplib=$lt_old_striplib
22159 striplib=$lt_striplib
22162 # The linker used to build libraries.
22163 LD=$lt_LD
22165 # How to create reloadable object files.
22166 reload_flag=$lt_reload_flag
22167 reload_cmds=$lt_reload_cmds
22169 # Commands used to build an old-style archive.
22170 old_archive_cmds=$lt_old_archive_cmds
22172 # A language specific compiler.
22173 CC=$lt_compiler
22175 # Is the compiler the GNU compiler?
22176 with_gcc=$GCC
22178 # Compiler flag to turn off builtin functions.
22179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22181 # Additional compiler flags for building library objects.
22182 pic_flag=$lt_lt_prog_compiler_pic
22184 # How to pass a linker flag through the compiler.
22185 wl=$lt_lt_prog_compiler_wl
22187 # Compiler flag to prevent dynamic linking.
22188 link_static_flag=$lt_lt_prog_compiler_static
22190 # Does compiler simultaneously support -c and -o options?
22191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22193 # Whether or not to add -lc for building shared libraries.
22194 build_libtool_need_lc=$archive_cmds_need_lc
22196 # Whether or not to disallow shared libs when runtime libs are static.
22197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22199 # Compiler flag to allow reflexive dlopens.
22200 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22202 # Compiler flag to generate shared objects directly from archives.
22203 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22205 # Whether the compiler copes with passing no objects directly.
22206 compiler_needs_object=$lt_compiler_needs_object
22208 # Create an old-style archive from a shared archive.
22209 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22211 # Create a temporary old-style archive to link instead of a shared archive.
22212 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22214 # Commands used to build a shared archive.
22215 archive_cmds=$lt_archive_cmds
22216 archive_expsym_cmds=$lt_archive_expsym_cmds
22218 # Commands used to build a loadable module if different from building
22219 # a shared archive.
22220 module_cmds=$lt_module_cmds
22221 module_expsym_cmds=$lt_module_expsym_cmds
22223 # Whether we are building with GNU ld or not.
22224 with_gnu_ld=$lt_with_gnu_ld
22226 # Flag that allows shared libraries with undefined symbols to be built.
22227 allow_undefined_flag=$lt_allow_undefined_flag
22229 # Flag that enforces no undefined symbols.
22230 no_undefined_flag=$lt_no_undefined_flag
22232 # Flag to hardcode \$libdir into a binary during linking.
22233 # This must work even if \$libdir does not exist
22234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22236 # Whether we need a single "-rpath" flag with a separated argument.
22237 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22239 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22240 # DIR into the resulting binary.
22241 hardcode_direct=$hardcode_direct
22243 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22244 # DIR into the resulting binary and the resulting library dependency is
22245 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22246 # library is relocated.
22247 hardcode_direct_absolute=$hardcode_direct_absolute
22249 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22250 # into the resulting binary.
22251 hardcode_minus_L=$hardcode_minus_L
22253 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22254 # into the resulting binary.
22255 hardcode_shlibpath_var=$hardcode_shlibpath_var
22257 # Set to "yes" if building a shared library automatically hardcodes DIR
22258 # into the library and all subsequent libraries and executables linked
22259 # against it.
22260 hardcode_automatic=$hardcode_automatic
22262 # Set to yes if linker adds runtime paths of dependent libraries
22263 # to runtime path list.
22264 inherit_rpath=$inherit_rpath
22266 # Whether libtool must link a program against all its dependency libraries.
22267 link_all_deplibs=$link_all_deplibs
22269 # Set to "yes" if exported symbols are required.
22270 always_export_symbols=$always_export_symbols
22272 # The commands to list exported symbols.
22273 export_symbols_cmds=$lt_export_symbols_cmds
22275 # Symbols that should not be listed in the preloaded symbols.
22276 exclude_expsyms=$lt_exclude_expsyms
22278 # Symbols that must always be exported.
22279 include_expsyms=$lt_include_expsyms
22281 # Commands necessary for linking programs (against libraries) with templates.
22282 prelink_cmds=$lt_prelink_cmds
22284 # Commands necessary for finishing linking programs.
22285 postlink_cmds=$lt_postlink_cmds
22287 # Specify filename containing input files.
22288 file_list_spec=$lt_file_list_spec
22290 # How to hardcode a shared library path into an executable.
22291 hardcode_action=$hardcode_action
22293 # The directories searched by this compiler when creating a shared library.
22294 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22296 # Dependencies to place before and after the objects being linked to
22297 # create a shared library.
22298 predep_objects=$lt_predep_objects
22299 postdep_objects=$lt_postdep_objects
22300 predeps=$lt_predeps
22301 postdeps=$lt_postdeps
22303 # The library search path used internally by the compiler when linking
22304 # a shared library.
22305 compiler_lib_search_path=$lt_compiler_lib_search_path
22307 # ### END LIBTOOL CONFIG
22309 _LT_EOF
22311 cat <<'_LT_EOF' >> "$cfgfile"
22313 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22315 # func_munge_path_list VARIABLE PATH
22316 # -----------------------------------
22317 # VARIABLE is name of variable containing _space_ separated list of
22318 # directories to be munged by the contents of PATH, which is string
22319 # having a format:
22320 # "DIR[:DIR]:"
22321 # string "DIR[ DIR]" will be prepended to VARIABLE
22322 # ":DIR[:DIR]"
22323 # string "DIR[ DIR]" will be appended to VARIABLE
22324 # "DIRP[:DIRP]::[DIRA:]DIRA"
22325 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22326 # "DIRA[ DIRA]" will be appended to VARIABLE
22327 # "DIR[:DIR]"
22328 # VARIABLE will be replaced by "DIR[ DIR]"
22329 func_munge_path_list ()
22331 case x$2 in
22335 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22337 x:*)
22338 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22340 *::*)
22341 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22342 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22345 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22347 esac
22351 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22352 func_cc_basename ()
22354 for cc_temp in $*""; do
22355 case $cc_temp in
22356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22358 \-*) ;;
22359 *) break;;
22360 esac
22361 done
22362 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22366 # ### END FUNCTIONS SHARED WITH CONFIGURE
22368 _LT_EOF
22370 case $host_os in
22371 aix3*)
22372 cat <<\_LT_EOF >> "$cfgfile"
22373 # AIX sometimes has problems with the GCC collect2 program. For some
22374 # reason, if we set the COLLECT_NAMES environment variable, the problems
22375 # vanish in a puff of smoke.
22376 if test set != "${COLLECT_NAMES+set}"; then
22377 COLLECT_NAMES=
22378 export COLLECT_NAMES
22380 _LT_EOF
22382 esac
22385 ltmain=$ac_aux_dir/ltmain.sh
22388 # We use sed instead of cat because bash on DJGPP gets confused if
22389 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22390 # text mode, it properly converts lines to CR/LF. This bash problem
22391 # is reportedly fixed, but why not run on old versions too?
22392 sed '$q' "$ltmain" >> "$cfgfile" \
22393 || (rm -f "$cfgfile"; exit 1)
22395 mv -f "$cfgfile" "$ofile" ||
22396 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22397 chmod +x "$ofile"
22400 cat <<_LT_EOF >> "$ofile"
22402 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22404 # The linker used to build libraries.
22405 LD=$lt_LD_CXX
22407 # How to create reloadable object files.
22408 reload_flag=$lt_reload_flag_CXX
22409 reload_cmds=$lt_reload_cmds_CXX
22411 # Commands used to build an old-style archive.
22412 old_archive_cmds=$lt_old_archive_cmds_CXX
22414 # A language specific compiler.
22415 CC=$lt_compiler_CXX
22417 # Is the compiler the GNU compiler?
22418 with_gcc=$GCC_CXX
22420 # Compiler flag to turn off builtin functions.
22421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22423 # Additional compiler flags for building library objects.
22424 pic_flag=$lt_lt_prog_compiler_pic_CXX
22426 # How to pass a linker flag through the compiler.
22427 wl=$lt_lt_prog_compiler_wl_CXX
22429 # Compiler flag to prevent dynamic linking.
22430 link_static_flag=$lt_lt_prog_compiler_static_CXX
22432 # Does compiler simultaneously support -c and -o options?
22433 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22435 # Whether or not to add -lc for building shared libraries.
22436 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22438 # Whether or not to disallow shared libs when runtime libs are static.
22439 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22441 # Compiler flag to allow reflexive dlopens.
22442 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22444 # Compiler flag to generate shared objects directly from archives.
22445 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22447 # Whether the compiler copes with passing no objects directly.
22448 compiler_needs_object=$lt_compiler_needs_object_CXX
22450 # Create an old-style archive from a shared archive.
22451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22453 # Create a temporary old-style archive to link instead of a shared archive.
22454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22456 # Commands used to build a shared archive.
22457 archive_cmds=$lt_archive_cmds_CXX
22458 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22460 # Commands used to build a loadable module if different from building
22461 # a shared archive.
22462 module_cmds=$lt_module_cmds_CXX
22463 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22465 # Whether we are building with GNU ld or not.
22466 with_gnu_ld=$lt_with_gnu_ld_CXX
22468 # Flag that allows shared libraries with undefined symbols to be built.
22469 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22471 # Flag that enforces no undefined symbols.
22472 no_undefined_flag=$lt_no_undefined_flag_CXX
22474 # Flag to hardcode \$libdir into a binary during linking.
22475 # This must work even if \$libdir does not exist
22476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22478 # Whether we need a single "-rpath" flag with a separated argument.
22479 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22481 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22482 # DIR into the resulting binary.
22483 hardcode_direct=$hardcode_direct_CXX
22485 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22486 # DIR into the resulting binary and the resulting library dependency is
22487 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22488 # library is relocated.
22489 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22491 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22492 # into the resulting binary.
22493 hardcode_minus_L=$hardcode_minus_L_CXX
22495 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22496 # into the resulting binary.
22497 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22499 # Set to "yes" if building a shared library automatically hardcodes DIR
22500 # into the library and all subsequent libraries and executables linked
22501 # against it.
22502 hardcode_automatic=$hardcode_automatic_CXX
22504 # Set to yes if linker adds runtime paths of dependent libraries
22505 # to runtime path list.
22506 inherit_rpath=$inherit_rpath_CXX
22508 # Whether libtool must link a program against all its dependency libraries.
22509 link_all_deplibs=$link_all_deplibs_CXX
22511 # Set to "yes" if exported symbols are required.
22512 always_export_symbols=$always_export_symbols_CXX
22514 # The commands to list exported symbols.
22515 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22517 # Symbols that should not be listed in the preloaded symbols.
22518 exclude_expsyms=$lt_exclude_expsyms_CXX
22520 # Symbols that must always be exported.
22521 include_expsyms=$lt_include_expsyms_CXX
22523 # Commands necessary for linking programs (against libraries) with templates.
22524 prelink_cmds=$lt_prelink_cmds_CXX
22526 # Commands necessary for finishing linking programs.
22527 postlink_cmds=$lt_postlink_cmds_CXX
22529 # Specify filename containing input files.
22530 file_list_spec=$lt_file_list_spec_CXX
22532 # How to hardcode a shared library path into an executable.
22533 hardcode_action=$hardcode_action_CXX
22535 # The directories searched by this compiler when creating a shared library.
22536 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22538 # Dependencies to place before and after the objects being linked to
22539 # create a shared library.
22540 predep_objects=$lt_predep_objects_CXX
22541 postdep_objects=$lt_postdep_objects_CXX
22542 predeps=$lt_predeps_CXX
22543 postdeps=$lt_postdeps_CXX
22545 # The library search path used internally by the compiler when linking
22546 # a shared library.
22547 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22549 # ### END LIBTOOL TAG CONFIG: CXX
22550 _LT_EOF
22552 ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs
22553 if test "x$enable_libtool_hack" = xyes; then
22554 $SED '/# Convert "-framework/i\
22555 ## KPSE_LT_HACK: ignore dependency_libs\
22556 test "X$installed" = Xyes && dependency_libs=\
22557 ' "$ofile" >"$cfgfile"
22558 mv "$cfgfile" "$ofile" ||
22559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22560 chmod +x "$ofile"
22564 esac
22565 done # for ac_tag
22568 as_fn_exit 0
22569 _ACEOF
22570 ac_clean_files=$ac_clean_files_save
22572 test $ac_write_fail = 0 ||
22573 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22576 # configure is writing to config.log, and then calls config.status.
22577 # config.status does its own redirection, appending to config.log.
22578 # Unfortunately, on DOS this fails, as config.log is still kept open
22579 # by configure, so config.status won't be able to write to it; its
22580 # output is simply discarded. So we exec the FD to /dev/null,
22581 # effectively closing config.log, so it can be properly (re)opened and
22582 # appended to by config.status. When coming back to configure, we
22583 # need to make the FD available again.
22584 if test "$no_create" != yes; then
22585 ac_cs_success=:
22586 ac_config_status_args=
22587 test "$silent" = yes &&
22588 ac_config_status_args="$ac_config_status_args --quiet"
22589 exec 5>/dev/null
22590 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22591 exec 5>>config.log
22592 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22593 # would make configure fail if this is the last instruction.
22594 $ac_cs_success || as_fn_exit 1
22598 # CONFIG_SUBDIRS section.
22600 if test "$no_recursion" != yes; then
22602 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22603 # so they do not pile up.
22604 ac_sub_configure_args=
22605 ac_prev=
22606 eval "set x $ac_configure_args"
22607 shift
22608 for ac_arg
22610 if test -n "$ac_prev"; then
22611 ac_prev=
22612 continue
22614 case $ac_arg in
22615 -cache-file | --cache-file | --cache-fil | --cache-fi \
22616 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22617 ac_prev=cache_file ;;
22618 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22619 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22620 | --c=*)
22622 --config-cache | -C)
22624 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22625 ac_prev=srcdir ;;
22626 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22628 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22629 ac_prev=prefix ;;
22630 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22632 --disable-option-checking)
22635 case $ac_arg in
22636 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22637 esac
22638 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22639 esac
22640 done
22642 # Always prepend --prefix to ensure using the same prefix
22643 # in subdir configurations.
22644 ac_arg="--prefix=$prefix"
22645 case $ac_arg in
22646 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22647 esac
22648 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22650 # Pass --silent
22651 if test "$silent" = yes; then
22652 ac_sub_configure_args="--silent $ac_sub_configure_args"
22655 # Always prepend --disable-option-checking to silence warnings, since
22656 # different subdirs can have different --enable and --with options.
22657 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22659 ac_popdir=`pwd`
22660 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22662 # Do not complain, so a configure script can configure whichever
22663 # parts of a large source tree are present.
22664 test -d "$srcdir/$ac_dir" || continue
22666 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22667 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22668 $as_echo "$ac_msg" >&6
22669 as_dir="$ac_dir"; as_fn_mkdir_p
22670 ac_builddir=.
22672 case "$ac_dir" in
22673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22676 # A ".." for each directory in $ac_dir_suffix.
22677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22678 case $ac_top_builddir_sub in
22679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22681 esac ;;
22682 esac
22683 ac_abs_top_builddir=$ac_pwd
22684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22685 # for backward compatibility:
22686 ac_top_builddir=$ac_top_build_prefix
22688 case $srcdir in
22689 .) # We are building in place.
22690 ac_srcdir=.
22691 ac_top_srcdir=$ac_top_builddir_sub
22692 ac_abs_top_srcdir=$ac_pwd ;;
22693 [\\/]* | ?:[\\/]* ) # Absolute name.
22694 ac_srcdir=$srcdir$ac_dir_suffix;
22695 ac_top_srcdir=$srcdir
22696 ac_abs_top_srcdir=$srcdir ;;
22697 *) # Relative name.
22698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22699 ac_top_srcdir=$ac_top_build_prefix$srcdir
22700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22701 esac
22702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22705 cd "$ac_dir"
22707 # Check for guested configure; otherwise get Cygnus style configure.
22708 if test -f "$ac_srcdir/configure.gnu"; then
22709 ac_sub_configure=$ac_srcdir/configure.gnu
22710 elif test -f "$ac_srcdir/configure"; then
22711 ac_sub_configure=$ac_srcdir/configure
22712 elif test -f "$ac_srcdir/configure.in"; then
22713 # This should be Cygnus configure.
22714 ac_sub_configure=$ac_aux_dir/configure
22715 else
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22717 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22718 ac_sub_configure=
22721 # The recursion is here.
22722 if test -n "$ac_sub_configure"; then
22723 # Make the cache file name correct relative to the subdirectory.
22724 case $cache_file in
22725 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22726 *) # Relative name.
22727 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22728 esac
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22731 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22732 # The eval makes quoting arguments work.
22733 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22734 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22735 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22738 cd "$ac_popdir"
22739 done
22741 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22743 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22747 if test -z "$kpse_GNU_make"; then
22748 if test "x$enable_native_texlive_build" = xno; then
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building TeX Live may require GNU make" >&5
22750 $as_echo "$as_me: WARNING: Building TeX Live may require GNU make" >&2;}
22751 else
22752 as_fn_error $? "Building TeX Live requires GNU make" "$LINENO" 5
22756 if test "x$cross_compiling" = xyes; then :
22757 msg_compiling="cross-compiling on $build_alias for $host_alias"
22758 else
22759 msg_compiling="compiling for $kpse_build_alias"
22761 kpse_bld=`pwd`
22762 kpse_src=`cd "$srcdir" && pwd`
22763 msg_compiling="$msg_compiling
22764 in $kpse_bld"
22765 test "x$srcdir" = x. || msg_compiling="$msg_compiling
22766 from sources in $kpse_src"
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22768 ** Configuration summary for $PACKAGE_STRING (2017/dev$with_banner_add):
22770 $msg_compiling" >&5
22771 $as_echo "
22772 ** Configuration summary for $PACKAGE_STRING (2017/dev$with_banner_add):
22774 $msg_compiling" >&6; }
22775 case $kpse_src$kpse_bld in
22776 *' '*) as_fn_error $? "Absolute source and/or build path with embedded spaces" "$LINENO" 5;;
22777 esac
22779 cc_version=`$CC --version 2>/dev/null | sed 1q`
22780 test -n "$cc_version" && cc_version=" ($cc_version)"
22782 cxx_version=`$CXX --version 2>/dev/null | sed 1q`
22783 test -n "$cxx_version" && cxx_version=" ($cxx_version)"
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22786 C compiler (CC): $CC$cc_version
22787 C++ compiler (CXX): $CXX$cxx_version
22788 PATH: $PATH
22790 enable_native_texlive_build: $enable_native_texlive_build
22791 enable_largefile: $enable_largefile
22792 enable_shared: $enable_shared
22793 enable_multiplatform: $enable_multiplatform
22794 enable_cxx_runtime_hack: $enable_cxx_runtime_hack
22795 enable_libtool_hack: $enable_libtool_hack
22796 enable_compiler_warnings: $enable_compiler_warnings
22798 prefix: $prefix
22799 includedir: $includedir
22800 datarootdir: $datarootdir
22801 mandir: $mandir
22802 infodir: $infodir
22803 exec_prefix: $exec_prefix
22804 bindir: $bindir
22805 libdir: $libdir
22807 ** Next run \`make' to configure and build each library and program.
22808 " >&5
22809 $as_echo "
22810 C compiler (CC): $CC$cc_version
22811 C++ compiler (CXX): $CXX$cxx_version
22812 PATH: $PATH
22814 enable_native_texlive_build: $enable_native_texlive_build
22815 enable_largefile: $enable_largefile
22816 enable_shared: $enable_shared
22817 enable_multiplatform: $enable_multiplatform
22818 enable_cxx_runtime_hack: $enable_cxx_runtime_hack
22819 enable_libtool_hack: $enable_libtool_hack
22820 enable_compiler_warnings: $enable_compiler_warnings
22822 prefix: $prefix
22823 includedir: $includedir
22824 datarootdir: $datarootdir
22825 mandir: $mandir
22826 infodir: $infodir
22827 exec_prefix: $exec_prefix
22828 bindir: $bindir
22829 libdir: $libdir
22831 ** Next run \`make' to configure and build each library and program.
22832 " >&6; }