beta-0.89.2
[luatex.git] / source / texk / web2c / configure
blobe8b1a6123452fd457935f2ab12367bd220dc6023
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Web2C 2016/dev.
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='Web2C'
592 PACKAGE_TARNAME='web2c'
593 PACKAGE_VERSION='2016/dev'
594 PACKAGE_STRING='Web2C 2016/dev'
595 PACKAGE_BUGREPORT='tex-k@tug.org'
596 PACKAGE_URL=''
598 ac_unique_file="cpascal.h"
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 subdirs
641 LIBSYNCTEX
642 LTLIBSYNCTEX
643 SYNCTEX_FALSE
644 SYNCTEX_TRUE
645 SYNCTEX_LT_VERSINFO
646 SYNCTEXVERSION
647 OTANGLE
649 CTANGLE
650 CTANGLEBOOT
651 TANGLE
652 TANGLEBOOT
653 KPATHSEA_PATHS_H
654 HARFBUZZ_RULE
655 HARFBUZZ_DEPEND
656 HARFBUZZ_LIBS
657 HARFBUZZ_INCLUDES
658 GRAPHITE2_RULE
659 GRAPHITE2_DEPEND
660 GRAPHITE2_LIBS
661 GRAPHITE2_INCLUDES
662 ICU_RULE
663 ICU_DEPEND
664 ICU_LIBS
665 ICU_INCLUDES
666 ICU_CONFIG
667 TECKIT_RULE
668 TECKIT_DEPEND
669 TECKIT_LIBS
670 TECKIT_INCLUDES
671 ZZIPLIB_RULE
672 ZZIPLIB_DEPEND
673 ZZIPLIB_LIBS
674 ZZIPLIB_INCLUDES
675 XPDF_RULE
676 XPDF_DEPEND
677 XPDF_LIBS
678 XPDF_INCLUDES
679 POPPLER_RULE
680 POPPLER_DEPEND
681 POPPLER_LIBS
682 POPPLER_INCLUDES
683 MPFR_RULE
684 MPFR_DEPEND
685 MPFR_LIBS
686 MPFR_INCLUDES
687 GMP_RULE
688 GMP_DEPEND
689 GMP_LIBS
690 GMP_INCLUDES
691 CAIRO_RULE
692 CAIRO_DEPEND
693 CAIRO_LIBS
694 CAIRO_INCLUDES
695 PIXMAN_RULE
696 PIXMAN_DEPEND
697 PIXMAN_LIBS
698 PIXMAN_INCLUDES
699 FREETYPE2_RULE
700 FREETYPE2_DEPEND
701 FREETYPE2_LIBS
702 FREETYPE2_INCLUDES
703 FT2_CONFIG
704 LIBPNG_RULE
705 LIBPNG_DEPEND
706 LIBPNG_LIBS
707 LIBPNG_INCLUDES
708 LUAJIT_RULE
709 LUAJIT_DEPEND
710 LUAJIT_LIBS
711 LUAJIT_INCLUDES
712 LUA52_RULE
713 LUA52_DEPEND
714 LUA52_LIBS
715 LUA52_INCLUDES
716 ZLIB_RULE
717 ZLIB_DEPEND
718 ZLIB_LIBS
719 ZLIB_INCLUDES
720 PTEXENC_RULE
721 PTEXENC_DEPEND
722 PTEXENC_LIBS
723 PTEXENC_INCLUDES
724 KPATHSEA_RULE
725 KPATHSEA_DEPEND
726 KPATHSEA_LIBS
727 KPATHSEA_INCLUDES
728 LEXLIB
729 LEX_OUTPUT_ROOT
731 YFLAGS
732 YACC
733 UPWEB_FALSE
734 UPWEB_TRUE
735 PWEB_FALSE
736 PWEB_TRUE
737 WEB_FALSE
738 WEB_TRUE
739 wlibs
740 x_tool_libs
741 x_ext_lib
742 MFXT_FALSE
743 MFXT_TRUE
744 X_EXTRA_LIBS
745 X_LIBS
746 X_PRE_LIBS
747 X_CFLAGS
748 XMKMF
749 MFLUAJITN_FALSE
750 MFLUAJITN_TRUE
751 MFLUAJIT_FALSE
752 MFLUAJIT_TRUE
753 MFLUAN_FALSE
754 MFLUAN_TRUE
755 MFLUA_FALSE
756 MFLUA_TRUE
757 MFN_FALSE
758 MFN_TRUE
759 MF_FALSE
760 MF_TRUE
761 OTANGLE_FALSE
762 OTANGLE_TRUE
763 XETEX_SYNCTEX_FALSE
764 XETEX_SYNCTEX_TRUE
765 XETEX_FALSE
766 XETEX_TRUE
767 UPMP_FALSE
768 UPMP_TRUE
769 PMP_FALSE
770 PMP_TRUE
771 MP_FALSE
772 MP_TRUE
773 LUAJITTEX_FALSE
774 LUAJITTEX_TRUE
775 LUATEX_FALSE
776 LUATEX_TRUE
777 PDFTEX_SYNCTEX_FALSE
778 PDFTEX_SYNCTEX_TRUE
779 PDFTEX_FALSE
780 PDFTEX_TRUE
781 ALEPH_FALSE
782 ALEPH_TRUE
783 EUPTEX_SYNCTEX_FALSE
784 EUPTEX_SYNCTEX_TRUE
785 EUPTEX_FALSE
786 EUPTEX_TRUE
787 UPTEX_SYNCTEX_FALSE
788 UPTEX_SYNCTEX_TRUE
789 UPTEX_FALSE
790 UPTEX_TRUE
791 EPTEX_SYNCTEX_FALSE
792 EPTEX_SYNCTEX_TRUE
793 EPTEX_FALSE
794 EPTEX_TRUE
795 PTEX_SYNCTEX_FALSE
796 PTEX_SYNCTEX_TRUE
797 PTEX_FALSE
798 PTEX_TRUE
799 ETEX_SYNCTEX_FALSE
800 ETEX_SYNCTEX_TRUE
801 ETEX_FALSE
802 ETEX_TRUE
803 TEX_SYNCTEX_FALSE
804 TEX_SYNCTEX_TRUE
805 TEX_FALSE
806 TEX_TRUE
807 XETEX_MACOSX_FALSE
808 XETEX_MACOSX_TRUE
809 FONTCONFIG_LIBS
810 FONTCONFIG_INCLUDES
811 PKG_CONFIG
812 ipc_socketlibs
813 lua_socketlibs
814 USE_DLOPEN_FALSE
815 USE_DLOPEN_TRUE
816 LUAJIT_LDEXTRA
817 LUAJIT_DEFINES
818 LUA52_DEFINES
819 WIN32_CALL_FALSE
820 WIN32_CALL_TRUE
821 MINGW32_FALSE
822 MINGW32_TRUE
823 WIN32_FALSE
824 WIN32_TRUE
825 KPSEWHICH
826 CXXLD
827 WARNING_OBJCXXFLAGS
828 am__fastdepOBJCXX_FALSE
829 am__fastdepOBJCXX_TRUE
830 OBJCXXDEPMODE
831 ac_ct_OBJCXX
832 OBJCXXFLAGS
833 OBJCXX
834 CXXCPP
835 WARNING_CXXFLAGS
836 am__fastdepCXX_FALSE
837 am__fastdepCXX_TRUE
838 CXXDEPMODE
839 ac_ct_CXX
840 CXXFLAGS
842 cross_FALSE
843 cross_TRUE
845 LT_SYS_LIBRARY_PATH
846 OTOOL64
847 OTOOL
848 LIPO
849 NMEDIT
850 DSYMUTIL
851 MANIFEST_TOOL
852 RANLIB
853 ac_ct_AR
855 LN_S
857 ac_ct_DUMPBIN
858 DUMPBIN
860 FGREP
861 EGREP
862 GREP
864 host_os
865 host_vendor
866 host_cpu
867 host
868 build_os
869 build_vendor
870 build_cpu
871 build
872 LIBTOOL
873 OBJDUMP
874 DLLTOOL
876 WARNING_CFLAGS
877 am__fastdepCC_FALSE
878 am__fastdepCC_TRUE
879 CCDEPMODE
880 am__nodep
881 AMDEPBACKSLASH
882 AMDEP_FALSE
883 AMDEP_TRUE
884 am__quote
885 am__include
886 DEPDIR
887 OBJEXT
888 EXEEXT
889 ac_ct_CC
890 CPPFLAGS
891 LDFLAGS
892 CFLAGS
894 MAINT
895 MAINTAINER_MODE_FALSE
896 MAINTAINER_MODE_TRUE
897 AM_BACKSLASH
898 AM_DEFAULT_VERBOSITY
899 AM_DEFAULT_V
900 AM_V
901 am__untar
902 am__tar
903 AMTAR
904 am__leading_dot
905 SET_MAKE
907 mkdir_p
908 MKDIR_P
909 INSTALL_STRIP_PROGRAM
910 STRIP
911 install_sh
912 MAKEINFO
913 AUTOHEADER
914 AUTOMAKE
915 AUTOCONF
916 ACLOCAL
917 VERSION
918 PACKAGE
919 CYGPATH_W
920 am__isrc
921 INSTALL_DATA
922 INSTALL_SCRIPT
923 INSTALL_PROGRAM
924 WEB2CVERSION
925 target_alias
926 host_alias
927 build_alias
928 LIBS
929 ECHO_T
930 ECHO_N
931 ECHO_C
932 DEFS
933 mandir
934 localedir
935 libdir
936 psdir
937 pdfdir
938 dvidir
939 htmldir
940 infodir
941 docdir
942 oldincludedir
943 includedir
944 localstatedir
945 sharedstatedir
946 sysconfdir
947 datadir
948 datarootdir
949 libexecdir
950 sbindir
951 bindir
952 program_transform_name
953 prefix
954 exec_prefix
955 PACKAGE_URL
956 PACKAGE_BUGREPORT
957 PACKAGE_STRING
958 PACKAGE_VERSION
959 PACKAGE_TARNAME
960 PACKAGE_NAME
961 PATH_SEPARATOR
962 SHELL'
963 ac_subst_files=''
964 ac_user_opts='
965 enable_option_checking
966 enable_silent_rules
967 enable_maintainer_mode
968 enable_dependency_tracking
969 enable_compiler_warnings
970 enable_shared
971 enable_static
972 with_pic
973 enable_fast_install
974 with_aix_soname
975 with_gnu_ld
976 with_sysroot
977 enable_libtool_lock
978 enable_largefile
979 enable_cxx_runtime_hack
980 enable_libtool_hack
981 with_banner_add
982 with_editor
983 enable_auto_core
984 enable_dump_share
985 enable_ipc
986 enable_tex
987 enable_tex_synctex
988 enable_etex
989 enable_etex_synctex
990 enable_ptex
991 enable_ptex_synctex
992 enable_eptex
993 enable_eptex_synctex
994 enable_uptex
995 enable_uptex_synctex
996 enable_euptex
997 enable_euptex_synctex
998 enable_aleph
999 enable_pdftex
1000 enable_pdftex_synctex
1001 enable_luatex
1002 enable_luajittex
1003 enable_mp
1004 enable_pmp
1005 enable_upmp
1006 enable_xetex
1007 enable_xetex_synctex
1008 enable_mf
1009 enable_mf_nowin
1010 enable_mflua
1011 enable_mflua_nowin
1012 enable_mfluajit
1013 enable_mfluajit_nowin
1014 with_mf_x_toolkit
1015 enable_epsfwin
1016 enable_hp2627win
1017 enable_mftalkwin
1018 enable_nextwin
1019 enable_regiswin
1020 enable_suntoolswin
1021 enable_tektronixwin
1022 enable_unitermwin
1023 enable_web_progs
1024 enable_synctex
1025 enable_missing
1026 with_fontconfig_includes
1027 with_fontconfig_libdir
1028 with_x
1029 with_system_kpathsea
1030 with_system_ptexenc
1031 with_system_zlib
1032 with_zlib_includes
1033 with_zlib_libdir
1034 with_system_libpng
1035 with_system_freetype2
1036 with_system_pixman
1037 with_system_cairo
1038 with_system_gmp
1039 with_gmp_includes
1040 with_gmp_libdir
1041 with_system_mpfr
1042 with_mpfr_includes
1043 with_mpfr_libdir
1044 with_system_poppler
1045 with_system_xpdf
1046 with_system_zziplib
1047 with_system_teckit
1048 with_system_icu
1049 with_system_graphite2
1050 with_system_harfbuzz
1052 ac_precious_vars='build_alias
1053 host_alias
1054 target_alias
1056 CFLAGS
1057 LDFLAGS
1058 LIBS
1059 CPPFLAGS
1060 LT_SYS_LIBRARY_PATH
1063 CXXFLAGS
1065 CXXCPP
1066 OBJCXX
1067 OBJCXXFLAGS
1068 XMKMF
1069 YACC
1070 YFLAGS'
1071 ac_subdirs_all='web2c'
1073 # Initialize some variables set by options.
1074 ac_init_help=
1075 ac_init_version=false
1076 ac_unrecognized_opts=
1077 ac_unrecognized_sep=
1078 # The variables have the same names as the options, with
1079 # dashes changed to underlines.
1080 cache_file=/dev/null
1081 exec_prefix=NONE
1082 no_create=
1083 no_recursion=
1084 prefix=NONE
1085 program_prefix=NONE
1086 program_suffix=NONE
1087 program_transform_name=s,x,x,
1088 silent=
1089 site=
1090 srcdir=
1091 verbose=
1092 x_includes=NONE
1093 x_libraries=NONE
1095 # Installation directory options.
1096 # These are left unexpanded so users can "make install exec_prefix=/foo"
1097 # and all the variables that are supposed to be based on exec_prefix
1098 # by default will actually change.
1099 # Use braces instead of parens because sh, perl, etc. also accept them.
1100 # (The list follows the same order as the GNU Coding Standards.)
1101 bindir='${exec_prefix}/bin'
1102 sbindir='${exec_prefix}/sbin'
1103 libexecdir='${exec_prefix}/libexec'
1104 datarootdir='${prefix}/share'
1105 datadir='${datarootdir}'
1106 sysconfdir='${prefix}/etc'
1107 sharedstatedir='${prefix}/com'
1108 localstatedir='${prefix}/var'
1109 includedir='${prefix}/include'
1110 oldincludedir='/usr/include'
1111 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1112 infodir='${datarootdir}/info'
1113 htmldir='${docdir}'
1114 dvidir='${docdir}'
1115 pdfdir='${docdir}'
1116 psdir='${docdir}'
1117 libdir='${exec_prefix}/lib'
1118 localedir='${datarootdir}/locale'
1119 mandir='${datarootdir}/man'
1121 ac_prev=
1122 ac_dashdash=
1123 for ac_option
1125 # If the previous option needs an argument, assign it.
1126 if test -n "$ac_prev"; then
1127 eval $ac_prev=\$ac_option
1128 ac_prev=
1129 continue
1132 case $ac_option in
1133 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1134 *=) ac_optarg= ;;
1135 *) ac_optarg=yes ;;
1136 esac
1138 # Accept the important Cygnus configure options, so we can diagnose typos.
1140 case $ac_dashdash$ac_option in
1142 ac_dashdash=yes ;;
1144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1145 ac_prev=bindir ;;
1146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147 bindir=$ac_optarg ;;
1149 -build | --build | --buil | --bui | --bu)
1150 ac_prev=build_alias ;;
1151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152 build_alias=$ac_optarg ;;
1154 -cache-file | --cache-file | --cache-fil | --cache-fi \
1155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156 ac_prev=cache_file ;;
1157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159 cache_file=$ac_optarg ;;
1161 --config-cache | -C)
1162 cache_file=config.cache ;;
1164 -datadir | --datadir | --datadi | --datad)
1165 ac_prev=datadir ;;
1166 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167 datadir=$ac_optarg ;;
1169 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170 | --dataroo | --dataro | --datar)
1171 ac_prev=datarootdir ;;
1172 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174 datarootdir=$ac_optarg ;;
1176 -disable-* | --disable-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid feature name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "enable_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval enable_$ac_useropt=no ;;
1192 -docdir | --docdir | --docdi | --doc | --do)
1193 ac_prev=docdir ;;
1194 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1195 docdir=$ac_optarg ;;
1197 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198 ac_prev=dvidir ;;
1199 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1200 dvidir=$ac_optarg ;;
1202 -enable-* | --enable-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid feature name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "enable_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval enable_$ac_useropt=\$ac_optarg ;;
1218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1220 | --exec | --exe | --ex)
1221 ac_prev=exec_prefix ;;
1222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1224 | --exec=* | --exe=* | --ex=*)
1225 exec_prefix=$ac_optarg ;;
1227 -gas | --gas | --ga | --g)
1228 # Obsolete; use --with-gas.
1229 with_gas=yes ;;
1231 -help | --help | --hel | --he | -h)
1232 ac_init_help=long ;;
1233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1234 ac_init_help=recursive ;;
1235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1236 ac_init_help=short ;;
1238 -host | --host | --hos | --ho)
1239 ac_prev=host_alias ;;
1240 -host=* | --host=* | --hos=* | --ho=*)
1241 host_alias=$ac_optarg ;;
1243 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1244 ac_prev=htmldir ;;
1245 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1246 | --ht=*)
1247 htmldir=$ac_optarg ;;
1249 -includedir | --includedir | --includedi | --included | --include \
1250 | --includ | --inclu | --incl | --inc)
1251 ac_prev=includedir ;;
1252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1253 | --includ=* | --inclu=* | --incl=* | --inc=*)
1254 includedir=$ac_optarg ;;
1256 -infodir | --infodir | --infodi | --infod | --info | --inf)
1257 ac_prev=infodir ;;
1258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1259 infodir=$ac_optarg ;;
1261 -libdir | --libdir | --libdi | --libd)
1262 ac_prev=libdir ;;
1263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1264 libdir=$ac_optarg ;;
1266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1267 | --libexe | --libex | --libe)
1268 ac_prev=libexecdir ;;
1269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1270 | --libexe=* | --libex=* | --libe=*)
1271 libexecdir=$ac_optarg ;;
1273 -localedir | --localedir | --localedi | --localed | --locale)
1274 ac_prev=localedir ;;
1275 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1276 localedir=$ac_optarg ;;
1278 -localstatedir | --localstatedir | --localstatedi | --localstated \
1279 | --localstate | --localstat | --localsta | --localst | --locals)
1280 ac_prev=localstatedir ;;
1281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1282 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1283 localstatedir=$ac_optarg ;;
1285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1286 ac_prev=mandir ;;
1287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1288 mandir=$ac_optarg ;;
1290 -nfp | --nfp | --nf)
1291 # Obsolete; use --without-fp.
1292 with_fp=no ;;
1294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1295 | --no-cr | --no-c | -n)
1296 no_create=yes ;;
1298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1300 no_recursion=yes ;;
1302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1304 | --oldin | --oldi | --old | --ol | --o)
1305 ac_prev=oldincludedir ;;
1306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1309 oldincludedir=$ac_optarg ;;
1311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1312 ac_prev=prefix ;;
1313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1314 prefix=$ac_optarg ;;
1316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1317 | --program-pre | --program-pr | --program-p)
1318 ac_prev=program_prefix ;;
1319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1321 program_prefix=$ac_optarg ;;
1323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1324 | --program-suf | --program-su | --program-s)
1325 ac_prev=program_suffix ;;
1326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1328 program_suffix=$ac_optarg ;;
1330 -program-transform-name | --program-transform-name \
1331 | --program-transform-nam | --program-transform-na \
1332 | --program-transform-n | --program-transform- \
1333 | --program-transform | --program-transfor \
1334 | --program-transfo | --program-transf \
1335 | --program-trans | --program-tran \
1336 | --progr-tra | --program-tr | --program-t)
1337 ac_prev=program_transform_name ;;
1338 -program-transform-name=* | --program-transform-name=* \
1339 | --program-transform-nam=* | --program-transform-na=* \
1340 | --program-transform-n=* | --program-transform-=* \
1341 | --program-transform=* | --program-transfor=* \
1342 | --program-transfo=* | --program-transf=* \
1343 | --program-trans=* | --program-tran=* \
1344 | --progr-tra=* | --program-tr=* | --program-t=*)
1345 program_transform_name=$ac_optarg ;;
1347 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1348 ac_prev=pdfdir ;;
1349 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1350 pdfdir=$ac_optarg ;;
1352 -psdir | --psdir | --psdi | --psd | --ps)
1353 ac_prev=psdir ;;
1354 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1355 psdir=$ac_optarg ;;
1357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1358 | -silent | --silent | --silen | --sile | --sil)
1359 silent=yes ;;
1361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1362 ac_prev=sbindir ;;
1363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1364 | --sbi=* | --sb=*)
1365 sbindir=$ac_optarg ;;
1367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1369 | --sharedst | --shareds | --shared | --share | --shar \
1370 | --sha | --sh)
1371 ac_prev=sharedstatedir ;;
1372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1375 | --sha=* | --sh=*)
1376 sharedstatedir=$ac_optarg ;;
1378 -site | --site | --sit)
1379 ac_prev=site ;;
1380 -site=* | --site=* | --sit=*)
1381 site=$ac_optarg ;;
1383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1384 ac_prev=srcdir ;;
1385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1386 srcdir=$ac_optarg ;;
1388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1389 | --syscon | --sysco | --sysc | --sys | --sy)
1390 ac_prev=sysconfdir ;;
1391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1393 sysconfdir=$ac_optarg ;;
1395 -target | --target | --targe | --targ | --tar | --ta | --t)
1396 ac_prev=target_alias ;;
1397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1398 target_alias=$ac_optarg ;;
1400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401 verbose=yes ;;
1403 -version | --version | --versio | --versi | --vers | -V)
1404 ac_init_version=: ;;
1406 -with-* | --with-*)
1407 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410 as_fn_error $? "invalid package name: $ac_useropt"
1411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1415 "with_$ac_useropt"
1416 "*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=\$ac_optarg ;;
1422 -without-* | --without-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426 as_fn_error $? "invalid package name: $ac_useropt"
1427 ac_useropt_orig=$ac_useropt
1428 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1431 "with_$ac_useropt"
1432 "*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval with_$ac_useropt=no ;;
1438 --x)
1439 # Obsolete; use --with-x.
1440 with_x=yes ;;
1442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443 | --x-incl | --x-inc | --x-in | --x-i)
1444 ac_prev=x_includes ;;
1445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1447 x_includes=$ac_optarg ;;
1449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451 ac_prev=x_libraries ;;
1452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1454 x_libraries=$ac_optarg ;;
1456 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1457 Try \`$0 --help' for more information"
1460 *=*)
1461 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1462 # Reject names that are not valid shell variable names.
1463 case $ac_envvar in #(
1464 '' | [0-9]* | *[!_$as_cr_alnum]* )
1465 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1466 esac
1467 eval $ac_envvar=\$ac_optarg
1468 export $ac_envvar ;;
1471 # FIXME: should be removed in autoconf 3.0.
1472 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1473 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1474 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1475 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1478 esac
1479 done
1481 if test -n "$ac_prev"; then
1482 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483 as_fn_error $? "missing argument to $ac_option"
1486 if test -n "$ac_unrecognized_opts"; then
1487 case $enable_option_checking in
1488 no) ;;
1489 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1490 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1491 esac
1494 # Check all directory arguments for consistency.
1495 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1496 datadir sysconfdir sharedstatedir localstatedir includedir \
1497 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1498 libdir localedir mandir
1500 eval ac_val=\$$ac_var
1501 # Remove trailing slashes.
1502 case $ac_val in
1503 */ )
1504 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505 eval $ac_var=\$ac_val;;
1506 esac
1507 # Be sure to have absolute directory names.
1508 case $ac_val in
1509 [\\/$]* | ?:[\\/]* ) continue;;
1510 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1511 esac
1512 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1513 done
1515 # There might be people who depend on the old broken behavior: `$host'
1516 # used to hold the argument of --host etc.
1517 # FIXME: To remove some day.
1518 build=$build_alias
1519 host=$host_alias
1520 target=$target_alias
1522 # FIXME: To remove some day.
1523 if test "x$host_alias" != x; then
1524 if test "x$build_alias" = x; then
1525 cross_compiling=maybe
1526 elif test "x$build_alias" != "x$host_alias"; then
1527 cross_compiling=yes
1531 ac_tool_prefix=
1532 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1534 test "$silent" = yes && exec 6>/dev/null
1537 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1538 ac_ls_di=`ls -di .` &&
1539 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1540 as_fn_error $? "working directory cannot be determined"
1541 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1542 as_fn_error $? "pwd does not report name of working directory"
1545 # Find the source files, if location was not specified.
1546 if test -z "$srcdir"; then
1547 ac_srcdir_defaulted=yes
1548 # Try the directory containing this script, then the parent directory.
1549 ac_confdir=`$as_dirname -- "$as_myself" ||
1550 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1551 X"$as_myself" : 'X\(//\)[^/]' \| \
1552 X"$as_myself" : 'X\(//\)$' \| \
1553 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1554 $as_echo X"$as_myself" |
1555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1556 s//\1/
1559 /^X\(\/\/\)[^/].*/{
1560 s//\1/
1563 /^X\(\/\/\)$/{
1564 s//\1/
1567 /^X\(\/\).*/{
1568 s//\1/
1571 s/.*/./; q'`
1572 srcdir=$ac_confdir
1573 if test ! -r "$srcdir/$ac_unique_file"; then
1574 srcdir=..
1576 else
1577 ac_srcdir_defaulted=no
1579 if test ! -r "$srcdir/$ac_unique_file"; then
1580 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1581 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1583 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1584 ac_abs_confdir=`(
1585 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1586 pwd)`
1587 # When building in place, set srcdir=.
1588 if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 srcdir=.
1591 # Remove unnecessary trailing slashes from srcdir.
1592 # Double slashes in file names in object file debugging info
1593 # mess up M-x gdb in Emacs.
1594 case $srcdir in
1595 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1596 esac
1597 for ac_var in $ac_precious_vars; do
1598 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1599 eval ac_env_${ac_var}_value=\$${ac_var}
1600 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1601 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1602 done
1605 # Report the --help message.
1607 if test "$ac_init_help" = "long"; then
1608 # Omit some internal or obsolete options to make the list less imposing.
1609 # This message is too long to be a string in the A/UX 3.1 sh.
1610 cat <<_ACEOF
1611 \`configure' configures Web2C 2016/dev to adapt to many kinds of systems.
1613 Usage: $0 [OPTION]... [VAR=VALUE]...
1615 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1616 VAR=VALUE. See below for descriptions of some of the useful variables.
1618 Defaults for the options are specified in brackets.
1620 Configuration:
1621 -h, --help display this help and exit
1622 --help=short display options specific to this package
1623 --help=recursive display the short help of all the included packages
1624 -V, --version display version information and exit
1625 -q, --quiet, --silent do not print \`checking ...' messages
1626 --cache-file=FILE cache test results in FILE [disabled]
1627 -C, --config-cache alias for \`--cache-file=config.cache'
1628 -n, --no-create do not create output files
1629 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1631 Installation directories:
1632 --prefix=PREFIX install architecture-independent files in PREFIX
1633 [$ac_default_prefix]
1634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1635 [PREFIX]
1637 By default, \`make install' will install all the files in
1638 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1639 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1640 for instance \`--prefix=\$HOME'.
1642 For better control, use the options below.
1644 Fine tuning of the installation directories:
1645 --bindir=DIR user executables [EPREFIX/bin]
1646 --sbindir=DIR system admin executables [EPREFIX/sbin]
1647 --libexecdir=DIR program executables [EPREFIX/libexec]
1648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1651 --libdir=DIR object code libraries [EPREFIX/lib]
1652 --includedir=DIR C header files [PREFIX/include]
1653 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1654 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1655 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1656 --infodir=DIR info documentation [DATAROOTDIR/info]
1657 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1658 --mandir=DIR man documentation [DATAROOTDIR/man]
1659 --docdir=DIR documentation root [DATAROOTDIR/doc/web2c]
1660 --htmldir=DIR html documentation [DOCDIR]
1661 --dvidir=DIR dvi documentation [DOCDIR]
1662 --pdfdir=DIR pdf documentation [DOCDIR]
1663 --psdir=DIR ps documentation [DOCDIR]
1664 _ACEOF
1666 cat <<\_ACEOF
1668 Program names:
1669 --program-prefix=PREFIX prepend PREFIX to installed program names
1670 --program-suffix=SUFFIX append SUFFIX to installed program names
1671 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1673 X features:
1674 --x-includes=DIR X include files are in DIR
1675 --x-libraries=DIR X library files are in DIR
1677 System types:
1678 --build=BUILD configure for building on BUILD [guessed]
1679 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1680 _ACEOF
1683 if test -n "$ac_init_help"; then
1684 case $ac_init_help in
1685 short | recursive ) echo "Configuration of Web2C 2016/dev:";;
1686 esac
1687 cat <<\_ACEOF
1689 Optional Features:
1690 --disable-option-checking ignore unrecognized --enable/--with options
1691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1693 --enable-silent-rules less verbose build output (undo: "make V=1")
1694 --disable-silent-rules verbose build output (undo: "make V=0")
1695 --enable-maintainer-mode
1696 enable make rules and dependencies not useful (and
1697 sometimes confusing) to the casual installer
1698 --enable-dependency-tracking
1699 do not reject slow dependency extractors
1700 --disable-dependency-tracking
1701 speeds up one-time build
1702 --enable-compiler-warnings=[no|min|yes|max|all]
1703 Turn on compiler warnings [default: yes if
1704 maintainer-mode, min otherwise]
1705 --enable-shared[=PKGS] build shared libraries [default=yes]
1706 --enable-static[=PKGS] build static libraries [default=yes]
1707 --enable-fast-install[=PKGS]
1708 optimize for fast installation [default=yes]
1709 --disable-libtool-lock avoid locking (might break parallel builds)
1710 --disable-largefile omit support for large files
1711 --enable-cxx-runtime-hack link C++ runtime statically
1712 --enable-libtool-hack ignore libtool dependency_libs
1713 --enable-auto-core cause TeX&MF to dump core, given a certain filename
1714 --disable-dump-share make fmt/base files architecture-dependent
1715 --disable-ipc disable TeX's --ipc option, i.e., pipe to a program
1716 --disable-tex do not compile and install TeX
1717 --enable-tex-synctex build TeX with SyncTeX support
1718 --enable-etex compile and install e-TeX
1719 --disable-etex-synctex build e-TeX without SyncTeX support
1720 --disable-ptex do not compile and install pTeX
1721 --disable-ptex-synctex build pTeX without SyncTeX support
1722 --disable-eptex do not compile and install e-pTeX
1723 --disable-eptex-synctex build e-pTeX without SyncTeX support
1724 --disable-uptex do not compile and install upTeX
1725 --disable-uptex-synctex build upTeX without SyncTeX support
1726 --disable-euptex do not compile and install e-upTeX
1727 --disable-euptex-synctex build e-upTeX without SyncTeX support
1728 --disable-aleph do not compile and install Aleph
1729 --disable-pdftex do not compile and install pdfTeX
1730 --disable-pdftex-synctex build pdfTeX without SyncTeX support
1731 --disable-luatex do not compile and install LuaTeX
1732 --disable-luajittex do not compile and install LuaJITTeX
1733 --disable-mp do not compile and install MetaPost
1734 --disable-pmp do not compile and install pMetaPost
1735 --disable-upmp do not compile and install upMetaPost
1736 --disable-xetex do not compile and install XeTeX
1737 --disable-xetex-synctex build XeTeX without SyncTeX support
1738 --disable-mf do not compile and install METAFONT
1739 --disable-mf-nowin do not build a separate non-window-capable
1740 METAFONT
1741 --disable-mflua do not compile and install MFLua
1742 --enable-mflua-nowin build a separate non-window-capable MFLua
1743 --disable-mfluajit do not compile and install MFLuaJIT
1744 --enable-mfluajit-nowin build a separate non-window-capable MFLuaJIT
1745 --enable-epsfwin include EPSF pseudo window support
1746 --enable-hp2627win include HP 2627 window support
1747 --enable-mftalkwin include mftalk (generic server) window support
1748 --enable-nextwin include NeXT window support
1749 --enable-regiswin include Regis window support
1750 --enable-suntoolswin include old Suntools (not X) window support
1751 --enable-tektronixwin include Tektronix window support
1752 --enable-unitermwin include Uniterm window support
1753 --disable-web-progs do not build WEB programs bibtex ... weave
1754 --disable-synctex do not build the SyncTeX library and tool
1755 --disable-missing terminate if a requested program or feature must be
1756 disabled, e.g., due to missing libraries
1758 Optional Packages:
1759 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1760 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1761 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1762 both]
1763 --with-aix-soname=aix|svr4|both
1764 shared library versioning (aka "SONAME") variant to
1765 provide on AIX, [default=aix].
1766 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1767 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1768 compiler's sysroot if not specified).
1769 --with-banner-add=STR add STR to version string appended to banner lines
1770 --with-editor=CMD invoke CMD from the `e' option [vi +%d '%s'] or
1771 [texworks --position=%d "%s"]
1772 --with-mf-x-toolkit use X toolkit for METAFONT
1773 --with-fontconfig-includes=DIR
1774 fontconfig headers installed in DIR
1775 --with-fontconfig-libdir=DIR
1776 fontconfig library installed in DIR
1777 --with-x use the X Window System
1778 --with-system-kpathsea use installed kpathsea headers and library (requires
1779 pkg-config)
1780 --with-system-ptexenc use installed ptexenc headers and library (requires
1781 pkg-config)
1782 --with-system-zlib use installed zlib headers and library
1783 --with-zlib-includes=DIR
1784 zlib headers installed in DIR
1785 --with-zlib-libdir=DIR zlib library installed in DIR
1786 --with-system-libpng use installed libpng headers and library (requires
1787 pkg-config)
1788 --with-system-freetype2 use installed freetype2 headers and library
1789 (requires freetype-config)
1790 --with-system-pixman use installed pixman headers and library (requires
1791 pkg-config)
1792 --with-system-cairo use installed cairo headers and library (requires
1793 pkg-config)
1794 --with-system-gmp use installed gmp headers and library
1795 --with-gmp-includes=DIR gmp headers installed in DIR
1796 --with-gmp-libdir=DIR gmp library installed in DIR
1797 --with-system-mpfr use installed mpfr headers and library
1798 --with-mpfr-includes=DIR
1799 mpfr headers installed in DIR
1800 --with-mpfr-libdir=DIR mpfr library installed in DIR
1801 --with-system-poppler use installed poppler headers and library (requires
1802 pkg-config)
1803 --with-system-xpdf use installed poppler headers and library instead of
1804 xpdf library from TL (requires pkg-config)
1805 --with-system-zziplib use installed zziplib headers and library (requires
1806 pkg-config)
1807 --with-system-teckit use installed teckit headers and library (requires
1808 pkg-config)
1809 --with-system-icu use installed ICU headers and libraries (requires
1810 icu-config)
1811 --with-system-graphite2 use installed graphite2 headers and library
1812 (requires pkg-config)
1813 --with-system-harfbuzz use installed harfbuzz headers and library (requires
1814 pkg-config)
1816 Some influential environment variables:
1817 CC C compiler command
1818 CFLAGS C compiler flags
1819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1820 nonstandard directory <lib dir>
1821 LIBS libraries to pass to the linker, e.g. -l<library>
1822 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1823 you have headers in a nonstandard directory <include dir>
1824 LT_SYS_LIBRARY_PATH
1825 User-defined run-time library search path.
1826 CPP C preprocessor
1827 CXX C++ compiler command
1828 CXXFLAGS C++ compiler flags
1829 CXXCPP C++ preprocessor
1830 OBJCXX Objective C++ compiler command
1831 OBJCXXFLAGS Objective C++ compiler flags
1832 XMKMF Path to xmkmf, Makefile generator for X Window System
1833 YACC The `Yet Another Compiler Compiler' implementation to use.
1834 Defaults to the first program found out of: `bison -y', `byacc',
1835 `yacc'.
1836 YFLAGS The list of arguments that will be passed by default to $YACC.
1837 This script will default YFLAGS to the empty string to avoid a
1838 default value of `-d' given by some make applications.
1840 Use these variables to override the choices made by `configure' or to help
1841 it to find libraries and programs with nonstandard names/locations.
1843 Report bugs to <tex-k@tug.org>.
1844 _ACEOF
1845 ac_status=$?
1848 if test "$ac_init_help" = "recursive"; then
1849 # If there are subdirs, report their specific --help.
1850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1851 test -d "$ac_dir" ||
1852 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1853 continue
1854 ac_builddir=.
1856 case "$ac_dir" in
1857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1859 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1860 # A ".." for each directory in $ac_dir_suffix.
1861 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1862 case $ac_top_builddir_sub in
1863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1865 esac ;;
1866 esac
1867 ac_abs_top_builddir=$ac_pwd
1868 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1869 # for backward compatibility:
1870 ac_top_builddir=$ac_top_build_prefix
1872 case $srcdir in
1873 .) # We are building in place.
1874 ac_srcdir=.
1875 ac_top_srcdir=$ac_top_builddir_sub
1876 ac_abs_top_srcdir=$ac_pwd ;;
1877 [\\/]* | ?:[\\/]* ) # Absolute name.
1878 ac_srcdir=$srcdir$ac_dir_suffix;
1879 ac_top_srcdir=$srcdir
1880 ac_abs_top_srcdir=$srcdir ;;
1881 *) # Relative name.
1882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1883 ac_top_srcdir=$ac_top_build_prefix$srcdir
1884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1885 esac
1886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1888 cd "$ac_dir" || { ac_status=$?; continue; }
1889 # Check for guested configure.
1890 if test -f "$ac_srcdir/configure.gnu"; then
1891 echo &&
1892 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1893 elif test -f "$ac_srcdir/configure"; then
1894 echo &&
1895 $SHELL "$ac_srcdir/configure" --help=recursive
1896 else
1897 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1898 fi || ac_status=$?
1899 cd "$ac_pwd" || { ac_status=$?; break; }
1900 done
1903 test -n "$ac_init_help" && exit $ac_status
1904 if $ac_init_version; then
1905 cat <<\_ACEOF
1906 Web2C configure 2016/dev
1907 generated by GNU Autoconf 2.69
1909 Copyright (C) 2012 Free Software Foundation, Inc.
1910 This configure script is free software; the Free Software Foundation
1911 gives unlimited permission to copy, distribute and modify it.
1912 _ACEOF
1913 exit
1916 ## ------------------------ ##
1917 ## Autoconf initialization. ##
1918 ## ------------------------ ##
1920 # ac_fn_c_try_compile LINENO
1921 # --------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext
1927 if { { ac_try="$ac_compile"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_compile") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest.$ac_objext; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_try_compile
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_link ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 test -x conftest$ac_exeext
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=1
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$3=yes"
2023 else
2024 eval "$3=no"
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_try_cpp LINENO
2036 # ----------------------
2037 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2038 ac_fn_c_try_cpp ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_cpp conftest.$ac_ext"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2049 ac_status=$?
2050 if test -s conftest.err; then
2051 grep -v '^ *+' conftest.err >conftest.er1
2052 cat conftest.er1 >&5
2053 mv -f conftest.er1 conftest.err
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } > conftest.i && {
2057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2058 test ! -s conftest.err
2059 }; then :
2060 ac_retval=0
2061 else
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2065 ac_retval=1
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_c_try_cpp
2072 # ac_fn_c_try_run LINENO
2073 # ----------------------
2074 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2075 # that executables *can* be run.
2076 ac_fn_c_try_run ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if { { ac_try="$ac_link"
2080 case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_link") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2090 { { case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_try") 2>&5
2097 ac_status=$?
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; }; }; then :
2100 ac_retval=0
2101 else
2102 $as_echo "$as_me: program exited with status $ac_status" >&5
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 ac_retval=$ac_status
2108 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2112 } # ac_fn_c_try_run
2114 # ac_fn_c_check_func LINENO FUNC VAR
2115 # ----------------------------------
2116 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2117 ac_fn_c_check_func ()
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2129 #define $2 innocuous_$2
2131 /* System header to define __stub macros and hopefully few prototypes,
2132 which can conflict with char $2 (); below.
2133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2134 <limits.h> exists even on freestanding compilers. */
2136 #ifdef __STDC__
2137 # include <limits.h>
2138 #else
2139 # include <assert.h>
2140 #endif
2142 #undef $2
2144 /* Override any GCC internal prototype to avoid an error.
2145 Use char because int might match the return type of a GCC
2146 builtin and then its argument prototype would still apply. */
2147 #ifdef __cplusplus
2148 extern "C"
2149 #endif
2150 char $2 ();
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined __stub_$2 || defined __stub___$2
2155 choke me
2156 #endif
2159 main ()
2161 return $2 ();
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_link "$LINENO"; then :
2167 eval "$3=yes"
2168 else
2169 eval "$3=no"
2171 rm -f core conftest.err conftest.$ac_objext \
2172 conftest$ac_exeext conftest.$ac_ext
2174 eval ac_res=\$$3
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_func
2181 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2182 # -------------------------------------------------------
2183 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2184 # the include files in INCLUDES and setting the cache variable VAR
2185 # accordingly.
2186 ac_fn_c_check_header_mongrel ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if eval \${$3+:} false; then :
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2195 eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198 else
2199 # Is the header compilable?
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2201 $as_echo_n "checking $2 usability... " >&6; }
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 #include <$2>
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_header_compiler=yes
2209 else
2210 ac_header_compiler=no
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2214 $as_echo "$ac_header_compiler" >&6; }
2216 # Is the header present?
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2218 $as_echo_n "checking $2 presence... " >&6; }
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 #include <$2>
2222 _ACEOF
2223 if ac_fn_c_try_cpp "$LINENO"; then :
2224 ac_header_preproc=yes
2225 else
2226 ac_header_preproc=no
2228 rm -f conftest.err conftest.i conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2230 $as_echo "$ac_header_preproc" >&6; }
2232 # So? What about this header?
2233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2234 yes:no: )
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2236 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2238 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 no:yes:* )
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2242 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2244 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2246 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2248 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2250 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2251 ( $as_echo "## ---------------------------- ##
2252 ## Report this to tex-k@tug.org ##
2253 ## ---------------------------- ##"
2254 ) | sed "s/^/$as_me: WARNING: /" >&2
2256 esac
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if eval \${$3+:} false; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 eval "$3=\$ac_header_compiler"
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_header_mongrel
2272 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2273 # -------------------------------------------
2274 # Tests whether TYPE exists after having included INCLUDES, setting cache
2275 # variable VAR accordingly.
2276 ac_fn_c_check_type ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280 $as_echo_n "checking for $2... " >&6; }
2281 if eval \${$3+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 eval "$3=no"
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2289 main ()
2291 if (sizeof ($2))
2292 return 0;
2294 return 0;
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 main ()
2304 if (sizeof (($2)))
2305 return 0;
2307 return 0;
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2312 else
2313 eval "$3=yes"
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 } # ac_fn_c_check_type
2326 # ac_fn_c_find_intX_t LINENO BITS VAR
2327 # -----------------------------------
2328 # Finds a signed integer type with width BITS, setting cache variable VAR
2329 # accordingly.
2330 ac_fn_c_find_intX_t ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2334 $as_echo_n "checking for int$2_t... " >&6; }
2335 if eval \${$3+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 eval "$3=no"
2339 # Order is important - never check a type that is potentially smaller
2340 # than half of the expected target width.
2341 for ac_type in int$2_t 'int' 'long int' \
2342 'long long int' 'short int' 'signed char'; do
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2345 $ac_includes_default
2346 enum { N = $2 / 2 - 1 };
2348 main ()
2350 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2351 test_array [0] = 0;
2352 return test_array [0];
2355 return 0;
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2361 $ac_includes_default
2362 enum { N = $2 / 2 - 1 };
2364 main ()
2366 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2367 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2368 test_array [0] = 0;
2369 return test_array [0];
2372 return 0;
2374 _ACEOF
2375 if ac_fn_c_try_compile "$LINENO"; then :
2377 else
2378 case $ac_type in #(
2379 int$2_t) :
2380 eval "$3=yes" ;; #(
2381 *) :
2382 eval "$3=\$ac_type" ;;
2383 esac
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 if eval test \"x\$"$3"\" = x"no"; then :
2390 else
2391 break
2393 done
2395 eval ac_res=\$$3
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 } # ac_fn_c_find_intX_t
2402 # ac_fn_c_find_uintX_t LINENO BITS VAR
2403 # ------------------------------------
2404 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2405 # accordingly.
2406 ac_fn_c_find_uintX_t ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2410 $as_echo_n "checking for uint$2_t... " >&6; }
2411 if eval \${$3+:} false; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 eval "$3=no"
2415 # Order is important - never check a type that is potentially smaller
2416 # than half of the expected target width.
2417 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2418 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2423 main ()
2425 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2426 test_array [0] = 0;
2427 return test_array [0];
2430 return 0;
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 case $ac_type in #(
2435 uint$2_t) :
2436 eval "$3=yes" ;; #(
2437 *) :
2438 eval "$3=\$ac_type" ;;
2439 esac
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 if eval test \"x\$"$3"\" = x"no"; then :
2444 else
2445 break
2447 done
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454 } # ac_fn_c_find_uintX_t
2456 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2457 # ---------------------------------------------
2458 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2459 # accordingly.
2460 ac_fn_c_check_decl ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 as_decl_name=`echo $2|sed 's/ *(.*//'`
2464 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2466 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2467 if eval \${$3+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2474 main ()
2476 #ifndef $as_decl_name
2477 #ifdef __cplusplus
2478 (void) $as_decl_use;
2479 #else
2480 (void) $as_decl_name;
2481 #endif
2482 #endif
2485 return 0;
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 eval "$3=yes"
2490 else
2491 eval "$3=no"
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 eval ac_res=\$$3
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2500 } # ac_fn_c_check_decl
2502 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2503 # ----------------------------------------------------
2504 # Tries to find if the field MEMBER exists in type AGGR, after including
2505 # INCLUDES, setting cache variable VAR accordingly.
2506 ac_fn_c_check_member ()
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2510 $as_echo_n "checking for $2.$3... " >&6; }
2511 if eval \${$4+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2518 main ()
2520 static $2 ac_aggr;
2521 if (ac_aggr.$3)
2522 return 0;
2524 return 0;
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528 eval "$4=yes"
2529 else
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2534 main ()
2536 static $2 ac_aggr;
2537 if (sizeof ac_aggr.$3)
2538 return 0;
2540 return 0;
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544 eval "$4=yes"
2545 else
2546 eval "$4=no"
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 eval ac_res=\$$4
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_c_check_member
2559 # ac_fn_cxx_try_compile LINENO
2560 # ----------------------------
2561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2562 ac_fn_cxx_try_compile ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 rm -f conftest.$ac_objext
2566 if { { ac_try="$ac_compile"
2567 case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_compile") 2>conftest.err
2574 ac_status=$?
2575 if test -s conftest.err; then
2576 grep -v '^ *+' conftest.err >conftest.er1
2577 cat conftest.er1 >&5
2578 mv -f conftest.er1 conftest.err
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; } && {
2582 test -z "$ac_cxx_werror_flag" ||
2583 test ! -s conftest.err
2584 } && test -s conftest.$ac_objext; then :
2585 ac_retval=0
2586 else
2587 $as_echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 ac_retval=1
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593 as_fn_set_status $ac_retval
2595 } # ac_fn_cxx_try_compile
2597 # ac_fn_cxx_try_cpp LINENO
2598 # ------------------------
2599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_cpp ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 if { { ac_try="$ac_cpp conftest.$ac_ext"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2609 $as_echo "$ac_try_echo"; } >&5
2610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2611 ac_status=$?
2612 if test -s conftest.err; then
2613 grep -v '^ *+' conftest.err >conftest.er1
2614 cat conftest.er1 >&5
2615 mv -f conftest.er1 conftest.err
2617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2618 test $ac_status = 0; } > conftest.i && {
2619 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2620 test ! -s conftest.err
2621 }; then :
2622 ac_retval=0
2623 else
2624 $as_echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 ac_retval=1
2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630 as_fn_set_status $ac_retval
2632 } # ac_fn_cxx_try_cpp
2634 # ac_fn_cxx_try_link LINENO
2635 # -------------------------
2636 # Try to link conftest.$ac_ext, and return whether this succeeded.
2637 ac_fn_cxx_try_link ()
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 rm -f conftest.$ac_objext conftest$ac_exeext
2641 if { { ac_try="$ac_link"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648 (eval "$ac_link") 2>conftest.err
2649 ac_status=$?
2650 if test -s conftest.err; then
2651 grep -v '^ *+' conftest.err >conftest.er1
2652 cat conftest.er1 >&5
2653 mv -f conftest.er1 conftest.err
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; } && {
2657 test -z "$ac_cxx_werror_flag" ||
2658 test ! -s conftest.err
2659 } && test -s conftest$ac_exeext && {
2660 test "$cross_compiling" = yes ||
2661 test -x conftest$ac_exeext
2662 }; then :
2663 ac_retval=0
2664 else
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_retval=1
2670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2672 # interfere with the next link command; also delete a directory that is
2673 # left behind by Apple's compiler. We do this before executing the actions.
2674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676 as_fn_set_status $ac_retval
2678 } # ac_fn_cxx_try_link
2680 # ac_fn_objcxx_try_compile LINENO
2681 # -------------------------------
2682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2683 ac_fn_objcxx_try_compile ()
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 rm -f conftest.$ac_objext
2687 if { { ac_try="$ac_compile"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_compile") 2>conftest.err
2695 ac_status=$?
2696 if test -s conftest.err; then
2697 grep -v '^ *+' conftest.err >conftest.er1
2698 cat conftest.er1 >&5
2699 mv -f conftest.er1 conftest.err
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; } && {
2703 test -z "$ac_objcxx_werror_flag" ||
2704 test ! -s conftest.err
2705 } && test -s conftest.$ac_objext; then :
2706 ac_retval=0
2707 else
2708 $as_echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 ac_retval=1
2713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2714 as_fn_set_status $ac_retval
2716 } # ac_fn_objcxx_try_compile
2718 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2719 # ---------------------------------------------------------
2720 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2721 # the include files in INCLUDES and setting the cache variable VAR
2722 # accordingly.
2723 ac_fn_cxx_check_header_mongrel ()
2725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726 if eval \${$3+:} false; then :
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 eval ac_res=\$$3
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735 else
2736 # Is the header compilable?
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2738 $as_echo_n "checking $2 usability... " >&6; }
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2742 #include <$2>
2743 _ACEOF
2744 if ac_fn_cxx_try_compile "$LINENO"; then :
2745 ac_header_compiler=yes
2746 else
2747 ac_header_compiler=no
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2751 $as_echo "$ac_header_compiler" >&6; }
2753 # Is the header present?
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2755 $as_echo_n "checking $2 presence... " >&6; }
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2758 #include <$2>
2759 _ACEOF
2760 if ac_fn_cxx_try_cpp "$LINENO"; then :
2761 ac_header_preproc=yes
2762 else
2763 ac_header_preproc=no
2765 rm -f conftest.err conftest.i conftest.$ac_ext
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2767 $as_echo "$ac_header_preproc" >&6; }
2769 # So? What about this header?
2770 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2771 yes:no: )
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2773 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2775 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2777 no:yes:* )
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2779 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2781 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2783 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2785 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2788 ( $as_echo "## ---------------------------- ##
2789 ## Report this to tex-k@tug.org ##
2790 ## ---------------------------- ##"
2791 ) | sed "s/^/$as_me: WARNING: /" >&2
2793 esac
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2795 $as_echo_n "checking for $2... " >&6; }
2796 if eval \${$3+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 eval "$3=\$ac_header_compiler"
2801 eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807 } # ac_fn_cxx_check_header_mongrel
2809 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2810 # --------------------------------------------
2811 # Tries to find the compile-time value of EXPR in a program that includes
2812 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2813 # computed
2814 ac_fn_c_compute_int ()
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 if test "$cross_compiling" = yes; then
2818 # Depending upon the size, compute the lo and hi bounds.
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2823 main ()
2825 static int test_array [1 - 2 * !(($2) >= 0)];
2826 test_array [0] = 0;
2827 return test_array [0];
2830 return 0;
2832 _ACEOF
2833 if ac_fn_c_try_compile "$LINENO"; then :
2834 ac_lo=0 ac_mid=0
2835 while :; do
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2840 main ()
2842 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2843 test_array [0] = 0;
2844 return test_array [0];
2847 return 0;
2849 _ACEOF
2850 if ac_fn_c_try_compile "$LINENO"; then :
2851 ac_hi=$ac_mid; break
2852 else
2853 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2854 if test $ac_lo -le $ac_mid; then
2855 ac_lo= ac_hi=
2856 break
2858 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 done
2862 else
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2867 main ()
2869 static int test_array [1 - 2 * !(($2) < 0)];
2870 test_array [0] = 0;
2871 return test_array [0];
2874 return 0;
2876 _ACEOF
2877 if ac_fn_c_try_compile "$LINENO"; then :
2878 ac_hi=-1 ac_mid=-1
2879 while :; do
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2884 main ()
2886 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2887 test_array [0] = 0;
2888 return test_array [0];
2891 return 0;
2893 _ACEOF
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895 ac_lo=$ac_mid; break
2896 else
2897 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2898 if test $ac_mid -le $ac_hi; then
2899 ac_lo= ac_hi=
2900 break
2902 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 done
2906 else
2907 ac_lo= ac_hi=
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 # Binary search between lo and hi bounds.
2913 while test "x$ac_lo" != "x$ac_hi"; do
2914 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2919 main ()
2921 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2922 test_array [0] = 0;
2923 return test_array [0];
2926 return 0;
2928 _ACEOF
2929 if ac_fn_c_try_compile "$LINENO"; then :
2930 ac_hi=$ac_mid
2931 else
2932 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936 case $ac_lo in #((
2937 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2938 '') ac_retval=1 ;;
2939 esac
2940 else
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2944 static long int longval () { return $2; }
2945 static unsigned long int ulongval () { return $2; }
2946 #include <stdio.h>
2947 #include <stdlib.h>
2949 main ()
2952 FILE *f = fopen ("conftest.val", "w");
2953 if (! f)
2954 return 1;
2955 if (($2) < 0)
2957 long int i = longval ();
2958 if (i != ($2))
2959 return 1;
2960 fprintf (f, "%ld", i);
2962 else
2964 unsigned long int i = ulongval ();
2965 if (i != ($2))
2966 return 1;
2967 fprintf (f, "%lu", i);
2969 /* Do not output a trailing newline, as this causes \r\n confusion
2970 on some platforms. */
2971 return ferror (f) || fclose (f) != 0;
2974 return 0;
2976 _ACEOF
2977 if ac_fn_c_try_run "$LINENO"; then :
2978 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2979 else
2980 ac_retval=1
2982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2983 conftest.$ac_objext conftest.beam conftest.$ac_ext
2984 rm -f conftest.val
2987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988 as_fn_set_status $ac_retval
2990 } # ac_fn_c_compute_int
2991 cat >config.log <<_ACEOF
2992 This file contains any messages produced by compilers while
2993 running configure, to aid debugging if configure makes a mistake.
2995 It was created by Web2C $as_me 2016/dev, which was
2996 generated by GNU Autoconf 2.69. Invocation command line was
2998 $ $0 $@
3000 _ACEOF
3001 exec 5>>config.log
3003 cat <<_ASUNAME
3004 ## --------- ##
3005 ## Platform. ##
3006 ## --------- ##
3008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3025 _ASUNAME
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 $as_echo "PATH: $as_dir"
3033 done
3034 IFS=$as_save_IFS
3036 } >&5
3038 cat >&5 <<_ACEOF
3041 ## ----------- ##
3042 ## Core tests. ##
3043 ## ----------- ##
3045 _ACEOF
3048 # Keep a trace of the command line.
3049 # Strip out --no-create and --no-recursion so they do not pile up.
3050 # Strip out --silent because we don't want to record it for future runs.
3051 # Also quote any args containing shell meta-characters.
3052 # Make two passes to allow for proper duplicate-argument suppression.
3053 ac_configure_args=
3054 ac_configure_args0=
3055 ac_configure_args1=
3056 ac_must_keep_next=false
3057 for ac_pass in 1 2
3059 for ac_arg
3061 case $ac_arg in
3062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3064 | -silent | --silent | --silen | --sile | --sil)
3065 continue ;;
3066 *\'*)
3067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3068 esac
3069 case $ac_pass in
3070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3072 as_fn_append ac_configure_args1 " '$ac_arg'"
3073 if test $ac_must_keep_next = true; then
3074 ac_must_keep_next=false # Got value, back to normal.
3075 else
3076 case $ac_arg in
3077 *=* | --config-cache | -C | -disable-* | --disable-* \
3078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3080 | -with-* | --with-* | -without-* | --without-* | --x)
3081 case "$ac_configure_args0 " in
3082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3083 esac
3085 -* ) ac_must_keep_next=true ;;
3086 esac
3088 as_fn_append ac_configure_args " '$ac_arg'"
3090 esac
3091 done
3092 done
3093 { ac_configure_args0=; unset ac_configure_args0;}
3094 { ac_configure_args1=; unset ac_configure_args1;}
3096 # When interrupted or exit'd, cleanup temporary files, and complete
3097 # config.log. We remove comments because anyway the quotes in there
3098 # would cause problems or look ugly.
3099 # WARNING: Use '\'' to represent an apostrophe within the trap.
3100 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3101 trap 'exit_status=$?
3102 # Save into config.log some information that might help in debugging.
3104 echo
3106 $as_echo "## ---------------- ##
3107 ## Cache variables. ##
3108 ## ---------------- ##"
3109 echo
3110 # The following way of writing the cache mishandles newlines in values,
3112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3113 eval ac_val=\$$ac_var
3114 case $ac_val in #(
3115 *${as_nl}*)
3116 case $ac_var in #(
3117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3119 esac
3120 case $ac_var in #(
3121 _ | IFS | as_nl) ;; #(
3122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3123 *) { eval $ac_var=; unset $ac_var;} ;;
3124 esac ;;
3125 esac
3126 done
3127 (set) 2>&1 |
3128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3129 *${as_nl}ac_space=\ *)
3130 sed -n \
3131 "s/'\''/'\''\\\\'\'''\''/g;
3132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3133 ;; #(
3135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3137 esac |
3138 sort
3140 echo
3142 $as_echo "## ----------------- ##
3143 ## Output variables. ##
3144 ## ----------------- ##"
3145 echo
3146 for ac_var in $ac_subst_vars
3148 eval ac_val=\$$ac_var
3149 case $ac_val in
3150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3151 esac
3152 $as_echo "$ac_var='\''$ac_val'\''"
3153 done | sort
3154 echo
3156 if test -n "$ac_subst_files"; then
3157 $as_echo "## ------------------- ##
3158 ## File substitutions. ##
3159 ## ------------------- ##"
3160 echo
3161 for ac_var in $ac_subst_files
3163 eval ac_val=\$$ac_var
3164 case $ac_val in
3165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3166 esac
3167 $as_echo "$ac_var='\''$ac_val'\''"
3168 done | sort
3169 echo
3172 if test -s confdefs.h; then
3173 $as_echo "## ----------- ##
3174 ## confdefs.h. ##
3175 ## ----------- ##"
3176 echo
3177 cat confdefs.h
3178 echo
3180 test "$ac_signal" != 0 &&
3181 $as_echo "$as_me: caught signal $ac_signal"
3182 $as_echo "$as_me: exit $exit_status"
3183 } >&5
3184 rm -f core *.core core.conftest.* &&
3185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3186 exit $exit_status
3188 for ac_signal in 1 2 13 15; do
3189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3190 done
3191 ac_signal=0
3193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3194 rm -f -r conftest* confdefs.h
3196 $as_echo "/* confdefs.h */" > confdefs.h
3198 # Predefined preprocessor variables.
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_NAME "$PACKAGE_NAME"
3202 _ACEOF
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3206 _ACEOF
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3210 _ACEOF
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE_STRING "$PACKAGE_STRING"
3214 _ACEOF
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3218 _ACEOF
3220 cat >>confdefs.h <<_ACEOF
3221 #define PACKAGE_URL "$PACKAGE_URL"
3222 _ACEOF
3225 # Let the site file select an alternate cache file if it wants to.
3226 # Prefer an explicitly selected file to automatically selected ones.
3227 ac_site_file1=NONE
3228 ac_site_file2=NONE
3229 if test -n "$CONFIG_SITE"; then
3230 # We do not want a PATH search for config.site.
3231 case $CONFIG_SITE in #((
3232 -*) ac_site_file1=./$CONFIG_SITE;;
3233 */*) ac_site_file1=$CONFIG_SITE;;
3234 *) ac_site_file1=./$CONFIG_SITE;;
3235 esac
3236 elif test "x$prefix" != xNONE; then
3237 ac_site_file1=$prefix/share/config.site
3238 ac_site_file2=$prefix/etc/config.site
3239 else
3240 ac_site_file1=$ac_default_prefix/share/config.site
3241 ac_site_file2=$ac_default_prefix/etc/config.site
3243 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3245 test "x$ac_site_file" = xNONE && continue
3246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3248 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3249 sed 's/^/| /' "$ac_site_file" >&5
3250 . "$ac_site_file" \
3251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "failed to load site script $ac_site_file
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 done
3258 if test -r "$cache_file"; then
3259 # Some versions of bash will fail to source /dev/null (special files
3260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3263 $as_echo "$as_me: loading cache $cache_file" >&6;}
3264 case $cache_file in
3265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3266 *) . "./$cache_file";;
3267 esac
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3271 $as_echo "$as_me: creating cache $cache_file" >&6;}
3272 >$cache_file
3275 # Check that the precious variables saved in the cache have kept the same
3276 # value.
3277 ac_cache_corrupted=false
3278 for ac_var in $ac_precious_vars; do
3279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3280 eval ac_new_set=\$ac_env_${ac_var}_set
3281 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3282 eval ac_new_val=\$ac_env_${ac_var}_value
3283 case $ac_old_set,$ac_new_set in
3284 set,)
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3286 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3287 ac_cache_corrupted=: ;;
3288 ,set)
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3290 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3291 ac_cache_corrupted=: ;;
3292 ,);;
3294 if test "x$ac_old_val" != "x$ac_new_val"; then
3295 # differences in whitespace do not lead to failure.
3296 ac_old_val_w=`echo x $ac_old_val`
3297 ac_new_val_w=`echo x $ac_new_val`
3298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3300 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3301 ac_cache_corrupted=:
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3304 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3305 eval $ac_var=\$ac_old_val
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3308 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3310 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3311 fi;;
3312 esac
3313 # Pass precious variables to config.status.
3314 if test "$ac_new_set" = set; then
3315 case $ac_new_val in
3316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3317 *) ac_arg=$ac_var=$ac_new_val ;;
3318 esac
3319 case " $ac_configure_args " in
3320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3321 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3322 esac
3324 done
3325 if $ac_cache_corrupted; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3329 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3332 ## -------------------- ##
3333 ## Main body of script. ##
3334 ## -------------------- ##
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 ac_aux_dir=
3346 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
3347 if test -f "$ac_dir/install-sh"; then
3348 ac_aux_dir=$ac_dir
3349 ac_install_sh="$ac_aux_dir/install-sh -c"
3350 break
3351 elif test -f "$ac_dir/install.sh"; then
3352 ac_aux_dir=$ac_dir
3353 ac_install_sh="$ac_aux_dir/install.sh -c"
3354 break
3355 elif test -f "$ac_dir/shtool"; then
3356 ac_aux_dir=$ac_dir
3357 ac_install_sh="$ac_aux_dir/shtool install -c"
3358 break
3360 done
3361 if test -z "$ac_aux_dir"; then
3362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
3365 # These three variables are undocumented and unsupported,
3366 # and are intended to be withdrawn in a future Autoconf release.
3367 # They can cause serious problems if a builder's source tree is in a directory
3368 # whose full name contains unusual characters.
3369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3376 WEB2CVERSION=2016/dev
3379 am__api_version='1.15'
3381 # Find a good install program. We prefer a C program (faster),
3382 # so one script is as good as another. But avoid the broken or
3383 # incompatible versions:
3384 # SysV /etc/install, /usr/sbin/install
3385 # SunOS /usr/etc/install
3386 # IRIX /sbin/install
3387 # AIX /bin/install
3388 # AmigaOS /C/install, which installs bootblocks on floppy discs
3389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3392 # OS/2's system install, which has a completely different semantic
3393 # ./install, which can be erroneously created by make from ./install.sh.
3394 # Reject install programs that cannot install multiple files.
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3396 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3397 if test -z "$INSTALL"; then
3398 if ${ac_cv_path_install+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 # Account for people who put trailing slashes in PATH elements.
3407 case $as_dir/ in #((
3408 ./ | .// | /[cC]/* | \
3409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3410 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3411 /usr/ucb/* ) ;;
3413 # OSF1 and SCO ODT 3.0 have their own names for install.
3414 # Don't use installbsd from OSF since it installs stuff as root
3415 # by default.
3416 for ac_prog in ginstall scoinst install; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3419 if test $ac_prog = install &&
3420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3421 # AIX install. It has an incompatible calling convention.
3423 elif test $ac_prog = install &&
3424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3425 # program-specific install script used by HP pwplus--don't use.
3427 else
3428 rm -rf conftest.one conftest.two conftest.dir
3429 echo one > conftest.one
3430 echo two > conftest.two
3431 mkdir conftest.dir
3432 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3433 test -s conftest.one && test -s conftest.two &&
3434 test -s conftest.dir/conftest.one &&
3435 test -s conftest.dir/conftest.two
3436 then
3437 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3438 break 3
3442 done
3443 done
3445 esac
3447 done
3448 IFS=$as_save_IFS
3450 rm -rf conftest.one conftest.two conftest.dir
3453 if test "${ac_cv_path_install+set}" = set; then
3454 INSTALL=$ac_cv_path_install
3455 else
3456 # As a last resort, use the slow shell script. Don't cache a
3457 # value for INSTALL within a source directory, because that will
3458 # break other packages using the cache if that directory is
3459 # removed, or if the value is a relative name.
3460 INSTALL=$ac_install_sh
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3464 $as_echo "$INSTALL" >&6; }
3466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3467 # It thinks the first close brace ends the variable substitution.
3468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3475 $as_echo_n "checking whether build environment is sane... " >&6; }
3476 # Reject unsafe characters in $srcdir or the absolute working directory
3477 # name. Accept space and tab only in the latter.
3478 am_lf='
3480 case `pwd` in
3481 *[\\\"\#\$\&\'\`$am_lf]*)
3482 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3483 esac
3484 case $srcdir in
3485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3486 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3487 esac
3489 # Do 'set' in a subshell so we don't clobber the current shell's
3490 # arguments. Must try -L first in case configure is actually a
3491 # symlink; some systems play weird games with the mod time of symlinks
3492 # (eg FreeBSD returns the mod time of the symlink's containing
3493 # directory).
3494 if (
3495 am_has_slept=no
3496 for am_try in 1 2; do
3497 echo "timestamp, slept: $am_has_slept" > conftest.file
3498 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3499 if test "$*" = "X"; then
3500 # -L didn't work.
3501 set X `ls -t "$srcdir/configure" conftest.file`
3503 if test "$*" != "X $srcdir/configure conftest.file" \
3504 && test "$*" != "X conftest.file $srcdir/configure"; then
3506 # If neither matched, then we have a broken ls. This can happen
3507 # if, for instance, CONFIG_SHELL is bash and it inherits a
3508 # broken ls alias from the environment. This has actually
3509 # happened. Such a system could not be considered "sane".
3510 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3511 alias in your environment" "$LINENO" 5
3513 if test "$2" = conftest.file || test $am_try -eq 2; then
3514 break
3516 # Just in case.
3517 sleep 1
3518 am_has_slept=yes
3519 done
3520 test "$2" = conftest.file
3522 then
3523 # Ok.
3525 else
3526 as_fn_error $? "newly created file is older than distributed files!
3527 Check your system clock" "$LINENO" 5
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3531 # If we didn't sleep, we still need to ensure time stamps of config.status and
3532 # generated files are strictly newer.
3533 am_sleep_pid=
3534 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3535 ( sleep 1 ) &
3536 am_sleep_pid=$!
3539 rm -f conftest.file
3541 test "$program_prefix" != NONE &&
3542 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3543 # Use a double $ so make ignores it.
3544 test "$program_suffix" != NONE &&
3545 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3546 # Double any \ or $.
3547 # By default was `s,x,x', remove it if useless.
3548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3551 # Expand $ac_aux_dir to an absolute path.
3552 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3554 if test x"${MISSING+set}" != xset; then
3555 case $am_aux_dir in
3556 *\ * | *\ *)
3557 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3559 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3560 esac
3562 # Use eval to expand $SHELL
3563 if eval "$MISSING --is-lightweight"; then
3564 am_missing_run="$MISSING "
3565 else
3566 am_missing_run=
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3568 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3571 if test x"${install_sh+set}" != xset; then
3572 case $am_aux_dir in
3573 *\ * | *\ *)
3574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3576 install_sh="\${SHELL} $am_aux_dir/install-sh"
3577 esac
3580 # Installed binaries are usually stripped using 'strip' when the user
3581 # run "make install-strip". However 'strip' might not be the right
3582 # tool to use in cross-compilation environments, therefore Automake
3583 # will honor the 'STRIP' environment variable to overrule this program.
3584 if test "$cross_compiling" != no; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}strip; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_STRIP+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$STRIP"; then
3594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 STRIP=$ac_cv_prog_STRIP
3614 if test -n "$STRIP"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3616 $as_echo "$STRIP" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3624 if test -z "$ac_cv_prog_STRIP"; then
3625 ac_ct_STRIP=$STRIP
3626 # Extract the first word of "strip", so it can be a program name with args.
3627 set dummy strip; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$ac_ct_STRIP"; then
3634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_STRIP="strip"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3647 done
3648 done
3649 IFS=$as_save_IFS
3653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3654 if test -n "$ac_ct_STRIP"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3656 $as_echo "$ac_ct_STRIP" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3662 if test "x$ac_ct_STRIP" = x; then
3663 STRIP=":"
3664 else
3665 case $cross_compiling:$ac_tool_warned in
3666 yes:)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3670 esac
3671 STRIP=$ac_ct_STRIP
3673 else
3674 STRIP="$ac_cv_prog_STRIP"
3678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3682 if test -z "$MKDIR_P"; then
3683 if ${ac_cv_path_mkdir+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in mkdir gmkdir; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3694 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3695 'mkdir (GNU coreutils) '* | \
3696 'mkdir (coreutils) '* | \
3697 'mkdir (fileutils) '4.1*)
3698 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3699 break 3;;
3700 esac
3701 done
3702 done
3703 done
3704 IFS=$as_save_IFS
3708 test -d ./--version && rmdir ./--version
3709 if test "${ac_cv_path_mkdir+set}" = set; then
3710 MKDIR_P="$ac_cv_path_mkdir -p"
3711 else
3712 # As a last resort, use the slow shell script. Don't cache a
3713 # value for MKDIR_P within a source directory, because that will
3714 # break other packages using the cache if that directory is
3715 # removed, or if the value is a relative name.
3716 MKDIR_P="$ac_install_sh -d"
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3720 $as_echo "$MKDIR_P" >&6; }
3722 for ac_prog in gawk mawk nawk awk
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725 set dummy $ac_prog; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_prog_AWK+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 if test -n "$AWK"; then
3732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_AWK="$ac_prog"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3745 done
3746 done
3747 IFS=$as_save_IFS
3751 AWK=$ac_cv_prog_AWK
3752 if test -n "$AWK"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3754 $as_echo "$AWK" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3761 test -n "$AWK" && break
3762 done
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3765 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3766 set x ${MAKE-make}
3767 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3768 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 cat >conftest.make <<\_ACEOF
3772 SHELL = /bin/sh
3773 all:
3774 @echo '@@@%%%=$(MAKE)=@@@%%%'
3775 _ACEOF
3776 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3777 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3778 *@@@%%%=?*=@@@%%%*)
3779 eval ac_cv_prog_make_${ac_make}_set=yes;;
3781 eval ac_cv_prog_make_${ac_make}_set=no;;
3782 esac
3783 rm -f conftest.make
3785 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3787 $as_echo "yes" >&6; }
3788 SET_MAKE=
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3792 SET_MAKE="MAKE=${MAKE-make}"
3795 rm -rf .tst 2>/dev/null
3796 mkdir .tst 2>/dev/null
3797 if test -d .tst; then
3798 am__leading_dot=.
3799 else
3800 am__leading_dot=_
3802 rmdir .tst 2>/dev/null
3804 # Check whether --enable-silent-rules was given.
3805 if test "${enable_silent_rules+set}" = set; then :
3806 enableval=$enable_silent_rules;
3809 case $enable_silent_rules in # (((
3810 yes) AM_DEFAULT_VERBOSITY=0;;
3811 no) AM_DEFAULT_VERBOSITY=1;;
3812 *) AM_DEFAULT_VERBOSITY=1;;
3813 esac
3814 am_make=${MAKE-make}
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3816 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3817 if ${am_cv_make_support_nested_variables+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 if $as_echo 'TRUE=$(BAR$(V))
3821 BAR0=false
3822 BAR1=true
3824 am__doit:
3825 @$(TRUE)
3826 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3827 am_cv_make_support_nested_variables=yes
3828 else
3829 am_cv_make_support_nested_variables=no
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3833 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3834 if test $am_cv_make_support_nested_variables = yes; then
3835 AM_V='$(V)'
3836 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3837 else
3838 AM_V=$AM_DEFAULT_VERBOSITY
3839 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3841 AM_BACKSLASH='\'
3843 DEPDIR="${am__leading_dot}deps"
3845 ac_config_commands="$ac_config_commands depfiles"
3848 am_make=${MAKE-make}
3849 cat > confinc << 'END'
3850 am__doit:
3851 @echo this is the am__doit target
3852 .PHONY: am__doit
3854 # If we don't find an include directive, just comment out the code.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3856 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3857 am__include="#"
3858 am__quote=
3859 _am_result=none
3860 # First try GNU make style include.
3861 echo "include confinc" > confmf
3862 # Ignore all kinds of additional output from 'make'.
3863 case `$am_make -s -f confmf 2> /dev/null` in #(
3864 *the\ am__doit\ target*)
3865 am__include=include
3866 am__quote=
3867 _am_result=GNU
3869 esac
3870 # Now try BSD make style include.
3871 if test "$am__include" = "#"; then
3872 echo '.include "confinc"' > confmf
3873 case `$am_make -s -f confmf 2> /dev/null` in #(
3874 *the\ am__doit\ target*)
3875 am__include=.include
3876 am__quote="\""
3877 _am_result=BSD
3879 esac
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3884 $as_echo "$_am_result" >&6; }
3885 rm -f confinc confmf
3887 # Check whether --enable-dependency-tracking was given.
3888 if test "${enable_dependency_tracking+set}" = set; then :
3889 enableval=$enable_dependency_tracking;
3892 if test "x$enable_dependency_tracking" != xno; then
3893 am_depcomp="$ac_aux_dir/depcomp"
3894 AMDEPBACKSLASH='\'
3895 am__nodep='_no'
3897 if test "x$enable_dependency_tracking" != xno; then
3898 AMDEP_TRUE=
3899 AMDEP_FALSE='#'
3900 else
3901 AMDEP_TRUE='#'
3902 AMDEP_FALSE=
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_CC+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3935 IFS=$as_save_IFS
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3950 if test -z "$ac_cv_prog_CC"; then
3951 ac_ct_CC=$CC
3952 # Extract the first word of "gcc", so it can be a program name with args.
3953 set dummy gcc; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$ac_ct_CC"; then
3960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_ac_ct_CC="gcc"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3973 done
3974 done
3975 IFS=$as_save_IFS
3979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3980 if test -n "$ac_ct_CC"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3982 $as_echo "$ac_ct_CC" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3988 if test "x$ac_ct_CC" = x; then
3989 CC=""
3990 else
3991 case $cross_compiling:$ac_tool_warned in
3992 yes:)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995 ac_tool_warned=yes ;;
3996 esac
3997 CC=$ac_ct_CC
3999 else
4000 CC="$ac_cv_prog_CC"
4003 if test -z "$CC"; then
4004 if test -n "$ac_tool_prefix"; then
4005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}cc; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_prog_CC+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if test -n "$CC"; then
4013 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_CC="${ac_tool_prefix}cc"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4028 IFS=$as_save_IFS
4032 CC=$ac_cv_prog_CC
4033 if test -n "$CC"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035 $as_echo "$CC" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4044 if test -z "$CC"; then
4045 # Extract the first word of "cc", so it can be a program name with args.
4046 set dummy cc; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_CC+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 ac_prog_rejected=no
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4064 ac_prog_rejected=yes
4065 continue
4067 ac_cv_prog_CC="cc"
4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 break 2
4071 done
4072 done
4073 IFS=$as_save_IFS
4075 if test $ac_prog_rejected = yes; then
4076 # We found a bogon in the path, so make sure we never use it.
4077 set dummy $ac_cv_prog_CC
4078 shift
4079 if test $# != 0; then
4080 # We chose a different compiler from the bogus one.
4081 # However, it has the same basename, so the bogon will be chosen
4082 # first if we set CC to just the basename; use the full file name.
4083 shift
4084 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4089 CC=$ac_cv_prog_CC
4090 if test -n "$CC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4092 $as_echo "$CC" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4100 if test -z "$CC"; then
4101 if test -n "$ac_tool_prefix"; then
4102 for ac_prog in cl.exe
4104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_CC+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test -n "$CC"; then
4112 ac_cv_prog_CC="$CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4127 IFS=$as_save_IFS
4131 CC=$ac_cv_prog_CC
4132 if test -n "$CC"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4134 $as_echo "$CC" >&6; }
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4141 test -n "$CC" && break
4142 done
4144 if test -z "$CC"; then
4145 ac_ct_CC=$CC
4146 for ac_prog in cl.exe
4148 # Extract the first word of "$ac_prog", so it can be a program name with args.
4149 set dummy $ac_prog; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -n "$ac_ct_CC"; then
4156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_ac_ct_CC="$ac_prog"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4169 done
4170 done
4171 IFS=$as_save_IFS
4175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4176 if test -n "$ac_ct_CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4178 $as_echo "$ac_ct_CC" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4185 test -n "$ac_ct_CC" && break
4186 done
4188 if test "x$ac_ct_CC" = x; then
4189 CC=""
4190 else
4191 case $cross_compiling:$ac_tool_warned in
4192 yes:)
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195 ac_tool_warned=yes ;;
4196 esac
4197 CC=$ac_ct_CC
4204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error $? "no acceptable C compiler found in \$PATH
4207 See \`config.log' for more details" "$LINENO" 5; }
4209 # Provide some information about the compiler.
4210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4211 set X $ac_compile
4212 ac_compiler=$2
4213 for ac_option in --version -v -V -qversion; do
4214 { { ac_try="$ac_compiler $ac_option >&5"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4222 ac_status=$?
4223 if test -s conftest.err; then
4224 sed '10a\
4225 ... rest of stderr output deleted ...
4226 10q' conftest.err >conftest.er1
4227 cat conftest.er1 >&5
4229 rm -f conftest.er1 conftest.err
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }
4232 done
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4238 main ()
4242 return 0;
4244 _ACEOF
4245 ac_clean_files_save=$ac_clean_files
4246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4247 # Try to create an executable without -o first, disregard a.out.
4248 # It will help us diagnose broken compilers, and finding out an intuition
4249 # of exeext.
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4251 $as_echo_n "checking whether the C compiler works... " >&6; }
4252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4254 # The possible output files:
4255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4257 ac_rmfiles=
4258 for ac_file in $ac_files
4260 case $ac_file in
4261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4263 esac
4264 done
4265 rm -f $ac_rmfiles
4267 if { { ac_try="$ac_link_default"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_link_default") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4281 # so that the user can short-circuit this test for compilers unknown to
4282 # Autoconf.
4283 for ac_file in $ac_files ''
4285 test -f "$ac_file" || continue
4286 case $ac_file in
4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4289 [ab].out )
4290 # We found the default executable, but exeext='' is most
4291 # certainly right.
4292 break;;
4293 *.* )
4294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4295 then :; else
4296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4298 # We set ac_cv_exeext here because the later test for it is not
4299 # safe: cross compilers may not add the suffix if given an `-o'
4300 # argument, so we may need to know it at that point already.
4301 # Even if this section looks crufty: it has the advantage of
4302 # actually working.
4303 break;;
4305 break;;
4306 esac
4307 done
4308 test "$ac_cv_exeext" = no && ac_cv_exeext=
4310 else
4311 ac_file=''
4313 if test -z "$ac_file"; then :
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 $as_echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error 77 "C compiler cannot create executables
4322 See \`config.log' for more details" "$LINENO" 5; }
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4325 $as_echo "yes" >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4328 $as_echo_n "checking for C compiler default output file name... " >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4330 $as_echo "$ac_file" >&6; }
4331 ac_exeext=$ac_cv_exeext
4333 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4334 ac_clean_files=$ac_clean_files_save
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4336 $as_echo_n "checking for suffix of executables... " >&6; }
4337 if { { ac_try="$ac_link"
4338 case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_link") 2>&5
4345 ac_status=$?
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }; then :
4348 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4349 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4350 # work properly (i.e., refer to `conftest.exe'), while it won't with
4351 # `rm'.
4352 for ac_file in conftest.exe conftest conftest.*; do
4353 test -f "$ac_file" || continue
4354 case $ac_file in
4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 break;;
4358 * ) break;;
4359 esac
4360 done
4361 else
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4365 See \`config.log' for more details" "$LINENO" 5; }
4367 rm -f conftest conftest$ac_cv_exeext
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4369 $as_echo "$ac_cv_exeext" >&6; }
4371 rm -f conftest.$ac_ext
4372 EXEEXT=$ac_cv_exeext
4373 ac_exeext=$EXEEXT
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 #include <stdio.h>
4378 main ()
4380 FILE *f = fopen ("conftest.out", "w");
4381 return ferror (f) || fclose (f) != 0;
4384 return 0;
4386 _ACEOF
4387 ac_clean_files="$ac_clean_files conftest.out"
4388 # Check that the compiler produces executables we can run. If not, either
4389 # the compiler is broken, or we cross compile.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4391 $as_echo_n "checking whether we are cross compiling... " >&6; }
4392 if test "$cross_compiling" != yes; then
4393 { { ac_try="$ac_link"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_link") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 if { ac_try='./conftest$ac_cv_exeext'
4405 { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; }; then
4415 cross_compiling=no
4416 else
4417 if test "$cross_compiling" = maybe; then
4418 cross_compiling=yes
4419 else
4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error $? "cannot run C compiled programs.
4423 If you meant to cross compile, use \`--host'.
4424 See \`config.log' for more details" "$LINENO" 5; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4429 $as_echo "$cross_compiling" >&6; }
4431 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4432 ac_clean_files=$ac_clean_files_save
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4434 $as_echo_n "checking for suffix of object files... " >&6; }
4435 if ${ac_cv_objext+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4442 main ()
4446 return 0;
4448 _ACEOF
4449 rm -f conftest.o conftest.obj
4450 if { { ac_try="$ac_compile"
4451 case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4456 $as_echo "$ac_try_echo"; } >&5
4457 (eval "$ac_compile") 2>&5
4458 ac_status=$?
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }; then :
4461 for ac_file in conftest.o conftest.obj conftest.*; do
4462 test -f "$ac_file" || continue;
4463 case $ac_file in
4464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4465 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4466 break;;
4467 esac
4468 done
4469 else
4470 $as_echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error $? "cannot compute suffix of object files: cannot compile
4476 See \`config.log' for more details" "$LINENO" 5; }
4478 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4481 $as_echo "$ac_cv_objext" >&6; }
4482 OBJEXT=$ac_cv_objext
4483 ac_objext=$OBJEXT
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4485 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4486 if ${ac_cv_c_compiler_gnu+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4493 main ()
4495 #ifndef __GNUC__
4496 choke me
4497 #endif
4500 return 0;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_compiler_gnu=yes
4505 else
4506 ac_compiler_gnu=no
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4513 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4514 if test $ac_compiler_gnu = yes; then
4515 GCC=yes
4516 else
4517 GCC=
4519 ac_test_CFLAGS=${CFLAGS+set}
4520 ac_save_CFLAGS=$CFLAGS
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4522 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4523 if ${ac_cv_prog_cc_g+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 ac_save_c_werror_flag=$ac_c_werror_flag
4527 ac_c_werror_flag=yes
4528 ac_cv_prog_cc_g=no
4529 CFLAGS="-g"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4534 main ()
4538 return 0;
4540 _ACEOF
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_prog_cc_g=yes
4543 else
4544 CFLAGS=""
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4549 main ()
4553 return 0;
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4558 else
4559 ac_c_werror_flag=$ac_save_c_werror_flag
4560 CFLAGS="-g"
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4565 main ()
4569 return 0;
4571 _ACEOF
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_prog_cc_g=yes
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_c_werror_flag=$ac_save_c_werror_flag
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4583 $as_echo "$ac_cv_prog_cc_g" >&6; }
4584 if test "$ac_test_CFLAGS" = set; then
4585 CFLAGS=$ac_save_CFLAGS
4586 elif test $ac_cv_prog_cc_g = yes; then
4587 if test "$GCC" = yes; then
4588 CFLAGS="-g -O2"
4589 else
4590 CFLAGS="-g"
4592 else
4593 if test "$GCC" = yes; then
4594 CFLAGS="-O2"
4595 else
4596 CFLAGS=
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4601 if ${ac_cv_prog_cc_c89+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 ac_cv_prog_cc_c89=no
4605 ac_save_CC=$CC
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #include <stdarg.h>
4609 #include <stdio.h>
4610 struct stat;
4611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4612 struct buf { int x; };
4613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4614 static char *e (p, i)
4615 char **p;
4616 int i;
4618 return p[i];
4620 static char *f (char * (*g) (char **, int), char **p, ...)
4622 char *s;
4623 va_list v;
4624 va_start (v,p);
4625 s = g (p, va_arg (v,int));
4626 va_end (v);
4627 return s;
4630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4631 function prototypes and stuff, but not '\xHH' hex character constants.
4632 These don't provoke an error unfortunately, instead are silently treated
4633 as 'x'. The following induces an error, until -std is added to get
4634 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4635 array size at least. It's necessary to write '\x00'==0 to get something
4636 that's true only with -std. */
4637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4639 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4640 inside strings and character constants. */
4641 #define FOO(x) 'x'
4642 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4644 int test (int i, double x);
4645 struct s1 {int (*f) (int a);};
4646 struct s2 {int (*f) (double a);};
4647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4648 int argc;
4649 char **argv;
4651 main ()
4653 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4655 return 0;
4657 _ACEOF
4658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4661 CC="$ac_save_CC $ac_arg"
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_c89=$ac_arg
4665 rm -f core conftest.err conftest.$ac_objext
4666 test "x$ac_cv_prog_cc_c89" != "xno" && break
4667 done
4668 rm -f conftest.$ac_ext
4669 CC=$ac_save_CC
4672 # AC_CACHE_VAL
4673 case "x$ac_cv_prog_cc_c89" in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676 $as_echo "none needed" >&6; } ;;
4677 xno)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679 $as_echo "unsupported" >&6; } ;;
4681 CC="$CC $ac_cv_prog_cc_c89"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4684 esac
4685 if test "x$ac_cv_prog_cc_c89" != xno; then :
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 ac_ext=c
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4701 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4702 if ${am_cv_prog_cc_c_o+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 main ()
4713 return 0;
4715 _ACEOF
4716 # Make sure it works both with $CC and with simple cc.
4717 # Following AC_PROG_CC_C_O, we do the test twice because some
4718 # compilers refuse to overwrite an existing .o file with -o,
4719 # though they will create one.
4720 am_cv_prog_cc_c_o=yes
4721 for am_i in 1 2; do
4722 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4723 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } \
4727 && test -f conftest2.$ac_objext; then
4728 : OK
4729 else
4730 am_cv_prog_cc_c_o=no
4731 break
4733 done
4734 rm -f core conftest*
4735 unset am_i
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4738 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4739 if test "$am_cv_prog_cc_c_o" != yes; then
4740 # Losing compiler, so override with the script.
4741 # FIXME: It is wrong to rewrite CC.
4742 # But if we don't then we get into trouble of one sort or another.
4743 # A longer-term fix would be to have automake use am__CC in this case,
4744 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4745 CC="$am_aux_dir/compile $CC"
4747 ac_ext=c
4748 ac_cpp='$CPP $CPPFLAGS'
4749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754 depcc="$CC" am_compiler_list=
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4757 $as_echo_n "checking dependency style of $depcc... " >&6; }
4758 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4762 # We make a subdir and do the tests there. Otherwise we can end up
4763 # making bogus files that we don't know about and never remove. For
4764 # instance it was reported that on HP-UX the gcc test will end up
4765 # making a dummy file named 'D' -- because '-MD' means "put the output
4766 # in D".
4767 rm -rf conftest.dir
4768 mkdir conftest.dir
4769 # Copy depcomp to subdir because otherwise we won't find it if we're
4770 # using a relative directory.
4771 cp "$am_depcomp" conftest.dir
4772 cd conftest.dir
4773 # We will build objects and dependencies in a subdirectory because
4774 # it helps to detect inapplicable dependency modes. For instance
4775 # both Tru64's cc and ICC support -MD to output dependencies as a
4776 # side effect of compilation, but ICC will put the dependencies in
4777 # the current directory while Tru64 will put them in the object
4778 # directory.
4779 mkdir sub
4781 am_cv_CC_dependencies_compiler_type=none
4782 if test "$am_compiler_list" = ""; then
4783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4785 am__universal=false
4786 case " $depcc " in #(
4787 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4788 esac
4790 for depmode in $am_compiler_list; do
4791 # Setup a source with many dependencies, because some compilers
4792 # like to wrap large dependency lists on column 80 (with \), and
4793 # we should not choose a depcomp mode which is confused by this.
4795 # We need to recreate these files for each test, as the compiler may
4796 # overwrite some of them when testing with obscure command lines.
4797 # This happens at least with the AIX C compiler.
4798 : > sub/conftest.c
4799 for i in 1 2 3 4 5 6; do
4800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4801 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4802 # Solaris 10 /bin/sh.
4803 echo '/* dummy */' > sub/conftst$i.h
4804 done
4805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4807 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4808 # mode. It turns out that the SunPro C++ compiler does not properly
4809 # handle '-M -o', and we need to detect this. Also, some Intel
4810 # versions had trouble with output in subdirs.
4811 am__obj=sub/conftest.${OBJEXT-o}
4812 am__minus_obj="-o $am__obj"
4813 case $depmode in
4814 gcc)
4815 # This depmode causes a compiler race in universal mode.
4816 test "$am__universal" = false || continue
4818 nosideeffect)
4819 # After this tag, mechanisms are not by side-effect, so they'll
4820 # only be used when explicitly requested.
4821 if test "x$enable_dependency_tracking" = xyes; then
4822 continue
4823 else
4824 break
4827 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4828 # This compiler won't grok '-c -o', but also, the minuso test has
4829 # not run yet. These depmodes are late enough in the game, and
4830 # so weak that their functioning should not be impacted.
4831 am__obj=conftest.${OBJEXT-o}
4832 am__minus_obj=
4834 none) break ;;
4835 esac
4836 if depmode=$depmode \
4837 source=sub/conftest.c object=$am__obj \
4838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4840 >/dev/null 2>conftest.err &&
4841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845 # icc doesn't choke on unknown options, it will just issue warnings
4846 # or remarks (even with -Werror). So we grep stderr for any message
4847 # that says an option was ignored or not supported.
4848 # When given -MP, icc 7.0 and 7.1 complain thusly:
4849 # icc: Command line warning: ignoring option '-M'; no argument required
4850 # The diagnosis changed in icc 8.0:
4851 # icc: Command line remark: option '-MP' not supported
4852 if (grep 'ignoring option' conftest.err ||
4853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854 am_cv_CC_dependencies_compiler_type=$depmode
4855 break
4858 done
4860 cd ..
4861 rm -rf conftest.dir
4862 else
4863 am_cv_CC_dependencies_compiler_type=none
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4872 test "x$enable_dependency_tracking" != xno \
4873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4874 am__fastdepCC_TRUE=
4875 am__fastdepCC_FALSE='#'
4876 else
4877 am__fastdepCC_TRUE='#'
4878 am__fastdepCC_FALSE=
4883 # Check whether --enable-compiler-warnings was given.
4884 if test "${enable_compiler_warnings+set}" = set; then :
4885 enableval=$enable_compiler_warnings;
4887 case $enable_compiler_warnings in #(
4888 no | min | yes | max | all) :
4889 ;; #(
4890 *) :
4891 if test "x$enable_maintainer_mode" = xyes; then :
4892 enable_compiler_warnings=yes
4893 else
4894 enable_compiler_warnings=min
4895 fi ;;
4896 esac
4898 case `pwd` in
4899 *\ * | *\ *)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4902 esac
4906 macro_version='2.4.6'
4907 macro_revision='2.4.6'
4921 ltmain=$ac_aux_dir/ltmain.sh
4923 # Make sure we can run config.sub.
4924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4925 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4928 $as_echo_n "checking build system type... " >&6; }
4929 if ${ac_cv_build+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 ac_build_alias=$build_alias
4933 test "x$ac_build_alias" = x &&
4934 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4935 test "x$ac_build_alias" = x &&
4936 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4938 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4942 $as_echo "$ac_cv_build" >&6; }
4943 case $ac_cv_build in
4944 *-*-*) ;;
4945 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4946 esac
4947 build=$ac_cv_build
4948 ac_save_IFS=$IFS; IFS='-'
4949 set x $ac_cv_build
4950 shift
4951 build_cpu=$1
4952 build_vendor=$2
4953 shift; shift
4954 # Remember, the first character of IFS is used to create $*,
4955 # except with old shells:
4956 build_os=$*
4957 IFS=$ac_save_IFS
4958 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4962 $as_echo_n "checking host system type... " >&6; }
4963 if ${ac_cv_host+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test "x$host_alias" = x; then
4967 ac_cv_host=$ac_cv_build
4968 else
4969 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4970 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4975 $as_echo "$ac_cv_host" >&6; }
4976 case $ac_cv_host in
4977 *-*-*) ;;
4978 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4979 esac
4980 host=$ac_cv_host
4981 ac_save_IFS=$IFS; IFS='-'
4982 set x $ac_cv_host
4983 shift
4984 host_cpu=$1
4985 host_vendor=$2
4986 shift; shift
4987 # Remember, the first character of IFS is used to create $*,
4988 # except with old shells:
4989 host_os=$*
4990 IFS=$ac_save_IFS
4991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4994 # Backslashify metacharacters that are still active within
4995 # double-quoted strings.
4996 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4998 # Same as above, but do not quote variable references.
4999 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5001 # Sed substitution to delay expansion of an escaped shell variable in a
5002 # double_quote_subst'ed string.
5003 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5005 # Sed substitution to delay expansion of an escaped single quote.
5006 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5008 # Sed substitution to avoid accidental globbing in evaled expressions
5009 no_glob_subst='s/\*/\\\*/g'
5011 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5012 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5016 $as_echo_n "checking how to print strings... " >&6; }
5017 # Test print first, because it will be a builtin if present.
5018 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5019 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5020 ECHO='print -r --'
5021 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5022 ECHO='printf %s\n'
5023 else
5024 # Use this function as a fallback that always works.
5025 func_fallback_echo ()
5027 eval 'cat <<_LTECHO_EOF
5029 _LTECHO_EOF'
5031 ECHO='func_fallback_echo'
5034 # func_echo_all arg...
5035 # Invoke $ECHO with all args, space-separated.
5036 func_echo_all ()
5038 $ECHO ""
5041 case $ECHO in
5042 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5043 $as_echo "printf" >&6; } ;;
5044 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5045 $as_echo "print -r" >&6; } ;;
5046 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5047 $as_echo "cat" >&6; } ;;
5048 esac
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5064 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5065 if ${ac_cv_path_SED+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5069 for ac_i in 1 2 3 4 5 6 7; do
5070 ac_script="$ac_script$as_nl$ac_script"
5071 done
5072 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5073 { ac_script=; unset ac_script;}
5074 if test -z "$SED"; then
5075 ac_path_SED_found=false
5076 # Loop through the user's path and test for each of PROGNAME-LIST
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_prog in sed gsed; do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5085 as_fn_executable_p "$ac_path_SED" || continue
5086 # Check for GNU ac_path_SED and select it if it is found.
5087 # Check for GNU $ac_path_SED
5088 case `"$ac_path_SED" --version 2>&1` in
5089 *GNU*)
5090 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5092 ac_count=0
5093 $as_echo_n 0123456789 >"conftest.in"
5094 while :
5096 cat "conftest.in" "conftest.in" >"conftest.tmp"
5097 mv "conftest.tmp" "conftest.in"
5098 cp "conftest.in" "conftest.nl"
5099 $as_echo '' >> "conftest.nl"
5100 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5102 as_fn_arith $ac_count + 1 && ac_count=$as_val
5103 if test $ac_count -gt ${ac_path_SED_max-0}; then
5104 # Best one so far, save it but keep looking for a better one
5105 ac_cv_path_SED="$ac_path_SED"
5106 ac_path_SED_max=$ac_count
5108 # 10*(2^10) chars as input seems more than enough
5109 test $ac_count -gt 10 && break
5110 done
5111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112 esac
5114 $ac_path_SED_found && break 3
5115 done
5116 done
5117 done
5118 IFS=$as_save_IFS
5119 if test -z "$ac_cv_path_SED"; then
5120 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5122 else
5123 ac_cv_path_SED=$SED
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5128 $as_echo "$ac_cv_path_SED" >&6; }
5129 SED="$ac_cv_path_SED"
5130 rm -f conftest.sed
5132 test -z "$SED" && SED=sed
5133 Xsed="$SED -e 1s/^X//"
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5147 if ${ac_cv_path_GREP+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -z "$GREP"; then
5151 ac_path_GREP_found=false
5152 # Loop through the user's path and test for each of PROGNAME-LIST
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_prog in grep ggrep; do
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5161 as_fn_executable_p "$ac_path_GREP" || continue
5162 # Check for GNU ac_path_GREP and select it if it is found.
5163 # Check for GNU $ac_path_GREP
5164 case `"$ac_path_GREP" --version 2>&1` in
5165 *GNU*)
5166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5168 ac_count=0
5169 $as_echo_n 0123456789 >"conftest.in"
5170 while :
5172 cat "conftest.in" "conftest.in" >"conftest.tmp"
5173 mv "conftest.tmp" "conftest.in"
5174 cp "conftest.in" "conftest.nl"
5175 $as_echo 'GREP' >> "conftest.nl"
5176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5178 as_fn_arith $ac_count + 1 && ac_count=$as_val
5179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5180 # Best one so far, save it but keep looking for a better one
5181 ac_cv_path_GREP="$ac_path_GREP"
5182 ac_path_GREP_max=$ac_count
5184 # 10*(2^10) chars as input seems more than enough
5185 test $ac_count -gt 10 && break
5186 done
5187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5188 esac
5190 $ac_path_GREP_found && break 3
5191 done
5192 done
5193 done
5194 IFS=$as_save_IFS
5195 if test -z "$ac_cv_path_GREP"; then
5196 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5198 else
5199 ac_cv_path_GREP=$GREP
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5204 $as_echo "$ac_cv_path_GREP" >&6; }
5205 GREP="$ac_cv_path_GREP"
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5209 $as_echo_n "checking for egrep... " >&6; }
5210 if ${ac_cv_path_EGREP+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5214 then ac_cv_path_EGREP="$GREP -E"
5215 else
5216 if test -z "$EGREP"; then
5217 ac_path_EGREP_found=false
5218 # Loop through the user's path and test for each of PROGNAME-LIST
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_prog in egrep; do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5227 as_fn_executable_p "$ac_path_EGREP" || continue
5228 # Check for GNU ac_path_EGREP and select it if it is found.
5229 # Check for GNU $ac_path_EGREP
5230 case `"$ac_path_EGREP" --version 2>&1` in
5231 *GNU*)
5232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5234 ac_count=0
5235 $as_echo_n 0123456789 >"conftest.in"
5236 while :
5238 cat "conftest.in" "conftest.in" >"conftest.tmp"
5239 mv "conftest.tmp" "conftest.in"
5240 cp "conftest.in" "conftest.nl"
5241 $as_echo 'EGREP' >> "conftest.nl"
5242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244 as_fn_arith $ac_count + 1 && ac_count=$as_val
5245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5246 # Best one so far, save it but keep looking for a better one
5247 ac_cv_path_EGREP="$ac_path_EGREP"
5248 ac_path_EGREP_max=$ac_count
5250 # 10*(2^10) chars as input seems more than enough
5251 test $ac_count -gt 10 && break
5252 done
5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254 esac
5256 $ac_path_EGREP_found && break 3
5257 done
5258 done
5259 done
5260 IFS=$as_save_IFS
5261 if test -z "$ac_cv_path_EGREP"; then
5262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5264 else
5265 ac_cv_path_EGREP=$EGREP
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5271 $as_echo "$ac_cv_path_EGREP" >&6; }
5272 EGREP="$ac_cv_path_EGREP"
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5276 $as_echo_n "checking for fgrep... " >&6; }
5277 if ${ac_cv_path_FGREP+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5281 then ac_cv_path_FGREP="$GREP -F"
5282 else
5283 if test -z "$FGREP"; then
5284 ac_path_FGREP_found=false
5285 # Loop through the user's path and test for each of PROGNAME-LIST
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_prog in fgrep; do
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5294 as_fn_executable_p "$ac_path_FGREP" || continue
5295 # Check for GNU ac_path_FGREP and select it if it is found.
5296 # Check for GNU $ac_path_FGREP
5297 case `"$ac_path_FGREP" --version 2>&1` in
5298 *GNU*)
5299 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5301 ac_count=0
5302 $as_echo_n 0123456789 >"conftest.in"
5303 while :
5305 cat "conftest.in" "conftest.in" >"conftest.tmp"
5306 mv "conftest.tmp" "conftest.in"
5307 cp "conftest.in" "conftest.nl"
5308 $as_echo 'FGREP' >> "conftest.nl"
5309 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5311 as_fn_arith $ac_count + 1 && ac_count=$as_val
5312 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5313 # Best one so far, save it but keep looking for a better one
5314 ac_cv_path_FGREP="$ac_path_FGREP"
5315 ac_path_FGREP_max=$ac_count
5317 # 10*(2^10) chars as input seems more than enough
5318 test $ac_count -gt 10 && break
5319 done
5320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5321 esac
5323 $ac_path_FGREP_found && break 3
5324 done
5325 done
5326 done
5327 IFS=$as_save_IFS
5328 if test -z "$ac_cv_path_FGREP"; then
5329 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5331 else
5332 ac_cv_path_FGREP=$FGREP
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5338 $as_echo "$ac_cv_path_FGREP" >&6; }
5339 FGREP="$ac_cv_path_FGREP"
5342 test -z "$GREP" && GREP=grep
5362 # Check whether --with-gnu-ld was given.
5363 if test "${with_gnu_ld+set}" = set; then :
5364 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5365 else
5366 with_gnu_ld=no
5369 ac_prog=ld
5370 if test yes = "$GCC"; then
5371 # Check if gcc -print-prog-name=ld gives a path.
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5373 $as_echo_n "checking for ld used by $CC... " >&6; }
5374 case $host in
5375 *-*-mingw*)
5376 # gcc leaves a trailing carriage return, which upsets mingw
5377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5380 esac
5381 case $ac_prog in
5382 # Accept absolute paths.
5383 [\\/]* | ?:[\\/]*)
5384 re_direlt='/[^/][^/]*/\.\./'
5385 # Canonicalize the pathname of ld
5386 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5387 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5388 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5389 done
5390 test -z "$LD" && LD=$ac_prog
5393 # If it fails, then pretend we aren't using GCC.
5394 ac_prog=ld
5397 # If it is relative, then search for the first ld in PATH.
5398 with_gnu_ld=unknown
5400 esac
5401 elif test yes = "$with_gnu_ld"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5403 $as_echo_n "checking for GNU ld... " >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5406 $as_echo_n "checking for non-GNU ld... " >&6; }
5408 if ${lt_cv_path_LD+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -z "$LD"; then
5412 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5413 for ac_dir in $PATH; do
5414 IFS=$lt_save_ifs
5415 test -z "$ac_dir" && ac_dir=.
5416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5417 lt_cv_path_LD=$ac_dir/$ac_prog
5418 # Check to see if the program is GNU ld. I'd rather use --version,
5419 # but apparently some variants of GNU ld only accept -v.
5420 # Break only if it was the GNU/non-GNU ld that we prefer.
5421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5422 *GNU* | *'with BFD'*)
5423 test no != "$with_gnu_ld" && break
5426 test yes != "$with_gnu_ld" && break
5428 esac
5430 done
5431 IFS=$lt_save_ifs
5432 else
5433 lt_cv_path_LD=$LD # Let the user override the test with a path.
5437 LD=$lt_cv_path_LD
5438 if test -n "$LD"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5440 $as_echo "$LD" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5445 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5448 if ${lt_cv_prog_gnu_ld+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5452 case `$LD -v 2>&1 </dev/null` in
5453 *GNU* | *'with BFD'*)
5454 lt_cv_prog_gnu_ld=yes
5457 lt_cv_prog_gnu_ld=no
5459 esac
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5462 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5463 with_gnu_ld=$lt_cv_prog_gnu_ld
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5474 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5475 if ${lt_cv_path_NM+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$NM"; then
5479 # Let the user override the test.
5480 lt_cv_path_NM=$NM
5481 else
5482 lt_nm_to_check=${ac_tool_prefix}nm
5483 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5484 lt_nm_to_check="$lt_nm_to_check nm"
5486 for lt_tmp_nm in $lt_nm_to_check; do
5487 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5488 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5489 IFS=$lt_save_ifs
5490 test -z "$ac_dir" && ac_dir=.
5491 tmp_nm=$ac_dir/$lt_tmp_nm
5492 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5493 # Check to see if the nm accepts a BSD-compat flag.
5494 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5495 # nm: unknown option "B" ignored
5496 # Tru64's nm complains that /dev/null is an invalid object file
5497 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5498 case $build_os in
5499 mingw*) lt_bad_file=conftest.nm/nofile ;;
5500 *) lt_bad_file=/dev/null ;;
5501 esac
5502 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5503 *$lt_bad_file* | *'Invalid file or object type'*)
5504 lt_cv_path_NM="$tmp_nm -B"
5505 break 2
5508 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5509 */dev/null*)
5510 lt_cv_path_NM="$tmp_nm -p"
5511 break 2
5514 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5515 continue # so that we can try to find one that supports BSD flags
5517 esac
5519 esac
5521 done
5522 IFS=$lt_save_ifs
5523 done
5524 : ${lt_cv_path_NM=no}
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5528 $as_echo "$lt_cv_path_NM" >&6; }
5529 if test no != "$lt_cv_path_NM"; then
5530 NM=$lt_cv_path_NM
5531 else
5532 # Didn't find any BSD compatible name lister, look for dumpbin.
5533 if test -n "$DUMPBIN"; then :
5534 # Let the user override the test.
5535 else
5536 if test -n "$ac_tool_prefix"; then
5537 for ac_prog in dumpbin "link -dump"
5539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_DUMPBIN+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$DUMPBIN"; then
5547 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 DUMPBIN=$ac_cv_prog_DUMPBIN
5567 if test -n "$DUMPBIN"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5569 $as_echo "$DUMPBIN" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5576 test -n "$DUMPBIN" && break
5577 done
5579 if test -z "$DUMPBIN"; then
5580 ac_ct_DUMPBIN=$DUMPBIN
5581 for ac_prog in dumpbin "link -dump"
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$ac_ct_DUMPBIN"; then
5591 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5611 if test -n "$ac_ct_DUMPBIN"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5613 $as_echo "$ac_ct_DUMPBIN" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 test -n "$ac_ct_DUMPBIN" && break
5621 done
5623 if test "x$ac_ct_DUMPBIN" = x; then
5624 DUMPBIN=":"
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 DUMPBIN=$ac_ct_DUMPBIN
5636 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5637 *COFF*)
5638 DUMPBIN="$DUMPBIN -symbols -headers"
5641 DUMPBIN=:
5643 esac
5646 if test : != "$DUMPBIN"; then
5647 NM=$DUMPBIN
5650 test -z "$NM" && NM=nm
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5658 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5659 if ${lt_cv_nm_interface+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 lt_cv_nm_interface="BSD nm"
5663 echo "int some_variable = 0;" > conftest.$ac_ext
5664 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5665 (eval "$ac_compile" 2>conftest.err)
5666 cat conftest.err >&5
5667 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5668 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5669 cat conftest.err >&5
5670 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5671 cat conftest.out >&5
5672 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5673 lt_cv_nm_interface="MS dumpbin"
5675 rm -f conftest*
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5678 $as_echo "$lt_cv_nm_interface" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5681 $as_echo_n "checking whether ln -s works... " >&6; }
5682 LN_S=$as_ln_s
5683 if test "$LN_S" = "ln -s"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685 $as_echo "yes" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5688 $as_echo "no, using $LN_S" >&6; }
5691 # find the maximum length of command line arguments
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5693 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5694 if ${lt_cv_sys_max_cmd_len+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5698 teststring=ABCD
5700 case $build_os in
5701 msdosdjgpp*)
5702 # On DJGPP, this test can blow up pretty badly due to problems in libc
5703 # (any single argument exceeding 2000 bytes causes a buffer overrun
5704 # during glob expansion). Even if it were fixed, the result of this
5705 # check would be larger than it should be.
5706 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5709 gnu*)
5710 # Under GNU Hurd, this test is not required because there is
5711 # no limit to the length of command line arguments.
5712 # Libtool will interpret -1 as no limit whatsoever
5713 lt_cv_sys_max_cmd_len=-1;
5716 cygwin* | mingw* | cegcc*)
5717 # On Win9x/ME, this test blows up -- it succeeds, but takes
5718 # about 5 minutes as the teststring grows exponentially.
5719 # Worse, since 9x/ME are not pre-emptively multitasking,
5720 # you end up with a "frozen" computer, even though with patience
5721 # the test eventually succeeds (with a max line length of 256k).
5722 # Instead, let's just punt: use the minimum linelength reported by
5723 # all of the supported platforms: 8192 (on NT/2K/XP).
5724 lt_cv_sys_max_cmd_len=8192;
5727 mint*)
5728 # On MiNT this can take a long time and run out of memory.
5729 lt_cv_sys_max_cmd_len=8192;
5732 amigaos*)
5733 # On AmigaOS with pdksh, this test takes hours, literally.
5734 # So we just punt and use a minimum line length of 8192.
5735 lt_cv_sys_max_cmd_len=8192;
5738 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5739 # This has been around since 386BSD, at least. Likely further.
5740 if test -x /sbin/sysctl; then
5741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5742 elif test -x /usr/sbin/sysctl; then
5743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5744 else
5745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5747 # And add a safety zone
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5752 interix*)
5753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5754 lt_cv_sys_max_cmd_len=196608
5757 os2*)
5758 # The test takes a long time on OS/2.
5759 lt_cv_sys_max_cmd_len=8192
5762 osf*)
5763 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5764 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5765 # nice to cause kernel panics so lets avoid the loop below.
5766 # First set a reasonable default.
5767 lt_cv_sys_max_cmd_len=16384
5769 if test -x /sbin/sysconfig; then
5770 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5771 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5772 esac
5775 sco3.2v5*)
5776 lt_cv_sys_max_cmd_len=102400
5778 sysv5* | sco5v6* | sysv4.2uw2*)
5779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5780 if test -n "$kargmax"; then
5781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5782 else
5783 lt_cv_sys_max_cmd_len=32768
5787 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5788 if test -n "$lt_cv_sys_max_cmd_len" && \
5789 test undefined != "$lt_cv_sys_max_cmd_len"; then
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5792 else
5793 # Make teststring a little bigger before we do anything with it.
5794 # a 1K string should be a reasonable start.
5795 for i in 1 2 3 4 5 6 7 8; do
5796 teststring=$teststring$teststring
5797 done
5798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5799 # If test is not a shell built-in, we'll probably end up computing a
5800 # maximum length that is only half of the actual maximum length, but
5801 # we can't tell.
5802 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5803 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5804 test 17 != "$i" # 1/2 MB should be enough
5806 i=`expr $i + 1`
5807 teststring=$teststring$teststring
5808 done
5809 # Only check the string length outside the loop.
5810 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5811 teststring=
5812 # Add a significant safety factor because C++ compilers can tack on
5813 # massive amounts of additional arguments before passing them to the
5814 # linker. It appears as though 1/2 is a usable value.
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5818 esac
5822 if test -n "$lt_cv_sys_max_cmd_len"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5824 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5827 $as_echo "none" >&6; }
5829 max_cmd_len=$lt_cv_sys_max_cmd_len
5836 : ${CP="cp -f"}
5837 : ${MV="mv -f"}
5838 : ${RM="rm -f"}
5840 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5841 lt_unset=unset
5842 else
5843 lt_unset=false
5850 # test EBCDIC or ASCII
5851 case `echo X|tr X '\101'` in
5852 A) # ASCII based system
5853 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5854 lt_SP2NL='tr \040 \012'
5855 lt_NL2SP='tr \015\012 \040\040'
5857 *) # EBCDIC based system
5858 lt_SP2NL='tr \100 \n'
5859 lt_NL2SP='tr \r\n \100\100'
5861 esac
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5872 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5873 if ${lt_cv_to_host_file_cmd+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 case $host in
5877 *-*-mingw* )
5878 case $build in
5879 *-*-mingw* ) # actually msys
5880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5882 *-*-cygwin* )
5883 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5885 * ) # otherwise, assume *nix
5886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5888 esac
5890 *-*-cygwin* )
5891 case $build in
5892 *-*-mingw* ) # actually msys
5893 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5895 *-*-cygwin* )
5896 lt_cv_to_host_file_cmd=func_convert_file_noop
5898 * ) # otherwise, assume *nix
5899 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5901 esac
5903 * ) # unhandled hosts (and "normal" native builds)
5904 lt_cv_to_host_file_cmd=func_convert_file_noop
5906 esac
5910 to_host_file_cmd=$lt_cv_to_host_file_cmd
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5912 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5919 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5920 if ${lt_cv_to_tool_file_cmd+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 #assume ordinary cross tools, or native build.
5924 lt_cv_to_tool_file_cmd=func_convert_file_noop
5925 case $host in
5926 *-*-mingw* )
5927 case $build in
5928 *-*-mingw* ) # actually msys
5929 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5931 esac
5933 esac
5937 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5939 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5946 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5947 if ${lt_cv_ld_reload_flag+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 lt_cv_ld_reload_flag='-r'
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5953 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5954 reload_flag=$lt_cv_ld_reload_flag
5955 case $reload_flag in
5956 "" | " "*) ;;
5957 *) reload_flag=" $reload_flag" ;;
5958 esac
5959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5960 case $host_os in
5961 cygwin* | mingw* | pw32* | cegcc*)
5962 if test yes != "$GCC"; then
5963 reload_cmds=false
5966 darwin*)
5967 if test yes = "$GCC"; then
5968 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5969 else
5970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5973 esac
5983 if test -n "$ac_tool_prefix"; then
5984 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_prog_OBJDUMP+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if test -n "$OBJDUMP"; then
5992 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6005 done
6006 done
6007 IFS=$as_save_IFS
6011 OBJDUMP=$ac_cv_prog_OBJDUMP
6012 if test -n "$OBJDUMP"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6014 $as_echo "$OBJDUMP" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6022 if test -z "$ac_cv_prog_OBJDUMP"; then
6023 ac_ct_OBJDUMP=$OBJDUMP
6024 # Extract the first word of "objdump", so it can be a program name with args.
6025 set dummy objdump; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$ac_ct_OBJDUMP"; then
6032 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6045 done
6046 done
6047 IFS=$as_save_IFS
6051 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6052 if test -n "$ac_ct_OBJDUMP"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6054 $as_echo "$ac_ct_OBJDUMP" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6060 if test "x$ac_ct_OBJDUMP" = x; then
6061 OBJDUMP="false"
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069 OBJDUMP=$ac_ct_OBJDUMP
6071 else
6072 OBJDUMP="$ac_cv_prog_OBJDUMP"
6075 test -z "$OBJDUMP" && OBJDUMP=objdump
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6083 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6084 if ${lt_cv_deplibs_check_method+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 lt_cv_file_magic_cmd='$MAGIC_CMD'
6088 lt_cv_file_magic_test_file=
6089 lt_cv_deplibs_check_method='unknown'
6090 # Need to set the preceding variable on all platforms that support
6091 # interlibrary dependencies.
6092 # 'none' -- dependencies not supported.
6093 # 'unknown' -- same as none, but documents that we really don't know.
6094 # 'pass_all' -- all dependencies passed with no checks.
6095 # 'test_compile' -- check by making test program.
6096 # 'file_magic [[regex]]' -- check by looking for files in library path
6097 # that responds to the $file_magic_cmd with a given extended regex.
6098 # If you have 'file' or equivalent on your system and you're not sure
6099 # whether 'pass_all' will *always* work, you probably want this one.
6101 case $host_os in
6102 aix[4-9]*)
6103 lt_cv_deplibs_check_method=pass_all
6106 beos*)
6107 lt_cv_deplibs_check_method=pass_all
6110 bsdi[45]*)
6111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6112 lt_cv_file_magic_cmd='/usr/bin/file -L'
6113 lt_cv_file_magic_test_file=/shlib/libc.so
6116 cygwin*)
6117 # func_win32_libid is a shell function defined in ltmain.sh
6118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6119 lt_cv_file_magic_cmd='func_win32_libid'
6122 mingw* | pw32*)
6123 # Base MSYS/MinGW do not provide the 'file' command needed by
6124 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6125 # unless we find 'file', for example because we are cross-compiling.
6126 if ( file / ) >/dev/null 2>&1; then
6127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6128 lt_cv_file_magic_cmd='func_win32_libid'
6129 else
6130 # Keep this pattern in sync with the one in func_win32_libid.
6131 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6132 lt_cv_file_magic_cmd='$OBJDUMP -f'
6136 cegcc*)
6137 # use the weaker test based on 'objdump'. See mingw*.
6138 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6139 lt_cv_file_magic_cmd='$OBJDUMP -f'
6142 darwin* | rhapsody*)
6143 lt_cv_deplibs_check_method=pass_all
6146 freebsd* | dragonfly*)
6147 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6148 case $host_cpu in
6149 i*86 )
6150 # Not sure whether the presence of OpenBSD here was a mistake.
6151 # Let's accept both of them until this is cleared up.
6152 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6153 lt_cv_file_magic_cmd=/usr/bin/file
6154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6156 esac
6157 else
6158 lt_cv_deplibs_check_method=pass_all
6162 haiku*)
6163 lt_cv_deplibs_check_method=pass_all
6166 hpux10.20* | hpux11*)
6167 lt_cv_file_magic_cmd=/usr/bin/file
6168 case $host_cpu in
6169 ia64*)
6170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6173 hppa*64*)
6174 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]'
6175 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6179 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6181 esac
6184 interix[3-9]*)
6185 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6189 irix5* | irix6* | nonstopux*)
6190 case $LD in
6191 *-32|*"-32 ") libmagic=32-bit;;
6192 *-n32|*"-n32 ") libmagic=N32;;
6193 *-64|*"-64 ") libmagic=64-bit;;
6194 *) libmagic=never-match;;
6195 esac
6196 lt_cv_deplibs_check_method=pass_all
6199 # This must be glibc/ELF.
6200 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6201 lt_cv_deplibs_check_method=pass_all
6204 netbsd*)
6205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6207 else
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6212 newos6*)
6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6214 lt_cv_file_magic_cmd=/usr/bin/file
6215 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6218 *nto* | *qnx*)
6219 lt_cv_deplibs_check_method=pass_all
6222 openbsd* | bitrig*)
6223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6225 else
6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6230 osf3* | osf4* | osf5*)
6231 lt_cv_deplibs_check_method=pass_all
6234 rdos*)
6235 lt_cv_deplibs_check_method=pass_all
6238 solaris*)
6239 lt_cv_deplibs_check_method=pass_all
6242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6243 lt_cv_deplibs_check_method=pass_all
6246 sysv4 | sysv4.3*)
6247 case $host_vendor in
6248 motorola)
6249 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]'
6250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6252 ncr)
6253 lt_cv_deplibs_check_method=pass_all
6255 sequent)
6256 lt_cv_file_magic_cmd='/bin/file'
6257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6259 sni)
6260 lt_cv_file_magic_cmd='/bin/file'
6261 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6262 lt_cv_file_magic_test_file=/lib/libc.so
6264 siemens)
6265 lt_cv_deplibs_check_method=pass_all
6268 lt_cv_deplibs_check_method=pass_all
6270 esac
6273 tpf*)
6274 lt_cv_deplibs_check_method=pass_all
6276 os2*)
6277 lt_cv_deplibs_check_method=pass_all
6279 esac
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6283 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6285 file_magic_glob=
6286 want_nocaseglob=no
6287 if test "$build" = "$host"; then
6288 case $host_os in
6289 mingw* | pw32*)
6290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6291 want_nocaseglob=yes
6292 else
6293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6296 esac
6299 file_magic_cmd=$lt_cv_file_magic_cmd
6300 deplibs_check_method=$lt_cv_deplibs_check_method
6301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_DLLTOOL+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$DLLTOOL"; then
6333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6346 done
6347 done
6348 IFS=$as_save_IFS
6352 DLLTOOL=$ac_cv_prog_DLLTOOL
6353 if test -n "$DLLTOOL"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6355 $as_echo "$DLLTOOL" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6363 if test -z "$ac_cv_prog_DLLTOOL"; then
6364 ac_ct_DLLTOOL=$DLLTOOL
6365 # Extract the first word of "dlltool", so it can be a program name with args.
6366 set dummy dlltool; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$ac_ct_DLLTOOL"; then
6373 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6386 done
6387 done
6388 IFS=$as_save_IFS
6392 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6393 if test -n "$ac_ct_DLLTOOL"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6395 $as_echo "$ac_ct_DLLTOOL" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6401 if test "x$ac_ct_DLLTOOL" = x; then
6402 DLLTOOL="false"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405 yes:)
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408 ac_tool_warned=yes ;;
6409 esac
6410 DLLTOOL=$ac_ct_DLLTOOL
6412 else
6413 DLLTOOL="$ac_cv_prog_DLLTOOL"
6416 test -z "$DLLTOOL" && DLLTOOL=dlltool
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6425 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6426 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 lt_cv_sharedlib_from_linklib_cmd='unknown'
6431 case $host_os in
6432 cygwin* | mingw* | pw32* | cegcc*)
6433 # two different shell functions defined in ltmain.sh;
6434 # decide which one to use based on capabilities of $DLLTOOL
6435 case `$DLLTOOL --help 2>&1` in
6436 *--identify-strict*)
6437 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6442 esac
6445 # fallback: assume linklib IS sharedlib
6446 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6448 esac
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6452 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6453 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6454 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6462 if test -n "$ac_tool_prefix"; then
6463 for ac_prog in ar
6465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_AR+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -n "$AR"; then
6473 ac_cv_prog_AR="$AR" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6486 done
6487 done
6488 IFS=$as_save_IFS
6492 AR=$ac_cv_prog_AR
6493 if test -n "$AR"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6495 $as_echo "$AR" >&6; }
6496 else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6502 test -n "$AR" && break
6503 done
6505 if test -z "$AR"; then
6506 ac_ct_AR=$AR
6507 for ac_prog in ar
6509 # Extract the first word of "$ac_prog", so it can be a program name with args.
6510 set dummy $ac_prog; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_AR"; then
6517 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_ac_ct_AR="$ac_prog"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6530 done
6531 done
6532 IFS=$as_save_IFS
6536 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6537 if test -n "$ac_ct_AR"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6539 $as_echo "$ac_ct_AR" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6546 test -n "$ac_ct_AR" && break
6547 done
6549 if test "x$ac_ct_AR" = x; then
6550 AR="false"
6551 else
6552 case $cross_compiling:$ac_tool_warned in
6553 yes:)
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6557 esac
6558 AR=$ac_ct_AR
6562 : ${AR=ar}
6563 : ${AR_FLAGS=cru}
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6576 $as_echo_n "checking for archiver @FILE support... " >&6; }
6577 if ${lt_cv_ar_at_file+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 lt_cv_ar_at_file=no
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 echo conftest.$ac_objext > conftest.lst
6594 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6596 (eval $lt_ar_try) 2>&5
6597 ac_status=$?
6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599 test $ac_status = 0; }
6600 if test 0 -eq "$ac_status"; then
6601 # Ensure the archiver fails upon bogus file names.
6602 rm -f conftest.$ac_objext libconftest.a
6603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6604 (eval $lt_ar_try) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }
6608 if test 0 -ne "$ac_status"; then
6609 lt_cv_ar_at_file=@
6612 rm -f conftest.* libconftest.a
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6619 $as_echo "$lt_cv_ar_at_file" >&6; }
6621 if test no = "$lt_cv_ar_at_file"; then
6622 archiver_list_spec=
6623 else
6624 archiver_list_spec=$lt_cv_ar_at_file
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}strip; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_STRIP+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$STRIP"; then
6642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6661 STRIP=$ac_cv_prog_STRIP
6662 if test -n "$STRIP"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664 $as_echo "$STRIP" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6672 if test -z "$ac_cv_prog_STRIP"; then
6673 ac_ct_STRIP=$STRIP
6674 # Extract the first word of "strip", so it can be a program name with args.
6675 set dummy strip; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_STRIP="strip"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6695 done
6696 done
6697 IFS=$as_save_IFS
6701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702 if test -n "$ac_ct_STRIP"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704 $as_echo "$ac_ct_STRIP" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6710 if test "x$ac_ct_STRIP" = x; then
6711 STRIP=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714 yes:)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 STRIP=$ac_ct_STRIP
6721 else
6722 STRIP="$ac_cv_prog_STRIP"
6725 test -z "$STRIP" && STRIP=:
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_RANLIB+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$RANLIB"; then
6741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6760 RANLIB=$ac_cv_prog_RANLIB
6761 if test -n "$RANLIB"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763 $as_echo "$RANLIB" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_RANLIB"; then
6772 ac_ct_RANLIB=$RANLIB
6773 # Extract the first word of "ranlib", so it can be a program name with args.
6774 set dummy ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$ac_ct_RANLIB"; then
6781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_RANLIB="ranlib"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6794 done
6795 done
6796 IFS=$as_save_IFS
6800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801 if test -n "$ac_ct_RANLIB"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803 $as_echo "$ac_ct_RANLIB" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_RANLIB" = x; then
6810 RANLIB=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818 RANLIB=$ac_ct_RANLIB
6820 else
6821 RANLIB="$ac_cv_prog_RANLIB"
6824 test -z "$RANLIB" && RANLIB=:
6831 # Determine commands to create old-style static archives.
6832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6833 old_postinstall_cmds='chmod 644 $oldlib'
6834 old_postuninstall_cmds=
6836 if test -n "$RANLIB"; then
6837 case $host_os in
6838 bitrig* | openbsd*)
6839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6844 esac
6845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6848 case $host_os in
6849 darwin*)
6850 lock_old_archive_extraction=yes ;;
6852 lock_old_archive_extraction=no ;;
6853 esac
6893 # If no C compiler was specified, use CC.
6894 LTCC=${LTCC-"$CC"}
6896 # If no C compiler flags were specified, use CFLAGS.
6897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6899 # Allow CC to be a program name with arguments.
6900 compiler=$CC
6903 # Check for command to grab the raw symbol name followed by C symbol from nm.
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6905 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6906 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6910 # These are sane defaults that work on at least a few old systems.
6911 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6913 # Character class describing NM global symbol codes.
6914 symcode='[BCDEGRST]'
6916 # Regexp to match symbols that can be accessed directly from C.
6917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6919 # Define system-specific variables.
6920 case $host_os in
6921 aix*)
6922 symcode='[BCDT]'
6924 cygwin* | mingw* | pw32* | cegcc*)
6925 symcode='[ABCDGISTW]'
6927 hpux*)
6928 if test ia64 = "$host_cpu"; then
6929 symcode='[ABCDEGRST]'
6932 irix* | nonstopux*)
6933 symcode='[BCDEGRST]'
6935 osf*)
6936 symcode='[BCDEGQRST]'
6938 solaris*)
6939 symcode='[BDRT]'
6941 sco3.2v5*)
6942 symcode='[DT]'
6944 sysv4.2uw2*)
6945 symcode='[DT]'
6947 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948 symcode='[ABDT]'
6950 sysv4)
6951 symcode='[DFNSTU]'
6953 esac
6955 # If we're using GNU nm, then use its standard symbol codes.
6956 case `$NM -V 2>&1` in
6957 *GNU* | *'with BFD'*)
6958 symcode='[ABCDGIRSTW]' ;;
6959 esac
6961 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6962 # Gets list of data symbols to import.
6963 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6964 # Adjust the below global symbol transforms to fixup imported variables.
6965 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6966 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6967 lt_c_name_lib_hook="\
6968 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6969 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6970 else
6971 # Disable hooks by default.
6972 lt_cv_sys_global_symbol_to_import=
6973 lt_cdecl_hook=
6974 lt_c_name_hook=
6975 lt_c_name_lib_hook=
6978 # Transform an extracted symbol line into a proper C declaration.
6979 # Some systems (esp. on ia64) link data and code symbols differently,
6980 # so use this general approach.
6981 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6982 $lt_cdecl_hook\
6983 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6984 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6986 # Transform an extracted symbol line into symbol name and symbol address
6987 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6988 $lt_c_name_hook\
6989 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6990 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6992 # Transform an extracted symbol line into symbol name with lib prefix and
6993 # symbol address.
6994 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6995 $lt_c_name_lib_hook\
6996 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6997 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6998 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7000 # Handle CRLF in mingw tool chain
7001 opt_cr=
7002 case $build_os in
7003 mingw*)
7004 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7006 esac
7008 # Try without a prefix underscore, then with it.
7009 for ac_symprfx in "" "_"; do
7011 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7012 symxfrm="\\1 $ac_symprfx\\2 \\2"
7014 # Write the raw and C identifiers.
7015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016 # Fake it for dumpbin and say T for any non-static function,
7017 # D for any global variable and I for any imported variable.
7018 # Also find C++ and __fastcall symbols from MSVC++,
7019 # which start with @ or ?.
7020 lt_cv_sys_global_symbol_pipe="$AWK '"\
7021 " {last_section=section; section=\$ 3};"\
7022 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7023 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7024 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7025 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7026 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7027 " \$ 0!~/External *\|/{next};"\
7028 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7029 " {if(hide[section]) next};"\
7030 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7031 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7032 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7033 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7034 " ' prfx=^$ac_symprfx"
7035 else
7036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7040 # Check to see that the pipe works correctly.
7041 pipe_works=no
7043 rm -f conftest*
7044 cat > conftest.$ac_ext <<_LT_EOF
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048 char nm_test_var;
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7051 #ifdef __cplusplus
7053 #endif
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7055 _LT_EOF
7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7058 (eval $ac_compile) 2>&5
7059 ac_status=$?
7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061 test $ac_status = 0; }; then
7062 # Now try to grab the symbols.
7063 nlist=conftest.nm
7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7066 ac_status=$?
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; } && test -s "$nlist"; then
7069 # Try sorting and uniquifying the output.
7070 if sort "$nlist" | uniq > "$nlist"T; then
7071 mv -f "$nlist"T "$nlist"
7072 else
7073 rm -f "$nlist"T
7076 # Make sure that we snagged all the symbols we need.
7077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079 cat <<_LT_EOF > conftest.$ac_ext
7080 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7081 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7082 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7083 relocations are performed -- see ld's documentation on pseudo-relocs. */
7084 # define LT_DLSYM_CONST
7085 #elif defined __osf__
7086 /* This system does not cope well with relocations in const data. */
7087 # define LT_DLSYM_CONST
7088 #else
7089 # define LT_DLSYM_CONST const
7090 #endif
7092 #ifdef __cplusplus
7093 extern "C" {
7094 #endif
7096 _LT_EOF
7097 # Now generate the symbol file.
7098 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7100 cat <<_LT_EOF >> conftest.$ac_ext
7102 /* The mapping between symbol names and symbols. */
7103 LT_DLSYM_CONST struct {
7104 const char *name;
7105 void *address;
7107 lt__PROGRAM__LTX_preloaded_symbols[] =
7109 { "@PROGRAM@", (void *) 0 },
7110 _LT_EOF
7111 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7112 cat <<\_LT_EOF >> conftest.$ac_ext
7113 {0, (void *) 0}
7116 /* This works around a problem in FreeBSD linker */
7117 #ifdef FREEBSD_WORKAROUND
7118 static const void *lt_preloaded_setup() {
7119 return lt__PROGRAM__LTX_preloaded_symbols;
7121 #endif
7123 #ifdef __cplusplus
7125 #endif
7126 _LT_EOF
7127 # Now try linking the two files.
7128 mv conftest.$ac_objext conftstm.$ac_objext
7129 lt_globsym_save_LIBS=$LIBS
7130 lt_globsym_save_CFLAGS=$CFLAGS
7131 LIBS=conftstm.$ac_objext
7132 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7134 (eval $ac_link) 2>&5
7135 ac_status=$?
7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7138 pipe_works=yes
7140 LIBS=$lt_globsym_save_LIBS
7141 CFLAGS=$lt_globsym_save_CFLAGS
7142 else
7143 echo "cannot find nm_test_func in $nlist" >&5
7145 else
7146 echo "cannot find nm_test_var in $nlist" >&5
7148 else
7149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7151 else
7152 echo "$progname: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 rm -rf conftest* conftst*
7157 # Do not use the global_symbol_pipe unless it works.
7158 if test yes = "$pipe_works"; then
7159 break
7160 else
7161 lt_cv_sys_global_symbol_pipe=
7163 done
7167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7168 lt_cv_sys_global_symbol_to_cdecl=
7170 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7172 $as_echo "failed" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7175 $as_echo "ok" >&6; }
7178 # Response file support.
7179 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7180 nm_file_list_spec='@'
7181 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7182 nm_file_list_spec='@'
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7222 $as_echo_n "checking for sysroot... " >&6; }
7224 # Check whether --with-sysroot was given.
7225 if test "${with_sysroot+set}" = set; then :
7226 withval=$with_sysroot;
7227 else
7228 with_sysroot=no
7232 lt_sysroot=
7233 case $with_sysroot in #(
7234 yes)
7235 if test yes = "$GCC"; then
7236 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7238 ;; #(
7240 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7241 ;; #(
7242 no|'')
7243 ;; #(
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7246 $as_echo "$with_sysroot" >&6; }
7247 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7249 esac
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7252 $as_echo "${lt_sysroot:-no}" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7259 $as_echo_n "checking for a working dd... " >&6; }
7260 if ${ac_cv_path_lt_DD+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 printf 0123456789abcdef0123456789abcdef >conftest.i
7264 cat conftest.i conftest.i >conftest2.i
7265 : ${lt_DD:=$DD}
7266 if test -z "$lt_DD"; then
7267 ac_path_lt_DD_found=false
7268 # Loop through the user's path and test for each of PROGNAME-LIST
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_prog in dd; do
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7277 as_fn_executable_p "$ac_path_lt_DD" || continue
7278 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7279 cmp -s conftest.i conftest.out \
7280 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7282 $ac_path_lt_DD_found && break 3
7283 done
7284 done
7285 done
7286 IFS=$as_save_IFS
7287 if test -z "$ac_cv_path_lt_DD"; then
7290 else
7291 ac_cv_path_lt_DD=$lt_DD
7294 rm -f conftest.i conftest2.i conftest.out
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7297 $as_echo "$ac_cv_path_lt_DD" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7301 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7302 if ${lt_cv_truncate_bin+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 printf 0123456789abcdef0123456789abcdef >conftest.i
7306 cat conftest.i conftest.i >conftest2.i
7307 lt_cv_truncate_bin=
7308 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7309 cmp -s conftest.i conftest.out \
7310 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7312 rm -f conftest.i conftest2.i conftest.out
7313 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7316 $as_echo "$lt_cv_truncate_bin" >&6; }
7324 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7325 func_cc_basename ()
7327 for cc_temp in $*""; do
7328 case $cc_temp in
7329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7331 \-*) ;;
7332 *) break;;
7333 esac
7334 done
7335 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7338 # Check whether --enable-libtool-lock was given.
7339 if test "${enable_libtool_lock+set}" = set; then :
7340 enableval=$enable_libtool_lock;
7343 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7345 # Some flags need to be propagated to the compiler or linker for good
7346 # libtool support.
7347 case $host in
7348 ia64-*-hpux*)
7349 # Find out what ABI is being produced by ac_compile, and set mode
7350 # options accordingly.
7351 echo 'int i;' > conftest.$ac_ext
7352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7353 (eval $ac_compile) 2>&5
7354 ac_status=$?
7355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; }; then
7357 case `/usr/bin/file conftest.$ac_objext` in
7358 *ELF-32*)
7359 HPUX_IA64_MODE=32
7361 *ELF-64*)
7362 HPUX_IA64_MODE=64
7364 esac
7366 rm -rf conftest*
7368 *-*-irix6*)
7369 # Find out what ABI is being produced by ac_compile, and set linker
7370 # options accordingly.
7371 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7373 (eval $ac_compile) 2>&5
7374 ac_status=$?
7375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7376 test $ac_status = 0; }; then
7377 if test yes = "$lt_cv_prog_gnu_ld"; then
7378 case `/usr/bin/file conftest.$ac_objext` in
7379 *32-bit*)
7380 LD="${LD-ld} -melf32bsmip"
7382 *N32*)
7383 LD="${LD-ld} -melf32bmipn32"
7385 *64-bit*)
7386 LD="${LD-ld} -melf64bmip"
7388 esac
7389 else
7390 case `/usr/bin/file conftest.$ac_objext` in
7391 *32-bit*)
7392 LD="${LD-ld} -32"
7394 *N32*)
7395 LD="${LD-ld} -n32"
7397 *64-bit*)
7398 LD="${LD-ld} -64"
7400 esac
7403 rm -rf conftest*
7406 mips64*-*linux*)
7407 # Find out what ABI is being produced by ac_compile, and set linker
7408 # options accordingly.
7409 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 emul=elf
7416 case `/usr/bin/file conftest.$ac_objext` in
7417 *32-bit*)
7418 emul="${emul}32"
7420 *64-bit*)
7421 emul="${emul}64"
7423 esac
7424 case `/usr/bin/file conftest.$ac_objext` in
7425 *MSB*)
7426 emul="${emul}btsmip"
7428 *LSB*)
7429 emul="${emul}ltsmip"
7431 esac
7432 case `/usr/bin/file conftest.$ac_objext` in
7433 *N32*)
7434 emul="${emul}n32"
7436 esac
7437 LD="${LD-ld} -m $emul"
7439 rm -rf conftest*
7442 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7443 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7444 # Find out what ABI is being produced by ac_compile, and set linker
7445 # options accordingly. Note that the listed cases only cover the
7446 # situations where additional linker options are needed (such as when
7447 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7448 # vice versa); the common cases where no linker options are needed do
7449 # not appear in the list.
7450 echo 'int i;' > conftest.$ac_ext
7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452 (eval $ac_compile) 2>&5
7453 ac_status=$?
7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 case `/usr/bin/file conftest.o` in
7457 *32-bit*)
7458 case $host in
7459 x86_64-*kfreebsd*-gnu)
7460 LD="${LD-ld} -m elf_i386_fbsd"
7462 x86_64-*linux*)
7463 case `/usr/bin/file conftest.o` in
7464 *x86-64*)
7465 LD="${LD-ld} -m elf32_x86_64"
7468 LD="${LD-ld} -m elf_i386"
7470 esac
7472 powerpc64le-*linux*)
7473 LD="${LD-ld} -m elf32lppclinux"
7475 powerpc64-*linux*)
7476 LD="${LD-ld} -m elf32ppclinux"
7478 s390x-*linux*)
7479 LD="${LD-ld} -m elf_s390"
7481 sparc64-*linux*)
7482 LD="${LD-ld} -m elf32_sparc"
7484 esac
7486 *64-bit*)
7487 case $host in
7488 x86_64-*kfreebsd*-gnu)
7489 LD="${LD-ld} -m elf_x86_64_fbsd"
7491 x86_64-*linux*)
7492 LD="${LD-ld} -m elf_x86_64"
7494 powerpcle-*linux*)
7495 LD="${LD-ld} -m elf64lppc"
7497 powerpc-*linux*)
7498 LD="${LD-ld} -m elf64ppc"
7500 s390*-*linux*|s390*-*tpf*)
7501 LD="${LD-ld} -m elf64_s390"
7503 sparc*-*linux*)
7504 LD="${LD-ld} -m elf64_sparc"
7506 esac
7508 esac
7510 rm -rf conftest*
7513 *-*-sco3.2v5*)
7514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7515 SAVE_CFLAGS=$CFLAGS
7516 CFLAGS="$CFLAGS -belf"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7518 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7519 if ${lt_cv_cc_needs_belf+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 ac_ext=c
7523 ac_cpp='$CPP $CPPFLAGS'
7524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7532 main ()
7536 return 0;
7538 _ACEOF
7539 if ac_fn_c_try_link "$LINENO"; then :
7540 lt_cv_cc_needs_belf=yes
7541 else
7542 lt_cv_cc_needs_belf=no
7544 rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 ac_ext=c
7547 ac_cpp='$CPP $CPPFLAGS'
7548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7554 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7555 if test yes != "$lt_cv_cc_needs_belf"; then
7556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7557 CFLAGS=$SAVE_CFLAGS
7560 *-*solaris*)
7561 # Find out what ABI is being produced by ac_compile, and set linker
7562 # options accordingly.
7563 echo 'int i;' > conftest.$ac_ext
7564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565 (eval $ac_compile) 2>&5
7566 ac_status=$?
7567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568 test $ac_status = 0; }; then
7569 case `/usr/bin/file conftest.o` in
7570 *64-bit*)
7571 case $lt_cv_prog_gnu_ld in
7572 yes*)
7573 case $host in
7574 i?86-*-solaris*|x86_64-*-solaris*)
7575 LD="${LD-ld} -m elf_x86_64"
7577 sparc*-*-solaris*)
7578 LD="${LD-ld} -m elf64_sparc"
7580 esac
7581 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7582 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7583 LD=${LD-ld}_sol2
7587 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7588 LD="${LD-ld} -64"
7591 esac
7593 esac
7595 rm -rf conftest*
7597 esac
7599 need_locks=$enable_libtool_lock
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}mt; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$MANIFEST_TOOL"; then
7610 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7623 done
7624 done
7625 IFS=$as_save_IFS
7629 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7630 if test -n "$MANIFEST_TOOL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7632 $as_echo "$MANIFEST_TOOL" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7640 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7641 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7642 # Extract the first word of "mt", so it can be a program name with args.
7643 set dummy mt; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 if test -n "$ac_ct_MANIFEST_TOOL"; then
7650 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7663 done
7664 done
7665 IFS=$as_save_IFS
7669 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7670 if test -n "$ac_ct_MANIFEST_TOOL"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7672 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7678 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7679 MANIFEST_TOOL=":"
7680 else
7681 case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7686 esac
7687 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7689 else
7690 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7693 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7695 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7696 if ${lt_cv_path_mainfest_tool+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 lt_cv_path_mainfest_tool=no
7700 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7701 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7702 cat conftest.err >&5
7703 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7704 lt_cv_path_mainfest_tool=yes
7706 rm -f conftest*
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7709 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7710 if test yes != "$lt_cv_path_mainfest_tool"; then
7711 MANIFEST_TOOL=:
7719 case $host_os in
7720 rhapsody* | darwin*)
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 if test -n "$DSYMUTIL"; then
7730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7743 done
7744 done
7745 IFS=$as_save_IFS
7749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7750 if test -n "$DSYMUTIL"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7752 $as_echo "$DSYMUTIL" >&6; }
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7760 if test -z "$ac_cv_prog_DSYMUTIL"; then
7761 ac_ct_DSYMUTIL=$DSYMUTIL
7762 # Extract the first word of "dsymutil", so it can be a program name with args.
7763 set dummy dsymutil; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$ac_ct_DSYMUTIL"; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7790 if test -n "$ac_ct_DSYMUTIL"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7798 if test "x$ac_ct_DSYMUTIL" = x; then
7799 DSYMUTIL=":"
7800 else
7801 case $cross_compiling:$ac_tool_warned in
7802 yes:)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7806 esac
7807 DSYMUTIL=$ac_ct_DSYMUTIL
7809 else
7810 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7813 if test -n "$ac_tool_prefix"; then
7814 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_NMEDIT+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 if test -n "$NMEDIT"; then
7822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7837 IFS=$as_save_IFS
7841 NMEDIT=$ac_cv_prog_NMEDIT
7842 if test -n "$NMEDIT"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7844 $as_echo "$NMEDIT" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7852 if test -z "$ac_cv_prog_NMEDIT"; then
7853 ac_ct_NMEDIT=$NMEDIT
7854 # Extract the first word of "nmedit", so it can be a program name with args.
7855 set dummy nmedit; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 if test -n "$ac_ct_NMEDIT"; then
7862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7875 done
7876 done
7877 IFS=$as_save_IFS
7881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7882 if test -n "$ac_ct_NMEDIT"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7884 $as_echo "$ac_ct_NMEDIT" >&6; }
7885 else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7890 if test "x$ac_ct_NMEDIT" = x; then
7891 NMEDIT=":"
7892 else
7893 case $cross_compiling:$ac_tool_warned in
7894 yes:)
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897 ac_tool_warned=yes ;;
7898 esac
7899 NMEDIT=$ac_ct_NMEDIT
7901 else
7902 NMEDIT="$ac_cv_prog_NMEDIT"
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_LIPO+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$LIPO"; then
7914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7929 IFS=$as_save_IFS
7933 LIPO=$ac_cv_prog_LIPO
7934 if test -n "$LIPO"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7936 $as_echo "$LIPO" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7944 if test -z "$ac_cv_prog_LIPO"; then
7945 ac_ct_LIPO=$LIPO
7946 # Extract the first word of "lipo", so it can be a program name with args.
7947 set dummy lipo; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 if test -n "$ac_ct_LIPO"; then
7954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_ac_ct_LIPO="lipo"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7967 done
7968 done
7969 IFS=$as_save_IFS
7973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7974 if test -n "$ac_ct_LIPO"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7976 $as_echo "$ac_ct_LIPO" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7982 if test "x$ac_ct_LIPO" = x; then
7983 LIPO=":"
7984 else
7985 case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991 LIPO=$ac_ct_LIPO
7993 else
7994 LIPO="$ac_cv_prog_LIPO"
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}otool; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_OTOOL+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$OTOOL"; then
8006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8019 done
8020 done
8021 IFS=$as_save_IFS
8025 OTOOL=$ac_cv_prog_OTOOL
8026 if test -n "$OTOOL"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8028 $as_echo "$OTOOL" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8036 if test -z "$ac_cv_prog_OTOOL"; then
8037 ac_ct_OTOOL=$OTOOL
8038 # Extract the first word of "otool", so it can be a program name with args.
8039 set dummy otool; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 if test -n "$ac_ct_OTOOL"; then
8046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_ac_ct_OTOOL="otool"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8059 done
8060 done
8061 IFS=$as_save_IFS
8065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8066 if test -n "$ac_ct_OTOOL"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8068 $as_echo "$ac_ct_OTOOL" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8074 if test "x$ac_ct_OTOOL" = x; then
8075 OTOOL=":"
8076 else
8077 case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083 OTOOL=$ac_ct_OTOOL
8085 else
8086 OTOOL="$ac_cv_prog_OTOOL"
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_prog_OTOOL64+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$OTOOL64"; then
8098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8117 OTOOL64=$ac_cv_prog_OTOOL64
8118 if test -n "$OTOOL64"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8120 $as_echo "$OTOOL64" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8128 if test -z "$ac_cv_prog_OTOOL64"; then
8129 ac_ct_OTOOL64=$OTOOL64
8130 # Extract the first word of "otool64", so it can be a program name with args.
8131 set dummy otool64; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$ac_ct_OTOOL64"; then
8138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_ac_ct_OTOOL64="otool64"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8158 if test -n "$ac_ct_OTOOL64"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8160 $as_echo "$ac_ct_OTOOL64" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8166 if test "x$ac_ct_OTOOL64" = x; then
8167 OTOOL64=":"
8168 else
8169 case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175 OTOOL64=$ac_ct_OTOOL64
8177 else
8178 OTOOL64="$ac_cv_prog_OTOOL64"
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8208 $as_echo_n "checking for -single_module linker flag... " >&6; }
8209 if ${lt_cv_apple_cc_single_mod+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 lt_cv_apple_cc_single_mod=no
8213 if test -z "$LT_MULTI_MODULE"; then
8214 # By default we will add the -single_module flag. You can override
8215 # by either setting the environment variable LT_MULTI_MODULE
8216 # non-empty at configure time, or by adding -multi_module to the
8217 # link flags.
8218 rm -rf libconftest.dylib*
8219 echo "int foo(void){return 1;}" > conftest.c
8220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8221 -dynamiclib -Wl,-single_module conftest.c" >&5
8222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8224 _lt_result=$?
8225 # If there is a non-empty error log, and "single_module"
8226 # appears in it, assume the flag caused a linker warning
8227 if test -s conftest.err && $GREP single_module conftest.err; then
8228 cat conftest.err >&5
8229 # Otherwise, if the output was created with a 0 exit code from
8230 # the compiler, it worked.
8231 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8232 lt_cv_apple_cc_single_mod=yes
8233 else
8234 cat conftest.err >&5
8236 rm -rf libconftest.dylib*
8237 rm -f conftest.*
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8241 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8244 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8245 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 lt_cv_ld_exported_symbols_list=no
8249 save_LDFLAGS=$LDFLAGS
8250 echo "_main" > conftest.sym
8251 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8256 main ()
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 lt_cv_ld_exported_symbols_list=yes
8265 else
8266 lt_cv_ld_exported_symbols_list=no
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 LDFLAGS=$save_LDFLAGS
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8274 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8277 $as_echo_n "checking for -force_load linker flag... " >&6; }
8278 if ${lt_cv_ld_force_load+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 lt_cv_ld_force_load=no
8282 cat > conftest.c << _LT_EOF
8283 int forced_loaded() { return 2;}
8284 _LT_EOF
8285 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8286 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8287 echo "$AR cru libconftest.a conftest.o" >&5
8288 $AR cru libconftest.a conftest.o 2>&5
8289 echo "$RANLIB libconftest.a" >&5
8290 $RANLIB libconftest.a 2>&5
8291 cat > conftest.c << _LT_EOF
8292 int main() { return 0;}
8293 _LT_EOF
8294 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8295 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8296 _lt_result=$?
8297 if test -s conftest.err && $GREP force_load conftest.err; then
8298 cat conftest.err >&5
8299 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8300 lt_cv_ld_force_load=yes
8301 else
8302 cat conftest.err >&5
8304 rm -f conftest.err libconftest.a conftest conftest.c
8305 rm -rf conftest.dSYM
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8309 $as_echo "$lt_cv_ld_force_load" >&6; }
8310 case $host_os in
8311 rhapsody* | darwin1.[012])
8312 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8313 darwin1.*)
8314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8315 darwin*) # darwin 5.x on
8316 # if running on 10.5 or later, the deployment target defaults
8317 # to the OS version, if on x86, and 10.4, the deployment
8318 # target defaults to 10.4. Don't you love it?
8319 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8320 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8321 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8322 10.[012][,.]*)
8323 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8324 10.*)
8325 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8326 esac
8328 esac
8329 if test yes = "$lt_cv_apple_cc_single_mod"; then
8330 _lt_dar_single_mod='$single_module'
8332 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8333 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8334 else
8335 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8337 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8338 _lt_dsymutil='~$DSYMUTIL $lib || :'
8339 else
8340 _lt_dsymutil=
8343 esac
8345 # func_munge_path_list VARIABLE PATH
8346 # -----------------------------------
8347 # VARIABLE is name of variable containing _space_ separated list of
8348 # directories to be munged by the contents of PATH, which is string
8349 # having a format:
8350 # "DIR[:DIR]:"
8351 # string "DIR[ DIR]" will be prepended to VARIABLE
8352 # ":DIR[:DIR]"
8353 # string "DIR[ DIR]" will be appended to VARIABLE
8354 # "DIRP[:DIRP]::[DIRA:]DIRA"
8355 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8356 # "DIRA[ DIRA]" will be appended to VARIABLE
8357 # "DIR[:DIR]"
8358 # VARIABLE will be replaced by "DIR[ DIR]"
8359 func_munge_path_list ()
8361 case x$2 in
8365 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8367 x:*)
8368 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8370 *::*)
8371 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8372 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8375 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8377 esac
8380 ac_ext=c
8381 ac_cpp='$CPP $CPPFLAGS'
8382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8386 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8387 # On Suns, sometimes $CPP names a directory.
8388 if test -n "$CPP" && test -d "$CPP"; then
8389 CPP=
8391 if test -z "$CPP"; then
8392 if ${ac_cv_prog_CPP+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 # Double quotes because CPP needs to be expanded
8396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8398 ac_preproc_ok=false
8399 for ac_c_preproc_warn_flag in '' yes
8401 # Use a header file that comes with gcc, so configuring glibc
8402 # with a fresh cross-compiler works.
8403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404 # <limits.h> exists even on freestanding compilers.
8405 # On the NeXT, cc -E runs the code through the compiler's parser,
8406 # not just through cpp. "Syntax error" is here to catch this case.
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #ifdef __STDC__
8410 # include <limits.h>
8411 #else
8412 # include <assert.h>
8413 #endif
8414 Syntax error
8415 _ACEOF
8416 if ac_fn_c_try_cpp "$LINENO"; then :
8418 else
8419 # Broken: fails on valid input.
8420 continue
8422 rm -f conftest.err conftest.i conftest.$ac_ext
8424 # OK, works on sane cases. Now check whether nonexistent headers
8425 # can be detected and how.
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 #include <ac_nonexistent.h>
8429 _ACEOF
8430 if ac_fn_c_try_cpp "$LINENO"; then :
8431 # Broken: success on invalid input.
8432 continue
8433 else
8434 # Passes both tests.
8435 ac_preproc_ok=:
8436 break
8438 rm -f conftest.err conftest.i conftest.$ac_ext
8440 done
8441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8442 rm -f conftest.i conftest.err conftest.$ac_ext
8443 if $ac_preproc_ok; then :
8444 break
8447 done
8448 ac_cv_prog_CPP=$CPP
8451 CPP=$ac_cv_prog_CPP
8452 else
8453 ac_cv_prog_CPP=$CPP
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8456 $as_echo "$CPP" >&6; }
8457 ac_preproc_ok=false
8458 for ac_c_preproc_warn_flag in '' yes
8460 # Use a header file that comes with gcc, so configuring glibc
8461 # with a fresh cross-compiler works.
8462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463 # <limits.h> exists even on freestanding compilers.
8464 # On the NeXT, cc -E runs the code through the compiler's parser,
8465 # not just through cpp. "Syntax error" is here to catch this case.
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #ifdef __STDC__
8469 # include <limits.h>
8470 #else
8471 # include <assert.h>
8472 #endif
8473 Syntax error
8474 _ACEOF
8475 if ac_fn_c_try_cpp "$LINENO"; then :
8477 else
8478 # Broken: fails on valid input.
8479 continue
8481 rm -f conftest.err conftest.i conftest.$ac_ext
8483 # OK, works on sane cases. Now check whether nonexistent headers
8484 # can be detected and how.
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <ac_nonexistent.h>
8488 _ACEOF
8489 if ac_fn_c_try_cpp "$LINENO"; then :
8490 # Broken: success on invalid input.
8491 continue
8492 else
8493 # Passes both tests.
8494 ac_preproc_ok=:
8495 break
8497 rm -f conftest.err conftest.i conftest.$ac_ext
8499 done
8500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8501 rm -f conftest.i conftest.err conftest.$ac_ext
8502 if $ac_preproc_ok; then :
8504 else
8505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8507 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8508 See \`config.log' for more details" "$LINENO" 5; }
8511 ac_ext=c
8512 ac_cpp='$CPP $CPPFLAGS'
8513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8519 $as_echo_n "checking for ANSI C header files... " >&6; }
8520 if ${ac_cv_header_stdc+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #include <stdlib.h>
8526 #include <stdarg.h>
8527 #include <string.h>
8528 #include <float.h>
8531 main ()
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_header_stdc=yes
8540 else
8541 ac_cv_header_stdc=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 if test $ac_cv_header_stdc = yes; then
8546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <string.h>
8551 _ACEOF
8552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8553 $EGREP "memchr" >/dev/null 2>&1; then :
8555 else
8556 ac_cv_header_stdc=no
8558 rm -f conftest*
8562 if test $ac_cv_header_stdc = yes; then
8563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 #include <stdlib.h>
8568 _ACEOF
8569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 $EGREP "free" >/dev/null 2>&1; then :
8572 else
8573 ac_cv_header_stdc=no
8575 rm -f conftest*
8579 if test $ac_cv_header_stdc = yes; then
8580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8581 if test "$cross_compiling" = yes; then :
8583 else
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <ctype.h>
8587 #include <stdlib.h>
8588 #if ((' ' & 0x0FF) == 0x020)
8589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8591 #else
8592 # define ISLOWER(c) \
8593 (('a' <= (c) && (c) <= 'i') \
8594 || ('j' <= (c) && (c) <= 'r') \
8595 || ('s' <= (c) && (c) <= 'z'))
8596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8597 #endif
8599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8601 main ()
8603 int i;
8604 for (i = 0; i < 256; i++)
8605 if (XOR (islower (i), ISLOWER (i))
8606 || toupper (i) != TOUPPER (i))
8607 return 2;
8608 return 0;
8610 _ACEOF
8611 if ac_fn_c_try_run "$LINENO"; then :
8613 else
8614 ac_cv_header_stdc=no
8616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8617 conftest.$ac_objext conftest.beam conftest.$ac_ext
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8623 $as_echo "$ac_cv_header_stdc" >&6; }
8624 if test $ac_cv_header_stdc = yes; then
8626 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8631 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8632 inttypes.h stdint.h unistd.h
8633 do :
8634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8635 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8637 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8638 cat >>confdefs.h <<_ACEOF
8639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8640 _ACEOF
8644 done
8647 for ac_header in dlfcn.h
8648 do :
8649 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8651 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_DLFCN_H 1
8654 _ACEOF
8658 done
8661 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8662 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8663 # is not polluted with repeated "-I."
8664 am__isrc=' -I$(srcdir)'
8665 # test to see if srcdir already configured
8666 if test -f $srcdir/config.status; then
8667 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8671 # test whether we have cygpath
8672 if test -z "$CYGPATH_W"; then
8673 if (cygpath --version) >/dev/null 2>/dev/null; then
8674 CYGPATH_W='cygpath -w'
8675 else
8676 CYGPATH_W=echo
8681 # Define the identity of the package.
8682 PACKAGE='web2c'
8683 VERSION='2016/dev'
8686 cat >>confdefs.h <<_ACEOF
8687 #define PACKAGE "$PACKAGE"
8688 _ACEOF
8691 cat >>confdefs.h <<_ACEOF
8692 #define VERSION "$VERSION"
8693 _ACEOF
8695 # Some tools Automake needs.
8697 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8700 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8703 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8706 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8709 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8711 # For better backward compatibility. To be removed once Automake 1.9.x
8712 # dies out for good. For more background, see:
8713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
8714 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
8715 mkdir_p='$(MKDIR_P)'
8717 # We need awk for the "check" target (and possibly the TAP driver). The
8718 # system "awk" is bad on some platforms.
8719 # Always define AMTAR for backward compatibility. Yes, it's still used
8720 # in the wild :-( We should find a proper way to deprecate it ...
8721 AMTAR='$${TAR-tar}'
8724 # We'll loop over all known methods to create a tar archive until one works.
8725 _am_tools='gnutar pax cpio none'
8727 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8734 # POSIX will say in a future version that running "rm -f" with no argument
8735 # is OK; and we want to be able to make that assumption in our Makefile
8736 # recipes. So use an aggressive probe to check that the usage we want is
8737 # actually supported "in the wild" to an acceptable degree.
8738 # See automake bug#10828.
8739 # To make any issue more visible, cause the running configure to be aborted
8740 # by default if the 'rm' program in use doesn't match our expectations; the
8741 # user can still override this though.
8742 if rm -f && rm -fr && rm -rf; then : OK; else
8743 cat >&2 <<'END'
8744 Oops!
8746 Your 'rm' program seems unable to run without file operands specified
8747 on the command line, even when the '-f' option is present. This is contrary
8748 to the behaviour of most rm programs out there, and not conforming with
8749 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
8751 Please tell bug-automake@gnu.org about your system, including the value
8752 of your $PATH and any error possibly output before this message. This
8753 can help us improve future automake versions.
8756 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
8757 echo 'Configuration will proceed anyway, since you have set the' >&2
8758 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
8759 echo >&2
8760 else
8761 cat >&2 <<'END'
8762 Aborting the configuration process, to ensure you take notice of the issue.
8764 You can download and install GNU coreutils to get an 'rm' implementation
8765 that behaves properly: <http://www.gnu.org/software/coreutils/>.
8767 If you want to complete the configuration process using your problematic
8768 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
8769 to "yes", and re-run configure.
8772 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
8779 # Check whether --enable-maintainer-mode was given.
8780 if test "${enable_maintainer_mode+set}" = set; then :
8781 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
8782 else
8783 USE_MAINTAINER_MODE=no
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8787 $as_echo "$USE_MAINTAINER_MODE" >&6; }
8788 if test $USE_MAINTAINER_MODE = yes; then
8789 MAINTAINER_MODE_TRUE=
8790 MAINTAINER_MODE_FALSE='#'
8791 else
8792 MAINTAINER_MODE_TRUE='#'
8793 MAINTAINER_MODE_FALSE=
8796 MAINT=$MAINTAINER_MODE_TRUE
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
8800 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
8801 if ${kb_cv_c_prototypes+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #include <stdarg.h>
8808 main ()
8810 extern void foo(int i,...);
8812 return 0;
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 kb_cv_c_prototypes=yes
8817 else
8818 kb_cv_c_prototypes=no
8820 rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
8824 $as_echo "$kb_cv_c_prototypes" >&6; }
8825 if test "x$kb_cv_c_prototypes" = xno; then
8826 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
8829 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
8830 if ${kpse_cv_warning_cflags+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 if test "x$GCC" = xyes; then
8834 kpse_cv_warning_cflags=
8835 if test "x$enable_compiler_warnings" != xno; then
8836 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
8837 case `$CC -dumpversion` in #(
8838 3.4.* | 4.* | 5.*) :
8839 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
8840 *) :
8842 esac
8843 case `$CC -dumpversion` in #(
8844 3.[234].* | 4.* | 5.*) :
8845 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
8846 *) :
8848 esac
8849 if test "x$enable_compiler_warnings" != xmin; then
8850 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
8851 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
8852 if test "x$enable_compiler_warnings" != xyes; then
8853 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
8854 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
8855 case `$CC -dumpversion` in #(
8856 3.4.* | 4.* | 5.*) :
8857 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
8858 *) :
8860 esac
8861 if test "x$enable_compiler_warnings" != xmax; then
8862 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
8867 elif test "x$enable_compiler_warnings" = xno; then
8868 kpse_cv_warning_cflags=
8869 else
8870 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
8874 $as_echo "$kpse_cv_warning_cflags" >&6; }
8875 WARNING_CFLAGS=$kpse_cv_warning_cflags
8888 # Set options
8889 enable_win32_dll=yes
8891 case $host in
8892 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8893 if test -n "$ac_tool_prefix"; then
8894 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8895 set dummy ${ac_tool_prefix}as; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_AS+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 if test -n "$AS"; then
8902 ac_cv_prog_AS="$AS" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_AS="${ac_tool_prefix}as"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8915 done
8916 done
8917 IFS=$as_save_IFS
8921 AS=$ac_cv_prog_AS
8922 if test -n "$AS"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8924 $as_echo "$AS" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8932 if test -z "$ac_cv_prog_AS"; then
8933 ac_ct_AS=$AS
8934 # Extract the first word of "as", so it can be a program name with args.
8935 set dummy as; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$ac_ct_AS"; then
8942 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_ac_ct_AS="as"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8962 if test -n "$ac_ct_AS"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8964 $as_echo "$ac_ct_AS" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8970 if test "x$ac_ct_AS" = x; then
8971 AS="false"
8972 else
8973 case $cross_compiling:$ac_tool_warned in
8974 yes:)
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8977 ac_tool_warned=yes ;;
8978 esac
8979 AS=$ac_ct_AS
8981 else
8982 AS="$ac_cv_prog_AS"
8985 if test -n "$ac_tool_prefix"; then
8986 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8987 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if ${ac_cv_prog_DLLTOOL+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$DLLTOOL"; then
8994 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9009 IFS=$as_save_IFS
9013 DLLTOOL=$ac_cv_prog_DLLTOOL
9014 if test -n "$DLLTOOL"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9016 $as_echo "$DLLTOOL" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9024 if test -z "$ac_cv_prog_DLLTOOL"; then
9025 ac_ct_DLLTOOL=$DLLTOOL
9026 # Extract the first word of "dlltool", so it can be a program name with args.
9027 set dummy dlltool; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test -n "$ac_ct_DLLTOOL"; then
9034 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9043 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9053 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9054 if test -n "$ac_ct_DLLTOOL"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9056 $as_echo "$ac_ct_DLLTOOL" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9062 if test "x$ac_ct_DLLTOOL" = x; then
9063 DLLTOOL="false"
9064 else
9065 case $cross_compiling:$ac_tool_warned in
9066 yes:)
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9069 ac_tool_warned=yes ;;
9070 esac
9071 DLLTOOL=$ac_ct_DLLTOOL
9073 else
9074 DLLTOOL="$ac_cv_prog_DLLTOOL"
9077 if test -n "$ac_tool_prefix"; then
9078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9079 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_OBJDUMP+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 if test -n "$OBJDUMP"; then
9086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9099 done
9100 done
9101 IFS=$as_save_IFS
9105 OBJDUMP=$ac_cv_prog_OBJDUMP
9106 if test -n "$OBJDUMP"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9108 $as_echo "$OBJDUMP" >&6; }
9109 else
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9116 if test -z "$ac_cv_prog_OBJDUMP"; then
9117 ac_ct_OBJDUMP=$OBJDUMP
9118 # Extract the first word of "objdump", so it can be a program name with args.
9119 set dummy objdump; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 if test -n "$ac_ct_OBJDUMP"; then
9126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9127 else
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9139 done
9140 done
9141 IFS=$as_save_IFS
9145 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9146 if test -n "$ac_ct_OBJDUMP"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9148 $as_echo "$ac_ct_OBJDUMP" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9154 if test "x$ac_ct_OBJDUMP" = x; then
9155 OBJDUMP="false"
9156 else
9157 case $cross_compiling:$ac_tool_warned in
9158 yes:)
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9161 ac_tool_warned=yes ;;
9162 esac
9163 OBJDUMP=$ac_ct_OBJDUMP
9165 else
9166 OBJDUMP="$ac_cv_prog_OBJDUMP"
9170 esac
9172 test -z "$AS" && AS=as
9178 test -z "$DLLTOOL" && DLLTOOL=dlltool
9184 test -z "$OBJDUMP" && OBJDUMP=objdump
9192 enable_dlopen=no
9196 # Check whether --enable-shared was given.
9197 if test "${enable_shared+set}" = set; then :
9198 enableval=$enable_shared; p=${PACKAGE-default}
9199 case $enableval in
9200 yes) enable_shared=yes ;;
9201 no) enable_shared=no ;;
9203 enable_shared=no
9204 # Look at the argument we got. We use all the common list separators.
9205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9206 for pkg in $enableval; do
9207 IFS=$lt_save_ifs
9208 if test "X$pkg" = "X$p"; then
9209 enable_shared=yes
9211 done
9212 IFS=$lt_save_ifs
9214 esac
9215 else
9216 enable_shared=yes
9227 # Check whether --enable-static was given.
9228 if test "${enable_static+set}" = set; then :
9229 enableval=$enable_static; p=${PACKAGE-default}
9230 case $enableval in
9231 yes) enable_static=yes ;;
9232 no) enable_static=no ;;
9234 enable_static=no
9235 # Look at the argument we got. We use all the common list separators.
9236 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9237 for pkg in $enableval; do
9238 IFS=$lt_save_ifs
9239 if test "X$pkg" = "X$p"; then
9240 enable_static=yes
9242 done
9243 IFS=$lt_save_ifs
9245 esac
9246 else
9247 enable_static=yes
9259 # Check whether --with-pic was given.
9260 if test "${with_pic+set}" = set; then :
9261 withval=$with_pic; lt_p=${PACKAGE-default}
9262 case $withval in
9263 yes|no) pic_mode=$withval ;;
9265 pic_mode=default
9266 # Look at the argument we got. We use all the common list separators.
9267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9268 for lt_pkg in $withval; do
9269 IFS=$lt_save_ifs
9270 if test "X$lt_pkg" = "X$lt_p"; then
9271 pic_mode=yes
9273 done
9274 IFS=$lt_save_ifs
9276 esac
9277 else
9278 pic_mode=default
9288 # Check whether --enable-fast-install was given.
9289 if test "${enable_fast_install+set}" = set; then :
9290 enableval=$enable_fast_install; p=${PACKAGE-default}
9291 case $enableval in
9292 yes) enable_fast_install=yes ;;
9293 no) enable_fast_install=no ;;
9295 enable_fast_install=no
9296 # Look at the argument we got. We use all the common list separators.
9297 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9298 for pkg in $enableval; do
9299 IFS=$lt_save_ifs
9300 if test "X$pkg" = "X$p"; then
9301 enable_fast_install=yes
9303 done
9304 IFS=$lt_save_ifs
9306 esac
9307 else
9308 enable_fast_install=yes
9318 shared_archive_member_spec=
9319 case $host,$enable_shared in
9320 power*-*-aix[5-9]*,yes)
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9322 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9324 # Check whether --with-aix-soname was given.
9325 if test "${with_aix_soname+set}" = set; then :
9326 withval=$with_aix_soname; case $withval in
9327 aix|svr4|both)
9330 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9332 esac
9333 lt_cv_with_aix_soname=$with_aix_soname
9334 else
9335 if ${lt_cv_with_aix_soname+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 lt_cv_with_aix_soname=aix
9341 with_aix_soname=$lt_cv_with_aix_soname
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9345 $as_echo "$with_aix_soname" >&6; }
9346 if test aix != "$with_aix_soname"; then
9347 # For the AIX way of multilib, we name the shared archive member
9348 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9349 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9350 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9351 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9352 if test 64 = "${OBJECT_MODE-32}"; then
9353 shared_archive_member_spec=shr_64
9354 else
9355 shared_archive_member_spec=shr
9360 with_aix_soname=aix
9362 esac
9373 # This can be used to rebuild libtool when needed
9374 LIBTOOL_DEPS=$ltmain
9376 # Always use our own libtool.
9377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9408 test -z "$LN_S" && LN_S="ln -s"
9423 if test -n "${ZSH_VERSION+set}"; then
9424 setopt NO_GLOB_SUBST
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9428 $as_echo_n "checking for objdir... " >&6; }
9429 if ${lt_cv_objdir+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 rm -f .libs 2>/dev/null
9433 mkdir .libs 2>/dev/null
9434 if test -d .libs; then
9435 lt_cv_objdir=.libs
9436 else
9437 # MS-DOS does not allow filenames that begin with a dot.
9438 lt_cv_objdir=_libs
9440 rmdir .libs 2>/dev/null
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9443 $as_echo "$lt_cv_objdir" >&6; }
9444 objdir=$lt_cv_objdir
9450 cat >>confdefs.h <<_ACEOF
9451 #define LT_OBJDIR "$lt_cv_objdir/"
9452 _ACEOF
9457 case $host_os in
9458 aix3*)
9459 # AIX sometimes has problems with the GCC collect2 program. For some
9460 # reason, if we set the COLLECT_NAMES environment variable, the problems
9461 # vanish in a puff of smoke.
9462 if test set != "${COLLECT_NAMES+set}"; then
9463 COLLECT_NAMES=
9464 export COLLECT_NAMES
9467 esac
9469 # Global variables:
9470 ofile=libtool
9471 can_build_shared=yes
9473 # All known linkers require a '.a' archive for static linking (except MSVC,
9474 # which needs '.lib').
9475 libext=a
9477 with_gnu_ld=$lt_cv_prog_gnu_ld
9479 old_CC=$CC
9480 old_CFLAGS=$CFLAGS
9482 # Set sane defaults for various variables
9483 test -z "$CC" && CC=cc
9484 test -z "$LTCC" && LTCC=$CC
9485 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9486 test -z "$LD" && LD=ld
9487 test -z "$ac_objext" && ac_objext=o
9489 func_cc_basename $compiler
9490 cc_basename=$func_cc_basename_result
9493 # Only perform the check for file, if the check method requires it
9494 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9495 case $deplibs_check_method in
9496 file_magic*)
9497 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9499 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9500 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 case $MAGIC_CMD in
9504 [\\/*] | ?:[\\/]*)
9505 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9508 lt_save_MAGIC_CMD=$MAGIC_CMD
9509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9511 for ac_dir in $ac_dummy; do
9512 IFS=$lt_save_ifs
9513 test -z "$ac_dir" && ac_dir=.
9514 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9515 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9516 if test -n "$file_magic_test_file"; then
9517 case $deplibs_check_method in
9518 "file_magic "*)
9519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9520 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9522 $EGREP "$file_magic_regex" > /dev/null; then
9524 else
9525 cat <<_LT_EOF 1>&2
9527 *** Warning: the command libtool uses to detect shared libraries,
9528 *** $file_magic_cmd, produces output that libtool cannot recognize.
9529 *** The result is that libtool may fail to recognize shared libraries
9530 *** as such. This will affect the creation of libtool libraries that
9531 *** depend on shared libraries, but programs linked with such libtool
9532 *** libraries will work regardless of this problem. Nevertheless, you
9533 *** may want to report the problem to your system manager and/or to
9534 *** bug-libtool@gnu.org
9536 _LT_EOF
9537 fi ;;
9538 esac
9540 break
9542 done
9543 IFS=$lt_save_ifs
9544 MAGIC_CMD=$lt_save_MAGIC_CMD
9546 esac
9549 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9550 if test -n "$MAGIC_CMD"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9552 $as_echo "$MAGIC_CMD" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9562 if test -z "$lt_cv_path_MAGIC_CMD"; then
9563 if test -n "$ac_tool_prefix"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9565 $as_echo_n "checking for file... " >&6; }
9566 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 case $MAGIC_CMD in
9570 [\\/*] | ?:[\\/]*)
9571 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9574 lt_save_MAGIC_CMD=$MAGIC_CMD
9575 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9577 for ac_dir in $ac_dummy; do
9578 IFS=$lt_save_ifs
9579 test -z "$ac_dir" && ac_dir=.
9580 if test -f "$ac_dir/file"; then
9581 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9582 if test -n "$file_magic_test_file"; then
9583 case $deplibs_check_method in
9584 "file_magic "*)
9585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9586 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9588 $EGREP "$file_magic_regex" > /dev/null; then
9590 else
9591 cat <<_LT_EOF 1>&2
9593 *** Warning: the command libtool uses to detect shared libraries,
9594 *** $file_magic_cmd, produces output that libtool cannot recognize.
9595 *** The result is that libtool may fail to recognize shared libraries
9596 *** as such. This will affect the creation of libtool libraries that
9597 *** depend on shared libraries, but programs linked with such libtool
9598 *** libraries will work regardless of this problem. Nevertheless, you
9599 *** may want to report the problem to your system manager and/or to
9600 *** bug-libtool@gnu.org
9602 _LT_EOF
9603 fi ;;
9604 esac
9606 break
9608 done
9609 IFS=$lt_save_ifs
9610 MAGIC_CMD=$lt_save_MAGIC_CMD
9612 esac
9615 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9616 if test -n "$MAGIC_CMD"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9618 $as_echo "$MAGIC_CMD" >&6; }
9619 else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9625 else
9626 MAGIC_CMD=:
9632 esac
9634 # Use C for the default configuration in the libtool script
9636 lt_save_CC=$CC
9637 ac_ext=c
9638 ac_cpp='$CPP $CPPFLAGS'
9639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9644 # Source file extension for C test sources.
9645 ac_ext=c
9647 # Object file extension for compiled C test sources.
9648 objext=o
9649 objext=$objext
9651 # Code to be used in simple compile tests
9652 lt_simple_compile_test_code="int some_variable = 0;"
9654 # Code to be used in simple link tests
9655 lt_simple_link_test_code='int main(){return(0);}'
9663 # If no C compiler was specified, use CC.
9664 LTCC=${LTCC-"$CC"}
9666 # If no C compiler flags were specified, use CFLAGS.
9667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9669 # Allow CC to be a program name with arguments.
9670 compiler=$CC
9672 # Save the default compiler, since it gets overwritten when the other
9673 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9674 compiler_DEFAULT=$CC
9676 # save warnings/boilerplate of simple test code
9677 ac_outfile=conftest.$ac_objext
9678 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9679 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9680 _lt_compiler_boilerplate=`cat conftest.err`
9681 $RM conftest*
9683 ac_outfile=conftest.$ac_objext
9684 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9685 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9686 _lt_linker_boilerplate=`cat conftest.err`
9687 $RM -r conftest*
9690 ## CAVEAT EMPTOR:
9691 ## There is no encapsulation within the following macros, do not change
9692 ## the running order or otherwise move them around unless you know exactly
9693 ## what you are doing...
9694 if test -n "$compiler"; then
9696 lt_prog_compiler_no_builtin_flag=
9698 if test yes = "$GCC"; then
9699 case $cc_basename in
9700 nvcc*)
9701 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9703 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9704 esac
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9707 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9708 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 lt_cv_prog_compiler_rtti_exceptions=no
9712 ac_outfile=conftest.$ac_objext
9713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9714 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9715 # Insert the option either (1) after the last *FLAGS variable, or
9716 # (2) before a word containing "conftest.", or (3) at the end.
9717 # Note that $ac_compile itself does not contain backslashes and begins
9718 # with a dollar sign (not a hyphen), so the echo should work correctly.
9719 # The option is referenced via a variable to avoid confusing sed.
9720 lt_compile=`echo "$ac_compile" | $SED \
9721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9723 -e 's:$: $lt_compiler_flag:'`
9724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9725 (eval "$lt_compile" 2>conftest.err)
9726 ac_status=$?
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 if (exit $ac_status) && test -s "$ac_outfile"; then
9730 # The compiler can only warn and ignore the option if not recognized
9731 # So say no if there are warnings other than the usual output.
9732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9735 lt_cv_prog_compiler_rtti_exceptions=yes
9738 $RM conftest*
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9742 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9744 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9745 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9746 else
9757 lt_prog_compiler_wl=
9758 lt_prog_compiler_pic=
9759 lt_prog_compiler_static=
9762 if test yes = "$GCC"; then
9763 lt_prog_compiler_wl='-Wl,'
9764 lt_prog_compiler_static='-static'
9766 case $host_os in
9767 aix*)
9768 # All AIX code is PIC.
9769 if test ia64 = "$host_cpu"; then
9770 # AIX 5 now supports IA64 processor
9771 lt_prog_compiler_static='-Bstatic'
9773 lt_prog_compiler_pic='-fPIC'
9776 amigaos*)
9777 case $host_cpu in
9778 powerpc)
9779 # see comment about AmigaOS4 .so support
9780 lt_prog_compiler_pic='-fPIC'
9782 m68k)
9783 # FIXME: we need at least 68020 code to build shared libraries, but
9784 # adding the '-m68020' flag to GCC prevents building anything better,
9785 # like '-m68040'.
9786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9788 esac
9791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9792 # PIC is the default for these OSes.
9795 mingw* | cygwin* | pw32* | os2* | cegcc*)
9796 # This hack is so that the source file can tell whether it is being
9797 # built for inclusion in a dll (and should export symbols for example).
9798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9799 # (--disable-auto-import) libraries
9800 lt_prog_compiler_pic='-DDLL_EXPORT'
9801 case $host_os in
9802 os2*)
9803 lt_prog_compiler_static='$wl-static'
9805 esac
9808 darwin* | rhapsody*)
9809 # PIC is the default on this platform
9810 # Common symbols not allowed in MH_DYLIB files
9811 lt_prog_compiler_pic='-fno-common'
9814 haiku*)
9815 # PIC is the default for Haiku.
9816 # The "-static" flag exists, but is broken.
9817 lt_prog_compiler_static=
9820 hpux*)
9821 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9822 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9823 # sets the default TLS model and affects inlining.
9824 case $host_cpu in
9825 hppa*64*)
9826 # +Z the default
9829 lt_prog_compiler_pic='-fPIC'
9831 esac
9834 interix[3-9]*)
9835 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9836 # Instead, we relocate shared libraries at runtime.
9839 msdosdjgpp*)
9840 # Just because we use GCC doesn't mean we suddenly get shared libraries
9841 # on systems that don't support them.
9842 lt_prog_compiler_can_build_shared=no
9843 enable_shared=no
9846 *nto* | *qnx*)
9847 # QNX uses GNU C++, but need to define -shared option too, otherwise
9848 # it will coredump.
9849 lt_prog_compiler_pic='-fPIC -shared'
9852 sysv4*MP*)
9853 if test -d /usr/nec; then
9854 lt_prog_compiler_pic=-Kconform_pic
9859 lt_prog_compiler_pic='-fPIC'
9861 esac
9863 case $cc_basename in
9864 nvcc*) # Cuda Compiler Driver 2.2
9865 lt_prog_compiler_wl='-Xlinker '
9866 if test -n "$lt_prog_compiler_pic"; then
9867 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9870 esac
9871 else
9872 # PORTME Check for flag to pass linker flags through the system compiler.
9873 case $host_os in
9874 aix*)
9875 lt_prog_compiler_wl='-Wl,'
9876 if test ia64 = "$host_cpu"; then
9877 # AIX 5 now supports IA64 processor
9878 lt_prog_compiler_static='-Bstatic'
9879 else
9880 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9884 darwin* | rhapsody*)
9885 # PIC is the default on this platform
9886 # Common symbols not allowed in MH_DYLIB files
9887 lt_prog_compiler_pic='-fno-common'
9888 case $cc_basename in
9889 nagfor*)
9890 # NAG Fortran compiler
9891 lt_prog_compiler_wl='-Wl,-Wl,,'
9892 lt_prog_compiler_pic='-PIC'
9893 lt_prog_compiler_static='-Bstatic'
9895 esac
9898 mingw* | cygwin* | pw32* | os2* | cegcc*)
9899 # This hack is so that the source file can tell whether it is being
9900 # built for inclusion in a dll (and should export symbols for example).
9901 lt_prog_compiler_pic='-DDLL_EXPORT'
9902 case $host_os in
9903 os2*)
9904 lt_prog_compiler_static='$wl-static'
9906 esac
9909 hpux9* | hpux10* | hpux11*)
9910 lt_prog_compiler_wl='-Wl,'
9911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9912 # not for PA HP-UX.
9913 case $host_cpu in
9914 hppa*64*|ia64*)
9915 # +Z the default
9918 lt_prog_compiler_pic='+Z'
9920 esac
9921 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9922 lt_prog_compiler_static='$wl-a ${wl}archive'
9925 irix5* | irix6* | nonstopux*)
9926 lt_prog_compiler_wl='-Wl,'
9927 # PIC (with -KPIC) is the default.
9928 lt_prog_compiler_static='-non_shared'
9931 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9932 case $cc_basename in
9933 # old Intel for x86_64, which still supported -KPIC.
9934 ecc*)
9935 lt_prog_compiler_wl='-Wl,'
9936 lt_prog_compiler_pic='-KPIC'
9937 lt_prog_compiler_static='-static'
9939 # icc used to be incompatible with GCC.
9940 # ICC 10 doesn't accept -KPIC any more.
9941 icc* | ifort*)
9942 lt_prog_compiler_wl='-Wl,'
9943 lt_prog_compiler_pic='-fPIC'
9944 lt_prog_compiler_static='-static'
9946 # Lahey Fortran 8.1.
9947 lf95*)
9948 lt_prog_compiler_wl='-Wl,'
9949 lt_prog_compiler_pic='--shared'
9950 lt_prog_compiler_static='--static'
9952 nagfor*)
9953 # NAG Fortran compiler
9954 lt_prog_compiler_wl='-Wl,-Wl,,'
9955 lt_prog_compiler_pic='-PIC'
9956 lt_prog_compiler_static='-Bstatic'
9958 tcc*)
9959 # Fabrice Bellard et al's Tiny C Compiler
9960 lt_prog_compiler_wl='-Wl,'
9961 lt_prog_compiler_pic='-fPIC'
9962 lt_prog_compiler_static='-static'
9964 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9965 # Portland Group compilers (*not* the Pentium gcc compiler,
9966 # which looks to be a dead project)
9967 lt_prog_compiler_wl='-Wl,'
9968 lt_prog_compiler_pic='-fpic'
9969 lt_prog_compiler_static='-Bstatic'
9971 ccc*)
9972 lt_prog_compiler_wl='-Wl,'
9973 # All Alpha code is PIC.
9974 lt_prog_compiler_static='-non_shared'
9976 xl* | bgxl* | bgf* | mpixl*)
9977 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-qpic'
9980 lt_prog_compiler_static='-qstaticlink'
9983 case `$CC -V 2>&1 | sed 5q` in
9984 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9985 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9986 lt_prog_compiler_pic='-KPIC'
9987 lt_prog_compiler_static='-Bstatic'
9988 lt_prog_compiler_wl=''
9990 *Sun\ F* | *Sun*Fortran*)
9991 lt_prog_compiler_pic='-KPIC'
9992 lt_prog_compiler_static='-Bstatic'
9993 lt_prog_compiler_wl='-Qoption ld '
9995 *Sun\ C*)
9996 # Sun C 5.9
9997 lt_prog_compiler_pic='-KPIC'
9998 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_wl='-Wl,'
10001 *Intel*\ [CF]*Compiler*)
10002 lt_prog_compiler_wl='-Wl,'
10003 lt_prog_compiler_pic='-fPIC'
10004 lt_prog_compiler_static='-static'
10006 *Portland\ Group*)
10007 lt_prog_compiler_wl='-Wl,'
10008 lt_prog_compiler_pic='-fpic'
10009 lt_prog_compiler_static='-Bstatic'
10011 esac
10013 esac
10016 newsos6)
10017 lt_prog_compiler_pic='-KPIC'
10018 lt_prog_compiler_static='-Bstatic'
10021 *nto* | *qnx*)
10022 # QNX uses GNU C++, but need to define -shared option too, otherwise
10023 # it will coredump.
10024 lt_prog_compiler_pic='-fPIC -shared'
10027 osf3* | osf4* | osf5*)
10028 lt_prog_compiler_wl='-Wl,'
10029 # All OSF/1 code is PIC.
10030 lt_prog_compiler_static='-non_shared'
10033 rdos*)
10034 lt_prog_compiler_static='-non_shared'
10037 solaris*)
10038 lt_prog_compiler_pic='-KPIC'
10039 lt_prog_compiler_static='-Bstatic'
10040 case $cc_basename in
10041 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10042 lt_prog_compiler_wl='-Qoption ld ';;
10044 lt_prog_compiler_wl='-Wl,';;
10045 esac
10048 sunos4*)
10049 lt_prog_compiler_wl='-Qoption ld '
10050 lt_prog_compiler_pic='-PIC'
10051 lt_prog_compiler_static='-Bstatic'
10054 sysv4 | sysv4.2uw2* | sysv4.3*)
10055 lt_prog_compiler_wl='-Wl,'
10056 lt_prog_compiler_pic='-KPIC'
10057 lt_prog_compiler_static='-Bstatic'
10060 sysv4*MP*)
10061 if test -d /usr/nec; then
10062 lt_prog_compiler_pic='-Kconform_pic'
10063 lt_prog_compiler_static='-Bstatic'
10067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10068 lt_prog_compiler_wl='-Wl,'
10069 lt_prog_compiler_pic='-KPIC'
10070 lt_prog_compiler_static='-Bstatic'
10073 unicos*)
10074 lt_prog_compiler_wl='-Wl,'
10075 lt_prog_compiler_can_build_shared=no
10078 uts4*)
10079 lt_prog_compiler_pic='-pic'
10080 lt_prog_compiler_static='-Bstatic'
10084 lt_prog_compiler_can_build_shared=no
10086 esac
10089 case $host_os in
10090 # For platforms that do not support PIC, -DPIC is meaningless:
10091 *djgpp*)
10092 lt_prog_compiler_pic=
10095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10097 esac
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10100 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10101 if ${lt_cv_prog_compiler_pic+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10107 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10108 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10111 # Check to make sure the PIC flag actually works.
10113 if test -n "$lt_prog_compiler_pic"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10115 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10116 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 lt_cv_prog_compiler_pic_works=no
10120 ac_outfile=conftest.$ac_objext
10121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10122 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10123 # Insert the option either (1) after the last *FLAGS variable, or
10124 # (2) before a word containing "conftest.", or (3) at the end.
10125 # Note that $ac_compile itself does not contain backslashes and begins
10126 # with a dollar sign (not a hyphen), so the echo should work correctly.
10127 # The option is referenced via a variable to avoid confusing sed.
10128 lt_compile=`echo "$ac_compile" | $SED \
10129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10131 -e 's:$: $lt_compiler_flag:'`
10132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10133 (eval "$lt_compile" 2>conftest.err)
10134 ac_status=$?
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 if (exit $ac_status) && test -s "$ac_outfile"; then
10138 # The compiler can only warn and ignore the option if not recognized
10139 # So say no if there are warnings other than the usual output.
10140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10143 lt_cv_prog_compiler_pic_works=yes
10146 $RM conftest*
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10150 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10152 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10153 case $lt_prog_compiler_pic in
10154 "" | " "*) ;;
10155 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10156 esac
10157 else
10158 lt_prog_compiler_pic=
10159 lt_prog_compiler_can_build_shared=no
10175 # Check to make sure the static flag actually works.
10177 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10179 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10180 if ${lt_cv_prog_compiler_static_works+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 lt_cv_prog_compiler_static_works=no
10184 save_LDFLAGS=$LDFLAGS
10185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10188 # The linker can only warn and ignore the option if not recognized
10189 # So say no if there are warnings
10190 if test -s conftest.err; then
10191 # Append any errors to the config.log.
10192 cat conftest.err 1>&5
10193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10195 if diff conftest.exp conftest.er2 >/dev/null; then
10196 lt_cv_prog_compiler_static_works=yes
10198 else
10199 lt_cv_prog_compiler_static_works=yes
10202 $RM -r conftest*
10203 LDFLAGS=$save_LDFLAGS
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10207 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10209 if test yes = "$lt_cv_prog_compiler_static_works"; then
10211 else
10212 lt_prog_compiler_static=
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10223 if ${lt_cv_prog_compiler_c_o+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 lt_cv_prog_compiler_c_o=no
10227 $RM -r conftest 2>/dev/null
10228 mkdir conftest
10229 cd conftest
10230 mkdir out
10231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10233 lt_compiler_flag="-o out/conftest2.$ac_objext"
10234 # Insert the option either (1) after the last *FLAGS variable, or
10235 # (2) before a word containing "conftest.", or (3) at the end.
10236 # Note that $ac_compile itself does not contain backslashes and begins
10237 # with a dollar sign (not a hyphen), so the echo should work correctly.
10238 lt_compile=`echo "$ac_compile" | $SED \
10239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10241 -e 's:$: $lt_compiler_flag:'`
10242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10243 (eval "$lt_compile" 2>out/conftest.err)
10244 ac_status=$?
10245 cat out/conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10248 then
10249 # The compiler can only warn and ignore the option if not recognized
10250 # So say no if there are warnings
10251 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10254 lt_cv_prog_compiler_c_o=yes
10257 chmod u+w . 2>&5
10258 $RM conftest*
10259 # SGI C++ compiler will create directory out/ii_files/ for
10260 # template instantiation
10261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10262 $RM out/* && rmdir out
10263 cd ..
10264 $RM -r conftest
10265 $RM conftest*
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10269 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10278 if ${lt_cv_prog_compiler_c_o+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 lt_cv_prog_compiler_c_o=no
10282 $RM -r conftest 2>/dev/null
10283 mkdir conftest
10284 cd conftest
10285 mkdir out
10286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10288 lt_compiler_flag="-o out/conftest2.$ac_objext"
10289 # Insert the option either (1) after the last *FLAGS variable, or
10290 # (2) before a word containing "conftest.", or (3) at the end.
10291 # Note that $ac_compile itself does not contain backslashes and begins
10292 # with a dollar sign (not a hyphen), so the echo should work correctly.
10293 lt_compile=`echo "$ac_compile" | $SED \
10294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10296 -e 's:$: $lt_compiler_flag:'`
10297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10298 (eval "$lt_compile" 2>out/conftest.err)
10299 ac_status=$?
10300 cat out/conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10303 then
10304 # The compiler can only warn and ignore the option if not recognized
10305 # So say no if there are warnings
10306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10309 lt_cv_prog_compiler_c_o=yes
10312 chmod u+w . 2>&5
10313 $RM conftest*
10314 # SGI C++ compiler will create directory out/ii_files/ for
10315 # template instantiation
10316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10317 $RM out/* && rmdir out
10318 cd ..
10319 $RM -r conftest
10320 $RM conftest*
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10329 hard_links=nottested
10330 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10331 # do not overwrite the value of need_locks provided by the user
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10333 $as_echo_n "checking if we can lock with hard links... " >&6; }
10334 hard_links=yes
10335 $RM conftest*
10336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10337 touch conftest.a
10338 ln conftest.a conftest.b 2>&5 || hard_links=no
10339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10341 $as_echo "$hard_links" >&6; }
10342 if test no = "$hard_links"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10344 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10345 need_locks=warn
10347 else
10348 need_locks=no
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10359 runpath_var=
10360 allow_undefined_flag=
10361 always_export_symbols=no
10362 archive_cmds=
10363 archive_expsym_cmds=
10364 compiler_needs_object=no
10365 enable_shared_with_static_runtimes=no
10366 export_dynamic_flag_spec=
10367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10368 hardcode_automatic=no
10369 hardcode_direct=no
10370 hardcode_direct_absolute=no
10371 hardcode_libdir_flag_spec=
10372 hardcode_libdir_separator=
10373 hardcode_minus_L=no
10374 hardcode_shlibpath_var=unsupported
10375 inherit_rpath=no
10376 link_all_deplibs=unknown
10377 module_cmds=
10378 module_expsym_cmds=
10379 old_archive_from_new_cmds=
10380 old_archive_from_expsyms_cmds=
10381 thread_safe_flag_spec=
10382 whole_archive_flag_spec=
10383 # include_expsyms should be a list of space-separated symbols to be *always*
10384 # included in the symbol list
10385 include_expsyms=
10386 # exclude_expsyms can be an extended regexp of symbols to exclude
10387 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10388 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10389 # as well as any symbol that contains 'd'.
10390 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10392 # platforms (ab)use it in PIC code, but their linkers get confused if
10393 # the symbol is explicitly referenced. Since portable code cannot
10394 # rely on this symbol name, it's probably fine to never include it in
10395 # preloaded symbol tables.
10396 # Exclude shared library initialization/finalization symbols.
10397 extract_expsyms_cmds=
10399 case $host_os in
10400 cygwin* | mingw* | pw32* | cegcc*)
10401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10402 # When not using gcc, we currently assume that we are using
10403 # Microsoft Visual C++.
10404 if test yes != "$GCC"; then
10405 with_gnu_ld=no
10408 interix*)
10409 # we just hope/assume this is gcc and not c89 (= MSVC++)
10410 with_gnu_ld=yes
10412 openbsd* | bitrig*)
10413 with_gnu_ld=no
10415 esac
10417 ld_shlibs=yes
10419 # On some targets, GNU ld is compatible enough with the native linker
10420 # that we're better off using the native interface for both.
10421 lt_use_gnu_ld_interface=no
10422 if test yes = "$with_gnu_ld"; then
10423 case $host_os in
10424 aix*)
10425 # The AIX port of GNU ld has always aspired to compatibility
10426 # with the native linker. However, as the warning in the GNU ld
10427 # block says, versions before 2.19.5* couldn't really create working
10428 # shared libraries, regardless of the interface used.
10429 case `$LD -v 2>&1` in
10430 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10431 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10432 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10434 lt_use_gnu_ld_interface=yes
10436 esac
10439 lt_use_gnu_ld_interface=yes
10441 esac
10444 if test yes = "$lt_use_gnu_ld_interface"; then
10445 # If archive_cmds runs LD, not CC, wlarc should be empty
10446 wlarc='$wl'
10448 # Set some defaults for GNU ld with shared library support. These
10449 # are reset later if shared libraries are not supported. Putting them
10450 # here allows them to be overridden if necessary.
10451 runpath_var=LD_RUN_PATH
10452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10453 export_dynamic_flag_spec='$wl--export-dynamic'
10454 # ancient GNU ld didn't support --whole-archive et. al.
10455 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10456 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10457 else
10458 whole_archive_flag_spec=
10460 supports_anon_versioning=no
10461 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10462 *GNU\ gold*) supports_anon_versioning=yes ;;
10463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10466 *\ 2.11.*) ;; # other 2.11 versions
10467 *) supports_anon_versioning=yes ;;
10468 esac
10470 # See if GNU ld supports shared libraries.
10471 case $host_os in
10472 aix[3-9]*)
10473 # On AIX/PPC, the GNU linker is very broken
10474 if test ia64 != "$host_cpu"; then
10475 ld_shlibs=no
10476 cat <<_LT_EOF 1>&2
10478 *** Warning: the GNU linker, at least up to release 2.19, is reported
10479 *** to be unable to reliably create shared libraries on AIX.
10480 *** Therefore, libtool is disabling shared libraries support. If you
10481 *** really care for shared libraries, you may want to install binutils
10482 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10483 *** You will then need to restart the configuration process.
10485 _LT_EOF
10489 amigaos*)
10490 case $host_cpu in
10491 powerpc)
10492 # see comment about AmigaOS4 .so support
10493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10494 archive_expsym_cmds=''
10496 m68k)
10497 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)'
10498 hardcode_libdir_flag_spec='-L$libdir'
10499 hardcode_minus_L=yes
10501 esac
10504 beos*)
10505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10506 allow_undefined_flag=unsupported
10507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10508 # support --undefined. This deserves some investigation. FIXME
10509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10510 else
10511 ld_shlibs=no
10515 cygwin* | mingw* | pw32* | cegcc*)
10516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10517 # as there is no search path for DLLs.
10518 hardcode_libdir_flag_spec='-L$libdir'
10519 export_dynamic_flag_spec='$wl--export-all-symbols'
10520 allow_undefined_flag=unsupported
10521 always_export_symbols=no
10522 enable_shared_with_static_runtimes=yes
10523 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'
10524 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10528 # If the export-symbols file already is a .def file, use it as
10529 # is; otherwise, prepend EXPORTS...
10530 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10531 cp $export_symbols $output_objdir/$soname.def;
10532 else
10533 echo EXPORTS > $output_objdir/$soname.def;
10534 cat $export_symbols >> $output_objdir/$soname.def;
10536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10537 else
10538 ld_shlibs=no
10542 haiku*)
10543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10544 link_all_deplibs=yes
10547 os2*)
10548 hardcode_libdir_flag_spec='-L$libdir'
10549 hardcode_minus_L=yes
10550 allow_undefined_flag=unsupported
10551 shrext_cmds=.dll
10552 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10555 $ECHO EXPORTS >> $output_objdir/$libname.def~
10556 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10558 emximp -o $lib $output_objdir/$libname.def'
10559 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10560 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10561 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10562 $ECHO EXPORTS >> $output_objdir/$libname.def~
10563 prefix_cmds="$SED"~
10564 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10565 prefix_cmds="$prefix_cmds -e 1d";
10567 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10568 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10569 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10570 emximp -o $lib $output_objdir/$libname.def'
10571 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10572 enable_shared_with_static_runtimes=yes
10575 interix[3-9]*)
10576 hardcode_direct=no
10577 hardcode_shlibpath_var=no
10578 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10579 export_dynamic_flag_spec='$wl-E'
10580 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10581 # Instead, shared libraries are loaded at an image base (0x10000000 by
10582 # default) and relocated if they conflict, which is a slow very memory
10583 # consuming and fragmenting process. To avoid this, we pick a random,
10584 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10585 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10586 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10587 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'
10590 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10591 tmp_diet=no
10592 if test linux-dietlibc = "$host_os"; then
10593 case $cc_basename in
10594 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10595 esac
10597 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10598 && test no = "$tmp_diet"
10599 then
10600 tmp_addflag=' $pic_flag'
10601 tmp_sharedflag='-shared'
10602 case $cc_basename,$host_cpu in
10603 pgcc*) # Portland Group C compiler
10604 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'
10605 tmp_addflag=' $pic_flag'
10607 pgf77* | pgf90* | pgf95* | pgfortran*)
10608 # Portland Group f77 and f90 compilers
10609 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'
10610 tmp_addflag=' $pic_flag -Mnomain' ;;
10611 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10612 tmp_addflag=' -i_dynamic' ;;
10613 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10614 tmp_addflag=' -i_dynamic -nofor_main' ;;
10615 ifc* | ifort*) # Intel Fortran compiler
10616 tmp_addflag=' -nofor_main' ;;
10617 lf95*) # Lahey Fortran 8.1
10618 whole_archive_flag_spec=
10619 tmp_sharedflag='--shared' ;;
10620 nagfor*) # NAGFOR 5.3
10621 tmp_sharedflag='-Wl,-shared' ;;
10622 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10623 tmp_sharedflag='-qmkshrobj'
10624 tmp_addflag= ;;
10625 nvcc*) # Cuda Compiler Driver 2.2
10626 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'
10627 compiler_needs_object=yes
10629 esac
10630 case `$CC -V 2>&1 | sed 5q` in
10631 *Sun\ C*) # Sun C 5.9
10632 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'
10633 compiler_needs_object=yes
10634 tmp_sharedflag='-G' ;;
10635 *Sun\ F*) # Sun Fortran 8.3
10636 tmp_sharedflag='-G' ;;
10637 esac
10638 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10640 if test yes = "$supports_anon_versioning"; then
10641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10643 echo "local: *; };" >> $output_objdir/$libname.ver~
10644 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10647 case $cc_basename in
10648 tcc*)
10649 export_dynamic_flag_spec='-rdynamic'
10651 xlf* | bgf* | bgxlf* | mpixlf*)
10652 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10653 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10655 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10656 if test yes = "$supports_anon_versioning"; then
10657 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10659 echo "local: *; };" >> $output_objdir/$libname.ver~
10660 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10663 esac
10664 else
10665 ld_shlibs=no
10669 netbsd*)
10670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10671 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10672 wlarc=
10673 else
10674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10679 solaris*)
10680 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10681 ld_shlibs=no
10682 cat <<_LT_EOF 1>&2
10684 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10685 *** create shared libraries on Solaris systems. Therefore, libtool
10686 *** is disabling shared libraries support. We urge you to upgrade GNU
10687 *** binutils to release 2.9.1 or newer. Another option is to modify
10688 *** your PATH or compiler configuration so that the native linker is
10689 *** used, and then restart.
10691 _LT_EOF
10692 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10694 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10695 else
10696 ld_shlibs=no
10700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10701 case `$LD -v 2>&1` in
10702 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10703 ld_shlibs=no
10704 cat <<_LT_EOF 1>&2
10706 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10707 *** reliably create shared libraries on SCO systems. Therefore, libtool
10708 *** is disabling shared libraries support. We urge you to upgrade GNU
10709 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10710 *** your PATH or compiler configuration so that the native linker is
10711 *** used, and then restart.
10713 _LT_EOF
10716 # For security reasons, it is highly recommended that you always
10717 # use absolute paths for naming shared libraries, and exclude the
10718 # DT_RUNPATH tag from executables and libraries. But doing so
10719 # requires that you compile everything twice, which is a pain.
10720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10721 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10724 else
10725 ld_shlibs=no
10728 esac
10731 sunos4*)
10732 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10733 wlarc=
10734 hardcode_direct=yes
10735 hardcode_shlibpath_var=no
10739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10741 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10742 else
10743 ld_shlibs=no
10746 esac
10748 if test no = "$ld_shlibs"; then
10749 runpath_var=
10750 hardcode_libdir_flag_spec=
10751 export_dynamic_flag_spec=
10752 whole_archive_flag_spec=
10754 else
10755 # PORTME fill in a description of your system's linker (not GNU ld)
10756 case $host_os in
10757 aix3*)
10758 allow_undefined_flag=unsupported
10759 always_export_symbols=yes
10760 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'
10761 # Note: this linker hardcodes the directories in LIBPATH if there
10762 # are no directories specified by -L.
10763 hardcode_minus_L=yes
10764 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10765 # Neither direct hardcoding nor static linking is supported with a
10766 # broken collect2.
10767 hardcode_direct=unsupported
10771 aix[4-9]*)
10772 if test ia64 = "$host_cpu"; then
10773 # On IA64, the linker does run time linking by default, so we don't
10774 # have to do anything special.
10775 aix_use_runtimelinking=no
10776 exp_sym_flag='-Bexport'
10777 no_entry_flag=
10778 else
10779 # If we're using GNU nm, then we don't want the "-C" option.
10780 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10781 # Without the "-l" option, or with the "-B" option, AIX nm treats
10782 # weak defined symbols like other global defined symbols, whereas
10783 # GNU nm marks them as "W".
10784 # While the 'weak' keyword is ignored in the Export File, we need
10785 # it in the Import File for the 'aix-soname' feature, so we have
10786 # to replace the "-B" option with "-P" for AIX nm.
10787 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10788 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'
10789 else
10790 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'
10792 aix_use_runtimelinking=no
10794 # Test if we are trying to use run time linking or normal
10795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10796 # have runtime linking enabled, and use it for executables.
10797 # For shared libraries, we enable/disable runtime linking
10798 # depending on the kind of the shared library created -
10799 # when "with_aix_soname,aix_use_runtimelinking" is:
10800 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10801 # "aix,yes" lib.so shared, rtl:yes, for executables
10802 # lib.a static archive
10803 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10804 # lib.a(lib.so.V) shared, rtl:no, for executables
10805 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10806 # lib.a(lib.so.V) shared, rtl:no
10807 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10808 # lib.a static archive
10809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10810 for ld_flag in $LDFLAGS; do
10811 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10812 aix_use_runtimelinking=yes
10813 break
10815 done
10816 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10817 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10818 # so we don't have lib.a shared libs to link our executables.
10819 # We have to force runtime linking in this case.
10820 aix_use_runtimelinking=yes
10821 LDFLAGS="$LDFLAGS -Wl,-brtl"
10824 esac
10826 exp_sym_flag='-bexport'
10827 no_entry_flag='-bnoentry'
10830 # When large executables or shared objects are built, AIX ld can
10831 # have problems creating the table of contents. If linking a library
10832 # or program results in "error TOC overflow" add -mminimal-toc to
10833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10836 archive_cmds=''
10837 hardcode_direct=yes
10838 hardcode_direct_absolute=yes
10839 hardcode_libdir_separator=':'
10840 link_all_deplibs=yes
10841 file_list_spec='$wl-f,'
10842 case $with_aix_soname,$aix_use_runtimelinking in
10843 aix,*) ;; # traditional, no import file
10844 svr4,* | *,yes) # use import file
10845 # The Import File defines what to hardcode.
10846 hardcode_direct=no
10847 hardcode_direct_absolute=no
10849 esac
10851 if test yes = "$GCC"; then
10852 case $host_os in aix4.[012]|aix4.[012].*)
10853 # We only want to do this on AIX 4.2 and lower, the check
10854 # below for broken collect2 doesn't work under 4.3+
10855 collect2name=`$CC -print-prog-name=collect2`
10856 if test -f "$collect2name" &&
10857 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10858 then
10859 # We have reworked collect2
10861 else
10862 # We have old collect2
10863 hardcode_direct=unsupported
10864 # It fails to find uninstalled libraries when the uninstalled
10865 # path is not listed in the libpath. Setting hardcode_minus_L
10866 # to unsupported forces relinking
10867 hardcode_minus_L=yes
10868 hardcode_libdir_flag_spec='-L$libdir'
10869 hardcode_libdir_separator=
10872 esac
10873 shared_flag='-shared'
10874 if test yes = "$aix_use_runtimelinking"; then
10875 shared_flag="$shared_flag "'$wl-G'
10877 # Need to ensure runtime linking is disabled for the traditional
10878 # shared library, or the linker may eventually find shared libraries
10879 # /with/ Import File - we do not want to mix them.
10880 shared_flag_aix='-shared'
10881 shared_flag_svr4='-shared $wl-G'
10882 else
10883 # not using gcc
10884 if test ia64 = "$host_cpu"; then
10885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10886 # chokes on -Wl,-G. The following line is correct:
10887 shared_flag='-G'
10888 else
10889 if test yes = "$aix_use_runtimelinking"; then
10890 shared_flag='$wl-G'
10891 else
10892 shared_flag='$wl-bM:SRE'
10894 shared_flag_aix='$wl-bM:SRE'
10895 shared_flag_svr4='$wl-G'
10899 export_dynamic_flag_spec='$wl-bexpall'
10900 # It seems that -bexpall does not export symbols beginning with
10901 # underscore (_), so it is better to generate a list of symbols to export.
10902 always_export_symbols=yes
10903 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10904 # Warning - without using the other runtime loading flags (-brtl),
10905 # -berok will link without error, but may produce a broken library.
10906 allow_undefined_flag='-berok'
10907 # Determine the default libpath from the value encoded in an
10908 # empty executable.
10909 if test set = "${lt_cv_aix_libpath+set}"; then
10910 aix_libpath=$lt_cv_aix_libpath
10911 else
10912 if ${lt_cv_aix_libpath_+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10919 main ()
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10928 lt_aix_libpath_sed='
10929 /Import File Strings/,/^$/ {
10930 /^0/ {
10931 s/^0 *\([^ ]*\) *$/\1/
10935 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10936 # Check for a 64-bit object if we didn't find anything.
10937 if test -z "$lt_cv_aix_libpath_"; then
10938 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10941 rm -f core conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10943 if test -z "$lt_cv_aix_libpath_"; then
10944 lt_cv_aix_libpath_=/usr/lib:/lib
10949 aix_libpath=$lt_cv_aix_libpath_
10952 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10953 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
10954 else
10955 if test ia64 = "$host_cpu"; then
10956 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10957 allow_undefined_flag="-z nodefs"
10958 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"
10959 else
10960 # Determine the default libpath from the value encoded in an
10961 # empty executable.
10962 if test set = "${lt_cv_aix_libpath+set}"; then
10963 aix_libpath=$lt_cv_aix_libpath
10964 else
10965 if ${lt_cv_aix_libpath_+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10972 main ()
10976 return 0;
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10981 lt_aix_libpath_sed='
10982 /Import File Strings/,/^$/ {
10983 /^0/ {
10984 s/^0 *\([^ ]*\) *$/\1/
10988 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10989 # Check for a 64-bit object if we didn't find anything.
10990 if test -z "$lt_cv_aix_libpath_"; then
10991 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 if test -z "$lt_cv_aix_libpath_"; then
10997 lt_cv_aix_libpath_=/usr/lib:/lib
11002 aix_libpath=$lt_cv_aix_libpath_
11005 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11006 # Warning - without using the other run time loading flags,
11007 # -berok will link without error, but may produce a broken library.
11008 no_undefined_flag=' $wl-bernotok'
11009 allow_undefined_flag=' $wl-berok'
11010 if test yes = "$with_gnu_ld"; then
11011 # We only use this code for GNU lds that support --whole-archive.
11012 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11013 else
11014 # Exported symbols can be pulled into shared objects from archives
11015 whole_archive_flag_spec='$convenience'
11017 archive_cmds_need_lc=yes
11018 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11019 # -brtl affects multiple linker settings, -berok does not and is overridden later
11020 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11021 if test svr4 != "$with_aix_soname"; then
11022 # This is similar to how AIX traditionally builds its shared libraries.
11023 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'
11025 if test aix != "$with_aix_soname"; then
11026 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'
11027 else
11028 # used by -dlpreopen to get the symbols
11029 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11031 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11036 amigaos*)
11037 case $host_cpu in
11038 powerpc)
11039 # see comment about AmigaOS4 .so support
11040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11041 archive_expsym_cmds=''
11043 m68k)
11044 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)'
11045 hardcode_libdir_flag_spec='-L$libdir'
11046 hardcode_minus_L=yes
11048 esac
11051 bsdi[45]*)
11052 export_dynamic_flag_spec=-rdynamic
11055 cygwin* | mingw* | pw32* | cegcc*)
11056 # When not using gcc, we currently assume that we are using
11057 # Microsoft Visual C++.
11058 # hardcode_libdir_flag_spec is actually meaningless, as there is
11059 # no search path for DLLs.
11060 case $cc_basename in
11061 cl*)
11062 # Native MSVC
11063 hardcode_libdir_flag_spec=' '
11064 allow_undefined_flag=unsupported
11065 always_export_symbols=yes
11066 file_list_spec='@'
11067 # Tell ltmain to make .lib files, not .a files.
11068 libext=lib
11069 # Tell ltmain to make .dll files, not .so files.
11070 shrext_cmds=.dll
11071 # FIXME: Setting linknames here is a bad hack.
11072 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11073 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11074 cp "$export_symbols" "$output_objdir/$soname.def";
11075 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11076 else
11077 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11079 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11080 linknames='
11081 # The linker will not automatically build a static lib if we build a DLL.
11082 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11083 enable_shared_with_static_runtimes=yes
11084 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11086 # Don't use ranlib
11087 old_postinstall_cmds='chmod 644 $oldlib'
11088 postlink_cmds='lt_outputfile="@OUTPUT@"~
11089 lt_tool_outputfile="@TOOL_OUTPUT@"~
11090 case $lt_outputfile in
11091 *.exe|*.EXE) ;;
11093 lt_outputfile=$lt_outputfile.exe
11094 lt_tool_outputfile=$lt_tool_outputfile.exe
11096 esac~
11097 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11098 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11099 $RM "$lt_outputfile.manifest";
11103 # Assume MSVC wrapper
11104 hardcode_libdir_flag_spec=' '
11105 allow_undefined_flag=unsupported
11106 # Tell ltmain to make .lib files, not .a files.
11107 libext=lib
11108 # Tell ltmain to make .dll files, not .so files.
11109 shrext_cmds=.dll
11110 # FIXME: Setting linknames here is a bad hack.
11111 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11112 # The linker will automatically build a .lib file if we build a DLL.
11113 old_archive_from_new_cmds='true'
11114 # FIXME: Should let the user specify the lib program.
11115 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11116 enable_shared_with_static_runtimes=yes
11118 esac
11121 darwin* | rhapsody*)
11124 archive_cmds_need_lc=no
11125 hardcode_direct=no
11126 hardcode_automatic=yes
11127 hardcode_shlibpath_var=unsupported
11128 if test yes = "$lt_cv_ld_force_load"; then
11129 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\"`'
11131 else
11132 whole_archive_flag_spec=''
11134 link_all_deplibs=yes
11135 allow_undefined_flag=$_lt_dar_allow_undefined
11136 case $cc_basename in
11137 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11138 *) _lt_dar_can_shared=$GCC ;;
11139 esac
11140 if test yes = "$_lt_dar_can_shared"; then
11141 output_verbose_link_cmd=func_echo_all
11142 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11143 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11144 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"
11145 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"
11147 else
11148 ld_shlibs=no
11153 dgux*)
11154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11155 hardcode_libdir_flag_spec='-L$libdir'
11156 hardcode_shlibpath_var=no
11159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11160 # support. Future versions do this automatically, but an explicit c++rt0.o
11161 # does not break anything, and helps significantly (at the cost of a little
11162 # extra space).
11163 freebsd2.2*)
11164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11165 hardcode_libdir_flag_spec='-R$libdir'
11166 hardcode_direct=yes
11167 hardcode_shlibpath_var=no
11170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11171 freebsd2.*)
11172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11173 hardcode_direct=yes
11174 hardcode_minus_L=yes
11175 hardcode_shlibpath_var=no
11178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11179 freebsd* | dragonfly*)
11180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11181 hardcode_libdir_flag_spec='-R$libdir'
11182 hardcode_direct=yes
11183 hardcode_shlibpath_var=no
11186 hpux9*)
11187 if test yes = "$GCC"; then
11188 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'
11189 else
11190 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'
11192 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11193 hardcode_libdir_separator=:
11194 hardcode_direct=yes
11196 # hardcode_minus_L: Not really in the search PATH,
11197 # but as the default location of the library.
11198 hardcode_minus_L=yes
11199 export_dynamic_flag_spec='$wl-E'
11202 hpux10*)
11203 if test yes,no = "$GCC,$with_gnu_ld"; then
11204 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11205 else
11206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11208 if test no = "$with_gnu_ld"; then
11209 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11210 hardcode_libdir_separator=:
11211 hardcode_direct=yes
11212 hardcode_direct_absolute=yes
11213 export_dynamic_flag_spec='$wl-E'
11214 # hardcode_minus_L: Not really in the search PATH,
11215 # but as the default location of the library.
11216 hardcode_minus_L=yes
11220 hpux11*)
11221 if test yes,no = "$GCC,$with_gnu_ld"; then
11222 case $host_cpu in
11223 hppa*64*)
11224 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 ia64*)
11227 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11230 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11232 esac
11233 else
11234 case $host_cpu in
11235 hppa*64*)
11236 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11238 ia64*)
11239 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11243 # Older versions of the 11.00 compiler do not understand -b yet
11244 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11246 $as_echo_n "checking if $CC understands -b... " >&6; }
11247 if ${lt_cv_prog_compiler__b+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 lt_cv_prog_compiler__b=no
11251 save_LDFLAGS=$LDFLAGS
11252 LDFLAGS="$LDFLAGS -b"
11253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11255 # The linker can only warn and ignore the option if not recognized
11256 # So say no if there are warnings
11257 if test -s conftest.err; then
11258 # Append any errors to the config.log.
11259 cat conftest.err 1>&5
11260 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11262 if diff conftest.exp conftest.er2 >/dev/null; then
11263 lt_cv_prog_compiler__b=yes
11265 else
11266 lt_cv_prog_compiler__b=yes
11269 $RM -r conftest*
11270 LDFLAGS=$save_LDFLAGS
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11274 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11276 if test yes = "$lt_cv_prog_compiler__b"; then
11277 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11278 else
11279 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11283 esac
11285 if test no = "$with_gnu_ld"; then
11286 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11287 hardcode_libdir_separator=:
11289 case $host_cpu in
11290 hppa*64*|ia64*)
11291 hardcode_direct=no
11292 hardcode_shlibpath_var=no
11295 hardcode_direct=yes
11296 hardcode_direct_absolute=yes
11297 export_dynamic_flag_spec='$wl-E'
11299 # hardcode_minus_L: Not really in the search PATH,
11300 # but as the default location of the library.
11301 hardcode_minus_L=yes
11303 esac
11307 irix5* | irix6* | nonstopux*)
11308 if test yes = "$GCC"; then
11309 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'
11310 # Try to use the -exported_symbol ld option, if it does not
11311 # work, assume that -exports_file does not work either and
11312 # implicitly export all symbols.
11313 # This should be the same for all languages, so no per-tag cache variable.
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11315 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11316 if ${lt_cv_irix_exported_symbol+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 save_LDFLAGS=$LDFLAGS
11320 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323 int foo (void) { return 0; }
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 lt_cv_irix_exported_symbol=yes
11327 else
11328 lt_cv_irix_exported_symbol=no
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 LDFLAGS=$save_LDFLAGS
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11335 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11336 if test yes = "$lt_cv_irix_exported_symbol"; then
11337 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'
11339 else
11340 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'
11341 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'
11343 archive_cmds_need_lc='no'
11344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11345 hardcode_libdir_separator=:
11346 inherit_rpath=yes
11347 link_all_deplibs=yes
11350 linux*)
11351 case $cc_basename in
11352 tcc*)
11353 # Fabrice Bellard et al's Tiny C Compiler
11354 ld_shlibs=yes
11355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11357 esac
11360 netbsd*)
11361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11363 else
11364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11366 hardcode_libdir_flag_spec='-R$libdir'
11367 hardcode_direct=yes
11368 hardcode_shlibpath_var=no
11371 newsos6)
11372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11373 hardcode_direct=yes
11374 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11375 hardcode_libdir_separator=:
11376 hardcode_shlibpath_var=no
11379 *nto* | *qnx*)
11382 openbsd* | bitrig*)
11383 if test -f /usr/libexec/ld.so; then
11384 hardcode_direct=yes
11385 hardcode_shlibpath_var=no
11386 hardcode_direct_absolute=yes
11387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11391 export_dynamic_flag_spec='$wl-E'
11392 else
11393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11394 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11396 else
11397 ld_shlibs=no
11401 os2*)
11402 hardcode_libdir_flag_spec='-L$libdir'
11403 hardcode_minus_L=yes
11404 allow_undefined_flag=unsupported
11405 shrext_cmds=.dll
11406 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11407 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11408 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11409 $ECHO EXPORTS >> $output_objdir/$libname.def~
11410 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11412 emximp -o $lib $output_objdir/$libname.def'
11413 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11416 $ECHO EXPORTS >> $output_objdir/$libname.def~
11417 prefix_cmds="$SED"~
11418 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11419 prefix_cmds="$prefix_cmds -e 1d";
11421 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11422 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11424 emximp -o $lib $output_objdir/$libname.def'
11425 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11426 enable_shared_with_static_runtimes=yes
11429 osf3*)
11430 if test yes = "$GCC"; then
11431 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11432 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'
11433 else
11434 allow_undefined_flag=' -expect_unresolved \*'
11435 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'
11437 archive_cmds_need_lc='no'
11438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11439 hardcode_libdir_separator=:
11442 osf4* | osf5*) # as osf3* with the addition of -msym flag
11443 if test yes = "$GCC"; then
11444 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11445 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'
11446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11447 else
11448 allow_undefined_flag=' -expect_unresolved \*'
11449 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'
11450 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~
11451 $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'
11453 # Both c and cxx compiler support -rpath directly
11454 hardcode_libdir_flag_spec='-rpath $libdir'
11456 archive_cmds_need_lc='no'
11457 hardcode_libdir_separator=:
11460 solaris*)
11461 no_undefined_flag=' -z defs'
11462 if test yes = "$GCC"; then
11463 wlarc='$wl'
11464 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11466 $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'
11467 else
11468 case `$CC -V 2>&1` in
11469 *"Compilers 5.0"*)
11470 wlarc=''
11471 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11472 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11473 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11476 wlarc='$wl'
11477 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11479 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11481 esac
11483 hardcode_libdir_flag_spec='-R$libdir'
11484 hardcode_shlibpath_var=no
11485 case $host_os in
11486 solaris2.[0-5] | solaris2.[0-5].*) ;;
11488 # The compiler driver will combine and reorder linker options,
11489 # but understands '-z linker_flag'. GCC discards it without '$wl',
11490 # but is careful enough not to reorder.
11491 # Supported since Solaris 2.6 (maybe 2.5.1?)
11492 if test yes = "$GCC"; then
11493 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11494 else
11495 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11498 esac
11499 link_all_deplibs=yes
11502 sunos4*)
11503 if test sequent = "$host_vendor"; then
11504 # Use $CC to link under sequent, because it throws in some extra .o
11505 # files that make .init and .fini sections work.
11506 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11507 else
11508 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11510 hardcode_libdir_flag_spec='-L$libdir'
11511 hardcode_direct=yes
11512 hardcode_minus_L=yes
11513 hardcode_shlibpath_var=no
11516 sysv4)
11517 case $host_vendor in
11518 sni)
11519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11520 hardcode_direct=yes # is this really true???
11522 siemens)
11523 ## LD is ld it makes a PLAMLIB
11524 ## CC just makes a GrossModule.
11525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11526 reload_cmds='$CC -r -o $output$reload_objs'
11527 hardcode_direct=no
11529 motorola)
11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11533 esac
11534 runpath_var='LD_RUN_PATH'
11535 hardcode_shlibpath_var=no
11538 sysv4.3*)
11539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11540 hardcode_shlibpath_var=no
11541 export_dynamic_flag_spec='-Bexport'
11544 sysv4*MP*)
11545 if test -d /usr/nec; then
11546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11547 hardcode_shlibpath_var=no
11548 runpath_var=LD_RUN_PATH
11549 hardcode_runpath_var=yes
11550 ld_shlibs=yes
11554 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11555 no_undefined_flag='$wl-z,text'
11556 archive_cmds_need_lc=no
11557 hardcode_shlibpath_var=no
11558 runpath_var='LD_RUN_PATH'
11560 if test yes = "$GCC"; then
11561 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11562 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11563 else
11564 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11565 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 sysv5* | sco3.2v5* | sco5v6*)
11570 # Note: We CANNOT use -z defs as we might desire, because we do not
11571 # link with -lc, and that would cause any symbols used from libc to
11572 # always be unresolved, which means just about no library would
11573 # ever link correctly. If we're not using GNU ld we use -z text
11574 # though, which does catch some bad symbols but isn't as heavy-handed
11575 # as -z defs.
11576 no_undefined_flag='$wl-z,text'
11577 allow_undefined_flag='$wl-z,nodefs'
11578 archive_cmds_need_lc=no
11579 hardcode_shlibpath_var=no
11580 hardcode_libdir_flag_spec='$wl-R,$libdir'
11581 hardcode_libdir_separator=':'
11582 link_all_deplibs=yes
11583 export_dynamic_flag_spec='$wl-Bexport'
11584 runpath_var='LD_RUN_PATH'
11586 if test yes = "$GCC"; then
11587 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11588 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11589 else
11590 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11591 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595 uts4*)
11596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11597 hardcode_libdir_flag_spec='-L$libdir'
11598 hardcode_shlibpath_var=no
11602 ld_shlibs=no
11604 esac
11606 if test sni = "$host_vendor"; then
11607 case $host in
11608 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11609 export_dynamic_flag_spec='$wl-Blargedynsym'
11611 esac
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11616 $as_echo "$ld_shlibs" >&6; }
11617 test no = "$ld_shlibs" && can_build_shared=no
11619 with_gnu_ld=$with_gnu_ld
11636 # Do we need to explicitly link libc?
11638 case "x$archive_cmds_need_lc" in
11639 x|xyes)
11640 # Assume -lc should be added
11641 archive_cmds_need_lc=yes
11643 if test yes,yes = "$GCC,$enable_shared"; then
11644 case $archive_cmds in
11645 *'~'*)
11646 # FIXME: we may have to deal with multi-command sequences.
11648 '$CC '*)
11649 # Test whether the compiler implicitly links with -lc since on some
11650 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11651 # to ld, don't add -lc before -lgcc.
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11653 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11654 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 $RM conftest*
11658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11661 (eval $ac_compile) 2>&5
11662 ac_status=$?
11663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664 test $ac_status = 0; } 2>conftest.err; then
11665 soname=conftest
11666 lib=conftest
11667 libobjs=conftest.$ac_objext
11668 deplibs=
11669 wl=$lt_prog_compiler_wl
11670 pic_flag=$lt_prog_compiler_pic
11671 compiler_flags=-v
11672 linker_flags=-v
11673 verstring=
11674 output_objdir=.
11675 libname=conftest
11676 lt_save_allow_undefined_flag=$allow_undefined_flag
11677 allow_undefined_flag=
11678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11679 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11680 ac_status=$?
11681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682 test $ac_status = 0; }
11683 then
11684 lt_cv_archive_cmds_need_lc=no
11685 else
11686 lt_cv_archive_cmds_need_lc=yes
11688 allow_undefined_flag=$lt_save_allow_undefined_flag
11689 else
11690 cat conftest.err 1>&5
11692 $RM conftest*
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11696 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11697 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11699 esac
11702 esac
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11856 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11858 if test yes = "$GCC"; then
11859 case $host_os in
11860 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11861 *) lt_awk_arg='/^libraries:/' ;;
11862 esac
11863 case $host_os in
11864 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11865 *) lt_sed_strip_eq='s|=/|/|g' ;;
11866 esac
11867 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11868 case $lt_search_path_spec in
11869 *\;*)
11870 # if the path contains ";" then we assume it to be the separator
11871 # otherwise default to the standard path separator (i.e. ":") - it is
11872 # assumed that no part of a normal pathname contains ";" but that should
11873 # okay in the real world where ";" in dirpaths is itself problematic.
11874 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11877 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11879 esac
11880 # Ok, now we have the path, separated by spaces, we can step through it
11881 # and add multilib dir if necessary...
11882 lt_tmp_lt_search_path_spec=
11883 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11884 # ...but if some path component already ends with the multilib dir we assume
11885 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11886 case "$lt_multi_os_dir; $lt_search_path_spec " in
11887 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11888 lt_multi_os_dir=
11890 esac
11891 for lt_sys_path in $lt_search_path_spec; do
11892 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11894 elif test -n "$lt_multi_os_dir"; then
11895 test -d "$lt_sys_path" && \
11896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11898 done
11899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11900 BEGIN {RS = " "; FS = "/|\n";} {
11901 lt_foo = "";
11902 lt_count = 0;
11903 for (lt_i = NF; lt_i > 0; lt_i--) {
11904 if ($lt_i != "" && $lt_i != ".") {
11905 if ($lt_i == "..") {
11906 lt_count++;
11907 } else {
11908 if (lt_count == 0) {
11909 lt_foo = "/" $lt_i lt_foo;
11910 } else {
11911 lt_count--;
11916 if (lt_foo != "") { lt_freq[lt_foo]++; }
11917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11919 # AWK program above erroneously prepends '/' to C:/dos/paths
11920 # for these hosts.
11921 case $host_os in
11922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11923 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11924 esac
11925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11926 else
11927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11929 library_names_spec=
11930 libname_spec='lib$name'
11931 soname_spec=
11932 shrext_cmds=.so
11933 postinstall_cmds=
11934 postuninstall_cmds=
11935 finish_cmds=
11936 finish_eval=
11937 shlibpath_var=
11938 shlibpath_overrides_runpath=unknown
11939 version_type=none
11940 dynamic_linker="$host_os ld.so"
11941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11942 need_lib_prefix=unknown
11943 hardcode_into_libs=no
11945 # when you set need_version to no, make sure it does not cause -set_version
11946 # flags to be left without arguments
11947 need_version=unknown
11951 case $host_os in
11952 aix3*)
11953 version_type=linux # correct to gnu/linux during the next big refactor
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11955 shlibpath_var=LIBPATH
11957 # AIX 3 has no versioning support, so we append a major version to the name.
11958 soname_spec='$libname$release$shared_ext$major'
11961 aix[4-9]*)
11962 version_type=linux # correct to gnu/linux during the next big refactor
11963 need_lib_prefix=no
11964 need_version=no
11965 hardcode_into_libs=yes
11966 if test ia64 = "$host_cpu"; then
11967 # AIX 5 supports IA64
11968 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 else
11971 # With GCC up to 2.95.x, collect2 would create an import file
11972 # for dependence libraries. The import file would start with
11973 # the line '#! .'. This would cause the generated library to
11974 # depend on '.', always an invalid library. This was fixed in
11975 # development snapshots of GCC prior to 3.0.
11976 case $host_os in
11977 aix4 | aix4.[01] | aix4.[01].*)
11978 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11979 echo ' yes '
11980 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11982 else
11983 can_build_shared=no
11986 esac
11987 # Using Import Files as archive members, it is possible to support
11988 # filename-based versioning of shared library archives on AIX. While
11989 # this would work for both with and without runtime linking, it will
11990 # prevent static linking of such archives. So we do filename-based
11991 # shared library versioning with .so extension only, which is used
11992 # when both runtime linking and shared linking is enabled.
11993 # Unfortunately, runtime linking may impact performance, so we do
11994 # not want this to be the default eventually. Also, we use the
11995 # versioned .so libs for executables only if there is the -brtl
11996 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11997 # To allow for filename-based versioning support, we need to create
11998 # libNAME.so.V as an archive file, containing:
11999 # *) an Import File, referring to the versioned filename of the
12000 # archive as well as the shared archive member, telling the
12001 # bitwidth (32 or 64) of that shared object, and providing the
12002 # list of exported symbols of that shared object, eventually
12003 # decorated with the 'weak' keyword
12004 # *) the shared object with the F_LOADONLY flag set, to really avoid
12005 # it being seen by the linker.
12006 # At run time we better use the real file rather than another symlink,
12007 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12009 case $with_aix_soname,$aix_use_runtimelinking in
12010 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12011 # soname into executable. Probably we can add versioning support to
12012 # collect2, so additional links can be useful in future.
12013 aix,yes) # traditional libtool
12014 dynamic_linker='AIX unversionable lib.so'
12015 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12016 # instead of lib<name>.a to let people know that these are not
12017 # typical AIX shared libraries.
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020 aix,no) # traditional AIX only
12021 dynamic_linker='AIX lib.a(lib.so.V)'
12022 # We preserve .a as extension for shared libraries through AIX4.2
12023 # and later when we are not doing run time linking.
12024 library_names_spec='$libname$release.a $libname.a'
12025 soname_spec='$libname$release$shared_ext$major'
12027 svr4,*) # full svr4 only
12028 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12029 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12030 # We do not specify a path in Import Files, so LIBPATH fires.
12031 shlibpath_overrides_runpath=yes
12033 *,yes) # both, prefer svr4
12034 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12035 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12036 # unpreferred sharedlib libNAME.a needs extra handling
12037 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"'
12038 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"'
12039 # We do not specify a path in Import Files, so LIBPATH fires.
12040 shlibpath_overrides_runpath=yes
12042 *,no) # both, prefer aix
12043 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12044 library_names_spec='$libname$release.a $libname.a'
12045 soname_spec='$libname$release$shared_ext$major'
12046 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12047 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)'
12048 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"'
12050 esac
12051 shlibpath_var=LIBPATH
12055 amigaos*)
12056 case $host_cpu in
12057 powerpc)
12058 # Since July 2007 AmigaOS4 officially supports .so libraries.
12059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062 m68k)
12063 library_names_spec='$libname.ixlibrary $libname.a'
12064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12065 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'
12067 esac
12070 beos*)
12071 library_names_spec='$libname$shared_ext'
12072 dynamic_linker="$host_os ld.so"
12073 shlibpath_var=LIBRARY_PATH
12076 bsdi[45]*)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 need_version=no
12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12080 soname_spec='$libname$release$shared_ext$major'
12081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12085 # the default ld.so.conf also contains /usr/contrib/lib and
12086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12087 # libtool to hard-code these into programs
12090 cygwin* | mingw* | pw32* | cegcc*)
12091 version_type=windows
12092 shrext_cmds=.dll
12093 need_version=no
12094 need_lib_prefix=no
12096 case $GCC,$cc_basename in
12097 yes,*)
12098 # gcc
12099 library_names_spec='$libname.dll.a'
12100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12101 postinstall_cmds='base_file=`basename \$file`~
12102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12103 dldir=$destdir/`dirname \$dlpath`~
12104 test -d \$dldir || mkdir -p \$dldir~
12105 $install_prog $dir/$dlname \$dldir/$dlname~
12106 chmod a+x \$dldir/$dlname~
12107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12111 dlpath=$dir/\$dldll~
12112 $RM \$dlpath'
12113 shlibpath_overrides_runpath=yes
12115 case $host_os in
12116 cygwin*)
12117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12118 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12122 mingw* | cegcc*)
12123 # MinGW DLLs use traditional 'lib' prefix
12124 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12126 pw32*)
12127 # pw32 DLLs use 'pw' prefix rather than 'lib'
12128 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12130 esac
12131 dynamic_linker='Win32 ld.exe'
12134 *,cl*)
12135 # Native MSVC
12136 libname_spec='$name'
12137 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12138 library_names_spec='$libname.dll.lib'
12140 case $build_os in
12141 mingw*)
12142 sys_lib_search_path_spec=
12143 lt_save_ifs=$IFS
12144 IFS=';'
12145 for lt_path in $LIB
12147 IFS=$lt_save_ifs
12148 # Let DOS variable expansion print the short 8.3 style file name.
12149 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12150 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12151 done
12152 IFS=$lt_save_ifs
12153 # Convert to MSYS style.
12154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12156 cygwin*)
12157 # Convert to unix form, then to dos form, then back to unix form
12158 # but this time dos style (no spaces!) so that the unix form looks
12159 # like /cygdrive/c/PROGRA~1:/cygdr...
12160 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12161 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12162 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12165 sys_lib_search_path_spec=$LIB
12166 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12167 # It is most probably a Windows format PATH.
12168 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12169 else
12170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12172 # FIXME: find the short name or the path components, as spaces are
12173 # common. (e.g. "Program Files" -> "PROGRA~1")
12175 esac
12177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12178 postinstall_cmds='base_file=`basename \$file`~
12179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12180 dldir=$destdir/`dirname \$dlpath`~
12181 test -d \$dldir || mkdir -p \$dldir~
12182 $install_prog $dir/$dlname \$dldir/$dlname'
12183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12184 dlpath=$dir/\$dldll~
12185 $RM \$dlpath'
12186 shlibpath_overrides_runpath=yes
12187 dynamic_linker='Win32 link.exe'
12191 # Assume MSVC wrapper
12192 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12193 dynamic_linker='Win32 ld.exe'
12195 esac
12196 # FIXME: first we should search . and the directory the executable is in
12197 shlibpath_var=PATH
12200 darwin* | rhapsody*)
12201 dynamic_linker="$host_os dyld"
12202 version_type=darwin
12203 need_lib_prefix=no
12204 need_version=no
12205 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12206 soname_spec='$libname$release$major$shared_ext'
12207 shlibpath_overrides_runpath=yes
12208 shlibpath_var=DYLD_LIBRARY_PATH
12209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12212 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12215 dgux*)
12216 version_type=linux # correct to gnu/linux during the next big refactor
12217 need_lib_prefix=no
12218 need_version=no
12219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12220 soname_spec='$libname$release$shared_ext$major'
12221 shlibpath_var=LD_LIBRARY_PATH
12224 freebsd* | dragonfly*)
12225 # DragonFly does not have aout. When/if they implement a new
12226 # versioning mechanism, adjust this.
12227 if test -x /usr/bin/objformat; then
12228 objformat=`/usr/bin/objformat`
12229 else
12230 case $host_os in
12231 freebsd[23].*) objformat=aout ;;
12232 *) objformat=elf ;;
12233 esac
12235 version_type=freebsd-$objformat
12236 case $version_type in
12237 freebsd-elf*)
12238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12239 soname_spec='$libname$release$shared_ext$major'
12240 need_version=no
12241 need_lib_prefix=no
12243 freebsd-*)
12244 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12245 need_version=yes
12247 esac
12248 shlibpath_var=LD_LIBRARY_PATH
12249 case $host_os in
12250 freebsd2.*)
12251 shlibpath_overrides_runpath=yes
12253 freebsd3.[01]* | freebsdelf3.[01]*)
12254 shlibpath_overrides_runpath=yes
12255 hardcode_into_libs=yes
12257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12259 shlibpath_overrides_runpath=no
12260 hardcode_into_libs=yes
12262 *) # from 4.6 on, and DragonFly
12263 shlibpath_overrides_runpath=yes
12264 hardcode_into_libs=yes
12266 esac
12269 haiku*)
12270 version_type=linux # correct to gnu/linux during the next big refactor
12271 need_lib_prefix=no
12272 need_version=no
12273 dynamic_linker="$host_os runtime_loader"
12274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12275 soname_spec='$libname$release$shared_ext$major'
12276 shlibpath_var=LIBRARY_PATH
12277 shlibpath_overrides_runpath=no
12278 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12279 hardcode_into_libs=yes
12282 hpux9* | hpux10* | hpux11*)
12283 # Give a soname corresponding to the major version so that dld.sl refuses to
12284 # link against other versions.
12285 version_type=sunos
12286 need_lib_prefix=no
12287 need_version=no
12288 case $host_cpu in
12289 ia64*)
12290 shrext_cmds='.so'
12291 hardcode_into_libs=yes
12292 dynamic_linker="$host_os dld.so"
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12296 soname_spec='$libname$release$shared_ext$major'
12297 if test 32 = "$HPUX_IA64_MODE"; then
12298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12299 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12300 else
12301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12302 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12305 hppa*64*)
12306 shrext_cmds='.sl'
12307 hardcode_into_libs=yes
12308 dynamic_linker="$host_os dld.sl"
12309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12312 soname_spec='$libname$release$shared_ext$major'
12313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12317 shrext_cmds='.sl'
12318 dynamic_linker="$host_os dld.sl"
12319 shlibpath_var=SHLIB_PATH
12320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12322 soname_spec='$libname$release$shared_ext$major'
12324 esac
12325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12326 postinstall_cmds='chmod 555 $lib'
12327 # or fails outright, so override atomically:
12328 install_override_mode=555
12331 interix[3-9]*)
12332 version_type=linux # correct to gnu/linux during the next big refactor
12333 need_lib_prefix=no
12334 need_version=no
12335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336 soname_spec='$libname$release$shared_ext$major'
12337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 shlibpath_overrides_runpath=no
12340 hardcode_into_libs=yes
12343 irix5* | irix6* | nonstopux*)
12344 case $host_os in
12345 nonstopux*) version_type=nonstopux ;;
12347 if test yes = "$lt_cv_prog_gnu_ld"; then
12348 version_type=linux # correct to gnu/linux during the next big refactor
12349 else
12350 version_type=irix
12351 fi ;;
12352 esac
12353 need_lib_prefix=no
12354 need_version=no
12355 soname_spec='$libname$release$shared_ext$major'
12356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12357 case $host_os in
12358 irix5* | nonstopux*)
12359 libsuff= shlibsuff=
12362 case $LD in # libtool.m4 will add one of these switches to LD
12363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12364 libsuff= shlibsuff= libmagic=32-bit;;
12365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12366 libsuff=32 shlibsuff=N32 libmagic=N32;;
12367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12369 *) libsuff= shlibsuff= libmagic=never-match;;
12370 esac
12372 esac
12373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12374 shlibpath_overrides_runpath=no
12375 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12376 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12377 hardcode_into_libs=yes
12380 # No shared lib support for Linux oldld, aout, or coff.
12381 linux*oldld* | linux*aout* | linux*coff*)
12382 dynamic_linker=no
12385 linux*android*)
12386 version_type=none # Android doesn't support versioned libraries.
12387 need_lib_prefix=no
12388 need_version=no
12389 library_names_spec='$libname$release$shared_ext'
12390 soname_spec='$libname$release$shared_ext'
12391 finish_cmds=
12392 shlibpath_var=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath=yes
12395 # This implies no fast_install, which is unacceptable.
12396 # Some rework will be needed to allow for fast_install
12397 # before this can be enabled.
12398 hardcode_into_libs=yes
12400 dynamic_linker='Android linker'
12401 # Don't embed -rpath directories since the linker doesn't support them.
12402 hardcode_libdir_flag_spec='-L$libdir'
12405 # This must be glibc/ELF.
12406 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12407 version_type=linux # correct to gnu/linux during the next big refactor
12408 need_lib_prefix=no
12409 need_version=no
12410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12411 soname_spec='$libname$release$shared_ext$major'
12412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 shlibpath_overrides_runpath=no
12416 # Some binutils ld are patched to set DT_RUNPATH
12417 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 lt_cv_shlibpath_overrides_runpath=no
12421 save_LDFLAGS=$LDFLAGS
12422 save_libdir=$libdir
12423 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12424 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12429 main ()
12433 return 0;
12435 _ACEOF
12436 if ac_fn_c_try_link "$LINENO"; then :
12437 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12438 lt_cv_shlibpath_overrides_runpath=yes
12441 rm -f core conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12443 LDFLAGS=$save_LDFLAGS
12444 libdir=$save_libdir
12448 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12450 # This implies no fast_install, which is unacceptable.
12451 # Some rework will be needed to allow for fast_install
12452 # before this can be enabled.
12453 hardcode_into_libs=yes
12455 # Ideally, we could use ldconfig to report *all* directores which are
12456 # searched for libraries, however this is still not possible. Aside from not
12457 # being certain /sbin/ldconfig is available, command
12458 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12459 # even though it is searched at run-time. Try to do the best guess by
12460 # appending ld.so.conf contents (and includes) to the search path.
12461 if test -f /etc/ld.so.conf; then
12462 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' ' '`
12463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12466 # We used to test for /lib/ld.so.1 and disable shared libraries on
12467 # powerpc, because MkLinux only supported shared libraries with the
12468 # GNU dynamic linker. Since this was broken with cross compilers,
12469 # most powerpc-linux boxes support dynamic linking these days and
12470 # people can always --disable-shared, the test was removed, and we
12471 # assume the GNU/Linux dynamic linker is in use.
12472 dynamic_linker='GNU/Linux ld.so'
12475 netbsd*)
12476 version_type=sunos
12477 need_lib_prefix=no
12478 need_version=no
12479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12482 dynamic_linker='NetBSD (a.out) ld.so'
12483 else
12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485 soname_spec='$libname$release$shared_ext$major'
12486 dynamic_linker='NetBSD ld.elf_so'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=yes
12490 hardcode_into_libs=yes
12493 newsos6)
12494 version_type=linux # correct to gnu/linux during the next big refactor
12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12496 shlibpath_var=LD_LIBRARY_PATH
12497 shlibpath_overrides_runpath=yes
12500 *nto* | *qnx*)
12501 version_type=qnx
12502 need_lib_prefix=no
12503 need_version=no
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 soname_spec='$libname$release$shared_ext$major'
12506 shlibpath_var=LD_LIBRARY_PATH
12507 shlibpath_overrides_runpath=no
12508 hardcode_into_libs=yes
12509 dynamic_linker='ldqnx.so'
12512 openbsd* | bitrig*)
12513 version_type=sunos
12514 sys_lib_dlsearch_path_spec=/usr/lib
12515 need_lib_prefix=no
12516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12517 need_version=no
12518 else
12519 need_version=yes
12521 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=yes
12527 os2*)
12528 libname_spec='$name'
12529 version_type=windows
12530 shrext_cmds=.dll
12531 need_version=no
12532 need_lib_prefix=no
12533 # OS/2 can only load a DLL with a base name of 8 characters or less.
12534 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12535 v=$($ECHO $release$versuffix | tr -d .-);
12536 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12537 $ECHO $n$v`$shared_ext'
12538 library_names_spec='${libname}_dll.$libext'
12539 dynamic_linker='OS/2 ld.exe'
12540 shlibpath_var=BEGINLIBPATH
12541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12543 postinstall_cmds='base_file=`basename \$file`~
12544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12545 dldir=$destdir/`dirname \$dlpath`~
12546 test -d \$dldir || mkdir -p \$dldir~
12547 $install_prog $dir/$dlname \$dldir/$dlname~
12548 chmod a+x \$dldir/$dlname~
12549 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12550 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12552 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12553 dlpath=$dir/\$dldll~
12554 $RM \$dlpath'
12557 osf3* | osf4* | osf5*)
12558 version_type=osf
12559 need_lib_prefix=no
12560 need_version=no
12561 soname_spec='$libname$release$shared_ext$major'
12562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12568 rdos*)
12569 dynamic_linker=no
12572 solaris*)
12573 version_type=linux # correct to gnu/linux during the next big refactor
12574 need_lib_prefix=no
12575 need_version=no
12576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12577 soname_spec='$libname$release$shared_ext$major'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=yes
12580 hardcode_into_libs=yes
12581 # ldd complains unless libraries are executable
12582 postinstall_cmds='chmod +x $lib'
12585 sunos4*)
12586 version_type=sunos
12587 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=yes
12591 if test yes = "$with_gnu_ld"; then
12592 need_lib_prefix=no
12594 need_version=yes
12597 sysv4 | sysv4.3*)
12598 version_type=linux # correct to gnu/linux during the next big refactor
12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 soname_spec='$libname$release$shared_ext$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 case $host_vendor in
12603 sni)
12604 shlibpath_overrides_runpath=no
12605 need_lib_prefix=no
12606 runpath_var=LD_RUN_PATH
12608 siemens)
12609 need_lib_prefix=no
12611 motorola)
12612 need_lib_prefix=no
12613 need_version=no
12614 shlibpath_overrides_runpath=no
12615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12617 esac
12620 sysv4*MP*)
12621 if test -d /usr/nec; then
12622 version_type=linux # correct to gnu/linux during the next big refactor
12623 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12624 soname_spec='$libname$shared_ext.$major'
12625 shlibpath_var=LD_LIBRARY_PATH
12629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12630 version_type=sco
12631 need_lib_prefix=no
12632 need_version=no
12633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12634 soname_spec='$libname$release$shared_ext$major'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 shlibpath_overrides_runpath=yes
12637 hardcode_into_libs=yes
12638 if test yes = "$with_gnu_ld"; then
12639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12640 else
12641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12642 case $host_os in
12643 sco3.2v5*)
12644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12646 esac
12648 sys_lib_dlsearch_path_spec='/usr/lib'
12651 tpf*)
12652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12653 version_type=linux # correct to gnu/linux during the next big refactor
12654 need_lib_prefix=no
12655 need_version=no
12656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 shlibpath_overrides_runpath=no
12659 hardcode_into_libs=yes
12662 uts4*)
12663 version_type=linux # correct to gnu/linux during the next big refactor
12664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12665 soname_spec='$libname$release$shared_ext$major'
12666 shlibpath_var=LD_LIBRARY_PATH
12670 dynamic_linker=no
12672 esac
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12674 $as_echo "$dynamic_linker" >&6; }
12675 test no = "$dynamic_linker" && can_build_shared=no
12677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12678 if test yes = "$GCC"; then
12679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12682 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12683 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12686 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12687 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12690 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12691 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12693 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12694 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12696 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12697 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12797 hardcode_action=
12798 if test -n "$hardcode_libdir_flag_spec" ||
12799 test -n "$runpath_var" ||
12800 test yes = "$hardcode_automatic"; then
12802 # We can hardcode non-existent directories.
12803 if test no != "$hardcode_direct" &&
12804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12805 # have to relink, otherwise we might link with an installed library
12806 # when we should be linking with a yet-to-be-installed one
12807 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12808 test no != "$hardcode_minus_L"; then
12809 # Linking always hardcodes the temporary library directory.
12810 hardcode_action=relink
12811 else
12812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12813 hardcode_action=immediate
12815 else
12816 # We cannot hardcode anything, or else we can only hardcode existing
12817 # directories.
12818 hardcode_action=unsupported
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12821 $as_echo "$hardcode_action" >&6; }
12823 if test relink = "$hardcode_action" ||
12824 test yes = "$inherit_rpath"; then
12825 # Fast installation is not supported
12826 enable_fast_install=no
12827 elif test yes = "$shlibpath_overrides_runpath" ||
12828 test no = "$enable_shared"; then
12829 # Fast installation is not necessary
12830 enable_fast_install=needless
12838 if test yes != "$enable_dlopen"; then
12839 enable_dlopen=unknown
12840 enable_dlopen_self=unknown
12841 enable_dlopen_self_static=unknown
12842 else
12843 lt_cv_dlopen=no
12844 lt_cv_dlopen_libs=
12846 case $host_os in
12847 beos*)
12848 lt_cv_dlopen=load_add_on
12849 lt_cv_dlopen_libs=
12850 lt_cv_dlopen_self=yes
12853 mingw* | pw32* | cegcc*)
12854 lt_cv_dlopen=LoadLibrary
12855 lt_cv_dlopen_libs=
12858 cygwin*)
12859 lt_cv_dlopen=dlopen
12860 lt_cv_dlopen_libs=
12863 darwin*)
12864 # if libdl is installed we need to link against it
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12866 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12867 if ${ac_cv_lib_dl_dlopen+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-ldl $LIBS"
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char dlopen ();
12883 main ()
12885 return dlopen ();
12887 return 0;
12889 _ACEOF
12890 if ac_fn_c_try_link "$LINENO"; then :
12891 ac_cv_lib_dl_dlopen=yes
12892 else
12893 ac_cv_lib_dl_dlopen=no
12895 rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 LIBS=$ac_check_lib_save_LIBS
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12900 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12901 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12902 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12903 else
12905 lt_cv_dlopen=dyld
12906 lt_cv_dlopen_libs=
12907 lt_cv_dlopen_self=yes
12913 tpf*)
12914 # Don't try to run any link tests for TPF. We know it's impossible
12915 # because TPF is a cross-compiler, and we know how we open DSOs.
12916 lt_cv_dlopen=dlopen
12917 lt_cv_dlopen_libs=
12918 lt_cv_dlopen_self=no
12922 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12923 if test "x$ac_cv_func_shl_load" = xyes; then :
12924 lt_cv_dlopen=shl_load
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12928 if ${ac_cv_lib_dld_shl_load+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-ldld $LIBS"
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 char shl_load ();
12944 main ()
12946 return shl_load ();
12948 return 0;
12950 _ACEOF
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 ac_cv_lib_dld_shl_load=yes
12953 else
12954 ac_cv_lib_dld_shl_load=no
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12962 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12963 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12964 else
12965 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12966 if test "x$ac_cv_func_dlopen" = xyes; then :
12967 lt_cv_dlopen=dlopen
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12971 if ${ac_cv_lib_dl_dlopen+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 ac_check_lib_save_LIBS=$LIBS
12975 LIBS="-ldl $LIBS"
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982 #ifdef __cplusplus
12983 extern "C"
12984 #endif
12985 char dlopen ();
12987 main ()
12989 return dlopen ();
12991 return 0;
12993 _ACEOF
12994 if ac_fn_c_try_link "$LINENO"; then :
12995 ac_cv_lib_dl_dlopen=yes
12996 else
12997 ac_cv_lib_dl_dlopen=no
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001 LIBS=$ac_check_lib_save_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13005 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13006 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13007 else
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13010 if ${ac_cv_lib_svld_dlopen+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lsvld $LIBS"
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char dlopen ();
13026 main ()
13028 return dlopen ();
13030 return 0;
13032 _ACEOF
13033 if ac_fn_c_try_link "$LINENO"; then :
13034 ac_cv_lib_svld_dlopen=yes
13035 else
13036 ac_cv_lib_svld_dlopen=no
13038 rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 LIBS=$ac_check_lib_save_LIBS
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13044 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13045 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13049 if ${ac_cv_lib_dld_dld_link+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 ac_check_lib_save_LIBS=$LIBS
13053 LIBS="-ldld $LIBS"
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13060 #ifdef __cplusplus
13061 extern "C"
13062 #endif
13063 char dld_link ();
13065 main ()
13067 return dld_link ();
13069 return 0;
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073 ac_cv_lib_dld_dld_link=yes
13074 else
13075 ac_cv_lib_dld_dld_link=no
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13083 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13084 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13103 esac
13105 if test no = "$lt_cv_dlopen"; then
13106 enable_dlopen=no
13107 else
13108 enable_dlopen=yes
13111 case $lt_cv_dlopen in
13112 dlopen)
13113 save_CPPFLAGS=$CPPFLAGS
13114 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13116 save_LDFLAGS=$LDFLAGS
13117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13119 save_LIBS=$LIBS
13120 LIBS="$lt_cv_dlopen_libs $LIBS"
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13124 if ${lt_cv_dlopen_self+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test yes = "$cross_compiling"; then :
13128 lt_cv_dlopen_self=cross
13129 else
13130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13131 lt_status=$lt_dlunknown
13132 cat > conftest.$ac_ext <<_LT_EOF
13133 #line $LINENO "configure"
13134 #include "confdefs.h"
13136 #if HAVE_DLFCN_H
13137 #include <dlfcn.h>
13138 #endif
13140 #include <stdio.h>
13142 #ifdef RTLD_GLOBAL
13143 # define LT_DLGLOBAL RTLD_GLOBAL
13144 #else
13145 # ifdef DL_GLOBAL
13146 # define LT_DLGLOBAL DL_GLOBAL
13147 # else
13148 # define LT_DLGLOBAL 0
13149 # endif
13150 #endif
13152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13153 find out it does not work in some platform. */
13154 #ifndef LT_DLLAZY_OR_NOW
13155 # ifdef RTLD_LAZY
13156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13157 # else
13158 # ifdef DL_LAZY
13159 # define LT_DLLAZY_OR_NOW DL_LAZY
13160 # else
13161 # ifdef RTLD_NOW
13162 # define LT_DLLAZY_OR_NOW RTLD_NOW
13163 # else
13164 # ifdef DL_NOW
13165 # define LT_DLLAZY_OR_NOW DL_NOW
13166 # else
13167 # define LT_DLLAZY_OR_NOW 0
13168 # endif
13169 # endif
13170 # endif
13171 # endif
13172 #endif
13174 /* When -fvisibility=hidden is used, assume the code has been annotated
13175 correspondingly for the symbols needed. */
13176 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13177 int fnord () __attribute__((visibility("default")));
13178 #endif
13180 int fnord () { return 42; }
13181 int main ()
13183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13184 int status = $lt_dlunknown;
13186 if (self)
13188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13189 else
13191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13192 else puts (dlerror ());
13194 /* dlclose (self); */
13196 else
13197 puts (dlerror ());
13199 return status;
13201 _LT_EOF
13202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13203 (eval $ac_link) 2>&5
13204 ac_status=$?
13205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13206 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13207 (./conftest; exit; ) >&5 2>/dev/null
13208 lt_status=$?
13209 case x$lt_status in
13210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13213 esac
13214 else :
13215 # compilation failed
13216 lt_cv_dlopen_self=no
13219 rm -fr conftest*
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13224 $as_echo "$lt_cv_dlopen_self" >&6; }
13226 if test yes = "$lt_cv_dlopen_self"; then
13227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13230 if ${lt_cv_dlopen_self_static+:} false; then :
13231 $as_echo_n "(cached) " >&6
13232 else
13233 if test yes = "$cross_compiling"; then :
13234 lt_cv_dlopen_self_static=cross
13235 else
13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13237 lt_status=$lt_dlunknown
13238 cat > conftest.$ac_ext <<_LT_EOF
13239 #line $LINENO "configure"
13240 #include "confdefs.h"
13242 #if HAVE_DLFCN_H
13243 #include <dlfcn.h>
13244 #endif
13246 #include <stdio.h>
13248 #ifdef RTLD_GLOBAL
13249 # define LT_DLGLOBAL RTLD_GLOBAL
13250 #else
13251 # ifdef DL_GLOBAL
13252 # define LT_DLGLOBAL DL_GLOBAL
13253 # else
13254 # define LT_DLGLOBAL 0
13255 # endif
13256 #endif
13258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13259 find out it does not work in some platform. */
13260 #ifndef LT_DLLAZY_OR_NOW
13261 # ifdef RTLD_LAZY
13262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13263 # else
13264 # ifdef DL_LAZY
13265 # define LT_DLLAZY_OR_NOW DL_LAZY
13266 # else
13267 # ifdef RTLD_NOW
13268 # define LT_DLLAZY_OR_NOW RTLD_NOW
13269 # else
13270 # ifdef DL_NOW
13271 # define LT_DLLAZY_OR_NOW DL_NOW
13272 # else
13273 # define LT_DLLAZY_OR_NOW 0
13274 # endif
13275 # endif
13276 # endif
13277 # endif
13278 #endif
13280 /* When -fvisibility=hidden is used, assume the code has been annotated
13281 correspondingly for the symbols needed. */
13282 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13283 int fnord () __attribute__((visibility("default")));
13284 #endif
13286 int fnord () { return 42; }
13287 int main ()
13289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13290 int status = $lt_dlunknown;
13292 if (self)
13294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13295 else
13297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13298 else puts (dlerror ());
13300 /* dlclose (self); */
13302 else
13303 puts (dlerror ());
13305 return status;
13307 _LT_EOF
13308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13309 (eval $ac_link) 2>&5
13310 ac_status=$?
13311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13312 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13313 (./conftest; exit; ) >&5 2>/dev/null
13314 lt_status=$?
13315 case x$lt_status in
13316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13319 esac
13320 else :
13321 # compilation failed
13322 lt_cv_dlopen_self_static=no
13325 rm -fr conftest*
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13333 CPPFLAGS=$save_CPPFLAGS
13334 LDFLAGS=$save_LDFLAGS
13335 LIBS=$save_LIBS
13337 esac
13339 case $lt_cv_dlopen_self in
13340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13341 *) enable_dlopen_self=unknown ;;
13342 esac
13344 case $lt_cv_dlopen_self_static in
13345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13346 *) enable_dlopen_self_static=unknown ;;
13347 esac
13366 striplib=
13367 old_striplib=
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13374 $as_echo "yes" >&6; }
13375 else
13376 # FIXME - insert some real tests, host_os isn't really good enough
13377 case $host_os in
13378 darwin*)
13379 if test -n "$STRIP"; then
13380 striplib="$STRIP -x"
13381 old_striplib="$STRIP -S"
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13383 $as_echo "yes" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13393 esac
13407 # Report what library types will actually be built
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13411 $as_echo "$can_build_shared" >&6; }
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13414 $as_echo_n "checking whether to build shared libraries... " >&6; }
13415 test no = "$can_build_shared" && enable_shared=no
13417 # On AIX, shared libraries and static libraries use the same namespace, and
13418 # are all built from PIC.
13419 case $host_os in
13420 aix3*)
13421 test yes = "$enable_shared" && enable_static=no
13422 if test -n "$RANLIB"; then
13423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13424 postinstall_cmds='$RANLIB $lib'
13428 aix[4-9]*)
13429 if test ia64 != "$host_cpu"; then
13430 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13431 yes,aix,yes) ;; # shared object as lib.so file only
13432 yes,svr4,*) ;; # shared object as lib.so archive member only
13433 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13434 esac
13437 esac
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13439 $as_echo "$enable_shared" >&6; }
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13442 $as_echo_n "checking whether to build static libraries... " >&6; }
13443 # Make sure either enable_shared or enable_static is yes.
13444 test yes = "$enable_shared" || enable_static=yes
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13446 $as_echo "$enable_static" >&6; }
13452 ac_ext=c
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13458 CC=$lt_save_CC
13474 ac_config_commands="$ac_config_commands libtool"
13479 # Only expand once:
13482 # Check whether --enable-largefile was given.
13483 if test "${enable_largefile+set}" = set; then :
13484 enableval=$enable_largefile;
13487 if test "$enable_largefile" != no; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13490 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13491 if ${ac_cv_sys_largefile_CC+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 ac_cv_sys_largefile_CC=no
13495 if test "$GCC" != yes; then
13496 ac_save_CC=$CC
13497 while :; do
13498 # IRIX 6.2 and later do not support large files by default,
13499 # so use the C compiler's -n32 option if that helps.
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <sys/types.h>
13503 /* Check that off_t can represent 2**63 - 1 correctly.
13504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13505 since some C++ compilers masquerading as C compilers
13506 incorrectly reject 9223372036854775807. */
13507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13509 && LARGE_OFF_T % 2147483647 == 1)
13510 ? 1 : -1];
13512 main ()
13516 return 0;
13518 _ACEOF
13519 if ac_fn_c_try_compile "$LINENO"; then :
13520 break
13522 rm -f core conftest.err conftest.$ac_objext
13523 CC="$CC -n32"
13524 if ac_fn_c_try_compile "$LINENO"; then :
13525 ac_cv_sys_largefile_CC=' -n32'; break
13527 rm -f core conftest.err conftest.$ac_objext
13528 break
13529 done
13530 CC=$ac_save_CC
13531 rm -f conftest.$ac_ext
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13535 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13536 if test "$ac_cv_sys_largefile_CC" != no; then
13537 CC=$CC$ac_cv_sys_largefile_CC
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13541 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13542 if ${ac_cv_sys_file_offset_bits+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 while :; do
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548 #include <sys/types.h>
13549 /* Check that off_t can represent 2**63 - 1 correctly.
13550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13551 since some C++ compilers masquerading as C compilers
13552 incorrectly reject 9223372036854775807. */
13553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13555 && LARGE_OFF_T % 2147483647 == 1)
13556 ? 1 : -1];
13558 main ()
13562 return 0;
13564 _ACEOF
13565 if ac_fn_c_try_compile "$LINENO"; then :
13566 ac_cv_sys_file_offset_bits=no; break
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 #define _FILE_OFFSET_BITS 64
13572 #include <sys/types.h>
13573 /* Check that off_t can represent 2**63 - 1 correctly.
13574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13575 since some C++ compilers masquerading as C compilers
13576 incorrectly reject 9223372036854775807. */
13577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13579 && LARGE_OFF_T % 2147483647 == 1)
13580 ? 1 : -1];
13582 main ()
13586 return 0;
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590 ac_cv_sys_file_offset_bits=64; break
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 ac_cv_sys_file_offset_bits=unknown
13594 break
13595 done
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13598 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13599 case $ac_cv_sys_file_offset_bits in #(
13600 no | unknown) ;;
13602 cat >>confdefs.h <<_ACEOF
13603 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13604 _ACEOF
13606 esac
13607 rm -rf conftest*
13608 if test $ac_cv_sys_file_offset_bits = unknown; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13610 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13611 if ${ac_cv_sys_large_files+:} false; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 while :; do
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617 #include <sys/types.h>
13618 /* Check that off_t can represent 2**63 - 1 correctly.
13619 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13620 since some C++ compilers masquerading as C compilers
13621 incorrectly reject 9223372036854775807. */
13622 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13623 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13624 && LARGE_OFF_T % 2147483647 == 1)
13625 ? 1 : -1];
13627 main ()
13631 return 0;
13633 _ACEOF
13634 if ac_fn_c_try_compile "$LINENO"; then :
13635 ac_cv_sys_large_files=no; break
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640 #define _LARGE_FILES 1
13641 #include <sys/types.h>
13642 /* Check that off_t can represent 2**63 - 1 correctly.
13643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13644 since some C++ compilers masquerading as C compilers
13645 incorrectly reject 9223372036854775807. */
13646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13648 && LARGE_OFF_T % 2147483647 == 1)
13649 ? 1 : -1];
13651 main ()
13655 return 0;
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 ac_cv_sys_large_files=1; break
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662 ac_cv_sys_large_files=unknown
13663 break
13664 done
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13667 $as_echo "$ac_cv_sys_large_files" >&6; }
13668 case $ac_cv_sys_large_files in #(
13669 no | unknown) ;;
13671 cat >>confdefs.h <<_ACEOF
13672 #define _LARGE_FILES $ac_cv_sys_large_files
13673 _ACEOF
13675 esac
13676 rm -rf conftest*
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13683 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13684 if ${ac_cv_sys_largefile_source+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 while :; do
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 #include <sys/types.h> /* for off_t */
13691 #include <stdio.h>
13693 main ()
13695 int (*fp) (FILE *, off_t, int) = fseeko;
13696 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13698 return 0;
13700 _ACEOF
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 ac_cv_sys_largefile_source=no; break
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 #define _LARGEFILE_SOURCE 1
13709 #include <sys/types.h> /* for off_t */
13710 #include <stdio.h>
13712 main ()
13714 int (*fp) (FILE *, off_t, int) = fseeko;
13715 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13717 return 0;
13719 _ACEOF
13720 if ac_fn_c_try_link "$LINENO"; then :
13721 ac_cv_sys_largefile_source=1; break
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 ac_cv_sys_largefile_source=unknown
13726 break
13727 done
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13730 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13731 case $ac_cv_sys_largefile_source in #(
13732 no | unknown) ;;
13734 cat >>confdefs.h <<_ACEOF
13735 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13736 _ACEOF
13738 esac
13739 rm -rf conftest*
13741 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13742 # in glibc 2.1.3, but that breaks too many other things.
13743 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13744 if test $ac_cv_sys_largefile_source != unknown; then
13746 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13750 ac_header_dirent=no
13751 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13752 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13754 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13755 if eval \${$as_ac_Header+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760 #include <sys/types.h>
13761 #include <$ac_hdr>
13764 main ()
13766 if ((DIR *) 0)
13767 return 0;
13769 return 0;
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 eval "$as_ac_Header=yes"
13774 else
13775 eval "$as_ac_Header=no"
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 eval ac_res=\$$as_ac_Header
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13783 cat >>confdefs.h <<_ACEOF
13784 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13785 _ACEOF
13787 ac_header_dirent=$ac_hdr; break
13790 done
13791 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13792 if test $ac_header_dirent = dirent.h; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13794 $as_echo_n "checking for library containing opendir... " >&6; }
13795 if ${ac_cv_search_opendir+:} false; then :
13796 $as_echo_n "(cached) " >&6
13797 else
13798 ac_func_search_save_LIBS=$LIBS
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13802 /* Override any GCC internal prototype to avoid an error.
13803 Use char because int might match the return type of a GCC
13804 builtin and then its argument prototype would still apply. */
13805 #ifdef __cplusplus
13806 extern "C"
13807 #endif
13808 char opendir ();
13810 main ()
13812 return opendir ();
13814 return 0;
13816 _ACEOF
13817 for ac_lib in '' dir; do
13818 if test -z "$ac_lib"; then
13819 ac_res="none required"
13820 else
13821 ac_res=-l$ac_lib
13822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_search_opendir=$ac_res
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext
13829 if ${ac_cv_search_opendir+:} false; then :
13830 break
13832 done
13833 if ${ac_cv_search_opendir+:} false; then :
13835 else
13836 ac_cv_search_opendir=no
13838 rm conftest.$ac_ext
13839 LIBS=$ac_func_search_save_LIBS
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13842 $as_echo "$ac_cv_search_opendir" >&6; }
13843 ac_res=$ac_cv_search_opendir
13844 if test "$ac_res" != no; then :
13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13851 $as_echo_n "checking for library containing opendir... " >&6; }
13852 if ${ac_cv_search_opendir+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 ac_func_search_save_LIBS=$LIBS
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13859 /* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
13862 #ifdef __cplusplus
13863 extern "C"
13864 #endif
13865 char opendir ();
13867 main ()
13869 return opendir ();
13871 return 0;
13873 _ACEOF
13874 for ac_lib in '' x; do
13875 if test -z "$ac_lib"; then
13876 ac_res="none required"
13877 else
13878 ac_res=-l$ac_lib
13879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13881 if ac_fn_c_try_link "$LINENO"; then :
13882 ac_cv_search_opendir=$ac_res
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext
13886 if ${ac_cv_search_opendir+:} false; then :
13887 break
13889 done
13890 if ${ac_cv_search_opendir+:} false; then :
13892 else
13893 ac_cv_search_opendir=no
13895 rm conftest.$ac_ext
13896 LIBS=$ac_func_search_save_LIBS
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13899 $as_echo "$ac_cv_search_opendir" >&6; }
13900 ac_res=$ac_cv_search_opendir
13901 if test "$ac_res" != no; then :
13902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13909 $as_echo_n "checking for ANSI C header files... " >&6; }
13910 if ${ac_cv_header_stdc+:} false; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 #include <stdlib.h>
13916 #include <stdarg.h>
13917 #include <string.h>
13918 #include <float.h>
13921 main ()
13925 return 0;
13927 _ACEOF
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929 ac_cv_header_stdc=yes
13930 else
13931 ac_cv_header_stdc=no
13933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 if test $ac_cv_header_stdc = yes; then
13936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939 #include <string.h>
13941 _ACEOF
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 $EGREP "memchr" >/dev/null 2>&1; then :
13945 else
13946 ac_cv_header_stdc=no
13948 rm -f conftest*
13952 if test $ac_cv_header_stdc = yes; then
13953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 #include <stdlib.h>
13958 _ACEOF
13959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13960 $EGREP "free" >/dev/null 2>&1; then :
13962 else
13963 ac_cv_header_stdc=no
13965 rm -f conftest*
13969 if test $ac_cv_header_stdc = yes; then
13970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13971 if test "$cross_compiling" = yes; then :
13973 else
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976 #include <ctype.h>
13977 #include <stdlib.h>
13978 #if ((' ' & 0x0FF) == 0x020)
13979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13981 #else
13982 # define ISLOWER(c) \
13983 (('a' <= (c) && (c) <= 'i') \
13984 || ('j' <= (c) && (c) <= 'r') \
13985 || ('s' <= (c) && (c) <= 'z'))
13986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13987 #endif
13989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13991 main ()
13993 int i;
13994 for (i = 0; i < 256; i++)
13995 if (XOR (islower (i), ISLOWER (i))
13996 || toupper (i) != TOUPPER (i))
13997 return 2;
13998 return 0;
14000 _ACEOF
14001 if ac_fn_c_try_run "$LINENO"; then :
14003 else
14004 ac_cv_header_stdc=no
14006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14007 conftest.$ac_objext conftest.beam conftest.$ac_ext
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14013 $as_echo "$ac_cv_header_stdc" >&6; }
14014 if test $ac_cv_header_stdc = yes; then
14016 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
14021 $as_echo_n "checking whether closedir returns void... " >&6; }
14022 if ${ac_cv_func_closedir_void+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 if test "$cross_compiling" = yes; then :
14026 ac_cv_func_closedir_void=yes
14027 else
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 $ac_includes_default
14031 #include <$ac_header_dirent>
14032 #ifndef __cplusplus
14033 int closedir ();
14034 #endif
14037 main ()
14039 return closedir (opendir (".")) != 0;
14041 return 0;
14043 _ACEOF
14044 if ac_fn_c_try_run "$LINENO"; then :
14045 ac_cv_func_closedir_void=no
14046 else
14047 ac_cv_func_closedir_void=yes
14049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14050 conftest.$ac_objext conftest.beam conftest.$ac_ext
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
14055 $as_echo "$ac_cv_func_closedir_void" >&6; }
14056 if test $ac_cv_func_closedir_void = yes; then
14058 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
14062 for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
14063 do :
14064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14065 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14067 cat >>confdefs.h <<_ACEOF
14068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069 _ACEOF
14073 done
14075 for ac_func in putenv
14076 do :
14077 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
14078 if test "x$ac_cv_func_putenv" = xyes; then :
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_PUTENV 1
14081 _ACEOF
14084 done
14086 for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
14087 do :
14088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14090 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14091 cat >>confdefs.h <<_ACEOF
14092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 _ACEOF
14096 done
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14099 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14100 if ${ac_cv_c_const+:} false; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14107 main ()
14110 #ifndef __cplusplus
14111 /* Ultrix mips cc rejects this sort of thing. */
14112 typedef int charset[2];
14113 const charset cs = { 0, 0 };
14114 /* SunOS 4.1.1 cc rejects this. */
14115 char const *const *pcpcc;
14116 char **ppc;
14117 /* NEC SVR4.0.2 mips cc rejects this. */
14118 struct point {int x, y;};
14119 static struct point const zero = {0,0};
14120 /* AIX XL C 1.02.0.0 rejects this.
14121 It does not let you subtract one const X* pointer from another in
14122 an arm of an if-expression whose if-part is not a constant
14123 expression */
14124 const char *g = "string";
14125 pcpcc = &g + (g ? g-g : 0);
14126 /* HPUX 7.0 cc rejects these. */
14127 ++pcpcc;
14128 ppc = (char**) pcpcc;
14129 pcpcc = (char const *const *) ppc;
14130 { /* SCO 3.2v4 cc rejects this sort of thing. */
14131 char tx;
14132 char *t = &tx;
14133 char const *s = 0 ? (char *) 0 : (char const *) 0;
14135 *t++ = 0;
14136 if (s) return 0;
14138 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14139 int x[] = {25, 17};
14140 const int *foo = &x[0];
14141 ++foo;
14143 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14144 typedef const int *iptr;
14145 iptr p = 0;
14146 ++p;
14148 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14149 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14150 struct s { int j; const int *ap[3]; } bx;
14151 struct s *b = &bx; b->j = 5;
14153 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14154 const int foo = 10;
14155 if (!foo) return 0;
14157 return !cs[0] && !zero.x;
14158 #endif
14161 return 0;
14163 _ACEOF
14164 if ac_fn_c_try_compile "$LINENO"; then :
14165 ac_cv_c_const=yes
14166 else
14167 ac_cv_c_const=no
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14172 $as_echo "$ac_cv_c_const" >&6; }
14173 if test $ac_cv_c_const = no; then
14175 $as_echo "#define const /**/" >>confdefs.h
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14180 $as_echo_n "checking for inline... " >&6; }
14181 if ${ac_cv_c_inline+:} false; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 ac_cv_c_inline=no
14185 for ac_kw in inline __inline__ __inline; do
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #ifndef __cplusplus
14189 typedef int foo_t;
14190 static $ac_kw foo_t static_foo () {return 0; }
14191 $ac_kw foo_t foo () {return 0; }
14192 #endif
14194 _ACEOF
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196 ac_cv_c_inline=$ac_kw
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 test "$ac_cv_c_inline" != no && break
14200 done
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14204 $as_echo "$ac_cv_c_inline" >&6; }
14206 case $ac_cv_c_inline in
14207 inline | yes) ;;
14209 case $ac_cv_c_inline in
14210 no) ac_val=;;
14211 *) ac_val=$ac_cv_c_inline;;
14212 esac
14213 cat >>confdefs.h <<_ACEOF
14214 #ifndef __cplusplus
14215 #define inline $ac_val
14216 #endif
14217 _ACEOF
14219 esac
14221 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14222 if test "x$ac_cv_type_size_t" = xyes; then :
14224 else
14226 cat >>confdefs.h <<_ACEOF
14227 #define size_t unsigned int
14228 _ACEOF
14232 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14233 case $ac_cv_c_int64_t in #(
14234 no|yes) ;; #(
14237 cat >>confdefs.h <<_ACEOF
14238 #define int64_t $ac_cv_c_int64_t
14239 _ACEOF
14241 esac
14243 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14244 case $ac_cv_c_uint64_t in #(
14245 no|yes) ;; #(
14248 $as_echo "#define _UINT64_T 1" >>confdefs.h
14251 cat >>confdefs.h <<_ACEOF
14252 #define uint64_t $ac_cv_c_uint64_t
14253 _ACEOF
14255 esac
14257 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
14258 *':no:'*) :
14259 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
14260 *) :
14262 esac
14263 ac_fn_c_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
14265 if test "x$ac_cv_have_decl_isascii" = xyes; then :
14266 ac_have_decl=1
14267 else
14268 ac_have_decl=0
14271 cat >>confdefs.h <<_ACEOF
14272 #define HAVE_DECL_ISASCII $ac_have_decl
14273 _ACEOF
14275 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14276 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14278 cat >>confdefs.h <<_ACEOF
14279 #define HAVE_STRUCT_STAT_ST_MTIM 1
14280 _ACEOF
14287 if test "x$cross_compiling" = xyes; then
14288 cross_TRUE=
14289 cross_FALSE='#'
14290 else
14291 cross_TRUE='#'
14292 cross_FALSE=
14296 ac_ext=cpp
14297 ac_cpp='$CXXCPP $CPPFLAGS'
14298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14301 if test -z "$CXX"; then
14302 if test -n "$CCC"; then
14303 CXX=$CCC
14304 else
14305 if test -n "$ac_tool_prefix"; then
14306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14311 $as_echo_n "checking for $ac_word... " >&6; }
14312 if ${ac_cv_prog_CXX+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 if test -n "$CXX"; then
14316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14317 else
14318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319 for as_dir in $PATH
14321 IFS=$as_save_IFS
14322 test -z "$as_dir" && as_dir=.
14323 for ac_exec_ext in '' $ac_executable_extensions; do
14324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14327 break 2
14329 done
14330 done
14331 IFS=$as_save_IFS
14335 CXX=$ac_cv_prog_CXX
14336 if test -n "$CXX"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14338 $as_echo "$CXX" >&6; }
14339 else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14345 test -n "$CXX" && break
14346 done
14348 if test -z "$CXX"; then
14349 ac_ct_CXX=$CXX
14350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14352 # Extract the first word of "$ac_prog", so it can be a program name with args.
14353 set dummy $ac_prog; ac_word=$2
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14355 $as_echo_n "checking for $ac_word... " >&6; }
14356 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14357 $as_echo_n "(cached) " >&6
14358 else
14359 if test -n "$ac_ct_CXX"; then
14360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14361 else
14362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14363 for as_dir in $PATH
14365 IFS=$as_save_IFS
14366 test -z "$as_dir" && as_dir=.
14367 for ac_exec_ext in '' $ac_executable_extensions; do
14368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14369 ac_cv_prog_ac_ct_CXX="$ac_prog"
14370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14371 break 2
14373 done
14374 done
14375 IFS=$as_save_IFS
14379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14380 if test -n "$ac_ct_CXX"; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14382 $as_echo "$ac_ct_CXX" >&6; }
14383 else
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 $as_echo "no" >&6; }
14389 test -n "$ac_ct_CXX" && break
14390 done
14392 if test "x$ac_ct_CXX" = x; then
14393 CXX="g++"
14394 else
14395 case $cross_compiling:$ac_tool_warned in
14396 yes:)
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14399 ac_tool_warned=yes ;;
14400 esac
14401 CXX=$ac_ct_CXX
14407 # Provide some information about the compiler.
14408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14409 set X $ac_compile
14410 ac_compiler=$2
14411 for ac_option in --version -v -V -qversion; do
14412 { { ac_try="$ac_compiler $ac_option >&5"
14413 case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416 esac
14417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14418 $as_echo "$ac_try_echo"; } >&5
14419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14420 ac_status=$?
14421 if test -s conftest.err; then
14422 sed '10a\
14423 ... rest of stderr output deleted ...
14424 10q' conftest.err >conftest.er1
14425 cat conftest.er1 >&5
14427 rm -f conftest.er1 conftest.err
14428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429 test $ac_status = 0; }
14430 done
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14433 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14434 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14441 main ()
14443 #ifndef __GNUC__
14444 choke me
14445 #endif
14448 return 0;
14450 _ACEOF
14451 if ac_fn_cxx_try_compile "$LINENO"; then :
14452 ac_compiler_gnu=yes
14453 else
14454 ac_compiler_gnu=no
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14462 if test $ac_compiler_gnu = yes; then
14463 GXX=yes
14464 else
14465 GXX=
14467 ac_test_CXXFLAGS=${CXXFLAGS+set}
14468 ac_save_CXXFLAGS=$CXXFLAGS
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14471 if ${ac_cv_prog_cxx_g+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14475 ac_cxx_werror_flag=yes
14476 ac_cv_prog_cxx_g=no
14477 CXXFLAGS="-g"
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14482 main ()
14486 return 0;
14488 _ACEOF
14489 if ac_fn_cxx_try_compile "$LINENO"; then :
14490 ac_cv_prog_cxx_g=yes
14491 else
14492 CXXFLAGS=""
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14497 main ()
14501 return 0;
14503 _ACEOF
14504 if ac_fn_cxx_try_compile "$LINENO"; then :
14506 else
14507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14508 CXXFLAGS="-g"
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14513 main ()
14517 return 0;
14519 _ACEOF
14520 if ac_fn_cxx_try_compile "$LINENO"; then :
14521 ac_cv_prog_cxx_g=yes
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14531 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14532 if test "$ac_test_CXXFLAGS" = set; then
14533 CXXFLAGS=$ac_save_CXXFLAGS
14534 elif test $ac_cv_prog_cxx_g = yes; then
14535 if test "$GXX" = yes; then
14536 CXXFLAGS="-g -O2"
14537 else
14538 CXXFLAGS="-g"
14540 else
14541 if test "$GXX" = yes; then
14542 CXXFLAGS="-O2"
14543 else
14544 CXXFLAGS=
14547 ac_ext=c
14548 ac_cpp='$CPP $CPPFLAGS'
14549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14553 depcc="$CXX" am_compiler_list=
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14556 $as_echo_n "checking dependency style of $depcc... " >&6; }
14557 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14561 # We make a subdir and do the tests there. Otherwise we can end up
14562 # making bogus files that we don't know about and never remove. For
14563 # instance it was reported that on HP-UX the gcc test will end up
14564 # making a dummy file named 'D' -- because '-MD' means "put the output
14565 # in D".
14566 rm -rf conftest.dir
14567 mkdir conftest.dir
14568 # Copy depcomp to subdir because otherwise we won't find it if we're
14569 # using a relative directory.
14570 cp "$am_depcomp" conftest.dir
14571 cd conftest.dir
14572 # We will build objects and dependencies in a subdirectory because
14573 # it helps to detect inapplicable dependency modes. For instance
14574 # both Tru64's cc and ICC support -MD to output dependencies as a
14575 # side effect of compilation, but ICC will put the dependencies in
14576 # the current directory while Tru64 will put them in the object
14577 # directory.
14578 mkdir sub
14580 am_cv_CXX_dependencies_compiler_type=none
14581 if test "$am_compiler_list" = ""; then
14582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14584 am__universal=false
14585 case " $depcc " in #(
14586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14587 esac
14589 for depmode in $am_compiler_list; do
14590 # Setup a source with many dependencies, because some compilers
14591 # like to wrap large dependency lists on column 80 (with \), and
14592 # we should not choose a depcomp mode which is confused by this.
14594 # We need to recreate these files for each test, as the compiler may
14595 # overwrite some of them when testing with obscure command lines.
14596 # This happens at least with the AIX C compiler.
14597 : > sub/conftest.c
14598 for i in 1 2 3 4 5 6; do
14599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14600 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14601 # Solaris 10 /bin/sh.
14602 echo '/* dummy */' > sub/conftst$i.h
14603 done
14604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14606 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14607 # mode. It turns out that the SunPro C++ compiler does not properly
14608 # handle '-M -o', and we need to detect this. Also, some Intel
14609 # versions had trouble with output in subdirs.
14610 am__obj=sub/conftest.${OBJEXT-o}
14611 am__minus_obj="-o $am__obj"
14612 case $depmode in
14613 gcc)
14614 # This depmode causes a compiler race in universal mode.
14615 test "$am__universal" = false || continue
14617 nosideeffect)
14618 # After this tag, mechanisms are not by side-effect, so they'll
14619 # only be used when explicitly requested.
14620 if test "x$enable_dependency_tracking" = xyes; then
14621 continue
14622 else
14623 break
14626 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14627 # This compiler won't grok '-c -o', but also, the minuso test has
14628 # not run yet. These depmodes are late enough in the game, and
14629 # so weak that their functioning should not be impacted.
14630 am__obj=conftest.${OBJEXT-o}
14631 am__minus_obj=
14633 none) break ;;
14634 esac
14635 if depmode=$depmode \
14636 source=sub/conftest.c object=$am__obj \
14637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14639 >/dev/null 2>conftest.err &&
14640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14644 # icc doesn't choke on unknown options, it will just issue warnings
14645 # or remarks (even with -Werror). So we grep stderr for any message
14646 # that says an option was ignored or not supported.
14647 # When given -MP, icc 7.0 and 7.1 complain thusly:
14648 # icc: Command line warning: ignoring option '-M'; no argument required
14649 # The diagnosis changed in icc 8.0:
14650 # icc: Command line remark: option '-MP' not supported
14651 if (grep 'ignoring option' conftest.err ||
14652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14653 am_cv_CXX_dependencies_compiler_type=$depmode
14654 break
14657 done
14659 cd ..
14660 rm -rf conftest.dir
14661 else
14662 am_cv_CXX_dependencies_compiler_type=none
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14667 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14668 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14671 test "x$enable_dependency_tracking" != xno \
14672 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14673 am__fastdepCXX_TRUE=
14674 am__fastdepCXX_FALSE='#'
14675 else
14676 am__fastdepCXX_TRUE='#'
14677 am__fastdepCXX_FALSE=
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C++ compiler" >&5
14681 $as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
14682 if ${kpse_cv_warning_cxxflags+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 if test "x$GXX" = xyes; then
14686 kpse_cv_warning_cxxflags=
14687 kpse_warn_strings="-Wno-write-strings"
14688 if test "x$enable_compiler_warnings" != xno; then
14689 kpse_cv_warning_cxxflags="-Wreturn-type"
14690 case `$CXX -dumpversion` in #(
14691 3.* | 4.[012345].*) :
14692 kpse_cv_warning_cxxflags="-Wimplicit $kpse_cv_warning_cxxflags" ;; #(
14693 *) :
14695 esac
14696 case `$CXX -dumpversion` in #(
14697 3.[234].* | 4.* | 5.*) :
14698 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;; #(
14699 *) :
14701 esac
14702 if test "x$enable_compiler_warnings" != xmin; then
14703 kpse_cv_warning_cxxflags="-Wall -Wunused $kpse_cv_warning_cxxflags"
14704 if test "x$enable_compiler_warnings" != xyes; then
14705 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
14706 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align"
14707 kpse_warn_strings="-Wwrite-strings"
14708 if test "x$enable_compiler_warnings" != xmax; then
14709 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wshadow"
14714 kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags $kpse_warn_strings"
14715 elif test "x$enable_compiler_warnings" = xno; then
14716 kpse_cv_warning_cxxflags=
14717 else
14718 kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cxxflags" >&5
14722 $as_echo "$kpse_cv_warning_cxxflags" >&6; }
14723 WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
14729 func_stripname_cnf ()
14731 case $2 in
14732 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14733 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14734 esac
14735 } # func_stripname_cnf
14737 if test -n "$CXX" && ( test no != "$CXX" &&
14738 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14739 (test g++ != "$CXX"))); then
14740 ac_ext=cpp
14741 ac_cpp='$CXXCPP $CPPFLAGS'
14742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14746 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14747 if test -z "$CXXCPP"; then
14748 if ${ac_cv_prog_CXXCPP+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 # Double quotes because CXXCPP needs to be expanded
14752 for CXXCPP in "$CXX -E" "/lib/cpp"
14754 ac_preproc_ok=false
14755 for ac_cxx_preproc_warn_flag in '' yes
14757 # Use a header file that comes with gcc, so configuring glibc
14758 # with a fresh cross-compiler works.
14759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14760 # <limits.h> exists even on freestanding compilers.
14761 # On the NeXT, cc -E runs the code through the compiler's parser,
14762 # not just through cpp. "Syntax error" is here to catch this case.
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 #ifdef __STDC__
14766 # include <limits.h>
14767 #else
14768 # include <assert.h>
14769 #endif
14770 Syntax error
14771 _ACEOF
14772 if ac_fn_cxx_try_cpp "$LINENO"; then :
14774 else
14775 # Broken: fails on valid input.
14776 continue
14778 rm -f conftest.err conftest.i conftest.$ac_ext
14780 # OK, works on sane cases. Now check whether nonexistent headers
14781 # can be detected and how.
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14784 #include <ac_nonexistent.h>
14785 _ACEOF
14786 if ac_fn_cxx_try_cpp "$LINENO"; then :
14787 # Broken: success on invalid input.
14788 continue
14789 else
14790 # Passes both tests.
14791 ac_preproc_ok=:
14792 break
14794 rm -f conftest.err conftest.i conftest.$ac_ext
14796 done
14797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14798 rm -f conftest.i conftest.err conftest.$ac_ext
14799 if $ac_preproc_ok; then :
14800 break
14803 done
14804 ac_cv_prog_CXXCPP=$CXXCPP
14807 CXXCPP=$ac_cv_prog_CXXCPP
14808 else
14809 ac_cv_prog_CXXCPP=$CXXCPP
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14812 $as_echo "$CXXCPP" >&6; }
14813 ac_preproc_ok=false
14814 for ac_cxx_preproc_warn_flag in '' yes
14816 # Use a header file that comes with gcc, so configuring glibc
14817 # with a fresh cross-compiler works.
14818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14819 # <limits.h> exists even on freestanding compilers.
14820 # On the NeXT, cc -E runs the code through the compiler's parser,
14821 # not just through cpp. "Syntax error" is here to catch this case.
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 #ifdef __STDC__
14825 # include <limits.h>
14826 #else
14827 # include <assert.h>
14828 #endif
14829 Syntax error
14830 _ACEOF
14831 if ac_fn_cxx_try_cpp "$LINENO"; then :
14833 else
14834 # Broken: fails on valid input.
14835 continue
14837 rm -f conftest.err conftest.i conftest.$ac_ext
14839 # OK, works on sane cases. Now check whether nonexistent headers
14840 # can be detected and how.
14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14843 #include <ac_nonexistent.h>
14844 _ACEOF
14845 if ac_fn_cxx_try_cpp "$LINENO"; then :
14846 # Broken: success on invalid input.
14847 continue
14848 else
14849 # Passes both tests.
14850 ac_preproc_ok=:
14851 break
14853 rm -f conftest.err conftest.i conftest.$ac_ext
14855 done
14856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14857 rm -f conftest.i conftest.err conftest.$ac_ext
14858 if $ac_preproc_ok; then :
14860 else
14861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14863 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14864 See \`config.log' for more details" "$LINENO" 5; }
14867 ac_ext=c
14868 ac_cpp='$CPP $CPPFLAGS'
14869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14873 else
14874 _lt_caught_CXX_error=yes
14877 ac_ext=cpp
14878 ac_cpp='$CXXCPP $CPPFLAGS'
14879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14883 archive_cmds_need_lc_CXX=no
14884 allow_undefined_flag_CXX=
14885 always_export_symbols_CXX=no
14886 archive_expsym_cmds_CXX=
14887 compiler_needs_object_CXX=no
14888 export_dynamic_flag_spec_CXX=
14889 hardcode_direct_CXX=no
14890 hardcode_direct_absolute_CXX=no
14891 hardcode_libdir_flag_spec_CXX=
14892 hardcode_libdir_separator_CXX=
14893 hardcode_minus_L_CXX=no
14894 hardcode_shlibpath_var_CXX=unsupported
14895 hardcode_automatic_CXX=no
14896 inherit_rpath_CXX=no
14897 module_cmds_CXX=
14898 module_expsym_cmds_CXX=
14899 link_all_deplibs_CXX=unknown
14900 old_archive_cmds_CXX=$old_archive_cmds
14901 reload_flag_CXX=$reload_flag
14902 reload_cmds_CXX=$reload_cmds
14903 no_undefined_flag_CXX=
14904 whole_archive_flag_spec_CXX=
14905 enable_shared_with_static_runtimes_CXX=no
14907 # Source file extension for C++ test sources.
14908 ac_ext=cpp
14910 # Object file extension for compiled C++ test sources.
14911 objext=o
14912 objext_CXX=$objext
14914 # No sense in running all these tests if we already determined that
14915 # the CXX compiler isn't working. Some variables (like enable_shared)
14916 # are currently assumed to apply to all compilers on this platform,
14917 # and will be corrupted by setting them based on a non-working compiler.
14918 if test yes != "$_lt_caught_CXX_error"; then
14919 # Code to be used in simple compile tests
14920 lt_simple_compile_test_code="int some_variable = 0;"
14922 # Code to be used in simple link tests
14923 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14932 # If no C compiler was specified, use CC.
14933 LTCC=${LTCC-"$CC"}
14935 # If no C compiler flags were specified, use CFLAGS.
14936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14938 # Allow CC to be a program name with arguments.
14939 compiler=$CC
14942 # save warnings/boilerplate of simple test code
14943 ac_outfile=conftest.$ac_objext
14944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14946 _lt_compiler_boilerplate=`cat conftest.err`
14947 $RM conftest*
14949 ac_outfile=conftest.$ac_objext
14950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14952 _lt_linker_boilerplate=`cat conftest.err`
14953 $RM -r conftest*
14956 # Allow CC to be a program name with arguments.
14957 lt_save_CC=$CC
14958 lt_save_CFLAGS=$CFLAGS
14959 lt_save_LD=$LD
14960 lt_save_GCC=$GCC
14961 GCC=$GXX
14962 lt_save_with_gnu_ld=$with_gnu_ld
14963 lt_save_path_LD=$lt_cv_path_LD
14964 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14965 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14966 else
14967 $as_unset lt_cv_prog_gnu_ld
14969 if test -n "${lt_cv_path_LDCXX+set}"; then
14970 lt_cv_path_LD=$lt_cv_path_LDCXX
14971 else
14972 $as_unset lt_cv_path_LD
14974 test -z "${LDCXX+set}" || LD=$LDCXX
14975 CC=${CXX-"c++"}
14976 CFLAGS=$CXXFLAGS
14977 compiler=$CC
14978 compiler_CXX=$CC
14979 func_cc_basename $compiler
14980 cc_basename=$func_cc_basename_result
14983 if test -n "$compiler"; then
14984 # We don't want -fno-exception when compiling C++ code, so set the
14985 # no_builtin_flag separately
14986 if test yes = "$GXX"; then
14987 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14988 else
14989 lt_prog_compiler_no_builtin_flag_CXX=
14992 if test yes = "$GXX"; then
14993 # Set up default GNU C++ configuration
14997 # Check whether --with-gnu-ld was given.
14998 if test "${with_gnu_ld+set}" = set; then :
14999 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15000 else
15001 with_gnu_ld=no
15004 ac_prog=ld
15005 if test yes = "$GCC"; then
15006 # Check if gcc -print-prog-name=ld gives a path.
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15008 $as_echo_n "checking for ld used by $CC... " >&6; }
15009 case $host in
15010 *-*-mingw*)
15011 # gcc leaves a trailing carriage return, which upsets mingw
15012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15015 esac
15016 case $ac_prog in
15017 # Accept absolute paths.
15018 [\\/]* | ?:[\\/]*)
15019 re_direlt='/[^/][^/]*/\.\./'
15020 # Canonicalize the pathname of ld
15021 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15022 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15023 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15024 done
15025 test -z "$LD" && LD=$ac_prog
15028 # If it fails, then pretend we aren't using GCC.
15029 ac_prog=ld
15032 # If it is relative, then search for the first ld in PATH.
15033 with_gnu_ld=unknown
15035 esac
15036 elif test yes = "$with_gnu_ld"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15038 $as_echo_n "checking for GNU ld... " >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15041 $as_echo_n "checking for non-GNU ld... " >&6; }
15043 if ${lt_cv_path_LD+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 if test -z "$LD"; then
15047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15048 for ac_dir in $PATH; do
15049 IFS=$lt_save_ifs
15050 test -z "$ac_dir" && ac_dir=.
15051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15052 lt_cv_path_LD=$ac_dir/$ac_prog
15053 # Check to see if the program is GNU ld. I'd rather use --version,
15054 # but apparently some variants of GNU ld only accept -v.
15055 # Break only if it was the GNU/non-GNU ld that we prefer.
15056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15057 *GNU* | *'with BFD'*)
15058 test no != "$with_gnu_ld" && break
15061 test yes != "$with_gnu_ld" && break
15063 esac
15065 done
15066 IFS=$lt_save_ifs
15067 else
15068 lt_cv_path_LD=$LD # Let the user override the test with a path.
15072 LD=$lt_cv_path_LD
15073 if test -n "$LD"; then
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15075 $as_echo "$LD" >&6; }
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15080 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15082 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15083 if ${lt_cv_prog_gnu_ld+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15087 case `$LD -v 2>&1 </dev/null` in
15088 *GNU* | *'with BFD'*)
15089 lt_cv_prog_gnu_ld=yes
15092 lt_cv_prog_gnu_ld=no
15094 esac
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15097 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15098 with_gnu_ld=$lt_cv_prog_gnu_ld
15106 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15107 # archiving commands below assume that GNU ld is being used.
15108 if test yes = "$with_gnu_ld"; then
15109 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15110 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'
15112 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15113 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15115 # If archive_cmds runs LD, not CC, wlarc should be empty
15116 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15117 # investigate it a little bit more. (MM)
15118 wlarc='$wl'
15120 # ancient GNU ld didn't support --whole-archive et. al.
15121 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15122 $GREP 'no-whole-archive' > /dev/null; then
15123 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15124 else
15125 whole_archive_flag_spec_CXX=
15127 else
15128 with_gnu_ld=no
15129 wlarc=
15131 # A generic and very simple default shared library creation
15132 # command for GNU C++ for the case where it uses the native
15133 # linker, instead of GNU ld. If possible, this setting should
15134 # overridden to take advantage of the native linker features on
15135 # the platform it is being used on.
15136 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15139 # Commands to make compiler produce verbose output that lists
15140 # what "hidden" libraries, object files and flags are used when
15141 # linking a shared library.
15142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15144 else
15145 GXX=no
15146 with_gnu_ld=no
15147 wlarc=
15150 # PORTME: fill in a description of your system's C++ link characteristics
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15152 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15153 ld_shlibs_CXX=yes
15154 case $host_os in
15155 aix3*)
15156 # FIXME: insert proper C++ library support
15157 ld_shlibs_CXX=no
15159 aix[4-9]*)
15160 if test ia64 = "$host_cpu"; then
15161 # On IA64, the linker does run time linking by default, so we don't
15162 # have to do anything special.
15163 aix_use_runtimelinking=no
15164 exp_sym_flag='-Bexport'
15165 no_entry_flag=
15166 else
15167 aix_use_runtimelinking=no
15169 # Test if we are trying to use run time linking or normal
15170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15171 # have runtime linking enabled, and use it for executables.
15172 # For shared libraries, we enable/disable runtime linking
15173 # depending on the kind of the shared library created -
15174 # when "with_aix_soname,aix_use_runtimelinking" is:
15175 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15176 # "aix,yes" lib.so shared, rtl:yes, for executables
15177 # lib.a static archive
15178 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15179 # lib.a(lib.so.V) shared, rtl:no, for executables
15180 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15181 # lib.a(lib.so.V) shared, rtl:no
15182 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15183 # lib.a static archive
15184 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15185 for ld_flag in $LDFLAGS; do
15186 case $ld_flag in
15187 *-brtl*)
15188 aix_use_runtimelinking=yes
15189 break
15191 esac
15192 done
15193 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15194 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15195 # so we don't have lib.a shared libs to link our executables.
15196 # We have to force runtime linking in this case.
15197 aix_use_runtimelinking=yes
15198 LDFLAGS="$LDFLAGS -Wl,-brtl"
15201 esac
15203 exp_sym_flag='-bexport'
15204 no_entry_flag='-bnoentry'
15207 # When large executables or shared objects are built, AIX ld can
15208 # have problems creating the table of contents. If linking a library
15209 # or program results in "error TOC overflow" add -mminimal-toc to
15210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15213 archive_cmds_CXX=''
15214 hardcode_direct_CXX=yes
15215 hardcode_direct_absolute_CXX=yes
15216 hardcode_libdir_separator_CXX=':'
15217 link_all_deplibs_CXX=yes
15218 file_list_spec_CXX='$wl-f,'
15219 case $with_aix_soname,$aix_use_runtimelinking in
15220 aix,*) ;; # no import file
15221 svr4,* | *,yes) # use import file
15222 # The Import File defines what to hardcode.
15223 hardcode_direct_CXX=no
15224 hardcode_direct_absolute_CXX=no
15226 esac
15228 if test yes = "$GXX"; then
15229 case $host_os in aix4.[012]|aix4.[012].*)
15230 # We only want to do this on AIX 4.2 and lower, the check
15231 # below for broken collect2 doesn't work under 4.3+
15232 collect2name=`$CC -print-prog-name=collect2`
15233 if test -f "$collect2name" &&
15234 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15235 then
15236 # We have reworked collect2
15238 else
15239 # We have old collect2
15240 hardcode_direct_CXX=unsupported
15241 # It fails to find uninstalled libraries when the uninstalled
15242 # path is not listed in the libpath. Setting hardcode_minus_L
15243 # to unsupported forces relinking
15244 hardcode_minus_L_CXX=yes
15245 hardcode_libdir_flag_spec_CXX='-L$libdir'
15246 hardcode_libdir_separator_CXX=
15248 esac
15249 shared_flag='-shared'
15250 if test yes = "$aix_use_runtimelinking"; then
15251 shared_flag=$shared_flag' $wl-G'
15253 # Need to ensure runtime linking is disabled for the traditional
15254 # shared library, or the linker may eventually find shared libraries
15255 # /with/ Import File - we do not want to mix them.
15256 shared_flag_aix='-shared'
15257 shared_flag_svr4='-shared $wl-G'
15258 else
15259 # not using gcc
15260 if test ia64 = "$host_cpu"; then
15261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15262 # chokes on -Wl,-G. The following line is correct:
15263 shared_flag='-G'
15264 else
15265 if test yes = "$aix_use_runtimelinking"; then
15266 shared_flag='$wl-G'
15267 else
15268 shared_flag='$wl-bM:SRE'
15270 shared_flag_aix='$wl-bM:SRE'
15271 shared_flag_svr4='$wl-G'
15275 export_dynamic_flag_spec_CXX='$wl-bexpall'
15276 # It seems that -bexpall does not export symbols beginning with
15277 # underscore (_), so it is better to generate a list of symbols to
15278 # export.
15279 always_export_symbols_CXX=yes
15280 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15281 # Warning - without using the other runtime loading flags (-brtl),
15282 # -berok will link without error, but may produce a broken library.
15283 # The "-G" linker flag allows undefined symbols.
15284 no_undefined_flag_CXX='-bernotok'
15285 # Determine the default libpath from the value encoded in an empty
15286 # executable.
15287 if test set = "${lt_cv_aix_libpath+set}"; then
15288 aix_libpath=$lt_cv_aix_libpath
15289 else
15290 if ${lt_cv_aix_libpath__CXX+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15297 main ()
15301 return 0;
15303 _ACEOF
15304 if ac_fn_cxx_try_link "$LINENO"; then :
15306 lt_aix_libpath_sed='
15307 /Import File Strings/,/^$/ {
15308 /^0/ {
15309 s/^0 *\([^ ]*\) *$/\1/
15313 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15314 # Check for a 64-bit object if we didn't find anything.
15315 if test -z "$lt_cv_aix_libpath__CXX"; then
15316 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15319 rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15321 if test -z "$lt_cv_aix_libpath__CXX"; then
15322 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15327 aix_libpath=$lt_cv_aix_libpath__CXX
15330 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15332 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
15333 else
15334 if test ia64 = "$host_cpu"; then
15335 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15336 allow_undefined_flag_CXX="-z nodefs"
15337 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"
15338 else
15339 # Determine the default libpath from the value encoded in an
15340 # empty executable.
15341 if test set = "${lt_cv_aix_libpath+set}"; then
15342 aix_libpath=$lt_cv_aix_libpath
15343 else
15344 if ${lt_cv_aix_libpath__CXX+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15351 main ()
15355 return 0;
15357 _ACEOF
15358 if ac_fn_cxx_try_link "$LINENO"; then :
15360 lt_aix_libpath_sed='
15361 /Import File Strings/,/^$/ {
15362 /^0/ {
15363 s/^0 *\([^ ]*\) *$/\1/
15367 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15368 # Check for a 64-bit object if we didn't find anything.
15369 if test -z "$lt_cv_aix_libpath__CXX"; then
15370 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15373 rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 if test -z "$lt_cv_aix_libpath__CXX"; then
15376 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15381 aix_libpath=$lt_cv_aix_libpath__CXX
15384 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15385 # Warning - without using the other run time loading flags,
15386 # -berok will link without error, but may produce a broken library.
15387 no_undefined_flag_CXX=' $wl-bernotok'
15388 allow_undefined_flag_CXX=' $wl-berok'
15389 if test yes = "$with_gnu_ld"; then
15390 # We only use this code for GNU lds that support --whole-archive.
15391 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15392 else
15393 # Exported symbols can be pulled into shared objects from archives
15394 whole_archive_flag_spec_CXX='$convenience'
15396 archive_cmds_need_lc_CXX=yes
15397 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15398 # -brtl affects multiple linker settings, -berok does not and is overridden later
15399 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15400 if test svr4 != "$with_aix_soname"; then
15401 # This is similar to how AIX traditionally builds its shared
15402 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15403 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'
15405 if test aix != "$with_aix_soname"; then
15406 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'
15407 else
15408 # used by -dlpreopen to get the symbols
15409 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15411 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15416 beos*)
15417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15418 allow_undefined_flag_CXX=unsupported
15419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15420 # support --undefined. This deserves some investigation. FIXME
15421 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15422 else
15423 ld_shlibs_CXX=no
15427 chorus*)
15428 case $cc_basename in
15430 # FIXME: insert proper C++ library support
15431 ld_shlibs_CXX=no
15433 esac
15436 cygwin* | mingw* | pw32* | cegcc*)
15437 case $GXX,$cc_basename in
15438 ,cl* | no,cl*)
15439 # Native MSVC
15440 # hardcode_libdir_flag_spec is actually meaningless, as there is
15441 # no search path for DLLs.
15442 hardcode_libdir_flag_spec_CXX=' '
15443 allow_undefined_flag_CXX=unsupported
15444 always_export_symbols_CXX=yes
15445 file_list_spec_CXX='@'
15446 # Tell ltmain to make .lib files, not .a files.
15447 libext=lib
15448 # Tell ltmain to make .dll files, not .so files.
15449 shrext_cmds=.dll
15450 # FIXME: Setting linknames here is a bad hack.
15451 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15452 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15453 cp "$export_symbols" "$output_objdir/$soname.def";
15454 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15455 else
15456 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15458 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15459 linknames='
15460 # The linker will not automatically build a static lib if we build a DLL.
15461 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15462 enable_shared_with_static_runtimes_CXX=yes
15463 # Don't use ranlib
15464 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15465 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15466 lt_tool_outputfile="@TOOL_OUTPUT@"~
15467 case $lt_outputfile in
15468 *.exe|*.EXE) ;;
15470 lt_outputfile=$lt_outputfile.exe
15471 lt_tool_outputfile=$lt_tool_outputfile.exe
15473 esac~
15474 func_to_tool_file "$lt_outputfile"~
15475 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15477 $RM "$lt_outputfile.manifest";
15481 # g++
15482 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15483 # as there is no search path for DLLs.
15484 hardcode_libdir_flag_spec_CXX='-L$libdir'
15485 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15486 allow_undefined_flag_CXX=unsupported
15487 always_export_symbols_CXX=no
15488 enable_shared_with_static_runtimes_CXX=yes
15490 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15491 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'
15492 # If the export-symbols file already is a .def file, use it as
15493 # is; otherwise, prepend EXPORTS...
15494 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15495 cp $export_symbols $output_objdir/$soname.def;
15496 else
15497 echo EXPORTS > $output_objdir/$soname.def;
15498 cat $export_symbols >> $output_objdir/$soname.def;
15500 $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'
15501 else
15502 ld_shlibs_CXX=no
15505 esac
15507 darwin* | rhapsody*)
15510 archive_cmds_need_lc_CXX=no
15511 hardcode_direct_CXX=no
15512 hardcode_automatic_CXX=yes
15513 hardcode_shlibpath_var_CXX=unsupported
15514 if test yes = "$lt_cv_ld_force_load"; then
15515 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\"`'
15517 else
15518 whole_archive_flag_spec_CXX=''
15520 link_all_deplibs_CXX=yes
15521 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15522 case $cc_basename in
15523 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15524 *) _lt_dar_can_shared=$GCC ;;
15525 esac
15526 if test yes = "$_lt_dar_can_shared"; then
15527 output_verbose_link_cmd=func_echo_all
15528 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"
15529 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15530 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"
15531 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"
15532 if test yes != "$lt_cv_apple_cc_single_mod"; then
15533 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"
15534 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"
15537 else
15538 ld_shlibs_CXX=no
15543 os2*)
15544 hardcode_libdir_flag_spec_CXX='-L$libdir'
15545 hardcode_minus_L_CXX=yes
15546 allow_undefined_flag_CXX=unsupported
15547 shrext_cmds=.dll
15548 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15549 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15550 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15551 $ECHO EXPORTS >> $output_objdir/$libname.def~
15552 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15554 emximp -o $lib $output_objdir/$libname.def'
15555 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15556 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15557 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15558 $ECHO EXPORTS >> $output_objdir/$libname.def~
15559 prefix_cmds="$SED"~
15560 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15561 prefix_cmds="$prefix_cmds -e 1d";
15563 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15564 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15565 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15566 emximp -o $lib $output_objdir/$libname.def'
15567 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15568 enable_shared_with_static_runtimes_CXX=yes
15571 dgux*)
15572 case $cc_basename in
15573 ec++*)
15574 # FIXME: insert proper C++ library support
15575 ld_shlibs_CXX=no
15577 ghcx*)
15578 # Green Hills C++ Compiler
15579 # FIXME: insert proper C++ library support
15580 ld_shlibs_CXX=no
15583 # FIXME: insert proper C++ library support
15584 ld_shlibs_CXX=no
15586 esac
15589 freebsd2.*)
15590 # C++ shared libraries reported to be fairly broken before
15591 # switch to ELF
15592 ld_shlibs_CXX=no
15595 freebsd-elf*)
15596 archive_cmds_need_lc_CXX=no
15599 freebsd* | dragonfly*)
15600 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15601 # conventions
15602 ld_shlibs_CXX=yes
15605 haiku*)
15606 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15607 link_all_deplibs_CXX=yes
15610 hpux9*)
15611 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15612 hardcode_libdir_separator_CXX=:
15613 export_dynamic_flag_spec_CXX='$wl-E'
15614 hardcode_direct_CXX=yes
15615 hardcode_minus_L_CXX=yes # Not in the search PATH,
15616 # but as the default
15617 # location of the library.
15619 case $cc_basename in
15620 CC*)
15621 # FIXME: insert proper C++ library support
15622 ld_shlibs_CXX=no
15624 aCC*)
15625 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'
15626 # Commands to make compiler produce verbose output that lists
15627 # what "hidden" libraries, object files and flags are used when
15628 # linking a shared library.
15630 # There doesn't appear to be a way to prevent this compiler from
15631 # explicitly linking system object files so we need to strip them
15632 # from the output so that they don't get included in the library
15633 # dependencies.
15634 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"'
15637 if test yes = "$GXX"; then
15638 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'
15639 else
15640 # FIXME: insert proper C++ library support
15641 ld_shlibs_CXX=no
15644 esac
15647 hpux10*|hpux11*)
15648 if test no = "$with_gnu_ld"; then
15649 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15650 hardcode_libdir_separator_CXX=:
15652 case $host_cpu in
15653 hppa*64*|ia64*)
15656 export_dynamic_flag_spec_CXX='$wl-E'
15658 esac
15660 case $host_cpu in
15661 hppa*64*|ia64*)
15662 hardcode_direct_CXX=no
15663 hardcode_shlibpath_var_CXX=no
15666 hardcode_direct_CXX=yes
15667 hardcode_direct_absolute_CXX=yes
15668 hardcode_minus_L_CXX=yes # Not in the search PATH,
15669 # but as the default
15670 # location of the library.
15672 esac
15674 case $cc_basename in
15675 CC*)
15676 # FIXME: insert proper C++ library support
15677 ld_shlibs_CXX=no
15679 aCC*)
15680 case $host_cpu in
15681 hppa*64*)
15682 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15684 ia64*)
15685 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15688 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15690 esac
15691 # Commands to make compiler produce verbose output that lists
15692 # what "hidden" libraries, object files and flags are used when
15693 # linking a shared library.
15695 # There doesn't appear to be a way to prevent this compiler from
15696 # explicitly linking system object files so we need to strip them
15697 # from the output so that they don't get included in the library
15698 # dependencies.
15699 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"'
15702 if test yes = "$GXX"; then
15703 if test no = "$with_gnu_ld"; then
15704 case $host_cpu in
15705 hppa*64*)
15706 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15708 ia64*)
15709 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712 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'
15714 esac
15716 else
15717 # FIXME: insert proper C++ library support
15718 ld_shlibs_CXX=no
15721 esac
15724 interix[3-9]*)
15725 hardcode_direct_CXX=no
15726 hardcode_shlibpath_var_CXX=no
15727 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15728 export_dynamic_flag_spec_CXX='$wl-E'
15729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15730 # Instead, shared libraries are loaded at an image base (0x10000000 by
15731 # default) and relocated if they conflict, which is a slow very memory
15732 # consuming and fragmenting process. To avoid this, we pick a random,
15733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15735 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'
15736 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'
15738 irix5* | irix6*)
15739 case $cc_basename in
15740 CC*)
15741 # SGI C++
15742 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'
15744 # Archives containing C++ object files must be created using
15745 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15746 # necessary to make sure instantiated templates are included
15747 # in the archive.
15748 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15751 if test yes = "$GXX"; then
15752 if test no = "$with_gnu_ld"; then
15753 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'
15754 else
15755 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'
15758 link_all_deplibs_CXX=yes
15760 esac
15761 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15762 hardcode_libdir_separator_CXX=:
15763 inherit_rpath_CXX=yes
15766 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15767 case $cc_basename in
15768 KCC*)
15769 # Kuck and Associates, Inc. (KAI) C++ Compiler
15771 # KCC will only create a shared library if the output file
15772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15773 # to its proper name (with version) after linking.
15774 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'
15775 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'
15776 # Commands to make compiler produce verbose output that lists
15777 # what "hidden" libraries, object files and flags are used when
15778 # linking a shared library.
15780 # There doesn't appear to be a way to prevent this compiler from
15781 # explicitly linking system object files so we need to strip them
15782 # from the output so that they don't get included in the library
15783 # dependencies.
15784 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"'
15786 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15787 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15789 # Archives containing C++ object files must be created using
15790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15793 icpc* | ecpc* )
15794 # Intel C++
15795 with_gnu_ld=yes
15796 # version 8.0 and above of icpc choke on multiply defined symbols
15797 # if we add $predep_objects and $postdep_objects, however 7.1 and
15798 # earlier do not add the objects themselves.
15799 case `$CC -V 2>&1` in
15800 *"Version 7."*)
15801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15802 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'
15804 *) # Version 8.0 or newer
15805 tmp_idyn=
15806 case $host_cpu in
15807 ia64*) tmp_idyn=' -i_dynamic';;
15808 esac
15809 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15810 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'
15812 esac
15813 archive_cmds_need_lc_CXX=no
15814 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15815 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15816 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15818 pgCC* | pgcpp*)
15819 # Portland Group C++ compiler
15820 case `$CC -V` in
15821 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15822 prelink_cmds_CXX='tpldir=Template.dir~
15823 rm -rf $tpldir~
15824 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15825 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15826 old_archive_cmds_CXX='tpldir=Template.dir~
15827 rm -rf $tpldir~
15828 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15829 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15830 $RANLIB $oldlib'
15831 archive_cmds_CXX='tpldir=Template.dir~
15832 rm -rf $tpldir~
15833 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15834 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15835 archive_expsym_cmds_CXX='tpldir=Template.dir~
15836 rm -rf $tpldir~
15837 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15838 $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'
15840 *) # Version 6 and above use weak symbols
15841 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15842 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'
15844 esac
15846 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15847 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15848 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'
15850 cxx*)
15851 # Compaq C++
15852 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15853 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'
15855 runpath_var=LD_RUN_PATH
15856 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15857 hardcode_libdir_separator_CXX=:
15859 # Commands to make compiler produce verbose output that lists
15860 # what "hidden" libraries, object files and flags are used when
15861 # linking a shared library.
15863 # There doesn't appear to be a way to prevent this compiler from
15864 # explicitly linking system object files so we need to strip them
15865 # from the output so that they don't get included in the library
15866 # dependencies.
15867 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'
15869 xl* | mpixl* | bgxl*)
15870 # IBM XL 8.0 on PPC, with GNU ld
15871 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15872 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15873 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15874 if test yes = "$supports_anon_versioning"; then
15875 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15876 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15877 echo "local: *; };" >> $output_objdir/$libname.ver~
15878 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15882 case `$CC -V 2>&1 | sed 5q` in
15883 *Sun\ C*)
15884 # Sun C++ 5.9
15885 no_undefined_flag_CXX=' -zdefs'
15886 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15887 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'
15888 hardcode_libdir_flag_spec_CXX='-R$libdir'
15889 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'
15890 compiler_needs_object_CXX=yes
15892 # Not sure whether something based on
15893 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15894 # would be better.
15895 output_verbose_link_cmd='func_echo_all'
15897 # Archives containing C++ object files must be created using
15898 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15899 # necessary to make sure instantiated templates are included
15900 # in the archive.
15901 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15903 esac
15905 esac
15908 lynxos*)
15909 # FIXME: insert proper C++ library support
15910 ld_shlibs_CXX=no
15913 m88k*)
15914 # FIXME: insert proper C++ library support
15915 ld_shlibs_CXX=no
15918 mvs*)
15919 case $cc_basename in
15920 cxx*)
15921 # FIXME: insert proper C++ library support
15922 ld_shlibs_CXX=no
15925 # FIXME: insert proper C++ library support
15926 ld_shlibs_CXX=no
15928 esac
15931 netbsd*)
15932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15933 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15934 wlarc=
15935 hardcode_libdir_flag_spec_CXX='-R$libdir'
15936 hardcode_direct_CXX=yes
15937 hardcode_shlibpath_var_CXX=no
15939 # Workaround some broken pre-1.5 toolchains
15940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15943 *nto* | *qnx*)
15944 ld_shlibs_CXX=yes
15947 openbsd* | bitrig*)
15948 if test -f /usr/libexec/ld.so; then
15949 hardcode_direct_CXX=yes
15950 hardcode_shlibpath_var_CXX=no
15951 hardcode_direct_absolute_CXX=yes
15952 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15953 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15954 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15955 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15956 export_dynamic_flag_spec_CXX='$wl-E'
15957 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15959 output_verbose_link_cmd=func_echo_all
15960 else
15961 ld_shlibs_CXX=no
15965 osf3* | osf4* | osf5*)
15966 case $cc_basename in
15967 KCC*)
15968 # Kuck and Associates, Inc. (KAI) C++ Compiler
15970 # KCC will only create a shared library if the output file
15971 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15972 # to its proper name (with version) after linking.
15973 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'
15975 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15976 hardcode_libdir_separator_CXX=:
15978 # Archives containing C++ object files must be created using
15979 # the KAI C++ compiler.
15980 case $host in
15981 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15982 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15983 esac
15985 RCC*)
15986 # Rational C++ 2.4.1
15987 # FIXME: insert proper C++ library support
15988 ld_shlibs_CXX=no
15990 cxx*)
15991 case $host in
15992 osf3*)
15993 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15994 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'
15995 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15998 allow_undefined_flag_CXX=' -expect_unresolved \*'
15999 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'
16000 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16001 echo "-hidden">> $lib.exp~
16002 $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~
16003 $RM $lib.exp'
16004 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16006 esac
16008 hardcode_libdir_separator_CXX=:
16010 # Commands to make compiler produce verbose output that lists
16011 # what "hidden" libraries, object files and flags are used when
16012 # linking a shared library.
16014 # There doesn't appear to be a way to prevent this compiler from
16015 # explicitly linking system object files so we need to strip them
16016 # from the output so that they don't get included in the library
16017 # dependencies.
16018 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"'
16021 if test yes,no = "$GXX,$with_gnu_ld"; then
16022 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16023 case $host in
16024 osf3*)
16025 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'
16028 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'
16030 esac
16032 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16033 hardcode_libdir_separator_CXX=:
16035 # Commands to make compiler produce verbose output that lists
16036 # what "hidden" libraries, object files and flags are used when
16037 # linking a shared library.
16038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16040 else
16041 # FIXME: insert proper C++ library support
16042 ld_shlibs_CXX=no
16045 esac
16048 psos*)
16049 # FIXME: insert proper C++ library support
16050 ld_shlibs_CXX=no
16053 sunos4*)
16054 case $cc_basename in
16055 CC*)
16056 # Sun C++ 4.x
16057 # FIXME: insert proper C++ library support
16058 ld_shlibs_CXX=no
16060 lcc*)
16061 # Lucid
16062 # FIXME: insert proper C++ library support
16063 ld_shlibs_CXX=no
16066 # FIXME: insert proper C++ library support
16067 ld_shlibs_CXX=no
16069 esac
16072 solaris*)
16073 case $cc_basename in
16074 CC* | sunCC*)
16075 # Sun C++ 4.2, 5.x and Centerline C++
16076 archive_cmds_need_lc_CXX=yes
16077 no_undefined_flag_CXX=' -zdefs'
16078 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16079 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16080 $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'
16082 hardcode_libdir_flag_spec_CXX='-R$libdir'
16083 hardcode_shlibpath_var_CXX=no
16084 case $host_os in
16085 solaris2.[0-5] | solaris2.[0-5].*) ;;
16087 # The compiler driver will combine and reorder linker options,
16088 # but understands '-z linker_flag'.
16089 # Supported since Solaris 2.6 (maybe 2.5.1?)
16090 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16092 esac
16093 link_all_deplibs_CXX=yes
16095 output_verbose_link_cmd='func_echo_all'
16097 # Archives containing C++ object files must be created using
16098 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16099 # necessary to make sure instantiated templates are included
16100 # in the archive.
16101 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16103 gcx*)
16104 # Green Hills C++ Compiler
16105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16107 # The C++ compiler must be used to create the archive.
16108 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16111 # GNU C++ compiler with Solaris linker
16112 if test yes,no = "$GXX,$with_gnu_ld"; then
16113 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16114 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16115 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16116 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16117 $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'
16119 # Commands to make compiler produce verbose output that lists
16120 # what "hidden" libraries, object files and flags are used when
16121 # linking a shared library.
16122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16123 else
16124 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16125 # platform.
16126 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16127 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16128 $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'
16130 # Commands to make compiler produce verbose output that lists
16131 # what "hidden" libraries, object files and flags are used when
16132 # linking a shared library.
16133 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16136 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16137 case $host_os in
16138 solaris2.[0-5] | solaris2.[0-5].*) ;;
16140 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16142 esac
16145 esac
16148 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16149 no_undefined_flag_CXX='$wl-z,text'
16150 archive_cmds_need_lc_CXX=no
16151 hardcode_shlibpath_var_CXX=no
16152 runpath_var='LD_RUN_PATH'
16154 case $cc_basename in
16155 CC*)
16156 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16157 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16160 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 esac
16166 sysv5* | sco3.2v5* | sco5v6*)
16167 # Note: We CANNOT use -z defs as we might desire, because we do not
16168 # link with -lc, and that would cause any symbols used from libc to
16169 # always be unresolved, which means just about no library would
16170 # ever link correctly. If we're not using GNU ld we use -z text
16171 # though, which does catch some bad symbols but isn't as heavy-handed
16172 # as -z defs.
16173 no_undefined_flag_CXX='$wl-z,text'
16174 allow_undefined_flag_CXX='$wl-z,nodefs'
16175 archive_cmds_need_lc_CXX=no
16176 hardcode_shlibpath_var_CXX=no
16177 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16178 hardcode_libdir_separator_CXX=':'
16179 link_all_deplibs_CXX=yes
16180 export_dynamic_flag_spec_CXX='$wl-Bexport'
16181 runpath_var='LD_RUN_PATH'
16183 case $cc_basename in
16184 CC*)
16185 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16186 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16187 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16188 '"$old_archive_cmds_CXX"
16189 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16190 '"$reload_cmds_CXX"
16193 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 esac
16199 tandem*)
16200 case $cc_basename in
16201 NCC*)
16202 # NonStop-UX NCC 3.20
16203 # FIXME: insert proper C++ library support
16204 ld_shlibs_CXX=no
16207 # FIXME: insert proper C++ library support
16208 ld_shlibs_CXX=no
16210 esac
16213 vxworks*)
16214 # FIXME: insert proper C++ library support
16215 ld_shlibs_CXX=no
16219 # FIXME: insert proper C++ library support
16220 ld_shlibs_CXX=no
16222 esac
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16225 $as_echo "$ld_shlibs_CXX" >&6; }
16226 test no = "$ld_shlibs_CXX" && can_build_shared=no
16228 GCC_CXX=$GXX
16229 LD_CXX=$LD
16231 ## CAVEAT EMPTOR:
16232 ## There is no encapsulation within the following macros, do not change
16233 ## the running order or otherwise move them around unless you know exactly
16234 ## what you are doing...
16235 # Dependencies to place before and after the object being linked:
16236 predep_objects_CXX=
16237 postdep_objects_CXX=
16238 predeps_CXX=
16239 postdeps_CXX=
16240 compiler_lib_search_path_CXX=
16242 cat > conftest.$ac_ext <<_LT_EOF
16243 class Foo
16245 public:
16246 Foo (void) { a = 0; }
16247 private:
16248 int a;
16250 _LT_EOF
16253 _lt_libdeps_save_CFLAGS=$CFLAGS
16254 case "$CC $CFLAGS " in #(
16255 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16256 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16257 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16258 esac
16260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16261 (eval $ac_compile) 2>&5
16262 ac_status=$?
16263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16264 test $ac_status = 0; }; then
16265 # Parse the compiler output and extract the necessary
16266 # objects, libraries and library flags.
16268 # Sentinel used to keep track of whether or not we are before
16269 # the conftest object file.
16270 pre_test_object_deps_done=no
16272 for p in `eval "$output_verbose_link_cmd"`; do
16273 case $prev$p in
16275 -L* | -R* | -l*)
16276 # Some compilers place space between "-{L,R}" and the path.
16277 # Remove the space.
16278 if test x-L = "$p" ||
16279 test x-R = "$p"; then
16280 prev=$p
16281 continue
16284 # Expand the sysroot to ease extracting the directories later.
16285 if test -z "$prev"; then
16286 case $p in
16287 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16288 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16289 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16290 esac
16292 case $p in
16293 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16294 esac
16295 if test no = "$pre_test_object_deps_done"; then
16296 case $prev in
16297 -L | -R)
16298 # Internal compiler library paths should come after those
16299 # provided the user. The postdeps already come after the
16300 # user supplied libs so there is no need to process them.
16301 if test -z "$compiler_lib_search_path_CXX"; then
16302 compiler_lib_search_path_CXX=$prev$p
16303 else
16304 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16307 # The "-l" case would never come before the object being
16308 # linked, so don't bother handling this case.
16309 esac
16310 else
16311 if test -z "$postdeps_CXX"; then
16312 postdeps_CXX=$prev$p
16313 else
16314 postdeps_CXX="${postdeps_CXX} $prev$p"
16317 prev=
16320 *.lto.$objext) ;; # Ignore GCC LTO objects
16321 *.$objext)
16322 # This assumes that the test object file only shows up
16323 # once in the compiler output.
16324 if test "$p" = "conftest.$objext"; then
16325 pre_test_object_deps_done=yes
16326 continue
16329 if test no = "$pre_test_object_deps_done"; then
16330 if test -z "$predep_objects_CXX"; then
16331 predep_objects_CXX=$p
16332 else
16333 predep_objects_CXX="$predep_objects_CXX $p"
16335 else
16336 if test -z "$postdep_objects_CXX"; then
16337 postdep_objects_CXX=$p
16338 else
16339 postdep_objects_CXX="$postdep_objects_CXX $p"
16344 *) ;; # Ignore the rest.
16346 esac
16347 done
16349 # Clean up.
16350 rm -f a.out a.exe
16351 else
16352 echo "libtool.m4: error: problem compiling CXX test program"
16355 $RM -f confest.$objext
16356 CFLAGS=$_lt_libdeps_save_CFLAGS
16358 # PORTME: override above test on systems where it is broken
16359 case $host_os in
16360 interix[3-9]*)
16361 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16362 # hack all around it, let's just trust "g++" to DTRT.
16363 predep_objects_CXX=
16364 postdep_objects_CXX=
16365 postdeps_CXX=
16367 esac
16370 case " $postdeps_CXX " in
16371 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16372 esac
16373 compiler_lib_search_dirs_CXX=
16374 if test -n "${compiler_lib_search_path_CXX}"; then
16375 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16408 lt_prog_compiler_wl_CXX=
16409 lt_prog_compiler_pic_CXX=
16410 lt_prog_compiler_static_CXX=
16413 # C++ specific cases for pic, static, wl, etc.
16414 if test yes = "$GXX"; then
16415 lt_prog_compiler_wl_CXX='-Wl,'
16416 lt_prog_compiler_static_CXX='-static'
16418 case $host_os in
16419 aix*)
16420 # All AIX code is PIC.
16421 if test ia64 = "$host_cpu"; then
16422 # AIX 5 now supports IA64 processor
16423 lt_prog_compiler_static_CXX='-Bstatic'
16425 lt_prog_compiler_pic_CXX='-fPIC'
16428 amigaos*)
16429 case $host_cpu in
16430 powerpc)
16431 # see comment about AmigaOS4 .so support
16432 lt_prog_compiler_pic_CXX='-fPIC'
16434 m68k)
16435 # FIXME: we need at least 68020 code to build shared libraries, but
16436 # adding the '-m68020' flag to GCC prevents building anything better,
16437 # like '-m68040'.
16438 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16440 esac
16443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16444 # PIC is the default for these OSes.
16446 mingw* | cygwin* | os2* | pw32* | cegcc*)
16447 # This hack is so that the source file can tell whether it is being
16448 # built for inclusion in a dll (and should export symbols for example).
16449 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16450 # (--disable-auto-import) libraries
16451 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16452 case $host_os in
16453 os2*)
16454 lt_prog_compiler_static_CXX='$wl-static'
16456 esac
16458 darwin* | rhapsody*)
16459 # PIC is the default on this platform
16460 # Common symbols not allowed in MH_DYLIB files
16461 lt_prog_compiler_pic_CXX='-fno-common'
16463 *djgpp*)
16464 # DJGPP does not support shared libraries at all
16465 lt_prog_compiler_pic_CXX=
16467 haiku*)
16468 # PIC is the default for Haiku.
16469 # The "-static" flag exists, but is broken.
16470 lt_prog_compiler_static_CXX=
16472 interix[3-9]*)
16473 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16474 # Instead, we relocate shared libraries at runtime.
16476 sysv4*MP*)
16477 if test -d /usr/nec; then
16478 lt_prog_compiler_pic_CXX=-Kconform_pic
16481 hpux*)
16482 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16483 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16484 # sets the default TLS model and affects inlining.
16485 case $host_cpu in
16486 hppa*64*)
16489 lt_prog_compiler_pic_CXX='-fPIC'
16491 esac
16493 *qnx* | *nto*)
16494 # QNX uses GNU C++, but need to define -shared option too, otherwise
16495 # it will coredump.
16496 lt_prog_compiler_pic_CXX='-fPIC -shared'
16499 lt_prog_compiler_pic_CXX='-fPIC'
16501 esac
16502 else
16503 case $host_os in
16504 aix[4-9]*)
16505 # All AIX code is PIC.
16506 if test ia64 = "$host_cpu"; then
16507 # AIX 5 now supports IA64 processor
16508 lt_prog_compiler_static_CXX='-Bstatic'
16509 else
16510 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16513 chorus*)
16514 case $cc_basename in
16515 cxch68*)
16516 # Green Hills C++ Compiler
16517 # _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"
16519 esac
16521 mingw* | cygwin* | os2* | pw32* | cegcc*)
16522 # This hack is so that the source file can tell whether it is being
16523 # built for inclusion in a dll (and should export symbols for example).
16524 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16526 dgux*)
16527 case $cc_basename in
16528 ec++*)
16529 lt_prog_compiler_pic_CXX='-KPIC'
16531 ghcx*)
16532 # Green Hills C++ Compiler
16533 lt_prog_compiler_pic_CXX='-pic'
16537 esac
16539 freebsd* | dragonfly*)
16540 # FreeBSD uses GNU C++
16542 hpux9* | hpux10* | hpux11*)
16543 case $cc_basename in
16544 CC*)
16545 lt_prog_compiler_wl_CXX='-Wl,'
16546 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16547 if test ia64 != "$host_cpu"; then
16548 lt_prog_compiler_pic_CXX='+Z'
16551 aCC*)
16552 lt_prog_compiler_wl_CXX='-Wl,'
16553 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16554 case $host_cpu in
16555 hppa*64*|ia64*)
16556 # +Z the default
16559 lt_prog_compiler_pic_CXX='+Z'
16561 esac
16565 esac
16567 interix*)
16568 # This is c89, which is MS Visual C++ (no shared libs)
16569 # Anyone wants to do a port?
16571 irix5* | irix6* | nonstopux*)
16572 case $cc_basename in
16573 CC*)
16574 lt_prog_compiler_wl_CXX='-Wl,'
16575 lt_prog_compiler_static_CXX='-non_shared'
16576 # CC pic flag -KPIC is the default.
16580 esac
16582 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16583 case $cc_basename in
16584 KCC*)
16585 # KAI C++ Compiler
16586 lt_prog_compiler_wl_CXX='--backend -Wl,'
16587 lt_prog_compiler_pic_CXX='-fPIC'
16589 ecpc* )
16590 # old Intel C++ for x86_64, which still supported -KPIC.
16591 lt_prog_compiler_wl_CXX='-Wl,'
16592 lt_prog_compiler_pic_CXX='-KPIC'
16593 lt_prog_compiler_static_CXX='-static'
16595 icpc* )
16596 # Intel C++, used to be incompatible with GCC.
16597 # ICC 10 doesn't accept -KPIC any more.
16598 lt_prog_compiler_wl_CXX='-Wl,'
16599 lt_prog_compiler_pic_CXX='-fPIC'
16600 lt_prog_compiler_static_CXX='-static'
16602 pgCC* | pgcpp*)
16603 # Portland Group C++ compiler
16604 lt_prog_compiler_wl_CXX='-Wl,'
16605 lt_prog_compiler_pic_CXX='-fpic'
16606 lt_prog_compiler_static_CXX='-Bstatic'
16608 cxx*)
16609 # Compaq C++
16610 # Make sure the PIC flag is empty. It appears that all Alpha
16611 # Linux and Compaq Tru64 Unix objects are PIC.
16612 lt_prog_compiler_pic_CXX=
16613 lt_prog_compiler_static_CXX='-non_shared'
16615 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16616 # IBM XL 8.0, 9.0 on PPC and BlueGene
16617 lt_prog_compiler_wl_CXX='-Wl,'
16618 lt_prog_compiler_pic_CXX='-qpic'
16619 lt_prog_compiler_static_CXX='-qstaticlink'
16622 case `$CC -V 2>&1 | sed 5q` in
16623 *Sun\ C*)
16624 # Sun C++ 5.9
16625 lt_prog_compiler_pic_CXX='-KPIC'
16626 lt_prog_compiler_static_CXX='-Bstatic'
16627 lt_prog_compiler_wl_CXX='-Qoption ld '
16629 esac
16631 esac
16633 lynxos*)
16635 m88k*)
16637 mvs*)
16638 case $cc_basename in
16639 cxx*)
16640 lt_prog_compiler_pic_CXX='-W c,exportall'
16644 esac
16646 netbsd*)
16648 *qnx* | *nto*)
16649 # QNX uses GNU C++, but need to define -shared option too, otherwise
16650 # it will coredump.
16651 lt_prog_compiler_pic_CXX='-fPIC -shared'
16653 osf3* | osf4* | osf5*)
16654 case $cc_basename in
16655 KCC*)
16656 lt_prog_compiler_wl_CXX='--backend -Wl,'
16658 RCC*)
16659 # Rational C++ 2.4.1
16660 lt_prog_compiler_pic_CXX='-pic'
16662 cxx*)
16663 # Digital/Compaq C++
16664 lt_prog_compiler_wl_CXX='-Wl,'
16665 # Make sure the PIC flag is empty. It appears that all Alpha
16666 # Linux and Compaq Tru64 Unix objects are PIC.
16667 lt_prog_compiler_pic_CXX=
16668 lt_prog_compiler_static_CXX='-non_shared'
16672 esac
16674 psos*)
16676 solaris*)
16677 case $cc_basename in
16678 CC* | sunCC*)
16679 # Sun C++ 4.2, 5.x and Centerline C++
16680 lt_prog_compiler_pic_CXX='-KPIC'
16681 lt_prog_compiler_static_CXX='-Bstatic'
16682 lt_prog_compiler_wl_CXX='-Qoption ld '
16684 gcx*)
16685 # Green Hills C++ Compiler
16686 lt_prog_compiler_pic_CXX='-PIC'
16690 esac
16692 sunos4*)
16693 case $cc_basename in
16694 CC*)
16695 # Sun C++ 4.x
16696 lt_prog_compiler_pic_CXX='-pic'
16697 lt_prog_compiler_static_CXX='-Bstatic'
16699 lcc*)
16700 # Lucid
16701 lt_prog_compiler_pic_CXX='-pic'
16705 esac
16707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16708 case $cc_basename in
16709 CC*)
16710 lt_prog_compiler_wl_CXX='-Wl,'
16711 lt_prog_compiler_pic_CXX='-KPIC'
16712 lt_prog_compiler_static_CXX='-Bstatic'
16714 esac
16716 tandem*)
16717 case $cc_basename in
16718 NCC*)
16719 # NonStop-UX NCC 3.20
16720 lt_prog_compiler_pic_CXX='-KPIC'
16724 esac
16726 vxworks*)
16729 lt_prog_compiler_can_build_shared_CXX=no
16731 esac
16734 case $host_os in
16735 # For platforms that do not support PIC, -DPIC is meaningless:
16736 *djgpp*)
16737 lt_prog_compiler_pic_CXX=
16740 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16742 esac
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16745 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16746 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16747 $as_echo_n "(cached) " >&6
16748 else
16749 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16752 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16753 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16756 # Check to make sure the PIC flag actually works.
16758 if test -n "$lt_prog_compiler_pic_CXX"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16760 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16761 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 lt_cv_prog_compiler_pic_works_CXX=no
16765 ac_outfile=conftest.$ac_objext
16766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16767 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16768 # Insert the option either (1) after the last *FLAGS variable, or
16769 # (2) before a word containing "conftest.", or (3) at the end.
16770 # Note that $ac_compile itself does not contain backslashes and begins
16771 # with a dollar sign (not a hyphen), so the echo should work correctly.
16772 # The option is referenced via a variable to avoid confusing sed.
16773 lt_compile=`echo "$ac_compile" | $SED \
16774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16776 -e 's:$: $lt_compiler_flag:'`
16777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16778 (eval "$lt_compile" 2>conftest.err)
16779 ac_status=$?
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 if (exit $ac_status) && test -s "$ac_outfile"; then
16783 # The compiler can only warn and ignore the option if not recognized
16784 # So say no if there are warnings other than the usual output.
16785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16788 lt_cv_prog_compiler_pic_works_CXX=yes
16791 $RM conftest*
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16795 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16797 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16798 case $lt_prog_compiler_pic_CXX in
16799 "" | " "*) ;;
16800 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16801 esac
16802 else
16803 lt_prog_compiler_pic_CXX=
16804 lt_prog_compiler_can_build_shared_CXX=no
16814 # Check to make sure the static flag actually works.
16816 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16818 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16819 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 lt_cv_prog_compiler_static_works_CXX=no
16823 save_LDFLAGS=$LDFLAGS
16824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16827 # The linker can only warn and ignore the option if not recognized
16828 # So say no if there are warnings
16829 if test -s conftest.err; then
16830 # Append any errors to the config.log.
16831 cat conftest.err 1>&5
16832 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16834 if diff conftest.exp conftest.er2 >/dev/null; then
16835 lt_cv_prog_compiler_static_works_CXX=yes
16837 else
16838 lt_cv_prog_compiler_static_works_CXX=yes
16841 $RM -r conftest*
16842 LDFLAGS=$save_LDFLAGS
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16846 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16848 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16850 else
16851 lt_prog_compiler_static_CXX=
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16859 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16860 $as_echo_n "(cached) " >&6
16861 else
16862 lt_cv_prog_compiler_c_o_CXX=no
16863 $RM -r conftest 2>/dev/null
16864 mkdir conftest
16865 cd conftest
16866 mkdir out
16867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16869 lt_compiler_flag="-o out/conftest2.$ac_objext"
16870 # Insert the option either (1) after the last *FLAGS variable, or
16871 # (2) before a word containing "conftest.", or (3) at the end.
16872 # Note that $ac_compile itself does not contain backslashes and begins
16873 # with a dollar sign (not a hyphen), so the echo should work correctly.
16874 lt_compile=`echo "$ac_compile" | $SED \
16875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16877 -e 's:$: $lt_compiler_flag:'`
16878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16879 (eval "$lt_compile" 2>out/conftest.err)
16880 ac_status=$?
16881 cat out/conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16884 then
16885 # The compiler can only warn and ignore the option if not recognized
16886 # So say no if there are warnings
16887 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16890 lt_cv_prog_compiler_c_o_CXX=yes
16893 chmod u+w . 2>&5
16894 $RM conftest*
16895 # SGI C++ compiler will create directory out/ii_files/ for
16896 # template instantiation
16897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16898 $RM out/* && rmdir out
16899 cd ..
16900 $RM -r conftest
16901 $RM conftest*
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16905 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16911 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16912 $as_echo_n "(cached) " >&6
16913 else
16914 lt_cv_prog_compiler_c_o_CXX=no
16915 $RM -r conftest 2>/dev/null
16916 mkdir conftest
16917 cd conftest
16918 mkdir out
16919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16921 lt_compiler_flag="-o out/conftest2.$ac_objext"
16922 # Insert the option either (1) after the last *FLAGS variable, or
16923 # (2) before a word containing "conftest.", or (3) at the end.
16924 # Note that $ac_compile itself does not contain backslashes and begins
16925 # with a dollar sign (not a hyphen), so the echo should work correctly.
16926 lt_compile=`echo "$ac_compile" | $SED \
16927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16929 -e 's:$: $lt_compiler_flag:'`
16930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16931 (eval "$lt_compile" 2>out/conftest.err)
16932 ac_status=$?
16933 cat out/conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16936 then
16937 # The compiler can only warn and ignore the option if not recognized
16938 # So say no if there are warnings
16939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16942 lt_cv_prog_compiler_c_o_CXX=yes
16945 chmod u+w . 2>&5
16946 $RM conftest*
16947 # SGI C++ compiler will create directory out/ii_files/ for
16948 # template instantiation
16949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16950 $RM out/* && rmdir out
16951 cd ..
16952 $RM -r conftest
16953 $RM conftest*
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16957 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16962 hard_links=nottested
16963 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16964 # do not overwrite the value of need_locks provided by the user
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16966 $as_echo_n "checking if we can lock with hard links... " >&6; }
16967 hard_links=yes
16968 $RM conftest*
16969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16970 touch conftest.a
16971 ln conftest.a conftest.b 2>&5 || hard_links=no
16972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16974 $as_echo "$hard_links" >&6; }
16975 if test no = "$hard_links"; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16977 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16978 need_locks=warn
16980 else
16981 need_locks=no
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16987 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16990 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16991 case $host_os in
16992 aix[4-9]*)
16993 # If we're using GNU nm, then we don't want the "-C" option.
16994 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16995 # Without the "-l" option, or with the "-B" option, AIX nm treats
16996 # weak defined symbols like other global defined symbols, whereas
16997 # GNU nm marks them as "W".
16998 # While the 'weak' keyword is ignored in the Export File, we need
16999 # it in the Import File for the 'aix-soname' feature, so we have
17000 # to replace the "-B" option with "-P" for AIX nm.
17001 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17002 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'
17003 else
17004 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'
17007 pw32*)
17008 export_symbols_cmds_CXX=$ltdll_cmds
17010 cygwin* | mingw* | cegcc*)
17011 case $cc_basename in
17012 cl*)
17013 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17016 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'
17017 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17019 esac
17022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17024 esac
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17027 $as_echo "$ld_shlibs_CXX" >&6; }
17028 test no = "$ld_shlibs_CXX" && can_build_shared=no
17030 with_gnu_ld_CXX=$with_gnu_ld
17038 # Do we need to explicitly link libc?
17040 case "x$archive_cmds_need_lc_CXX" in
17041 x|xyes)
17042 # Assume -lc should be added
17043 archive_cmds_need_lc_CXX=yes
17045 if test yes,yes = "$GCC,$enable_shared"; then
17046 case $archive_cmds_CXX in
17047 *'~'*)
17048 # FIXME: we may have to deal with multi-command sequences.
17050 '$CC '*)
17051 # Test whether the compiler implicitly links with -lc since on some
17052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17053 # to ld, don't add -lc before -lgcc.
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17055 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17056 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17057 $as_echo_n "(cached) " >&6
17058 else
17059 $RM conftest*
17060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17063 (eval $ac_compile) 2>&5
17064 ac_status=$?
17065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17066 test $ac_status = 0; } 2>conftest.err; then
17067 soname=conftest
17068 lib=conftest
17069 libobjs=conftest.$ac_objext
17070 deplibs=
17071 wl=$lt_prog_compiler_wl_CXX
17072 pic_flag=$lt_prog_compiler_pic_CXX
17073 compiler_flags=-v
17074 linker_flags=-v
17075 verstring=
17076 output_objdir=.
17077 libname=conftest
17078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17079 allow_undefined_flag_CXX=
17080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17081 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17082 ac_status=$?
17083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17084 test $ac_status = 0; }
17085 then
17086 lt_cv_archive_cmds_need_lc_CXX=no
17087 else
17088 lt_cv_archive_cmds_need_lc_CXX=yes
17090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17091 else
17092 cat conftest.err 1>&5
17094 $RM conftest*
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17098 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17099 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17101 esac
17104 esac
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17168 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17170 library_names_spec=
17171 libname_spec='lib$name'
17172 soname_spec=
17173 shrext_cmds=.so
17174 postinstall_cmds=
17175 postuninstall_cmds=
17176 finish_cmds=
17177 finish_eval=
17178 shlibpath_var=
17179 shlibpath_overrides_runpath=unknown
17180 version_type=none
17181 dynamic_linker="$host_os ld.so"
17182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17183 need_lib_prefix=unknown
17184 hardcode_into_libs=no
17186 # when you set need_version to no, make sure it does not cause -set_version
17187 # flags to be left without arguments
17188 need_version=unknown
17192 case $host_os in
17193 aix3*)
17194 version_type=linux # correct to gnu/linux during the next big refactor
17195 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17196 shlibpath_var=LIBPATH
17198 # AIX 3 has no versioning support, so we append a major version to the name.
17199 soname_spec='$libname$release$shared_ext$major'
17202 aix[4-9]*)
17203 version_type=linux # correct to gnu/linux during the next big refactor
17204 need_lib_prefix=no
17205 need_version=no
17206 hardcode_into_libs=yes
17207 if test ia64 = "$host_cpu"; then
17208 # AIX 5 supports IA64
17209 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 else
17212 # With GCC up to 2.95.x, collect2 would create an import file
17213 # for dependence libraries. The import file would start with
17214 # the line '#! .'. This would cause the generated library to
17215 # depend on '.', always an invalid library. This was fixed in
17216 # development snapshots of GCC prior to 3.0.
17217 case $host_os in
17218 aix4 | aix4.[01] | aix4.[01].*)
17219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17220 echo ' yes '
17221 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17223 else
17224 can_build_shared=no
17227 esac
17228 # Using Import Files as archive members, it is possible to support
17229 # filename-based versioning of shared library archives on AIX. While
17230 # this would work for both with and without runtime linking, it will
17231 # prevent static linking of such archives. So we do filename-based
17232 # shared library versioning with .so extension only, which is used
17233 # when both runtime linking and shared linking is enabled.
17234 # Unfortunately, runtime linking may impact performance, so we do
17235 # not want this to be the default eventually. Also, we use the
17236 # versioned .so libs for executables only if there is the -brtl
17237 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17238 # To allow for filename-based versioning support, we need to create
17239 # libNAME.so.V as an archive file, containing:
17240 # *) an Import File, referring to the versioned filename of the
17241 # archive as well as the shared archive member, telling the
17242 # bitwidth (32 or 64) of that shared object, and providing the
17243 # list of exported symbols of that shared object, eventually
17244 # decorated with the 'weak' keyword
17245 # *) the shared object with the F_LOADONLY flag set, to really avoid
17246 # it being seen by the linker.
17247 # At run time we better use the real file rather than another symlink,
17248 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17250 case $with_aix_soname,$aix_use_runtimelinking in
17251 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17252 # soname into executable. Probably we can add versioning support to
17253 # collect2, so additional links can be useful in future.
17254 aix,yes) # traditional libtool
17255 dynamic_linker='AIX unversionable lib.so'
17256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17257 # instead of lib<name>.a to let people know that these are not
17258 # typical AIX shared libraries.
17259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17261 aix,no) # traditional AIX only
17262 dynamic_linker='AIX lib.a(lib.so.V)'
17263 # We preserve .a as extension for shared libraries through AIX4.2
17264 # and later when we are not doing run time linking.
17265 library_names_spec='$libname$release.a $libname.a'
17266 soname_spec='$libname$release$shared_ext$major'
17268 svr4,*) # full svr4 only
17269 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17270 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17271 # We do not specify a path in Import Files, so LIBPATH fires.
17272 shlibpath_overrides_runpath=yes
17274 *,yes) # both, prefer svr4
17275 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17276 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17277 # unpreferred sharedlib libNAME.a needs extra handling
17278 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"'
17279 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"'
17280 # We do not specify a path in Import Files, so LIBPATH fires.
17281 shlibpath_overrides_runpath=yes
17283 *,no) # both, prefer aix
17284 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17285 library_names_spec='$libname$release.a $libname.a'
17286 soname_spec='$libname$release$shared_ext$major'
17287 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17288 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)'
17289 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"'
17291 esac
17292 shlibpath_var=LIBPATH
17296 amigaos*)
17297 case $host_cpu in
17298 powerpc)
17299 # Since July 2007 AmigaOS4 officially supports .so libraries.
17300 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17303 m68k)
17304 library_names_spec='$libname.ixlibrary $libname.a'
17305 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17306 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'
17308 esac
17311 beos*)
17312 library_names_spec='$libname$shared_ext'
17313 dynamic_linker="$host_os ld.so"
17314 shlibpath_var=LIBRARY_PATH
17317 bsdi[45]*)
17318 version_type=linux # correct to gnu/linux during the next big refactor
17319 need_version=no
17320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17321 soname_spec='$libname$release$shared_ext$major'
17322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17326 # the default ld.so.conf also contains /usr/contrib/lib and
17327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17328 # libtool to hard-code these into programs
17331 cygwin* | mingw* | pw32* | cegcc*)
17332 version_type=windows
17333 shrext_cmds=.dll
17334 need_version=no
17335 need_lib_prefix=no
17337 case $GCC,$cc_basename in
17338 yes,*)
17339 # gcc
17340 library_names_spec='$libname.dll.a'
17341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17342 postinstall_cmds='base_file=`basename \$file`~
17343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17344 dldir=$destdir/`dirname \$dlpath`~
17345 test -d \$dldir || mkdir -p \$dldir~
17346 $install_prog $dir/$dlname \$dldir/$dlname~
17347 chmod a+x \$dldir/$dlname~
17348 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17349 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17352 dlpath=$dir/\$dldll~
17353 $RM \$dlpath'
17354 shlibpath_overrides_runpath=yes
17356 case $host_os in
17357 cygwin*)
17358 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17359 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17362 mingw* | cegcc*)
17363 # MinGW DLLs use traditional 'lib' prefix
17364 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17366 pw32*)
17367 # pw32 DLLs use 'pw' prefix rather than 'lib'
17368 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17370 esac
17371 dynamic_linker='Win32 ld.exe'
17374 *,cl*)
17375 # Native MSVC
17376 libname_spec='$name'
17377 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17378 library_names_spec='$libname.dll.lib'
17380 case $build_os in
17381 mingw*)
17382 sys_lib_search_path_spec=
17383 lt_save_ifs=$IFS
17384 IFS=';'
17385 for lt_path in $LIB
17387 IFS=$lt_save_ifs
17388 # Let DOS variable expansion print the short 8.3 style file name.
17389 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17390 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17391 done
17392 IFS=$lt_save_ifs
17393 # Convert to MSYS style.
17394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17396 cygwin*)
17397 # Convert to unix form, then to dos form, then back to unix form
17398 # but this time dos style (no spaces!) so that the unix form looks
17399 # like /cygdrive/c/PROGRA~1:/cygdr...
17400 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17401 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17402 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17405 sys_lib_search_path_spec=$LIB
17406 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17407 # It is most probably a Windows format PATH.
17408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17409 else
17410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17412 # FIXME: find the short name or the path components, as spaces are
17413 # common. (e.g. "Program Files" -> "PROGRA~1")
17415 esac
17417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17418 postinstall_cmds='base_file=`basename \$file`~
17419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17420 dldir=$destdir/`dirname \$dlpath`~
17421 test -d \$dldir || mkdir -p \$dldir~
17422 $install_prog $dir/$dlname \$dldir/$dlname'
17423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17424 dlpath=$dir/\$dldll~
17425 $RM \$dlpath'
17426 shlibpath_overrides_runpath=yes
17427 dynamic_linker='Win32 link.exe'
17431 # Assume MSVC wrapper
17432 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17433 dynamic_linker='Win32 ld.exe'
17435 esac
17436 # FIXME: first we should search . and the directory the executable is in
17437 shlibpath_var=PATH
17440 darwin* | rhapsody*)
17441 dynamic_linker="$host_os dyld"
17442 version_type=darwin
17443 need_lib_prefix=no
17444 need_version=no
17445 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17446 soname_spec='$libname$release$major$shared_ext'
17447 shlibpath_overrides_runpath=yes
17448 shlibpath_var=DYLD_LIBRARY_PATH
17449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17454 dgux*)
17455 version_type=linux # correct to gnu/linux during the next big refactor
17456 need_lib_prefix=no
17457 need_version=no
17458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17459 soname_spec='$libname$release$shared_ext$major'
17460 shlibpath_var=LD_LIBRARY_PATH
17463 freebsd* | dragonfly*)
17464 # DragonFly does not have aout. When/if they implement a new
17465 # versioning mechanism, adjust this.
17466 if test -x /usr/bin/objformat; then
17467 objformat=`/usr/bin/objformat`
17468 else
17469 case $host_os in
17470 freebsd[23].*) objformat=aout ;;
17471 *) objformat=elf ;;
17472 esac
17474 version_type=freebsd-$objformat
17475 case $version_type in
17476 freebsd-elf*)
17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17478 soname_spec='$libname$release$shared_ext$major'
17479 need_version=no
17480 need_lib_prefix=no
17482 freebsd-*)
17483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17484 need_version=yes
17486 esac
17487 shlibpath_var=LD_LIBRARY_PATH
17488 case $host_os in
17489 freebsd2.*)
17490 shlibpath_overrides_runpath=yes
17492 freebsd3.[01]* | freebsdelf3.[01]*)
17493 shlibpath_overrides_runpath=yes
17494 hardcode_into_libs=yes
17496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17498 shlibpath_overrides_runpath=no
17499 hardcode_into_libs=yes
17501 *) # from 4.6 on, and DragonFly
17502 shlibpath_overrides_runpath=yes
17503 hardcode_into_libs=yes
17505 esac
17508 haiku*)
17509 version_type=linux # correct to gnu/linux during the next big refactor
17510 need_lib_prefix=no
17511 need_version=no
17512 dynamic_linker="$host_os runtime_loader"
17513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514 soname_spec='$libname$release$shared_ext$major'
17515 shlibpath_var=LIBRARY_PATH
17516 shlibpath_overrides_runpath=no
17517 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17518 hardcode_into_libs=yes
17521 hpux9* | hpux10* | hpux11*)
17522 # Give a soname corresponding to the major version so that dld.sl refuses to
17523 # link against other versions.
17524 version_type=sunos
17525 need_lib_prefix=no
17526 need_version=no
17527 case $host_cpu in
17528 ia64*)
17529 shrext_cmds='.so'
17530 hardcode_into_libs=yes
17531 dynamic_linker="$host_os dld.so"
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17535 soname_spec='$libname$release$shared_ext$major'
17536 if test 32 = "$HPUX_IA64_MODE"; then
17537 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17538 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17539 else
17540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17541 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17544 hppa*64*)
17545 shrext_cmds='.sl'
17546 hardcode_into_libs=yes
17547 dynamic_linker="$host_os dld.sl"
17548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17551 soname_spec='$libname$release$shared_ext$major'
17552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17556 shrext_cmds='.sl'
17557 dynamic_linker="$host_os dld.sl"
17558 shlibpath_var=SHLIB_PATH
17559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17561 soname_spec='$libname$release$shared_ext$major'
17563 esac
17564 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17565 postinstall_cmds='chmod 555 $lib'
17566 # or fails outright, so override atomically:
17567 install_override_mode=555
17570 interix[3-9]*)
17571 version_type=linux # correct to gnu/linux during the next big refactor
17572 need_lib_prefix=no
17573 need_version=no
17574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17575 soname_spec='$libname$release$shared_ext$major'
17576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=no
17579 hardcode_into_libs=yes
17582 irix5* | irix6* | nonstopux*)
17583 case $host_os in
17584 nonstopux*) version_type=nonstopux ;;
17586 if test yes = "$lt_cv_prog_gnu_ld"; then
17587 version_type=linux # correct to gnu/linux during the next big refactor
17588 else
17589 version_type=irix
17590 fi ;;
17591 esac
17592 need_lib_prefix=no
17593 need_version=no
17594 soname_spec='$libname$release$shared_ext$major'
17595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17596 case $host_os in
17597 irix5* | nonstopux*)
17598 libsuff= shlibsuff=
17601 case $LD in # libtool.m4 will add one of these switches to LD
17602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17603 libsuff= shlibsuff= libmagic=32-bit;;
17604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17605 libsuff=32 shlibsuff=N32 libmagic=N32;;
17606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17608 *) libsuff= shlibsuff= libmagic=never-match;;
17609 esac
17611 esac
17612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17613 shlibpath_overrides_runpath=no
17614 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17615 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17616 hardcode_into_libs=yes
17619 # No shared lib support for Linux oldld, aout, or coff.
17620 linux*oldld* | linux*aout* | linux*coff*)
17621 dynamic_linker=no
17624 linux*android*)
17625 version_type=none # Android doesn't support versioned libraries.
17626 need_lib_prefix=no
17627 need_version=no
17628 library_names_spec='$libname$release$shared_ext'
17629 soname_spec='$libname$release$shared_ext'
17630 finish_cmds=
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=yes
17634 # This implies no fast_install, which is unacceptable.
17635 # Some rework will be needed to allow for fast_install
17636 # before this can be enabled.
17637 hardcode_into_libs=yes
17639 dynamic_linker='Android linker'
17640 # Don't embed -rpath directories since the linker doesn't support them.
17641 hardcode_libdir_flag_spec_CXX='-L$libdir'
17644 # This must be glibc/ELF.
17645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17646 version_type=linux # correct to gnu/linux during the next big refactor
17647 need_lib_prefix=no
17648 need_version=no
17649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17650 soname_spec='$libname$release$shared_ext$major'
17651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17652 shlibpath_var=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath=no
17655 # Some binutils ld are patched to set DT_RUNPATH
17656 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 lt_cv_shlibpath_overrides_runpath=no
17660 save_LDFLAGS=$LDFLAGS
17661 save_libdir=$libdir
17662 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17663 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665 /* end confdefs.h. */
17668 main ()
17672 return 0;
17674 _ACEOF
17675 if ac_fn_cxx_try_link "$LINENO"; then :
17676 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17677 lt_cv_shlibpath_overrides_runpath=yes
17680 rm -f core conftest.err conftest.$ac_objext \
17681 conftest$ac_exeext conftest.$ac_ext
17682 LDFLAGS=$save_LDFLAGS
17683 libdir=$save_libdir
17687 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17689 # This implies no fast_install, which is unacceptable.
17690 # Some rework will be needed to allow for fast_install
17691 # before this can be enabled.
17692 hardcode_into_libs=yes
17694 # Ideally, we could use ldconfig to report *all* directores which are
17695 # searched for libraries, however this is still not possible. Aside from not
17696 # being certain /sbin/ldconfig is available, command
17697 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17698 # even though it is searched at run-time. Try to do the best guess by
17699 # appending ld.so.conf contents (and includes) to the search path.
17700 if test -f /etc/ld.so.conf; then
17701 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' ' '`
17702 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17705 # We used to test for /lib/ld.so.1 and disable shared libraries on
17706 # powerpc, because MkLinux only supported shared libraries with the
17707 # GNU dynamic linker. Since this was broken with cross compilers,
17708 # most powerpc-linux boxes support dynamic linking these days and
17709 # people can always --disable-shared, the test was removed, and we
17710 # assume the GNU/Linux dynamic linker is in use.
17711 dynamic_linker='GNU/Linux ld.so'
17714 netbsd*)
17715 version_type=sunos
17716 need_lib_prefix=no
17717 need_version=no
17718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17719 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17721 dynamic_linker='NetBSD (a.out) ld.so'
17722 else
17723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17724 soname_spec='$libname$release$shared_ext$major'
17725 dynamic_linker='NetBSD ld.elf_so'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 shlibpath_overrides_runpath=yes
17729 hardcode_into_libs=yes
17732 newsos6)
17733 version_type=linux # correct to gnu/linux during the next big refactor
17734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17735 shlibpath_var=LD_LIBRARY_PATH
17736 shlibpath_overrides_runpath=yes
17739 *nto* | *qnx*)
17740 version_type=qnx
17741 need_lib_prefix=no
17742 need_version=no
17743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17744 soname_spec='$libname$release$shared_ext$major'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=no
17747 hardcode_into_libs=yes
17748 dynamic_linker='ldqnx.so'
17751 openbsd* | bitrig*)
17752 version_type=sunos
17753 sys_lib_dlsearch_path_spec=/usr/lib
17754 need_lib_prefix=no
17755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17756 need_version=no
17757 else
17758 need_version=yes
17760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17762 shlibpath_var=LD_LIBRARY_PATH
17763 shlibpath_overrides_runpath=yes
17766 os2*)
17767 libname_spec='$name'
17768 version_type=windows
17769 shrext_cmds=.dll
17770 need_version=no
17771 need_lib_prefix=no
17772 # OS/2 can only load a DLL with a base name of 8 characters or less.
17773 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17774 v=$($ECHO $release$versuffix | tr -d .-);
17775 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17776 $ECHO $n$v`$shared_ext'
17777 library_names_spec='${libname}_dll.$libext'
17778 dynamic_linker='OS/2 ld.exe'
17779 shlibpath_var=BEGINLIBPATH
17780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17782 postinstall_cmds='base_file=`basename \$file`~
17783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17784 dldir=$destdir/`dirname \$dlpath`~
17785 test -d \$dldir || mkdir -p \$dldir~
17786 $install_prog $dir/$dlname \$dldir/$dlname~
17787 chmod a+x \$dldir/$dlname~
17788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17792 dlpath=$dir/\$dldll~
17793 $RM \$dlpath'
17796 osf3* | osf4* | osf5*)
17797 version_type=osf
17798 need_lib_prefix=no
17799 need_version=no
17800 soname_spec='$libname$release$shared_ext$major'
17801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17807 rdos*)
17808 dynamic_linker=no
17811 solaris*)
17812 version_type=linux # correct to gnu/linux during the next big refactor
17813 need_lib_prefix=no
17814 need_version=no
17815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17816 soname_spec='$libname$release$shared_ext$major'
17817 shlibpath_var=LD_LIBRARY_PATH
17818 shlibpath_overrides_runpath=yes
17819 hardcode_into_libs=yes
17820 # ldd complains unless libraries are executable
17821 postinstall_cmds='chmod +x $lib'
17824 sunos4*)
17825 version_type=sunos
17826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 shlibpath_overrides_runpath=yes
17830 if test yes = "$with_gnu_ld"; then
17831 need_lib_prefix=no
17833 need_version=yes
17836 sysv4 | sysv4.3*)
17837 version_type=linux # correct to gnu/linux during the next big refactor
17838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17839 soname_spec='$libname$release$shared_ext$major'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 case $host_vendor in
17842 sni)
17843 shlibpath_overrides_runpath=no
17844 need_lib_prefix=no
17845 runpath_var=LD_RUN_PATH
17847 siemens)
17848 need_lib_prefix=no
17850 motorola)
17851 need_lib_prefix=no
17852 need_version=no
17853 shlibpath_overrides_runpath=no
17854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17856 esac
17859 sysv4*MP*)
17860 if test -d /usr/nec; then
17861 version_type=linux # correct to gnu/linux during the next big refactor
17862 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17863 soname_spec='$libname$shared_ext.$major'
17864 shlibpath_var=LD_LIBRARY_PATH
17868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17869 version_type=sco
17870 need_lib_prefix=no
17871 need_version=no
17872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17873 soname_spec='$libname$release$shared_ext$major'
17874 shlibpath_var=LD_LIBRARY_PATH
17875 shlibpath_overrides_runpath=yes
17876 hardcode_into_libs=yes
17877 if test yes = "$with_gnu_ld"; then
17878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17879 else
17880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17881 case $host_os in
17882 sco3.2v5*)
17883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17885 esac
17887 sys_lib_dlsearch_path_spec='/usr/lib'
17890 tpf*)
17891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17892 version_type=linux # correct to gnu/linux during the next big refactor
17893 need_lib_prefix=no
17894 need_version=no
17895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 shlibpath_overrides_runpath=no
17898 hardcode_into_libs=yes
17901 uts4*)
17902 version_type=linux # correct to gnu/linux during the next big refactor
17903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17904 soname_spec='$libname$release$shared_ext$major'
17905 shlibpath_var=LD_LIBRARY_PATH
17909 dynamic_linker=no
17911 esac
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17913 $as_echo "$dynamic_linker" >&6; }
17914 test no = "$dynamic_linker" && can_build_shared=no
17916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17917 if test yes = "$GCC"; then
17918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17921 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17922 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17925 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17926 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17929 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17930 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17932 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17933 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17935 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17936 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17979 hardcode_action_CXX=
17980 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17981 test -n "$runpath_var_CXX" ||
17982 test yes = "$hardcode_automatic_CXX"; then
17984 # We can hardcode non-existent directories.
17985 if test no != "$hardcode_direct_CXX" &&
17986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17987 # have to relink, otherwise we might link with an installed library
17988 # when we should be linking with a yet-to-be-installed one
17989 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17990 test no != "$hardcode_minus_L_CXX"; then
17991 # Linking always hardcodes the temporary library directory.
17992 hardcode_action_CXX=relink
17993 else
17994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17995 hardcode_action_CXX=immediate
17997 else
17998 # We cannot hardcode anything, or else we can only hardcode existing
17999 # directories.
18000 hardcode_action_CXX=unsupported
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18003 $as_echo "$hardcode_action_CXX" >&6; }
18005 if test relink = "$hardcode_action_CXX" ||
18006 test yes = "$inherit_rpath_CXX"; then
18007 # Fast installation is not supported
18008 enable_fast_install=no
18009 elif test yes = "$shlibpath_overrides_runpath" ||
18010 test no = "$enable_shared"; then
18011 # Fast installation is not necessary
18012 enable_fast_install=needless
18021 fi # test -n "$compiler"
18023 CC=$lt_save_CC
18024 CFLAGS=$lt_save_CFLAGS
18025 LDCXX=$LD
18026 LD=$lt_save_LD
18027 GCC=$lt_save_GCC
18028 with_gnu_ld=$lt_save_with_gnu_ld
18029 lt_cv_path_LDCXX=$lt_cv_path_LD
18030 lt_cv_path_LD=$lt_save_path_LD
18031 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18032 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18033 fi # test yes != "$_lt_caught_CXX_error"
18035 ac_ext=c
18036 ac_cpp='$CPP $CPPFLAGS'
18037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18042 ac_ext=mm
18043 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18044 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18047 if test -n "$ac_tool_prefix"; then
18048 for ac_prog in g++ objc++ objcxx c++ CXX
18050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18053 $as_echo_n "checking for $ac_word... " >&6; }
18054 if ${ac_cv_prog_OBJCXX+:} false; then :
18055 $as_echo_n "(cached) " >&6
18056 else
18057 if test -n "$OBJCXX"; then
18058 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
18059 else
18060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18061 for as_dir in $PATH
18063 IFS=$as_save_IFS
18064 test -z "$as_dir" && as_dir=.
18065 for ac_exec_ext in '' $ac_executable_extensions; do
18066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18067 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
18068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18069 break 2
18071 done
18072 done
18073 IFS=$as_save_IFS
18077 OBJCXX=$ac_cv_prog_OBJCXX
18078 if test -n "$OBJCXX"; then
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
18080 $as_echo "$OBJCXX" >&6; }
18081 else
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18083 $as_echo "no" >&6; }
18087 test -n "$OBJCXX" && break
18088 done
18090 if test -z "$OBJCXX"; then
18091 ac_ct_OBJCXX=$OBJCXX
18092 for ac_prog in g++ objc++ objcxx c++ CXX
18094 # Extract the first word of "$ac_prog", so it can be a program name with args.
18095 set dummy $ac_prog; ac_word=$2
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18097 $as_echo_n "checking for $ac_word... " >&6; }
18098 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
18099 $as_echo_n "(cached) " >&6
18100 else
18101 if test -n "$ac_ct_OBJCXX"; then
18102 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
18103 else
18104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105 for as_dir in $PATH
18107 IFS=$as_save_IFS
18108 test -z "$as_dir" && as_dir=.
18109 for ac_exec_ext in '' $ac_executable_extensions; do
18110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18111 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
18112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18113 break 2
18115 done
18116 done
18117 IFS=$as_save_IFS
18121 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
18122 if test -n "$ac_ct_OBJCXX"; then
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
18124 $as_echo "$ac_ct_OBJCXX" >&6; }
18125 else
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18127 $as_echo "no" >&6; }
18131 test -n "$ac_ct_OBJCXX" && break
18132 done
18134 if test "x$ac_ct_OBJCXX" = x; then
18135 OBJCXX="g++"
18136 else
18137 case $cross_compiling:$ac_tool_warned in
18138 yes:)
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18141 ac_tool_warned=yes ;;
18142 esac
18143 OBJCXX=$ac_ct_OBJCXX
18147 # Provide some information about the compiler.
18148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
18149 set X $ac_compile
18150 ac_compiler=$2
18151 for ac_option in --version -v -V -qversion; do
18152 { { ac_try="$ac_compiler $ac_option >&5"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156 esac
18157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18158 $as_echo "$ac_try_echo"; } >&5
18159 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18160 ac_status=$?
18161 if test -s conftest.err; then
18162 sed '10a\
18163 ... rest of stderr output deleted ...
18164 10q' conftest.err >conftest.er1
18165 cat conftest.er1 >&5
18167 rm -f conftest.er1 conftest.err
18168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18169 test $ac_status = 0; }
18170 done
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
18173 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
18174 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
18175 $as_echo_n "(cached) " >&6
18176 else
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18181 main ()
18183 #ifndef __GNUC__
18184 choke me
18185 #endif
18188 return 0;
18190 _ACEOF
18191 if ac_fn_objcxx_try_compile "$LINENO"; then :
18192 ac_compiler_gnu=yes
18193 else
18194 ac_compiler_gnu=no
18196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
18201 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
18202 if test $ac_compiler_gnu = yes; then
18203 GOBJCXX=yes
18204 else
18205 GOBJCXX=
18207 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
18208 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
18210 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
18211 if ${ac_cv_prog_objcxx_g+:} false; then :
18212 $as_echo_n "(cached) " >&6
18213 else
18214 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
18215 ac_objcxx_werror_flag=yes
18216 ac_cv_prog_objcxx_g=no
18217 OBJCXXFLAGS="-g"
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18222 main ()
18226 return 0;
18228 _ACEOF
18229 if ac_fn_objcxx_try_compile "$LINENO"; then :
18230 ac_cv_prog_objcxx_g=yes
18231 else
18232 OBJCXXFLAGS=""
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18237 main ()
18241 return 0;
18243 _ACEOF
18244 if ac_fn_objcxx_try_compile "$LINENO"; then :
18246 else
18247 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
18248 OBJCXXFLAGS="-g"
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18253 main ()
18257 return 0;
18259 _ACEOF
18260 if ac_fn_objcxx_try_compile "$LINENO"; then :
18261 ac_cv_prog_objcxx_g=yes
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
18271 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
18272 if test "$ac_test_OBJCXXFLAGS" = set; then
18273 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
18274 elif test $ac_cv_prog_objcxx_g = yes; then
18275 if test "$GOBJCXX" = yes; then
18276 OBJCXXFLAGS="-g -O2"
18277 else
18278 OBJCXXFLAGS="-g"
18280 else
18281 if test "$GOBJCXX" = yes; then
18282 OBJCXXFLAGS="-O2"
18283 else
18284 OBJCXXFLAGS=
18287 ac_ext=c
18288 ac_cpp='$CPP $CPPFLAGS'
18289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18293 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18296 $as_echo_n "checking dependency style of $depcc... " >&6; }
18297 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18301 # We make a subdir and do the tests there. Otherwise we can end up
18302 # making bogus files that we don't know about and never remove. For
18303 # instance it was reported that on HP-UX the gcc test will end up
18304 # making a dummy file named 'D' -- because '-MD' means "put the output
18305 # in D".
18306 rm -rf conftest.dir
18307 mkdir conftest.dir
18308 # Copy depcomp to subdir because otherwise we won't find it if we're
18309 # using a relative directory.
18310 cp "$am_depcomp" conftest.dir
18311 cd conftest.dir
18312 # We will build objects and dependencies in a subdirectory because
18313 # it helps to detect inapplicable dependency modes. For instance
18314 # both Tru64's cc and ICC support -MD to output dependencies as a
18315 # side effect of compilation, but ICC will put the dependencies in
18316 # the current directory while Tru64 will put them in the object
18317 # directory.
18318 mkdir sub
18320 am_cv_OBJCXX_dependencies_compiler_type=none
18321 if test "$am_compiler_list" = ""; then
18322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18324 am__universal=false
18327 for depmode in $am_compiler_list; do
18328 # Setup a source with many dependencies, because some compilers
18329 # like to wrap large dependency lists on column 80 (with \), and
18330 # we should not choose a depcomp mode which is confused by this.
18332 # We need to recreate these files for each test, as the compiler may
18333 # overwrite some of them when testing with obscure command lines.
18334 # This happens at least with the AIX C compiler.
18335 : > sub/conftest.c
18336 for i in 1 2 3 4 5 6; do
18337 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18338 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18339 # Solaris 10 /bin/sh.
18340 echo '/* dummy */' > sub/conftst$i.h
18341 done
18342 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18344 # We check with '-c' and '-o' for the sake of the "dashmstdout"
18345 # mode. It turns out that the SunPro C++ compiler does not properly
18346 # handle '-M -o', and we need to detect this. Also, some Intel
18347 # versions had trouble with output in subdirs.
18348 am__obj=sub/conftest.${OBJEXT-o}
18349 am__minus_obj="-o $am__obj"
18350 case $depmode in
18351 gcc)
18352 # This depmode causes a compiler race in universal mode.
18353 test "$am__universal" = false || continue
18355 nosideeffect)
18356 # After this tag, mechanisms are not by side-effect, so they'll
18357 # only be used when explicitly requested.
18358 if test "x$enable_dependency_tracking" = xyes; then
18359 continue
18360 else
18361 break
18364 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18365 # This compiler won't grok '-c -o', but also, the minuso test has
18366 # not run yet. These depmodes are late enough in the game, and
18367 # so weak that their functioning should not be impacted.
18368 am__obj=conftest.${OBJEXT-o}
18369 am__minus_obj=
18371 none) break ;;
18372 esac
18373 if depmode=$depmode \
18374 source=sub/conftest.c object=$am__obj \
18375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18376 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18377 >/dev/null 2>conftest.err &&
18378 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18380 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18382 # icc doesn't choke on unknown options, it will just issue warnings
18383 # or remarks (even with -Werror). So we grep stderr for any message
18384 # that says an option was ignored or not supported.
18385 # When given -MP, icc 7.0 and 7.1 complain thusly:
18386 # icc: Command line warning: ignoring option '-M'; no argument required
18387 # The diagnosis changed in icc 8.0:
18388 # icc: Command line remark: option '-MP' not supported
18389 if (grep 'ignoring option' conftest.err ||
18390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18391 am_cv_OBJCXX_dependencies_compiler_type=$depmode
18392 break
18395 done
18397 cd ..
18398 rm -rf conftest.dir
18399 else
18400 am_cv_OBJCXX_dependencies_compiler_type=none
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
18405 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
18406 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
18409 test "x$enable_dependency_tracking" != xno \
18410 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
18411 am__fastdepOBJCXX_TRUE=
18412 am__fastdepOBJCXX_FALSE='#'
18413 else
18414 am__fastdepOBJCXX_TRUE='#'
18415 am__fastdepOBJCXX_FALSE=
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the Objective C++ compiler" >&5
18419 $as_echo_n "checking what warning flags to pass to the Objective C++ compiler... " >&6; }
18420 if ${kpse_cv_warning_objcxxflags+:} false; then :
18421 $as_echo_n "(cached) " >&6
18422 else
18423 if test "x$GOBJCXX" = xyes; then
18424 kpse_cv_warning_objcxxflags=
18425 kpse_warn_strings="-Wno-write-strings"
18426 if test "x$enable_compiler_warnings" != xno; then
18427 kpse_cv_warning_objcxxflags="-Wreturn-type"
18428 case `$OBJCXX -dumpversion` in #(
18429 3.* | 4.[012345].*) :
18430 kpse_cv_warning_objcxxflags="-Wimplicit $kpse_cv_warning_objcxxflags" ;; #(
18431 *) :
18433 esac
18434 case `$OBJCXX -dumpversion` in #(
18435 3.[234].* | 4.* | 5.*) :
18436 kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wno-unknown-pragmas" ;; #(
18437 *) :
18439 esac
18440 if test "x$enable_compiler_warnings" != xmin; then
18441 kpse_cv_warning_objcxxflags="-Wall -Wunused $kpse_cv_warning_objcxxflags"
18442 if test "x$enable_compiler_warnings" != xyes; then
18443 kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
18444 kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wcast-qual -Wcast-align"
18445 kpse_warn_strings="-Wwrite-strings"
18446 if test "x$enable_compiler_warnings" != xmax; then
18447 kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags -Wshadow"
18452 kpse_cv_warning_objcxxflags="$kpse_cv_warning_objcxxflags $kpse_warn_strings"
18453 elif test "x$enable_compiler_warnings" = xno; then
18454 kpse_cv_warning_objcxxflags=
18455 else
18456 kpse_cv_warning_objcxxflags= # FIXME: warning flags for non-GNU Objective C++ compilers
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_objcxxflags" >&5
18460 $as_echo "$kpse_cv_warning_objcxxflags" >&6; }
18461 WARNING_OBJCXXFLAGS=$kpse_cv_warning_objcxxflags
18465 # Check whether --enable-cxx-runtime-hack was given.
18466 if test "${enable_cxx_runtime_hack+set}" = set; then :
18467 enableval=$enable_cxx_runtime_hack;
18471 if test "x$GXX:$enable_cxx_runtime_hack" = xyes:yes; then
18473 ac_ext=cpp
18474 ac_cpp='$CXXCPP $CPPFLAGS'
18475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479 for ac_header in iostream
18480 do :
18481 ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
18482 if test "x$ac_cv_header_iostream" = xyes; then :
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_IOSTREAM 1
18485 _ACEOF
18489 done
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statically linking C++ runtime library" >&5
18492 $as_echo_n "checking for statically linking C++ runtime library... " >&6; }
18493 if ${kpse_cv_cxx_hack+:} false; then :
18494 $as_echo_n "(cached) " >&6
18495 else
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498 #ifdef HAVE_IOSTREAM
18499 #include <iostream>
18500 using namespace std;
18501 #else
18502 #include <iostream.h>
18503 #endif
18505 main ()
18507 cout <<"worksok\n";
18509 return 0;
18511 _ACEOF
18512 case $host in #(
18513 *cygwin*) :
18514 flags_try0='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' ;; #(
18515 *) :
18516 flags_try0='-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm'
18517 flags_try1='-lgcc_eh -lgcc -lc -lgcc_eh -lgcc'
18518 flags_try2='-lgcc -lc -lgcc' ;;
18519 esac
18520 kpse_save_LIBS=$LIBS
18521 cpp_link_hack=false
18522 for flags in "$flags_try1" "$flags_try2"; do
18523 LIBS="$kpse_save_LIBS $flags_try0 $flags"
18524 if ac_fn_cxx_try_link "$LINENO"; then :
18525 if test "x$cross_compiling" = xyes; then :
18526 cpp_link_hack=true; break
18527 else
18528 case `(./conftest$ac_exeext; exit) 2>/dev/null` in #(
18529 worksok) :
18530 cpp_link_hack=true; break ;; #(
18531 *) :
18533 esac
18536 rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext
18538 done
18539 LIBS=$kpse_save_LIBS
18540 if $cpp_link_hack; then
18541 kpse_cv_cxx_hack=ok
18542 kpse_cv_cxx_flags="$flags_try0 $flags"
18543 else
18544 kpse_cv_cxx_hack="not supported"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_cxx_hack" >&5
18548 $as_echo "$kpse_cv_cxx_hack" >&6; }
18549 if test "x$kpse_cv_cxx_hack" = xok; then
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: using $kpse_cv_cxx_flags" >&5
18551 $as_echo "$as_me: using $kpse_cv_cxx_flags" >&6;}
18553 ac_ext=c
18554 ac_cpp='$CPP $CPPFLAGS'
18555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18561 if test "x$kpse_cv_cxx_hack" = xok; then
18562 CXXLD='$(top_builddir)/CXXLD.sh'
18563 cxxld_sh="#! ${CONFIG_SHELL-/bin/sh}
18564 # CXXLD.sh. Generated by configure.
18565 set -- $CXX \"\$@\" $kpse_cv_cxx_flags
18566 echo \"\$0:\" \"\$@\"
18567 exec \"\$@\""
18568 ac_config_commands="$ac_config_commands CXXLD.sh"
18570 else
18571 CXXLD='$(CXX)'
18575 # Check whether --enable-libtool-hack was given.
18576 if test "${enable_libtool_hack+set}" = set; then :
18577 enableval=$enable_libtool_hack;
18586 ## texk/web2c/ac/web2c.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
18587 ## configure options for TeX and MF
18589 # Check whether --with-banner-add was given.
18590 if test "${with_banner_add+set}" = set; then :
18591 withval=$with_banner_add;
18594 # Check whether --with-editor was given.
18595 if test "${with_editor+set}" = set; then :
18596 withval=$with_editor;
18598 # Check whether --enable-auto-core was given.
18599 if test "${enable_auto_core+set}" = set; then :
18600 enableval=$enable_auto_core;
18602 # Check whether --enable-dump-share was given.
18603 if test "${enable_dump_share+set}" = set; then :
18604 enableval=$enable_dump_share;
18606 ## configure options for TeX
18607 # Check whether --enable-ipc was given.
18608 if test "${enable_ipc+set}" = set; then :
18609 enableval=$enable_ipc;
18611 # Check whether --enable-tex was given.
18612 if test "${enable_tex+set}" = set; then :
18613 enableval=$enable_tex;
18615 case $enable_tex in #(
18616 yes | no) :
18617 ;; #(
18618 *) :
18619 enable_tex=yes ;;
18620 esac
18622 # Check whether --enable-tex-synctex was given.
18623 if test "${enable_tex_synctex+set}" = set; then :
18624 enableval=$enable_tex_synctex;
18626 # Check whether --enable-etex was given.
18627 if test "${enable_etex+set}" = set; then :
18628 enableval=$enable_etex;
18630 case $enable_etex in #(
18631 yes | no) :
18632 ;; #(
18633 *) :
18634 enable_etex=no ;;
18635 esac
18637 # Check whether --enable-etex-synctex was given.
18638 if test "${enable_etex_synctex+set}" = set; then :
18639 enableval=$enable_etex_synctex;
18641 # Check whether --enable-ptex was given.
18642 if test "${enable_ptex+set}" = set; then :
18643 enableval=$enable_ptex;
18645 case $enable_ptex in #(
18646 yes | no) :
18647 ;; #(
18648 *) :
18649 enable_ptex=yes ;;
18650 esac
18652 # Check whether --enable-ptex-synctex was given.
18653 if test "${enable_ptex_synctex+set}" = set; then :
18654 enableval=$enable_ptex_synctex;
18657 test "x$enable_web2c:$enable_ptex" = xyes:yes && {
18658 need_ptexenc=yes
18660 # Check whether --enable-eptex was given.
18661 if test "${enable_eptex+set}" = set; then :
18662 enableval=$enable_eptex;
18664 case $enable_eptex in #(
18665 yes | no) :
18666 ;; #(
18667 *) :
18668 enable_eptex=yes ;;
18669 esac
18671 # Check whether --enable-eptex-synctex was given.
18672 if test "${enable_eptex_synctex+set}" = set; then :
18673 enableval=$enable_eptex_synctex;
18676 test "x$enable_web2c:$enable_eptex" = xyes:yes && {
18677 need_ptexenc=yes
18679 # Check whether --enable-uptex was given.
18680 if test "${enable_uptex+set}" = set; then :
18681 enableval=$enable_uptex;
18683 case $enable_uptex in #(
18684 yes | no) :
18685 ;; #(
18686 *) :
18687 enable_uptex=yes ;;
18688 esac
18690 # Check whether --enable-uptex-synctex was given.
18691 if test "${enable_uptex_synctex+set}" = set; then :
18692 enableval=$enable_uptex_synctex;
18695 test "x$enable_web2c:$enable_uptex" = xyes:yes && {
18696 need_ptexenc=yes
18698 # Check whether --enable-euptex was given.
18699 if test "${enable_euptex+set}" = set; then :
18700 enableval=$enable_euptex;
18702 case $enable_euptex in #(
18703 yes | no) :
18704 ;; #(
18705 *) :
18706 enable_euptex=yes ;;
18707 esac
18709 # Check whether --enable-euptex-synctex was given.
18710 if test "${enable_euptex_synctex+set}" = set; then :
18711 enableval=$enable_euptex_synctex;
18714 test "x$enable_web2c:$enable_euptex" = xyes:yes && {
18715 need_ptexenc=yes
18717 # Check whether --enable-aleph was given.
18718 if test "${enable_aleph+set}" = set; then :
18719 enableval=$enable_aleph;
18721 case $enable_aleph in #(
18722 yes | no) :
18723 ;; #(
18724 *) :
18725 enable_aleph=yes ;;
18726 esac
18727 # Check whether --enable-pdftex was given.
18728 if test "${enable_pdftex+set}" = set; then :
18729 enableval=$enable_pdftex;
18731 case $enable_pdftex in #(
18732 yes | no) :
18733 ;; #(
18734 *) :
18735 enable_pdftex=yes ;;
18736 esac
18738 # Check whether --enable-pdftex-synctex was given.
18739 if test "${enable_pdftex_synctex+set}" = set; then :
18740 enableval=$enable_pdftex_synctex;
18743 test "x$enable_web2c:$enable_pdftex" = xyes:yes && {
18744 need_xpdf=yes
18745 need_libpng=yes
18747 # Check whether --enable-luatex was given.
18748 if test "${enable_luatex+set}" = set; then :
18749 enableval=$enable_luatex;
18751 case $enable_luatex in #(
18752 yes | no) :
18753 ;; #(
18754 *) :
18755 enable_luatex=yes ;;
18756 esac
18758 test "x$enable_web2c:$enable_luatex" = xyes:yes && {
18759 need_poppler=yes
18760 need_mpfr=yes
18761 need_cairo=yes
18762 need_libpng=yes
18763 need_zziplib=yes
18764 need_lua52=yes
18766 # Check whether --enable-luajittex was given.
18767 if test "${enable_luajittex+set}" = set; then :
18768 enableval=$enable_luajittex;
18770 case $enable_luajittex in #(
18771 yes | no) :
18772 ;; #(
18773 *) :
18774 enable_luajittex=yes ;;
18775 esac
18777 test "x$enable_web2c:$enable_luajittex" = xyes:yes && {
18778 need_poppler=yes
18779 need_mpfr=yes
18780 need_cairo=yes
18781 need_libpng=yes
18782 need_zziplib=yes
18783 need_luajit=yes
18785 # Check whether --enable-mp was given.
18786 if test "${enable_mp+set}" = set; then :
18787 enableval=$enable_mp;
18789 case $enable_mp in #(
18790 yes | no) :
18791 ;; #(
18792 *) :
18793 enable_mp=yes ;;
18794 esac
18796 test "x$enable_web2c:$enable_mp" = xyes:yes && {
18797 need_mpfr=yes
18798 need_cairo=yes
18799 need_libpng=yes
18801 # Check whether --enable-pmp was given.
18802 if test "${enable_pmp+set}" = set; then :
18803 enableval=$enable_pmp;
18805 case $enable_pmp in #(
18806 yes | no) :
18807 ;; #(
18808 *) :
18809 enable_pmp=yes ;;
18810 esac
18812 test "x$enable_web2c:$enable_pmp" = xyes:yes && {
18813 need_mpfr=yes
18814 need_cairo=yes
18815 need_libpng=yes
18816 need_ptexenc=yes
18818 # Check whether --enable-upmp was given.
18819 if test "${enable_upmp+set}" = set; then :
18820 enableval=$enable_upmp;
18822 case $enable_upmp in #(
18823 yes | no) :
18824 ;; #(
18825 *) :
18826 enable_upmp=yes ;;
18827 esac
18829 test "x$enable_web2c:$enable_upmp" = xyes:yes && {
18830 need_mpfr=yes
18831 need_cairo=yes
18832 need_libpng=yes
18833 need_ptexenc=yes
18835 # Check whether --enable-xetex was given.
18836 if test "${enable_xetex+set}" = set; then :
18837 enableval=$enable_xetex;
18839 case $enable_xetex in #(
18840 yes | no) :
18841 ;; #(
18842 *) :
18843 enable_xetex=yes ;;
18844 esac
18846 # Check whether --enable-xetex-synctex was given.
18847 if test "${enable_xetex_synctex+set}" = set; then :
18848 enableval=$enable_xetex_synctex;
18851 test "x$enable_web2c:$enable_xetex" = xyes:yes && {
18852 need_poppler=yes
18853 need_libpng=yes
18854 need_freetype2=yes
18855 need_teckit=yes
18856 need_harfbuzz=yes
18858 ## configure options for MF
18859 # Check whether --enable-mf was given.
18860 if test "${enable_mf+set}" = set; then :
18861 enableval=$enable_mf;
18863 case $enable_mf in #(
18864 yes | no) :
18865 ;; #(
18866 *) :
18867 enable_mf=yes ;;
18868 esac
18870 # Check whether --enable-mf-nowin was given.
18871 if test "${enable_mf_nowin+set}" = set; then :
18872 enableval=$enable_mf_nowin;
18874 case $enable_mf_nowin in #(
18875 yes | no) :
18876 ;; #(
18877 *) :
18878 enable_mf_nowin=yes ;;
18879 esac
18880 # Check whether --enable-mflua was given.
18881 if test "${enable_mflua+set}" = set; then :
18882 enableval=$enable_mflua;
18884 case $enable_mflua in #(
18885 yes | no) :
18886 ;; #(
18887 *) :
18888 enable_mflua=yes ;;
18889 esac
18891 # Check whether --enable-mflua-nowin was given.
18892 if test "${enable_mflua_nowin+set}" = set; then :
18893 enableval=$enable_mflua_nowin;
18895 case $enable_mflua_nowin in #(
18896 yes | no) :
18897 ;; #(
18898 *) :
18899 enable_mflua_nowin=no ;;
18900 esac
18902 test "x$enable_web2c:$enable_mflua" = xyes:yes && {
18903 need_lua52=yes
18905 # Check whether --enable-mfluajit was given.
18906 if test "${enable_mfluajit+set}" = set; then :
18907 enableval=$enable_mfluajit;
18909 case $enable_mfluajit in #(
18910 yes | no) :
18911 ;; #(
18912 *) :
18913 enable_mfluajit=yes ;;
18914 esac
18916 # Check whether --enable-mfluajit-nowin was given.
18917 if test "${enable_mfluajit_nowin+set}" = set; then :
18918 enableval=$enable_mfluajit_nowin;
18920 case $enable_mfluajit_nowin in #(
18921 yes | no) :
18922 ;; #(
18923 *) :
18924 enable_mfluajit_nowin=no ;;
18925 esac
18927 test "x$enable_web2c:$enable_mfluajit" = xyes:yes && {
18928 need_luajit=yes
18931 # Check whether --with-mf-x-toolkit was given.
18932 if test "${with_mf_x_toolkit+set}" = set; then :
18933 withval=$with_mf_x_toolkit;
18935 # Check whether --enable-epsfwin was given.
18936 if test "${enable_epsfwin+set}" = set; then :
18937 enableval=$enable_epsfwin;
18939 # Check whether --enable-hp2627win was given.
18940 if test "${enable_hp2627win+set}" = set; then :
18941 enableval=$enable_hp2627win;
18943 # Check whether --enable-mftalkwin was given.
18944 if test "${enable_mftalkwin+set}" = set; then :
18945 enableval=$enable_mftalkwin;
18947 # Check whether --enable-nextwin was given.
18948 if test "${enable_nextwin+set}" = set; then :
18949 enableval=$enable_nextwin;
18951 # Check whether --enable-regiswin was given.
18952 if test "${enable_regiswin+set}" = set; then :
18953 enableval=$enable_regiswin;
18955 # Check whether --enable-suntoolswin was given.
18956 if test "${enable_suntoolswin+set}" = set; then :
18957 enableval=$enable_suntoolswin;
18959 # Check whether --enable-tektronixwin was given.
18960 if test "${enable_tektronixwin+set}" = set; then :
18961 enableval=$enable_tektronixwin;
18963 # Check whether --enable-unitermwin was given.
18964 if test "${enable_unitermwin+set}" = set; then :
18965 enableval=$enable_unitermwin;
18967 ## configure options for WEB programs
18968 # Check whether --enable-web-progs was given.
18969 if test "${enable_web_progs+set}" = set; then :
18970 enableval=$enable_web_progs;
18972 ## configure option for the SyncTeX library and tool
18973 # Check whether --enable-synctex was given.
18974 if test "${enable_synctex+set}" = set; then :
18975 enableval=$enable_synctex;
18980 if test "x$enable_texlive_build" = xyes; then :
18981 banner_pre='TeX Live'
18982 else
18983 banner_pre='Web2C'
18985 cat >>confdefs.h <<_ACEOF
18986 #define WEB2CVERSION " ($banner_pre $WEB2CVERSION$with_banner_add)"
18987 _ACEOF
18990 for ac_prog in kpsewhich
18992 # Extract the first word of "$ac_prog", so it can be a program name with args.
18993 set dummy $ac_prog; ac_word=$2
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18995 $as_echo_n "checking for $ac_word... " >&6; }
18996 if ${ac_cv_prog_KPSEWHICH+:} false; then :
18997 $as_echo_n "(cached) " >&6
18998 else
18999 if test -n "$KPSEWHICH"; then
19000 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
19001 else
19002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19003 for as_dir in $PATH
19005 IFS=$as_save_IFS
19006 test -z "$as_dir" && as_dir=.
19007 for ac_exec_ext in '' $ac_executable_extensions; do
19008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19009 ac_cv_prog_KPSEWHICH="$ac_prog"
19010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19011 break 2
19013 done
19014 done
19015 IFS=$as_save_IFS
19019 KPSEWHICH=$ac_cv_prog_KPSEWHICH
19020 if test -n "$KPSEWHICH"; then
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5
19022 $as_echo "$KPSEWHICH" >&6; }
19023 else
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19025 $as_echo "no" >&6; }
19029 test -n "$KPSEWHICH" && break
19030 done
19031 test -n "$KPSEWHICH" || KPSEWHICH="false"
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc asm needs underscore" >&5
19035 $as_echo_n "checking whether gcc asm needs underscore... " >&6; }
19036 if ${pb_cv_asm_underscore+:} false; then :
19037 $as_echo_n "(cached) " >&6
19038 else
19040 # Some versions of GCC asm for i386 need an underscore prepended to
19041 # external symbols. Figure out if this is so.
19042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19045 extern char val ;
19046 extern void sub () ;
19047 #if defined (__i386__) && defined (__GNUC__)
19048 asm(" .align 4\n"
19049 ".globl sub\n"
19050 "sub:\n"
19051 " movb \$1,val\n"
19052 " ret\n");
19053 #else
19054 void sub () { val = 1; }
19055 #endif /* assembler */
19056 char val ;
19058 main ()
19060 sub (); return 0;
19062 return 0;
19064 _ACEOF
19065 if ac_fn_c_try_link "$LINENO"; then :
19066 pb_cv_asm_underscore=no
19067 else
19068 pb_cv_asm_underscore=yes
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pb_cv_asm_underscore" >&5
19074 $as_echo "$pb_cv_asm_underscore" >&6; }
19075 if test "x$pb_cv_asm_underscore" = xyes; then
19077 $as_echo "#define ASM_NEEDS_UNDERSCORE 1" >>confdefs.h
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
19082 $as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
19083 if ${kpse_cv_have_win32+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087 /* end confdefs.h. */
19088 #ifndef WIN32
19089 choke me
19090 #endif
19092 main ()
19096 return 0;
19098 _ACEOF
19099 if ac_fn_c_try_compile "$LINENO"; then :
19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19102 #ifndef __MINGW32__
19103 choke me
19104 #endif
19106 main ()
19110 return 0;
19112 _ACEOF
19113 if ac_fn_c_try_compile "$LINENO"; then :
19114 kpse_cv_have_win32=mingw32
19115 else
19116 kpse_cv_have_win32=native
19118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119 else
19120 kpse_cv_have_win32=no
19122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
19125 $as_echo "$kpse_cv_have_win32" >&6; }
19127 if test "x$kpse_cv_have_win32" != xno; then
19128 WIN32_TRUE=
19129 WIN32_FALSE='#'
19130 else
19131 WIN32_TRUE='#'
19132 WIN32_FALSE=
19136 if test "x$kpse_cv_have_win32" = xmingw32; then
19137 MINGW32_TRUE=
19138 MINGW32_FALSE='#'
19139 else
19140 MINGW32_TRUE='#'
19141 MINGW32_FALSE=
19145 if test -r "$srcdir/../texlive/w32_wrapper/callexe.c"; then
19146 WIN32_CALL_TRUE=
19147 WIN32_CALL_FALSE='#'
19148 else
19149 WIN32_CALL_TRUE='#'
19150 WIN32_CALL_FALSE=
19153 if test -z "$WIN32_TRUE"; then :
19154 ac_config_links="$ac_config_links callexe.c:../texlive/w32_wrapper/callexe.c"
19159 case $with_editor in #(
19160 ''|yes|no) :
19161 if test "x$kpse_cv_have_win32" = xno; then :
19162 with_editor="vi +%d '%s'"
19163 else
19164 with_editor='texworks --position=%d \"%s\"'
19165 fi ;; #(
19166 *) :
19168 esac
19170 cat >>confdefs.h <<_ACEOF
19171 #define EDITOR "$with_editor"
19172 _ACEOF
19175 if test "x$enable_auto_core" = xyes; then :
19177 $as_echo "#define FUNNY_CORE_DUMP 1" >>confdefs.h
19181 if test "x$enable_dump_share" = xno; then :
19183 $as_echo "#define NO_DUMP_SHARE 1" >>confdefs.h
19187 case $enable_ipc in #(
19188 yes|no) :
19189 ;; #(
19190 *) :
19191 enable_ipc=yes ;;
19192 esac
19195 if test "x$kpse_cv_have_win32" = xno; then :
19196 kpse_save_LIBS=$LIBS
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
19198 $as_echo_n "checking for library containing connect... " >&6; }
19199 if ${ac_cv_search_connect+:} false; then :
19200 $as_echo_n "(cached) " >&6
19201 else
19202 ac_func_search_save_LIBS=$LIBS
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19206 /* Override any GCC internal prototype to avoid an error.
19207 Use char because int might match the return type of a GCC
19208 builtin and then its argument prototype would still apply. */
19209 #ifdef __cplusplus
19210 extern "C"
19211 #endif
19212 char connect ();
19214 main ()
19216 return connect ();
19218 return 0;
19220 _ACEOF
19221 for ac_lib in '' socket nsl; do
19222 if test -z "$ac_lib"; then
19223 ac_res="none required"
19224 else
19225 ac_res=-l$ac_lib
19226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19228 if ac_fn_c_try_link "$LINENO"; then :
19229 ac_cv_search_connect=$ac_res
19231 rm -f core conftest.err conftest.$ac_objext \
19232 conftest$ac_exeext
19233 if ${ac_cv_search_connect+:} false; then :
19234 break
19236 done
19237 if ${ac_cv_search_connect+:} false; then :
19239 else
19240 ac_cv_search_connect=no
19242 rm conftest.$ac_ext
19243 LIBS=$ac_func_search_save_LIBS
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
19246 $as_echo "$ac_cv_search_connect" >&6; }
19247 ac_res=$ac_cv_search_connect
19248 if test "$ac_res" != no; then :
19249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19253 LIBS=$kpse_save_LIBS
19254 else
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5
19256 $as_echo_n "checking for main in -lwsock32... " >&6; }
19257 if ${ac_cv_lib_wsock32_main+:} false; then :
19258 $as_echo_n "(cached) " >&6
19259 else
19260 ac_check_lib_save_LIBS=$LIBS
19261 LIBS="-lwsock32 $LIBS"
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h. */
19267 main ()
19269 return main ();
19271 return 0;
19273 _ACEOF
19274 if ac_fn_c_try_link "$LINENO"; then :
19275 ac_cv_lib_wsock32_main=yes
19276 else
19277 ac_cv_lib_wsock32_main=no
19279 rm -f core conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 LIBS=$ac_check_lib_save_LIBS
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5
19284 $as_echo "$ac_cv_lib_wsock32_main" >&6; }
19285 if test "x$ac_cv_lib_wsock32_main" = xyes; then :
19286 ac_cv_search_connect=-lwsock32
19287 else
19288 ac_cv_search_connect=no
19293 # Check whether --enable-missing was given.
19294 if test "${enable_missing+set}" = set; then :
19295 enableval=$enable_missing;
19298 case $ac_cv_search_connect in #(
19299 "none required") :
19300 ;; #(
19301 no) :
19302 if test "x$enable_luatex" = xyes; then :
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no socket library: disabling luatex" >&5
19304 $as_echo "$as_me: WARNING: Sorry, no socket library: disabling luatex" >&2;}
19305 if test "x$enable_missing" = xno; then :
19306 as_fn_error $? "terminating." "$LINENO" 5
19309 enable_luatex=no
19312 if test "x$enable_ipc" = xyes; then :
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no socket library: disabling ipc" >&5
19314 $as_echo "$as_me: WARNING: Sorry, no socket library: disabling ipc" >&2;}
19315 if test "x$enable_missing" = xno; then :
19316 as_fn_error $? "terminating." "$LINENO" 5
19319 enable_ipc=no
19321 ;; #(
19322 *) :
19323 socketlibs=$ac_cv_search_connect ;;
19324 esac
19325 if test "x$enable_ipc" = xyes; then
19326 ipc_socketlibs=$socketlibs
19328 $as_echo "#define IPC 1" >>confdefs.h
19332 # We may need additional libraries for luaTeX.
19333 # On Solaris -lnsl for gethostbyname(), -lrt for nanosleep(),
19334 # and maybe -lresolv for inet_aton().
19335 lua_socketlibs=$socketlibs
19336 kpse_save_LIBS=$LIBS
19337 LUA52_DEFINES='-DLUA_COMPAT_MODULE -DLUAI_HASHLIMIT=6'
19339 if test "x$kpse_cv_have_win32" = xno; then
19340 LUA52_DEFINES="$LUA52_DEFINES -DLUA_USE_POSIX"
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19342 $as_echo_n "checking for library containing dlopen... " >&6; }
19343 if ${ac_cv_search_dlopen+:} false; then :
19344 $as_echo_n "(cached) " >&6
19345 else
19346 ac_func_search_save_LIBS=$LIBS
19347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19350 /* Override any GCC internal prototype to avoid an error.
19351 Use char because int might match the return type of a GCC
19352 builtin and then its argument prototype would still apply. */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 char dlopen ();
19358 main ()
19360 return dlopen ();
19362 return 0;
19364 _ACEOF
19365 for ac_lib in '' dl; do
19366 if test -z "$ac_lib"; then
19367 ac_res="none required"
19368 else
19369 ac_res=-l$ac_lib
19370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19372 if ac_fn_c_try_link "$LINENO"; then :
19373 ac_cv_search_dlopen=$ac_res
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext
19377 if ${ac_cv_search_dlopen+:} false; then :
19378 break
19380 done
19381 if ${ac_cv_search_dlopen+:} false; then :
19383 else
19384 ac_cv_search_dlopen=no
19386 rm conftest.$ac_ext
19387 LIBS=$ac_func_search_save_LIBS
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19390 $as_echo "$ac_cv_search_dlopen" >&6; }
19391 ac_res=$ac_cv_search_dlopen
19392 if test "$ac_res" != no; then :
19393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19397 if test "x$ac_cv_search_dlopen" != xno; then
19398 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
19400 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
19401 LUA52_DEFINES="$LUA52_DEFINES -DLUA_USE_DLOPEN"
19408 LUAJIT_DEFINES='-DLUAJIT_ENABLE_LUA52COMPAT -DLUAI_HASHLIMIT=6'
19410 case $host_os:$host_cpu in #(
19411 *darwin*:x86_64) :
19412 LUAJIT_LDEXTRA='-pagezero_size 10000 -image_base 100000000' ;; #(
19413 *) :
19415 esac
19418 LIBS=$kpse_save_LIBS
19419 if test "x$kpse_cv_have_win32" = xno; then
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19421 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19422 if ${ac_cv_search_gethostbyname+:} false; then :
19423 $as_echo_n "(cached) " >&6
19424 else
19425 ac_func_search_save_LIBS=$LIBS
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char gethostbyname ();
19437 main ()
19439 return gethostbyname ();
19441 return 0;
19443 _ACEOF
19444 for ac_lib in '' nsl; do
19445 if test -z "$ac_lib"; then
19446 ac_res="none required"
19447 else
19448 ac_res=-l$ac_lib
19449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19451 if ac_fn_c_try_link "$LINENO"; then :
19452 ac_cv_search_gethostbyname=$ac_res
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext
19456 if ${ac_cv_search_gethostbyname+:} false; then :
19457 break
19459 done
19460 if ${ac_cv_search_gethostbyname+:} false; then :
19462 else
19463 ac_cv_search_gethostbyname=no
19465 rm conftest.$ac_ext
19466 LIBS=$ac_func_search_save_LIBS
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19469 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19470 ac_res=$ac_cv_search_gethostbyname
19471 if test "$ac_res" != no; then :
19472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
19477 $as_echo_n "checking for library containing hstrerror... " >&6; }
19478 if ${ac_cv_search_hstrerror+:} false; then :
19479 $as_echo_n "(cached) " >&6
19480 else
19481 ac_func_search_save_LIBS=$LIBS
19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19483 /* end confdefs.h. */
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19488 #ifdef __cplusplus
19489 extern "C"
19490 #endif
19491 char hstrerror ();
19493 main ()
19495 return hstrerror ();
19497 return 0;
19499 _ACEOF
19500 for ac_lib in '' resolv; do
19501 if test -z "$ac_lib"; then
19502 ac_res="none required"
19503 else
19504 ac_res=-l$ac_lib
19505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19507 if ac_fn_c_try_link "$LINENO"; then :
19508 ac_cv_search_hstrerror=$ac_res
19510 rm -f core conftest.err conftest.$ac_objext \
19511 conftest$ac_exeext
19512 if ${ac_cv_search_hstrerror+:} false; then :
19513 break
19515 done
19516 if ${ac_cv_search_hstrerror+:} false; then :
19518 else
19519 ac_cv_search_hstrerror=no
19521 rm conftest.$ac_ext
19522 LIBS=$ac_func_search_save_LIBS
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
19525 $as_echo "$ac_cv_search_hstrerror" >&6; }
19526 ac_res=$ac_cv_search_hstrerror
19527 if test "$ac_res" != no; then :
19528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
19533 $as_echo_n "checking for library containing inet_aton... " >&6; }
19534 if ${ac_cv_search_inet_aton+:} false; then :
19535 $as_echo_n "(cached) " >&6
19536 else
19537 ac_func_search_save_LIBS=$LIBS
19538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h. */
19541 /* Override any GCC internal prototype to avoid an error.
19542 Use char because int might match the return type of a GCC
19543 builtin and then its argument prototype would still apply. */
19544 #ifdef __cplusplus
19545 extern "C"
19546 #endif
19547 char inet_aton ();
19549 main ()
19551 return inet_aton ();
19553 return 0;
19555 _ACEOF
19556 for ac_lib in '' resolv; do
19557 if test -z "$ac_lib"; then
19558 ac_res="none required"
19559 else
19560 ac_res=-l$ac_lib
19561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19563 if ac_fn_c_try_link "$LINENO"; then :
19564 ac_cv_search_inet_aton=$ac_res
19566 rm -f core conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext
19568 if ${ac_cv_search_inet_aton+:} false; then :
19569 break
19571 done
19572 if ${ac_cv_search_inet_aton+:} false; then :
19574 else
19575 ac_cv_search_inet_aton=no
19577 rm conftest.$ac_ext
19578 LIBS=$ac_func_search_save_LIBS
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
19581 $as_echo "$ac_cv_search_inet_aton" >&6; }
19582 ac_res=$ac_cv_search_inet_aton
19583 if test "$ac_res" != no; then :
19584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19588 LIBS=$kpse_save_LIBS
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
19590 $as_echo_n "checking for library containing nanosleep... " >&6; }
19591 if ${ac_cv_search_nanosleep+:} false; then :
19592 $as_echo_n "(cached) " >&6
19593 else
19594 ac_func_search_save_LIBS=$LIBS
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char nanosleep ();
19606 main ()
19608 return nanosleep ();
19610 return 0;
19612 _ACEOF
19613 for ac_lib in '' rt; do
19614 if test -z "$ac_lib"; then
19615 ac_res="none required"
19616 else
19617 ac_res=-l$ac_lib
19618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19620 if ac_fn_c_try_link "$LINENO"; then :
19621 ac_cv_search_nanosleep=$ac_res
19623 rm -f core conftest.err conftest.$ac_objext \
19624 conftest$ac_exeext
19625 if ${ac_cv_search_nanosleep+:} false; then :
19626 break
19628 done
19629 if ${ac_cv_search_nanosleep+:} false; then :
19631 else
19632 ac_cv_search_nanosleep=no
19634 rm conftest.$ac_ext
19635 LIBS=$ac_func_search_save_LIBS
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
19638 $as_echo "$ac_cv_search_nanosleep" >&6; }
19639 ac_res=$ac_cv_search_nanosleep
19640 if test "$ac_res" != no; then :
19641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19645 LIBS=$kpse_save_LIBS
19646 case $ac_cv_header_dlfcn_h in #(
19647 yes) :
19648 case $ac_cv_search_dlopen in #(
19649 no*) :
19650 ;; #(
19651 *) :
19652 lua_socketlibs="$lua_socketlibs $ac_cv_search_dlopen" ;;
19653 esac ;; #(
19654 *) :
19656 esac
19657 case $ac_cv_search_hstrerror in #(
19658 "none required") :
19659 ;; #(
19660 no) :
19661 if test "x$enable_luatex" = xyes; then :
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no hstrerror(): disabling luatex" >&5
19663 $as_echo "$as_me: WARNING: Sorry, no hstrerror(): disabling luatex" >&2;}
19664 if test "x$enable_missing" = xno; then :
19665 as_fn_error $? "terminating." "$LINENO" 5
19668 enable_luatex=no
19670 ;; #(
19671 *) :
19672 lua_socketlibs="$lua_socketlibs $ac_cv_search_hstrerror" ;;
19673 esac
19674 case $ac_cv_search_inet_aton in #(
19675 "none required") :
19676 ;; #(
19677 no) :
19678 if test "x$enable_luatex" = xyes; then :
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no inet_aton(): disabling luatex" >&5
19680 $as_echo "$as_me: WARNING: Sorry, no inet_aton(): disabling luatex" >&2;}
19681 if test "x$enable_missing" = xno; then :
19682 as_fn_error $? "terminating." "$LINENO" 5
19685 enable_luatex=no
19687 ;; #(
19688 *) :
19689 lua_socketlibs="$lua_socketlibs $ac_cv_search_inet_aton" ;;
19690 esac
19691 case $ac_cv_search_gethostbyname in #(
19692 "none required") :
19693 ;; #(
19694 no) :
19695 if test "x$enable_luatex" = xyes; then :
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no gethostbyname(): disabling luatex" >&5
19697 $as_echo "$as_me: WARNING: Sorry, no gethostbyname(): disabling luatex" >&2;}
19698 if test "x$enable_missing" = xno; then :
19699 as_fn_error $? "terminating." "$LINENO" 5
19702 enable_luatex=no
19704 ;; #(
19705 *) :
19706 lua_socketlibs="$lua_socketlibs $ac_cv_search_gethostbyname" ;;
19707 esac
19708 case $ac_cv_search_nanosleep in #(
19709 "none required") :
19710 ;; #(
19711 no) :
19712 if test "x$enable_luatex" = xyes; then :
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no nanosleep(): disabling luatex" >&5
19714 $as_echo "$as_me: WARNING: Sorry, no nanosleep(): disabling luatex" >&2;}
19715 if test "x$enable_missing" = xno; then :
19716 as_fn_error $? "terminating." "$LINENO" 5
19719 enable_luatex=no
19721 ;; #(
19722 *) :
19723 lua_socketlibs="$lua_socketlibs $ac_cv_search_nanosleep" ;;
19724 esac
19725 else
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19727 $as_echo_n "checking for main in -lws2_32... " >&6; }
19728 if ${ac_cv_lib_ws2_32_main+:} false; then :
19729 $as_echo_n "(cached) " >&6
19730 else
19731 ac_check_lib_save_LIBS=$LIBS
19732 LIBS="-lws2_32 $LIBS"
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19738 main ()
19740 return main ();
19742 return 0;
19744 _ACEOF
19745 if ac_fn_c_try_link "$LINENO"; then :
19746 ac_cv_lib_ws2_32_main=yes
19747 else
19748 ac_cv_lib_ws2_32_main=no
19750 rm -f core conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19755 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19756 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19757 lua_socketlibs="$socketlibs -lws2_32"
19758 else
19759 if test "x$enable_luatex" = xyes; then :
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, no getaddrinfo(): disabling luatex" >&5
19761 $as_echo "$as_me: WARNING: Sorry, no getaddrinfo(): disabling luatex" >&2;}
19762 if test "x$enable_missing" = xno; then :
19763 as_fn_error $? "terminating." "$LINENO" 5
19766 enable_luatex=no
19772 if test "x$ac_cv_header_dlfcn_h" = xyes; then
19773 USE_DLOPEN_TRUE=
19774 USE_DLOPEN_FALSE='#'
19775 else
19776 USE_DLOPEN_TRUE='#'
19777 USE_DLOPEN_FALSE=
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X ApplicationServices framework" >&5
19784 $as_echo_n "checking for Mac OS X ApplicationServices framework... " >&6; }
19785 if ${kpse_cv_have_ApplicationServices+:} false; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19790 #include <ApplicationServices/ApplicationServices.h>
19792 main ()
19794 CTFontRef font
19796 return 0;
19798 _ACEOF
19799 if ac_fn_c_try_compile "$LINENO"; then :
19800 kpse_cv_have_ApplicationServices=yes
19801 else
19802 kpse_cv_have_ApplicationServices=no
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_ApplicationServices" >&5
19807 $as_echo "$kpse_cv_have_ApplicationServices" >&6; }
19808 if test "x$kpse_cv_have_ApplicationServices" = xyes; then :
19810 $as_echo "#define HAVE_APPLICATIONSERVICES 1" >>confdefs.h
19814 if test -n "$ac_tool_prefix"; then
19815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19818 $as_echo_n "checking for $ac_word... " >&6; }
19819 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
19820 $as_echo_n "(cached) " >&6
19821 else
19822 if test -n "$PKG_CONFIG"; then
19823 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
19824 else
19825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19826 for as_dir in $PATH
19828 IFS=$as_save_IFS
19829 test -z "$as_dir" && as_dir=.
19830 for ac_exec_ext in '' $ac_executable_extensions; do
19831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19832 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
19833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19834 break 2
19836 done
19837 done
19838 IFS=$as_save_IFS
19842 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
19843 if test -n "$PKG_CONFIG"; then
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19845 $as_echo "$PKG_CONFIG" >&6; }
19846 else
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19848 $as_echo "no" >&6; }
19853 if test -z "$ac_cv_prog_PKG_CONFIG"; then
19854 ac_ct_PKG_CONFIG=$PKG_CONFIG
19855 # Extract the first word of "pkg-config", so it can be a program name with args.
19856 set dummy pkg-config; ac_word=$2
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19858 $as_echo_n "checking for $ac_word... " >&6; }
19859 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 if test -n "$ac_ct_PKG_CONFIG"; then
19863 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
19864 else
19865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19866 for as_dir in $PATH
19868 IFS=$as_save_IFS
19869 test -z "$as_dir" && as_dir=.
19870 for ac_exec_ext in '' $ac_executable_extensions; do
19871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19872 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
19873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19874 break 2
19876 done
19877 done
19878 IFS=$as_save_IFS
19882 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
19883 if test -n "$ac_ct_PKG_CONFIG"; then
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
19885 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
19886 else
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888 $as_echo "no" >&6; }
19891 if test "x$ac_ct_PKG_CONFIG" = x; then
19892 PKG_CONFIG="false"
19893 else
19894 case $cross_compiling:$ac_tool_warned in
19895 yes:)
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19898 ac_tool_warned=yes ;;
19899 esac
19900 PKG_CONFIG=$ac_ct_PKG_CONFIG
19902 else
19903 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
19907 # Check whether --with-fontconfig-includes was given.
19908 if test "${with_fontconfig_includes+set}" = set; then :
19909 withval=$with_fontconfig_includes;
19912 # Check whether --with-fontconfig-libdir was given.
19913 if test "${with_fontconfig_libdir+set}" = set; then :
19914 withval=$with_fontconfig_libdir;
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed fontconfig headers and library" >&5
19917 $as_echo_n "checking for installed fontconfig headers and library... " >&6; }
19918 if ${kpse_cv_have_fontconfig+:} false; then :
19919 $as_echo_n "(cached) " >&6
19920 else
19921 kpse_save_CPPFLAGS=$CPPFLAGS
19922 kpse_save_LIBS=$LIBS
19923 kpse_cv_fontconfig_includes=
19924 kpse_cv_fontconfig_libs='-lfontconfig'
19925 if test "x$with_fontconfig_includes:$with_fontconfig_libdir" != x:; then
19926 if test "x$with_fontconfig_includes" != x; then
19927 kpse_cv_fontconfig_includes="-I$with_fontconfig_includes"
19929 if test "x$with_fontconfig_libdir" != x; then
19930 kpse_cv_fontconfig_libs="-L$with_fontconfig_libdir $kpse_cv_fontconfig_libs"
19932 elif $PKG_CONFIG fontconfig; then
19933 kpse_cv_fontconfig_includes=`$PKG_CONFIG fontconfig --cflags`
19934 kpse_cv_fontconfig_libs=`$PKG_CONFIG fontconfig --libs`
19936 CPPFLAGS="$kpse_cv_fontconfig_includes $CPPFLAGS"
19937 LIBS="$kpse_cv_fontconfig_libs $LIBS"
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 #include <fontconfig/fontconfig.h>
19942 main ()
19944 FcObjectSet *os; FcInit();
19946 return 0;
19948 _ACEOF
19949 if ac_fn_c_try_link "$LINENO"; then :
19950 kpse_cv_have_fontconfig=yes
19951 else
19952 kpse_cv_have_fontconfig=no
19954 rm -f core conftest.err conftest.$ac_objext \
19955 conftest$ac_exeext conftest.$ac_ext
19956 CPPFLAGS=$kpse_save_CPPFLAGS
19957 LIBS=$kpse_save_LIBS
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_fontconfig" >&5
19960 $as_echo "$kpse_cv_have_fontconfig" >&6; }
19961 if test "x$kpse_cv_have_fontconfig" = xyes; then
19962 FONTCONFIG_INCLUDES=$kpse_cv_fontconfig_includes
19963 FONTCONFIG_LIBS=$kpse_cv_fontconfig_libs
19965 $as_echo "#define HAVE_LIBFONTCONFIG 1" >>confdefs.h
19971 if test "x$kpse_cv_have_ApplicationServices:$kpse_cv_have_fontconfig" = xno:no; then :
19972 if test "x$enable_xetex" = xyes; then :
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, neither ApplicationServices framework nor fontconfig library: disabling xetex" >&5
19974 $as_echo "$as_me: WARNING: Sorry, neither ApplicationServices framework nor fontconfig library: disabling xetex" >&2;}
19975 if test "x$enable_missing" = xno; then :
19976 as_fn_error $? "terminating." "$LINENO" 5
19979 enable_xetex=no
19983 if test "x$kpse_cv_have_ApplicationServices" = xyes; then
19984 XETEX_MACOSX_TRUE=
19985 XETEX_MACOSX_FALSE='#'
19986 else
19987 XETEX_MACOSX_TRUE='#'
19988 XETEX_MACOSX_FALSE=
19992 if test "x$enable_tex" = xyes; then
19993 TEX_TRUE=
19994 TEX_FALSE='#'
19995 else
19996 TEX_TRUE='#'
19997 TEX_FALSE=
20000 case $enable_native_texlive_build:$enable_tex_synctex in #(
20001 yes:no | no:yes | no:no) :
20002 ;; #(
20003 *) :
20004 if test -z "$enable_tex_synctex"; then :
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-tex-synctex=no'" >&5
20006 $as_echo "$as_me: Assuming \`--enable-tex-synctex=no'" >&6;}
20007 else
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-tex-synctex=no' (native TeX Live build)" >&5
20009 $as_echo "$as_me: WARNING: Enforcing \`--enable-tex-synctex=no' (native TeX Live build)" >&2;}
20011 enable_tex_synctex=no ;;
20012 esac
20013 if test "x$enable_tex_synctex" = xyes; then
20014 TEX_SYNCTEX_TRUE=
20015 TEX_SYNCTEX_FALSE='#'
20016 else
20017 TEX_SYNCTEX_TRUE='#'
20018 TEX_SYNCTEX_FALSE=
20020 if test "x$enable_etex" = xyes; then
20021 ETEX_TRUE=
20022 ETEX_FALSE='#'
20023 else
20024 ETEX_TRUE='#'
20025 ETEX_FALSE=
20028 case $enable_native_texlive_build:$enable_etex_synctex in #(
20029 yes:yes | no:yes | no:no) :
20030 ;; #(
20031 *) :
20032 if test -z "$enable_etex_synctex"; then :
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-etex-synctex=yes'" >&5
20034 $as_echo "$as_me: Assuming \`--enable-etex-synctex=yes'" >&6;}
20035 else
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-etex-synctex=yes' (native TeX Live build)" >&5
20037 $as_echo "$as_me: WARNING: Enforcing \`--enable-etex-synctex=yes' (native TeX Live build)" >&2;}
20039 enable_etex_synctex=yes ;;
20040 esac
20041 if test "x$enable_etex_synctex" = xyes; then
20042 ETEX_SYNCTEX_TRUE=
20043 ETEX_SYNCTEX_FALSE='#'
20044 else
20045 ETEX_SYNCTEX_TRUE='#'
20046 ETEX_SYNCTEX_FALSE=
20048 if test "x$enable_ptex" = xyes; then
20049 PTEX_TRUE=
20050 PTEX_FALSE='#'
20051 else
20052 PTEX_TRUE='#'
20053 PTEX_FALSE=
20056 case $enable_native_texlive_build:$enable_ptex_synctex in #(
20057 yes:yes | no:yes | no:no) :
20058 ;; #(
20059 *) :
20060 if test -z "$enable_ptex_synctex"; then :
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-ptex-synctex=yes'" >&5
20062 $as_echo "$as_me: Assuming \`--enable-ptex-synctex=yes'" >&6;}
20063 else
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-ptex-synctex=yes' (native TeX Live build)" >&5
20065 $as_echo "$as_me: WARNING: Enforcing \`--enable-ptex-synctex=yes' (native TeX Live build)" >&2;}
20067 enable_ptex_synctex=yes ;;
20068 esac
20069 if test "x$enable_ptex_synctex" = xyes; then
20070 PTEX_SYNCTEX_TRUE=
20071 PTEX_SYNCTEX_FALSE='#'
20072 else
20073 PTEX_SYNCTEX_TRUE='#'
20074 PTEX_SYNCTEX_FALSE=
20076 if test "x$enable_eptex" = xyes; then
20077 EPTEX_TRUE=
20078 EPTEX_FALSE='#'
20079 else
20080 EPTEX_TRUE='#'
20081 EPTEX_FALSE=
20084 case $enable_native_texlive_build:$enable_eptex_synctex in #(
20085 yes:yes | no:yes | no:no) :
20086 ;; #(
20087 *) :
20088 if test -z "$enable_eptex_synctex"; then :
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-eptex-synctex=yes'" >&5
20090 $as_echo "$as_me: Assuming \`--enable-eptex-synctex=yes'" >&6;}
20091 else
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-eptex-synctex=yes' (native TeX Live build)" >&5
20093 $as_echo "$as_me: WARNING: Enforcing \`--enable-eptex-synctex=yes' (native TeX Live build)" >&2;}
20095 enable_eptex_synctex=yes ;;
20096 esac
20097 if test "x$enable_eptex_synctex" = xyes; then
20098 EPTEX_SYNCTEX_TRUE=
20099 EPTEX_SYNCTEX_FALSE='#'
20100 else
20101 EPTEX_SYNCTEX_TRUE='#'
20102 EPTEX_SYNCTEX_FALSE=
20104 if test "x$enable_uptex" = xyes; then
20105 UPTEX_TRUE=
20106 UPTEX_FALSE='#'
20107 else
20108 UPTEX_TRUE='#'
20109 UPTEX_FALSE=
20112 case $enable_native_texlive_build:$enable_uptex_synctex in #(
20113 yes:yes | no:yes | no:no) :
20114 ;; #(
20115 *) :
20116 if test -z "$enable_uptex_synctex"; then :
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-uptex-synctex=yes'" >&5
20118 $as_echo "$as_me: Assuming \`--enable-uptex-synctex=yes'" >&6;}
20119 else
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-uptex-synctex=yes' (native TeX Live build)" >&5
20121 $as_echo "$as_me: WARNING: Enforcing \`--enable-uptex-synctex=yes' (native TeX Live build)" >&2;}
20123 enable_uptex_synctex=yes ;;
20124 esac
20125 if test "x$enable_uptex_synctex" = xyes; then
20126 UPTEX_SYNCTEX_TRUE=
20127 UPTEX_SYNCTEX_FALSE='#'
20128 else
20129 UPTEX_SYNCTEX_TRUE='#'
20130 UPTEX_SYNCTEX_FALSE=
20132 if test "x$enable_euptex" = xyes; then
20133 EUPTEX_TRUE=
20134 EUPTEX_FALSE='#'
20135 else
20136 EUPTEX_TRUE='#'
20137 EUPTEX_FALSE=
20140 case $enable_native_texlive_build:$enable_euptex_synctex in #(
20141 yes:yes | no:yes | no:no) :
20142 ;; #(
20143 *) :
20144 if test -z "$enable_euptex_synctex"; then :
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-euptex-synctex=yes'" >&5
20146 $as_echo "$as_me: Assuming \`--enable-euptex-synctex=yes'" >&6;}
20147 else
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-euptex-synctex=yes' (native TeX Live build)" >&5
20149 $as_echo "$as_me: WARNING: Enforcing \`--enable-euptex-synctex=yes' (native TeX Live build)" >&2;}
20151 enable_euptex_synctex=yes ;;
20152 esac
20153 if test "x$enable_euptex_synctex" = xyes; then
20154 EUPTEX_SYNCTEX_TRUE=
20155 EUPTEX_SYNCTEX_FALSE='#'
20156 else
20157 EUPTEX_SYNCTEX_TRUE='#'
20158 EUPTEX_SYNCTEX_FALSE=
20160 if test "x$enable_aleph" = xyes; then
20161 ALEPH_TRUE=
20162 ALEPH_FALSE='#'
20163 else
20164 ALEPH_TRUE='#'
20165 ALEPH_FALSE=
20167 if test "x$enable_pdftex" = xyes; then
20168 PDFTEX_TRUE=
20169 PDFTEX_FALSE='#'
20170 else
20171 PDFTEX_TRUE='#'
20172 PDFTEX_FALSE=
20175 case $enable_native_texlive_build:$enable_pdftex_synctex in #(
20176 yes:yes | no:yes | no:no) :
20177 ;; #(
20178 *) :
20179 if test -z "$enable_pdftex_synctex"; then :
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-pdftex-synctex=yes'" >&5
20181 $as_echo "$as_me: Assuming \`--enable-pdftex-synctex=yes'" >&6;}
20182 else
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-pdftex-synctex=yes' (native TeX Live build)" >&5
20184 $as_echo "$as_me: WARNING: Enforcing \`--enable-pdftex-synctex=yes' (native TeX Live build)" >&2;}
20186 enable_pdftex_synctex=yes ;;
20187 esac
20188 if test "x$enable_pdftex_synctex" = xyes; then
20189 PDFTEX_SYNCTEX_TRUE=
20190 PDFTEX_SYNCTEX_FALSE='#'
20191 else
20192 PDFTEX_SYNCTEX_TRUE='#'
20193 PDFTEX_SYNCTEX_FALSE=
20195 if test "x$enable_luatex" = xyes; then
20196 LUATEX_TRUE=
20197 LUATEX_FALSE='#'
20198 else
20199 LUATEX_TRUE='#'
20200 LUATEX_FALSE=
20202 if test "x$enable_luajittex" = xyes; then
20203 LUAJITTEX_TRUE=
20204 LUAJITTEX_FALSE='#'
20205 else
20206 LUAJITTEX_TRUE='#'
20207 LUAJITTEX_FALSE=
20209 if test "x$enable_mp" = xyes; then
20210 MP_TRUE=
20211 MP_FALSE='#'
20212 else
20213 MP_TRUE='#'
20214 MP_FALSE=
20216 if test "x$enable_pmp" = xyes; then
20217 PMP_TRUE=
20218 PMP_FALSE='#'
20219 else
20220 PMP_TRUE='#'
20221 PMP_FALSE=
20223 if test "x$enable_upmp" = xyes; then
20224 UPMP_TRUE=
20225 UPMP_FALSE='#'
20226 else
20227 UPMP_TRUE='#'
20228 UPMP_FALSE=
20230 if test "x$enable_xetex" = xyes; then
20231 XETEX_TRUE=
20232 XETEX_FALSE='#'
20233 else
20234 XETEX_TRUE='#'
20235 XETEX_FALSE=
20238 case $enable_native_texlive_build:$enable_xetex_synctex in #(
20239 yes:yes | no:yes | no:no) :
20240 ;; #(
20241 *) :
20242 if test -z "$enable_xetex_synctex"; then :
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming \`--enable-xetex-synctex=yes'" >&5
20244 $as_echo "$as_me: Assuming \`--enable-xetex-synctex=yes'" >&6;}
20245 else
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enforcing \`--enable-xetex-synctex=yes' (native TeX Live build)" >&5
20247 $as_echo "$as_me: WARNING: Enforcing \`--enable-xetex-synctex=yes' (native TeX Live build)" >&2;}
20249 enable_xetex_synctex=yes ;;
20250 esac
20251 if test "x$enable_xetex_synctex" = xyes; then
20252 XETEX_SYNCTEX_TRUE=
20253 XETEX_SYNCTEX_FALSE='#'
20254 else
20255 XETEX_SYNCTEX_TRUE='#'
20256 XETEX_SYNCTEX_FALSE=
20259 test "x$enable_omfonts" = xno || enable_omfonts=yes
20261 if test "x$enable_aleph:$enable_xetex:$enable_omfonts" = xno:no:yes; then :
20262 enable_otangle=no
20263 else
20264 enable_otangle=yes
20266 if test "x$enable_otangle" = xyes; then
20267 OTANGLE_TRUE=
20268 OTANGLE_FALSE='#'
20269 else
20270 OTANGLE_TRUE='#'
20271 OTANGLE_FALSE=
20274 # Handle --with-mf-x-toolkit and --with-x
20275 case $with_mf_x_toolkit in #(
20276 yes|no) :
20277 ;; #(
20278 '') :
20279 with_mf_x_toolkit=no ;; #(
20280 y|ye) :
20281 with_mf_x_toolkit=yes ;; #(
20282 n) :
20283 with_mf_x_toolkit=no ;; #(
20284 *) :
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown --with-mf-x-toolkit argument \`$with_mf_x_toolkit'; using no." >&5
20286 $as_echo "$as_me: WARNING: unknown --with-mf-x-toolkit argument \`$with_mf_x_toolkit'; using no." >&2;}
20287 with_mf_x_toolkit=no ;;
20288 esac
20289 test "x$with_x_toolkit" = xyes && with_x=yes
20290 test "x$with_x" = xno && with_x_toolkit=no
20292 if test "x$enable_mf" != xno; then
20293 MF_TRUE=
20294 MF_FALSE='#'
20295 else
20296 MF_TRUE='#'
20297 MF_FALSE=
20299 test "x$enable_mf" = xyes && : ${with_x=yes}
20301 if test "x$enable_mf_nowin" != xno; then
20302 MFN_TRUE=
20303 MFN_FALSE='#'
20304 else
20305 MFN_TRUE='#'
20306 MFN_FALSE=
20308 if test "x$enable_mflua" != xno; then
20309 MFLUA_TRUE=
20310 MFLUA_FALSE='#'
20311 else
20312 MFLUA_TRUE='#'
20313 MFLUA_FALSE=
20315 test "x$enable_mflua" = xyes && : ${with_x=yes}
20317 if test "x$enable_mflua_nowin" != xno; then
20318 MFLUAN_TRUE=
20319 MFLUAN_FALSE='#'
20320 else
20321 MFLUAN_TRUE='#'
20322 MFLUAN_FALSE=
20324 if test "x$enable_mfluajit" != xno; then
20325 MFLUAJIT_TRUE=
20326 MFLUAJIT_FALSE='#'
20327 else
20328 MFLUAJIT_TRUE='#'
20329 MFLUAJIT_FALSE=
20331 test "x$enable_mfluajit" = xyes && : ${with_x=yes}
20333 if test "x$enable_mfluajit_nowin" != xno; then
20334 MFLUAJITN_TRUE=
20335 MFLUAJITN_FALSE='#'
20336 else
20337 MFLUAJITN_TRUE='#'
20338 MFLUAJITN_FALSE=
20340 : ${with_x=yes}
20342 # Distinguish no X at all, no toolkit, or toolkit.
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
20344 $as_echo_n "checking for X... " >&6; }
20347 # Check whether --with-x was given.
20348 if test "${with_x+set}" = set; then :
20349 withval=$with_x;
20352 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20353 if test "x$with_x" = xno; then
20354 # The user explicitly disabled X.
20355 have_x=disabled
20356 else
20357 case $x_includes,$x_libraries in #(
20358 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
20359 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
20360 $as_echo_n "(cached) " >&6
20361 else
20362 # One or both of the vars are not set, and there is no cached value.
20363 ac_x_includes=no ac_x_libraries=no
20364 rm -f -r conftest.dir
20365 if mkdir conftest.dir; then
20366 cd conftest.dir
20367 cat >Imakefile <<'_ACEOF'
20368 incroot:
20369 @echo incroot='${INCROOT}'
20370 usrlibdir:
20371 @echo usrlibdir='${USRLIBDIR}'
20372 libdir:
20373 @echo libdir='${LIBDIR}'
20374 _ACEOF
20375 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20376 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
20377 for ac_var in incroot usrlibdir libdir; do
20378 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20379 done
20380 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20381 for ac_extension in a so sl dylib la dll; do
20382 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20383 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20384 ac_im_usrlibdir=$ac_im_libdir; break
20386 done
20387 # Screen out bogus values from the imake configuration. They are
20388 # bogus both because they are the default anyway, and because
20389 # using them would break gcc on systems where it needs fixed includes.
20390 case $ac_im_incroot in
20391 /usr/include) ac_x_includes= ;;
20392 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20393 esac
20394 case $ac_im_usrlibdir in
20395 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
20396 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20397 esac
20399 cd ..
20400 rm -f -r conftest.dir
20403 # Standard set of common directories for X headers.
20404 # Check X11 before X11Rn because it is often a symlink to the current release.
20405 ac_x_header_dirs='
20406 /usr/X11/include
20407 /usr/X11R7/include
20408 /usr/X11R6/include
20409 /usr/X11R5/include
20410 /usr/X11R4/include
20412 /usr/include/X11
20413 /usr/include/X11R7
20414 /usr/include/X11R6
20415 /usr/include/X11R5
20416 /usr/include/X11R4
20418 /usr/local/X11/include
20419 /usr/local/X11R7/include
20420 /usr/local/X11R6/include
20421 /usr/local/X11R5/include
20422 /usr/local/X11R4/include
20424 /usr/local/include/X11
20425 /usr/local/include/X11R7
20426 /usr/local/include/X11R6
20427 /usr/local/include/X11R5
20428 /usr/local/include/X11R4
20430 /usr/X386/include
20431 /usr/x386/include
20432 /usr/XFree86/include/X11
20434 /usr/include
20435 /usr/local/include
20436 /usr/unsupported/include
20437 /usr/athena/include
20438 /usr/local/x11r5/include
20439 /usr/lpp/Xamples/include
20441 /usr/openwin/include
20442 /usr/openwin/share/include'
20444 if test "$ac_x_includes" = no; then
20445 # Guess where to find include files, by looking for Xlib.h.
20446 # First, try using that file with no special directory specified.
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20449 #include <X11/Xlib.h>
20450 _ACEOF
20451 if ac_fn_c_try_cpp "$LINENO"; then :
20452 # We can compile using X headers with no special include directory.
20453 ac_x_includes=
20454 else
20455 for ac_dir in $ac_x_header_dirs; do
20456 if test -r "$ac_dir/X11/Xlib.h"; then
20457 ac_x_includes=$ac_dir
20458 break
20460 done
20462 rm -f conftest.err conftest.i conftest.$ac_ext
20463 fi # $ac_x_includes = no
20465 if test "$ac_x_libraries" = no; then
20466 # Check for the libraries.
20467 # See if we find them without any special options.
20468 # Don't add to $LIBS permanently.
20469 ac_save_LIBS=$LIBS
20470 LIBS="-lX11 $LIBS"
20471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h. */
20473 #include <X11/Xlib.h>
20475 main ()
20477 XrmInitialize ()
20479 return 0;
20481 _ACEOF
20482 if ac_fn_c_try_link "$LINENO"; then :
20483 LIBS=$ac_save_LIBS
20484 # We can link X programs with no special library path.
20485 ac_x_libraries=
20486 else
20487 LIBS=$ac_save_LIBS
20488 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20490 # Don't even attempt the hair of trying to link an X program!
20491 for ac_extension in a so sl dylib la dll; do
20492 if test -r "$ac_dir/libX11.$ac_extension"; then
20493 ac_x_libraries=$ac_dir
20494 break 2
20496 done
20497 done
20499 rm -f core conftest.err conftest.$ac_objext \
20500 conftest$ac_exeext conftest.$ac_ext
20501 fi # $ac_x_libraries = no
20503 case $ac_x_includes,$ac_x_libraries in #(
20504 no,* | *,no | *\'*)
20505 # Didn't find X, or a directory has "'" in its name.
20506 ac_cv_have_x="have_x=no";; #(
20508 # Record where we found X for the cache.
20509 ac_cv_have_x="have_x=yes\
20510 ac_x_includes='$ac_x_includes'\
20511 ac_x_libraries='$ac_x_libraries'"
20512 esac
20514 ;; #(
20515 *) have_x=yes;;
20516 esac
20517 eval "$ac_cv_have_x"
20518 fi # $with_x != no
20520 if test "$have_x" != yes; then
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20522 $as_echo "$have_x" >&6; }
20523 no_x=yes
20524 else
20525 # If each of the values was on the command line, it overrides each guess.
20526 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20527 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20528 # Update the cache value to reflect the command line values.
20529 ac_cv_have_x="have_x=yes\
20530 ac_x_includes='$x_includes'\
20531 ac_x_libraries='$x_libraries'"
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20533 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20536 if test "$no_x" = yes; then
20537 # Not all programs may use this symbol, but it does not hurt to define it.
20539 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20541 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20542 else
20543 if test -n "$x_includes"; then
20544 X_CFLAGS="$X_CFLAGS -I$x_includes"
20547 # It would also be nice to do this for all -L options, not just this one.
20548 if test -n "$x_libraries"; then
20549 X_LIBS="$X_LIBS -L$x_libraries"
20550 # For Solaris; some versions of Sun CC require a space after -R and
20551 # others require no space. Words are not sufficient . . . .
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20553 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20554 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20555 ac_xsave_c_werror_flag=$ac_c_werror_flag
20556 ac_c_werror_flag=yes
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20561 main ()
20565 return 0;
20567 _ACEOF
20568 if ac_fn_c_try_link "$LINENO"; then :
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20570 $as_echo "no" >&6; }
20571 X_LIBS="$X_LIBS -R$x_libraries"
20572 else
20573 LIBS="$ac_xsave_LIBS -R $x_libraries"
20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20578 main ()
20582 return 0;
20584 _ACEOF
20585 if ac_fn_c_try_link "$LINENO"; then :
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20587 $as_echo "yes" >&6; }
20588 X_LIBS="$X_LIBS -R $x_libraries"
20589 else
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20591 $as_echo "neither works" >&6; }
20593 rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20598 ac_c_werror_flag=$ac_xsave_c_werror_flag
20599 LIBS=$ac_xsave_LIBS
20602 # Check for system-dependent libraries X programs must link with.
20603 # Do this before checking for the system-independent R6 libraries
20604 # (-lICE), since we may need -lsocket or whatever for X linking.
20606 if test "$ISC" = yes; then
20607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20608 else
20609 # Martyn Johnson says this is needed for Ultrix, if the X
20610 # libraries were built with DECnet support. And Karl Berry says
20611 # the Alpha needs dnet_stub (dnet does not exist).
20612 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char XOpenDisplay ();
20624 main ()
20626 return XOpenDisplay ();
20628 return 0;
20630 _ACEOF
20631 if ac_fn_c_try_link "$LINENO"; then :
20633 else
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20635 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20636 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20637 $as_echo_n "(cached) " >&6
20638 else
20639 ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-ldnet $LIBS"
20641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20642 /* end confdefs.h. */
20644 /* Override any GCC internal prototype to avoid an error.
20645 Use char because int might match the return type of a GCC
20646 builtin and then its argument prototype would still apply. */
20647 #ifdef __cplusplus
20648 extern "C"
20649 #endif
20650 char dnet_ntoa ();
20652 main ()
20654 return dnet_ntoa ();
20656 return 0;
20658 _ACEOF
20659 if ac_fn_c_try_link "$LINENO"; then :
20660 ac_cv_lib_dnet_dnet_ntoa=yes
20661 else
20662 ac_cv_lib_dnet_dnet_ntoa=no
20664 rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20666 LIBS=$ac_check_lib_save_LIBS
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20669 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20670 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20671 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20674 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20676 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20677 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20678 $as_echo_n "(cached) " >&6
20679 else
20680 ac_check_lib_save_LIBS=$LIBS
20681 LIBS="-ldnet_stub $LIBS"
20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683 /* end confdefs.h. */
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688 #ifdef __cplusplus
20689 extern "C"
20690 #endif
20691 char dnet_ntoa ();
20693 main ()
20695 return dnet_ntoa ();
20697 return 0;
20699 _ACEOF
20700 if ac_fn_c_try_link "$LINENO"; then :
20701 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20702 else
20703 ac_cv_lib_dnet_stub_dnet_ntoa=no
20705 rm -f core conftest.err conftest.$ac_objext \
20706 conftest$ac_exeext conftest.$ac_ext
20707 LIBS=$ac_check_lib_save_LIBS
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20710 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20711 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20712 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20717 rm -f core conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
20719 LIBS="$ac_xsave_LIBS"
20721 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20722 # to get the SysV transport functions.
20723 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20724 # needs -lnsl.
20725 # The nsl library prevents programs from opening the X display
20726 # on Irix 5.2, according to T.E. Dickey.
20727 # The functions gethostbyname, getservbyname, and inet_addr are
20728 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20729 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20730 if test "x$ac_cv_func_gethostbyname" = xyes; then :
20734 if test $ac_cv_func_gethostbyname = no; then
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20736 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20737 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20738 $as_echo_n "(cached) " >&6
20739 else
20740 ac_check_lib_save_LIBS=$LIBS
20741 LIBS="-lnsl $LIBS"
20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743 /* end confdefs.h. */
20745 /* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 char gethostbyname ();
20753 main ()
20755 return gethostbyname ();
20757 return 0;
20759 _ACEOF
20760 if ac_fn_c_try_link "$LINENO"; then :
20761 ac_cv_lib_nsl_gethostbyname=yes
20762 else
20763 ac_cv_lib_nsl_gethostbyname=no
20765 rm -f core conftest.err conftest.$ac_objext \
20766 conftest$ac_exeext conftest.$ac_ext
20767 LIBS=$ac_check_lib_save_LIBS
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20770 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20771 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20775 if test $ac_cv_lib_nsl_gethostbyname = no; then
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20777 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20778 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20779 $as_echo_n "(cached) " >&6
20780 else
20781 ac_check_lib_save_LIBS=$LIBS
20782 LIBS="-lbsd $LIBS"
20783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h. */
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20789 #ifdef __cplusplus
20790 extern "C"
20791 #endif
20792 char gethostbyname ();
20794 main ()
20796 return gethostbyname ();
20798 return 0;
20800 _ACEOF
20801 if ac_fn_c_try_link "$LINENO"; then :
20802 ac_cv_lib_bsd_gethostbyname=yes
20803 else
20804 ac_cv_lib_bsd_gethostbyname=no
20806 rm -f core conftest.err conftest.$ac_objext \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20811 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20812 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20819 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20820 # socket/setsockopt and other routines are undefined under SCO ODT
20821 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20822 # on later versions), says Simon Leinen: it contains gethostby*
20823 # variants that don't use the name server (or something). -lsocket
20824 # must be given before -lnsl if both are needed. We assume that
20825 # if connect needs -lnsl, so does gethostbyname.
20826 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20827 if test "x$ac_cv_func_connect" = xyes; then :
20831 if test $ac_cv_func_connect = no; then
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20833 $as_echo_n "checking for connect in -lsocket... " >&6; }
20834 if ${ac_cv_lib_socket_connect+:} false; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20837 ac_check_lib_save_LIBS=$LIBS
20838 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20840 /* end confdefs.h. */
20842 /* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
20845 #ifdef __cplusplus
20846 extern "C"
20847 #endif
20848 char connect ();
20850 main ()
20852 return connect ();
20854 return 0;
20856 _ACEOF
20857 if ac_fn_c_try_link "$LINENO"; then :
20858 ac_cv_lib_socket_connect=yes
20859 else
20860 ac_cv_lib_socket_connect=no
20862 rm -f core conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
20864 LIBS=$ac_check_lib_save_LIBS
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20867 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20868 if test "x$ac_cv_lib_socket_connect" = xyes; then :
20869 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20874 # Guillermo Gomez says -lposix is necessary on A/UX.
20875 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20876 if test "x$ac_cv_func_remove" = xyes; then :
20880 if test $ac_cv_func_remove = no; then
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20882 $as_echo_n "checking for remove in -lposix... " >&6; }
20883 if ${ac_cv_lib_posix_remove+:} false; then :
20884 $as_echo_n "(cached) " >&6
20885 else
20886 ac_check_lib_save_LIBS=$LIBS
20887 LIBS="-lposix $LIBS"
20888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20891 /* Override any GCC internal prototype to avoid an error.
20892 Use char because int might match the return type of a GCC
20893 builtin and then its argument prototype would still apply. */
20894 #ifdef __cplusplus
20895 extern "C"
20896 #endif
20897 char remove ();
20899 main ()
20901 return remove ();
20903 return 0;
20905 _ACEOF
20906 if ac_fn_c_try_link "$LINENO"; then :
20907 ac_cv_lib_posix_remove=yes
20908 else
20909 ac_cv_lib_posix_remove=no
20911 rm -f core conftest.err conftest.$ac_objext \
20912 conftest$ac_exeext conftest.$ac_ext
20913 LIBS=$ac_check_lib_save_LIBS
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20916 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20917 if test "x$ac_cv_lib_posix_remove" = xyes; then :
20918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20923 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20924 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20925 if test "x$ac_cv_func_shmat" = xyes; then :
20929 if test $ac_cv_func_shmat = no; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20931 $as_echo_n "checking for shmat in -lipc... " >&6; }
20932 if ${ac_cv_lib_ipc_shmat+:} false; then :
20933 $as_echo_n "(cached) " >&6
20934 else
20935 ac_check_lib_save_LIBS=$LIBS
20936 LIBS="-lipc $LIBS"
20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20938 /* end confdefs.h. */
20940 /* Override any GCC internal prototype to avoid an error.
20941 Use char because int might match the return type of a GCC
20942 builtin and then its argument prototype would still apply. */
20943 #ifdef __cplusplus
20944 extern "C"
20945 #endif
20946 char shmat ();
20948 main ()
20950 return shmat ();
20952 return 0;
20954 _ACEOF
20955 if ac_fn_c_try_link "$LINENO"; then :
20956 ac_cv_lib_ipc_shmat=yes
20957 else
20958 ac_cv_lib_ipc_shmat=no
20960 rm -f core conftest.err conftest.$ac_objext \
20961 conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20965 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20966 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20973 # Check for libraries that X11R6 Xt/Xaw programs need.
20974 ac_save_LDFLAGS=$LDFLAGS
20975 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20976 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20977 # check for ICE first), but we must link in the order -lSM -lICE or
20978 # we get undefined symbols. So assume we have SM if we have ICE.
20979 # These have to be linked with before -lX11, unlike the other
20980 # libraries we check for below, so use a different variable.
20981 # John Interrante, Karl Berry
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20983 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20984 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20985 $as_echo_n "(cached) " >&6
20986 else
20987 ac_check_lib_save_LIBS=$LIBS
20988 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20992 /* Override any GCC internal prototype to avoid an error.
20993 Use char because int might match the return type of a GCC
20994 builtin and then its argument prototype would still apply. */
20995 #ifdef __cplusplus
20996 extern "C"
20997 #endif
20998 char IceConnectionNumber ();
21000 main ()
21002 return IceConnectionNumber ();
21004 return 0;
21006 _ACEOF
21007 if ac_fn_c_try_link "$LINENO"; then :
21008 ac_cv_lib_ICE_IceConnectionNumber=yes
21009 else
21010 ac_cv_lib_ICE_IceConnectionNumber=no
21012 rm -f core conftest.err conftest.$ac_objext \
21013 conftest$ac_exeext conftest.$ac_ext
21014 LIBS=$ac_check_lib_save_LIBS
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21017 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21018 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
21019 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21022 LDFLAGS=$ac_save_LDFLAGS
21026 if test "x$with_x" = xyes; then
21027 if test "x$no_x" = xyes; then
21028 as_fn_error $? "Sorry, could not find X include and library files required for Metafont." "$LINENO" 5
21030 test -n "$x_libraries" && XLFLAG="-L$x_libraries"
21031 wlibs="$XLFLAG -lX11"
21032 if test -z "$x_ext_lib"; then # allow envvar override
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XextCreateExtension in -lXext" >&5
21034 $as_echo_n "checking for XextCreateExtension in -lXext... " >&6; }
21035 if ${ac_cv_lib_Xext_XextCreateExtension+:} false; then :
21036 $as_echo_n "(cached) " >&6
21037 else
21038 ac_check_lib_save_LIBS=$LIBS
21039 LIBS="-lXext $wlibs $X_EXTRA_LIBS $LIBS"
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21043 /* Override any GCC internal prototype to avoid an error.
21044 Use char because int might match the return type of a GCC
21045 builtin and then its argument prototype would still apply. */
21046 #ifdef __cplusplus
21047 extern "C"
21048 #endif
21049 char XextCreateExtension ();
21051 main ()
21053 return XextCreateExtension ();
21055 return 0;
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 ac_cv_lib_Xext_XextCreateExtension=yes
21060 else
21061 ac_cv_lib_Xext_XextCreateExtension=no
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21065 LIBS=$ac_check_lib_save_LIBS
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
21068 $as_echo "$ac_cv_lib_Xext_XextCreateExtension" >&6; }
21069 if test "x$ac_cv_lib_Xext_XextCreateExtension" = xyes; then :
21070 x_ext_lib=-lXext
21074 test "x$with_mf_x_toolkit" = xyes && x_tool_libs="-lXt"
21076 $as_echo "#define X11WIN 1" >>confdefs.h
21079 if test "x$with_mf_x_toolkit" = xyes; then
21080 MFXT_TRUE=
21081 MFXT_FALSE='#'
21082 else
21083 MFXT_TRUE='#'
21084 MFXT_FALSE=
21091 if test "x$enable_epsfwin" = xyes; then :
21093 $as_echo "#define EPSFWIN /**/" >>confdefs.h
21096 if test "x$enable_hp2627win" = xyes; then :
21098 $as_echo "#define HP2627WIN /**/" >>confdefs.h
21101 if test "x$enable_mftalkwin" = xyes; then :
21103 $as_echo "#define MFTALKWIN /**/" >>confdefs.h
21106 if test "x$enable_nextwin" = xyes; then :
21108 $as_echo "#define NEXTWIN /**/" >>confdefs.h
21111 if test "x$enable_regiswin" = xyes; then :
21113 $as_echo "#define REGISWIN /**/" >>confdefs.h
21116 if test "x$enable_suntoolswin" = xyes; then :
21118 $as_echo "#define SUNWIN /**/" >>confdefs.h
21121 if test "x$enable_tektronixwin" = xyes; then :
21123 $as_echo "#define TEKTRONIXWIN /**/" >>confdefs.h
21126 if test "x$enable_unitermwin" = xyes; then :
21128 $as_echo "#define UNITERMWIN /**/" >>confdefs.h
21132 if test "x$enable_web_progs" != xno; then
21133 WEB_TRUE=
21134 WEB_FALSE='#'
21135 else
21136 WEB_TRUE='#'
21137 WEB_FALSE=
21141 if test "x$enable_ptex:$enable_eptex" = xno:no; then :
21142 enable_pweb_progs=no
21143 else
21144 enable_pweb_progs=$enable_web_progs
21146 if test "x$enable_pweb_progs" != xno; then
21147 PWEB_TRUE=
21148 PWEB_FALSE='#'
21149 else
21150 PWEB_TRUE='#'
21151 PWEB_FALSE=
21155 if test "x$enable_uptex:$enable_euptex" = xno:no; then :
21156 enable_upweb_progs=no
21157 else
21158 enable_upweb_progs=$enable_web_progs
21160 if test "x$enable_upweb_progs" != xno; then
21161 UPWEB_TRUE=
21162 UPWEB_FALSE='#'
21163 else
21164 UPWEB_TRUE='#'
21165 UPWEB_FALSE=
21169 for ac_prog in 'bison -y' byacc
21171 # Extract the first word of "$ac_prog", so it can be a program name with args.
21172 set dummy $ac_prog; ac_word=$2
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21174 $as_echo_n "checking for $ac_word... " >&6; }
21175 if ${ac_cv_prog_YACC+:} false; then :
21176 $as_echo_n "(cached) " >&6
21177 else
21178 if test -n "$YACC"; then
21179 ac_cv_prog_YACC="$YACC" # Let the user override the test.
21180 else
21181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182 for as_dir in $PATH
21184 IFS=$as_save_IFS
21185 test -z "$as_dir" && as_dir=.
21186 for ac_exec_ext in '' $ac_executable_extensions; do
21187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21188 ac_cv_prog_YACC="$ac_prog"
21189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21190 break 2
21192 done
21193 done
21194 IFS=$as_save_IFS
21198 YACC=$ac_cv_prog_YACC
21199 if test -n "$YACC"; then
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
21201 $as_echo "$YACC" >&6; }
21202 else
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204 $as_echo "no" >&6; }
21208 test -n "$YACC" && break
21209 done
21210 test -n "$YACC" || YACC="yacc"
21212 for ac_prog in flex lex
21214 # Extract the first word of "$ac_prog", so it can be a program name with args.
21215 set dummy $ac_prog; ac_word=$2
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21217 $as_echo_n "checking for $ac_word... " >&6; }
21218 if ${ac_cv_prog_LEX+:} false; then :
21219 $as_echo_n "(cached) " >&6
21220 else
21221 if test -n "$LEX"; then
21222 ac_cv_prog_LEX="$LEX" # Let the user override the test.
21223 else
21224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21225 for as_dir in $PATH
21227 IFS=$as_save_IFS
21228 test -z "$as_dir" && as_dir=.
21229 for ac_exec_ext in '' $ac_executable_extensions; do
21230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21231 ac_cv_prog_LEX="$ac_prog"
21232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21233 break 2
21235 done
21236 done
21237 IFS=$as_save_IFS
21241 LEX=$ac_cv_prog_LEX
21242 if test -n "$LEX"; then
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
21244 $as_echo "$LEX" >&6; }
21245 else
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21247 $as_echo "no" >&6; }
21251 test -n "$LEX" && break
21252 done
21253 test -n "$LEX" || LEX=":"
21255 if test "x$LEX" != "x:"; then
21256 cat >conftest.l <<_ACEOF
21258 a { ECHO; }
21259 b { REJECT; }
21260 c { yymore (); }
21261 d { yyless (1); }
21262 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
21263 yyless ((input () != 0)); }
21264 f { unput (yytext[0]); }
21265 . { BEGIN INITIAL; }
21267 #ifdef YYTEXT_POINTER
21268 extern char *yytext;
21269 #endif
21271 main (void)
21273 return ! yylex () + ! yywrap ();
21275 _ACEOF
21276 { { ac_try="$LEX conftest.l"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280 esac
21281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21282 $as_echo "$ac_try_echo"; } >&5
21283 (eval "$LEX conftest.l") 2>&5
21284 ac_status=$?
21285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21286 test $ac_status = 0; }
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
21288 $as_echo_n "checking lex output file root... " >&6; }
21289 if ${ac_cv_prog_lex_root+:} false; then :
21290 $as_echo_n "(cached) " >&6
21291 else
21293 if test -f lex.yy.c; then
21294 ac_cv_prog_lex_root=lex.yy
21295 elif test -f lexyy.c; then
21296 ac_cv_prog_lex_root=lexyy
21297 else
21298 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21302 $as_echo "$ac_cv_prog_lex_root" >&6; }
21303 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21305 if test -z "${LEXLIB+set}"; then
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
21307 $as_echo_n "checking lex library... " >&6; }
21308 if ${ac_cv_lib_lex+:} false; then :
21309 $as_echo_n "(cached) " >&6
21310 else
21312 ac_save_LIBS=$LIBS
21313 ac_cv_lib_lex='none needed'
21314 for ac_lib in '' -lfl -ll; do
21315 LIBS="$ac_lib $ac_save_LIBS"
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21318 `cat $LEX_OUTPUT_ROOT.c`
21319 _ACEOF
21320 if ac_fn_c_try_link "$LINENO"; then :
21321 ac_cv_lib_lex=$ac_lib
21323 rm -f core conftest.err conftest.$ac_objext \
21324 conftest$ac_exeext conftest.$ac_ext
21325 test "$ac_cv_lib_lex" != 'none needed' && break
21326 done
21327 LIBS=$ac_save_LIBS
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
21331 $as_echo "$ac_cv_lib_lex" >&6; }
21332 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
21337 $as_echo_n "checking whether yytext is a pointer... " >&6; }
21338 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
21339 $as_echo_n "(cached) " >&6
21340 else
21341 # POSIX says lex can declare yytext either as a pointer or an array; the
21342 # default is implementation-dependent. Figure out which it is, since
21343 # not all implementations provide the %pointer and %array declarations.
21344 ac_cv_prog_lex_yytext_pointer=no
21345 ac_save_LIBS=$LIBS
21346 LIBS="$LEXLIB $ac_save_LIBS"
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21350 #define YYTEXT_POINTER 1
21351 `cat $LEX_OUTPUT_ROOT.c`
21352 _ACEOF
21353 if ac_fn_c_try_link "$LINENO"; then :
21354 ac_cv_prog_lex_yytext_pointer=yes
21356 rm -f core conftest.err conftest.$ac_objext \
21357 conftest$ac_exeext conftest.$ac_ext
21358 LIBS=$ac_save_LIBS
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
21362 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
21363 if test $ac_cv_prog_lex_yytext_pointer = yes; then
21365 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
21368 rm -f conftest.l $LEX_OUTPUT_ROOT.c
21372 # Work around a problem with Flex Version 2.5.31 which needs -l flag.
21373 # Since all recent versions of flex support -l, don't check for the
21374 # specific version, but check that at least "--version" is supported.
21375 # We also want to catch LEX=/some/where/flex, so:
21376 case $LEX in
21377 *flex) $LEX --version >/dev/null 2>&1 && LEX="$LEX -l" ;;
21378 esac
21381 # Needed on A/UX 3.0. I don't want to pull in other -lposix's, though.
21382 # From: bernt@weinberg.pop.bio.aau.dk (Bernt Guldbrandtsen)
21383 if test `(uname) 2>/dev/null` = aux; then
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigemptyset in -lposix" >&5
21385 $as_echo_n "checking for sigemptyset in -lposix... " >&6; }
21386 if ${ac_cv_lib_posix_sigemptyset+:} false; then :
21387 $as_echo_n "(cached) " >&6
21388 else
21389 ac_check_lib_save_LIBS=$LIBS
21390 LIBS="-lposix $LIBS"
21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21394 /* Override any GCC internal prototype to avoid an error.
21395 Use char because int might match the return type of a GCC
21396 builtin and then its argument prototype would still apply. */
21397 #ifdef __cplusplus
21398 extern "C"
21399 #endif
21400 char sigemptyset ();
21402 main ()
21404 return sigemptyset ();
21406 return 0;
21408 _ACEOF
21409 if ac_fn_c_try_link "$LINENO"; then :
21410 ac_cv_lib_posix_sigemptyset=yes
21411 else
21412 ac_cv_lib_posix_sigemptyset=no
21414 rm -f core conftest.err conftest.$ac_objext \
21415 conftest$ac_exeext conftest.$ac_ext
21416 LIBS=$ac_check_lib_save_LIBS
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_sigemptyset" >&5
21419 $as_echo "$ac_cv_lib_posix_sigemptyset" >&6; }
21420 if test "x$ac_cv_lib_posix_sigemptyset" = xyes; then :
21421 cat >>confdefs.h <<_ACEOF
21422 #define HAVE_LIBPOSIX 1
21423 _ACEOF
21425 LIBS="-lposix $LIBS"
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21432 $as_echo_n "checking whether char is unsigned... " >&6; }
21433 if ${ac_cv_c_char_unsigned+:} false; then :
21434 $as_echo_n "(cached) " >&6
21435 else
21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21438 $ac_includes_default
21440 main ()
21442 static int test_array [1 - 2 * !(((char) -1) < 0)];
21443 test_array [0] = 0;
21444 return test_array [0];
21447 return 0;
21449 _ACEOF
21450 if ac_fn_c_try_compile "$LINENO"; then :
21451 ac_cv_c_char_unsigned=no
21452 else
21453 ac_cv_c_char_unsigned=yes
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21458 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21459 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21460 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21464 # The cast to long int works around a bug in the HP C Compiler
21465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21467 # This bug is HP SR number 8606223364.
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21469 $as_echo_n "checking size of int... " >&6; }
21470 if ${ac_cv_sizeof_int+:} false; then :
21471 $as_echo_n "(cached) " >&6
21472 else
21473 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21475 else
21476 if test "$ac_cv_type_int" = yes; then
21477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21479 as_fn_error 77 "cannot compute sizeof (int)
21480 See \`config.log' for more details" "$LINENO" 5; }
21481 else
21482 ac_cv_sizeof_int=0
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21488 $as_echo "$ac_cv_sizeof_int" >&6; }
21492 cat >>confdefs.h <<_ACEOF
21493 #define SIZEOF_INT $ac_cv_sizeof_int
21494 _ACEOF
21497 if test $ac_cv_sizeof_int -lt 4; then
21498 as_fn_error $? "Sorry, need \`int' with at least 4 bytes." "$LINENO" 5
21500 # The cast to long int works around a bug in the HP C Compiler
21501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21503 # This bug is HP SR number 8606223364.
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21505 $as_echo_n "checking size of long... " >&6; }
21506 if ${ac_cv_sizeof_long+:} false; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21511 else
21512 if test "$ac_cv_type_long" = yes; then
21513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21515 as_fn_error 77 "cannot compute sizeof (long)
21516 See \`config.log' for more details" "$LINENO" 5; }
21517 else
21518 ac_cv_sizeof_long=0
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21524 $as_echo "$ac_cv_sizeof_long" >&6; }
21528 cat >>confdefs.h <<_ACEOF
21529 #define SIZEOF_LONG $ac_cv_sizeof_long
21530 _ACEOF
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
21534 $as_echo_n "checking for library containing pow... " >&6; }
21535 if ${ac_cv_search_pow+:} false; then :
21536 $as_echo_n "(cached) " >&6
21537 else
21538 ac_func_search_save_LIBS=$LIBS
21539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h. */
21542 /* Override any GCC internal prototype to avoid an error.
21543 Use char because int might match the return type of a GCC
21544 builtin and then its argument prototype would still apply. */
21545 #ifdef __cplusplus
21546 extern "C"
21547 #endif
21548 char pow ();
21550 main ()
21552 return pow ();
21554 return 0;
21556 _ACEOF
21557 for ac_lib in '' m; do
21558 if test -z "$ac_lib"; then
21559 ac_res="none required"
21560 else
21561 ac_res=-l$ac_lib
21562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21564 if ac_fn_c_try_link "$LINENO"; then :
21565 ac_cv_search_pow=$ac_res
21567 rm -f core conftest.err conftest.$ac_objext \
21568 conftest$ac_exeext
21569 if ${ac_cv_search_pow+:} false; then :
21570 break
21572 done
21573 if ${ac_cv_search_pow+:} false; then :
21575 else
21576 ac_cv_search_pow=no
21578 rm conftest.$ac_ext
21579 LIBS=$ac_func_search_save_LIBS
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
21582 $as_echo "$ac_cv_search_pow" >&6; }
21583 ac_res=$ac_cv_search_pow
21584 if test "$ac_res" != no; then :
21585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21589 for ac_func in access atoi fmax ftime gettimeofday mkdtemp setlocale strerror strlcat strlcpy strndup
21590 do :
21591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21594 cat >>confdefs.h <<_ACEOF
21595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21596 _ACEOF
21599 done
21601 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21602 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21603 ac_have_decl=1
21604 else
21605 ac_have_decl=0
21608 cat >>confdefs.h <<_ACEOF
21609 #define HAVE_DECL_STRNDUP $ac_have_decl
21610 _ACEOF
21612 for ac_header in errno.h langinfo.h locale.h sys/time.h sys/timeb.h sys/wait.h time.h
21613 do :
21614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21615 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21617 cat >>confdefs.h <<_ACEOF
21618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21619 _ACEOF
21623 done
21625 # The cast to long int works around a bug in the HP C Compiler
21626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21628 # This bug is HP SR number 8606223364.
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
21630 $as_echo_n "checking size of void *... " >&6; }
21631 if ${ac_cv_sizeof_void_p+:} false; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
21636 else
21637 if test "$ac_cv_type_void_p" = yes; then
21638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21640 as_fn_error 77 "cannot compute sizeof (void *)
21641 See \`config.log' for more details" "$LINENO" 5; }
21642 else
21643 ac_cv_sizeof_void_p=0
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
21649 $as_echo "$ac_cv_sizeof_void_p" >&6; }
21653 cat >>confdefs.h <<_ACEOF
21654 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21655 _ACEOF
21659 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
21660 if test "x$ac_cv_type_uintptr_t" = xyes; then :
21662 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
21664 else
21665 for ac_type in 'unsigned int' 'unsigned long int' \
21666 'unsigned long long int'; do
21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668 /* end confdefs.h. */
21669 $ac_includes_default
21671 main ()
21673 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21674 test_array [0] = 0;
21675 return test_array [0];
21678 return 0;
21680 _ACEOF
21681 if ac_fn_c_try_compile "$LINENO"; then :
21683 cat >>confdefs.h <<_ACEOF
21684 #define uintptr_t $ac_type
21685 _ACEOF
21687 ac_type=
21689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21690 test -z "$ac_type" && break
21691 done
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
21697 $as_echo_n "checking for long double... " >&6; }
21698 if ${ac_cv_type_long_double+:} false; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 if test "$GCC" = yes; then
21702 ac_cv_type_long_double=yes
21703 else
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h. */
21706 /* The Stardent Vistra knows sizeof (long double), but does
21707 not support it. */
21708 long double foo = 0.0L;
21710 main ()
21712 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
21713 sizeof (double) <= sizeof (long double))];
21714 test_array [0] = 0;
21715 return test_array [0];
21718 return 0;
21720 _ACEOF
21721 if ac_fn_c_try_compile "$LINENO"; then :
21722 ac_cv_type_long_double=yes
21723 else
21724 ac_cv_type_long_double=no
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
21730 $as_echo "$ac_cv_type_long_double" >&6; }
21731 if test $ac_cv_type_long_double = yes; then
21733 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21738 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21739 if ${ac_cv_header_stdbool_h+:} false; then :
21740 $as_echo_n "(cached) " >&6
21741 else
21742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21743 /* end confdefs.h. */
21745 #include <stdbool.h>
21746 #ifndef bool
21747 "error: bool is not defined"
21748 #endif
21749 #ifndef false
21750 "error: false is not defined"
21751 #endif
21752 #if false
21753 "error: false is not 0"
21754 #endif
21755 #ifndef true
21756 "error: true is not defined"
21757 #endif
21758 #if true != 1
21759 "error: true is not 1"
21760 #endif
21761 #ifndef __bool_true_false_are_defined
21762 "error: __bool_true_false_are_defined is not defined"
21763 #endif
21765 struct s { _Bool s: 1; _Bool t; } s;
21767 char a[true == 1 ? 1 : -1];
21768 char b[false == 0 ? 1 : -1];
21769 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21770 char d[(bool) 0.5 == true ? 1 : -1];
21771 /* See body of main program for 'e'. */
21772 char f[(_Bool) 0.0 == false ? 1 : -1];
21773 char g[true];
21774 char h[sizeof (_Bool)];
21775 char i[sizeof s.t];
21776 enum { j = false, k = true, l = false * true, m = true * 256 };
21777 /* The following fails for
21778 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21779 _Bool n[m];
21780 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21781 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21782 /* Catch a bug in an HP-UX C compiler. See
21783 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21784 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21786 _Bool q = true;
21787 _Bool *pq = &q;
21790 main ()
21793 bool e = &s;
21794 *pq |= q;
21795 *pq |= ! q;
21796 /* Refer to every declared value, to avoid compiler optimizations. */
21797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21798 + !m + !n + !o + !p + !q + !pq);
21801 return 0;
21803 _ACEOF
21804 if ac_fn_c_try_compile "$LINENO"; then :
21805 ac_cv_header_stdbool_h=yes
21806 else
21807 ac_cv_header_stdbool_h=no
21809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21812 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21813 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21814 if test "x$ac_cv_type__Bool" = xyes; then :
21816 cat >>confdefs.h <<_ACEOF
21817 #define HAVE__BOOL 1
21818 _ACEOF
21824 if test $ac_cv_header_stdbool_h = yes; then
21826 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21832 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21833 if ${ac_cv_c_bigendian+:} false; then :
21834 $as_echo_n "(cached) " >&6
21835 else
21836 ac_cv_c_bigendian=unknown
21837 # See if we're dealing with a universal compiler.
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839 /* end confdefs.h. */
21840 #ifndef __APPLE_CC__
21841 not a universal capable compiler
21842 #endif
21843 typedef int dummy;
21845 _ACEOF
21846 if ac_fn_c_try_compile "$LINENO"; then :
21848 # Check for potential -arch flags. It is not universal unless
21849 # there are at least two -arch flags with different values.
21850 ac_arch=
21851 ac_prev=
21852 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21853 if test -n "$ac_prev"; then
21854 case $ac_word in
21855 i?86 | x86_64 | ppc | ppc64)
21856 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21857 ac_arch=$ac_word
21858 else
21859 ac_cv_c_bigendian=universal
21860 break
21863 esac
21864 ac_prev=
21865 elif test "x$ac_word" = "x-arch"; then
21866 ac_prev=arch
21868 done
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871 if test $ac_cv_c_bigendian = unknown; then
21872 # See if sys/param.h defines the BYTE_ORDER macro.
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21875 #include <sys/types.h>
21876 #include <sys/param.h>
21879 main ()
21881 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21882 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21883 && LITTLE_ENDIAN)
21884 bogus endian macros
21885 #endif
21888 return 0;
21890 _ACEOF
21891 if ac_fn_c_try_compile "$LINENO"; then :
21892 # It does; now see whether it defined to BIG_ENDIAN or not.
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894 /* end confdefs.h. */
21895 #include <sys/types.h>
21896 #include <sys/param.h>
21899 main ()
21901 #if BYTE_ORDER != BIG_ENDIAN
21902 not big endian
21903 #endif
21906 return 0;
21908 _ACEOF
21909 if ac_fn_c_try_compile "$LINENO"; then :
21910 ac_cv_c_bigendian=yes
21911 else
21912 ac_cv_c_bigendian=no
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21918 if test $ac_cv_c_bigendian = unknown; then
21919 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #include <limits.h>
21925 main ()
21927 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21928 bogus endian macros
21929 #endif
21932 return 0;
21934 _ACEOF
21935 if ac_fn_c_try_compile "$LINENO"; then :
21936 # It does; now see whether it defined to _BIG_ENDIAN or not.
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939 #include <limits.h>
21942 main ()
21944 #ifndef _BIG_ENDIAN
21945 not big endian
21946 #endif
21949 return 0;
21951 _ACEOF
21952 if ac_fn_c_try_compile "$LINENO"; then :
21953 ac_cv_c_bigendian=yes
21954 else
21955 ac_cv_c_bigendian=no
21957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961 if test $ac_cv_c_bigendian = unknown; then
21962 # Compile a test program.
21963 if test "$cross_compiling" = yes; then :
21964 # Try to guess by grepping values from an object file.
21965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h. */
21967 short int ascii_mm[] =
21968 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21969 short int ascii_ii[] =
21970 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21971 int use_ascii (int i) {
21972 return ascii_mm[i] + ascii_ii[i];
21974 short int ebcdic_ii[] =
21975 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21976 short int ebcdic_mm[] =
21977 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21978 int use_ebcdic (int i) {
21979 return ebcdic_mm[i] + ebcdic_ii[i];
21981 extern int foo;
21984 main ()
21986 return use_ascii (foo) == use_ebcdic (foo);
21988 return 0;
21990 _ACEOF
21991 if ac_fn_c_try_compile "$LINENO"; then :
21992 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21993 ac_cv_c_bigendian=yes
21995 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21996 if test "$ac_cv_c_bigendian" = unknown; then
21997 ac_cv_c_bigendian=no
21998 else
21999 # finding both strings is unlikely to happen, but who knows?
22000 ac_cv_c_bigendian=unknown
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 else
22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* end confdefs.h. */
22008 $ac_includes_default
22010 main ()
22013 /* Are we little or big endian? From Harbison&Steele. */
22014 union
22016 long int l;
22017 char c[sizeof (long int)];
22018 } u;
22019 u.l = 1;
22020 return u.c[sizeof (long int) - 1] == 1;
22023 return 0;
22025 _ACEOF
22026 if ac_fn_c_try_run "$LINENO"; then :
22027 ac_cv_c_bigendian=no
22028 else
22029 ac_cv_c_bigendian=yes
22031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22032 conftest.$ac_objext conftest.beam conftest.$ac_ext
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22038 $as_echo "$ac_cv_c_bigendian" >&6; }
22039 case $ac_cv_c_bigendian in #(
22040 yes)
22041 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22042 ;; #(
22044 ;; #(
22045 universal)
22047 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22049 ;; #(
22051 as_fn_error $? "unknown endianness
22052 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22053 esac
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22057 $as_echo_n "checking return type of signal handlers... " >&6; }
22058 if ${ac_cv_type_signal+:} false; then :
22059 $as_echo_n "(cached) " >&6
22060 else
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063 #include <sys/types.h>
22064 #include <signal.h>
22067 main ()
22069 return *(signal (0, 0)) (0) == 1;
22071 return 0;
22073 _ACEOF
22074 if ac_fn_c_try_compile "$LINENO"; then :
22075 ac_cv_type_signal=int
22076 else
22077 ac_cv_type_signal=void
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22082 $as_echo "$ac_cv_type_signal" >&6; }
22084 cat >>confdefs.h <<_ACEOF
22085 #define RETSIGTYPE $ac_cv_type_signal
22086 _ACEOF
22090 kpse_save_CPPFLAGS=$CPPFLAGS
22091 kpse_save_LIBS=$LIBS
22093 ## _KPSE_INIT: Initialize TL infrastructure
22094 kpse_BLD=`(cd "./../../." && pwd)`
22095 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
22097 ## _KPSE_USE_LIBTOOL: Generate a libtool script for use in configure tests
22098 : ${CONFIG_LT=./config.lt}
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
22100 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
22101 as_write_fail=0
22102 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
22103 #! $SHELL
22104 # Generated by $as_me.
22105 # Run this file to recreate a libtool stub with the current configuration.
22106 SHELL=\${CONFIG_SHELL-$SHELL}
22107 export SHELL
22108 _ASEOF
22109 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
22110 ## -------------------- ##
22111 ## M4sh Initialization. ##
22112 ## -------------------- ##
22114 # Be more Bourne compatible
22115 DUALCASE=1; export DUALCASE # for MKS sh
22116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22117 emulate sh
22118 NULLCMD=:
22119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22120 # is contrary to our usage. Disable this feature.
22121 alias -g '${1+"$@"}'='"$@"'
22122 setopt NO_GLOB_SUBST
22123 else
22124 case `(set -o) 2>/dev/null` in #(
22125 *posix*) :
22126 set -o posix ;; #(
22127 *) :
22129 esac
22133 as_nl='
22135 export as_nl
22136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22140 # Prefer a ksh shell builtin over an external printf program on Solaris,
22141 # but without wasting forks for bash or zsh.
22142 if test -z "$BASH_VERSION$ZSH_VERSION" \
22143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22144 as_echo='print -r --'
22145 as_echo_n='print -rn --'
22146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22147 as_echo='printf %s\n'
22148 as_echo_n='printf %s'
22149 else
22150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22152 as_echo_n='/usr/ucb/echo -n'
22153 else
22154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22155 as_echo_n_body='eval
22156 arg=$1;
22157 case $arg in #(
22158 *"$as_nl"*)
22159 expr "X$arg" : "X\\(.*\\)$as_nl";
22160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22161 esac;
22162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22164 export as_echo_n_body
22165 as_echo_n='sh -c $as_echo_n_body as_echo'
22167 export as_echo_body
22168 as_echo='sh -c $as_echo_body as_echo'
22171 # The user is always right.
22172 if test "${PATH_SEPARATOR+set}" != set; then
22173 PATH_SEPARATOR=:
22174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22176 PATH_SEPARATOR=';'
22181 # IFS
22182 # We need space, tab and new line, in precisely that order. Quoting is
22183 # there to prevent editors from complaining about space-tab.
22184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22185 # splitting by setting IFS to empty value.)
22186 IFS=" "" $as_nl"
22188 # Find who we are. Look in the path if we contain no directory separator.
22189 as_myself=
22190 case $0 in #((
22191 *[\\/]* ) as_myself=$0 ;;
22192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22193 for as_dir in $PATH
22195 IFS=$as_save_IFS
22196 test -z "$as_dir" && as_dir=.
22197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22198 done
22199 IFS=$as_save_IFS
22202 esac
22203 # We did not find ourselves, most probably we were run as `sh COMMAND'
22204 # in which case we are not to be found in the path.
22205 if test "x$as_myself" = x; then
22206 as_myself=$0
22208 if test ! -f "$as_myself"; then
22209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22210 exit 1
22213 # Unset variables that we do not need and which cause bugs (e.g. in
22214 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22215 # suppresses any "Segmentation fault" message there. '((' could
22216 # trigger a bug in pdksh 5.2.14.
22217 for as_var in BASH_ENV ENV MAIL MAILPATH
22218 do eval test x\${$as_var+set} = xset \
22219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22220 done
22221 PS1='$ '
22222 PS2='> '
22223 PS4='+ '
22225 # NLS nuisances.
22226 LC_ALL=C
22227 export LC_ALL
22228 LANGUAGE=C
22229 export LANGUAGE
22231 # CDPATH.
22232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22236 # ----------------------------------------
22237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22239 # script with STATUS, using 1 if that was 0.
22240 as_fn_error ()
22242 as_status=$1; test $as_status -eq 0 && as_status=1
22243 if test "$4"; then
22244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22247 $as_echo "$as_me: error: $2" >&2
22248 as_fn_exit $as_status
22249 } # as_fn_error
22252 # as_fn_set_status STATUS
22253 # -----------------------
22254 # Set $? to STATUS, without forking.
22255 as_fn_set_status ()
22257 return $1
22258 } # as_fn_set_status
22260 # as_fn_exit STATUS
22261 # -----------------
22262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22263 as_fn_exit ()
22265 set +e
22266 as_fn_set_status $1
22267 exit $1
22268 } # as_fn_exit
22270 # as_fn_unset VAR
22271 # ---------------
22272 # Portably unset VAR.
22273 as_fn_unset ()
22275 { eval $1=; unset $1;}
22277 as_unset=as_fn_unset
22278 # as_fn_append VAR VALUE
22279 # ----------------------
22280 # Append the text in VALUE to the end of the definition contained in VAR. Take
22281 # advantage of any shell optimizations that allow amortized linear growth over
22282 # repeated appends, instead of the typical quadratic growth present in naive
22283 # implementations.
22284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22285 eval 'as_fn_append ()
22287 eval $1+=\$2
22289 else
22290 as_fn_append ()
22292 eval $1=\$$1\$2
22294 fi # as_fn_append
22296 # as_fn_arith ARG...
22297 # ------------------
22298 # Perform arithmetic evaluation on the ARGs, and store the result in the
22299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22300 # must be portable across $(()) and expr.
22301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22302 eval 'as_fn_arith ()
22304 as_val=$(( $* ))
22306 else
22307 as_fn_arith ()
22309 as_val=`expr "$@" || test $? -eq 1`
22311 fi # as_fn_arith
22314 if expr a : '\(a\)' >/dev/null 2>&1 &&
22315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22316 as_expr=expr
22317 else
22318 as_expr=false
22321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22322 as_basename=basename
22323 else
22324 as_basename=false
22327 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22328 as_dirname=dirname
22329 else
22330 as_dirname=false
22333 as_me=`$as_basename -- "$0" ||
22334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22335 X"$0" : 'X\(//\)$' \| \
22336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22337 $as_echo X/"$0" |
22338 sed '/^.*\/\([^/][^/]*\)\/*$/{
22339 s//\1/
22342 /^X\/\(\/\/\)$/{
22343 s//\1/
22346 /^X\/\(\/\).*/{
22347 s//\1/
22350 s/.*/./; q'`
22352 # Avoid depending upon Character Ranges.
22353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22356 as_cr_digits='0123456789'
22357 as_cr_alnum=$as_cr_Letters$as_cr_digits
22359 ECHO_C= ECHO_N= ECHO_T=
22360 case `echo -n x` in #(((((
22361 -n*)
22362 case `echo 'xy\c'` in
22363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22364 xy) ECHO_C='\c';;
22365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22366 ECHO_T=' ';;
22367 esac;;
22369 ECHO_N='-n';;
22370 esac
22372 rm -f conf$$ conf$$.exe conf$$.file
22373 if test -d conf$$.dir; then
22374 rm -f conf$$.dir/conf$$.file
22375 else
22376 rm -f conf$$.dir
22377 mkdir conf$$.dir 2>/dev/null
22379 if (echo >conf$$.file) 2>/dev/null; then
22380 if ln -s conf$$.file conf$$ 2>/dev/null; then
22381 as_ln_s='ln -s'
22382 # ... but there are two gotchas:
22383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22385 # In both cases, we have to default to `cp -pR'.
22386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22387 as_ln_s='cp -pR'
22388 elif ln conf$$.file conf$$ 2>/dev/null; then
22389 as_ln_s=ln
22390 else
22391 as_ln_s='cp -pR'
22393 else
22394 as_ln_s='cp -pR'
22396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22397 rmdir conf$$.dir 2>/dev/null
22400 # as_fn_mkdir_p
22401 # -------------
22402 # Create "$as_dir" as a directory, including parents if necessary.
22403 as_fn_mkdir_p ()
22406 case $as_dir in #(
22407 -*) as_dir=./$as_dir;;
22408 esac
22409 test -d "$as_dir" || eval $as_mkdir_p || {
22410 as_dirs=
22411 while :; do
22412 case $as_dir in #(
22413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22414 *) as_qdir=$as_dir;;
22415 esac
22416 as_dirs="'$as_qdir' $as_dirs"
22417 as_dir=`$as_dirname -- "$as_dir" ||
22418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22419 X"$as_dir" : 'X\(//\)[^/]' \| \
22420 X"$as_dir" : 'X\(//\)$' \| \
22421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22422 $as_echo X"$as_dir" |
22423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22424 s//\1/
22427 /^X\(\/\/\)[^/].*/{
22428 s//\1/
22431 /^X\(\/\/\)$/{
22432 s//\1/
22435 /^X\(\/\).*/{
22436 s//\1/
22439 s/.*/./; q'`
22440 test -d "$as_dir" && break
22441 done
22442 test -z "$as_dirs" || eval "mkdir $as_dirs"
22443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22446 } # as_fn_mkdir_p
22447 if mkdir -p . 2>/dev/null; then
22448 as_mkdir_p='mkdir -p "$as_dir"'
22449 else
22450 test -d ./-p && rmdir ./-p
22451 as_mkdir_p=false
22455 # as_fn_executable_p FILE
22456 # -----------------------
22457 # Test if FILE is an executable regular file.
22458 as_fn_executable_p ()
22460 test -f "$1" && test -x "$1"
22461 } # as_fn_executable_p
22462 as_test_x='test -x'
22463 as_executable_p=as_fn_executable_p
22465 # Sed expression to map a string onto a valid CPP name.
22466 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22468 # Sed expression to map a string onto a valid variable name.
22469 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22472 exec 6>&1
22473 ## --------------------------------- ##
22474 ## Main body of "$CONFIG_LT" script. ##
22475 ## --------------------------------- ##
22476 _ASEOF
22477 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
22479 cat >>"$CONFIG_LT" <<\_LTEOF
22480 lt_cl_silent=false
22481 exec 5>>config.log
22483 echo
22484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22485 ## Running $as_me. ##
22486 _ASBOX
22487 } >&5
22489 lt_cl_help="\
22490 '$as_me' creates a local libtool stub from the current configuration,
22491 for use in further configure time tests before the real libtool is
22492 generated.
22494 Usage: $0 [OPTIONS]
22496 -h, --help print this help, then exit
22497 -V, --version print version number, then exit
22498 -q, --quiet do not print progress messages
22499 -d, --debug don't remove temporary files
22501 Report bugs to <bug-libtool@gnu.org>."
22503 lt_cl_version="\
22504 Web2C config.lt 2016/dev
22505 configured by $0, generated by GNU Autoconf 2.69.
22507 Copyright (C) 2011 Free Software Foundation, Inc.
22508 This config.lt script is free software; the Free Software Foundation
22509 gives unlimited permision to copy, distribute and modify it."
22511 while test 0 != $#
22513 case $1 in
22514 --version | --v* | -V )
22515 echo "$lt_cl_version"; exit 0 ;;
22516 --help | --h* | -h )
22517 echo "$lt_cl_help"; exit 0 ;;
22518 --debug | --d* | -d )
22519 debug=: ;;
22520 --quiet | --q* | --silent | --s* | -q )
22521 lt_cl_silent=: ;;
22523 -*) as_fn_error $? "unrecognized option: $1
22524 Try '$0 --help' for more information." "$LINENO" 5 ;;
22526 *) as_fn_error $? "unrecognized argument: $1
22527 Try '$0 --help' for more information." "$LINENO" 5 ;;
22528 esac
22529 shift
22530 done
22532 if $lt_cl_silent; then
22533 exec 6>/dev/null
22535 _LTEOF
22537 cat >>"$CONFIG_LT" <<_LTEOF
22540 # The HP-UX ksh and POSIX shell print the target directory to stdout
22541 # if CDPATH is set.
22542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22544 sed_quote_subst='$sed_quote_subst'
22545 double_quote_subst='$double_quote_subst'
22546 delay_variable_subst='$delay_variable_subst'
22547 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22548 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22549 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22550 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22551 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22552 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22553 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22554 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22555 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22556 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22557 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22558 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22559 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22560 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22561 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22562 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22563 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22564 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22565 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22566 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22567 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22568 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22569 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22570 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22571 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22572 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22573 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22574 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22575 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22576 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22577 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22578 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22579 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22580 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22581 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22582 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22583 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22586 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22587 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22588 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22589 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22590 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22591 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22592 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22593 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22594 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22595 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22596 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22597 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22598 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22599 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22600 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22601 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22602 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22603 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22604 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22605 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22606 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"`'
22607 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22608 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22609 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22610 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22611 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22612 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22613 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22614 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22615 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22616 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22617 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22618 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22619 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22620 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22621 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22622 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22623 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22624 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22625 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22626 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22627 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22628 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22629 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22630 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22631 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22632 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22633 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22634 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22635 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22636 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22637 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22638 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22639 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22640 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22641 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22642 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22643 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22644 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22645 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22646 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22647 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22648 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22649 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22650 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22651 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22652 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22653 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22654 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22655 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22656 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22657 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22658 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22659 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22660 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22661 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22662 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22663 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22664 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22665 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22666 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22667 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22668 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22669 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22670 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22671 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22672 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22673 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22674 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22675 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22676 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22677 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22678 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22679 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22680 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22681 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22682 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22683 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22684 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22685 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22686 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22687 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22688 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22689 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22690 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22691 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22692 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22693 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22694 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22695 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22696 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22697 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22698 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22699 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22700 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22701 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22702 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22703 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22704 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22705 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22706 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22707 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22708 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22709 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22710 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22711 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22712 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22713 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22714 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22715 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22716 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22717 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22718 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22719 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22720 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22721 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22722 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22723 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22724 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22725 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22726 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22727 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22728 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22729 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22730 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22731 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22732 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22733 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22734 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22735 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22736 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22738 LTCC='$LTCC'
22739 LTCFLAGS='$LTCFLAGS'
22740 compiler='$compiler_DEFAULT'
22742 # A function that is used when there is no print builtin or printf.
22743 func_fallback_echo ()
22745 eval 'cat <<_LTECHO_EOF
22747 _LTECHO_EOF'
22750 # Quote evaled strings.
22751 for var in AS \
22752 DLLTOOL \
22753 OBJDUMP \
22754 SHELL \
22755 ECHO \
22756 PATH_SEPARATOR \
22757 SED \
22758 GREP \
22759 EGREP \
22760 FGREP \
22761 LD \
22762 NM \
22763 LN_S \
22764 lt_SP2NL \
22765 lt_NL2SP \
22766 reload_flag \
22767 deplibs_check_method \
22768 file_magic_cmd \
22769 file_magic_glob \
22770 want_nocaseglob \
22771 sharedlib_from_linklib_cmd \
22772 AR \
22773 AR_FLAGS \
22774 archiver_list_spec \
22775 STRIP \
22776 RANLIB \
22777 CC \
22778 CFLAGS \
22779 compiler \
22780 lt_cv_sys_global_symbol_pipe \
22781 lt_cv_sys_global_symbol_to_cdecl \
22782 lt_cv_sys_global_symbol_to_import \
22783 lt_cv_sys_global_symbol_to_c_name_address \
22784 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22785 lt_cv_nm_interface \
22786 nm_file_list_spec \
22787 lt_cv_truncate_bin \
22788 lt_prog_compiler_no_builtin_flag \
22789 lt_prog_compiler_pic \
22790 lt_prog_compiler_wl \
22791 lt_prog_compiler_static \
22792 lt_cv_prog_compiler_c_o \
22793 need_locks \
22794 MANIFEST_TOOL \
22795 DSYMUTIL \
22796 NMEDIT \
22797 LIPO \
22798 OTOOL \
22799 OTOOL64 \
22800 shrext_cmds \
22801 export_dynamic_flag_spec \
22802 whole_archive_flag_spec \
22803 compiler_needs_object \
22804 with_gnu_ld \
22805 allow_undefined_flag \
22806 no_undefined_flag \
22807 hardcode_libdir_flag_spec \
22808 hardcode_libdir_separator \
22809 exclude_expsyms \
22810 include_expsyms \
22811 file_list_spec \
22812 variables_saved_for_relink \
22813 libname_spec \
22814 library_names_spec \
22815 soname_spec \
22816 install_override_mode \
22817 finish_eval \
22818 old_striplib \
22819 striplib \
22820 compiler_lib_search_dirs \
22821 predep_objects \
22822 postdep_objects \
22823 predeps \
22824 postdeps \
22825 compiler_lib_search_path \
22826 LD_CXX \
22827 reload_flag_CXX \
22828 compiler_CXX \
22829 lt_prog_compiler_no_builtin_flag_CXX \
22830 lt_prog_compiler_pic_CXX \
22831 lt_prog_compiler_wl_CXX \
22832 lt_prog_compiler_static_CXX \
22833 lt_cv_prog_compiler_c_o_CXX \
22834 export_dynamic_flag_spec_CXX \
22835 whole_archive_flag_spec_CXX \
22836 compiler_needs_object_CXX \
22837 with_gnu_ld_CXX \
22838 allow_undefined_flag_CXX \
22839 no_undefined_flag_CXX \
22840 hardcode_libdir_flag_spec_CXX \
22841 hardcode_libdir_separator_CXX \
22842 exclude_expsyms_CXX \
22843 include_expsyms_CXX \
22844 file_list_spec_CXX \
22845 compiler_lib_search_dirs_CXX \
22846 predep_objects_CXX \
22847 postdep_objects_CXX \
22848 predeps_CXX \
22849 postdeps_CXX \
22850 compiler_lib_search_path_CXX; do
22851 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22852 *[\\\\\\\`\\"\\\$]*)
22853 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22856 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22858 esac
22859 done
22861 # Double-quote double-evaled strings.
22862 for var in reload_cmds \
22863 old_postinstall_cmds \
22864 old_postuninstall_cmds \
22865 old_archive_cmds \
22866 extract_expsyms_cmds \
22867 old_archive_from_new_cmds \
22868 old_archive_from_expsyms_cmds \
22869 archive_cmds \
22870 archive_expsym_cmds \
22871 module_cmds \
22872 module_expsym_cmds \
22873 export_symbols_cmds \
22874 prelink_cmds \
22875 postlink_cmds \
22876 postinstall_cmds \
22877 postuninstall_cmds \
22878 finish_cmds \
22879 sys_lib_search_path_spec \
22880 configure_time_dlsearch_path \
22881 configure_time_lt_sys_library_path \
22882 reload_cmds_CXX \
22883 old_archive_cmds_CXX \
22884 old_archive_from_new_cmds_CXX \
22885 old_archive_from_expsyms_cmds_CXX \
22886 archive_cmds_CXX \
22887 archive_expsym_cmds_CXX \
22888 module_cmds_CXX \
22889 module_expsym_cmds_CXX \
22890 export_symbols_cmds_CXX \
22891 prelink_cmds_CXX \
22892 postlink_cmds_CXX; do
22893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22894 *[\\\\\\\`\\"\\\$]*)
22895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22900 esac
22901 done
22903 ac_aux_dir='$ac_aux_dir'
22905 # See if we are running on zsh, and set the options that allow our
22906 # commands through without removal of \ escapes INIT.
22907 if test -n "\${ZSH_VERSION+set}"; then
22908 setopt NO_GLOB_SUBST
22912 PACKAGE='$PACKAGE'
22913 VERSION='$VERSION'
22914 RM='$RM'
22915 ofile='$ofile'
22919 enable_libtool_hack='$enable_libtool_hack'
22922 _LTEOF
22924 cat >>"$CONFIG_LT" <<\_LTEOF
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
22926 $as_echo "$as_me: creating $ofile" >&6;}
22929 # See if we are running on zsh, and set the options that allow our
22930 # commands through without removal of \ escapes.
22931 if test -n "${ZSH_VERSION+set}"; then
22932 setopt NO_GLOB_SUBST
22935 cfgfile=${ofile}T
22936 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22937 $RM "$cfgfile"
22939 cat <<_LT_EOF >> "$cfgfile"
22940 #! $SHELL
22941 # Generated automatically by $as_me ($PACKAGE) $VERSION
22942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22943 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22945 # Provide generalized library-building support services.
22946 # Written by Gordon Matzigkeit, 1996
22948 # Copyright (C) 2014 Free Software Foundation, Inc.
22949 # This is free software; see the source for copying conditions. There is NO
22950 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22952 # GNU Libtool is free software; you can redistribute it and/or modify
22953 # it under the terms of the GNU General Public License as published by
22954 # the Free Software Foundation; either version 2 of of the License, or
22955 # (at your option) any later version.
22957 # As a special exception to the GNU General Public License, if you
22958 # distribute this file as part of a program or library that is built
22959 # using GNU Libtool, you may include this file under the same
22960 # distribution terms that you use for the rest of that program.
22962 # GNU Libtool is distributed in the hope that it will be useful, but
22963 # WITHOUT ANY WARRANTY; without even the implied warranty of
22964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22965 # GNU General Public License for more details.
22967 # You should have received a copy of the GNU General Public License
22968 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22971 # The names of the tagged configurations supported by this script.
22972 available_tags='CXX '
22974 # Configured defaults for sys_lib_dlsearch_path munging.
22975 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22977 # ### BEGIN LIBTOOL CONFIG
22979 # Which release of libtool.m4 was used?
22980 macro_version=$macro_version
22981 macro_revision=$macro_revision
22983 # Assembler program.
22984 AS=$lt_AS
22986 # DLL creation program.
22987 DLLTOOL=$lt_DLLTOOL
22989 # Object dumper program.
22990 OBJDUMP=$lt_OBJDUMP
22992 # Whether or not to build shared libraries.
22993 build_libtool_libs=$enable_shared
22995 # Whether or not to build static libraries.
22996 build_old_libs=$enable_static
22998 # What type of objects to build.
22999 pic_mode=$pic_mode
23001 # Whether or not to optimize for fast installation.
23002 fast_install=$enable_fast_install
23004 # Shared archive member basename,for filename based shared library versioning on AIX.
23005 shared_archive_member_spec=$shared_archive_member_spec
23007 # Shell to use when invoking shell scripts.
23008 SHELL=$lt_SHELL
23010 # An echo program that protects backslashes.
23011 ECHO=$lt_ECHO
23013 # The PATH separator for the build system.
23014 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23016 # The host system.
23017 host_alias=$host_alias
23018 host=$host
23019 host_os=$host_os
23021 # The build system.
23022 build_alias=$build_alias
23023 build=$build
23024 build_os=$build_os
23026 # A sed program that does not truncate output.
23027 SED=$lt_SED
23029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23030 Xsed="\$SED -e 1s/^X//"
23032 # A grep program that handles long lines.
23033 GREP=$lt_GREP
23035 # An ERE matcher.
23036 EGREP=$lt_EGREP
23038 # A literal string matcher.
23039 FGREP=$lt_FGREP
23041 # A BSD- or MS-compatible name lister.
23042 NM=$lt_NM
23044 # Whether we need soft or hard links.
23045 LN_S=$lt_LN_S
23047 # What is the maximum length of a command?
23048 max_cmd_len=$max_cmd_len
23050 # Object file suffix (normally "o").
23051 objext=$ac_objext
23053 # Executable file suffix (normally "").
23054 exeext=$exeext
23056 # whether the shell understands "unset".
23057 lt_unset=$lt_unset
23059 # turn spaces into newlines.
23060 SP2NL=$lt_lt_SP2NL
23062 # turn newlines into spaces.
23063 NL2SP=$lt_lt_NL2SP
23065 # convert \$build file names to \$host format.
23066 to_host_file_cmd=$lt_cv_to_host_file_cmd
23068 # convert \$build files to toolchain format.
23069 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23071 # Method to check whether dependent libraries are shared objects.
23072 deplibs_check_method=$lt_deplibs_check_method
23074 # Command to use when deplibs_check_method = "file_magic".
23075 file_magic_cmd=$lt_file_magic_cmd
23077 # How to find potential files when deplibs_check_method = "file_magic".
23078 file_magic_glob=$lt_file_magic_glob
23080 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23081 want_nocaseglob=$lt_want_nocaseglob
23083 # Command to associate shared and link libraries.
23084 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23086 # The archiver.
23087 AR=$lt_AR
23089 # Flags to create an archive.
23090 AR_FLAGS=$lt_AR_FLAGS
23092 # How to feed a file listing to the archiver.
23093 archiver_list_spec=$lt_archiver_list_spec
23095 # A symbol stripping program.
23096 STRIP=$lt_STRIP
23098 # Commands used to install an old-style archive.
23099 RANLIB=$lt_RANLIB
23100 old_postinstall_cmds=$lt_old_postinstall_cmds
23101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23103 # Whether to use a lock for old archive extraction.
23104 lock_old_archive_extraction=$lock_old_archive_extraction
23106 # A C compiler.
23107 LTCC=$lt_CC
23109 # LTCC compiler flags.
23110 LTCFLAGS=$lt_CFLAGS
23112 # Take the output of nm and produce a listing of raw symbols and C names.
23113 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23115 # Transform the output of nm in a proper C declaration.
23116 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23118 # Transform the output of nm into a list of symbols to manually relocate.
23119 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23121 # Transform the output of nm in a C name address pair.
23122 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23124 # Transform the output of nm in a C name address pair when lib prefix is needed.
23125 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23127 # The name lister interface.
23128 nm_interface=$lt_lt_cv_nm_interface
23130 # Specify filename containing input files for \$NM.
23131 nm_file_list_spec=$lt_nm_file_list_spec
23133 # The root where to search for dependent libraries,and where our libraries should be installed.
23134 lt_sysroot=$lt_sysroot
23136 # Command to truncate a binary pipe.
23137 lt_truncate_bin=$lt_lt_cv_truncate_bin
23139 # The name of the directory that contains temporary libtool files.
23140 objdir=$objdir
23142 # Used to examine libraries when file_magic_cmd begins with "file".
23143 MAGIC_CMD=$MAGIC_CMD
23145 # Must we lock files when doing compilation?
23146 need_locks=$lt_need_locks
23148 # Manifest tool.
23149 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23151 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23152 DSYMUTIL=$lt_DSYMUTIL
23154 # Tool to change global to local symbols on Mac OS X.
23155 NMEDIT=$lt_NMEDIT
23157 # Tool to manipulate fat objects and archives on Mac OS X.
23158 LIPO=$lt_LIPO
23160 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23161 OTOOL=$lt_OTOOL
23163 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23164 OTOOL64=$lt_OTOOL64
23166 # Old archive suffix (normally "a").
23167 libext=$libext
23169 # Shared library suffix (normally ".so").
23170 shrext_cmds=$lt_shrext_cmds
23172 # The commands to extract the exported symbol list from a shared archive.
23173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23175 # Variables whose values should be saved in libtool wrapper scripts and
23176 # restored at link time.
23177 variables_saved_for_relink=$lt_variables_saved_for_relink
23179 # Do we need the "lib" prefix for modules?
23180 need_lib_prefix=$need_lib_prefix
23182 # Do we need a version for libraries?
23183 need_version=$need_version
23185 # Library versioning type.
23186 version_type=$version_type
23188 # Shared library runtime path variable.
23189 runpath_var=$runpath_var
23191 # Shared library path variable.
23192 shlibpath_var=$shlibpath_var
23194 # Is shlibpath searched before the hard-coded library search path?
23195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23197 # Format of library name prefix.
23198 libname_spec=$lt_libname_spec
23200 # List of archive names. First name is the real one, the rest are links.
23201 # The last name is the one that the linker finds with -lNAME
23202 library_names_spec=$lt_library_names_spec
23204 # The coded name of the library, if different from the real name.
23205 soname_spec=$lt_soname_spec
23207 # Permission mode override for installation of shared libraries.
23208 install_override_mode=$lt_install_override_mode
23210 # Command to use after installation of a shared archive.
23211 postinstall_cmds=$lt_postinstall_cmds
23213 # Command to use after uninstallation of a shared archive.
23214 postuninstall_cmds=$lt_postuninstall_cmds
23216 # Commands used to finish a libtool library installation in a directory.
23217 finish_cmds=$lt_finish_cmds
23219 # As "finish_cmds", except a single script fragment to be evaled but
23220 # not shown.
23221 finish_eval=$lt_finish_eval
23223 # Whether we should hardcode library paths into libraries.
23224 hardcode_into_libs=$hardcode_into_libs
23226 # Compile-time system search path for libraries.
23227 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23229 # Detected run-time system search path for libraries.
23230 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23232 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23233 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23235 # Whether dlopen is supported.
23236 dlopen_support=$enable_dlopen
23238 # Whether dlopen of programs is supported.
23239 dlopen_self=$enable_dlopen_self
23241 # Whether dlopen of statically linked programs is supported.
23242 dlopen_self_static=$enable_dlopen_self_static
23244 # Commands to strip libraries.
23245 old_striplib=$lt_old_striplib
23246 striplib=$lt_striplib
23249 # The linker used to build libraries.
23250 LD=$lt_LD
23252 # How to create reloadable object files.
23253 reload_flag=$lt_reload_flag
23254 reload_cmds=$lt_reload_cmds
23256 # Commands used to build an old-style archive.
23257 old_archive_cmds=$lt_old_archive_cmds
23259 # A language specific compiler.
23260 CC=$lt_compiler
23262 # Is the compiler the GNU compiler?
23263 with_gcc=$GCC
23265 # Compiler flag to turn off builtin functions.
23266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23268 # Additional compiler flags for building library objects.
23269 pic_flag=$lt_lt_prog_compiler_pic
23271 # How to pass a linker flag through the compiler.
23272 wl=$lt_lt_prog_compiler_wl
23274 # Compiler flag to prevent dynamic linking.
23275 link_static_flag=$lt_lt_prog_compiler_static
23277 # Does compiler simultaneously support -c and -o options?
23278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23280 # Whether or not to add -lc for building shared libraries.
23281 build_libtool_need_lc=$archive_cmds_need_lc
23283 # Whether or not to disallow shared libs when runtime libs are static.
23284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23286 # Compiler flag to allow reflexive dlopens.
23287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23289 # Compiler flag to generate shared objects directly from archives.
23290 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23292 # Whether the compiler copes with passing no objects directly.
23293 compiler_needs_object=$lt_compiler_needs_object
23295 # Create an old-style archive from a shared archive.
23296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23298 # Create a temporary old-style archive to link instead of a shared archive.
23299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23301 # Commands used to build a shared archive.
23302 archive_cmds=$lt_archive_cmds
23303 archive_expsym_cmds=$lt_archive_expsym_cmds
23305 # Commands used to build a loadable module if different from building
23306 # a shared archive.
23307 module_cmds=$lt_module_cmds
23308 module_expsym_cmds=$lt_module_expsym_cmds
23310 # Whether we are building with GNU ld or not.
23311 with_gnu_ld=$lt_with_gnu_ld
23313 # Flag that allows shared libraries with undefined symbols to be built.
23314 allow_undefined_flag=$lt_allow_undefined_flag
23316 # Flag that enforces no undefined symbols.
23317 no_undefined_flag=$lt_no_undefined_flag
23319 # Flag to hardcode \$libdir into a binary during linking.
23320 # This must work even if \$libdir does not exist
23321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23323 # Whether we need a single "-rpath" flag with a separated argument.
23324 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23326 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23327 # DIR into the resulting binary.
23328 hardcode_direct=$hardcode_direct
23330 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23331 # DIR into the resulting binary and the resulting library dependency is
23332 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23333 # library is relocated.
23334 hardcode_direct_absolute=$hardcode_direct_absolute
23336 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23337 # into the resulting binary.
23338 hardcode_minus_L=$hardcode_minus_L
23340 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23341 # into the resulting binary.
23342 hardcode_shlibpath_var=$hardcode_shlibpath_var
23344 # Set to "yes" if building a shared library automatically hardcodes DIR
23345 # into the library and all subsequent libraries and executables linked
23346 # against it.
23347 hardcode_automatic=$hardcode_automatic
23349 # Set to yes if linker adds runtime paths of dependent libraries
23350 # to runtime path list.
23351 inherit_rpath=$inherit_rpath
23353 # Whether libtool must link a program against all its dependency libraries.
23354 link_all_deplibs=$link_all_deplibs
23356 # Set to "yes" if exported symbols are required.
23357 always_export_symbols=$always_export_symbols
23359 # The commands to list exported symbols.
23360 export_symbols_cmds=$lt_export_symbols_cmds
23362 # Symbols that should not be listed in the preloaded symbols.
23363 exclude_expsyms=$lt_exclude_expsyms
23365 # Symbols that must always be exported.
23366 include_expsyms=$lt_include_expsyms
23368 # Commands necessary for linking programs (against libraries) with templates.
23369 prelink_cmds=$lt_prelink_cmds
23371 # Commands necessary for finishing linking programs.
23372 postlink_cmds=$lt_postlink_cmds
23374 # Specify filename containing input files.
23375 file_list_spec=$lt_file_list_spec
23377 # How to hardcode a shared library path into an executable.
23378 hardcode_action=$hardcode_action
23380 # The directories searched by this compiler when creating a shared library.
23381 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23383 # Dependencies to place before and after the objects being linked to
23384 # create a shared library.
23385 predep_objects=$lt_predep_objects
23386 postdep_objects=$lt_postdep_objects
23387 predeps=$lt_predeps
23388 postdeps=$lt_postdeps
23390 # The library search path used internally by the compiler when linking
23391 # a shared library.
23392 compiler_lib_search_path=$lt_compiler_lib_search_path
23394 # ### END LIBTOOL CONFIG
23396 _LT_EOF
23398 cat <<'_LT_EOF' >> "$cfgfile"
23400 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23402 # func_munge_path_list VARIABLE PATH
23403 # -----------------------------------
23404 # VARIABLE is name of variable containing _space_ separated list of
23405 # directories to be munged by the contents of PATH, which is string
23406 # having a format:
23407 # "DIR[:DIR]:"
23408 # string "DIR[ DIR]" will be prepended to VARIABLE
23409 # ":DIR[:DIR]"
23410 # string "DIR[ DIR]" will be appended to VARIABLE
23411 # "DIRP[:DIRP]::[DIRA:]DIRA"
23412 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23413 # "DIRA[ DIRA]" will be appended to VARIABLE
23414 # "DIR[:DIR]"
23415 # VARIABLE will be replaced by "DIR[ DIR]"
23416 func_munge_path_list ()
23418 case x$2 in
23422 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23424 x:*)
23425 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23427 *::*)
23428 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23429 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23434 esac
23438 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23439 func_cc_basename ()
23441 for cc_temp in $*""; do
23442 case $cc_temp in
23443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23445 \-*) ;;
23446 *) break;;
23447 esac
23448 done
23449 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23453 # ### END FUNCTIONS SHARED WITH CONFIGURE
23455 _LT_EOF
23457 case $host_os in
23458 aix3*)
23459 cat <<\_LT_EOF >> "$cfgfile"
23460 # AIX sometimes has problems with the GCC collect2 program. For some
23461 # reason, if we set the COLLECT_NAMES environment variable, the problems
23462 # vanish in a puff of smoke.
23463 if test set != "${COLLECT_NAMES+set}"; then
23464 COLLECT_NAMES=
23465 export COLLECT_NAMES
23467 _LT_EOF
23469 esac
23472 ltmain=$ac_aux_dir/ltmain.sh
23475 # We use sed instead of cat because bash on DJGPP gets confused if
23476 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23477 # text mode, it properly converts lines to CR/LF. This bash problem
23478 # is reportedly fixed, but why not run on old versions too?
23479 sed '$q' "$ltmain" >> "$cfgfile" \
23480 || (rm -f "$cfgfile"; exit 1)
23482 mv -f "$cfgfile" "$ofile" ||
23483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23484 chmod +x "$ofile"
23487 cat <<_LT_EOF >> "$ofile"
23489 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23491 # The linker used to build libraries.
23492 LD=$lt_LD_CXX
23494 # How to create reloadable object files.
23495 reload_flag=$lt_reload_flag_CXX
23496 reload_cmds=$lt_reload_cmds_CXX
23498 # Commands used to build an old-style archive.
23499 old_archive_cmds=$lt_old_archive_cmds_CXX
23501 # A language specific compiler.
23502 CC=$lt_compiler_CXX
23504 # Is the compiler the GNU compiler?
23505 with_gcc=$GCC_CXX
23507 # Compiler flag to turn off builtin functions.
23508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23510 # Additional compiler flags for building library objects.
23511 pic_flag=$lt_lt_prog_compiler_pic_CXX
23513 # How to pass a linker flag through the compiler.
23514 wl=$lt_lt_prog_compiler_wl_CXX
23516 # Compiler flag to prevent dynamic linking.
23517 link_static_flag=$lt_lt_prog_compiler_static_CXX
23519 # Does compiler simultaneously support -c and -o options?
23520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23522 # Whether or not to add -lc for building shared libraries.
23523 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23525 # Whether or not to disallow shared libs when runtime libs are static.
23526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23528 # Compiler flag to allow reflexive dlopens.
23529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23531 # Compiler flag to generate shared objects directly from archives.
23532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23534 # Whether the compiler copes with passing no objects directly.
23535 compiler_needs_object=$lt_compiler_needs_object_CXX
23537 # Create an old-style archive from a shared archive.
23538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23540 # Create a temporary old-style archive to link instead of a shared archive.
23541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23543 # Commands used to build a shared archive.
23544 archive_cmds=$lt_archive_cmds_CXX
23545 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23547 # Commands used to build a loadable module if different from building
23548 # a shared archive.
23549 module_cmds=$lt_module_cmds_CXX
23550 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23552 # Whether we are building with GNU ld or not.
23553 with_gnu_ld=$lt_with_gnu_ld_CXX
23555 # Flag that allows shared libraries with undefined symbols to be built.
23556 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23558 # Flag that enforces no undefined symbols.
23559 no_undefined_flag=$lt_no_undefined_flag_CXX
23561 # Flag to hardcode \$libdir into a binary during linking.
23562 # This must work even if \$libdir does not exist
23563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23565 # Whether we need a single "-rpath" flag with a separated argument.
23566 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23568 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23569 # DIR into the resulting binary.
23570 hardcode_direct=$hardcode_direct_CXX
23572 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23573 # DIR into the resulting binary and the resulting library dependency is
23574 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23575 # library is relocated.
23576 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23578 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23579 # into the resulting binary.
23580 hardcode_minus_L=$hardcode_minus_L_CXX
23582 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23583 # into the resulting binary.
23584 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23586 # Set to "yes" if building a shared library automatically hardcodes DIR
23587 # into the library and all subsequent libraries and executables linked
23588 # against it.
23589 hardcode_automatic=$hardcode_automatic_CXX
23591 # Set to yes if linker adds runtime paths of dependent libraries
23592 # to runtime path list.
23593 inherit_rpath=$inherit_rpath_CXX
23595 # Whether libtool must link a program against all its dependency libraries.
23596 link_all_deplibs=$link_all_deplibs_CXX
23598 # Set to "yes" if exported symbols are required.
23599 always_export_symbols=$always_export_symbols_CXX
23601 # The commands to list exported symbols.
23602 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23604 # Symbols that should not be listed in the preloaded symbols.
23605 exclude_expsyms=$lt_exclude_expsyms_CXX
23607 # Symbols that must always be exported.
23608 include_expsyms=$lt_include_expsyms_CXX
23610 # Commands necessary for linking programs (against libraries) with templates.
23611 prelink_cmds=$lt_prelink_cmds_CXX
23613 # Commands necessary for finishing linking programs.
23614 postlink_cmds=$lt_postlink_cmds_CXX
23616 # Specify filename containing input files.
23617 file_list_spec=$lt_file_list_spec_CXX
23619 # How to hardcode a shared library path into an executable.
23620 hardcode_action=$hardcode_action_CXX
23622 # The directories searched by this compiler when creating a shared library.
23623 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23625 # Dependencies to place before and after the objects being linked to
23626 # create a shared library.
23627 predep_objects=$lt_predep_objects_CXX
23628 postdep_objects=$lt_postdep_objects_CXX
23629 predeps=$lt_predeps_CXX
23630 postdeps=$lt_postdeps_CXX
23632 # The library search path used internally by the compiler when linking
23633 # a shared library.
23634 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23636 # ### END LIBTOOL TAG CONFIG: CXX
23637 _LT_EOF
23639 ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs
23640 if test "x$enable_libtool_hack" = xyes; then
23641 $SED '/# Convert "-framework/i\
23642 ## KPSE_LT_HACK: ignore dependency_libs\
23643 test "X$installed" = Xyes && dependency_libs=\
23644 ' "$ofile" >"$cfgfile"
23645 mv "$cfgfile" "$ofile" ||
23646 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23647 chmod +x "$ofile"
23650 as_fn_exit 0
23651 _LTEOF
23652 chmod +x "$CONFIG_LT"
23654 # configure is writing to config.log, but config.lt does its own redirection,
23655 # appending to config.log, which fails on DOS, as config.log is still kept
23656 # open by configure. Here we exec the FD to /dev/null, effectively closing
23657 # config.log, so it can be properly (re)opened and appended to by config.lt.
23658 lt_cl_success=:
23659 test yes = "$silent" &&
23660 lt_config_lt_args="$lt_config_lt_args --quiet"
23661 exec 5>/dev/null
23662 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
23663 exec 5>>config.log
23664 $lt_cl_success || as_fn_exit 1
23666 ac_ext=c
23667 ac_cpp='$CPP $CPPFLAGS'
23668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23671 ac_link="./libtool --mode=link --tag=CC $ac_link"
23673 ## _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags
23675 # Check whether --with-system-kpathsea was given.
23676 if test "${with_system_kpathsea+set}" = set; then :
23677 withval=$with_system_kpathsea;
23679 if test "x$with_system_kpathsea" = xyes; then
23680 if $PKG_CONFIG kpathsea; then
23681 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
23682 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
23683 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
23684 as_fn_error $? "did not find kpathsea" "$LINENO" 5
23686 else
23687 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
23688 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
23689 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
23690 KPATHSEA_RULE='# Rebuild libkpathsea
23691 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
23692 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
23693 ${top_builddir}/../kpathsea/paths.h:
23694 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
23698 $as_echo_n "checking if libkpathsea supports debugging... " >&6; }
23699 if ${kpse_cv_kpse_debug+:} false; then :
23700 $as_echo_n "(cached) " >&6
23701 else
23702 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
23703 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
23705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23706 /* end confdefs.h. */
23707 #include <kpathsea/kpathsea.h>
23709 main ()
23711 FILE *f = fopen("f", "r")
23713 return 0;
23715 _ACEOF
23716 if ac_fn_c_try_link "$LINENO"; then :
23717 kpse_cv_kpse_debug=yes
23718 else
23719 kpse_cv_kpse_debug=no
23721 rm -f core conftest.err conftest.$ac_objext \
23722 conftest$ac_exeext conftest.$ac_ext
23723 CPPFLAGS=$kpse_save_CPPFLAGS
23724 LIBS=$kpse_save_LIBS
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
23728 $as_echo "$kpse_cv_kpse_debug" >&6; }
23729 if test "x$kpse_cv_kpse_debug" != xyes; then :
23730 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
23733 ## _KPSE_LIB_FLAGS: Setup ptexenc (-lptexenc) flags
23735 # Check whether --with-system-ptexenc was given.
23736 if test "${with_system_ptexenc+set}" = set; then :
23737 withval=$with_system_ptexenc;
23739 if test "x$with_system_ptexenc" = xyes; then
23740 if $PKG_CONFIG ptexenc; then
23741 PTEXENC_INCLUDES=`$PKG_CONFIG ptexenc --cflags`
23742 PTEXENC_LIBS=`$PKG_CONFIG ptexenc --libs`
23743 elif test "x$need_ptexenc:$with_system_ptexenc" = xyes:yes; then
23744 as_fn_error $? "did not find ptexenc" "$LINENO" 5
23746 else
23747 PTEXENC_INCLUDES="-I$kpse_BLD/texk/ptexenc -I$kpse_SRC/texk/ptexenc"
23748 PTEXENC_LIBS="$kpse_BLD/texk/ptexenc/libptexenc.la"
23749 PTEXENC_DEPEND='${top_builddir}/../ptexenc/libptexenc.la'
23750 PTEXENC_RULE='# Rebuild libptexenc
23751 $(PTEXENC_DEPEND): ${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc/*.h
23752 cd ${top_builddir}/../ptexenc && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23755 ## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags
23757 # Check whether --with-system-zlib was given.
23758 if test "${with_system_zlib+set}" = set; then :
23759 withval=$with_system_zlib;
23762 # Check whether --with-zlib-includes was given.
23763 if test "${with_zlib_includes+set}" = set; then :
23764 withval=$with_zlib_includes;
23767 # Check whether --with-zlib-libdir was given.
23768 if test "${with_zlib_libdir+set}" = set; then :
23769 withval=$with_zlib_libdir;
23771 if test "x$with_system_zlib" = xyes; then
23772 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
23773 ZLIB_INCLUDES="-I$with_zlib_includes"
23775 ZLIB_LIBS="-lz"
23776 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
23777 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
23779 else
23780 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
23781 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
23782 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
23783 ZLIB_RULE='# Rebuild libz
23784 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
23785 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
23786 ${top_builddir}/../../libs/zlib/include/zconf.h:
23787 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
23790 $as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; }
23791 if ${kpse_cv_have_decl_z_const+:} false; then :
23792 $as_echo_n "(cached) " >&6
23793 else
23794 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
23795 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
23797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23798 /* end confdefs.h. */
23799 #include <zlib.h>
23801 main ()
23803 z_const char * foo();
23805 return 0;
23807 _ACEOF
23808 if ac_fn_c_try_compile "$LINENO"; then :
23809 kpse_cv_have_decl_z_const=yes
23810 else
23811 kpse_cv_have_decl_z_const=no
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 CPPFLAGS=$kpse_save_CPPFLAGS
23815 LIBS=$kpse_save_LIBS
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
23819 $as_echo "$kpse_cv_have_decl_z_const" >&6; }
23820 case $kpse_cv_have_decl_z_const in #(
23821 yes) :
23823 $as_echo "#define ZLIB_CONST 1" >>confdefs.h
23824 ;; #(
23825 *) :
23827 $as_echo "#define z_const /**/" >>confdefs.h
23829 esac
23831 ## _KPSE_LIB_FLAGS: Setup lua52 (-ltexlua52) flags
23832 LUA52_INCLUDES="-I$kpse_BLD/libs/lua52/include"
23833 LUA52_LIBS="$kpse_BLD/libs/lua52/libtexlua52.la"
23834 LUA52_DEPEND='${top_builddir}/../../libs/lua52/libtexlua52.la'
23835 LUA52_RULE='# Rebuild libtexlua52
23836 $(LUA52_DEPEND): ${top_builddir}/../../libs/lua52/include/lua.h
23837 cd ${top_builddir}/../../libs/lua52 && $(MAKE) $(AM_MAKEFLAGS) rebuild
23838 ${top_builddir}/../../libs/lua52/include/lua.h:
23839 cd ${top_builddir}/../../libs/lua52 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23841 ## _KPSE_LIB_FLAGS: Setup luajit (-ltexluajit) flags
23842 LUAJIT_INCLUDES="-I$kpse_BLD/libs/luajit/include"
23843 LUAJIT_LIBS="$kpse_BLD/libs/luajit/libtexluajit.la"
23844 LUAJIT_DEPEND='${top_builddir}/../../libs/luajit/libtexluajit.la'
23845 LUAJIT_RULE='# Rebuild libtexluajit
23846 $(LUAJIT_DEPEND): ${top_builddir}/../../libs/luajit/include/luajit.h
23847 cd ${top_builddir}/../../libs/luajit && $(MAKE) $(AM_MAKEFLAGS) rebuild
23848 ${top_builddir}/../../libs/luajit/include/luajit.h:
23849 cd ${top_builddir}/../../libs/luajit && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23851 ## _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags
23853 # Check whether --with-system-libpng was given.
23854 if test "${with_system_libpng+set}" = set; then :
23855 withval=$with_system_libpng;
23857 if test "x$with_system_libpng" = xyes; then
23858 if $PKG_CONFIG libpng; then
23859 LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
23860 LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
23861 elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
23862 as_fn_error $? "did not find libpng" "$LINENO" 5
23864 else
23865 LIBPNG_INCLUDES="-I$kpse_BLD/libs/libpng/include"
23866 LIBPNG_LIBS="$kpse_BLD/libs/libpng/libpng.a"
23867 LIBPNG_DEPEND='${top_builddir}/../../libs/libpng/libpng.a'
23868 LIBPNG_RULE='# Rebuild libpng
23869 $(LIBPNG_DEPEND): ${top_builddir}/../../libs/libpng/include/png.h
23870 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild
23871 ${top_builddir}/../../libs/libpng/include/png.h:
23872 cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23875 ## _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags
23877 # Check whether --with-system-freetype2 was given.
23878 if test "${with_system_freetype2+set}" = set; then :
23879 withval=$with_system_freetype2;
23881 if test "x$with_system_freetype2" = xyes; then
23882 if test -n "$ac_tool_prefix"; then
23883 # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
23884 set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23886 $as_echo_n "checking for $ac_word... " >&6; }
23887 if ${ac_cv_prog_FT2_CONFIG+:} false; then :
23888 $as_echo_n "(cached) " >&6
23889 else
23890 if test -n "$FT2_CONFIG"; then
23891 ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
23892 else
23893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23894 for as_dir in $PATH
23896 IFS=$as_save_IFS
23897 test -z "$as_dir" && as_dir=.
23898 for ac_exec_ext in '' $ac_executable_extensions; do
23899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23900 ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
23901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23902 break 2
23904 done
23905 done
23906 IFS=$as_save_IFS
23910 FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
23911 if test -n "$FT2_CONFIG"; then
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
23913 $as_echo "$FT2_CONFIG" >&6; }
23914 else
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916 $as_echo "no" >&6; }
23921 if test -z "$ac_cv_prog_FT2_CONFIG"; then
23922 ac_ct_FT2_CONFIG=$FT2_CONFIG
23923 # Extract the first word of "freetype-config", so it can be a program name with args.
23924 set dummy freetype-config; ac_word=$2
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23926 $as_echo_n "checking for $ac_word... " >&6; }
23927 if ${ac_cv_prog_ac_ct_FT2_CONFIG+:} false; then :
23928 $as_echo_n "(cached) " >&6
23929 else
23930 if test -n "$ac_ct_FT2_CONFIG"; then
23931 ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
23932 else
23933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23934 for as_dir in $PATH
23936 IFS=$as_save_IFS
23937 test -z "$as_dir" && as_dir=.
23938 for ac_exec_ext in '' $ac_executable_extensions; do
23939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23940 ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
23941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23942 break 2
23944 done
23945 done
23946 IFS=$as_save_IFS
23950 ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
23951 if test -n "$ac_ct_FT2_CONFIG"; then
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
23953 $as_echo "$ac_ct_FT2_CONFIG" >&6; }
23954 else
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23959 if test "x$ac_ct_FT2_CONFIG" = x; then
23960 FT2_CONFIG="false"
23961 else
23962 case $cross_compiling:$ac_tool_warned in
23963 yes:)
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23966 ac_tool_warned=yes ;;
23967 esac
23968 FT2_CONFIG=$ac_ct_FT2_CONFIG
23970 else
23971 FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
23973 if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
23974 FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
23975 FREETYPE2_LIBS=`$FT2_CONFIG --libs`
23976 elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
23977 as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
23979 else
23980 FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2"
23981 FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a"
23982 FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a'
23983 FREETYPE2_RULE='# Rebuild libfreetype
23984 $(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h
23985 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
23986 ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h:
23987 cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
23990 ## _KPSE_LIB_FLAGS: Setup pixman (-lpixman) flags
23992 # Check whether --with-system-pixman was given.
23993 if test "${with_system_pixman+set}" = set; then :
23994 withval=$with_system_pixman;
23996 if test "x$with_system_pixman" = xyes; then
23997 if $PKG_CONFIG pixman-1 --atleast-version=0.18; then
23998 PIXMAN_INCLUDES=`$PKG_CONFIG pixman-1 --cflags`
23999 PIXMAN_LIBS=`$PKG_CONFIG pixman-1 --libs`
24000 elif test "x$need_pixman:$with_system_pixman" = xyes:yes; then
24001 as_fn_error $? "did not find pixman-1 0.18 or better" "$LINENO" 5
24003 else
24004 PIXMAN_INCLUDES="-I$kpse_BLD/libs/pixman/include"
24005 PIXMAN_LIBS="$kpse_BLD/libs/pixman/libpixman.a"
24006 PIXMAN_DEPEND='${top_builddir}/../../libs/pixman/libpixman.a'
24007 PIXMAN_RULE='# Rebuild libpixman
24008 $(PIXMAN_DEPEND): ${top_builddir}/../../libs/pixman/include/pixman.h
24009 cd ${top_builddir}/../../libs/pixman && $(MAKE) $(AM_MAKEFLAGS) rebuild
24010 ${top_builddir}/../../libs/pixman/include/pixman.h:
24011 cd ${top_builddir}/../../libs/pixman && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24014 ## _KPSE_LIB_FLAGS: Setup cairo (-lcairo) flags
24016 # Check whether --with-system-cairo was given.
24017 if test "${with_system_cairo+set}" = set; then :
24018 withval=$with_system_cairo;
24020 if test "x$with_system_cairo" = xyes; then
24021 if $PKG_CONFIG cairo --atleast-version=1.12; then
24022 CAIRO_INCLUDES=`$PKG_CONFIG cairo --cflags`
24023 CAIRO_LIBS=`$PKG_CONFIG cairo --libs`
24024 elif test "x$need_cairo:$with_system_cairo" = xyes:yes; then
24025 as_fn_error $? "did not find cairo 1.12 or better" "$LINENO" 5
24027 else
24028 CAIRO_INCLUDES="-I$kpse_BLD/libs/cairo/cairo"
24029 CAIRO_LIBS="$kpse_BLD/libs/cairo/libcairo.a"
24030 CAIRO_DEPEND='${top_builddir}/../../libs/cairo/libcairo.a'
24031 CAIRO_RULE='# Rebuild libcairo
24032 $(CAIRO_DEPEND): ${top_builddir}/../../libs/cairo/cairo/cairo.h
24033 cd ${top_builddir}/../../libs/cairo && $(MAKE) $(AM_MAKEFLAGS) rebuild
24034 ${top_builddir}/../../libs/cairo/cairo/cairo.h:
24035 cd ${top_builddir}/../../libs/cairo && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24038 ## _KPSE_LIB_FLAGS: Setup gmp (-lgmp) flags
24040 # Check whether --with-system-gmp was given.
24041 if test "${with_system_gmp+set}" = set; then :
24042 withval=$with_system_gmp;
24045 # Check whether --with-gmp-includes was given.
24046 if test "${with_gmp_includes+set}" = set; then :
24047 withval=$with_gmp_includes;
24050 # Check whether --with-gmp-libdir was given.
24051 if test "${with_gmp_libdir+set}" = set; then :
24052 withval=$with_gmp_libdir;
24054 if test "x$with_system_gmp" = xyes; then
24055 if test "x$with_gmp_includes" != x && test "x$with_gmp_includes" != xyes; then
24056 GMP_INCLUDES="-I$with_gmp_includes"
24058 GMP_LIBS="-lgmp"
24059 if test "x$with_gmp_libdir" != x && test "x$with_gmp_libdir" != xyes; then
24060 GMP_LIBS="-L$with_gmp_libdir $GMP_LIBS"
24062 else
24063 GMP_INCLUDES="-I$kpse_BLD/libs/gmp/include"
24064 GMP_LIBS="$kpse_BLD/libs/gmp/libgmp.a"
24065 GMP_DEPEND='${top_builddir}/../../libs/gmp/libgmp.a'
24066 GMP_RULE='# Rebuild libgmp
24067 $(GMP_DEPEND): ${top_builddir}/../../libs/gmp/include/gmp.h
24068 cd ${top_builddir}/../../libs/gmp && $(MAKE) $(AM_MAKEFLAGS) rebuild
24069 ${top_builddir}/../../libs/gmp/include/gmp.h:
24070 cd ${top_builddir}/../../libs/gmp && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24073 ## _KPSE_LIB_FLAGS: Setup mpfr (-lmpfr) flags
24075 # Check whether --with-system-mpfr was given.
24076 if test "${with_system_mpfr+set}" = set; then :
24077 withval=$with_system_mpfr;
24080 # Check whether --with-mpfr-includes was given.
24081 if test "${with_mpfr_includes+set}" = set; then :
24082 withval=$with_mpfr_includes;
24085 # Check whether --with-mpfr-libdir was given.
24086 if test "${with_mpfr_libdir+set}" = set; then :
24087 withval=$with_mpfr_libdir;
24089 if test "x$with_system_mpfr" = xyes; then
24090 if test "x$with_mpfr_includes" != x && test "x$with_mpfr_includes" != xyes; then
24091 MPFR_INCLUDES="-I$with_mpfr_includes"
24093 MPFR_LIBS="-lmpfr"
24094 if test "x$with_mpfr_libdir" != x && test "x$with_mpfr_libdir" != xyes; then
24095 MPFR_LIBS="-L$with_mpfr_libdir $MPFR_LIBS"
24097 else
24098 MPFR_INCLUDES="-I$kpse_BLD/libs/mpfr/include"
24099 MPFR_LIBS="$kpse_BLD/libs/mpfr/libmpfr.a"
24100 MPFR_DEPEND='${top_builddir}/../../libs/mpfr/libmpfr.a'
24101 MPFR_RULE='# Rebuild libmpfr
24102 $(MPFR_DEPEND): ${top_builddir}/../../libs/mpfr/include/mpfr.h
24103 cd ${top_builddir}/../../libs/mpfr && $(MAKE) $(AM_MAKEFLAGS) rebuild
24104 ${top_builddir}/../../libs/mpfr/include/mpfr.h:
24105 cd ${top_builddir}/../../libs/mpfr && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24108 ## _KPSE_LIB_FLAGS: Setup poppler (-lpoppler) flags
24110 # Check whether --with-system-poppler was given.
24111 if test "${with_system_poppler+set}" = set; then :
24112 withval=$with_system_poppler;
24114 if test "x$with_system_poppler" = xyes; then
24115 if $PKG_CONFIG poppler --atleast-version=0.30; then
24116 POPPLER_INCLUDES=`$PKG_CONFIG poppler --cflags`
24117 POPPLER_LIBS=`$PKG_CONFIG poppler --libs`
24118 elif test "x$need_poppler:$with_system_poppler" = xyes:yes; then
24119 as_fn_error $? "did not find poppler 0.30 or better" "$LINENO" 5
24122 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
24123 POPPLER_INCLUDES="$POPPLER_VERSION $POPPLER_INCLUDES"
24124 else
24125 POPPLER_INCLUDES="-I$kpse_BLD/libs/poppler/include"
24126 POPPLER_LIBS="$kpse_BLD/libs/poppler/libpoppler.a"
24127 POPPLER_DEPEND='${top_builddir}/../../libs/poppler/libpoppler.a'
24128 POPPLER_RULE='# Rebuild libpoppler
24129 $(POPPLER_DEPEND): ${top_builddir}/../../libs/poppler/include/Stream.h
24130 cd ${top_builddir}/../../libs/poppler && $(MAKE) $(AM_MAKEFLAGS) rebuild
24131 ${top_builddir}/../../libs/poppler/include/Stream.h:
24132 cd ${top_builddir}/../../libs/poppler && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24134 test "x$kpse_cv_have_win32" = xno || POPPLER_LIBS="$POPPLER_LIBS -lgdi32"
24136 ## _KPSE_LIB_FLAGS: Setup xpdf (-lxpdf) flags
24138 # Check whether --with-system-xpdf was given.
24139 if test "${with_system_xpdf+set}" = set; then :
24140 withval=$with_system_xpdf;
24142 if test "x$with_system_xpdf" = xyes; then
24143 if $PKG_CONFIG poppler --atleast-version=0.12; then
24144 XPDF_INCLUDES=`$PKG_CONFIG poppler --cflags`
24145 XPDF_LIBS=`$PKG_CONFIG poppler --libs`
24146 elif test "x$need_xpdf:$with_system_xpdf" = xyes:yes; then
24147 as_fn_error $? "did not find poppler 0.12 or better" "$LINENO" 5
24150 POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
24151 XPDF_INCLUDES="$POPPLER_VERSION $XPDF_INCLUDES"
24152 else
24153 XPDF_INCLUDES="-DPDF_PARSER_ONLY -I$kpse_BLD/libs/xpdf -I$kpse_BLD/libs/xpdf/goo -I$kpse_BLD/libs/xpdf/xpdf"
24154 XPDF_LIBS="$kpse_BLD/libs/xpdf/libxpdf.a"
24155 XPDF_DEPEND='${top_builddir}/../../libs/xpdf/libxpdf.a'
24156 XPDF_RULE='# Rebuild libxpdf
24157 $(XPDF_DEPEND): ${top_builddir}/../../libs/xpdf/xpdf/Stream.h
24158 cd ${top_builddir}/../../libs/xpdf && $(MAKE) $(AM_MAKEFLAGS) rebuild
24159 ${top_builddir}/../../libs/xpdf/xpdf/Stream.h:
24160 cd ${top_builddir}/../../libs/xpdf && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24162 test "x$kpse_cv_have_win32" = xno || XPDF_LIBS="$XPDF_LIBS -lgdi32"
24164 ## _KPSE_LIB_FLAGS: Setup zziplib (-lzzip) flags
24166 # Check whether --with-system-zziplib was given.
24167 if test "${with_system_zziplib+set}" = set; then :
24168 withval=$with_system_zziplib;
24170 if test "x$with_system_zziplib" = xyes; then
24171 if $PKG_CONFIG zziplib --atleast-version=0.12; then
24172 ZZIPLIB_INCLUDES=`$PKG_CONFIG zziplib --cflags`
24173 ZZIPLIB_LIBS=`$PKG_CONFIG zziplib --libs`
24174 elif test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then
24175 as_fn_error $? "did not find zziplib 0.12 or better" "$LINENO" 5
24177 else
24178 ZZIPLIB_INCLUDES="-I$kpse_BLD/libs/zziplib/include"
24179 ZZIPLIB_LIBS="$kpse_BLD/libs/zziplib/libzzip.a"
24180 ZZIPLIB_DEPEND='${top_builddir}/../../libs/zziplib/libzzip.a'
24181 ZZIPLIB_RULE='# Rebuild libzzip
24182 $(ZZIPLIB_DEPEND): ${top_builddir}/../../libs/zziplib/include/zzip/zzip.h
24183 cd ${top_builddir}/../../libs/zziplib && $(MAKE) $(AM_MAKEFLAGS) rebuild
24184 ${top_builddir}/../../libs/zziplib/include/zzip/zzip.h:
24185 cd ${top_builddir}/../../libs/zziplib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24188 ## _KPSE_LIB_FLAGS: Setup teckit (-lTECkit) flags
24190 # Check whether --with-system-teckit was given.
24191 if test "${with_system_teckit+set}" = set; then :
24192 withval=$with_system_teckit;
24194 if test "x$with_system_teckit" = xyes; then
24195 if $PKG_CONFIG teckit; then
24196 TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags`
24197 TECKIT_LIBS=`$PKG_CONFIG teckit --libs`
24198 elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then
24199 as_fn_error $? "did not find teckit" "$LINENO" 5
24201 else
24202 TECKIT_INCLUDES="-I$kpse_BLD/libs/teckit/include"
24203 TECKIT_LIBS="$kpse_BLD/libs/teckit/libTECkit.a"
24204 TECKIT_DEPEND='${top_builddir}/../../libs/teckit/libTECkit.a'
24205 TECKIT_RULE='# Rebuild libTECkit
24206 $(TECKIT_DEPEND): ${top_builddir}/../../libs/teckit/include/teckit/TECkit_Common.h
24207 cd ${top_builddir}/../../libs/teckit && $(MAKE) $(AM_MAKEFLAGS) rebuild
24208 ${top_builddir}/../../libs/teckit/include/teckit/TECkit_Common.h:
24209 cd ${top_builddir}/../../libs/teckit && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24212 ## _KPSE_LIB_FLAGS: Setup icu (-licuxxx) flags
24214 # Check whether --with-system-icu was given.
24215 if test "${with_system_icu+set}" = set; then :
24216 withval=$with_system_icu;
24218 if test "x$with_system_icu" = xyes; then
24219 if test -n "$ac_tool_prefix"; then
24220 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
24221 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24223 $as_echo_n "checking for $ac_word... " >&6; }
24224 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
24225 $as_echo_n "(cached) " >&6
24226 else
24227 if test -n "$ICU_CONFIG"; then
24228 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
24229 else
24230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24231 for as_dir in $PATH
24233 IFS=$as_save_IFS
24234 test -z "$as_dir" && as_dir=.
24235 for ac_exec_ext in '' $ac_executable_extensions; do
24236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24237 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
24238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24239 break 2
24241 done
24242 done
24243 IFS=$as_save_IFS
24247 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
24248 if test -n "$ICU_CONFIG"; then
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
24250 $as_echo "$ICU_CONFIG" >&6; }
24251 else
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24253 $as_echo "no" >&6; }
24258 if test -z "$ac_cv_prog_ICU_CONFIG"; then
24259 ac_ct_ICU_CONFIG=$ICU_CONFIG
24260 # Extract the first word of "icu-config", so it can be a program name with args.
24261 set dummy icu-config; ac_word=$2
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24263 $as_echo_n "checking for $ac_word... " >&6; }
24264 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
24265 $as_echo_n "(cached) " >&6
24266 else
24267 if test -n "$ac_ct_ICU_CONFIG"; then
24268 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
24269 else
24270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24271 for as_dir in $PATH
24273 IFS=$as_save_IFS
24274 test -z "$as_dir" && as_dir=.
24275 for ac_exec_ext in '' $ac_executable_extensions; do
24276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24277 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
24278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24279 break 2
24281 done
24282 done
24283 IFS=$as_save_IFS
24287 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
24288 if test -n "$ac_ct_ICU_CONFIG"; then
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
24290 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
24291 else
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24293 $as_echo "no" >&6; }
24296 if test "x$ac_ct_ICU_CONFIG" = x; then
24297 ICU_CONFIG="false"
24298 else
24299 case $cross_compiling:$ac_tool_warned in
24300 yes:)
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24303 ac_tool_warned=yes ;;
24304 esac
24305 ICU_CONFIG=$ac_ct_ICU_CONFIG
24307 else
24308 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
24310 if $ICU_CONFIG --version >/dev/null 2>&1; then
24311 ICU_INCLUDES=`$ICU_CONFIG --cppflags`
24312 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly --ldflags-system`
24313 elif test "x$need_icu:$with_system_icu" = xyes:yes; then
24314 as_fn_error $? "did not find icu-config required for system icu libraries" "$LINENO" 5
24316 else
24317 ICU_INCLUDES="-DU_STATIC_IMPLEMENTATION -I$kpse_BLD/libs/icu/include"
24318 ICU_LIBS=" $kpse_BLD/libs/icu/icu-build/lib/libicuuc.a $kpse_BLD/libs/icu/icu-build/lib/libicudata.a"
24319 ICU_DEPEND=' ${top_builddir}/../../libs/icu/icu-build/lib/libicuuc.a ${top_builddir}/../../libs/icu/icu-build/lib/libicudata.a'
24320 ICU_RULE='# Rebuild libicuxxx
24321 $(ICU_DEPEND): ${top_builddir}/../../libs/icu/include/unicode/uversion.h
24322 cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild
24323 ${top_builddir}/../../libs/icu/include/unicode/uversion.h:
24324 cd ${top_builddir}/../../libs/icu && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24327 ## _KPSE_LIB_FLAGS: Setup graphite2 (-lgraphite2) flags
24329 # Check whether --with-system-graphite2 was given.
24330 if test "${with_system_graphite2+set}" = set; then :
24331 withval=$with_system_graphite2;
24333 if test "x$with_system_graphite2" = xyes; then
24334 if $PKG_CONFIG graphite2; then
24335 GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags`
24336 GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs`
24337 elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then
24338 as_fn_error $? "did not find graphite2" "$LINENO" 5
24340 else
24341 GRAPHITE2_INCLUDES="-I$kpse_BLD/libs/graphite2/include -DGRAPHITE2_STATIC"
24342 GRAPHITE2_LIBS="$kpse_BLD/libs/graphite2/libgraphite2.a"
24343 GRAPHITE2_DEPEND='${top_builddir}/../../libs/graphite2/libgraphite2.a'
24344 GRAPHITE2_RULE='# Rebuild libgraphite2
24345 $(GRAPHITE2_DEPEND): ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h
24346 cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
24347 ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h:
24348 cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24351 ## _KPSE_LIB_FLAGS: Setup harfbuzz (-lharfbuzz) flags
24353 # Check whether --with-system-harfbuzz was given.
24354 if test "${with_system_harfbuzz+set}" = set; then :
24355 withval=$with_system_harfbuzz;
24357 if test "x$with_system_harfbuzz" = xyes; then
24358 if $PKG_CONFIG harfbuzz-icu; then
24359 HARFBUZZ_INCLUDES=`$PKG_CONFIG harfbuzz-icu --cflags`
24360 HARFBUZZ_LIBS=`$PKG_CONFIG harfbuzz-icu --libs`
24361 elif test "x$need_harfbuzz:$with_system_harfbuzz" = xyes:yes; then
24362 as_fn_error $? "did not find harfbuzz-icu" "$LINENO" 5
24364 else
24365 HARFBUZZ_INCLUDES="-I$kpse_BLD/libs/harfbuzz/include"
24366 HARFBUZZ_LIBS="$kpse_BLD/libs/harfbuzz/libharfbuzz.a"
24367 HARFBUZZ_DEPEND='${top_builddir}/../../libs/harfbuzz/libharfbuzz.a'
24368 HARFBUZZ_RULE='# Rebuild libharfbuzz
24369 $(HARFBUZZ_DEPEND): ${top_builddir}/../../libs/harfbuzz/include/hb.h
24370 cd ${top_builddir}/../../libs/harfbuzz && $(MAKE) $(AM_MAKEFLAGS) rebuild
24371 ${top_builddir}/../../libs/harfbuzz/include/hb.h:
24372 cd ${top_builddir}/../../libs/harfbuzz && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24375 ## _KPSE_LIB_FLAGS: Setup graphite2 (-lgraphite2) flags
24377 # Check whether --with-system-graphite2 was given.
24378 if test "${with_system_graphite2+set}" = set; then :
24379 withval=$with_system_graphite2;
24381 if test "x$with_system_graphite2" = xyes; then
24382 if $PKG_CONFIG graphite2; then
24383 GRAPHITE2_INCLUDES=`$PKG_CONFIG graphite2 --cflags`
24384 GRAPHITE2_LIBS=`$PKG_CONFIG graphite2 --libs`
24385 elif test "x$need_graphite2:$with_system_graphite2" = xyes:yes; then
24386 as_fn_error $? "did not find graphite2" "$LINENO" 5
24388 else
24389 GRAPHITE2_INCLUDES="-I$kpse_BLD/libs/graphite2/include -DGRAPHITE2_STATIC"
24390 GRAPHITE2_LIBS="$kpse_BLD/libs/graphite2/libgraphite2.a"
24391 GRAPHITE2_DEPEND='${top_builddir}/../../libs/graphite2/libgraphite2.a'
24392 GRAPHITE2_RULE='# Rebuild libgraphite2
24393 $(GRAPHITE2_DEPEND): ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h
24394 cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
24395 ${top_builddir}/../../libs/graphite2/include/graphite2/Font.h:
24396 cd ${top_builddir}/../../libs/graphite2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
24400 # Check size of off_t (using <kpathsea/config.h>)
24401 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
24402 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
24404 # The cast to long int works around a bug in the HP C Compiler
24405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24407 # This bug is HP SR number 8606223364.
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24409 $as_echo_n "checking size of off_t... " >&6; }
24410 if ${ac_cv_sizeof_off_t+:} false; then :
24411 $as_echo_n "(cached) " >&6
24412 else
24413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default
24414 #include <kpathsea/config.h>
24415 "; then :
24417 else
24418 if test "$ac_cv_type_off_t" = yes; then
24419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24421 as_fn_error 77 "cannot compute sizeof (off_t)
24422 See \`config.log' for more details" "$LINENO" 5; }
24423 else
24424 ac_cv_sizeof_off_t=0
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24430 $as_echo "$ac_cv_sizeof_off_t" >&6; }
24434 cat >>confdefs.h <<_ACEOF
24435 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24436 _ACEOF
24440 if test "x$with_system_kpathsea" = xyes; then
24441 list="/usr/include /usr/local/include `echo $KPATHSEA_INCLUDES | sed 's/-I//g'`"
24442 found=no
24443 for KPATHSEA_PATHS_H in $list; do
24444 if test -r "$KPATHSEA_PATHS_H/kpathsea/paths.h"; then
24445 found=yes
24446 break
24448 done
24449 if test "x$found" = xno; then
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: You requested to build \`web2c' using an installed \`kpathsea' version," >&5
24451 $as_echo "$as_me: You requested to build \`web2c' using an installed \`kpathsea' version," >&6;}
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: which requires to locate the <kpathsea/paths.h> header file." >&5
24453 $as_echo "$as_me: which requires to locate the <kpathsea/paths.h> header file." >&6;}
24454 as_fn_error $? "Sorry, not found under any of: $list *****" "$LINENO" 5
24456 else
24457 KPATHSEA_PATHS_H='${top_builddir}/..'
24461 eval CPPFLAGS=\"$POPPLER_INCLUDES \$CPPFLAGS\"
24462 eval LIBS=\"$POPPLER_LIBS \$LIBS\"
24464 ac_ext=cpp
24465 ac_cpp='$CXXCPP $CPPFLAGS'
24466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24469 ac_link="./libtool --mode=link --tag=CXX $ac_link"
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Object::initCmd(const char*) etc" >&5
24472 $as_echo_n "checking for Object::initCmd(const char*) etc... " >&6; }
24473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24474 /* end confdefs.h. */
24475 #include <Object.h>
24477 main ()
24479 Object *obj; const char *name;
24480 obj->initCmd(name)->isStream(name);
24482 return 0;
24484 _ACEOF
24485 if ac_fn_cxx_try_compile "$LINENO"; then :
24486 kpse_cv_have_Object_initCmd_const_charp=yes
24487 else
24488 kpse_cv_have_Object_initCmd_const_charp=no
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_Object_initCmd_const_charp" >&5
24492 $as_echo "$kpse_cv_have_Object_initCmd_const_charp" >&6; }
24493 ac_ext=c
24494 ac_cpp='$CPP $CPPFLAGS'
24495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24498 ac_link="./libtool --mode=link --tag=CC $ac_link"
24500 if test "x$kpse_cv_have_Object_initCmd_const_charp" = xyes; then
24502 $as_echo "#define HAVE_OBJECT_INITCMD_CONST_CHARP 1" >>confdefs.h
24505 CPPFLAGS=$kpse_save_CPPFLAGS
24506 LIBS=$kpse_save_LIBS
24509 ac_config_headers="$ac_config_headers w2c/c-auto.h:c-auto.in"
24515 ac_config_headers="$ac_config_headers ff-config.h:luatexdir/luafontloader/ff-config.in"
24518 # For cross-compilation. Put at the end so there is a fair chance
24519 # these are still visible when the configure script has finished.
24521 # The supporting programs we need to have available on the build machine.
24522 # make variable cross native
24523 if test "x$cross_compiling" = xyes; then :
24524 # Extract the first word of "tangle", so it can be a program name with args.
24525 set dummy tangle; ac_word=$2
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24527 $as_echo_n "checking for $ac_word... " >&6; }
24528 if ${ac_cv_path_TANGLEBOOT+:} false; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 case $TANGLEBOOT in
24532 [\\/]* | ?:[\\/]*)
24533 ac_cv_path_TANGLEBOOT="$TANGLEBOOT" # Let the user override the test with a path.
24536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24537 for as_dir in $PATH
24539 IFS=$as_save_IFS
24540 test -z "$as_dir" && as_dir=.
24541 for ac_exec_ext in '' $ac_executable_extensions; do
24542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24543 ac_cv_path_TANGLEBOOT="$as_dir/$ac_word$ac_exec_ext"
24544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24545 break 2
24547 done
24548 done
24549 IFS=$as_save_IFS
24552 esac
24554 TANGLEBOOT=$ac_cv_path_TANGLEBOOT
24555 if test -n "$TANGLEBOOT"; then
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TANGLEBOOT" >&5
24557 $as_echo "$TANGLEBOOT" >&6; }
24558 else
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24560 $as_echo "no" >&6; }
24564 if test -z "${TANGLEBOOT}"; then :
24565 as_fn_error $? "tangle was not found but is required when cross-compiling.
24566 Install tangle or set \$TANGLEBOOT to the full pathname." "$LINENO" 5
24568 else
24569 TANGLEBOOT=./tangleboot
24572 if test "x$cross_compiling" = xyes; then :
24573 # Extract the first word of "tangle", so it can be a program name with args.
24574 set dummy tangle; ac_word=$2
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24576 $as_echo_n "checking for $ac_word... " >&6; }
24577 if ${ac_cv_path_TANGLE+:} false; then :
24578 $as_echo_n "(cached) " >&6
24579 else
24580 case $TANGLE in
24581 [\\/]* | ?:[\\/]*)
24582 ac_cv_path_TANGLE="$TANGLE" # Let the user override the test with a path.
24585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24586 for as_dir in $PATH
24588 IFS=$as_save_IFS
24589 test -z "$as_dir" && as_dir=.
24590 for ac_exec_ext in '' $ac_executable_extensions; do
24591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24592 ac_cv_path_TANGLE="$as_dir/$ac_word$ac_exec_ext"
24593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24594 break 2
24596 done
24597 done
24598 IFS=$as_save_IFS
24601 esac
24603 TANGLE=$ac_cv_path_TANGLE
24604 if test -n "$TANGLE"; then
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TANGLE" >&5
24606 $as_echo "$TANGLE" >&6; }
24607 else
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24609 $as_echo "no" >&6; }
24613 if test -z "${TANGLE}"; then :
24614 as_fn_error $? "tangle was not found but is required when cross-compiling.
24615 Install tangle or set \$TANGLE to the full pathname." "$LINENO" 5
24617 else
24618 TANGLE=./tangle
24621 if test "x$cross_compiling" = xyes; then :
24622 # Extract the first word of "ctangle", so it can be a program name with args.
24623 set dummy ctangle; ac_word=$2
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24625 $as_echo_n "checking for $ac_word... " >&6; }
24626 if ${ac_cv_path_CTANGLEBOOT+:} false; then :
24627 $as_echo_n "(cached) " >&6
24628 else
24629 case $CTANGLEBOOT in
24630 [\\/]* | ?:[\\/]*)
24631 ac_cv_path_CTANGLEBOOT="$CTANGLEBOOT" # Let the user override the test with a path.
24634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24635 for as_dir in $PATH
24637 IFS=$as_save_IFS
24638 test -z "$as_dir" && as_dir=.
24639 for ac_exec_ext in '' $ac_executable_extensions; do
24640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24641 ac_cv_path_CTANGLEBOOT="$as_dir/$ac_word$ac_exec_ext"
24642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24643 break 2
24645 done
24646 done
24647 IFS=$as_save_IFS
24650 esac
24652 CTANGLEBOOT=$ac_cv_path_CTANGLEBOOT
24653 if test -n "$CTANGLEBOOT"; then
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTANGLEBOOT" >&5
24655 $as_echo "$CTANGLEBOOT" >&6; }
24656 else
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24658 $as_echo "no" >&6; }
24662 if test -z "${CTANGLEBOOT}"; then :
24663 as_fn_error $? "ctangle was not found but is required when cross-compiling.
24664 Install ctangle or set \$CTANGLEBOOT to the full pathname." "$LINENO" 5
24666 else
24667 CTANGLEBOOT=./ctangleboot
24670 if test "x$cross_compiling" = xyes; then :
24671 # Extract the first word of "ctangle", so it can be a program name with args.
24672 set dummy ctangle; ac_word=$2
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24674 $as_echo_n "checking for $ac_word... " >&6; }
24675 if ${ac_cv_path_CTANGLE+:} false; then :
24676 $as_echo_n "(cached) " >&6
24677 else
24678 case $CTANGLE in
24679 [\\/]* | ?:[\\/]*)
24680 ac_cv_path_CTANGLE="$CTANGLE" # Let the user override the test with a path.
24683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684 for as_dir in $PATH
24686 IFS=$as_save_IFS
24687 test -z "$as_dir" && as_dir=.
24688 for ac_exec_ext in '' $ac_executable_extensions; do
24689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24690 ac_cv_path_CTANGLE="$as_dir/$ac_word$ac_exec_ext"
24691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24692 break 2
24694 done
24695 done
24696 IFS=$as_save_IFS
24699 esac
24701 CTANGLE=$ac_cv_path_CTANGLE
24702 if test -n "$CTANGLE"; then
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTANGLE" >&5
24704 $as_echo "$CTANGLE" >&6; }
24705 else
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24707 $as_echo "no" >&6; }
24711 if test -z "${CTANGLE}"; then :
24712 as_fn_error $? "ctangle was not found but is required when cross-compiling.
24713 Install ctangle or set \$CTANGLE to the full pathname." "$LINENO" 5
24715 else
24716 CTANGLE=./ctangle
24719 if test "x$cross_compiling" = xyes; then :
24720 # Extract the first word of "tie", so it can be a program name with args.
24721 set dummy tie; ac_word=$2
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24723 $as_echo_n "checking for $ac_word... " >&6; }
24724 if ${ac_cv_path_TIE+:} false; then :
24725 $as_echo_n "(cached) " >&6
24726 else
24727 case $TIE in
24728 [\\/]* | ?:[\\/]*)
24729 ac_cv_path_TIE="$TIE" # Let the user override the test with a path.
24732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24733 for as_dir in $PATH
24735 IFS=$as_save_IFS
24736 test -z "$as_dir" && as_dir=.
24737 for ac_exec_ext in '' $ac_executable_extensions; do
24738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24739 ac_cv_path_TIE="$as_dir/$ac_word$ac_exec_ext"
24740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24741 break 2
24743 done
24744 done
24745 IFS=$as_save_IFS
24748 esac
24750 TIE=$ac_cv_path_TIE
24751 if test -n "$TIE"; then
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIE" >&5
24753 $as_echo "$TIE" >&6; }
24754 else
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24756 $as_echo "no" >&6; }
24760 if test -z "${TIE}"; then :
24761 as_fn_error $? "tie was not found but is required when cross-compiling.
24762 Install tie or set \$TIE to the full pathname." "$LINENO" 5
24764 else
24765 TIE=./tie
24768 if test "x$cross_compiling" = xyes; then :
24769 # Extract the first word of "otangle", so it can be a program name with args.
24770 set dummy otangle; ac_word=$2
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24772 $as_echo_n "checking for $ac_word... " >&6; }
24773 if ${ac_cv_path_OTANGLE+:} false; then :
24774 $as_echo_n "(cached) " >&6
24775 else
24776 case $OTANGLE in
24777 [\\/]* | ?:[\\/]*)
24778 ac_cv_path_OTANGLE="$OTANGLE" # Let the user override the test with a path.
24781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24782 for as_dir in $PATH
24784 IFS=$as_save_IFS
24785 test -z "$as_dir" && as_dir=.
24786 for ac_exec_ext in '' $ac_executable_extensions; do
24787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24788 ac_cv_path_OTANGLE="$as_dir/$ac_word$ac_exec_ext"
24789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24790 break 2
24792 done
24793 done
24794 IFS=$as_save_IFS
24797 esac
24799 OTANGLE=$ac_cv_path_OTANGLE
24800 if test -n "$OTANGLE"; then
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTANGLE" >&5
24802 $as_echo "$OTANGLE" >&6; }
24803 else
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24805 $as_echo "no" >&6; }
24809 if test -z "${OTANGLE}"; then :
24810 as_fn_error $? "otangle was not found but is required when cross-compiling.
24811 Install otangle or set \$OTANGLE to the full pathname." "$LINENO" 5
24813 else
24814 OTANGLE=./otangle
24818 if test "x$cross_compiling" = xyes; then
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your tie supports WEBINPUTS" >&5
24820 $as_echo_n "checking if your tie supports WEBINPUTS... " >&6; }
24821 ( WEBINPUTS=$srcdir/tiedir
24822 export WEBINPUTS
24823 $TIE -c tie.outc tie.tie tie.cf1 tie.cf2 tie.cf3
24824 $TIE -m tie.outm tie.tie tie.cf1 tie.cf2 tie.cf3 ) >/dev/null 2>&1
24825 if diff tie.outc $srcdir/tiedir/tie.chf.gen >/dev/null 2>&1 && \
24826 diff tie.outm $srcdir/tiedir/tie.master.gen >/dev/null 2>&1; then
24827 tool_ok=yes
24828 else
24829 tool_ok=no
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_ok" >&5
24832 $as_echo "$tool_ok" >&6; }
24833 if test "x$tool_ok" != xyes; then
24834 as_fn_error $? "Sorry, your $TIE is too old and does not support WEBINPUTS" "$LINENO" 5
24836 rm -f tie.outc tie.outm
24837 if test "x$enable_otangle" = xyes; then
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your otangle supports WEBINPUTS" >&5
24839 $as_echo_n "checking if your otangle supports WEBINPUTS... " >&6; }
24840 ( WEBINPUTS=$srcdir/cftests
24841 export WEBINPUTS
24842 $OTANGLE cftest cftest ) >/dev/null 2>&1
24843 if diff cftest.p $srcdir/cftests/ocftest.p >/dev/null 2>&1; then
24844 tool_ok=yes
24845 else
24846 tool_ok=no
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_ok" >&5
24849 $as_echo "$tool_ok" >&6; }
24850 if test "x$tool_ok" != xyes; then
24851 as_fn_error $? "Sorry, your $OTANGLE is too old and does not support WEBINPUTS" "$LINENO" 5
24853 rm -f cftest.p
24857 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile omegafonts/Makefile otps/Makefile otps/win32/Makefile window/Makefile"
24859 ac_config_files="$ac_config_files web2c-sh"
24861 ac_config_files="$ac_config_files tangle-sh"
24863 ac_config_files="$ac_config_files ctangleboot-sh"
24865 ac_config_files="$ac_config_files silent-sh"
24868 ## texk/web2c/synctexdir/ac/synctex.ac: configure.ac fragment for the TeX Live subdirectory texk/web2c/
24870 SYNCTEXVERSION=1.18.0
24873 SYNCTEX_LT_VERSINFO=19:0:18
24876 if test "x$enable_synctex" != xno; then
24877 SYNCTEX_TRUE=
24878 SYNCTEX_FALSE='#'
24879 else
24880 SYNCTEX_TRUE='#'
24881 SYNCTEX_FALSE=
24885 if test "x$with_system_zlib" = xyes; then :
24886 LTLIBSYNCTEX=libsynctex.la
24888 else
24889 LIBSYNCTEX=libsynctex.a
24893 ac_config_files="$ac_config_files synctexdir/synctex.pc"
24898 if test "x$host_alias" != x && test "x$build_alias" = x; then :
24899 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
24901 eval kpse_build_alias=\${build_alias-$build}
24905 subdirs="$subdirs web2c"
24910 cat >confcache <<\_ACEOF
24911 # This file is a shell script that caches the results of configure
24912 # tests run on this system so they can be shared between configure
24913 # scripts and configure runs, see configure's option --config-cache.
24914 # It is not useful on other systems. If it contains results you don't
24915 # want to keep, you may remove or edit it.
24917 # config.status only pays attention to the cache file if you give it
24918 # the --recheck option to rerun configure.
24920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24922 # following values.
24924 _ACEOF
24926 # The following way of writing the cache mishandles newlines in values,
24927 # but we know of no workaround that is simple, portable, and efficient.
24928 # So, we kill variables containing newlines.
24929 # Ultrix sh set writes to stderr and can't be redirected directly,
24930 # and sets the high bit in the cache file unless we assign to the vars.
24932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24933 eval ac_val=\$$ac_var
24934 case $ac_val in #(
24935 *${as_nl}*)
24936 case $ac_var in #(
24937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24939 esac
24940 case $ac_var in #(
24941 _ | IFS | as_nl) ;; #(
24942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24943 *) { eval $ac_var=; unset $ac_var;} ;;
24944 esac ;;
24945 esac
24946 done
24948 (set) 2>&1 |
24949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24950 *${as_nl}ac_space=\ *)
24951 # `set' does not quote correctly, so add quotes: double-quote
24952 # substitution turns \\\\ into \\, and sed turns \\ into \.
24953 sed -n \
24954 "s/'/'\\\\''/g;
24955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24956 ;; #(
24958 # `set' quotes correctly as required by POSIX, so do not add quotes.
24959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24961 esac |
24962 sort
24964 sed '
24965 /^ac_cv_env_/b end
24966 t clear
24967 :clear
24968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24969 t end
24970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24971 :end' >>confcache
24972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24973 if test -w "$cache_file"; then
24974 if test "x$cache_file" != "x/dev/null"; then
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24976 $as_echo "$as_me: updating cache $cache_file" >&6;}
24977 if test ! -f "$cache_file" || test -h "$cache_file"; then
24978 cat confcache >"$cache_file"
24979 else
24980 case $cache_file in #(
24981 */* | ?:*)
24982 mv -f confcache "$cache_file"$$ &&
24983 mv -f "$cache_file"$$ "$cache_file" ;; #(
24985 mv -f confcache "$cache_file" ;;
24986 esac
24989 else
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24994 rm -f confcache
24996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24997 # Let make expand exec_prefix.
24998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25000 DEFS=-DHAVE_CONFIG_H
25002 ac_libobjs=
25003 ac_ltlibobjs=
25005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25006 # 1. Remove the extension, and $U if already installed.
25007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25010 # will be set to the directory where LIBOBJS objects are built.
25011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25013 done
25014 LIBOBJS=$ac_libobjs
25016 LTLIBOBJS=$ac_ltlibobjs
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25020 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25021 if test -n "$am_sleep_pid"; then
25022 # Hide warnings about reused PIDs.
25023 wait $am_sleep_pid 2>/dev/null
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25026 $as_echo "done" >&6; }
25027 if test -n "$EXEEXT"; then
25028 am__EXEEXT_TRUE=
25029 am__EXEEXT_FALSE='#'
25030 else
25031 am__EXEEXT_TRUE='#'
25032 am__EXEEXT_FALSE=
25035 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25036 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25039 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25040 as_fn_error $? "conditional \"AMDEP\" was never defined.
25041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25044 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25047 if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then
25048 as_fn_error $? "conditional \"cross\" was never defined.
25049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25051 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25052 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25055 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
25056 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
25057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25059 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
25060 as_fn_error $? "conditional \"WIN32\" was never defined.
25061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25063 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
25064 as_fn_error $? "conditional \"MINGW32\" was never defined.
25065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25067 if test -z "${WIN32_CALL_TRUE}" && test -z "${WIN32_CALL_FALSE}"; then
25068 as_fn_error $? "conditional \"WIN32_CALL\" was never defined.
25069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25071 if test -z "${USE_DLOPEN_TRUE}" && test -z "${USE_DLOPEN_FALSE}"; then
25072 as_fn_error $? "conditional \"USE_DLOPEN\" was never defined.
25073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25075 if test -z "${XETEX_MACOSX_TRUE}" && test -z "${XETEX_MACOSX_FALSE}"; then
25076 as_fn_error $? "conditional \"XETEX_MACOSX\" was never defined.
25077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25079 if test -z "${TEX_TRUE}" && test -z "${TEX_FALSE}"; then
25080 as_fn_error $? "conditional \"TEX\" was never defined.
25081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25083 if test -z "${TEX_SYNCTEX_TRUE}" && test -z "${TEX_SYNCTEX_FALSE}"; then
25084 as_fn_error $? "conditional \"TEX_SYNCTEX\" was never defined.
25085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25087 if test -z "${ETEX_TRUE}" && test -z "${ETEX_FALSE}"; then
25088 as_fn_error $? "conditional \"ETEX\" was never defined.
25089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25091 if test -z "${ETEX_SYNCTEX_TRUE}" && test -z "${ETEX_SYNCTEX_FALSE}"; then
25092 as_fn_error $? "conditional \"ETEX_SYNCTEX\" was never defined.
25093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25095 if test -z "${PTEX_TRUE}" && test -z "${PTEX_FALSE}"; then
25096 as_fn_error $? "conditional \"PTEX\" was never defined.
25097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25099 if test -z "${PTEX_SYNCTEX_TRUE}" && test -z "${PTEX_SYNCTEX_FALSE}"; then
25100 as_fn_error $? "conditional \"PTEX_SYNCTEX\" was never defined.
25101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25103 if test -z "${EPTEX_TRUE}" && test -z "${EPTEX_FALSE}"; then
25104 as_fn_error $? "conditional \"EPTEX\" was never defined.
25105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25107 if test -z "${EPTEX_SYNCTEX_TRUE}" && test -z "${EPTEX_SYNCTEX_FALSE}"; then
25108 as_fn_error $? "conditional \"EPTEX_SYNCTEX\" was never defined.
25109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25111 if test -z "${UPTEX_TRUE}" && test -z "${UPTEX_FALSE}"; then
25112 as_fn_error $? "conditional \"UPTEX\" was never defined.
25113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25115 if test -z "${UPTEX_SYNCTEX_TRUE}" && test -z "${UPTEX_SYNCTEX_FALSE}"; then
25116 as_fn_error $? "conditional \"UPTEX_SYNCTEX\" was never defined.
25117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25119 if test -z "${EUPTEX_TRUE}" && test -z "${EUPTEX_FALSE}"; then
25120 as_fn_error $? "conditional \"EUPTEX\" was never defined.
25121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25123 if test -z "${EUPTEX_SYNCTEX_TRUE}" && test -z "${EUPTEX_SYNCTEX_FALSE}"; then
25124 as_fn_error $? "conditional \"EUPTEX_SYNCTEX\" was never defined.
25125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25127 if test -z "${ALEPH_TRUE}" && test -z "${ALEPH_FALSE}"; then
25128 as_fn_error $? "conditional \"ALEPH\" was never defined.
25129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25131 if test -z "${PDFTEX_TRUE}" && test -z "${PDFTEX_FALSE}"; then
25132 as_fn_error $? "conditional \"PDFTEX\" was never defined.
25133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25135 if test -z "${PDFTEX_SYNCTEX_TRUE}" && test -z "${PDFTEX_SYNCTEX_FALSE}"; then
25136 as_fn_error $? "conditional \"PDFTEX_SYNCTEX\" was never defined.
25137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25139 if test -z "${LUATEX_TRUE}" && test -z "${LUATEX_FALSE}"; then
25140 as_fn_error $? "conditional \"LUATEX\" was never defined.
25141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25143 if test -z "${LUAJITTEX_TRUE}" && test -z "${LUAJITTEX_FALSE}"; then
25144 as_fn_error $? "conditional \"LUAJITTEX\" was never defined.
25145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25147 if test -z "${MP_TRUE}" && test -z "${MP_FALSE}"; then
25148 as_fn_error $? "conditional \"MP\" was never defined.
25149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25151 if test -z "${PMP_TRUE}" && test -z "${PMP_FALSE}"; then
25152 as_fn_error $? "conditional \"PMP\" was never defined.
25153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25155 if test -z "${UPMP_TRUE}" && test -z "${UPMP_FALSE}"; then
25156 as_fn_error $? "conditional \"UPMP\" was never defined.
25157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25159 if test -z "${XETEX_TRUE}" && test -z "${XETEX_FALSE}"; then
25160 as_fn_error $? "conditional \"XETEX\" was never defined.
25161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25163 if test -z "${XETEX_SYNCTEX_TRUE}" && test -z "${XETEX_SYNCTEX_FALSE}"; then
25164 as_fn_error $? "conditional \"XETEX_SYNCTEX\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25167 if test -z "${OTANGLE_TRUE}" && test -z "${OTANGLE_FALSE}"; then
25168 as_fn_error $? "conditional \"OTANGLE\" was never defined.
25169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25171 if test -z "${MF_TRUE}" && test -z "${MF_FALSE}"; then
25172 as_fn_error $? "conditional \"MF\" was never defined.
25173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25175 if test -z "${MFN_TRUE}" && test -z "${MFN_FALSE}"; then
25176 as_fn_error $? "conditional \"MFN\" was never defined.
25177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25179 if test -z "${MFLUA_TRUE}" && test -z "${MFLUA_FALSE}"; then
25180 as_fn_error $? "conditional \"MFLUA\" was never defined.
25181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25183 if test -z "${MFLUAN_TRUE}" && test -z "${MFLUAN_FALSE}"; then
25184 as_fn_error $? "conditional \"MFLUAN\" was never defined.
25185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25187 if test -z "${MFLUAJIT_TRUE}" && test -z "${MFLUAJIT_FALSE}"; then
25188 as_fn_error $? "conditional \"MFLUAJIT\" was never defined.
25189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25191 if test -z "${MFLUAJITN_TRUE}" && test -z "${MFLUAJITN_FALSE}"; then
25192 as_fn_error $? "conditional \"MFLUAJITN\" was never defined.
25193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25195 if test -z "${MFXT_TRUE}" && test -z "${MFXT_FALSE}"; then
25196 as_fn_error $? "conditional \"MFXT\" was never defined.
25197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25199 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
25200 as_fn_error $? "conditional \"WEB\" was never defined.
25201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25203 if test -z "${PWEB_TRUE}" && test -z "${PWEB_FALSE}"; then
25204 as_fn_error $? "conditional \"PWEB\" was never defined.
25205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25207 if test -z "${UPWEB_TRUE}" && test -z "${UPWEB_FALSE}"; then
25208 as_fn_error $? "conditional \"UPWEB\" was never defined.
25209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25212 if test -z "${SYNCTEX_TRUE}" && test -z "${SYNCTEX_FALSE}"; then
25213 as_fn_error $? "conditional \"SYNCTEX\" was never defined.
25214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25217 : "${CONFIG_STATUS=./config.status}"
25218 ac_write_fail=0
25219 ac_clean_files_save=$ac_clean_files
25220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25223 as_write_fail=0
25224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25225 #! $SHELL
25226 # Generated by $as_me.
25227 # Run this file to recreate the current configuration.
25228 # Compiler output produced by configure, useful for debugging
25229 # configure, is in config.log if it exists.
25231 debug=false
25232 ac_cs_recheck=false
25233 ac_cs_silent=false
25235 SHELL=\${CONFIG_SHELL-$SHELL}
25236 export SHELL
25237 _ASEOF
25238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25239 ## -------------------- ##
25240 ## M4sh Initialization. ##
25241 ## -------------------- ##
25243 # Be more Bourne compatible
25244 DUALCASE=1; export DUALCASE # for MKS sh
25245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25246 emulate sh
25247 NULLCMD=:
25248 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25249 # is contrary to our usage. Disable this feature.
25250 alias -g '${1+"$@"}'='"$@"'
25251 setopt NO_GLOB_SUBST
25252 else
25253 case `(set -o) 2>/dev/null` in #(
25254 *posix*) :
25255 set -o posix ;; #(
25256 *) :
25258 esac
25262 as_nl='
25264 export as_nl
25265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25269 # Prefer a ksh shell builtin over an external printf program on Solaris,
25270 # but without wasting forks for bash or zsh.
25271 if test -z "$BASH_VERSION$ZSH_VERSION" \
25272 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25273 as_echo='print -r --'
25274 as_echo_n='print -rn --'
25275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25276 as_echo='printf %s\n'
25277 as_echo_n='printf %s'
25278 else
25279 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25280 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25281 as_echo_n='/usr/ucb/echo -n'
25282 else
25283 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25284 as_echo_n_body='eval
25285 arg=$1;
25286 case $arg in #(
25287 *"$as_nl"*)
25288 expr "X$arg" : "X\\(.*\\)$as_nl";
25289 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25290 esac;
25291 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25293 export as_echo_n_body
25294 as_echo_n='sh -c $as_echo_n_body as_echo'
25296 export as_echo_body
25297 as_echo='sh -c $as_echo_body as_echo'
25300 # The user is always right.
25301 if test "${PATH_SEPARATOR+set}" != set; then
25302 PATH_SEPARATOR=:
25303 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25304 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25305 PATH_SEPARATOR=';'
25310 # IFS
25311 # We need space, tab and new line, in precisely that order. Quoting is
25312 # there to prevent editors from complaining about space-tab.
25313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25314 # splitting by setting IFS to empty value.)
25315 IFS=" "" $as_nl"
25317 # Find who we are. Look in the path if we contain no directory separator.
25318 as_myself=
25319 case $0 in #((
25320 *[\\/]* ) as_myself=$0 ;;
25321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25322 for as_dir in $PATH
25324 IFS=$as_save_IFS
25325 test -z "$as_dir" && as_dir=.
25326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25327 done
25328 IFS=$as_save_IFS
25331 esac
25332 # We did not find ourselves, most probably we were run as `sh COMMAND'
25333 # in which case we are not to be found in the path.
25334 if test "x$as_myself" = x; then
25335 as_myself=$0
25337 if test ! -f "$as_myself"; then
25338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25339 exit 1
25342 # Unset variables that we do not need and which cause bugs (e.g. in
25343 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25344 # suppresses any "Segmentation fault" message there. '((' could
25345 # trigger a bug in pdksh 5.2.14.
25346 for as_var in BASH_ENV ENV MAIL MAILPATH
25347 do eval test x\${$as_var+set} = xset \
25348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25349 done
25350 PS1='$ '
25351 PS2='> '
25352 PS4='+ '
25354 # NLS nuisances.
25355 LC_ALL=C
25356 export LC_ALL
25357 LANGUAGE=C
25358 export LANGUAGE
25360 # CDPATH.
25361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25365 # ----------------------------------------
25366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25368 # script with STATUS, using 1 if that was 0.
25369 as_fn_error ()
25371 as_status=$1; test $as_status -eq 0 && as_status=1
25372 if test "$4"; then
25373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25376 $as_echo "$as_me: error: $2" >&2
25377 as_fn_exit $as_status
25378 } # as_fn_error
25381 # as_fn_set_status STATUS
25382 # -----------------------
25383 # Set $? to STATUS, without forking.
25384 as_fn_set_status ()
25386 return $1
25387 } # as_fn_set_status
25389 # as_fn_exit STATUS
25390 # -----------------
25391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25392 as_fn_exit ()
25394 set +e
25395 as_fn_set_status $1
25396 exit $1
25397 } # as_fn_exit
25399 # as_fn_unset VAR
25400 # ---------------
25401 # Portably unset VAR.
25402 as_fn_unset ()
25404 { eval $1=; unset $1;}
25406 as_unset=as_fn_unset
25407 # as_fn_append VAR VALUE
25408 # ----------------------
25409 # Append the text in VALUE to the end of the definition contained in VAR. Take
25410 # advantage of any shell optimizations that allow amortized linear growth over
25411 # repeated appends, instead of the typical quadratic growth present in naive
25412 # implementations.
25413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25414 eval 'as_fn_append ()
25416 eval $1+=\$2
25418 else
25419 as_fn_append ()
25421 eval $1=\$$1\$2
25423 fi # as_fn_append
25425 # as_fn_arith ARG...
25426 # ------------------
25427 # Perform arithmetic evaluation on the ARGs, and store the result in the
25428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25429 # must be portable across $(()) and expr.
25430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25431 eval 'as_fn_arith ()
25433 as_val=$(( $* ))
25435 else
25436 as_fn_arith ()
25438 as_val=`expr "$@" || test $? -eq 1`
25440 fi # as_fn_arith
25443 if expr a : '\(a\)' >/dev/null 2>&1 &&
25444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25445 as_expr=expr
25446 else
25447 as_expr=false
25450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25451 as_basename=basename
25452 else
25453 as_basename=false
25456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25457 as_dirname=dirname
25458 else
25459 as_dirname=false
25462 as_me=`$as_basename -- "$0" ||
25463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25464 X"$0" : 'X\(//\)$' \| \
25465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25466 $as_echo X/"$0" |
25467 sed '/^.*\/\([^/][^/]*\)\/*$/{
25468 s//\1/
25471 /^X\/\(\/\/\)$/{
25472 s//\1/
25475 /^X\/\(\/\).*/{
25476 s//\1/
25479 s/.*/./; q'`
25481 # Avoid depending upon Character Ranges.
25482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25485 as_cr_digits='0123456789'
25486 as_cr_alnum=$as_cr_Letters$as_cr_digits
25488 ECHO_C= ECHO_N= ECHO_T=
25489 case `echo -n x` in #(((((
25490 -n*)
25491 case `echo 'xy\c'` in
25492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25493 xy) ECHO_C='\c';;
25494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25495 ECHO_T=' ';;
25496 esac;;
25498 ECHO_N='-n';;
25499 esac
25501 rm -f conf$$ conf$$.exe conf$$.file
25502 if test -d conf$$.dir; then
25503 rm -f conf$$.dir/conf$$.file
25504 else
25505 rm -f conf$$.dir
25506 mkdir conf$$.dir 2>/dev/null
25508 if (echo >conf$$.file) 2>/dev/null; then
25509 if ln -s conf$$.file conf$$ 2>/dev/null; then
25510 as_ln_s='ln -s'
25511 # ... but there are two gotchas:
25512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25514 # In both cases, we have to default to `cp -pR'.
25515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25516 as_ln_s='cp -pR'
25517 elif ln conf$$.file conf$$ 2>/dev/null; then
25518 as_ln_s=ln
25519 else
25520 as_ln_s='cp -pR'
25522 else
25523 as_ln_s='cp -pR'
25525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25526 rmdir conf$$.dir 2>/dev/null
25529 # as_fn_mkdir_p
25530 # -------------
25531 # Create "$as_dir" as a directory, including parents if necessary.
25532 as_fn_mkdir_p ()
25535 case $as_dir in #(
25536 -*) as_dir=./$as_dir;;
25537 esac
25538 test -d "$as_dir" || eval $as_mkdir_p || {
25539 as_dirs=
25540 while :; do
25541 case $as_dir in #(
25542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25543 *) as_qdir=$as_dir;;
25544 esac
25545 as_dirs="'$as_qdir' $as_dirs"
25546 as_dir=`$as_dirname -- "$as_dir" ||
25547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25548 X"$as_dir" : 'X\(//\)[^/]' \| \
25549 X"$as_dir" : 'X\(//\)$' \| \
25550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25551 $as_echo X"$as_dir" |
25552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25553 s//\1/
25556 /^X\(\/\/\)[^/].*/{
25557 s//\1/
25560 /^X\(\/\/\)$/{
25561 s//\1/
25564 /^X\(\/\).*/{
25565 s//\1/
25568 s/.*/./; q'`
25569 test -d "$as_dir" && break
25570 done
25571 test -z "$as_dirs" || eval "mkdir $as_dirs"
25572 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25575 } # as_fn_mkdir_p
25576 if mkdir -p . 2>/dev/null; then
25577 as_mkdir_p='mkdir -p "$as_dir"'
25578 else
25579 test -d ./-p && rmdir ./-p
25580 as_mkdir_p=false
25584 # as_fn_executable_p FILE
25585 # -----------------------
25586 # Test if FILE is an executable regular file.
25587 as_fn_executable_p ()
25589 test -f "$1" && test -x "$1"
25590 } # as_fn_executable_p
25591 as_test_x='test -x'
25592 as_executable_p=as_fn_executable_p
25594 # Sed expression to map a string onto a valid CPP name.
25595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25597 # Sed expression to map a string onto a valid variable name.
25598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25601 exec 6>&1
25602 ## ----------------------------------- ##
25603 ## Main body of $CONFIG_STATUS script. ##
25604 ## ----------------------------------- ##
25605 _ASEOF
25606 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25609 # Save the log message, to keep $0 and so on meaningful, and to
25610 # report actual input values of CONFIG_FILES etc. instead of their
25611 # values after options handling.
25612 ac_log="
25613 This file was extended by Web2C $as_me 2016/dev, which was
25614 generated by GNU Autoconf 2.69. Invocation command line was
25616 CONFIG_FILES = $CONFIG_FILES
25617 CONFIG_HEADERS = $CONFIG_HEADERS
25618 CONFIG_LINKS = $CONFIG_LINKS
25619 CONFIG_COMMANDS = $CONFIG_COMMANDS
25620 $ $0 $@
25622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25625 _ACEOF
25627 case $ac_config_files in *"
25628 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25629 esac
25631 case $ac_config_headers in *"
25632 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25633 esac
25636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25637 # Files that config.status was made for.
25638 config_files="$ac_config_files"
25639 config_headers="$ac_config_headers"
25640 config_links="$ac_config_links"
25641 config_commands="$ac_config_commands"
25643 _ACEOF
25645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25646 ac_cs_usage="\
25647 \`$as_me' instantiates files and other configuration actions
25648 from templates according to the current configuration. Unless the files
25649 and actions are specified as TAGs, all are instantiated by default.
25651 Usage: $0 [OPTION]... [TAG]...
25653 -h, --help print this help, then exit
25654 -V, --version print version number and configuration settings, then exit
25655 --config print configuration, then exit
25656 -q, --quiet, --silent
25657 do not print progress messages
25658 -d, --debug don't remove temporary files
25659 --recheck update $as_me by reconfiguring in the same conditions
25660 --file=FILE[:TEMPLATE]
25661 instantiate the configuration file FILE
25662 --header=FILE[:TEMPLATE]
25663 instantiate the configuration header FILE
25665 Configuration files:
25666 $config_files
25668 Configuration headers:
25669 $config_headers
25671 Configuration links:
25672 $config_links
25674 Configuration commands:
25675 $config_commands
25677 Report bugs to <tex-k@tug.org>."
25679 _ACEOF
25680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25681 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25682 ac_cs_version="\\
25683 Web2C config.status 2016/dev
25684 configured by $0, generated by GNU Autoconf 2.69,
25685 with options \\"\$ac_cs_config\\"
25687 Copyright (C) 2012 Free Software Foundation, Inc.
25688 This config.status script is free software; the Free Software Foundation
25689 gives unlimited permission to copy, distribute and modify it."
25691 ac_pwd='$ac_pwd'
25692 srcdir='$srcdir'
25693 INSTALL='$INSTALL'
25694 MKDIR_P='$MKDIR_P'
25695 AWK='$AWK'
25696 test -n "\$AWK" || AWK=awk
25697 _ACEOF
25699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25700 # The default lists apply if the user does not specify any file.
25701 ac_need_defaults=:
25702 while test $# != 0
25704 case $1 in
25705 --*=?*)
25706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25707 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25708 ac_shift=:
25710 --*=)
25711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25712 ac_optarg=
25713 ac_shift=:
25716 ac_option=$1
25717 ac_optarg=$2
25718 ac_shift=shift
25720 esac
25722 case $ac_option in
25723 # Handling of the options.
25724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25725 ac_cs_recheck=: ;;
25726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25727 $as_echo "$ac_cs_version"; exit ;;
25728 --config | --confi | --conf | --con | --co | --c )
25729 $as_echo "$ac_cs_config"; exit ;;
25730 --debug | --debu | --deb | --de | --d | -d )
25731 debug=: ;;
25732 --file | --fil | --fi | --f )
25733 $ac_shift
25734 case $ac_optarg in
25735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25736 '') as_fn_error $? "missing file argument" ;;
25737 esac
25738 as_fn_append CONFIG_FILES " '$ac_optarg'"
25739 ac_need_defaults=false;;
25740 --header | --heade | --head | --hea )
25741 $ac_shift
25742 case $ac_optarg in
25743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25744 esac
25745 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25746 ac_need_defaults=false;;
25747 --he | --h)
25748 # Conflict between --help and --header
25749 as_fn_error $? "ambiguous option: \`$1'
25750 Try \`$0 --help' for more information.";;
25751 --help | --hel | -h )
25752 $as_echo "$ac_cs_usage"; exit ;;
25753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25754 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25755 ac_cs_silent=: ;;
25757 # This is an error.
25758 -*) as_fn_error $? "unrecognized option: \`$1'
25759 Try \`$0 --help' for more information." ;;
25761 *) as_fn_append ac_config_targets " $1"
25762 ac_need_defaults=false ;;
25764 esac
25765 shift
25766 done
25768 ac_configure_extra_args=
25770 if $ac_cs_silent; then
25771 exec 6>/dev/null
25772 ac_configure_extra_args="$ac_configure_extra_args --silent"
25775 _ACEOF
25776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25777 if \$ac_cs_recheck; then
25778 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25779 shift
25780 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25781 CONFIG_SHELL='$SHELL'
25782 export CONFIG_SHELL
25783 exec "\$@"
25786 _ACEOF
25787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25788 exec 5>>config.log
25790 echo
25791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25792 ## Running $as_me. ##
25793 _ASBOX
25794 $as_echo "$ac_log"
25795 } >&5
25797 _ACEOF
25798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25800 # INIT-COMMANDS
25802 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25805 # The HP-UX ksh and POSIX shell print the target directory to stdout
25806 # if CDPATH is set.
25807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25809 sed_quote_subst='$sed_quote_subst'
25810 double_quote_subst='$double_quote_subst'
25811 delay_variable_subst='$delay_variable_subst'
25812 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25813 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25814 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25815 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25816 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25817 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25818 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25819 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25820 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25821 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25822 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25823 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25824 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25825 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25826 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25827 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25828 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25829 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25830 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25831 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25832 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25833 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25834 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25835 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25836 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25837 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25838 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25839 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25840 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25841 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25842 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25843 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25844 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25845 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25846 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25847 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25848 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25849 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25850 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25851 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25852 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25869 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25870 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25871 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"`'
25872 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25873 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25874 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25875 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25879 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25880 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25884 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25885 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25886 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25887 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25888 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25889 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25890 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25891 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25892 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25893 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25894 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25895 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25896 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25897 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25898 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25899 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25900 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25901 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25902 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25903 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25904 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25905 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25906 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25907 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25916 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25917 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25918 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25919 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25920 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25921 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25940 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25941 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25942 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25943 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25944 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25945 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25946 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25947 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25948 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25949 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25950 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25951 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25952 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25953 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25954 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25955 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25956 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25957 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25958 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25959 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25960 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25961 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25962 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25963 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25964 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25965 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25966 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25967 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25968 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25969 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25970 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25971 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25972 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25973 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25974 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25975 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25976 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25977 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25978 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25979 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25980 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25981 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25982 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25983 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25984 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25985 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25986 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25987 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25988 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25989 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25990 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25991 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25992 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25993 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25994 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25995 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25996 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25997 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25998 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25999 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26000 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26001 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26003 LTCC='$LTCC'
26004 LTCFLAGS='$LTCFLAGS'
26005 compiler='$compiler_DEFAULT'
26007 # A function that is used when there is no print builtin or printf.
26008 func_fallback_echo ()
26010 eval 'cat <<_LTECHO_EOF
26012 _LTECHO_EOF'
26015 # Quote evaled strings.
26016 for var in AS \
26017 DLLTOOL \
26018 OBJDUMP \
26019 SHELL \
26020 ECHO \
26021 PATH_SEPARATOR \
26022 SED \
26023 GREP \
26024 EGREP \
26025 FGREP \
26026 LD \
26027 NM \
26028 LN_S \
26029 lt_SP2NL \
26030 lt_NL2SP \
26031 reload_flag \
26032 deplibs_check_method \
26033 file_magic_cmd \
26034 file_magic_glob \
26035 want_nocaseglob \
26036 sharedlib_from_linklib_cmd \
26037 AR \
26038 AR_FLAGS \
26039 archiver_list_spec \
26040 STRIP \
26041 RANLIB \
26042 CC \
26043 CFLAGS \
26044 compiler \
26045 lt_cv_sys_global_symbol_pipe \
26046 lt_cv_sys_global_symbol_to_cdecl \
26047 lt_cv_sys_global_symbol_to_import \
26048 lt_cv_sys_global_symbol_to_c_name_address \
26049 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26050 lt_cv_nm_interface \
26051 nm_file_list_spec \
26052 lt_cv_truncate_bin \
26053 lt_prog_compiler_no_builtin_flag \
26054 lt_prog_compiler_pic \
26055 lt_prog_compiler_wl \
26056 lt_prog_compiler_static \
26057 lt_cv_prog_compiler_c_o \
26058 need_locks \
26059 MANIFEST_TOOL \
26060 DSYMUTIL \
26061 NMEDIT \
26062 LIPO \
26063 OTOOL \
26064 OTOOL64 \
26065 shrext_cmds \
26066 export_dynamic_flag_spec \
26067 whole_archive_flag_spec \
26068 compiler_needs_object \
26069 with_gnu_ld \
26070 allow_undefined_flag \
26071 no_undefined_flag \
26072 hardcode_libdir_flag_spec \
26073 hardcode_libdir_separator \
26074 exclude_expsyms \
26075 include_expsyms \
26076 file_list_spec \
26077 variables_saved_for_relink \
26078 libname_spec \
26079 library_names_spec \
26080 soname_spec \
26081 install_override_mode \
26082 finish_eval \
26083 old_striplib \
26084 striplib \
26085 compiler_lib_search_dirs \
26086 predep_objects \
26087 postdep_objects \
26088 predeps \
26089 postdeps \
26090 compiler_lib_search_path \
26091 LD_CXX \
26092 reload_flag_CXX \
26093 compiler_CXX \
26094 lt_prog_compiler_no_builtin_flag_CXX \
26095 lt_prog_compiler_pic_CXX \
26096 lt_prog_compiler_wl_CXX \
26097 lt_prog_compiler_static_CXX \
26098 lt_cv_prog_compiler_c_o_CXX \
26099 export_dynamic_flag_spec_CXX \
26100 whole_archive_flag_spec_CXX \
26101 compiler_needs_object_CXX \
26102 with_gnu_ld_CXX \
26103 allow_undefined_flag_CXX \
26104 no_undefined_flag_CXX \
26105 hardcode_libdir_flag_spec_CXX \
26106 hardcode_libdir_separator_CXX \
26107 exclude_expsyms_CXX \
26108 include_expsyms_CXX \
26109 file_list_spec_CXX \
26110 compiler_lib_search_dirs_CXX \
26111 predep_objects_CXX \
26112 postdep_objects_CXX \
26113 predeps_CXX \
26114 postdeps_CXX \
26115 compiler_lib_search_path_CXX; do
26116 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26117 *[\\\\\\\`\\"\\\$]*)
26118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26123 esac
26124 done
26126 # Double-quote double-evaled strings.
26127 for var in reload_cmds \
26128 old_postinstall_cmds \
26129 old_postuninstall_cmds \
26130 old_archive_cmds \
26131 extract_expsyms_cmds \
26132 old_archive_from_new_cmds \
26133 old_archive_from_expsyms_cmds \
26134 archive_cmds \
26135 archive_expsym_cmds \
26136 module_cmds \
26137 module_expsym_cmds \
26138 export_symbols_cmds \
26139 prelink_cmds \
26140 postlink_cmds \
26141 postinstall_cmds \
26142 postuninstall_cmds \
26143 finish_cmds \
26144 sys_lib_search_path_spec \
26145 configure_time_dlsearch_path \
26146 configure_time_lt_sys_library_path \
26147 reload_cmds_CXX \
26148 old_archive_cmds_CXX \
26149 old_archive_from_new_cmds_CXX \
26150 old_archive_from_expsyms_cmds_CXX \
26151 archive_cmds_CXX \
26152 archive_expsym_cmds_CXX \
26153 module_cmds_CXX \
26154 module_expsym_cmds_CXX \
26155 export_symbols_cmds_CXX \
26156 prelink_cmds_CXX \
26157 postlink_cmds_CXX; do
26158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26159 *[\\\\\\\`\\"\\\$]*)
26160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26165 esac
26166 done
26168 ac_aux_dir='$ac_aux_dir'
26170 # See if we are running on zsh, and set the options that allow our
26171 # commands through without removal of \ escapes INIT.
26172 if test -n "\${ZSH_VERSION+set}"; then
26173 setopt NO_GLOB_SUBST
26177 PACKAGE='$PACKAGE'
26178 VERSION='$VERSION'
26179 RM='$RM'
26180 ofile='$ofile'
26184 enable_libtool_hack='$enable_libtool_hack'
26185 ac_aux_dir='$ac_aux_dir'
26188 cxxld_sh='$cxxld_sh'
26190 _ACEOF
26192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26194 # Handling of arguments.
26195 for ac_config_target in $ac_config_targets
26197 case $ac_config_target in
26198 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26199 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26200 "CXXLD.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS CXXLD.sh" ;;
26201 "callexe.c") CONFIG_LINKS="$CONFIG_LINKS callexe.c:../texlive/w32_wrapper/callexe.c" ;;
26202 "w2c/c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS w2c/c-auto.h:c-auto.in" ;;
26203 "ff-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ff-config.h:luatexdir/luafontloader/ff-config.in" ;;
26204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26205 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26206 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26207 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26208 "omegafonts/Makefile") CONFIG_FILES="$CONFIG_FILES omegafonts/Makefile" ;;
26209 "otps/Makefile") CONFIG_FILES="$CONFIG_FILES otps/Makefile" ;;
26210 "otps/win32/Makefile") CONFIG_FILES="$CONFIG_FILES otps/win32/Makefile" ;;
26211 "window/Makefile") CONFIG_FILES="$CONFIG_FILES window/Makefile" ;;
26212 "web2c-sh") CONFIG_FILES="$CONFIG_FILES web2c-sh" ;;
26213 "tangle-sh") CONFIG_FILES="$CONFIG_FILES tangle-sh" ;;
26214 "ctangleboot-sh") CONFIG_FILES="$CONFIG_FILES ctangleboot-sh" ;;
26215 "silent-sh") CONFIG_FILES="$CONFIG_FILES silent-sh" ;;
26216 "synctexdir/synctex.pc") CONFIG_FILES="$CONFIG_FILES synctexdir/synctex.pc" ;;
26218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26219 esac
26220 done
26223 # If the user did not use the arguments to specify the items to instantiate,
26224 # then the envvar interface is used. Set only those that are not.
26225 # We use the long form for the default assignment because of an extremely
26226 # bizarre bug on SunOS 4.1.3.
26227 if $ac_need_defaults; then
26228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26229 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26230 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26231 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26234 # Have a temporary directory for convenience. Make it in the build tree
26235 # simply because there is no reason against having it here, and in addition,
26236 # creating and moving files from /tmp can sometimes cause problems.
26237 # Hook for its removal unless debugging.
26238 # Note that there is a small window in which the directory will not be cleaned:
26239 # after its creation but before its name has been assigned to `$tmp'.
26240 $debug ||
26242 tmp= ac_tmp=
26243 trap 'exit_status=$?
26244 : "${ac_tmp:=$tmp}"
26245 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26247 trap 'as_fn_exit 1' 1 2 13 15
26249 # Create a (secure) tmp directory for tmp files.
26252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26253 test -d "$tmp"
26254 } ||
26256 tmp=./conf$$-$RANDOM
26257 (umask 077 && mkdir "$tmp")
26258 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26259 ac_tmp=$tmp
26261 # Set up the scripts for CONFIG_FILES section.
26262 # No need to generate them if there are no CONFIG_FILES.
26263 # This happens for instance with `./config.status config.h'.
26264 if test -n "$CONFIG_FILES"; then
26267 ac_cr=`echo X | tr X '\015'`
26268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26269 # But we know of no other shell where ac_cr would be empty at this
26270 # point, so we can use a bashism as a fallback.
26271 if test "x$ac_cr" = x; then
26272 eval ac_cr=\$\'\\r\'
26274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26276 ac_cs_awk_cr='\\r'
26277 else
26278 ac_cs_awk_cr=$ac_cr
26281 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26282 _ACEOF
26286 echo "cat >conf$$subs.awk <<_ACEOF" &&
26287 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26288 echo "_ACEOF"
26289 } >conf$$subs.sh ||
26290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26291 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26292 ac_delim='%!_!# '
26293 for ac_last_try in false false false false false :; do
26294 . ./conf$$subs.sh ||
26295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26297 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26298 if test $ac_delim_n = $ac_delim_num; then
26299 break
26300 elif $ac_last_try; then
26301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26302 else
26303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26305 done
26306 rm -f conf$$subs.sh
26308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26309 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26310 _ACEOF
26311 sed -n '
26313 s/^/S["/; s/!.*/"]=/
26316 s/^[^!]*!//
26317 :repl
26318 t repl
26319 s/'"$ac_delim"'$//
26320 t delim
26323 s/\(.\{148\}\)..*/\1/
26324 t more1
26325 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26328 b repl
26329 :more1
26330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26333 s/.\{148\}//
26334 t nl
26335 :delim
26337 s/\(.\{148\}\)..*/\1/
26338 t more2
26339 s/["\\]/\\&/g; s/^/"/; s/$/"/
26342 :more2
26343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26346 s/.\{148\}//
26347 t delim
26348 ' <conf$$subs.awk | sed '
26349 /^[^""]/{
26351 s/\n//
26353 ' >>$CONFIG_STATUS || ac_write_fail=1
26354 rm -f conf$$subs.awk
26355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26356 _ACAWK
26357 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26358 for (key in S) S_is_set[key] = 1
26359 FS = "\a"
26363 line = $ 0
26364 nfields = split(line, field, "@")
26365 substed = 0
26366 len = length(field[1])
26367 for (i = 2; i < nfields; i++) {
26368 key = field[i]
26369 keylen = length(key)
26370 if (S_is_set[key]) {
26371 value = S[key]
26372 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26373 len += length(value) + length(field[++i])
26374 substed = 1
26375 } else
26376 len += 1 + keylen
26379 print line
26382 _ACAWK
26383 _ACEOF
26384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26385 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26387 else
26389 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26390 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26391 _ACEOF
26393 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26394 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26395 # trailing colons and then remove the whole line if VPATH becomes empty
26396 # (actually we leave an empty line to preserve line numbers).
26397 if test "x$srcdir" = x.; then
26398 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26400 s///
26401 s/^/:/
26402 s/[ ]*$/:/
26403 s/:\$(srcdir):/:/g
26404 s/:\${srcdir}:/:/g
26405 s/:@srcdir@:/:/g
26406 s/^:*//
26407 s/:*$//
26409 s/\(=[ ]*\).*/\1/
26411 s/\n//
26412 s/^[^=]*=[ ]*$//
26416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26417 fi # test -n "$CONFIG_FILES"
26419 # Set up the scripts for CONFIG_HEADERS section.
26420 # No need to generate them if there are no CONFIG_HEADERS.
26421 # This happens for instance with `./config.status Makefile'.
26422 if test -n "$CONFIG_HEADERS"; then
26423 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26424 BEGIN {
26425 _ACEOF
26427 # Transform confdefs.h into an awk script `defines.awk', embedded as
26428 # here-document in config.status, that substitutes the proper values into
26429 # config.h.in to produce config.h.
26431 # Create a delimiter string that does not exist in confdefs.h, to ease
26432 # handling of long lines.
26433 ac_delim='%!_!# '
26434 for ac_last_try in false false :; do
26435 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26436 if test -z "$ac_tt"; then
26437 break
26438 elif $ac_last_try; then
26439 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26440 else
26441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26443 done
26445 # For the awk script, D is an array of macro values keyed by name,
26446 # likewise P contains macro parameters if any. Preserve backslash
26447 # newline sequences.
26449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26450 sed -n '
26451 s/.\{148\}/&'"$ac_delim"'/g
26452 t rset
26453 :rset
26454 s/^[ ]*#[ ]*define[ ][ ]*/ /
26455 t def
26457 :def
26458 s/\\$//
26459 t bsnl
26460 s/["\\]/\\&/g
26461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26462 D["\1"]=" \3"/p
26463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26465 :bsnl
26466 s/["\\]/\\&/g
26467 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26468 D["\1"]=" \3\\\\\\n"\\/p
26469 t cont
26470 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26471 t cont
26473 :cont
26475 s/.\{148\}/&'"$ac_delim"'/g
26476 t clear
26477 :clear
26478 s/\\$//
26479 t bsnlc
26480 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26482 :bsnlc
26483 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26484 b cont
26485 ' <confdefs.h | sed '
26486 s/'"$ac_delim"'/"\\\
26487 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26490 for (key in D) D_is_set[key] = 1
26491 FS = "\a"
26493 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26494 line = \$ 0
26495 split(line, arg, " ")
26496 if (arg[1] == "#") {
26497 defundef = arg[2]
26498 mac1 = arg[3]
26499 } else {
26500 defundef = substr(arg[1], 2)
26501 mac1 = arg[2]
26503 split(mac1, mac2, "(") #)
26504 macro = mac2[1]
26505 prefix = substr(line, 1, index(line, defundef) - 1)
26506 if (D_is_set[macro]) {
26507 # Preserve the white space surrounding the "#".
26508 print prefix "define", macro P[macro] D[macro]
26509 next
26510 } else {
26511 # Replace #undef with comments. This is necessary, for example,
26512 # in the case of _POSIX_SOURCE, which is predefined and required
26513 # on some systems where configure will not decide to define it.
26514 if (defundef == "undef") {
26515 print "/*", prefix defundef, macro, "*/"
26516 next
26520 { print }
26521 _ACAWK
26522 _ACEOF
26523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26524 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26525 fi # test -n "$CONFIG_HEADERS"
26528 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26529 shift
26530 for ac_tag
26532 case $ac_tag in
26533 :[FHLC]) ac_mode=$ac_tag; continue;;
26534 esac
26535 case $ac_mode$ac_tag in
26536 :[FHL]*:*);;
26537 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26538 :[FH]-) ac_tag=-:-;;
26539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26540 esac
26541 ac_save_IFS=$IFS
26542 IFS=:
26543 set x $ac_tag
26544 IFS=$ac_save_IFS
26545 shift
26546 ac_file=$1
26547 shift
26549 case $ac_mode in
26550 :L) ac_source=$1;;
26551 :[FH])
26552 ac_file_inputs=
26553 for ac_f
26555 case $ac_f in
26556 -) ac_f="$ac_tmp/stdin";;
26557 *) # Look for the file first in the build tree, then in the source tree
26558 # (if the path is not absolute). The absolute path cannot be DOS-style,
26559 # because $ac_f cannot contain `:'.
26560 test -f "$ac_f" ||
26561 case $ac_f in
26562 [\\/$]*) false;;
26563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26564 esac ||
26565 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26566 esac
26567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26568 as_fn_append ac_file_inputs " '$ac_f'"
26569 done
26571 # Let's still pretend it is `configure' which instantiates (i.e., don't
26572 # use $as_me), people would be surprised to read:
26573 # /* config.h. Generated by config.status. */
26574 configure_input='Generated from '`
26575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26576 `' by configure.'
26577 if test x"$ac_file" != x-; then
26578 configure_input="$ac_file. $configure_input"
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26580 $as_echo "$as_me: creating $ac_file" >&6;}
26582 # Neutralize special characters interpreted by sed in replacement strings.
26583 case $configure_input in #(
26584 *\&* | *\|* | *\\* )
26585 ac_sed_conf_input=`$as_echo "$configure_input" |
26586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26587 *) ac_sed_conf_input=$configure_input;;
26588 esac
26590 case $ac_tag in
26591 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26593 esac
26595 esac
26597 ac_dir=`$as_dirname -- "$ac_file" ||
26598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26599 X"$ac_file" : 'X\(//\)[^/]' \| \
26600 X"$ac_file" : 'X\(//\)$' \| \
26601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26602 $as_echo X"$ac_file" |
26603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26604 s//\1/
26607 /^X\(\/\/\)[^/].*/{
26608 s//\1/
26611 /^X\(\/\/\)$/{
26612 s//\1/
26615 /^X\(\/\).*/{
26616 s//\1/
26619 s/.*/./; q'`
26620 as_dir="$ac_dir"; as_fn_mkdir_p
26621 ac_builddir=.
26623 case "$ac_dir" in
26624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26627 # A ".." for each directory in $ac_dir_suffix.
26628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26629 case $ac_top_builddir_sub in
26630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26632 esac ;;
26633 esac
26634 ac_abs_top_builddir=$ac_pwd
26635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26636 # for backward compatibility:
26637 ac_top_builddir=$ac_top_build_prefix
26639 case $srcdir in
26640 .) # We are building in place.
26641 ac_srcdir=.
26642 ac_top_srcdir=$ac_top_builddir_sub
26643 ac_abs_top_srcdir=$ac_pwd ;;
26644 [\\/]* | ?:[\\/]* ) # Absolute name.
26645 ac_srcdir=$srcdir$ac_dir_suffix;
26646 ac_top_srcdir=$srcdir
26647 ac_abs_top_srcdir=$srcdir ;;
26648 *) # Relative name.
26649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26650 ac_top_srcdir=$ac_top_build_prefix$srcdir
26651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26652 esac
26653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26656 case $ac_mode in
26659 # CONFIG_FILE
26662 case $INSTALL in
26663 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26664 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26665 esac
26666 ac_MKDIR_P=$MKDIR_P
26667 case $MKDIR_P in
26668 [\\/$]* | ?:[\\/]* ) ;;
26669 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26670 esac
26671 _ACEOF
26673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26674 # If the template does not know about datarootdir, expand it.
26675 # FIXME: This hack should be removed a few years after 2.60.
26676 ac_datarootdir_hack=; ac_datarootdir_seen=
26677 ac_sed_dataroot='
26678 /datarootdir/ {
26682 /@datadir@/p
26683 /@docdir@/p
26684 /@infodir@/p
26685 /@localedir@/p
26686 /@mandir@/p'
26687 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26688 *datarootdir*) ac_datarootdir_seen=yes;;
26689 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26691 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26692 _ACEOF
26693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26694 ac_datarootdir_hack='
26695 s&@datadir@&$datadir&g
26696 s&@docdir@&$docdir&g
26697 s&@infodir@&$infodir&g
26698 s&@localedir@&$localedir&g
26699 s&@mandir@&$mandir&g
26700 s&\\\${datarootdir}&$datarootdir&g' ;;
26701 esac
26702 _ACEOF
26704 # Neutralize VPATH when `$srcdir' = `.'.
26705 # Shell code in configure.ac might set extrasub.
26706 # FIXME: do we really want to maintain this feature?
26707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26708 ac_sed_extra="$ac_vpsub
26709 $extrasub
26710 _ACEOF
26711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26714 s|@configure_input@|$ac_sed_conf_input|;t t
26715 s&@top_builddir@&$ac_top_builddir_sub&;t t
26716 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26717 s&@srcdir@&$ac_srcdir&;t t
26718 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26719 s&@top_srcdir@&$ac_top_srcdir&;t t
26720 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26721 s&@builddir@&$ac_builddir&;t t
26722 s&@abs_builddir@&$ac_abs_builddir&;t t
26723 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26724 s&@INSTALL@&$ac_INSTALL&;t t
26725 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26726 $ac_datarootdir_hack
26728 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26729 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26732 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26734 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26736 which seems to be undefined. Please make sure it is defined" >&5
26737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26738 which seems to be undefined. Please make sure it is defined" >&2;}
26740 rm -f "$ac_tmp/stdin"
26741 case $ac_file in
26742 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26743 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26744 esac \
26745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26749 # CONFIG_HEADER
26751 if test x"$ac_file" != x-; then
26753 $as_echo "/* $configure_input */" \
26754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26755 } >"$ac_tmp/config.h" \
26756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26757 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26760 else
26761 rm -f "$ac_file"
26762 mv "$ac_tmp/config.h" "$ac_file" \
26763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26765 else
26766 $as_echo "/* $configure_input */" \
26767 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26768 || as_fn_error $? "could not create -" "$LINENO" 5
26770 # Compute "$ac_file"'s index in $config_headers.
26771 _am_arg="$ac_file"
26772 _am_stamp_count=1
26773 for _am_header in $config_headers :; do
26774 case $_am_header in
26775 $_am_arg | $_am_arg:* )
26776 break ;;
26778 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26779 esac
26780 done
26781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26783 X"$_am_arg" : 'X\(//\)[^/]' \| \
26784 X"$_am_arg" : 'X\(//\)$' \| \
26785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26786 $as_echo X"$_am_arg" |
26787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26788 s//\1/
26791 /^X\(\/\/\)[^/].*/{
26792 s//\1/
26795 /^X\(\/\/\)$/{
26796 s//\1/
26799 /^X\(\/\).*/{
26800 s//\1/
26803 s/.*/./; q'`/stamp-h$_am_stamp_count
26807 # CONFIG_LINK
26810 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26812 else
26813 # Prefer the file from the source tree if names are identical.
26814 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26815 ac_source=$srcdir/$ac_source
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26819 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26821 if test ! -r "$ac_source"; then
26822 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
26824 rm -f "$ac_file"
26826 # Try a relative symlink, then a hard link, then a copy.
26827 case $ac_source in
26828 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26829 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26830 esac
26831 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26832 ln "$ac_source" "$ac_file" 2>/dev/null ||
26833 cp -p "$ac_source" "$ac_file" ||
26834 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26837 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26838 $as_echo "$as_me: executing $ac_file commands" >&6;}
26840 esac
26843 case $ac_file$ac_mode in
26844 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26845 # Older Autoconf quotes --file arguments for eval, but not when files
26846 # are listed without --file. Let's play safe and only enable the eval
26847 # if we detect the quoting.
26848 case $CONFIG_FILES in
26849 *\'*) eval set x "$CONFIG_FILES" ;;
26850 *) set x $CONFIG_FILES ;;
26851 esac
26852 shift
26853 for mf
26855 # Strip MF so we end up with the name of the file.
26856 mf=`echo "$mf" | sed -e 's/:.*$//'`
26857 # Check whether this is an Automake generated Makefile or not.
26858 # We used to match only the files named 'Makefile.in', but
26859 # some people rename them; so instead we look at the file content.
26860 # Grep'ing the first line is not enough: some people post-process
26861 # each Makefile.in and add a new line on top of each file to say so.
26862 # Grep'ing the whole file is not good either: AIX grep has a line
26863 # limit of 2048, but all sed's we know have understand at least 4000.
26864 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26865 dirpart=`$as_dirname -- "$mf" ||
26866 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26867 X"$mf" : 'X\(//\)[^/]' \| \
26868 X"$mf" : 'X\(//\)$' \| \
26869 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26870 $as_echo X"$mf" |
26871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26872 s//\1/
26875 /^X\(\/\/\)[^/].*/{
26876 s//\1/
26879 /^X\(\/\/\)$/{
26880 s//\1/
26883 /^X\(\/\).*/{
26884 s//\1/
26887 s/.*/./; q'`
26888 else
26889 continue
26891 # Extract the definition of DEPDIR, am__include, and am__quote
26892 # from the Makefile without running 'make'.
26893 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26894 test -z "$DEPDIR" && continue
26895 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26896 test -z "$am__include" && continue
26897 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26898 # Find all dependency output files, they are included files with
26899 # $(DEPDIR) in their names. We invoke sed twice because it is the
26900 # simplest approach to changing $(DEPDIR) to its actual value in the
26901 # expansion.
26902 for file in `sed -n "
26903 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26904 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26905 # Make sure the directory exists.
26906 test -f "$dirpart/$file" && continue
26907 fdir=`$as_dirname -- "$file" ||
26908 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26909 X"$file" : 'X\(//\)[^/]' \| \
26910 X"$file" : 'X\(//\)$' \| \
26911 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26912 $as_echo X"$file" |
26913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26914 s//\1/
26917 /^X\(\/\/\)[^/].*/{
26918 s//\1/
26921 /^X\(\/\/\)$/{
26922 s//\1/
26925 /^X\(\/\).*/{
26926 s//\1/
26929 s/.*/./; q'`
26930 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26931 # echo "creating $dirpart/$file"
26932 echo '# dummy' > "$dirpart/$file"
26933 done
26934 done
26937 "libtool":C)
26939 # See if we are running on zsh, and set the options that allow our
26940 # commands through without removal of \ escapes.
26941 if test -n "${ZSH_VERSION+set}"; then
26942 setopt NO_GLOB_SUBST
26945 cfgfile=${ofile}T
26946 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26947 $RM "$cfgfile"
26949 cat <<_LT_EOF >> "$cfgfile"
26950 #! $SHELL
26951 # Generated automatically by $as_me ($PACKAGE) $VERSION
26952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26953 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26955 # Provide generalized library-building support services.
26956 # Written by Gordon Matzigkeit, 1996
26958 # Copyright (C) 2014 Free Software Foundation, Inc.
26959 # This is free software; see the source for copying conditions. There is NO
26960 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26962 # GNU Libtool is free software; you can redistribute it and/or modify
26963 # it under the terms of the GNU General Public License as published by
26964 # the Free Software Foundation; either version 2 of of the License, or
26965 # (at your option) any later version.
26967 # As a special exception to the GNU General Public License, if you
26968 # distribute this file as part of a program or library that is built
26969 # using GNU Libtool, you may include this file under the same
26970 # distribution terms that you use for the rest of that program.
26972 # GNU Libtool is distributed in the hope that it will be useful, but
26973 # WITHOUT ANY WARRANTY; without even the implied warranty of
26974 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26975 # GNU General Public License for more details.
26977 # You should have received a copy of the GNU General Public License
26978 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26981 # The names of the tagged configurations supported by this script.
26982 available_tags='CXX '
26984 # Configured defaults for sys_lib_dlsearch_path munging.
26985 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26987 # ### BEGIN LIBTOOL CONFIG
26989 # Which release of libtool.m4 was used?
26990 macro_version=$macro_version
26991 macro_revision=$macro_revision
26993 # Assembler program.
26994 AS=$lt_AS
26996 # DLL creation program.
26997 DLLTOOL=$lt_DLLTOOL
26999 # Object dumper program.
27000 OBJDUMP=$lt_OBJDUMP
27002 # Whether or not to build shared libraries.
27003 build_libtool_libs=$enable_shared
27005 # Whether or not to build static libraries.
27006 build_old_libs=$enable_static
27008 # What type of objects to build.
27009 pic_mode=$pic_mode
27011 # Whether or not to optimize for fast installation.
27012 fast_install=$enable_fast_install
27014 # Shared archive member basename,for filename based shared library versioning on AIX.
27015 shared_archive_member_spec=$shared_archive_member_spec
27017 # Shell to use when invoking shell scripts.
27018 SHELL=$lt_SHELL
27020 # An echo program that protects backslashes.
27021 ECHO=$lt_ECHO
27023 # The PATH separator for the build system.
27024 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27026 # The host system.
27027 host_alias=$host_alias
27028 host=$host
27029 host_os=$host_os
27031 # The build system.
27032 build_alias=$build_alias
27033 build=$build
27034 build_os=$build_os
27036 # A sed program that does not truncate output.
27037 SED=$lt_SED
27039 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27040 Xsed="\$SED -e 1s/^X//"
27042 # A grep program that handles long lines.
27043 GREP=$lt_GREP
27045 # An ERE matcher.
27046 EGREP=$lt_EGREP
27048 # A literal string matcher.
27049 FGREP=$lt_FGREP
27051 # A BSD- or MS-compatible name lister.
27052 NM=$lt_NM
27054 # Whether we need soft or hard links.
27055 LN_S=$lt_LN_S
27057 # What is the maximum length of a command?
27058 max_cmd_len=$max_cmd_len
27060 # Object file suffix (normally "o").
27061 objext=$ac_objext
27063 # Executable file suffix (normally "").
27064 exeext=$exeext
27066 # whether the shell understands "unset".
27067 lt_unset=$lt_unset
27069 # turn spaces into newlines.
27070 SP2NL=$lt_lt_SP2NL
27072 # turn newlines into spaces.
27073 NL2SP=$lt_lt_NL2SP
27075 # convert \$build file names to \$host format.
27076 to_host_file_cmd=$lt_cv_to_host_file_cmd
27078 # convert \$build files to toolchain format.
27079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27081 # Method to check whether dependent libraries are shared objects.
27082 deplibs_check_method=$lt_deplibs_check_method
27084 # Command to use when deplibs_check_method = "file_magic".
27085 file_magic_cmd=$lt_file_magic_cmd
27087 # How to find potential files when deplibs_check_method = "file_magic".
27088 file_magic_glob=$lt_file_magic_glob
27090 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27091 want_nocaseglob=$lt_want_nocaseglob
27093 # Command to associate shared and link libraries.
27094 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27096 # The archiver.
27097 AR=$lt_AR
27099 # Flags to create an archive.
27100 AR_FLAGS=$lt_AR_FLAGS
27102 # How to feed a file listing to the archiver.
27103 archiver_list_spec=$lt_archiver_list_spec
27105 # A symbol stripping program.
27106 STRIP=$lt_STRIP
27108 # Commands used to install an old-style archive.
27109 RANLIB=$lt_RANLIB
27110 old_postinstall_cmds=$lt_old_postinstall_cmds
27111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27113 # Whether to use a lock for old archive extraction.
27114 lock_old_archive_extraction=$lock_old_archive_extraction
27116 # A C compiler.
27117 LTCC=$lt_CC
27119 # LTCC compiler flags.
27120 LTCFLAGS=$lt_CFLAGS
27122 # Take the output of nm and produce a listing of raw symbols and C names.
27123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27125 # Transform the output of nm in a proper C declaration.
27126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27128 # Transform the output of nm into a list of symbols to manually relocate.
27129 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27131 # Transform the output of nm in a C name address pair.
27132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27134 # Transform the output of nm in a C name address pair when lib prefix is needed.
27135 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27137 # The name lister interface.
27138 nm_interface=$lt_lt_cv_nm_interface
27140 # Specify filename containing input files for \$NM.
27141 nm_file_list_spec=$lt_nm_file_list_spec
27143 # The root where to search for dependent libraries,and where our libraries should be installed.
27144 lt_sysroot=$lt_sysroot
27146 # Command to truncate a binary pipe.
27147 lt_truncate_bin=$lt_lt_cv_truncate_bin
27149 # The name of the directory that contains temporary libtool files.
27150 objdir=$objdir
27152 # Used to examine libraries when file_magic_cmd begins with "file".
27153 MAGIC_CMD=$MAGIC_CMD
27155 # Must we lock files when doing compilation?
27156 need_locks=$lt_need_locks
27158 # Manifest tool.
27159 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27161 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27162 DSYMUTIL=$lt_DSYMUTIL
27164 # Tool to change global to local symbols on Mac OS X.
27165 NMEDIT=$lt_NMEDIT
27167 # Tool to manipulate fat objects and archives on Mac OS X.
27168 LIPO=$lt_LIPO
27170 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27171 OTOOL=$lt_OTOOL
27173 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27174 OTOOL64=$lt_OTOOL64
27176 # Old archive suffix (normally "a").
27177 libext=$libext
27179 # Shared library suffix (normally ".so").
27180 shrext_cmds=$lt_shrext_cmds
27182 # The commands to extract the exported symbol list from a shared archive.
27183 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27185 # Variables whose values should be saved in libtool wrapper scripts and
27186 # restored at link time.
27187 variables_saved_for_relink=$lt_variables_saved_for_relink
27189 # Do we need the "lib" prefix for modules?
27190 need_lib_prefix=$need_lib_prefix
27192 # Do we need a version for libraries?
27193 need_version=$need_version
27195 # Library versioning type.
27196 version_type=$version_type
27198 # Shared library runtime path variable.
27199 runpath_var=$runpath_var
27201 # Shared library path variable.
27202 shlibpath_var=$shlibpath_var
27204 # Is shlibpath searched before the hard-coded library search path?
27205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27207 # Format of library name prefix.
27208 libname_spec=$lt_libname_spec
27210 # List of archive names. First name is the real one, the rest are links.
27211 # The last name is the one that the linker finds with -lNAME
27212 library_names_spec=$lt_library_names_spec
27214 # The coded name of the library, if different from the real name.
27215 soname_spec=$lt_soname_spec
27217 # Permission mode override for installation of shared libraries.
27218 install_override_mode=$lt_install_override_mode
27220 # Command to use after installation of a shared archive.
27221 postinstall_cmds=$lt_postinstall_cmds
27223 # Command to use after uninstallation of a shared archive.
27224 postuninstall_cmds=$lt_postuninstall_cmds
27226 # Commands used to finish a libtool library installation in a directory.
27227 finish_cmds=$lt_finish_cmds
27229 # As "finish_cmds", except a single script fragment to be evaled but
27230 # not shown.
27231 finish_eval=$lt_finish_eval
27233 # Whether we should hardcode library paths into libraries.
27234 hardcode_into_libs=$hardcode_into_libs
27236 # Compile-time system search path for libraries.
27237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27239 # Detected run-time system search path for libraries.
27240 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27242 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27243 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27245 # Whether dlopen is supported.
27246 dlopen_support=$enable_dlopen
27248 # Whether dlopen of programs is supported.
27249 dlopen_self=$enable_dlopen_self
27251 # Whether dlopen of statically linked programs is supported.
27252 dlopen_self_static=$enable_dlopen_self_static
27254 # Commands to strip libraries.
27255 old_striplib=$lt_old_striplib
27256 striplib=$lt_striplib
27259 # The linker used to build libraries.
27260 LD=$lt_LD
27262 # How to create reloadable object files.
27263 reload_flag=$lt_reload_flag
27264 reload_cmds=$lt_reload_cmds
27266 # Commands used to build an old-style archive.
27267 old_archive_cmds=$lt_old_archive_cmds
27269 # A language specific compiler.
27270 CC=$lt_compiler
27272 # Is the compiler the GNU compiler?
27273 with_gcc=$GCC
27275 # Compiler flag to turn off builtin functions.
27276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27278 # Additional compiler flags for building library objects.
27279 pic_flag=$lt_lt_prog_compiler_pic
27281 # How to pass a linker flag through the compiler.
27282 wl=$lt_lt_prog_compiler_wl
27284 # Compiler flag to prevent dynamic linking.
27285 link_static_flag=$lt_lt_prog_compiler_static
27287 # Does compiler simultaneously support -c and -o options?
27288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27290 # Whether or not to add -lc for building shared libraries.
27291 build_libtool_need_lc=$archive_cmds_need_lc
27293 # Whether or not to disallow shared libs when runtime libs are static.
27294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27296 # Compiler flag to allow reflexive dlopens.
27297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27299 # Compiler flag to generate shared objects directly from archives.
27300 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27302 # Whether the compiler copes with passing no objects directly.
27303 compiler_needs_object=$lt_compiler_needs_object
27305 # Create an old-style archive from a shared archive.
27306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27308 # Create a temporary old-style archive to link instead of a shared archive.
27309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27311 # Commands used to build a shared archive.
27312 archive_cmds=$lt_archive_cmds
27313 archive_expsym_cmds=$lt_archive_expsym_cmds
27315 # Commands used to build a loadable module if different from building
27316 # a shared archive.
27317 module_cmds=$lt_module_cmds
27318 module_expsym_cmds=$lt_module_expsym_cmds
27320 # Whether we are building with GNU ld or not.
27321 with_gnu_ld=$lt_with_gnu_ld
27323 # Flag that allows shared libraries with undefined symbols to be built.
27324 allow_undefined_flag=$lt_allow_undefined_flag
27326 # Flag that enforces no undefined symbols.
27327 no_undefined_flag=$lt_no_undefined_flag
27329 # Flag to hardcode \$libdir into a binary during linking.
27330 # This must work even if \$libdir does not exist
27331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27333 # Whether we need a single "-rpath" flag with a separated argument.
27334 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27336 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27337 # DIR into the resulting binary.
27338 hardcode_direct=$hardcode_direct
27340 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27341 # DIR into the resulting binary and the resulting library dependency is
27342 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
27343 # library is relocated.
27344 hardcode_direct_absolute=$hardcode_direct_absolute
27346 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27347 # into the resulting binary.
27348 hardcode_minus_L=$hardcode_minus_L
27350 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27351 # into the resulting binary.
27352 hardcode_shlibpath_var=$hardcode_shlibpath_var
27354 # Set to "yes" if building a shared library automatically hardcodes DIR
27355 # into the library and all subsequent libraries and executables linked
27356 # against it.
27357 hardcode_automatic=$hardcode_automatic
27359 # Set to yes if linker adds runtime paths of dependent libraries
27360 # to runtime path list.
27361 inherit_rpath=$inherit_rpath
27363 # Whether libtool must link a program against all its dependency libraries.
27364 link_all_deplibs=$link_all_deplibs
27366 # Set to "yes" if exported symbols are required.
27367 always_export_symbols=$always_export_symbols
27369 # The commands to list exported symbols.
27370 export_symbols_cmds=$lt_export_symbols_cmds
27372 # Symbols that should not be listed in the preloaded symbols.
27373 exclude_expsyms=$lt_exclude_expsyms
27375 # Symbols that must always be exported.
27376 include_expsyms=$lt_include_expsyms
27378 # Commands necessary for linking programs (against libraries) with templates.
27379 prelink_cmds=$lt_prelink_cmds
27381 # Commands necessary for finishing linking programs.
27382 postlink_cmds=$lt_postlink_cmds
27384 # Specify filename containing input files.
27385 file_list_spec=$lt_file_list_spec
27387 # How to hardcode a shared library path into an executable.
27388 hardcode_action=$hardcode_action
27390 # The directories searched by this compiler when creating a shared library.
27391 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27393 # Dependencies to place before and after the objects being linked to
27394 # create a shared library.
27395 predep_objects=$lt_predep_objects
27396 postdep_objects=$lt_postdep_objects
27397 predeps=$lt_predeps
27398 postdeps=$lt_postdeps
27400 # The library search path used internally by the compiler when linking
27401 # a shared library.
27402 compiler_lib_search_path=$lt_compiler_lib_search_path
27404 # ### END LIBTOOL CONFIG
27406 _LT_EOF
27408 cat <<'_LT_EOF' >> "$cfgfile"
27410 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27412 # func_munge_path_list VARIABLE PATH
27413 # -----------------------------------
27414 # VARIABLE is name of variable containing _space_ separated list of
27415 # directories to be munged by the contents of PATH, which is string
27416 # having a format:
27417 # "DIR[:DIR]:"
27418 # string "DIR[ DIR]" will be prepended to VARIABLE
27419 # ":DIR[:DIR]"
27420 # string "DIR[ DIR]" will be appended to VARIABLE
27421 # "DIRP[:DIRP]::[DIRA:]DIRA"
27422 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27423 # "DIRA[ DIRA]" will be appended to VARIABLE
27424 # "DIR[:DIR]"
27425 # VARIABLE will be replaced by "DIR[ DIR]"
27426 func_munge_path_list ()
27428 case x$2 in
27432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27434 x:*)
27435 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27437 *::*)
27438 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27439 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27444 esac
27448 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
27449 func_cc_basename ()
27451 for cc_temp in $*""; do
27452 case $cc_temp in
27453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27455 \-*) ;;
27456 *) break;;
27457 esac
27458 done
27459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27463 # ### END FUNCTIONS SHARED WITH CONFIGURE
27465 _LT_EOF
27467 case $host_os in
27468 aix3*)
27469 cat <<\_LT_EOF >> "$cfgfile"
27470 # AIX sometimes has problems with the GCC collect2 program. For some
27471 # reason, if we set the COLLECT_NAMES environment variable, the problems
27472 # vanish in a puff of smoke.
27473 if test set != "${COLLECT_NAMES+set}"; then
27474 COLLECT_NAMES=
27475 export COLLECT_NAMES
27477 _LT_EOF
27479 esac
27482 ltmain=$ac_aux_dir/ltmain.sh
27485 # We use sed instead of cat because bash on DJGPP gets confused if
27486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27487 # text mode, it properly converts lines to CR/LF. This bash problem
27488 # is reportedly fixed, but why not run on old versions too?
27489 sed '$q' "$ltmain" >> "$cfgfile" \
27490 || (rm -f "$cfgfile"; exit 1)
27492 mv -f "$cfgfile" "$ofile" ||
27493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27494 chmod +x "$ofile"
27497 cat <<_LT_EOF >> "$ofile"
27499 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27501 # The linker used to build libraries.
27502 LD=$lt_LD_CXX
27504 # How to create reloadable object files.
27505 reload_flag=$lt_reload_flag_CXX
27506 reload_cmds=$lt_reload_cmds_CXX
27508 # Commands used to build an old-style archive.
27509 old_archive_cmds=$lt_old_archive_cmds_CXX
27511 # A language specific compiler.
27512 CC=$lt_compiler_CXX
27514 # Is the compiler the GNU compiler?
27515 with_gcc=$GCC_CXX
27517 # Compiler flag to turn off builtin functions.
27518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27520 # Additional compiler flags for building library objects.
27521 pic_flag=$lt_lt_prog_compiler_pic_CXX
27523 # How to pass a linker flag through the compiler.
27524 wl=$lt_lt_prog_compiler_wl_CXX
27526 # Compiler flag to prevent dynamic linking.
27527 link_static_flag=$lt_lt_prog_compiler_static_CXX
27529 # Does compiler simultaneously support -c and -o options?
27530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27532 # Whether or not to add -lc for building shared libraries.
27533 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27535 # Whether or not to disallow shared libs when runtime libs are static.
27536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27538 # Compiler flag to allow reflexive dlopens.
27539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27541 # Compiler flag to generate shared objects directly from archives.
27542 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27544 # Whether the compiler copes with passing no objects directly.
27545 compiler_needs_object=$lt_compiler_needs_object_CXX
27547 # Create an old-style archive from a shared archive.
27548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27550 # Create a temporary old-style archive to link instead of a shared archive.
27551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27553 # Commands used to build a shared archive.
27554 archive_cmds=$lt_archive_cmds_CXX
27555 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27557 # Commands used to build a loadable module if different from building
27558 # a shared archive.
27559 module_cmds=$lt_module_cmds_CXX
27560 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27562 # Whether we are building with GNU ld or not.
27563 with_gnu_ld=$lt_with_gnu_ld_CXX
27565 # Flag that allows shared libraries with undefined symbols to be built.
27566 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27568 # Flag that enforces no undefined symbols.
27569 no_undefined_flag=$lt_no_undefined_flag_CXX
27571 # Flag to hardcode \$libdir into a binary during linking.
27572 # This must work even if \$libdir does not exist
27573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27575 # Whether we need a single "-rpath" flag with a separated argument.
27576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27578 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27579 # DIR into the resulting binary.
27580 hardcode_direct=$hardcode_direct_CXX
27582 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27583 # DIR into the resulting binary and the resulting library dependency is
27584 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
27585 # library is relocated.
27586 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27589 # into the resulting binary.
27590 hardcode_minus_L=$hardcode_minus_L_CXX
27592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27593 # into the resulting binary.
27594 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27596 # Set to "yes" if building a shared library automatically hardcodes DIR
27597 # into the library and all subsequent libraries and executables linked
27598 # against it.
27599 hardcode_automatic=$hardcode_automatic_CXX
27601 # Set to yes if linker adds runtime paths of dependent libraries
27602 # to runtime path list.
27603 inherit_rpath=$inherit_rpath_CXX
27605 # Whether libtool must link a program against all its dependency libraries.
27606 link_all_deplibs=$link_all_deplibs_CXX
27608 # Set to "yes" if exported symbols are required.
27609 always_export_symbols=$always_export_symbols_CXX
27611 # The commands to list exported symbols.
27612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27614 # Symbols that should not be listed in the preloaded symbols.
27615 exclude_expsyms=$lt_exclude_expsyms_CXX
27617 # Symbols that must always be exported.
27618 include_expsyms=$lt_include_expsyms_CXX
27620 # Commands necessary for linking programs (against libraries) with templates.
27621 prelink_cmds=$lt_prelink_cmds_CXX
27623 # Commands necessary for finishing linking programs.
27624 postlink_cmds=$lt_postlink_cmds_CXX
27626 # Specify filename containing input files.
27627 file_list_spec=$lt_file_list_spec_CXX
27629 # How to hardcode a shared library path into an executable.
27630 hardcode_action=$hardcode_action_CXX
27632 # The directories searched by this compiler when creating a shared library.
27633 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27635 # Dependencies to place before and after the objects being linked to
27636 # create a shared library.
27637 predep_objects=$lt_predep_objects_CXX
27638 postdep_objects=$lt_postdep_objects_CXX
27639 predeps=$lt_predeps_CXX
27640 postdeps=$lt_postdeps_CXX
27642 # The library search path used internally by the compiler when linking
27643 # a shared library.
27644 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27646 # ### END LIBTOOL TAG CONFIG: CXX
27647 _LT_EOF
27649 ## KPSE_LT_HACK: Prevent libtool from linking dependency_libs
27650 if test "x$enable_libtool_hack" = xyes; then
27651 $SED '/# Convert "-framework/i\
27652 ## KPSE_LT_HACK: ignore dependency_libs\
27653 test "X$installed" = Xyes && dependency_libs=\
27654 ' "$ofile" >"$cfgfile"
27655 mv "$cfgfile" "$ofile" ||
27656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27657 chmod +x "$ofile"
27660 "CXXLD.sh":C) echo "$cxxld_sh" >CXXLD.sh; chmod +x CXXLD.sh ;;
27661 "w2c/c-auto.h":H) sed -e 's/^#define PACKAGE/#define WEB2C_PACKAGE/' \
27662 -e 's/^#define VERSION/#define WEB2C_VERSION/' w2c/c-auto.h >c-auto.tmp \
27663 && mv -f c-auto.tmp w2c/c-auto.h ;;
27664 "web2c-sh":F) chmod +x web2c-sh ;;
27665 "tangle-sh":F) chmod +x tangle-sh ;;
27666 "ctangleboot-sh":F) chmod +x ctangleboot-sh ;;
27667 "silent-sh":F) chmod +x silent-sh ;;
27669 esac
27670 done # for ac_tag
27673 as_fn_exit 0
27674 _ACEOF
27675 ac_clean_files=$ac_clean_files_save
27677 test $ac_write_fail = 0 ||
27678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27680 if test "x$cross_compiling" = xyes; then :
27681 if test "x$cache_file" != x/dev/null; then :
27682 cache_file=config.cache
27684 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
27685 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
27686 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
27689 # configure is writing to config.log, and then calls config.status.
27690 # config.status does its own redirection, appending to config.log.
27691 # Unfortunately, on DOS this fails, as config.log is still kept open
27692 # by configure, so config.status won't be able to write to it; its
27693 # output is simply discarded. So we exec the FD to /dev/null,
27694 # effectively closing config.log, so it can be properly (re)opened and
27695 # appended to by config.status. When coming back to configure, we
27696 # need to make the FD available again.
27697 if test "$no_create" != yes; then
27698 ac_cs_success=:
27699 ac_config_status_args=
27700 test "$silent" = yes &&
27701 ac_config_status_args="$ac_config_status_args --quiet"
27702 exec 5>/dev/null
27703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27704 exec 5>>config.log
27705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27706 # would make configure fail if this is the last instruction.
27707 $ac_cs_success || as_fn_exit 1
27711 # CONFIG_SUBDIRS section.
27713 if test "$no_recursion" != yes; then
27715 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27716 # so they do not pile up.
27717 ac_sub_configure_args=
27718 ac_prev=
27719 eval "set x $ac_configure_args"
27720 shift
27721 for ac_arg
27723 if test -n "$ac_prev"; then
27724 ac_prev=
27725 continue
27727 case $ac_arg in
27728 -cache-file | --cache-file | --cache-fil | --cache-fi \
27729 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27730 ac_prev=cache_file ;;
27731 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27732 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27733 | --c=*)
27735 --config-cache | -C)
27737 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27738 ac_prev=srcdir ;;
27739 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27741 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27742 ac_prev=prefix ;;
27743 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27745 --disable-option-checking)
27748 case $ac_arg in
27749 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27750 esac
27751 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27752 esac
27753 done
27755 # Always prepend --prefix to ensure using the same prefix
27756 # in subdir configurations.
27757 ac_arg="--prefix=$prefix"
27758 case $ac_arg in
27759 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27760 esac
27761 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27763 # Pass --silent
27764 if test "$silent" = yes; then
27765 ac_sub_configure_args="--silent $ac_sub_configure_args"
27768 # Always prepend --disable-option-checking to silence warnings, since
27769 # different subdirs can have different --enable and --with options.
27770 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27772 ac_popdir=`pwd`
27773 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27775 # Do not complain, so a configure script can configure whichever
27776 # parts of a large source tree are present.
27777 test -d "$srcdir/$ac_dir" || continue
27779 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27780 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27781 $as_echo "$ac_msg" >&6
27782 as_dir="$ac_dir"; as_fn_mkdir_p
27783 ac_builddir=.
27785 case "$ac_dir" in
27786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27788 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27789 # A ".." for each directory in $ac_dir_suffix.
27790 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27791 case $ac_top_builddir_sub in
27792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27794 esac ;;
27795 esac
27796 ac_abs_top_builddir=$ac_pwd
27797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27798 # for backward compatibility:
27799 ac_top_builddir=$ac_top_build_prefix
27801 case $srcdir in
27802 .) # We are building in place.
27803 ac_srcdir=.
27804 ac_top_srcdir=$ac_top_builddir_sub
27805 ac_abs_top_srcdir=$ac_pwd ;;
27806 [\\/]* | ?:[\\/]* ) # Absolute name.
27807 ac_srcdir=$srcdir$ac_dir_suffix;
27808 ac_top_srcdir=$srcdir
27809 ac_abs_top_srcdir=$srcdir ;;
27810 *) # Relative name.
27811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27812 ac_top_srcdir=$ac_top_build_prefix$srcdir
27813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27814 esac
27815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27818 cd "$ac_dir"
27820 # Check for guested configure; otherwise get Cygnus style configure.
27821 if test -f "$ac_srcdir/configure.gnu"; then
27822 ac_sub_configure=$ac_srcdir/configure.gnu
27823 elif test -f "$ac_srcdir/configure"; then
27824 ac_sub_configure=$ac_srcdir/configure
27825 elif test -f "$ac_srcdir/configure.in"; then
27826 # This should be Cygnus configure.
27827 ac_sub_configure=$ac_aux_dir/configure
27828 else
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27830 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27831 ac_sub_configure=
27834 # The recursion is here.
27835 if test -n "$ac_sub_configure"; then
27836 # Make the cache file name correct relative to the subdirectory.
27837 case $cache_file in
27838 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27839 *) # Relative name.
27840 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27841 esac
27843 { $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
27844 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27845 # The eval makes quoting arguments work.
27846 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27847 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27848 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27851 cd "$ac_popdir"
27852 done
27854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}