sync with TL36978; fixed Copyright year; jump to 0.80.1 (again)
[luatex.git] / source / texk / web2c / web2c / configure
blob37613c1771b0101d1ab388b5080e009f65f9c3b0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Web2C Tools 2015.
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 Tools'
592 PACKAGE_TARNAME='web2c-tools'
593 PACKAGE_VERSION='2015'
594 PACKAGE_STRING='Web2C Tools 2015'
595 PACKAGE_BUGREPORT='tex-k@tug.org'
596 PACKAGE_URL=''
598 ac_unique_file="main.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 LEXLIB
640 LEX_OUTPUT_ROOT
642 YFLAGS
643 YACC
645 LT_SYS_LIBRARY_PATH
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
655 LN_S
657 ac_ct_DUMPBIN
658 DUMPBIN
660 FGREP
661 EGREP
662 GREP
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 LIBTOOL
673 OBJDUMP
674 DLLTOOL
676 WARNING_CFLAGS
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_maintainer_mode
767 enable_dependency_tracking
768 enable_compiler_warnings
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_aix_soname
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 enable_largefile
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 LT_SYS_LIBRARY_PATH
789 YACC
790 YFLAGS'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
862 ac_dashdash=yes ;;
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
881 --config-cache | -C)
882 cache_file=config.cache ;;
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 esac
1199 done
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1283 /^X\(\/\/\)$/{
1284 s//\1/
1287 /^X\(\/\).*/{
1288 s//\1/
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1296 else
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures Web2C Tools 2015 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/web2c-tools]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1386 cat <<\_ACEOF
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of Web2C Tools 2015:";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-compiler-warnings=[no|min|yes|max|all]
1419 Turn on compiler warnings [default: yes if
1420 maintainer-mode, min otherwise]
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --disable-largefile omit support for large files
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1432 both]
1433 --with-aix-soname=aix|svr4|both
1434 shared library versioning (aka "SONAME") variant to
1435 provide on AIX, [default=aix].
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1438 compiler's sysroot if not specified).
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 LT_SYS_LIBRARY_PATH
1449 User-defined run-time library search path.
1450 CPP C preprocessor
1451 YACC The `Yet Another Compiler Compiler' implementation to use.
1452 Defaults to the first program found out of: `bison -y', `byacc',
1453 `yacc'.
1454 YFLAGS The list of arguments that will be passed by default to $YACC.
1455 This script will default YFLAGS to the empty string to avoid a
1456 default value of `-d' given by some make applications.
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to <tex-k@tug.org>.
1462 _ACEOF
1463 ac_status=$?
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 Web2C Tools configure 2015
1525 generated by GNU Autoconf 2.69
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1569 ac_retval=1
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_compile
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 test -x conftest$ac_exeext
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=1
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_link
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1633 else
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 eval "$3=yes"
1641 else
1642 eval "$3=no"
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 } # ac_fn_c_check_header_compile
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=1
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_cpp
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1730 } # ac_fn_c_try_run
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1760 #undef $2
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1777 main ()
1779 return $2 ();
1781 return 0;
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_func
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1803 # accordingly.
1804 ac_fn_c_check_header_mongrel ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 else
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1827 else
1828 ac_header_compiler=no
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1843 else
1844 ac_header_preproc=no
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 yes:no: )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 no:yes:* )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ( $as_echo "## ---------------------------- ##
1870 ## Report this to tex-k@tug.org ##
1871 ## ---------------------------- ##"
1872 ) | sed "s/^/$as_me: WARNING: /" >&2
1874 esac
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879 else
1880 eval "$3=\$ac_header_compiler"
1882 eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_header_mongrel
1890 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891 # -------------------------------------------
1892 # Tests whether TYPE exists after having included INCLUDES, setting cache
1893 # variable VAR accordingly.
1894 ac_fn_c_check_type ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=no"
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1907 main ()
1909 if (sizeof ($2))
1910 return 0;
1912 return 0;
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1920 main ()
1922 if (sizeof (($2)))
1923 return 0;
1925 return 0;
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1930 else
1931 eval "$3=yes"
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_type
1944 # ac_fn_c_find_intX_t LINENO BITS VAR
1945 # -----------------------------------
1946 # Finds a signed integer type with width BITS, setting cache variable VAR
1947 # accordingly.
1948 ac_fn_c_find_intX_t ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1952 $as_echo_n "checking for int$2_t... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=no"
1957 # Order is important - never check a type that is potentially smaller
1958 # than half of the expected target width.
1959 for ac_type in int$2_t 'int' 'long int' \
1960 'long long int' 'short int' 'signed char'; do
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $ac_includes_default
1964 enum { N = $2 / 2 - 1 };
1966 main ()
1968 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1969 test_array [0] = 0;
1970 return test_array [0];
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $ac_includes_default
1980 enum { N = $2 / 2 - 1 };
1982 main ()
1984 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1985 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1986 test_array [0] = 0;
1987 return test_array [0];
1990 return 0;
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1995 else
1996 case $ac_type in #(
1997 int$2_t) :
1998 eval "$3=yes" ;; #(
1999 *) :
2000 eval "$3=\$ac_type" ;;
2001 esac
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 if eval test \"x\$"$3"\" = x"no"; then :
2008 else
2009 break
2011 done
2013 eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 } # ac_fn_c_find_intX_t
2020 # ac_fn_c_find_uintX_t LINENO BITS VAR
2021 # ------------------------------------
2022 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2023 # accordingly.
2024 ac_fn_c_find_uintX_t ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2028 $as_echo_n "checking for uint$2_t... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 eval "$3=no"
2033 # Order is important - never check a type that is potentially smaller
2034 # than half of the expected target width.
2035 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2036 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $ac_includes_default
2041 main ()
2043 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2044 test_array [0] = 0;
2045 return test_array [0];
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 case $ac_type in #(
2053 uint$2_t) :
2054 eval "$3=yes" ;; #(
2055 *) :
2056 eval "$3=\$ac_type" ;;
2057 esac
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 if eval test \"x\$"$3"\" = x"no"; then :
2062 else
2063 break
2065 done
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_find_uintX_t
2074 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2075 # ----------------------------------------------------
2076 # Tries to find if the field MEMBER exists in type AGGR, after including
2077 # INCLUDES, setting cache variable VAR accordingly.
2078 ac_fn_c_check_member ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2082 $as_echo_n "checking for $2.$3... " >&6; }
2083 if eval \${$4+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static $2 ac_aggr;
2093 if (ac_aggr.$3)
2094 return 0;
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 eval "$4=yes"
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2106 main ()
2108 static $2 ac_aggr;
2109 if (sizeof ac_aggr.$3)
2110 return 0;
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 eval "$4=yes"
2117 else
2118 eval "$4=no"
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 eval ac_res=\$$4
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_member
2131 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2132 # --------------------------------------------
2133 # Tries to find the compile-time value of EXPR in a program that includes
2134 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2135 # computed
2136 ac_fn_c_compute_int ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if test "$cross_compiling" = yes; then
2140 # Depending upon the size, compute the lo and hi bounds.
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 main ()
2147 static int test_array [1 - 2 * !(($2) >= 0)];
2148 test_array [0] = 0;
2149 return test_array [0];
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_lo=0 ac_mid=0
2157 while :; do
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165 test_array [0] = 0;
2166 return test_array [0];
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_hi=$ac_mid; break
2174 else
2175 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2176 if test $ac_lo -le $ac_mid; then
2177 ac_lo= ac_hi=
2178 break
2180 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 done
2184 else
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2189 main ()
2191 static int test_array [1 - 2 * !(($2) < 0)];
2192 test_array [0] = 0;
2193 return test_array [0];
2196 return 0;
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=-1 ac_mid=-1
2201 while :; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2209 test_array [0] = 0;
2210 return test_array [0];
2213 return 0;
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_lo=$ac_mid; break
2218 else
2219 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220 if test $ac_mid -le $ac_hi; then
2221 ac_lo= ac_hi=
2222 break
2224 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 else
2229 ac_lo= ac_hi=
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 # Binary search between lo and hi bounds.
2235 while test "x$ac_lo" != "x$ac_hi"; do
2236 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 main ()
2243 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244 test_array [0] = 0;
2245 return test_array [0];
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 ac_hi=$ac_mid
2253 else
2254 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 done
2258 case $ac_lo in #((
2259 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2260 '') ac_retval=1 ;;
2261 esac
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2266 static long int longval () { return $2; }
2267 static unsigned long int ulongval () { return $2; }
2268 #include <stdio.h>
2269 #include <stdlib.h>
2271 main ()
2274 FILE *f = fopen ("conftest.val", "w");
2275 if (! f)
2276 return 1;
2277 if (($2) < 0)
2279 long int i = longval ();
2280 if (i != ($2))
2281 return 1;
2282 fprintf (f, "%ld", i);
2284 else
2286 unsigned long int i = ulongval ();
2287 if (i != ($2))
2288 return 1;
2289 fprintf (f, "%lu", i);
2291 /* Do not output a trailing newline, as this causes \r\n confusion
2292 on some platforms. */
2293 return ferror (f) || fclose (f) != 0;
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_run "$LINENO"; then :
2300 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2301 else
2302 ac_retval=1
2304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2305 conftest.$ac_objext conftest.beam conftest.$ac_ext
2306 rm -f conftest.val
2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310 as_fn_set_status $ac_retval
2312 } # ac_fn_c_compute_int
2314 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2315 # ---------------------------------------------
2316 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2317 # accordingly.
2318 ac_fn_c_check_decl ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 as_decl_name=`echo $2|sed 's/ *(.*//'`
2322 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2324 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2325 if eval \${$3+:} false; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2332 main ()
2334 #ifndef $as_decl_name
2335 #ifdef __cplusplus
2336 (void) $as_decl_use;
2337 #else
2338 (void) $as_decl_name;
2339 #endif
2340 #endif
2343 return 0;
2345 _ACEOF
2346 if ac_fn_c_try_compile "$LINENO"; then :
2347 eval "$3=yes"
2348 else
2349 eval "$3=no"
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 eval ac_res=\$$3
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355 $as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358 } # ac_fn_c_check_decl
2359 cat >config.log <<_ACEOF
2360 This file contains any messages produced by compilers while
2361 running configure, to aid debugging if configure makes a mistake.
2363 It was created by Web2C Tools $as_me 2015, which was
2364 generated by GNU Autoconf 2.69. Invocation command line was
2366 $ $0 $@
2368 _ACEOF
2369 exec 5>>config.log
2371 cat <<_ASUNAME
2372 ## --------- ##
2373 ## Platform. ##
2374 ## --------- ##
2376 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2382 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2385 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2386 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2387 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2389 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2390 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2391 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2393 _ASUNAME
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 $as_echo "PATH: $as_dir"
2401 done
2402 IFS=$as_save_IFS
2404 } >&5
2406 cat >&5 <<_ACEOF
2409 ## ----------- ##
2410 ## Core tests. ##
2411 ## ----------- ##
2413 _ACEOF
2416 # Keep a trace of the command line.
2417 # Strip out --no-create and --no-recursion so they do not pile up.
2418 # Strip out --silent because we don't want to record it for future runs.
2419 # Also quote any args containing shell meta-characters.
2420 # Make two passes to allow for proper duplicate-argument suppression.
2421 ac_configure_args=
2422 ac_configure_args0=
2423 ac_configure_args1=
2424 ac_must_keep_next=false
2425 for ac_pass in 1 2
2427 for ac_arg
2429 case $ac_arg in
2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432 | -silent | --silent | --silen | --sile | --sil)
2433 continue ;;
2434 *\'*)
2435 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 esac
2437 case $ac_pass in
2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440 as_fn_append ac_configure_args1 " '$ac_arg'"
2441 if test $ac_must_keep_next = true; then
2442 ac_must_keep_next=false # Got value, back to normal.
2443 else
2444 case $ac_arg in
2445 *=* | --config-cache | -C | -disable-* | --disable-* \
2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448 | -with-* | --with-* | -without-* | --without-* | --x)
2449 case "$ac_configure_args0 " in
2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2451 esac
2453 -* ) ac_must_keep_next=true ;;
2454 esac
2456 as_fn_append ac_configure_args " '$ac_arg'"
2458 esac
2459 done
2460 done
2461 { ac_configure_args0=; unset ac_configure_args0;}
2462 { ac_configure_args1=; unset ac_configure_args1;}
2464 # When interrupted or exit'd, cleanup temporary files, and complete
2465 # config.log. We remove comments because anyway the quotes in there
2466 # would cause problems or look ugly.
2467 # WARNING: Use '\'' to represent an apostrophe within the trap.
2468 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469 trap 'exit_status=$?
2470 # Save into config.log some information that might help in debugging.
2472 echo
2474 $as_echo "## ---------------- ##
2475 ## Cache variables. ##
2476 ## ---------------- ##"
2477 echo
2478 # The following way of writing the cache mishandles newlines in values,
2480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in #(
2483 *${as_nl}*)
2484 case $ac_var in #(
2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2487 esac
2488 case $ac_var in #(
2489 _ | IFS | as_nl) ;; #(
2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491 *) { eval $ac_var=; unset $ac_var;} ;;
2492 esac ;;
2493 esac
2494 done
2495 (set) 2>&1 |
2496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497 *${as_nl}ac_space=\ *)
2498 sed -n \
2499 "s/'\''/'\''\\\\'\'''\''/g;
2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2501 ;; #(
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 esac |
2506 sort
2508 echo
2510 $as_echo "## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##"
2513 echo
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2524 if test -n "$ac_subst_files"; then
2525 $as_echo "## ------------------- ##
2526 ## File substitutions. ##
2527 ## ------------------- ##"
2528 echo
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2532 case $ac_val in
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 esac
2535 $as_echo "$ac_var='\''$ac_val'\''"
2536 done | sort
2537 echo
2540 if test -s confdefs.h; then
2541 $as_echo "## ----------- ##
2542 ## confdefs.h. ##
2543 ## ----------- ##"
2544 echo
2545 cat confdefs.h
2546 echo
2548 test "$ac_signal" != 0 &&
2549 $as_echo "$as_me: caught signal $ac_signal"
2550 $as_echo "$as_me: exit $exit_status"
2551 } >&5
2552 rm -f core *.core core.conftest.* &&
2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2554 exit $exit_status
2556 for ac_signal in 1 2 13 15; do
2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2558 done
2559 ac_signal=0
2561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2562 rm -f -r conftest* confdefs.h
2564 $as_echo "/* confdefs.h */" > confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2570 _ACEOF
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2574 _ACEOF
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2578 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_STRING "$PACKAGE_STRING"
2582 _ACEOF
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_URL "$PACKAGE_URL"
2590 _ACEOF
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2595 ac_site_file1=NONE
2596 ac_site_file2=NONE
2597 if test -n "$CONFIG_SITE"; then
2598 # We do not want a PATH search for config.site.
2599 case $CONFIG_SITE in #((
2600 -*) ac_site_file1=./$CONFIG_SITE;;
2601 */*) ac_site_file1=$CONFIG_SITE;;
2602 *) ac_site_file1=./$CONFIG_SITE;;
2603 esac
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2607 else
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2618 . "$ac_site_file" \
2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621 as_fn_error $? "failed to load site script $ac_site_file
2622 See \`config.log' for more details" "$LINENO" 5; }
2624 done
2626 if test -r "$cache_file"; then
2627 # Some versions of bash will fail to source /dev/null (special files
2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631 $as_echo "$as_me: loading cache $cache_file" >&6;}
2632 case $cache_file in
2633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634 *) . "./$cache_file";;
2635 esac
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639 $as_echo "$as_me: creating cache $cache_file" >&6;}
2640 >$cache_file
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2652 set,)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,set)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2660 ,);;
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2676 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2678 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2679 fi;;
2680 esac
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2683 case $ac_new_val in
2684 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 *) ac_arg=$ac_var=$ac_new_val ;;
2686 esac
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690 esac
2692 done
2693 if $ac_cache_corrupted; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2700 ## -------------------- ##
2701 ## Main body of script. ##
2702 ## -------------------- ##
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713 ac_aux_dir=
2714 for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do
2715 if test -f "$ac_dir/install-sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 break
2719 elif test -f "$ac_dir/install.sh"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 break
2723 elif test -f "$ac_dir/shtool"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2726 break
2728 done
2729 if test -z "$ac_aux_dir"; then
2730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../../build-aux \"$srcdir\"/../../../build-aux" "$LINENO" 5
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2744 am__api_version='1.15'
2746 # Find a good install program. We prefer a C program (faster),
2747 # so one script is as good as another. But avoid the broken or
2748 # incompatible versions:
2749 # SysV /etc/install, /usr/sbin/install
2750 # SunOS /usr/etc/install
2751 # IRIX /sbin/install
2752 # AIX /bin/install
2753 # AmigaOS /C/install, which installs bootblocks on floppy discs
2754 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2755 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2756 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2757 # OS/2's system install, which has a completely different semantic
2758 # ./install, which can be erroneously created by make from ./install.sh.
2759 # Reject install programs that cannot install multiple files.
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2761 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2762 if test -z "$INSTALL"; then
2763 if ${ac_cv_path_install+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 # Account for people who put trailing slashes in PATH elements.
2772 case $as_dir/ in #((
2773 ./ | .// | /[cC]/* | \
2774 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2775 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2776 /usr/ucb/* ) ;;
2778 # OSF1 and SCO ODT 3.0 have their own names for install.
2779 # Don't use installbsd from OSF since it installs stuff as root
2780 # by default.
2781 for ac_prog in ginstall scoinst install; do
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2784 if test $ac_prog = install &&
2785 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786 # AIX install. It has an incompatible calling convention.
2788 elif test $ac_prog = install &&
2789 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790 # program-specific install script used by HP pwplus--don't use.
2792 else
2793 rm -rf conftest.one conftest.two conftest.dir
2794 echo one > conftest.one
2795 echo two > conftest.two
2796 mkdir conftest.dir
2797 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2798 test -s conftest.one && test -s conftest.two &&
2799 test -s conftest.dir/conftest.one &&
2800 test -s conftest.dir/conftest.two
2801 then
2802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2803 break 3
2807 done
2808 done
2810 esac
2812 done
2813 IFS=$as_save_IFS
2815 rm -rf conftest.one conftest.two conftest.dir
2818 if test "${ac_cv_path_install+set}" = set; then
2819 INSTALL=$ac_cv_path_install
2820 else
2821 # As a last resort, use the slow shell script. Don't cache a
2822 # value for INSTALL within a source directory, because that will
2823 # break other packages using the cache if that directory is
2824 # removed, or if the value is a relative name.
2825 INSTALL=$ac_install_sh
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2829 $as_echo "$INSTALL" >&6; }
2831 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2832 # It thinks the first close brace ends the variable substitution.
2833 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2835 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2837 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2840 $as_echo_n "checking whether build environment is sane... " >&6; }
2841 # Reject unsafe characters in $srcdir or the absolute working directory
2842 # name. Accept space and tab only in the latter.
2843 am_lf='
2845 case `pwd` in
2846 *[\\\"\#\$\&\'\`$am_lf]*)
2847 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2848 esac
2849 case $srcdir in
2850 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2851 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2852 esac
2854 # Do 'set' in a subshell so we don't clobber the current shell's
2855 # arguments. Must try -L first in case configure is actually a
2856 # symlink; some systems play weird games with the mod time of symlinks
2857 # (eg FreeBSD returns the mod time of the symlink's containing
2858 # directory).
2859 if (
2860 am_has_slept=no
2861 for am_try in 1 2; do
2862 echo "timestamp, slept: $am_has_slept" > conftest.file
2863 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2864 if test "$*" = "X"; then
2865 # -L didn't work.
2866 set X `ls -t "$srcdir/configure" conftest.file`
2868 if test "$*" != "X $srcdir/configure conftest.file" \
2869 && test "$*" != "X conftest.file $srcdir/configure"; then
2871 # If neither matched, then we have a broken ls. This can happen
2872 # if, for instance, CONFIG_SHELL is bash and it inherits a
2873 # broken ls alias from the environment. This has actually
2874 # happened. Such a system could not be considered "sane".
2875 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2876 alias in your environment" "$LINENO" 5
2878 if test "$2" = conftest.file || test $am_try -eq 2; then
2879 break
2881 # Just in case.
2882 sleep 1
2883 am_has_slept=yes
2884 done
2885 test "$2" = conftest.file
2887 then
2888 # Ok.
2890 else
2891 as_fn_error $? "newly created file is older than distributed files!
2892 Check your system clock" "$LINENO" 5
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895 $as_echo "yes" >&6; }
2896 # If we didn't sleep, we still need to ensure time stamps of config.status and
2897 # generated files are strictly newer.
2898 am_sleep_pid=
2899 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2900 ( sleep 1 ) &
2901 am_sleep_pid=$!
2904 rm -f conftest.file
2906 test "$program_prefix" != NONE &&
2907 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2908 # Use a double $ so make ignores it.
2909 test "$program_suffix" != NONE &&
2910 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2911 # Double any \ or $.
2912 # By default was `s,x,x', remove it if useless.
2913 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2914 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2916 # Expand $ac_aux_dir to an absolute path.
2917 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2919 if test x"${MISSING+set}" != xset; then
2920 case $am_aux_dir in
2921 *\ * | *\ *)
2922 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2924 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2925 esac
2927 # Use eval to expand $SHELL
2928 if eval "$MISSING --is-lightweight"; then
2929 am_missing_run="$MISSING "
2930 else
2931 am_missing_run=
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2933 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2936 if test x"${install_sh+set}" != xset; then
2937 case $am_aux_dir in
2938 *\ * | *\ *)
2939 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2941 install_sh="\${SHELL} $am_aux_dir/install-sh"
2942 esac
2945 # Installed binaries are usually stripped using 'strip' when the user
2946 # run "make install-strip". However 'strip' might not be the right
2947 # tool to use in cross-compilation environments, therefore Automake
2948 # will honor the 'STRIP' environment variable to overrule this program.
2949 if test "$cross_compiling" != no; then
2950 if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}strip; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_STRIP+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$STRIP"; then
2959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 STRIP=$ac_cv_prog_STRIP
2979 if test -n "$STRIP"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2981 $as_echo "$STRIP" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2989 if test -z "$ac_cv_prog_STRIP"; then
2990 ac_ct_STRIP=$STRIP
2991 # Extract the first word of "strip", so it can be a program name with args.
2992 set dummy strip; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if test -n "$ac_ct_STRIP"; then
2999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_ac_ct_STRIP="strip"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3012 done
3013 done
3014 IFS=$as_save_IFS
3018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3019 if test -n "$ac_ct_STRIP"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3021 $as_echo "$ac_ct_STRIP" >&6; }
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3027 if test "x$ac_ct_STRIP" = x; then
3028 STRIP=":"
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031 yes:)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 STRIP=$ac_ct_STRIP
3038 else
3039 STRIP="$ac_cv_prog_STRIP"
3043 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3046 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3047 if test -z "$MKDIR_P"; then
3048 if ${ac_cv_path_mkdir+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_prog in mkdir gmkdir; do
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3059 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3060 'mkdir (GNU coreutils) '* | \
3061 'mkdir (coreutils) '* | \
3062 'mkdir (fileutils) '4.1*)
3063 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3064 break 3;;
3065 esac
3066 done
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 test -d ./--version && rmdir ./--version
3074 if test "${ac_cv_path_mkdir+set}" = set; then
3075 MKDIR_P="$ac_cv_path_mkdir -p"
3076 else
3077 # As a last resort, use the slow shell script. Don't cache a
3078 # value for MKDIR_P within a source directory, because that will
3079 # break other packages using the cache if that directory is
3080 # removed, or if the value is a relative name.
3081 MKDIR_P="$ac_install_sh -d"
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3085 $as_echo "$MKDIR_P" >&6; }
3087 for ac_prog in gawk mawk nawk awk
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_AWK+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$AWK"; then
3097 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_AWK="$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3110 done
3111 done
3112 IFS=$as_save_IFS
3116 AWK=$ac_cv_prog_AWK
3117 if test -n "$AWK"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3119 $as_echo "$AWK" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3126 test -n "$AWK" && break
3127 done
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3130 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3131 set x ${MAKE-make}
3132 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3133 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 cat >conftest.make <<\_ACEOF
3137 SHELL = /bin/sh
3138 all:
3139 @echo '@@@%%%=$(MAKE)=@@@%%%'
3140 _ACEOF
3141 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3142 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3143 *@@@%%%=?*=@@@%%%*)
3144 eval ac_cv_prog_make_${ac_make}_set=yes;;
3146 eval ac_cv_prog_make_${ac_make}_set=no;;
3147 esac
3148 rm -f conftest.make
3150 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3153 SET_MAKE=
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 SET_MAKE="MAKE=${MAKE-make}"
3160 rm -rf .tst 2>/dev/null
3161 mkdir .tst 2>/dev/null
3162 if test -d .tst; then
3163 am__leading_dot=.
3164 else
3165 am__leading_dot=_
3167 rmdir .tst 2>/dev/null
3169 # Check whether --enable-silent-rules was given.
3170 if test "${enable_silent_rules+set}" = set; then :
3171 enableval=$enable_silent_rules;
3174 case $enable_silent_rules in # (((
3175 yes) AM_DEFAULT_VERBOSITY=0;;
3176 no) AM_DEFAULT_VERBOSITY=1;;
3177 *) AM_DEFAULT_VERBOSITY=1;;
3178 esac
3179 am_make=${MAKE-make}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3181 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3182 if ${am_cv_make_support_nested_variables+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if $as_echo 'TRUE=$(BAR$(V))
3186 BAR0=false
3187 BAR1=true
3189 am__doit:
3190 @$(TRUE)
3191 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3192 am_cv_make_support_nested_variables=yes
3193 else
3194 am_cv_make_support_nested_variables=no
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3198 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3199 if test $am_cv_make_support_nested_variables = yes; then
3200 AM_V='$(V)'
3201 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3202 else
3203 AM_V=$AM_DEFAULT_VERBOSITY
3204 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3206 AM_BACKSLASH='\'
3208 DEPDIR="${am__leading_dot}deps"
3210 ac_config_commands="$ac_config_commands depfiles"
3213 am_make=${MAKE-make}
3214 cat > confinc << 'END'
3215 am__doit:
3216 @echo this is the am__doit target
3217 .PHONY: am__doit
3219 # If we don't find an include directive, just comment out the code.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3221 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3222 am__include="#"
3223 am__quote=
3224 _am_result=none
3225 # First try GNU make style include.
3226 echo "include confinc" > confmf
3227 # Ignore all kinds of additional output from 'make'.
3228 case `$am_make -s -f confmf 2> /dev/null` in #(
3229 *the\ am__doit\ target*)
3230 am__include=include
3231 am__quote=
3232 _am_result=GNU
3234 esac
3235 # Now try BSD make style include.
3236 if test "$am__include" = "#"; then
3237 echo '.include "confinc"' > confmf
3238 case `$am_make -s -f confmf 2> /dev/null` in #(
3239 *the\ am__doit\ target*)
3240 am__include=.include
3241 am__quote="\""
3242 _am_result=BSD
3244 esac
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3249 $as_echo "$_am_result" >&6; }
3250 rm -f confinc confmf
3252 # Check whether --enable-dependency-tracking was given.
3253 if test "${enable_dependency_tracking+set}" = set; then :
3254 enableval=$enable_dependency_tracking;
3257 if test "x$enable_dependency_tracking" != xno; then
3258 am_depcomp="$ac_aux_dir/depcomp"
3259 AMDEPBACKSLASH='\'
3260 am__nodep='_no'
3262 if test "x$enable_dependency_tracking" != xno; then
3263 AMDEP_TRUE=
3264 AMDEP_FALSE='#'
3265 else
3266 AMDEP_TRUE='#'
3267 AMDEP_FALSE=
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3315 if test -z "$ac_cv_prog_CC"; then
3316 ac_ct_CC=$CC
3317 # Extract the first word of "gcc", so it can be a program name with args.
3318 set dummy gcc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC="gcc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3353 if test "x$ac_ct_CC" = x; then
3354 CC=""
3355 else
3356 case $cross_compiling:$ac_tool_warned in
3357 yes:)
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360 ac_tool_warned=yes ;;
3361 esac
3362 CC=$ac_ct_CC
3364 else
3365 CC="$ac_cv_prog_CC"
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}cc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_CC+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_CC="${ac_tool_prefix}cc"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3391 done
3392 done
3393 IFS=$as_save_IFS
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 ac_prog_rejected=no
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected=yes
3430 continue
3432 ac_cv_prog_CC="cc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3436 done
3437 done
3438 IFS=$as_save_IFS
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy $ac_cv_prog_CC
3443 shift
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3448 shift
3449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog in cl.exe
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3492 IFS=$as_save_IFS
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3506 test -n "$CC" && break
3507 done
3509 if test -z "$CC"; then
3510 ac_ct_CC=$CC
3511 for ac_prog in cl.exe
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy $ac_prog; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_CC="$ac_prog"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3534 done
3535 done
3536 IFS=$as_save_IFS
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3550 test -n "$ac_ct_CC" && break
3551 done
3553 if test "x$ac_ct_CC" = x; then
3554 CC=""
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned=yes ;;
3561 esac
3562 CC=$ac_ct_CC
3569 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "no acceptable C compiler found in \$PATH
3572 See \`config.log' for more details" "$LINENO" 5; }
3574 # Provide some information about the compiler.
3575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3576 set X $ac_compile
3577 ac_compiler=$2
3578 for ac_option in --version -v -V -qversion; do
3579 { { ac_try="$ac_compiler $ac_option >&5"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3587 ac_status=$?
3588 if test -s conftest.err; then
3589 sed '10a\
3590 ... rest of stderr output deleted ...
3591 10q' conftest.err >conftest.er1
3592 cat conftest.er1 >&5
3594 rm -f conftest.er1 conftest.err
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }
3597 done
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3603 main ()
3607 return 0;
3609 _ACEOF
3610 ac_clean_files_save=$ac_clean_files
3611 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3612 # Try to create an executable without -o first, disregard a.out.
3613 # It will help us diagnose broken compilers, and finding out an intuition
3614 # of exeext.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3616 $as_echo_n "checking whether the C compiler works... " >&6; }
3617 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3619 # The possible output files:
3620 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3622 ac_rmfiles=
3623 for ac_file in $ac_files
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3628 esac
3629 done
3630 rm -f $ac_rmfiles
3632 if { { ac_try="$ac_link_default"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link_default") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; then :
3643 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3644 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3645 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3646 # so that the user can short-circuit this test for compilers unknown to
3647 # Autoconf.
3648 for ac_file in $ac_files ''
3650 test -f "$ac_file" || continue
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3654 [ab].out )
3655 # We found the default executable, but exeext='' is most
3656 # certainly right.
3657 break;;
3658 *.* )
3659 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3660 then :; else
3661 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 # We set ac_cv_exeext here because the later test for it is not
3664 # safe: cross compilers may not add the suffix if given an `-o'
3665 # argument, so we may need to know it at that point already.
3666 # Even if this section looks crufty: it has the advantage of
3667 # actually working.
3668 break;;
3670 break;;
3671 esac
3672 done
3673 test "$ac_cv_exeext" = no && ac_cv_exeext=
3675 else
3676 ac_file=''
3678 if test -z "$ac_file"; then :
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error 77 "C compiler cannot create executables
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 $as_echo "yes" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3693 $as_echo_n "checking for C compiler default output file name... " >&6; }
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3695 $as_echo "$ac_file" >&6; }
3696 ac_exeext=$ac_cv_exeext
3698 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3699 ac_clean_files=$ac_clean_files_save
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3701 $as_echo_n "checking for suffix of executables... " >&6; }
3702 if { { ac_try="$ac_link"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_link") 2>&5
3710 ac_status=$?
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; then :
3713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3715 # work properly (i.e., refer to `conftest.exe'), while it won't with
3716 # `rm'.
3717 for ac_file in conftest.exe conftest conftest.*; do
3718 test -f "$ac_file" || continue
3719 case $ac_file in
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3721 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722 break;;
3723 * ) break;;
3724 esac
3725 done
3726 else
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3730 See \`config.log' for more details" "$LINENO" 5; }
3732 rm -f conftest conftest$ac_cv_exeext
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3734 $as_echo "$ac_cv_exeext" >&6; }
3736 rm -f conftest.$ac_ext
3737 EXEEXT=$ac_cv_exeext
3738 ac_exeext=$EXEEXT
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <stdio.h>
3743 main ()
3745 FILE *f = fopen ("conftest.out", "w");
3746 return ferror (f) || fclose (f) != 0;
3749 return 0;
3751 _ACEOF
3752 ac_clean_files="$ac_clean_files conftest.out"
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3756 $as_echo_n "checking whether we are cross compiling... " >&6; }
3757 if test "$cross_compiling" != yes; then
3758 { { ac_try="$ac_link"
3759 case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_link") 2>&5
3766 ac_status=$?
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }
3769 if { ac_try='./conftest$ac_cv_exeext'
3770 { { case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_try") 2>&5
3777 ac_status=$?
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; }; then
3780 cross_compiling=no
3781 else
3782 if test "$cross_compiling" = maybe; then
3783 cross_compiling=yes
3784 else
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot run C compiled programs.
3788 If you meant to cross compile, use \`--host'.
3789 See \`config.log' for more details" "$LINENO" 5; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3794 $as_echo "$cross_compiling" >&6; }
3796 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3797 ac_clean_files=$ac_clean_files_save
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3799 $as_echo_n "checking for suffix of object files... " >&6; }
3800 if ${ac_cv_objext+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3807 main ()
3811 return 0;
3813 _ACEOF
3814 rm -f conftest.o conftest.obj
3815 if { { ac_try="$ac_compile"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_compile") 2>&5
3823 ac_status=$?
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }; then :
3826 for ac_file in conftest.o conftest.obj conftest.*; do
3827 test -f "$ac_file" || continue;
3828 case $ac_file in
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3831 break;;
3832 esac
3833 done
3834 else
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error $? "cannot compute suffix of object files: cannot compile
3841 See \`config.log' for more details" "$LINENO" 5; }
3843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3846 $as_echo "$ac_cv_objext" >&6; }
3847 OBJEXT=$ac_cv_objext
3848 ac_objext=$OBJEXT
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3850 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3851 if ${ac_cv_c_compiler_gnu+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3858 main ()
3860 #ifndef __GNUC__
3861 choke me
3862 #endif
3865 return 0;
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 ac_compiler_gnu=yes
3870 else
3871 ac_compiler_gnu=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3878 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3879 if test $ac_compiler_gnu = yes; then
3880 GCC=yes
3881 else
3882 GCC=
3884 ac_test_CFLAGS=${CFLAGS+set}
3885 ac_save_CFLAGS=$CFLAGS
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3887 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3888 if ${ac_cv_prog_cc_g+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 ac_save_c_werror_flag=$ac_c_werror_flag
3892 ac_c_werror_flag=yes
3893 ac_cv_prog_cc_g=no
3894 CFLAGS="-g"
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_g=yes
3908 else
3909 CFLAGS=""
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 main ()
3918 return 0;
3920 _ACEOF
3921 if ac_fn_c_try_compile "$LINENO"; then :
3923 else
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3925 CFLAGS="-g"
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3930 main ()
3934 return 0;
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_g=yes
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 ac_c_werror_flag=$ac_save_c_werror_flag
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3948 $as_echo "$ac_cv_prog_cc_g" >&6; }
3949 if test "$ac_test_CFLAGS" = set; then
3950 CFLAGS=$ac_save_CFLAGS
3951 elif test $ac_cv_prog_cc_g = yes; then
3952 if test "$GCC" = yes; then
3953 CFLAGS="-g -O2"
3954 else
3955 CFLAGS="-g"
3957 else
3958 if test "$GCC" = yes; then
3959 CFLAGS="-O2"
3960 else
3961 CFLAGS=
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3965 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3966 if ${ac_cv_prog_cc_c89+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 ac_cv_prog_cc_c89=no
3970 ac_save_CC=$CC
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #include <stdarg.h>
3974 #include <stdio.h>
3975 struct stat;
3976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3977 struct buf { int x; };
3978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3979 static char *e (p, i)
3980 char **p;
3981 int i;
3983 return p[i];
3985 static char *f (char * (*g) (char **, int), char **p, ...)
3987 char *s;
3988 va_list v;
3989 va_start (v,p);
3990 s = g (p, va_arg (v,int));
3991 va_end (v);
3992 return s;
3995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3996 function prototypes and stuff, but not '\xHH' hex character constants.
3997 These don't provoke an error unfortunately, instead are silently treated
3998 as 'x'. The following induces an error, until -std is added to get
3999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4000 array size at least. It's necessary to write '\x00'==0 to get something
4001 that's true only with -std. */
4002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4005 inside strings and character constants. */
4006 #define FOO(x) 'x'
4007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4009 int test (int i, double x);
4010 struct s1 {int (*f) (int a);};
4011 struct s2 {int (*f) (double a);};
4012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4013 int argc;
4014 char **argv;
4016 main ()
4018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4020 return 0;
4022 _ACEOF
4023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4026 CC="$ac_save_CC $ac_arg"
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_prog_cc_c89=$ac_arg
4030 rm -f core conftest.err conftest.$ac_objext
4031 test "x$ac_cv_prog_cc_c89" != "xno" && break
4032 done
4033 rm -f conftest.$ac_ext
4034 CC=$ac_save_CC
4037 # AC_CACHE_VAL
4038 case "x$ac_cv_prog_cc_c89" in
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041 $as_echo "none needed" >&6; } ;;
4042 xno)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4044 $as_echo "unsupported" >&6; } ;;
4046 CC="$CC $ac_cv_prog_cc_c89"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4048 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4049 esac
4050 if test "x$ac_cv_prog_cc_c89" != xno; then :
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 ac_ext=c
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4066 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4067 if ${am_cv_prog_cc_c_o+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4078 return 0;
4080 _ACEOF
4081 # Make sure it works both with $CC and with simple cc.
4082 # Following AC_PROG_CC_C_O, we do the test twice because some
4083 # compilers refuse to overwrite an existing .o file with -o,
4084 # though they will create one.
4085 am_cv_prog_cc_c_o=yes
4086 for am_i in 1 2; do
4087 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4088 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } \
4092 && test -f conftest2.$ac_objext; then
4093 : OK
4094 else
4095 am_cv_prog_cc_c_o=no
4096 break
4098 done
4099 rm -f core conftest*
4100 unset am_i
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4103 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4104 if test "$am_cv_prog_cc_c_o" != yes; then
4105 # Losing compiler, so override with the script.
4106 # FIXME: It is wrong to rewrite CC.
4107 # But if we don't then we get into trouble of one sort or another.
4108 # A longer-term fix would be to have automake use am__CC in this case,
4109 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4110 CC="$am_aux_dir/compile $CC"
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 depcc="$CC" am_compiler_list=
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4122 $as_echo_n "checking dependency style of $depcc... " >&6; }
4123 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4127 # We make a subdir and do the tests there. Otherwise we can end up
4128 # making bogus files that we don't know about and never remove. For
4129 # instance it was reported that on HP-UX the gcc test will end up
4130 # making a dummy file named 'D' -- because '-MD' means "put the output
4131 # in D".
4132 rm -rf conftest.dir
4133 mkdir conftest.dir
4134 # Copy depcomp to subdir because otherwise we won't find it if we're
4135 # using a relative directory.
4136 cp "$am_depcomp" conftest.dir
4137 cd conftest.dir
4138 # We will build objects and dependencies in a subdirectory because
4139 # it helps to detect inapplicable dependency modes. For instance
4140 # both Tru64's cc and ICC support -MD to output dependencies as a
4141 # side effect of compilation, but ICC will put the dependencies in
4142 # the current directory while Tru64 will put them in the object
4143 # directory.
4144 mkdir sub
4146 am_cv_CC_dependencies_compiler_type=none
4147 if test "$am_compiler_list" = ""; then
4148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4150 am__universal=false
4151 case " $depcc " in #(
4152 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4153 esac
4155 for depmode in $am_compiler_list; do
4156 # Setup a source with many dependencies, because some compilers
4157 # like to wrap large dependency lists on column 80 (with \), and
4158 # we should not choose a depcomp mode which is confused by this.
4160 # We need to recreate these files for each test, as the compiler may
4161 # overwrite some of them when testing with obscure command lines.
4162 # This happens at least with the AIX C compiler.
4163 : > sub/conftest.c
4164 for i in 1 2 3 4 5 6; do
4165 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4166 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4167 # Solaris 10 /bin/sh.
4168 echo '/* dummy */' > sub/conftst$i.h
4169 done
4170 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4172 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4173 # mode. It turns out that the SunPro C++ compiler does not properly
4174 # handle '-M -o', and we need to detect this. Also, some Intel
4175 # versions had trouble with output in subdirs.
4176 am__obj=sub/conftest.${OBJEXT-o}
4177 am__minus_obj="-o $am__obj"
4178 case $depmode in
4179 gcc)
4180 # This depmode causes a compiler race in universal mode.
4181 test "$am__universal" = false || continue
4183 nosideeffect)
4184 # After this tag, mechanisms are not by side-effect, so they'll
4185 # only be used when explicitly requested.
4186 if test "x$enable_dependency_tracking" = xyes; then
4187 continue
4188 else
4189 break
4192 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4193 # This compiler won't grok '-c -o', but also, the minuso test has
4194 # not run yet. These depmodes are late enough in the game, and
4195 # so weak that their functioning should not be impacted.
4196 am__obj=conftest.${OBJEXT-o}
4197 am__minus_obj=
4199 none) break ;;
4200 esac
4201 if depmode=$depmode \
4202 source=sub/conftest.c object=$am__obj \
4203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4204 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4205 >/dev/null 2>conftest.err &&
4206 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4207 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4208 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4209 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4210 # icc doesn't choke on unknown options, it will just issue warnings
4211 # or remarks (even with -Werror). So we grep stderr for any message
4212 # that says an option was ignored or not supported.
4213 # When given -MP, icc 7.0 and 7.1 complain thusly:
4214 # icc: Command line warning: ignoring option '-M'; no argument required
4215 # The diagnosis changed in icc 8.0:
4216 # icc: Command line remark: option '-MP' not supported
4217 if (grep 'ignoring option' conftest.err ||
4218 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4219 am_cv_CC_dependencies_compiler_type=$depmode
4220 break
4223 done
4225 cd ..
4226 rm -rf conftest.dir
4227 else
4228 am_cv_CC_dependencies_compiler_type=none
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4233 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4234 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4237 test "x$enable_dependency_tracking" != xno \
4238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4239 am__fastdepCC_TRUE=
4240 am__fastdepCC_FALSE='#'
4241 else
4242 am__fastdepCC_TRUE='#'
4243 am__fastdepCC_FALSE=
4248 # Check whether --enable-compiler-warnings was given.
4249 if test "${enable_compiler_warnings+set}" = set; then :
4250 enableval=$enable_compiler_warnings;
4252 case $enable_compiler_warnings in #(
4253 no | min | yes | max | all) :
4254 ;; #(
4255 *) :
4256 if test "x$enable_maintainer_mode" = xyes; then :
4257 enable_compiler_warnings=yes
4258 else
4259 enable_compiler_warnings=min
4260 fi ;;
4261 esac
4263 case `pwd` in
4264 *\ * | *\ *)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4266 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4267 esac
4271 macro_version='2.4.6'
4272 macro_revision='2.4.6'
4286 ltmain=$ac_aux_dir/ltmain.sh
4288 # Make sure we can run config.sub.
4289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4290 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4293 $as_echo_n "checking build system type... " >&6; }
4294 if ${ac_cv_build+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 ac_build_alias=$build_alias
4298 test "x$ac_build_alias" = x &&
4299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4300 test "x$ac_build_alias" = x &&
4301 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4307 $as_echo "$ac_cv_build" >&6; }
4308 case $ac_cv_build in
4309 *-*-*) ;;
4310 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4311 esac
4312 build=$ac_cv_build
4313 ac_save_IFS=$IFS; IFS='-'
4314 set x $ac_cv_build
4315 shift
4316 build_cpu=$1
4317 build_vendor=$2
4318 shift; shift
4319 # Remember, the first character of IFS is used to create $*,
4320 # except with old shells:
4321 build_os=$*
4322 IFS=$ac_save_IFS
4323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4327 $as_echo_n "checking host system type... " >&6; }
4328 if ${ac_cv_host+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test "x$host_alias" = x; then
4332 ac_cv_host=$ac_cv_build
4333 else
4334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4335 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4340 $as_echo "$ac_cv_host" >&6; }
4341 case $ac_cv_host in
4342 *-*-*) ;;
4343 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4344 esac
4345 host=$ac_cv_host
4346 ac_save_IFS=$IFS; IFS='-'
4347 set x $ac_cv_host
4348 shift
4349 host_cpu=$1
4350 host_vendor=$2
4351 shift; shift
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4354 host_os=$*
4355 IFS=$ac_save_IFS
4356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4359 # Backslashify metacharacters that are still active within
4360 # double-quoted strings.
4361 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4363 # Same as above, but do not quote variable references.
4364 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4366 # Sed substitution to delay expansion of an escaped shell variable in a
4367 # double_quote_subst'ed string.
4368 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4370 # Sed substitution to delay expansion of an escaped single quote.
4371 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4373 # Sed substitution to avoid accidental globbing in evaled expressions
4374 no_glob_subst='s/\*/\\\*/g'
4376 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4377 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4378 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4381 $as_echo_n "checking how to print strings... " >&6; }
4382 # Test print first, because it will be a builtin if present.
4383 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4384 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4385 ECHO='print -r --'
4386 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4387 ECHO='printf %s\n'
4388 else
4389 # Use this function as a fallback that always works.
4390 func_fallback_echo ()
4392 eval 'cat <<_LTECHO_EOF
4394 _LTECHO_EOF'
4396 ECHO='func_fallback_echo'
4399 # func_echo_all arg...
4400 # Invoke $ECHO with all args, space-separated.
4401 func_echo_all ()
4403 $ECHO ""
4406 case $ECHO in
4407 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4408 $as_echo "printf" >&6; } ;;
4409 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4410 $as_echo "print -r" >&6; } ;;
4411 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4412 $as_echo "cat" >&6; } ;;
4413 esac
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4429 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4430 if ${ac_cv_path_SED+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4434 for ac_i in 1 2 3 4 5 6 7; do
4435 ac_script="$ac_script$as_nl$ac_script"
4436 done
4437 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4438 { ac_script=; unset ac_script;}
4439 if test -z "$SED"; then
4440 ac_path_SED_found=false
4441 # Loop through the user's path and test for each of PROGNAME-LIST
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_prog in sed gsed; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4450 as_fn_executable_p "$ac_path_SED" || continue
4451 # Check for GNU ac_path_SED and select it if it is found.
4452 # Check for GNU $ac_path_SED
4453 case `"$ac_path_SED" --version 2>&1` in
4454 *GNU*)
4455 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4457 ac_count=0
4458 $as_echo_n 0123456789 >"conftest.in"
4459 while :
4461 cat "conftest.in" "conftest.in" >"conftest.tmp"
4462 mv "conftest.tmp" "conftest.in"
4463 cp "conftest.in" "conftest.nl"
4464 $as_echo '' >> "conftest.nl"
4465 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467 as_fn_arith $ac_count + 1 && ac_count=$as_val
4468 if test $ac_count -gt ${ac_path_SED_max-0}; then
4469 # Best one so far, save it but keep looking for a better one
4470 ac_cv_path_SED="$ac_path_SED"
4471 ac_path_SED_max=$ac_count
4473 # 10*(2^10) chars as input seems more than enough
4474 test $ac_count -gt 10 && break
4475 done
4476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477 esac
4479 $ac_path_SED_found && break 3
4480 done
4481 done
4482 done
4483 IFS=$as_save_IFS
4484 if test -z "$ac_cv_path_SED"; then
4485 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4487 else
4488 ac_cv_path_SED=$SED
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4493 $as_echo "$ac_cv_path_SED" >&6; }
4494 SED="$ac_cv_path_SED"
4495 rm -f conftest.sed
4497 test -z "$SED" && SED=sed
4498 Xsed="$SED -e 1s/^X//"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512 if ${ac_cv_path_GREP+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$GREP"; then
4516 ac_path_GREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in grep ggrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526 as_fn_executable_p "$ac_path_GREP" || continue
4527 # Check for GNU ac_path_GREP and select it if it is found.
4528 # Check for GNU $ac_path_GREP
4529 case `"$ac_path_GREP" --version 2>&1` in
4530 *GNU*)
4531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'GREP' >> "conftest.nl"
4541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_GREP="$ac_path_GREP"
4547 ac_path_GREP_max=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4555 $ac_path_GREP_found && break 3
4556 done
4557 done
4558 done
4559 IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_GREP"; then
4561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 else
4564 ac_cv_path_GREP=$GREP
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569 $as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574 $as_echo_n "checking for egrep... " >&6; }
4575 if ${ac_cv_path_EGREP+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579 then ac_cv_path_EGREP="$GREP -E"
4580 else
4581 if test -z "$EGREP"; then
4582 ac_path_EGREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in egrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592 as_fn_executable_p "$ac_path_EGREP" || continue
4593 # Check for GNU ac_path_EGREP and select it if it is found.
4594 # Check for GNU $ac_path_EGREP
4595 case `"$ac_path_EGREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'EGREP' >> "conftest.nl"
4607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_EGREP="$ac_path_EGREP"
4613 ac_path_EGREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4621 $ac_path_EGREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_EGREP"; then
4627 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 else
4630 ac_cv_path_EGREP=$EGREP
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636 $as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4641 $as_echo_n "checking for fgrep... " >&6; }
4642 if ${ac_cv_path_FGREP+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4646 then ac_cv_path_FGREP="$GREP -F"
4647 else
4648 if test -z "$FGREP"; then
4649 ac_path_FGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in fgrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 as_fn_executable_p "$ac_path_FGREP" || continue
4660 # Check for GNU ac_path_FGREP and select it if it is found.
4661 # Check for GNU $ac_path_FGREP
4662 case `"$ac_path_FGREP" --version 2>&1` in
4663 *GNU*)
4664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'FGREP' >> "conftest.nl"
4674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_FGREP="$ac_path_FGREP"
4680 ac_path_FGREP_max=$ac_count
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4684 done
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4688 $ac_path_FGREP_found && break 3
4689 done
4690 done
4691 done
4692 IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_FGREP"; then
4694 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4696 else
4697 ac_cv_path_FGREP=$FGREP
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4703 $as_echo "$ac_cv_path_FGREP" >&6; }
4704 FGREP="$ac_cv_path_FGREP"
4707 test -z "$GREP" && GREP=grep
4727 # Check whether --with-gnu-ld was given.
4728 if test "${with_gnu_ld+set}" = set; then :
4729 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4730 else
4731 with_gnu_ld=no
4734 ac_prog=ld
4735 if test yes = "$GCC"; then
4736 # Check if gcc -print-prog-name=ld gives a path.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4738 $as_echo_n "checking for ld used by $CC... " >&6; }
4739 case $host in
4740 *-*-mingw*)
4741 # gcc leaves a trailing carriage return, which upsets mingw
4742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4745 esac
4746 case $ac_prog in
4747 # Accept absolute paths.
4748 [\\/]* | ?:[\\/]*)
4749 re_direlt='/[^/][^/]*/\.\./'
4750 # Canonicalize the pathname of ld
4751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4754 done
4755 test -z "$LD" && LD=$ac_prog
4758 # If it fails, then pretend we aren't using GCC.
4759 ac_prog=ld
4762 # If it is relative, then search for the first ld in PATH.
4763 with_gnu_ld=unknown
4765 esac
4766 elif test yes = "$with_gnu_ld"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4768 $as_echo_n "checking for GNU ld... " >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4771 $as_echo_n "checking for non-GNU ld... " >&6; }
4773 if ${lt_cv_path_LD+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -z "$LD"; then
4777 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4778 for ac_dir in $PATH; do
4779 IFS=$lt_save_ifs
4780 test -z "$ac_dir" && ac_dir=.
4781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4782 lt_cv_path_LD=$ac_dir/$ac_prog
4783 # Check to see if the program is GNU ld. I'd rather use --version,
4784 # but apparently some variants of GNU ld only accept -v.
4785 # Break only if it was the GNU/non-GNU ld that we prefer.
4786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4787 *GNU* | *'with BFD'*)
4788 test no != "$with_gnu_ld" && break
4791 test yes != "$with_gnu_ld" && break
4793 esac
4795 done
4796 IFS=$lt_save_ifs
4797 else
4798 lt_cv_path_LD=$LD # Let the user override the test with a path.
4802 LD=$lt_cv_path_LD
4803 if test -n "$LD"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4805 $as_echo "$LD" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4810 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4813 if ${lt_cv_prog_gnu_ld+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4817 case `$LD -v 2>&1 </dev/null` in
4818 *GNU* | *'with BFD'*)
4819 lt_cv_prog_gnu_ld=yes
4822 lt_cv_prog_gnu_ld=no
4824 esac
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4828 with_gnu_ld=$lt_cv_prog_gnu_ld
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4839 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4840 if ${lt_cv_path_NM+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$NM"; then
4844 # Let the user override the test.
4845 lt_cv_path_NM=$NM
4846 else
4847 lt_nm_to_check=${ac_tool_prefix}nm
4848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4849 lt_nm_to_check="$lt_nm_to_check nm"
4851 for lt_tmp_nm in $lt_nm_to_check; do
4852 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4854 IFS=$lt_save_ifs
4855 test -z "$ac_dir" && ac_dir=.
4856 tmp_nm=$ac_dir/$lt_tmp_nm
4857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4858 # Check to see if the nm accepts a BSD-compat flag.
4859 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4860 # nm: unknown option "B" ignored
4861 # Tru64's nm complains that /dev/null is an invalid object file
4862 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4863 case $build_os in
4864 mingw*) lt_bad_file=conftest.nm/nofile ;;
4865 *) lt_bad_file=/dev/null ;;
4866 esac
4867 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4868 *$lt_bad_file* | *'Invalid file or object type'*)
4869 lt_cv_path_NM="$tmp_nm -B"
4870 break 2
4873 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4874 */dev/null*)
4875 lt_cv_path_NM="$tmp_nm -p"
4876 break 2
4879 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4880 continue # so that we can try to find one that supports BSD flags
4882 esac
4884 esac
4886 done
4887 IFS=$lt_save_ifs
4888 done
4889 : ${lt_cv_path_NM=no}
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4893 $as_echo "$lt_cv_path_NM" >&6; }
4894 if test no != "$lt_cv_path_NM"; then
4895 NM=$lt_cv_path_NM
4896 else
4897 # Didn't find any BSD compatible name lister, look for dumpbin.
4898 if test -n "$DUMPBIN"; then :
4899 # Let the user override the test.
4900 else
4901 if test -n "$ac_tool_prefix"; then
4902 for ac_prog in dumpbin "link -dump"
4904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_prog_DUMPBIN+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$DUMPBIN"; then
4912 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 DUMPBIN=$ac_cv_prog_DUMPBIN
4932 if test -n "$DUMPBIN"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4934 $as_echo "$DUMPBIN" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4941 test -n "$DUMPBIN" && break
4942 done
4944 if test -z "$DUMPBIN"; then
4945 ac_ct_DUMPBIN=$DUMPBIN
4946 for ac_prog in dumpbin "link -dump"
4948 # Extract the first word of "$ac_prog", so it can be a program name with args.
4949 set dummy $ac_prog; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$ac_ct_DUMPBIN"; then
4956 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4975 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4976 if test -n "$ac_ct_DUMPBIN"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4978 $as_echo "$ac_ct_DUMPBIN" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4985 test -n "$ac_ct_DUMPBIN" && break
4986 done
4988 if test "x$ac_ct_DUMPBIN" = x; then
4989 DUMPBIN=":"
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned=yes ;;
4996 esac
4997 DUMPBIN=$ac_ct_DUMPBIN
5001 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5002 *COFF*)
5003 DUMPBIN="$DUMPBIN -symbols -headers"
5006 DUMPBIN=:
5008 esac
5011 if test : != "$DUMPBIN"; then
5012 NM=$DUMPBIN
5015 test -z "$NM" && NM=nm
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5023 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5024 if ${lt_cv_nm_interface+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 lt_cv_nm_interface="BSD nm"
5028 echo "int some_variable = 0;" > conftest.$ac_ext
5029 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5030 (eval "$ac_compile" 2>conftest.err)
5031 cat conftest.err >&5
5032 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5033 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5034 cat conftest.err >&5
5035 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5036 cat conftest.out >&5
5037 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5038 lt_cv_nm_interface="MS dumpbin"
5040 rm -f conftest*
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5043 $as_echo "$lt_cv_nm_interface" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5046 $as_echo_n "checking whether ln -s works... " >&6; }
5047 LN_S=$as_ln_s
5048 if test "$LN_S" = "ln -s"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5050 $as_echo "yes" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5053 $as_echo "no, using $LN_S" >&6; }
5056 # find the maximum length of command line arguments
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5058 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5059 if ${lt_cv_sys_max_cmd_len+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5063 teststring=ABCD
5065 case $build_os in
5066 msdosdjgpp*)
5067 # On DJGPP, this test can blow up pretty badly due to problems in libc
5068 # (any single argument exceeding 2000 bytes causes a buffer overrun
5069 # during glob expansion). Even if it were fixed, the result of this
5070 # check would be larger than it should be.
5071 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5074 gnu*)
5075 # Under GNU Hurd, this test is not required because there is
5076 # no limit to the length of command line arguments.
5077 # Libtool will interpret -1 as no limit whatsoever
5078 lt_cv_sys_max_cmd_len=-1;
5081 cygwin* | mingw* | cegcc*)
5082 # On Win9x/ME, this test blows up -- it succeeds, but takes
5083 # about 5 minutes as the teststring grows exponentially.
5084 # Worse, since 9x/ME are not pre-emptively multitasking,
5085 # you end up with a "frozen" computer, even though with patience
5086 # the test eventually succeeds (with a max line length of 256k).
5087 # Instead, let's just punt: use the minimum linelength reported by
5088 # all of the supported platforms: 8192 (on NT/2K/XP).
5089 lt_cv_sys_max_cmd_len=8192;
5092 mint*)
5093 # On MiNT this can take a long time and run out of memory.
5094 lt_cv_sys_max_cmd_len=8192;
5097 amigaos*)
5098 # On AmigaOS with pdksh, this test takes hours, literally.
5099 # So we just punt and use a minimum line length of 8192.
5100 lt_cv_sys_max_cmd_len=8192;
5103 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5104 # This has been around since 386BSD, at least. Likely further.
5105 if test -x /sbin/sysctl; then
5106 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5107 elif test -x /usr/sbin/sysctl; then
5108 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5109 else
5110 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5112 # And add a safety zone
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5117 interix*)
5118 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5119 lt_cv_sys_max_cmd_len=196608
5122 os2*)
5123 # The test takes a long time on OS/2.
5124 lt_cv_sys_max_cmd_len=8192
5127 osf*)
5128 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5129 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5130 # nice to cause kernel panics so lets avoid the loop below.
5131 # First set a reasonable default.
5132 lt_cv_sys_max_cmd_len=16384
5134 if test -x /sbin/sysconfig; then
5135 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5136 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5137 esac
5140 sco3.2v5*)
5141 lt_cv_sys_max_cmd_len=102400
5143 sysv5* | sco5v6* | sysv4.2uw2*)
5144 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5145 if test -n "$kargmax"; then
5146 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5147 else
5148 lt_cv_sys_max_cmd_len=32768
5152 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5153 if test -n "$lt_cv_sys_max_cmd_len" && \
5154 test undefined != "$lt_cv_sys_max_cmd_len"; then
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157 else
5158 # Make teststring a little bigger before we do anything with it.
5159 # a 1K string should be a reasonable start.
5160 for i in 1 2 3 4 5 6 7 8; do
5161 teststring=$teststring$teststring
5162 done
5163 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5164 # If test is not a shell built-in, we'll probably end up computing a
5165 # maximum length that is only half of the actual maximum length, but
5166 # we can't tell.
5167 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5168 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5169 test 17 != "$i" # 1/2 MB should be enough
5171 i=`expr $i + 1`
5172 teststring=$teststring$teststring
5173 done
5174 # Only check the string length outside the loop.
5175 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5176 teststring=
5177 # Add a significant safety factor because C++ compilers can tack on
5178 # massive amounts of additional arguments before passing them to the
5179 # linker. It appears as though 1/2 is a usable value.
5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5183 esac
5187 if test -n "$lt_cv_sys_max_cmd_len"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5189 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5192 $as_echo "none" >&6; }
5194 max_cmd_len=$lt_cv_sys_max_cmd_len
5201 : ${CP="cp -f"}
5202 : ${MV="mv -f"}
5203 : ${RM="rm -f"}
5205 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5206 lt_unset=unset
5207 else
5208 lt_unset=false
5215 # test EBCDIC or ASCII
5216 case `echo X|tr X '\101'` in
5217 A) # ASCII based system
5218 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5219 lt_SP2NL='tr \040 \012'
5220 lt_NL2SP='tr \015\012 \040\040'
5222 *) # EBCDIC based system
5223 lt_SP2NL='tr \100 \n'
5224 lt_NL2SP='tr \r\n \100\100'
5226 esac
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5237 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5238 if ${lt_cv_to_host_file_cmd+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 case $host in
5242 *-*-mingw* )
5243 case $build in
5244 *-*-mingw* ) # actually msys
5245 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5247 *-*-cygwin* )
5248 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5250 * ) # otherwise, assume *nix
5251 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5253 esac
5255 *-*-cygwin* )
5256 case $build in
5257 *-*-mingw* ) # actually msys
5258 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5260 *-*-cygwin* )
5261 lt_cv_to_host_file_cmd=func_convert_file_noop
5263 * ) # otherwise, assume *nix
5264 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5266 esac
5268 * ) # unhandled hosts (and "normal" native builds)
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5271 esac
5275 to_host_file_cmd=$lt_cv_to_host_file_cmd
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5277 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5284 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5285 if ${lt_cv_to_tool_file_cmd+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 #assume ordinary cross tools, or native build.
5289 lt_cv_to_tool_file_cmd=func_convert_file_noop
5290 case $host in
5291 *-*-mingw* )
5292 case $build in
5293 *-*-mingw* ) # actually msys
5294 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5296 esac
5298 esac
5302 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5304 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5311 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5312 if ${lt_cv_ld_reload_flag+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 lt_cv_ld_reload_flag='-r'
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5318 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5319 reload_flag=$lt_cv_ld_reload_flag
5320 case $reload_flag in
5321 "" | " "*) ;;
5322 *) reload_flag=" $reload_flag" ;;
5323 esac
5324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5325 case $host_os in
5326 cygwin* | mingw* | pw32* | cegcc*)
5327 if test yes != "$GCC"; then
5328 reload_cmds=false
5331 darwin*)
5332 if test yes = "$GCC"; then
5333 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5334 else
5335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5338 esac
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_OBJDUMP+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$OBJDUMP"; then
5357 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 OBJDUMP=$ac_cv_prog_OBJDUMP
5377 if test -n "$OBJDUMP"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5379 $as_echo "$OBJDUMP" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_prog_OBJDUMP"; then
5388 ac_ct_OBJDUMP=$OBJDUMP
5389 # Extract the first word of "objdump", so it can be a program name with args.
5390 set dummy objdump; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_OBJDUMP"; then
5397 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5416 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5417 if test -n "$ac_ct_OBJDUMP"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5419 $as_echo "$ac_ct_OBJDUMP" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5425 if test "x$ac_ct_OBJDUMP" = x; then
5426 OBJDUMP="false"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 OBJDUMP=$ac_ct_OBJDUMP
5436 else
5437 OBJDUMP="$ac_cv_prog_OBJDUMP"
5440 test -z "$OBJDUMP" && OBJDUMP=objdump
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5448 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5449 if ${lt_cv_deplibs_check_method+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 lt_cv_file_magic_cmd='$MAGIC_CMD'
5453 lt_cv_file_magic_test_file=
5454 lt_cv_deplibs_check_method='unknown'
5455 # Need to set the preceding variable on all platforms that support
5456 # interlibrary dependencies.
5457 # 'none' -- dependencies not supported.
5458 # 'unknown' -- same as none, but documents that we really don't know.
5459 # 'pass_all' -- all dependencies passed with no checks.
5460 # 'test_compile' -- check by making test program.
5461 # 'file_magic [[regex]]' -- check by looking for files in library path
5462 # that responds to the $file_magic_cmd with a given extended regex.
5463 # If you have 'file' or equivalent on your system and you're not sure
5464 # whether 'pass_all' will *always* work, you probably want this one.
5466 case $host_os in
5467 aix[4-9]*)
5468 lt_cv_deplibs_check_method=pass_all
5471 beos*)
5472 lt_cv_deplibs_check_method=pass_all
5475 bsdi[45]*)
5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5477 lt_cv_file_magic_cmd='/usr/bin/file -L'
5478 lt_cv_file_magic_test_file=/shlib/libc.so
5481 cygwin*)
5482 # func_win32_libid is a shell function defined in ltmain.sh
5483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5484 lt_cv_file_magic_cmd='func_win32_libid'
5487 mingw* | pw32*)
5488 # Base MSYS/MinGW do not provide the 'file' command needed by
5489 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5490 # unless we find 'file', for example because we are cross-compiling.
5491 if ( file / ) >/dev/null 2>&1; then
5492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493 lt_cv_file_magic_cmd='func_win32_libid'
5494 else
5495 # Keep this pattern in sync with the one in func_win32_libid.
5496 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5497 lt_cv_file_magic_cmd='$OBJDUMP -f'
5501 cegcc*)
5502 # use the weaker test based on 'objdump'. See mingw*.
5503 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5504 lt_cv_file_magic_cmd='$OBJDUMP -f'
5507 darwin* | rhapsody*)
5508 lt_cv_deplibs_check_method=pass_all
5511 freebsd* | dragonfly*)
5512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513 case $host_cpu in
5514 i*86 )
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
5517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5518 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5521 esac
5522 else
5523 lt_cv_deplibs_check_method=pass_all
5527 haiku*)
5528 lt_cv_deplibs_check_method=pass_all
5531 hpux10.20* | hpux11*)
5532 lt_cv_file_magic_cmd=/usr/bin/file
5533 case $host_cpu in
5534 ia64*)
5535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5538 hppa*64*)
5539 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]'
5540 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5546 esac
5549 interix[3-9]*)
5550 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5554 irix5* | irix6* | nonstopux*)
5555 case $LD in
5556 *-32|*"-32 ") libmagic=32-bit;;
5557 *-n32|*"-n32 ") libmagic=N32;;
5558 *-64|*"-64 ") libmagic=64-bit;;
5559 *) libmagic=never-match;;
5560 esac
5561 lt_cv_deplibs_check_method=pass_all
5564 # This must be glibc/ELF.
5565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5566 lt_cv_deplibs_check_method=pass_all
5569 netbsd*)
5570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5572 else
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5577 newos6*)
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5583 *nto* | *qnx*)
5584 lt_cv_deplibs_check_method=pass_all
5587 openbsd* | bitrig*)
5588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5590 else
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5595 osf3* | osf4* | osf5*)
5596 lt_cv_deplibs_check_method=pass_all
5599 rdos*)
5600 lt_cv_deplibs_check_method=pass_all
5603 solaris*)
5604 lt_cv_deplibs_check_method=pass_all
5607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5608 lt_cv_deplibs_check_method=pass_all
5611 sysv4 | sysv4.3*)
5612 case $host_vendor in
5613 motorola)
5614 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]'
5615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617 ncr)
5618 lt_cv_deplibs_check_method=pass_all
5620 sequent)
5621 lt_cv_file_magic_cmd='/bin/file'
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5624 sni)
5625 lt_cv_file_magic_cmd='/bin/file'
5626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627 lt_cv_file_magic_test_file=/lib/libc.so
5629 siemens)
5630 lt_cv_deplibs_check_method=pass_all
5633 lt_cv_deplibs_check_method=pass_all
5635 esac
5638 tpf*)
5639 lt_cv_deplibs_check_method=pass_all
5641 os2*)
5642 lt_cv_deplibs_check_method=pass_all
5644 esac
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5648 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5650 file_magic_glob=
5651 want_nocaseglob=no
5652 if test "$build" = "$host"; then
5653 case $host_os in
5654 mingw* | pw32*)
5655 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5656 want_nocaseglob=yes
5657 else
5658 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5661 esac
5664 file_magic_cmd=$lt_cv_file_magic_cmd
5665 deplibs_check_method=$lt_cv_deplibs_check_method
5666 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5689 if test -n "$ac_tool_prefix"; then
5690 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 $as_echo_n "checking for $ac_word... " >&6; }
5694 if ${ac_cv_prog_DLLTOOL+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 if test -n "$DLLTOOL"; then
5698 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5711 done
5712 done
5713 IFS=$as_save_IFS
5717 DLLTOOL=$ac_cv_prog_DLLTOOL
5718 if test -n "$DLLTOOL"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5720 $as_echo "$DLLTOOL" >&6; }
5721 else
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5728 if test -z "$ac_cv_prog_DLLTOOL"; then
5729 ac_ct_DLLTOOL=$DLLTOOL
5730 # Extract the first word of "dlltool", so it can be a program name with args.
5731 set dummy dlltool; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if test -n "$ac_ct_DLLTOOL"; then
5738 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5751 done
5752 done
5753 IFS=$as_save_IFS
5757 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5758 if test -n "$ac_ct_DLLTOOL"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5760 $as_echo "$ac_ct_DLLTOOL" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5766 if test "x$ac_ct_DLLTOOL" = x; then
5767 DLLTOOL="false"
5768 else
5769 case $cross_compiling:$ac_tool_warned in
5770 yes:)
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773 ac_tool_warned=yes ;;
5774 esac
5775 DLLTOOL=$ac_ct_DLLTOOL
5777 else
5778 DLLTOOL="$ac_cv_prog_DLLTOOL"
5781 test -z "$DLLTOOL" && DLLTOOL=dlltool
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5790 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5791 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 lt_cv_sharedlib_from_linklib_cmd='unknown'
5796 case $host_os in
5797 cygwin* | mingw* | pw32* | cegcc*)
5798 # two different shell functions defined in ltmain.sh;
5799 # decide which one to use based on capabilities of $DLLTOOL
5800 case `$DLLTOOL --help 2>&1` in
5801 *--identify-strict*)
5802 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5805 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5807 esac
5810 # fallback: assume linklib IS sharedlib
5811 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5813 esac
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5817 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5818 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5819 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5827 if test -n "$ac_tool_prefix"; then
5828 for ac_prog in ar
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_AR+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if test -n "$AR"; then
5838 ac_cv_prog_AR="$AR" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5851 done
5852 done
5853 IFS=$as_save_IFS
5857 AR=$ac_cv_prog_AR
5858 if test -n "$AR"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5860 $as_echo "$AR" >&6; }
5861 else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5867 test -n "$AR" && break
5868 done
5870 if test -z "$AR"; then
5871 ac_ct_AR=$AR
5872 for ac_prog in ar
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$ac_ct_AR"; then
5882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_AR="$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5895 done
5896 done
5897 IFS=$as_save_IFS
5901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902 if test -n "$ac_ct_AR"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5904 $as_echo "$ac_ct_AR" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5911 test -n "$ac_ct_AR" && break
5912 done
5914 if test "x$ac_ct_AR" = x; then
5915 AR="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 AR=$ac_ct_AR
5927 : ${AR=ar}
5928 : ${AR_FLAGS=cru}
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5941 $as_echo_n "checking for archiver @FILE support... " >&6; }
5942 if ${lt_cv_ar_at_file+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 lt_cv_ar_at_file=no
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5950 main ()
5954 return 0;
5956 _ACEOF
5957 if ac_fn_c_try_compile "$LINENO"; then :
5958 echo conftest.$ac_objext > conftest.lst
5959 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5961 (eval $lt_ar_try) 2>&5
5962 ac_status=$?
5963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964 test $ac_status = 0; }
5965 if test 0 -eq "$ac_status"; then
5966 # Ensure the archiver fails upon bogus file names.
5967 rm -f conftest.$ac_objext libconftest.a
5968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5969 (eval $lt_ar_try) 2>&5
5970 ac_status=$?
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; }
5973 if test 0 -ne "$ac_status"; then
5974 lt_cv_ar_at_file=@
5977 rm -f conftest.* libconftest.a
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5984 $as_echo "$lt_cv_ar_at_file" >&6; }
5986 if test no = "$lt_cv_ar_at_file"; then
5987 archiver_list_spec=
5988 else
5989 archiver_list_spec=$lt_cv_ar_at_file
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_STRIP+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6022 IFS=$as_save_IFS
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6038 ac_ct_STRIP=$STRIP
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6060 done
6061 done
6062 IFS=$as_save_IFS
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6075 if test "x$ac_ct_STRIP" = x; then
6076 STRIP=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 STRIP=$ac_ct_STRIP
6086 else
6087 STRIP="$ac_cv_prog_STRIP"
6090 test -z "$STRIP" && STRIP=:
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_RANLIB+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_RANLIB" = x; then
6175 RANLIB=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 RANLIB=$ac_ct_RANLIB
6185 else
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 test -z "$RANLIB" && RANLIB=:
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6201 if test -n "$RANLIB"; then
6202 case $host_os in
6203 bitrig* | openbsd*)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6209 esac
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6213 case $host_os in
6214 darwin*)
6215 lock_old_archive_extraction=yes ;;
6217 lock_old_archive_extraction=no ;;
6218 esac
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287 symcode='[BCDT]'
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6292 hpux*)
6293 if test ia64 = "$host_cpu"; then
6294 symcode='[ABCDEGRST]'
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6300 osf*)
6301 symcode='[BCDEGQRST]'
6303 solaris*)
6304 symcode='[BDRT]'
6306 sco3.2v5*)
6307 symcode='[DT]'
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6315 sysv4)
6316 symcode='[DFNSTU]'
6318 esac
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6324 esac
6326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6327 # Gets list of data symbols to import.
6328 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6329 # Adjust the below global symbol transforms to fixup imported variables.
6330 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6331 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6332 lt_c_name_lib_hook="\
6333 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6334 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6335 else
6336 # Disable hooks by default.
6337 lt_cv_sys_global_symbol_to_import=
6338 lt_cdecl_hook=
6339 lt_c_name_hook=
6340 lt_c_name_lib_hook=
6343 # Transform an extracted symbol line into a proper C declaration.
6344 # Some systems (esp. on ia64) link data and code symbols differently,
6345 # so use this general approach.
6346 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6347 $lt_cdecl_hook\
6348 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6349 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6351 # Transform an extracted symbol line into symbol name and symbol address
6352 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6353 $lt_c_name_hook\
6354 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6355 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6357 # Transform an extracted symbol line into symbol name with lib prefix and
6358 # symbol address.
6359 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6360 $lt_c_name_lib_hook\
6361 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6362 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6363 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6365 # Handle CRLF in mingw tool chain
6366 opt_cr=
6367 case $build_os in
6368 mingw*)
6369 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6371 esac
6373 # Try without a prefix underscore, then with it.
6374 for ac_symprfx in "" "_"; do
6376 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377 symxfrm="\\1 $ac_symprfx\\2 \\2"
6379 # Write the raw and C identifiers.
6380 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6381 # Fake it for dumpbin and say T for any non-static function,
6382 # D for any global variable and I for any imported variable.
6383 # Also find C++ and __fastcall symbols from MSVC++,
6384 # which start with @ or ?.
6385 lt_cv_sys_global_symbol_pipe="$AWK '"\
6386 " {last_section=section; section=\$ 3};"\
6387 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6388 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6389 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6390 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6391 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6392 " \$ 0!~/External *\|/{next};"\
6393 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6394 " {if(hide[section]) next};"\
6395 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6396 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6397 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6398 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6399 " ' prfx=^$ac_symprfx"
6400 else
6401 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6403 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6405 # Check to see that the pipe works correctly.
6406 pipe_works=no
6408 rm -f conftest*
6409 cat > conftest.$ac_ext <<_LT_EOF
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6413 char nm_test_var;
6414 void nm_test_func(void);
6415 void nm_test_func(void){}
6416 #ifdef __cplusplus
6418 #endif
6419 int main(){nm_test_var='a';nm_test_func();return(0);}
6420 _LT_EOF
6422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; then
6427 # Now try to grab the symbols.
6428 nlist=conftest.nm
6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6430 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; } && test -s "$nlist"; then
6434 # Try sorting and uniquifying the output.
6435 if sort "$nlist" | uniq > "$nlist"T; then
6436 mv -f "$nlist"T "$nlist"
6437 else
6438 rm -f "$nlist"T
6441 # Make sure that we snagged all the symbols we need.
6442 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6443 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6444 cat <<_LT_EOF > conftest.$ac_ext
6445 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6446 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6447 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6448 relocations are performed -- see ld's documentation on pseudo-relocs. */
6449 # define LT_DLSYM_CONST
6450 #elif defined __osf__
6451 /* This system does not cope well with relocations in const data. */
6452 # define LT_DLSYM_CONST
6453 #else
6454 # define LT_DLSYM_CONST const
6455 #endif
6457 #ifdef __cplusplus
6458 extern "C" {
6459 #endif
6461 _LT_EOF
6462 # Now generate the symbol file.
6463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6465 cat <<_LT_EOF >> conftest.$ac_ext
6467 /* The mapping between symbol names and symbols. */
6468 LT_DLSYM_CONST struct {
6469 const char *name;
6470 void *address;
6472 lt__PROGRAM__LTX_preloaded_symbols[] =
6474 { "@PROGRAM@", (void *) 0 },
6475 _LT_EOF
6476 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6477 cat <<\_LT_EOF >> conftest.$ac_ext
6478 {0, (void *) 0}
6481 /* This works around a problem in FreeBSD linker */
6482 #ifdef FREEBSD_WORKAROUND
6483 static const void *lt_preloaded_setup() {
6484 return lt__PROGRAM__LTX_preloaded_symbols;
6486 #endif
6488 #ifdef __cplusplus
6490 #endif
6491 _LT_EOF
6492 # Now try linking the two files.
6493 mv conftest.$ac_objext conftstm.$ac_objext
6494 lt_globsym_save_LIBS=$LIBS
6495 lt_globsym_save_CFLAGS=$CFLAGS
6496 LIBS=conftstm.$ac_objext
6497 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6499 (eval $ac_link) 2>&5
6500 ac_status=$?
6501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6503 pipe_works=yes
6505 LIBS=$lt_globsym_save_LIBS
6506 CFLAGS=$lt_globsym_save_CFLAGS
6507 else
6508 echo "cannot find nm_test_func in $nlist" >&5
6510 else
6511 echo "cannot find nm_test_var in $nlist" >&5
6513 else
6514 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6516 else
6517 echo "$progname: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6520 rm -rf conftest* conftst*
6522 # Do not use the global_symbol_pipe unless it works.
6523 if test yes = "$pipe_works"; then
6524 break
6525 else
6526 lt_cv_sys_global_symbol_pipe=
6528 done
6532 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6533 lt_cv_sys_global_symbol_to_cdecl=
6535 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6537 $as_echo "failed" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6540 $as_echo "ok" >&6; }
6543 # Response file support.
6544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6545 nm_file_list_spec='@'
6546 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6547 nm_file_list_spec='@'
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6587 $as_echo_n "checking for sysroot... " >&6; }
6589 # Check whether --with-sysroot was given.
6590 if test "${with_sysroot+set}" = set; then :
6591 withval=$with_sysroot;
6592 else
6593 with_sysroot=no
6597 lt_sysroot=
6598 case $with_sysroot in #(
6599 yes)
6600 if test yes = "$GCC"; then
6601 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6603 ;; #(
6605 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6606 ;; #(
6607 no|'')
6608 ;; #(
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6611 $as_echo "$with_sysroot" >&6; }
6612 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6614 esac
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6617 $as_echo "${lt_sysroot:-no}" >&6; }
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6624 $as_echo_n "checking for a working dd... " >&6; }
6625 if ${ac_cv_path_lt_DD+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 printf 0123456789abcdef0123456789abcdef >conftest.i
6629 cat conftest.i conftest.i >conftest2.i
6630 : ${lt_DD:=$DD}
6631 if test -z "$lt_DD"; then
6632 ac_path_lt_DD_found=false
6633 # Loop through the user's path and test for each of PROGNAME-LIST
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_prog in dd; do
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6642 as_fn_executable_p "$ac_path_lt_DD" || continue
6643 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6644 cmp -s conftest.i conftest.out \
6645 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6647 $ac_path_lt_DD_found && break 3
6648 done
6649 done
6650 done
6651 IFS=$as_save_IFS
6652 if test -z "$ac_cv_path_lt_DD"; then
6655 else
6656 ac_cv_path_lt_DD=$lt_DD
6659 rm -f conftest.i conftest2.i conftest.out
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6662 $as_echo "$ac_cv_path_lt_DD" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6666 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6667 if ${lt_cv_truncate_bin+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 printf 0123456789abcdef0123456789abcdef >conftest.i
6671 cat conftest.i conftest.i >conftest2.i
6672 lt_cv_truncate_bin=
6673 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6674 cmp -s conftest.i conftest.out \
6675 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6677 rm -f conftest.i conftest2.i conftest.out
6678 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6681 $as_echo "$lt_cv_truncate_bin" >&6; }
6689 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6690 func_cc_basename ()
6692 for cc_temp in $*""; do
6693 case $cc_temp in
6694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6696 \-*) ;;
6697 *) break;;
6698 esac
6699 done
6700 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6703 # Check whether --enable-libtool-lock was given.
6704 if test "${enable_libtool_lock+set}" = set; then :
6705 enableval=$enable_libtool_lock;
6708 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6710 # Some flags need to be propagated to the compiler or linker for good
6711 # libtool support.
6712 case $host in
6713 ia64-*-hpux*)
6714 # Find out what ABI is being produced by ac_compile, and set mode
6715 # options accordingly.
6716 echo 'int i;' > conftest.$ac_ext
6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }; then
6722 case `/usr/bin/file conftest.$ac_objext` in
6723 *ELF-32*)
6724 HPUX_IA64_MODE=32
6726 *ELF-64*)
6727 HPUX_IA64_MODE=64
6729 esac
6731 rm -rf conftest*
6733 *-*-irix6*)
6734 # Find out what ABI is being produced by ac_compile, and set linker
6735 # options accordingly.
6736 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738 (eval $ac_compile) 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; then
6742 if test yes = "$lt_cv_prog_gnu_ld"; then
6743 case `/usr/bin/file conftest.$ac_objext` in
6744 *32-bit*)
6745 LD="${LD-ld} -melf32bsmip"
6747 *N32*)
6748 LD="${LD-ld} -melf32bmipn32"
6750 *64-bit*)
6751 LD="${LD-ld} -melf64bmip"
6753 esac
6754 else
6755 case `/usr/bin/file conftest.$ac_objext` in
6756 *32-bit*)
6757 LD="${LD-ld} -32"
6759 *N32*)
6760 LD="${LD-ld} -n32"
6762 *64-bit*)
6763 LD="${LD-ld} -64"
6765 esac
6768 rm -rf conftest*
6771 mips64*-*linux*)
6772 # Find out what ABI is being produced by ac_compile, and set linker
6773 # options accordingly.
6774 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6776 (eval $ac_compile) 2>&5
6777 ac_status=$?
6778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779 test $ac_status = 0; }; then
6780 emul=elf
6781 case `/usr/bin/file conftest.$ac_objext` in
6782 *32-bit*)
6783 emul="${emul}32"
6785 *64-bit*)
6786 emul="${emul}64"
6788 esac
6789 case `/usr/bin/file conftest.$ac_objext` in
6790 *MSB*)
6791 emul="${emul}btsmip"
6793 *LSB*)
6794 emul="${emul}ltsmip"
6796 esac
6797 case `/usr/bin/file conftest.$ac_objext` in
6798 *N32*)
6799 emul="${emul}n32"
6801 esac
6802 LD="${LD-ld} -m $emul"
6804 rm -rf conftest*
6807 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6808 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6809 # Find out what ABI is being produced by ac_compile, and set linker
6810 # options accordingly. Note that the listed cases only cover the
6811 # situations where additional linker options are needed (such as when
6812 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6813 # vice versa); the common cases where no linker options are needed do
6814 # not appear in the list.
6815 echo 'int i;' > conftest.$ac_ext
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817 (eval $ac_compile) 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }; then
6821 case `/usr/bin/file conftest.o` in
6822 *32-bit*)
6823 case $host in
6824 x86_64-*kfreebsd*-gnu)
6825 LD="${LD-ld} -m elf_i386_fbsd"
6827 x86_64-*linux*)
6828 case `/usr/bin/file conftest.o` in
6829 *x86-64*)
6830 LD="${LD-ld} -m elf32_x86_64"
6833 LD="${LD-ld} -m elf_i386"
6835 esac
6837 powerpc64le-*linux*)
6838 LD="${LD-ld} -m elf32lppclinux"
6840 powerpc64-*linux*)
6841 LD="${LD-ld} -m elf32ppclinux"
6843 s390x-*linux*)
6844 LD="${LD-ld} -m elf_s390"
6846 sparc64-*linux*)
6847 LD="${LD-ld} -m elf32_sparc"
6849 esac
6851 *64-bit*)
6852 case $host in
6853 x86_64-*kfreebsd*-gnu)
6854 LD="${LD-ld} -m elf_x86_64_fbsd"
6856 x86_64-*linux*)
6857 LD="${LD-ld} -m elf_x86_64"
6859 powerpcle-*linux*)
6860 LD="${LD-ld} -m elf64lppc"
6862 powerpc-*linux*)
6863 LD="${LD-ld} -m elf64ppc"
6865 s390*-*linux*|s390*-*tpf*)
6866 LD="${LD-ld} -m elf64_s390"
6868 sparc*-*linux*)
6869 LD="${LD-ld} -m elf64_sparc"
6871 esac
6873 esac
6875 rm -rf conftest*
6878 *-*-sco3.2v5*)
6879 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6880 SAVE_CFLAGS=$CFLAGS
6881 CFLAGS="$CFLAGS -belf"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6883 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6884 if ${lt_cv_cc_needs_belf+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 ac_ext=c
6888 ac_cpp='$CPP $CPPFLAGS'
6889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6897 main ()
6901 return 0;
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 lt_cv_cc_needs_belf=yes
6906 else
6907 lt_cv_cc_needs_belf=no
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6911 ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6919 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6920 if test yes != "$lt_cv_cc_needs_belf"; then
6921 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6922 CFLAGS=$SAVE_CFLAGS
6925 *-*solaris*)
6926 # Find out what ABI is being produced by ac_compile, and set linker
6927 # options accordingly.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.o` in
6935 *64-bit*)
6936 case $lt_cv_prog_gnu_ld in
6937 yes*)
6938 case $host in
6939 i?86-*-solaris*|x86_64-*-solaris*)
6940 LD="${LD-ld} -m elf_x86_64"
6942 sparc*-*-solaris*)
6943 LD="${LD-ld} -m elf64_sparc"
6945 esac
6946 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6947 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6948 LD=${LD-ld}_sol2
6952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6953 LD="${LD-ld} -64"
6956 esac
6958 esac
6960 rm -rf conftest*
6962 esac
6964 need_locks=$enable_libtool_lock
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}mt; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$MANIFEST_TOOL"; then
6975 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6988 done
6989 done
6990 IFS=$as_save_IFS
6994 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6995 if test -n "$MANIFEST_TOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6997 $as_echo "$MANIFEST_TOOL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7005 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7006 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7007 # Extract the first word of "mt", so it can be a program name with args.
7008 set dummy mt; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_MANIFEST_TOOL"; then
7015 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7034 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7035 if test -n "$ac_ct_MANIFEST_TOOL"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7037 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7043 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7044 MANIFEST_TOOL=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7054 else
7055 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7058 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7060 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7061 if ${lt_cv_path_mainfest_tool+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 lt_cv_path_mainfest_tool=no
7065 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7066 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7067 cat conftest.err >&5
7068 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7069 lt_cv_path_mainfest_tool=yes
7071 rm -f conftest*
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7074 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7075 if test yes != "$lt_cv_path_mainfest_tool"; then
7076 MANIFEST_TOOL=:
7084 case $host_os in
7085 rhapsody* | darwin*)
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$DSYMUTIL"; then
7095 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7108 done
7109 done
7110 IFS=$as_save_IFS
7114 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7115 if test -n "$DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7117 $as_echo "$DSYMUTIL" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7125 if test -z "$ac_cv_prog_DSYMUTIL"; then
7126 ac_ct_DSYMUTIL=$DSYMUTIL
7127 # Extract the first word of "dsymutil", so it can be a program name with args.
7128 set dummy dsymutil; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_DSYMUTIL"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7148 done
7149 done
7150 IFS=$as_save_IFS
7154 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7155 if test -n "$ac_ct_DSYMUTIL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7157 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7163 if test "x$ac_ct_DSYMUTIL" = x; then
7164 DSYMUTIL=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 DSYMUTIL=$ac_ct_DSYMUTIL
7174 else
7175 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_NMEDIT+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$NMEDIT"; then
7187 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7200 done
7201 done
7202 IFS=$as_save_IFS
7206 NMEDIT=$ac_cv_prog_NMEDIT
7207 if test -n "$NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7209 $as_echo "$NMEDIT" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7217 if test -z "$ac_cv_prog_NMEDIT"; then
7218 ac_ct_NMEDIT=$NMEDIT
7219 # Extract the first word of "nmedit", so it can be a program name with args.
7220 set dummy nmedit; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$ac_ct_NMEDIT"; then
7227 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7240 done
7241 done
7242 IFS=$as_save_IFS
7246 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7247 if test -n "$ac_ct_NMEDIT"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7249 $as_echo "$ac_ct_NMEDIT" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7255 if test "x$ac_ct_NMEDIT" = x; then
7256 NMEDIT=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 NMEDIT=$ac_ct_NMEDIT
7266 else
7267 NMEDIT="$ac_cv_prog_NMEDIT"
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_LIPO+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$LIPO"; then
7279 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7292 done
7293 done
7294 IFS=$as_save_IFS
7298 LIPO=$ac_cv_prog_LIPO
7299 if test -n "$LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7301 $as_echo "$LIPO" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7309 if test -z "$ac_cv_prog_LIPO"; then
7310 ac_ct_LIPO=$LIPO
7311 # Extract the first word of "lipo", so it can be a program name with args.
7312 set dummy lipo; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_LIPO"; then
7319 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_LIPO="lipo"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7332 done
7333 done
7334 IFS=$as_save_IFS
7338 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7339 if test -n "$ac_ct_LIPO"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7341 $as_echo "$ac_ct_LIPO" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7347 if test "x$ac_ct_LIPO" = x; then
7348 LIPO=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 LIPO=$ac_ct_LIPO
7358 else
7359 LIPO="$ac_cv_prog_LIPO"
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}otool; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_OTOOL+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$OTOOL"; then
7371 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7384 done
7385 done
7386 IFS=$as_save_IFS
7390 OTOOL=$ac_cv_prog_OTOOL
7391 if test -n "$OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7393 $as_echo "$OTOOL" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7401 if test -z "$ac_cv_prog_OTOOL"; then
7402 ac_ct_OTOOL=$OTOOL
7403 # Extract the first word of "otool", so it can be a program name with args.
7404 set dummy otool; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$ac_ct_OTOOL"; then
7411 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_ac_ct_OTOOL="otool"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7424 done
7425 done
7426 IFS=$as_save_IFS
7430 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7431 if test -n "$ac_ct_OTOOL"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7433 $as_echo "$ac_ct_OTOOL" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7439 if test "x$ac_ct_OTOOL" = x; then
7440 OTOOL=":"
7441 else
7442 case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448 OTOOL=$ac_ct_OTOOL
7450 else
7451 OTOOL="$ac_cv_prog_OTOOL"
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_OTOOL64+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$OTOOL64"; then
7463 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7482 OTOOL64=$ac_cv_prog_OTOOL64
7483 if test -n "$OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7485 $as_echo "$OTOOL64" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7493 if test -z "$ac_cv_prog_OTOOL64"; then
7494 ac_ct_OTOOL64=$OTOOL64
7495 # Extract the first word of "otool64", so it can be a program name with args.
7496 set dummy otool64; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$ac_ct_OTOOL64"; then
7503 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_OTOOL64="otool64"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7516 done
7517 done
7518 IFS=$as_save_IFS
7522 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7523 if test -n "$ac_ct_OTOOL64"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7525 $as_echo "$ac_ct_OTOOL64" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 if test "x$ac_ct_OTOOL64" = x; then
7532 OTOOL64=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 OTOOL64=$ac_ct_OTOOL64
7542 else
7543 OTOOL64="$ac_cv_prog_OTOOL64"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7573 $as_echo_n "checking for -single_module linker flag... " >&6; }
7574 if ${lt_cv_apple_cc_single_mod+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 lt_cv_apple_cc_single_mod=no
7578 if test -z "$LT_MULTI_MODULE"; then
7579 # By default we will add the -single_module flag. You can override
7580 # by either setting the environment variable LT_MULTI_MODULE
7581 # non-empty at configure time, or by adding -multi_module to the
7582 # link flags.
7583 rm -rf libconftest.dylib*
7584 echo "int foo(void){return 1;}" > conftest.c
7585 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7586 -dynamiclib -Wl,-single_module conftest.c" >&5
7587 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7588 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7589 _lt_result=$?
7590 # If there is a non-empty error log, and "single_module"
7591 # appears in it, assume the flag caused a linker warning
7592 if test -s conftest.err && $GREP single_module conftest.err; then
7593 cat conftest.err >&5
7594 # Otherwise, if the output was created with a 0 exit code from
7595 # the compiler, it worked.
7596 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7597 lt_cv_apple_cc_single_mod=yes
7598 else
7599 cat conftest.err >&5
7601 rm -rf libconftest.dylib*
7602 rm -f conftest.*
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7606 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 lt_cv_ld_exported_symbols_list=no
7614 save_LDFLAGS=$LDFLAGS
7615 echo "_main" > conftest.sym
7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7621 main ()
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_ld_exported_symbols_list=yes
7630 else
7631 lt_cv_ld_exported_symbols_list=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LDFLAGS=$save_LDFLAGS
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7642 $as_echo_n "checking for -force_load linker flag... " >&6; }
7643 if ${lt_cv_ld_force_load+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 lt_cv_ld_force_load=no
7647 cat > conftest.c << _LT_EOF
7648 int forced_loaded() { return 2;}
7649 _LT_EOF
7650 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7651 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7652 echo "$AR cru libconftest.a conftest.o" >&5
7653 $AR cru libconftest.a conftest.o 2>&5
7654 echo "$RANLIB libconftest.a" >&5
7655 $RANLIB libconftest.a 2>&5
7656 cat > conftest.c << _LT_EOF
7657 int main() { return 0;}
7658 _LT_EOF
7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7660 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7661 _lt_result=$?
7662 if test -s conftest.err && $GREP force_load conftest.err; then
7663 cat conftest.err >&5
7664 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7665 lt_cv_ld_force_load=yes
7666 else
7667 cat conftest.err >&5
7669 rm -f conftest.err libconftest.a conftest conftest.c
7670 rm -rf conftest.dSYM
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7674 $as_echo "$lt_cv_ld_force_load" >&6; }
7675 case $host_os in
7676 rhapsody* | darwin1.[012])
7677 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7678 darwin1.*)
7679 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7680 darwin*) # darwin 5.x on
7681 # if running on 10.5 or later, the deployment target defaults
7682 # to the OS version, if on x86, and 10.4, the deployment
7683 # target defaults to 10.4. Don't you love it?
7684 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7685 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7686 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7687 10.[012][,.]*)
7688 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7689 10.*)
7690 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7691 esac
7693 esac
7694 if test yes = "$lt_cv_apple_cc_single_mod"; then
7695 _lt_dar_single_mod='$single_module'
7697 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7698 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7699 else
7700 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7702 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7703 _lt_dsymutil='~$DSYMUTIL $lib || :'
7704 else
7705 _lt_dsymutil=
7708 esac
7710 # func_munge_path_list VARIABLE PATH
7711 # -----------------------------------
7712 # VARIABLE is name of variable containing _space_ separated list of
7713 # directories to be munged by the contents of PATH, which is string
7714 # having a format:
7715 # "DIR[:DIR]:"
7716 # string "DIR[ DIR]" will be prepended to VARIABLE
7717 # ":DIR[:DIR]"
7718 # string "DIR[ DIR]" will be appended to VARIABLE
7719 # "DIRP[:DIRP]::[DIRA:]DIRA"
7720 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7721 # "DIRA[ DIRA]" will be appended to VARIABLE
7722 # "DIR[:DIR]"
7723 # VARIABLE will be replaced by "DIR[ DIR]"
7724 func_munge_path_list ()
7726 case x$2 in
7730 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7732 x:*)
7733 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7735 *::*)
7736 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7737 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7740 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7742 esac
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7751 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7752 # On Suns, sometimes $CPP names a directory.
7753 if test -n "$CPP" && test -d "$CPP"; then
7754 CPP=
7756 if test -z "$CPP"; then
7757 if ${ac_cv_prog_CPP+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 # Double quotes because CPP needs to be expanded
7761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7763 ac_preproc_ok=false
7764 for ac_c_preproc_warn_flag in '' yes
7766 # Use a header file that comes with gcc, so configuring glibc
7767 # with a fresh cross-compiler works.
7768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7769 # <limits.h> exists even on freestanding compilers.
7770 # On the NeXT, cc -E runs the code through the compiler's parser,
7771 # not just through cpp. "Syntax error" is here to catch this case.
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #ifdef __STDC__
7775 # include <limits.h>
7776 #else
7777 # include <assert.h>
7778 #endif
7779 Syntax error
7780 _ACEOF
7781 if ac_fn_c_try_cpp "$LINENO"; then :
7783 else
7784 # Broken: fails on valid input.
7785 continue
7787 rm -f conftest.err conftest.i conftest.$ac_ext
7789 # OK, works on sane cases. Now check whether nonexistent headers
7790 # can be detected and how.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 #include <ac_nonexistent.h>
7794 _ACEOF
7795 if ac_fn_c_try_cpp "$LINENO"; then :
7796 # Broken: success on invalid input.
7797 continue
7798 else
7799 # Passes both tests.
7800 ac_preproc_ok=:
7801 break
7803 rm -f conftest.err conftest.i conftest.$ac_ext
7805 done
7806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7807 rm -f conftest.i conftest.err conftest.$ac_ext
7808 if $ac_preproc_ok; then :
7809 break
7812 done
7813 ac_cv_prog_CPP=$CPP
7816 CPP=$ac_cv_prog_CPP
7817 else
7818 ac_cv_prog_CPP=$CPP
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7821 $as_echo "$CPP" >&6; }
7822 ac_preproc_ok=false
7823 for ac_c_preproc_warn_flag in '' yes
7825 # Use a header file that comes with gcc, so configuring glibc
7826 # with a fresh cross-compiler works.
7827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7828 # <limits.h> exists even on freestanding compilers.
7829 # On the NeXT, cc -E runs the code through the compiler's parser,
7830 # not just through cpp. "Syntax error" is here to catch this case.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #ifdef __STDC__
7834 # include <limits.h>
7835 #else
7836 # include <assert.h>
7837 #endif
7838 Syntax error
7839 _ACEOF
7840 if ac_fn_c_try_cpp "$LINENO"; then :
7842 else
7843 # Broken: fails on valid input.
7844 continue
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7848 # OK, works on sane cases. Now check whether nonexistent headers
7849 # can be detected and how.
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 #include <ac_nonexistent.h>
7853 _ACEOF
7854 if ac_fn_c_try_cpp "$LINENO"; then :
7855 # Broken: success on invalid input.
7856 continue
7857 else
7858 # Passes both tests.
7859 ac_preproc_ok=:
7860 break
7862 rm -f conftest.err conftest.i conftest.$ac_ext
7864 done
7865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7866 rm -f conftest.i conftest.err conftest.$ac_ext
7867 if $ac_preproc_ok; then :
7869 else
7870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7872 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7873 See \`config.log' for more details" "$LINENO" 5; }
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7884 $as_echo_n "checking for ANSI C header files... " >&6; }
7885 if ${ac_cv_header_stdc+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #include <stdlib.h>
7891 #include <stdarg.h>
7892 #include <string.h>
7893 #include <float.h>
7896 main ()
7900 return 0;
7902 _ACEOF
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904 ac_cv_header_stdc=yes
7905 else
7906 ac_cv_header_stdc=no
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 if test $ac_cv_header_stdc = yes; then
7911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <string.h>
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "memchr" >/dev/null 2>&1; then :
7920 else
7921 ac_cv_header_stdc=no
7923 rm -f conftest*
7927 if test $ac_cv_header_stdc = yes; then
7928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 #include <stdlib.h>
7933 _ACEOF
7934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7935 $EGREP "free" >/dev/null 2>&1; then :
7937 else
7938 ac_cv_header_stdc=no
7940 rm -f conftest*
7944 if test $ac_cv_header_stdc = yes; then
7945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7946 if test "$cross_compiling" = yes; then :
7948 else
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951 #include <ctype.h>
7952 #include <stdlib.h>
7953 #if ((' ' & 0x0FF) == 0x020)
7954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7956 #else
7957 # define ISLOWER(c) \
7958 (('a' <= (c) && (c) <= 'i') \
7959 || ('j' <= (c) && (c) <= 'r') \
7960 || ('s' <= (c) && (c) <= 'z'))
7961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7962 #endif
7964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7966 main ()
7968 int i;
7969 for (i = 0; i < 256; i++)
7970 if (XOR (islower (i), ISLOWER (i))
7971 || toupper (i) != TOUPPER (i))
7972 return 2;
7973 return 0;
7975 _ACEOF
7976 if ac_fn_c_try_run "$LINENO"; then :
7978 else
7979 ac_cv_header_stdc=no
7981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7988 $as_echo "$ac_cv_header_stdc" >&6; }
7989 if test $ac_cv_header_stdc = yes; then
7991 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7996 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7997 inttypes.h stdint.h unistd.h
7998 do :
7999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8003 cat >>confdefs.h <<_ACEOF
8004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005 _ACEOF
8009 done
8012 for ac_header in dlfcn.h
8013 do :
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8016 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DLFCN_H 1
8019 _ACEOF
8023 done
8026 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8027 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8028 # is not polluted with repeated "-I."
8029 am__isrc=' -I$(srcdir)'
8030 # test to see if srcdir already configured
8031 if test -f $srcdir/config.status; then
8032 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8036 # test whether we have cygpath
8037 if test -z "$CYGPATH_W"; then
8038 if (cygpath --version) >/dev/null 2>/dev/null; then
8039 CYGPATH_W='cygpath -w'
8040 else
8041 CYGPATH_W=echo
8046 # Define the identity of the package.
8047 PACKAGE='web2c-tools'
8048 VERSION='2015'
8051 cat >>confdefs.h <<_ACEOF
8052 #define PACKAGE "$PACKAGE"
8053 _ACEOF
8056 cat >>confdefs.h <<_ACEOF
8057 #define VERSION "$VERSION"
8058 _ACEOF
8060 # Some tools Automake needs.
8062 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8065 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8068 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8071 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8074 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8076 # For better backward compatibility. To be removed once Automake 1.9.x
8077 # dies out for good. For more background, see:
8078 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
8079 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
8080 mkdir_p='$(MKDIR_P)'
8082 # We need awk for the "check" target (and possibly the TAP driver). The
8083 # system "awk" is bad on some platforms.
8084 # Always define AMTAR for backward compatibility. Yes, it's still used
8085 # in the wild :-( We should find a proper way to deprecate it ...
8086 AMTAR='$${TAR-tar}'
8089 # We'll loop over all known methods to create a tar archive until one works.
8090 _am_tools='gnutar pax cpio none'
8092 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8099 # POSIX will say in a future version that running "rm -f" with no argument
8100 # is OK; and we want to be able to make that assumption in our Makefile
8101 # recipes. So use an aggressive probe to check that the usage we want is
8102 # actually supported "in the wild" to an acceptable degree.
8103 # See automake bug#10828.
8104 # To make any issue more visible, cause the running configure to be aborted
8105 # by default if the 'rm' program in use doesn't match our expectations; the
8106 # user can still override this though.
8107 if rm -f && rm -fr && rm -rf; then : OK; else
8108 cat >&2 <<'END'
8109 Oops!
8111 Your 'rm' program seems unable to run without file operands specified
8112 on the command line, even when the '-f' option is present. This is contrary
8113 to the behaviour of most rm programs out there, and not conforming with
8114 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
8116 Please tell bug-automake@gnu.org about your system, including the value
8117 of your $PATH and any error possibly output before this message. This
8118 can help us improve future automake versions.
8121 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
8122 echo 'Configuration will proceed anyway, since you have set the' >&2
8123 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
8124 echo >&2
8125 else
8126 cat >&2 <<'END'
8127 Aborting the configuration process, to ensure you take notice of the issue.
8129 You can download and install GNU coreutils to get an 'rm' implementation
8130 that behaves properly: <http://www.gnu.org/software/coreutils/>.
8132 If you want to complete the configuration process using your problematic
8133 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
8134 to "yes", and re-run configure.
8137 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
8143 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
8144 # Check whether --enable-maintainer-mode was given.
8145 if test "${enable_maintainer_mode+set}" = set; then :
8146 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
8147 else
8148 USE_MAINTAINER_MODE=no
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
8152 $as_echo "$USE_MAINTAINER_MODE" >&6; }
8153 if test $USE_MAINTAINER_MODE = yes; then
8154 MAINTAINER_MODE_TRUE=
8155 MAINTAINER_MODE_FALSE='#'
8156 else
8157 MAINTAINER_MODE_TRUE='#'
8158 MAINTAINER_MODE_FALSE=
8161 MAINT=$MAINTAINER_MODE_TRUE
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
8165 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
8166 if ${kb_cv_c_prototypes+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 #include <stdarg.h>
8173 main ()
8175 extern void foo(int i,...);
8177 return 0;
8179 _ACEOF
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 kb_cv_c_prototypes=yes
8182 else
8183 kb_cv_c_prototypes=no
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
8189 $as_echo "$kb_cv_c_prototypes" >&6; }
8190 if test "x$kb_cv_c_prototypes" = xno; then
8191 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
8194 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
8195 if ${kpse_cv_warning_cflags+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 if test "x$GCC" = xyes; then
8199 kpse_cv_warning_cflags=
8200 if test "x$enable_compiler_warnings" != xno; then
8201 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
8202 case `$CC -dumpversion` in #(
8203 3.4.* | 4.*) :
8204 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
8205 *) :
8207 esac
8208 case `$CC -dumpversion` in #(
8209 3.[234].* | 4.*) :
8210 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
8211 *) :
8213 esac
8214 if test "x$enable_compiler_warnings" != xmin; then
8215 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
8216 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
8217 if test "x$enable_compiler_warnings" != xyes; then
8218 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
8219 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
8220 case `$CC -dumpversion` in #(
8221 3.4.* | 4.*) :
8222 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
8223 *) :
8225 esac
8226 if test "x$enable_compiler_warnings" != xmax; then
8227 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
8232 elif test "x$enable_compiler_warnings" = xno; then
8233 kpse_cv_warning_cflags=
8234 else
8235 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
8239 $as_echo "$kpse_cv_warning_cflags" >&6; }
8240 WARNING_CFLAGS=$kpse_cv_warning_cflags
8253 # Set options
8254 enable_win32_dll=yes
8256 case $host in
8257 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8258 if test -n "$ac_tool_prefix"; then
8259 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8260 set dummy ${ac_tool_prefix}as; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_prog_AS+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 if test -n "$AS"; then
8267 ac_cv_prog_AS="$AS" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_AS="${ac_tool_prefix}as"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8280 done
8281 done
8282 IFS=$as_save_IFS
8286 AS=$ac_cv_prog_AS
8287 if test -n "$AS"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289 $as_echo "$AS" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8297 if test -z "$ac_cv_prog_AS"; then
8298 ac_ct_AS=$AS
8299 # Extract the first word of "as", so it can be a program name with args.
8300 set dummy as; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test -n "$ac_ct_AS"; then
8307 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_ac_ct_AS="as"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8320 done
8321 done
8322 IFS=$as_save_IFS
8326 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8327 if test -n "$ac_ct_AS"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8329 $as_echo "$ac_ct_AS" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8335 if test "x$ac_ct_AS" = x; then
8336 AS="false"
8337 else
8338 case $cross_compiling:$ac_tool_warned in
8339 yes:)
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8342 ac_tool_warned=yes ;;
8343 esac
8344 AS=$ac_ct_AS
8346 else
8347 AS="$ac_cv_prog_AS"
8350 if test -n "$ac_tool_prefix"; then
8351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8352 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_DLLTOOL+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$DLLTOOL"; then
8359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8372 done
8373 done
8374 IFS=$as_save_IFS
8378 DLLTOOL=$ac_cv_prog_DLLTOOL
8379 if test -n "$DLLTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8381 $as_echo "$DLLTOOL" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8389 if test -z "$ac_cv_prog_DLLTOOL"; then
8390 ac_ct_DLLTOOL=$DLLTOOL
8391 # Extract the first word of "dlltool", so it can be a program name with args.
8392 set dummy dlltool; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$ac_ct_DLLTOOL"; then
8399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8419 if test -n "$ac_ct_DLLTOOL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8421 $as_echo "$ac_ct_DLLTOOL" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8427 if test "x$ac_ct_DLLTOOL" = x; then
8428 DLLTOOL="false"
8429 else
8430 case $cross_compiling:$ac_tool_warned in
8431 yes:)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434 ac_tool_warned=yes ;;
8435 esac
8436 DLLTOOL=$ac_ct_DLLTOOL
8438 else
8439 DLLTOOL="$ac_cv_prog_DLLTOOL"
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8444 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if ${ac_cv_prog_OBJDUMP+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$OBJDUMP"; then
8451 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8464 done
8465 done
8466 IFS=$as_save_IFS
8470 OBJDUMP=$ac_cv_prog_OBJDUMP
8471 if test -n "$OBJDUMP"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8473 $as_echo "$OBJDUMP" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8481 if test -z "$ac_cv_prog_OBJDUMP"; then
8482 ac_ct_OBJDUMP=$OBJDUMP
8483 # Extract the first word of "objdump", so it can be a program name with args.
8484 set dummy objdump; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$ac_ct_OBJDUMP"; then
8491 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8504 done
8505 done
8506 IFS=$as_save_IFS
8510 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8511 if test -n "$ac_ct_OBJDUMP"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8513 $as_echo "$ac_ct_OBJDUMP" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8519 if test "x$ac_ct_OBJDUMP" = x; then
8520 OBJDUMP="false"
8521 else
8522 case $cross_compiling:$ac_tool_warned in
8523 yes:)
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526 ac_tool_warned=yes ;;
8527 esac
8528 OBJDUMP=$ac_ct_OBJDUMP
8530 else
8531 OBJDUMP="$ac_cv_prog_OBJDUMP"
8535 esac
8537 test -z "$AS" && AS=as
8543 test -z "$DLLTOOL" && DLLTOOL=dlltool
8549 test -z "$OBJDUMP" && OBJDUMP=objdump
8557 enable_dlopen=no
8561 # Check whether --enable-shared was given.
8562 if test "${enable_shared+set}" = set; then :
8563 enableval=$enable_shared; p=${PACKAGE-default}
8564 case $enableval in
8565 yes) enable_shared=yes ;;
8566 no) enable_shared=no ;;
8568 enable_shared=no
8569 # Look at the argument we got. We use all the common list separators.
8570 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8571 for pkg in $enableval; do
8572 IFS=$lt_save_ifs
8573 if test "X$pkg" = "X$p"; then
8574 enable_shared=yes
8576 done
8577 IFS=$lt_save_ifs
8579 esac
8580 else
8581 enable_shared=yes
8592 # Check whether --enable-static was given.
8593 if test "${enable_static+set}" = set; then :
8594 enableval=$enable_static; p=${PACKAGE-default}
8595 case $enableval in
8596 yes) enable_static=yes ;;
8597 no) enable_static=no ;;
8599 enable_static=no
8600 # Look at the argument we got. We use all the common list separators.
8601 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8602 for pkg in $enableval; do
8603 IFS=$lt_save_ifs
8604 if test "X$pkg" = "X$p"; then
8605 enable_static=yes
8607 done
8608 IFS=$lt_save_ifs
8610 esac
8611 else
8612 enable_static=yes
8624 # Check whether --with-pic was given.
8625 if test "${with_pic+set}" = set; then :
8626 withval=$with_pic; lt_p=${PACKAGE-default}
8627 case $withval in
8628 yes|no) pic_mode=$withval ;;
8630 pic_mode=default
8631 # Look at the argument we got. We use all the common list separators.
8632 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8633 for lt_pkg in $withval; do
8634 IFS=$lt_save_ifs
8635 if test "X$lt_pkg" = "X$lt_p"; then
8636 pic_mode=yes
8638 done
8639 IFS=$lt_save_ifs
8641 esac
8642 else
8643 pic_mode=default
8653 # Check whether --enable-fast-install was given.
8654 if test "${enable_fast_install+set}" = set; then :
8655 enableval=$enable_fast_install; p=${PACKAGE-default}
8656 case $enableval in
8657 yes) enable_fast_install=yes ;;
8658 no) enable_fast_install=no ;;
8660 enable_fast_install=no
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8663 for pkg in $enableval; do
8664 IFS=$lt_save_ifs
8665 if test "X$pkg" = "X$p"; then
8666 enable_fast_install=yes
8668 done
8669 IFS=$lt_save_ifs
8671 esac
8672 else
8673 enable_fast_install=yes
8683 shared_archive_member_spec=
8684 case $host,$enable_shared in
8685 power*-*-aix[5-9]*,yes)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8687 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8689 # Check whether --with-aix-soname was given.
8690 if test "${with_aix_soname+set}" = set; then :
8691 withval=$with_aix_soname; case $withval in
8692 aix|svr4|both)
8695 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8697 esac
8698 lt_cv_with_aix_soname=$with_aix_soname
8699 else
8700 if ${lt_cv_with_aix_soname+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 lt_cv_with_aix_soname=aix
8706 with_aix_soname=$lt_cv_with_aix_soname
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8710 $as_echo "$with_aix_soname" >&6; }
8711 if test aix != "$with_aix_soname"; then
8712 # For the AIX way of multilib, we name the shared archive member
8713 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8714 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8715 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8716 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8717 if test 64 = "${OBJECT_MODE-32}"; then
8718 shared_archive_member_spec=shr_64
8719 else
8720 shared_archive_member_spec=shr
8725 with_aix_soname=aix
8727 esac
8738 # This can be used to rebuild libtool when needed
8739 LIBTOOL_DEPS=$ltmain
8741 # Always use our own libtool.
8742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8773 test -z "$LN_S" && LN_S="ln -s"
8788 if test -n "${ZSH_VERSION+set}"; then
8789 setopt NO_GLOB_SUBST
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8793 $as_echo_n "checking for objdir... " >&6; }
8794 if ${lt_cv_objdir+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 rm -f .libs 2>/dev/null
8798 mkdir .libs 2>/dev/null
8799 if test -d .libs; then
8800 lt_cv_objdir=.libs
8801 else
8802 # MS-DOS does not allow filenames that begin with a dot.
8803 lt_cv_objdir=_libs
8805 rmdir .libs 2>/dev/null
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8808 $as_echo "$lt_cv_objdir" >&6; }
8809 objdir=$lt_cv_objdir
8815 cat >>confdefs.h <<_ACEOF
8816 #define LT_OBJDIR "$lt_cv_objdir/"
8817 _ACEOF
8822 case $host_os in
8823 aix3*)
8824 # AIX sometimes has problems with the GCC collect2 program. For some
8825 # reason, if we set the COLLECT_NAMES environment variable, the problems
8826 # vanish in a puff of smoke.
8827 if test set != "${COLLECT_NAMES+set}"; then
8828 COLLECT_NAMES=
8829 export COLLECT_NAMES
8832 esac
8834 # Global variables:
8835 ofile=libtool
8836 can_build_shared=yes
8838 # All known linkers require a '.a' archive for static linking (except MSVC,
8839 # which needs '.lib').
8840 libext=a
8842 with_gnu_ld=$lt_cv_prog_gnu_ld
8844 old_CC=$CC
8845 old_CFLAGS=$CFLAGS
8847 # Set sane defaults for various variables
8848 test -z "$CC" && CC=cc
8849 test -z "$LTCC" && LTCC=$CC
8850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8851 test -z "$LD" && LD=ld
8852 test -z "$ac_objext" && ac_objext=o
8854 func_cc_basename $compiler
8855 cc_basename=$func_cc_basename_result
8858 # Only perform the check for file, if the check method requires it
8859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8860 case $deplibs_check_method in
8861 file_magic*)
8862 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8864 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8865 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 case $MAGIC_CMD in
8869 [\\/*] | ?:[\\/]*)
8870 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8873 lt_save_MAGIC_CMD=$MAGIC_CMD
8874 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8875 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8876 for ac_dir in $ac_dummy; do
8877 IFS=$lt_save_ifs
8878 test -z "$ac_dir" && ac_dir=.
8879 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8880 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8881 if test -n "$file_magic_test_file"; then
8882 case $deplibs_check_method in
8883 "file_magic "*)
8884 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8885 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8887 $EGREP "$file_magic_regex" > /dev/null; then
8889 else
8890 cat <<_LT_EOF 1>&2
8892 *** Warning: the command libtool uses to detect shared libraries,
8893 *** $file_magic_cmd, produces output that libtool cannot recognize.
8894 *** The result is that libtool may fail to recognize shared libraries
8895 *** as such. This will affect the creation of libtool libraries that
8896 *** depend on shared libraries, but programs linked with such libtool
8897 *** libraries will work regardless of this problem. Nevertheless, you
8898 *** may want to report the problem to your system manager and/or to
8899 *** bug-libtool@gnu.org
8901 _LT_EOF
8902 fi ;;
8903 esac
8905 break
8907 done
8908 IFS=$lt_save_ifs
8909 MAGIC_CMD=$lt_save_MAGIC_CMD
8911 esac
8914 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8915 if test -n "$MAGIC_CMD"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8917 $as_echo "$MAGIC_CMD" >&6; }
8918 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8927 if test -z "$lt_cv_path_MAGIC_CMD"; then
8928 if test -n "$ac_tool_prefix"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8930 $as_echo_n "checking for file... " >&6; }
8931 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 case $MAGIC_CMD in
8935 [\\/*] | ?:[\\/]*)
8936 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8939 lt_save_MAGIC_CMD=$MAGIC_CMD
8940 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8942 for ac_dir in $ac_dummy; do
8943 IFS=$lt_save_ifs
8944 test -z "$ac_dir" && ac_dir=.
8945 if test -f "$ac_dir/file"; then
8946 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8947 if test -n "$file_magic_test_file"; then
8948 case $deplibs_check_method in
8949 "file_magic "*)
8950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8951 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8953 $EGREP "$file_magic_regex" > /dev/null; then
8955 else
8956 cat <<_LT_EOF 1>&2
8958 *** Warning: the command libtool uses to detect shared libraries,
8959 *** $file_magic_cmd, produces output that libtool cannot recognize.
8960 *** The result is that libtool may fail to recognize shared libraries
8961 *** as such. This will affect the creation of libtool libraries that
8962 *** depend on shared libraries, but programs linked with such libtool
8963 *** libraries will work regardless of this problem. Nevertheless, you
8964 *** may want to report the problem to your system manager and/or to
8965 *** bug-libtool@gnu.org
8967 _LT_EOF
8968 fi ;;
8969 esac
8971 break
8973 done
8974 IFS=$lt_save_ifs
8975 MAGIC_CMD=$lt_save_MAGIC_CMD
8977 esac
8980 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8981 if test -n "$MAGIC_CMD"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8983 $as_echo "$MAGIC_CMD" >&6; }
8984 else
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8990 else
8991 MAGIC_CMD=:
8997 esac
8999 # Use C for the default configuration in the libtool script
9001 lt_save_CC=$CC
9002 ac_ext=c
9003 ac_cpp='$CPP $CPPFLAGS'
9004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009 # Source file extension for C test sources.
9010 ac_ext=c
9012 # Object file extension for compiled C test sources.
9013 objext=o
9014 objext=$objext
9016 # Code to be used in simple compile tests
9017 lt_simple_compile_test_code="int some_variable = 0;"
9019 # Code to be used in simple link tests
9020 lt_simple_link_test_code='int main(){return(0);}'
9028 # If no C compiler was specified, use CC.
9029 LTCC=${LTCC-"$CC"}
9031 # If no C compiler flags were specified, use CFLAGS.
9032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9034 # Allow CC to be a program name with arguments.
9035 compiler=$CC
9037 # Save the default compiler, since it gets overwritten when the other
9038 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9039 compiler_DEFAULT=$CC
9041 # save warnings/boilerplate of simple test code
9042 ac_outfile=conftest.$ac_objext
9043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9045 _lt_compiler_boilerplate=`cat conftest.err`
9046 $RM conftest*
9048 ac_outfile=conftest.$ac_objext
9049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051 _lt_linker_boilerplate=`cat conftest.err`
9052 $RM -r conftest*
9055 ## CAVEAT EMPTOR:
9056 ## There is no encapsulation within the following macros, do not change
9057 ## the running order or otherwise move them around unless you know exactly
9058 ## what you are doing...
9059 if test -n "$compiler"; then
9061 lt_prog_compiler_no_builtin_flag=
9063 if test yes = "$GCC"; then
9064 case $cc_basename in
9065 nvcc*)
9066 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9068 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9069 esac
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9072 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9073 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 lt_cv_prog_compiler_rtti_exceptions=no
9077 ac_outfile=conftest.$ac_objext
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9080 # Insert the option either (1) after the last *FLAGS variable, or
9081 # (2) before a word containing "conftest.", or (3) at the end.
9082 # Note that $ac_compile itself does not contain backslashes and begins
9083 # with a dollar sign (not a hyphen), so the echo should work correctly.
9084 # The option is referenced via a variable to avoid confusing sed.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
9089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9090 (eval "$lt_compile" 2>conftest.err)
9091 ac_status=$?
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 if (exit $ac_status) && test -s "$ac_outfile"; then
9095 # The compiler can only warn and ignore the option if not recognized
9096 # So say no if there are warnings other than the usual output.
9097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler_rtti_exceptions=yes
9103 $RM conftest*
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9107 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9109 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9111 else
9122 lt_prog_compiler_wl=
9123 lt_prog_compiler_pic=
9124 lt_prog_compiler_static=
9127 if test yes = "$GCC"; then
9128 lt_prog_compiler_wl='-Wl,'
9129 lt_prog_compiler_static='-static'
9131 case $host_os in
9132 aix*)
9133 # All AIX code is PIC.
9134 if test ia64 = "$host_cpu"; then
9135 # AIX 5 now supports IA64 processor
9136 lt_prog_compiler_static='-Bstatic'
9138 lt_prog_compiler_pic='-fPIC'
9141 amigaos*)
9142 case $host_cpu in
9143 powerpc)
9144 # see comment about AmigaOS4 .so support
9145 lt_prog_compiler_pic='-fPIC'
9147 m68k)
9148 # FIXME: we need at least 68020 code to build shared libraries, but
9149 # adding the '-m68020' flag to GCC prevents building anything better,
9150 # like '-m68040'.
9151 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9153 esac
9156 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9157 # PIC is the default for these OSes.
9160 mingw* | cygwin* | pw32* | os2* | cegcc*)
9161 # This hack is so that the source file can tell whether it is being
9162 # built for inclusion in a dll (and should export symbols for example).
9163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9164 # (--disable-auto-import) libraries
9165 lt_prog_compiler_pic='-DDLL_EXPORT'
9166 case $host_os in
9167 os2*)
9168 lt_prog_compiler_static='$wl-static'
9170 esac
9173 darwin* | rhapsody*)
9174 # PIC is the default on this platform
9175 # Common symbols not allowed in MH_DYLIB files
9176 lt_prog_compiler_pic='-fno-common'
9179 haiku*)
9180 # PIC is the default for Haiku.
9181 # The "-static" flag exists, but is broken.
9182 lt_prog_compiler_static=
9185 hpux*)
9186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9188 # sets the default TLS model and affects inlining.
9189 case $host_cpu in
9190 hppa*64*)
9191 # +Z the default
9194 lt_prog_compiler_pic='-fPIC'
9196 esac
9199 interix[3-9]*)
9200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9201 # Instead, we relocate shared libraries at runtime.
9204 msdosdjgpp*)
9205 # Just because we use GCC doesn't mean we suddenly get shared libraries
9206 # on systems that don't support them.
9207 lt_prog_compiler_can_build_shared=no
9208 enable_shared=no
9211 *nto* | *qnx*)
9212 # QNX uses GNU C++, but need to define -shared option too, otherwise
9213 # it will coredump.
9214 lt_prog_compiler_pic='-fPIC -shared'
9217 sysv4*MP*)
9218 if test -d /usr/nec; then
9219 lt_prog_compiler_pic=-Kconform_pic
9224 lt_prog_compiler_pic='-fPIC'
9226 esac
9228 case $cc_basename in
9229 nvcc*) # Cuda Compiler Driver 2.2
9230 lt_prog_compiler_wl='-Xlinker '
9231 if test -n "$lt_prog_compiler_pic"; then
9232 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9235 esac
9236 else
9237 # PORTME Check for flag to pass linker flags through the system compiler.
9238 case $host_os in
9239 aix*)
9240 lt_prog_compiler_wl='-Wl,'
9241 if test ia64 = "$host_cpu"; then
9242 # AIX 5 now supports IA64 processor
9243 lt_prog_compiler_static='-Bstatic'
9244 else
9245 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9249 darwin* | rhapsody*)
9250 # PIC is the default on this platform
9251 # Common symbols not allowed in MH_DYLIB files
9252 lt_prog_compiler_pic='-fno-common'
9253 case $cc_basename in
9254 nagfor*)
9255 # NAG Fortran compiler
9256 lt_prog_compiler_wl='-Wl,-Wl,,'
9257 lt_prog_compiler_pic='-PIC'
9258 lt_prog_compiler_static='-Bstatic'
9260 esac
9263 mingw* | cygwin* | pw32* | os2* | cegcc*)
9264 # This hack is so that the source file can tell whether it is being
9265 # built for inclusion in a dll (and should export symbols for example).
9266 lt_prog_compiler_pic='-DDLL_EXPORT'
9267 case $host_os in
9268 os2*)
9269 lt_prog_compiler_static='$wl-static'
9271 esac
9274 hpux9* | hpux10* | hpux11*)
9275 lt_prog_compiler_wl='-Wl,'
9276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9277 # not for PA HP-UX.
9278 case $host_cpu in
9279 hppa*64*|ia64*)
9280 # +Z the default
9283 lt_prog_compiler_pic='+Z'
9285 esac
9286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9287 lt_prog_compiler_static='$wl-a ${wl}archive'
9290 irix5* | irix6* | nonstopux*)
9291 lt_prog_compiler_wl='-Wl,'
9292 # PIC (with -KPIC) is the default.
9293 lt_prog_compiler_static='-non_shared'
9296 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9297 case $cc_basename in
9298 # old Intel for x86_64, which still supported -KPIC.
9299 ecc*)
9300 lt_prog_compiler_wl='-Wl,'
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-static'
9304 # icc used to be incompatible with GCC.
9305 # ICC 10 doesn't accept -KPIC any more.
9306 icc* | ifort*)
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-fPIC'
9309 lt_prog_compiler_static='-static'
9311 # Lahey Fortran 8.1.
9312 lf95*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='--shared'
9315 lt_prog_compiler_static='--static'
9317 nagfor*)
9318 # NAG Fortran compiler
9319 lt_prog_compiler_wl='-Wl,-Wl,,'
9320 lt_prog_compiler_pic='-PIC'
9321 lt_prog_compiler_static='-Bstatic'
9323 tcc*)
9324 # Fabrice Bellard et al's Tiny C Compiler
9325 lt_prog_compiler_wl='-Wl,'
9326 lt_prog_compiler_pic='-fPIC'
9327 lt_prog_compiler_static='-static'
9329 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9330 # Portland Group compilers (*not* the Pentium gcc compiler,
9331 # which looks to be a dead project)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='-fpic'
9334 lt_prog_compiler_static='-Bstatic'
9336 ccc*)
9337 lt_prog_compiler_wl='-Wl,'
9338 # All Alpha code is PIC.
9339 lt_prog_compiler_static='-non_shared'
9341 xl* | bgxl* | bgf* | mpixl*)
9342 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_pic='-qpic'
9345 lt_prog_compiler_static='-qstaticlink'
9348 case `$CC -V 2>&1 | sed 5q` in
9349 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9350 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 lt_prog_compiler_wl=''
9355 *Sun\ F* | *Sun*Fortran*)
9356 lt_prog_compiler_pic='-KPIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 lt_prog_compiler_wl='-Qoption ld '
9360 *Sun\ C*)
9361 # Sun C 5.9
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9364 lt_prog_compiler_wl='-Wl,'
9366 *Intel*\ [CF]*Compiler*)
9367 lt_prog_compiler_wl='-Wl,'
9368 lt_prog_compiler_pic='-fPIC'
9369 lt_prog_compiler_static='-static'
9371 *Portland\ Group*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_pic='-fpic'
9374 lt_prog_compiler_static='-Bstatic'
9376 esac
9378 esac
9381 newsos6)
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9386 *nto* | *qnx*)
9387 # QNX uses GNU C++, but need to define -shared option too, otherwise
9388 # it will coredump.
9389 lt_prog_compiler_pic='-fPIC -shared'
9392 osf3* | osf4* | osf5*)
9393 lt_prog_compiler_wl='-Wl,'
9394 # All OSF/1 code is PIC.
9395 lt_prog_compiler_static='-non_shared'
9398 rdos*)
9399 lt_prog_compiler_static='-non_shared'
9402 solaris*)
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 case $cc_basename in
9406 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9407 lt_prog_compiler_wl='-Qoption ld ';;
9409 lt_prog_compiler_wl='-Wl,';;
9410 esac
9413 sunos4*)
9414 lt_prog_compiler_wl='-Qoption ld '
9415 lt_prog_compiler_pic='-PIC'
9416 lt_prog_compiler_static='-Bstatic'
9419 sysv4 | sysv4.2uw2* | sysv4.3*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-Bstatic'
9425 sysv4*MP*)
9426 if test -d /usr/nec; then
9427 lt_prog_compiler_pic='-Kconform_pic'
9428 lt_prog_compiler_static='-Bstatic'
9432 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-KPIC'
9435 lt_prog_compiler_static='-Bstatic'
9438 unicos*)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_can_build_shared=no
9443 uts4*)
9444 lt_prog_compiler_pic='-pic'
9445 lt_prog_compiler_static='-Bstatic'
9449 lt_prog_compiler_can_build_shared=no
9451 esac
9454 case $host_os in
9455 # For platforms that do not support PIC, -DPIC is meaningless:
9456 *djgpp*)
9457 lt_prog_compiler_pic=
9460 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9462 esac
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9465 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9466 if ${lt_cv_prog_compiler_pic+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9472 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9473 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9476 # Check to make sure the PIC flag actually works.
9478 if test -n "$lt_prog_compiler_pic"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9480 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9481 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 lt_cv_prog_compiler_pic_works=no
9485 ac_outfile=conftest.$ac_objext
9486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9487 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9488 # Insert the option either (1) after the last *FLAGS variable, or
9489 # (2) before a word containing "conftest.", or (3) at the end.
9490 # Note that $ac_compile itself does not contain backslashes and begins
9491 # with a dollar sign (not a hyphen), so the echo should work correctly.
9492 # The option is referenced via a variable to avoid confusing sed.
9493 lt_compile=`echo "$ac_compile" | $SED \
9494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9496 -e 's:$: $lt_compiler_flag:'`
9497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9498 (eval "$lt_compile" 2>conftest.err)
9499 ac_status=$?
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 if (exit $ac_status) && test -s "$ac_outfile"; then
9503 # The compiler can only warn and ignore the option if not recognized
9504 # So say no if there are warnings other than the usual output.
9505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9508 lt_cv_prog_compiler_pic_works=yes
9511 $RM conftest*
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9515 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9517 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9518 case $lt_prog_compiler_pic in
9519 "" | " "*) ;;
9520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9521 esac
9522 else
9523 lt_prog_compiler_pic=
9524 lt_prog_compiler_can_build_shared=no
9540 # Check to make sure the static flag actually works.
9542 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9545 if ${lt_cv_prog_compiler_static_works+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 lt_cv_prog_compiler_static_works=no
9549 save_LDFLAGS=$LDFLAGS
9550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9553 # The linker can only warn and ignore the option if not recognized
9554 # So say no if there are warnings
9555 if test -s conftest.err; then
9556 # Append any errors to the config.log.
9557 cat conftest.err 1>&5
9558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560 if diff conftest.exp conftest.er2 >/dev/null; then
9561 lt_cv_prog_compiler_static_works=yes
9563 else
9564 lt_cv_prog_compiler_static_works=yes
9567 $RM -r conftest*
9568 LDFLAGS=$save_LDFLAGS
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9572 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9574 if test yes = "$lt_cv_prog_compiler_static_works"; then
9576 else
9577 lt_prog_compiler_static=
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9588 if ${lt_cv_prog_compiler_c_o+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 lt_cv_prog_compiler_c_o=no
9592 $RM -r conftest 2>/dev/null
9593 mkdir conftest
9594 cd conftest
9595 mkdir out
9596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9598 lt_compiler_flag="-o out/conftest2.$ac_objext"
9599 # Insert the option either (1) after the last *FLAGS variable, or
9600 # (2) before a word containing "conftest.", or (3) at the end.
9601 # Note that $ac_compile itself does not contain backslashes and begins
9602 # with a dollar sign (not a hyphen), so the echo should work correctly.
9603 lt_compile=`echo "$ac_compile" | $SED \
9604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9606 -e 's:$: $lt_compiler_flag:'`
9607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9608 (eval "$lt_compile" 2>out/conftest.err)
9609 ac_status=$?
9610 cat out/conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9613 then
9614 # The compiler can only warn and ignore the option if not recognized
9615 # So say no if there are warnings
9616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9619 lt_cv_prog_compiler_c_o=yes
9622 chmod u+w . 2>&5
9623 $RM conftest*
9624 # SGI C++ compiler will create directory out/ii_files/ for
9625 # template instantiation
9626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9627 $RM out/* && rmdir out
9628 cd ..
9629 $RM -r conftest
9630 $RM conftest*
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9643 if ${lt_cv_prog_compiler_c_o+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 lt_cv_prog_compiler_c_o=no
9647 $RM -r conftest 2>/dev/null
9648 mkdir conftest
9649 cd conftest
9650 mkdir out
9651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9653 lt_compiler_flag="-o out/conftest2.$ac_objext"
9654 # Insert the option either (1) after the last *FLAGS variable, or
9655 # (2) before a word containing "conftest.", or (3) at the end.
9656 # Note that $ac_compile itself does not contain backslashes and begins
9657 # with a dollar sign (not a hyphen), so the echo should work correctly.
9658 lt_compile=`echo "$ac_compile" | $SED \
9659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9661 -e 's:$: $lt_compiler_flag:'`
9662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9663 (eval "$lt_compile" 2>out/conftest.err)
9664 ac_status=$?
9665 cat out/conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9668 then
9669 # The compiler can only warn and ignore the option if not recognized
9670 # So say no if there are warnings
9671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9674 lt_cv_prog_compiler_c_o=yes
9677 chmod u+w . 2>&5
9678 $RM conftest*
9679 # SGI C++ compiler will create directory out/ii_files/ for
9680 # template instantiation
9681 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9682 $RM out/* && rmdir out
9683 cd ..
9684 $RM -r conftest
9685 $RM conftest*
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9689 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9694 hard_links=nottested
9695 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9696 # do not overwrite the value of need_locks provided by the user
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9698 $as_echo_n "checking if we can lock with hard links... " >&6; }
9699 hard_links=yes
9700 $RM conftest*
9701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9702 touch conftest.a
9703 ln conftest.a conftest.b 2>&5 || hard_links=no
9704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9706 $as_echo "$hard_links" >&6; }
9707 if test no = "$hard_links"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9709 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9710 need_locks=warn
9712 else
9713 need_locks=no
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9722 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9724 runpath_var=
9725 allow_undefined_flag=
9726 always_export_symbols=no
9727 archive_cmds=
9728 archive_expsym_cmds=
9729 compiler_needs_object=no
9730 enable_shared_with_static_runtimes=no
9731 export_dynamic_flag_spec=
9732 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9733 hardcode_automatic=no
9734 hardcode_direct=no
9735 hardcode_direct_absolute=no
9736 hardcode_libdir_flag_spec=
9737 hardcode_libdir_separator=
9738 hardcode_minus_L=no
9739 hardcode_shlibpath_var=unsupported
9740 inherit_rpath=no
9741 link_all_deplibs=unknown
9742 module_cmds=
9743 module_expsym_cmds=
9744 old_archive_from_new_cmds=
9745 old_archive_from_expsyms_cmds=
9746 thread_safe_flag_spec=
9747 whole_archive_flag_spec=
9748 # include_expsyms should be a list of space-separated symbols to be *always*
9749 # included in the symbol list
9750 include_expsyms=
9751 # exclude_expsyms can be an extended regexp of symbols to exclude
9752 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9753 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9754 # as well as any symbol that contains 'd'.
9755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9757 # platforms (ab)use it in PIC code, but their linkers get confused if
9758 # the symbol is explicitly referenced. Since portable code cannot
9759 # rely on this symbol name, it's probably fine to never include it in
9760 # preloaded symbol tables.
9761 # Exclude shared library initialization/finalization symbols.
9762 extract_expsyms_cmds=
9764 case $host_os in
9765 cygwin* | mingw* | pw32* | cegcc*)
9766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9767 # When not using gcc, we currently assume that we are using
9768 # Microsoft Visual C++.
9769 if test yes != "$GCC"; then
9770 with_gnu_ld=no
9773 interix*)
9774 # we just hope/assume this is gcc and not c89 (= MSVC++)
9775 with_gnu_ld=yes
9777 openbsd* | bitrig*)
9778 with_gnu_ld=no
9780 esac
9782 ld_shlibs=yes
9784 # On some targets, GNU ld is compatible enough with the native linker
9785 # that we're better off using the native interface for both.
9786 lt_use_gnu_ld_interface=no
9787 if test yes = "$with_gnu_ld"; then
9788 case $host_os in
9789 aix*)
9790 # The AIX port of GNU ld has always aspired to compatibility
9791 # with the native linker. However, as the warning in the GNU ld
9792 # block says, versions before 2.19.5* couldn't really create working
9793 # shared libraries, regardless of the interface used.
9794 case `$LD -v 2>&1` in
9795 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9796 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9797 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9799 lt_use_gnu_ld_interface=yes
9801 esac
9804 lt_use_gnu_ld_interface=yes
9806 esac
9809 if test yes = "$lt_use_gnu_ld_interface"; then
9810 # If archive_cmds runs LD, not CC, wlarc should be empty
9811 wlarc='$wl'
9813 # Set some defaults for GNU ld with shared library support. These
9814 # are reset later if shared libraries are not supported. Putting them
9815 # here allows them to be overridden if necessary.
9816 runpath_var=LD_RUN_PATH
9817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9818 export_dynamic_flag_spec='$wl--export-dynamic'
9819 # ancient GNU ld didn't support --whole-archive et. al.
9820 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9821 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9822 else
9823 whole_archive_flag_spec=
9825 supports_anon_versioning=no
9826 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9827 *GNU\ gold*) supports_anon_versioning=yes ;;
9828 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9831 *\ 2.11.*) ;; # other 2.11 versions
9832 *) supports_anon_versioning=yes ;;
9833 esac
9835 # See if GNU ld supports shared libraries.
9836 case $host_os in
9837 aix[3-9]*)
9838 # On AIX/PPC, the GNU linker is very broken
9839 if test ia64 != "$host_cpu"; then
9840 ld_shlibs=no
9841 cat <<_LT_EOF 1>&2
9843 *** Warning: the GNU linker, at least up to release 2.19, is reported
9844 *** to be unable to reliably create shared libraries on AIX.
9845 *** Therefore, libtool is disabling shared libraries support. If you
9846 *** really care for shared libraries, you may want to install binutils
9847 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9848 *** You will then need to restart the configuration process.
9850 _LT_EOF
9854 amigaos*)
9855 case $host_cpu in
9856 powerpc)
9857 # see comment about AmigaOS4 .so support
9858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9859 archive_expsym_cmds=''
9861 m68k)
9862 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)'
9863 hardcode_libdir_flag_spec='-L$libdir'
9864 hardcode_minus_L=yes
9866 esac
9869 beos*)
9870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871 allow_undefined_flag=unsupported
9872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9873 # support --undefined. This deserves some investigation. FIXME
9874 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9875 else
9876 ld_shlibs=no
9880 cygwin* | mingw* | pw32* | cegcc*)
9881 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9882 # as there is no search path for DLLs.
9883 hardcode_libdir_flag_spec='-L$libdir'
9884 export_dynamic_flag_spec='$wl--export-all-symbols'
9885 allow_undefined_flag=unsupported
9886 always_export_symbols=no
9887 enable_shared_with_static_runtimes=yes
9888 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'
9889 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9891 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9893 # If the export-symbols file already is a .def file, use it as
9894 # is; otherwise, prepend EXPORTS...
9895 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9896 cp $export_symbols $output_objdir/$soname.def;
9897 else
9898 echo EXPORTS > $output_objdir/$soname.def;
9899 cat $export_symbols >> $output_objdir/$soname.def;
9901 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9902 else
9903 ld_shlibs=no
9907 haiku*)
9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9909 link_all_deplibs=yes
9912 os2*)
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_minus_L=yes
9915 allow_undefined_flag=unsupported
9916 shrext_cmds=.dll
9917 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9918 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9919 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9920 $ECHO EXPORTS >> $output_objdir/$libname.def~
9921 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9922 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9923 emximp -o $lib $output_objdir/$libname.def'
9924 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9925 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9926 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9927 $ECHO EXPORTS >> $output_objdir/$libname.def~
9928 prefix_cmds="$SED"~
9929 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9930 prefix_cmds="$prefix_cmds -e 1d";
9932 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9933 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9934 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9935 emximp -o $lib $output_objdir/$libname.def'
9936 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9937 enable_shared_with_static_runtimes=yes
9940 interix[3-9]*)
9941 hardcode_direct=no
9942 hardcode_shlibpath_var=no
9943 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9944 export_dynamic_flag_spec='$wl-E'
9945 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9946 # Instead, shared libraries are loaded at an image base (0x10000000 by
9947 # default) and relocated if they conflict, which is a slow very memory
9948 # consuming and fragmenting process. To avoid this, we pick a random,
9949 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9950 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9952 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'
9955 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9956 tmp_diet=no
9957 if test linux-dietlibc = "$host_os"; then
9958 case $cc_basename in
9959 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9960 esac
9962 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9963 && test no = "$tmp_diet"
9964 then
9965 tmp_addflag=' $pic_flag'
9966 tmp_sharedflag='-shared'
9967 case $cc_basename,$host_cpu in
9968 pgcc*) # Portland Group C compiler
9969 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'
9970 tmp_addflag=' $pic_flag'
9972 pgf77* | pgf90* | pgf95* | pgfortran*)
9973 # Portland Group f77 and f90 compilers
9974 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'
9975 tmp_addflag=' $pic_flag -Mnomain' ;;
9976 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9977 tmp_addflag=' -i_dynamic' ;;
9978 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9979 tmp_addflag=' -i_dynamic -nofor_main' ;;
9980 ifc* | ifort*) # Intel Fortran compiler
9981 tmp_addflag=' -nofor_main' ;;
9982 lf95*) # Lahey Fortran 8.1
9983 whole_archive_flag_spec=
9984 tmp_sharedflag='--shared' ;;
9985 nagfor*) # NAGFOR 5.3
9986 tmp_sharedflag='-Wl,-shared' ;;
9987 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9988 tmp_sharedflag='-qmkshrobj'
9989 tmp_addflag= ;;
9990 nvcc*) # Cuda Compiler Driver 2.2
9991 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'
9992 compiler_needs_object=yes
9994 esac
9995 case `$CC -V 2>&1 | sed 5q` in
9996 *Sun\ C*) # Sun C 5.9
9997 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'
9998 compiler_needs_object=yes
9999 tmp_sharedflag='-G' ;;
10000 *Sun\ F*) # Sun Fortran 8.3
10001 tmp_sharedflag='-G' ;;
10002 esac
10003 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10005 if test yes = "$supports_anon_versioning"; then
10006 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10008 echo "local: *; };" >> $output_objdir/$libname.ver~
10009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10012 case $cc_basename in
10013 tcc*)
10014 export_dynamic_flag_spec='-rdynamic'
10016 xlf* | bgf* | bgxlf* | mpixlf*)
10017 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10018 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10020 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10021 if test yes = "$supports_anon_versioning"; then
10022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10024 echo "local: *; };" >> $output_objdir/$libname.ver~
10025 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10028 esac
10029 else
10030 ld_shlibs=no
10034 netbsd*)
10035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10036 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10037 wlarc=
10038 else
10039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10040 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10044 solaris*)
10045 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10046 ld_shlibs=no
10047 cat <<_LT_EOF 1>&2
10049 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10050 *** create shared libraries on Solaris systems. Therefore, libtool
10051 *** is disabling shared libraries support. We urge you to upgrade GNU
10052 *** binutils to release 2.9.1 or newer. Another option is to modify
10053 *** your PATH or compiler configuration so that the native linker is
10054 *** used, and then restart.
10056 _LT_EOF
10057 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10060 else
10061 ld_shlibs=no
10065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10066 case `$LD -v 2>&1` in
10067 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10068 ld_shlibs=no
10069 cat <<_LT_EOF 1>&2
10071 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10072 *** reliably create shared libraries on SCO systems. Therefore, libtool
10073 *** is disabling shared libraries support. We urge you to upgrade GNU
10074 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10075 *** your PATH or compiler configuration so that the native linker is
10076 *** used, and then restart.
10078 _LT_EOF
10081 # For security reasons, it is highly recommended that you always
10082 # use absolute paths for naming shared libraries, and exclude the
10083 # DT_RUNPATH tag from executables and libraries. But doing so
10084 # requires that you compile everything twice, which is a pain.
10085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10089 else
10090 ld_shlibs=no
10093 esac
10096 sunos4*)
10097 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10098 wlarc=
10099 hardcode_direct=yes
10100 hardcode_shlibpath_var=no
10104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10106 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10107 else
10108 ld_shlibs=no
10111 esac
10113 if test no = "$ld_shlibs"; then
10114 runpath_var=
10115 hardcode_libdir_flag_spec=
10116 export_dynamic_flag_spec=
10117 whole_archive_flag_spec=
10119 else
10120 # PORTME fill in a description of your system's linker (not GNU ld)
10121 case $host_os in
10122 aix3*)
10123 allow_undefined_flag=unsupported
10124 always_export_symbols=yes
10125 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'
10126 # Note: this linker hardcodes the directories in LIBPATH if there
10127 # are no directories specified by -L.
10128 hardcode_minus_L=yes
10129 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10130 # Neither direct hardcoding nor static linking is supported with a
10131 # broken collect2.
10132 hardcode_direct=unsupported
10136 aix[4-9]*)
10137 if test ia64 = "$host_cpu"; then
10138 # On IA64, the linker does run time linking by default, so we don't
10139 # have to do anything special.
10140 aix_use_runtimelinking=no
10141 exp_sym_flag='-Bexport'
10142 no_entry_flag=
10143 else
10144 # If we're using GNU nm, then we don't want the "-C" option.
10145 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10146 # Without the "-l" option, or with the "-B" option, AIX nm treats
10147 # weak defined symbols like other global defined symbols, whereas
10148 # GNU nm marks them as "W".
10149 # While the 'weak' keyword is ignored in the Export File, we need
10150 # it in the Import File for the 'aix-soname' feature, so we have
10151 # to replace the "-B" option with "-P" for AIX nm.
10152 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10153 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'
10154 else
10155 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'
10157 aix_use_runtimelinking=no
10159 # Test if we are trying to use run time linking or normal
10160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10161 # have runtime linking enabled, and use it for executables.
10162 # For shared libraries, we enable/disable runtime linking
10163 # depending on the kind of the shared library created -
10164 # when "with_aix_soname,aix_use_runtimelinking" is:
10165 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10166 # "aix,yes" lib.so shared, rtl:yes, for executables
10167 # lib.a static archive
10168 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10169 # lib.a(lib.so.V) shared, rtl:no, for executables
10170 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10171 # lib.a(lib.so.V) shared, rtl:no
10172 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10173 # lib.a static archive
10174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10175 for ld_flag in $LDFLAGS; do
10176 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10177 aix_use_runtimelinking=yes
10178 break
10180 done
10181 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10182 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10183 # so we don't have lib.a shared libs to link our executables.
10184 # We have to force runtime linking in this case.
10185 aix_use_runtimelinking=yes
10186 LDFLAGS="$LDFLAGS -Wl,-brtl"
10189 esac
10191 exp_sym_flag='-bexport'
10192 no_entry_flag='-bnoentry'
10195 # When large executables or shared objects are built, AIX ld can
10196 # have problems creating the table of contents. If linking a library
10197 # or program results in "error TOC overflow" add -mminimal-toc to
10198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10201 archive_cmds=''
10202 hardcode_direct=yes
10203 hardcode_direct_absolute=yes
10204 hardcode_libdir_separator=':'
10205 link_all_deplibs=yes
10206 file_list_spec='$wl-f,'
10207 case $with_aix_soname,$aix_use_runtimelinking in
10208 aix,*) ;; # traditional, no import file
10209 svr4,* | *,yes) # use import file
10210 # The Import File defines what to hardcode.
10211 hardcode_direct=no
10212 hardcode_direct_absolute=no
10214 esac
10216 if test yes = "$GCC"; then
10217 case $host_os in aix4.[012]|aix4.[012].*)
10218 # We only want to do this on AIX 4.2 and lower, the check
10219 # below for broken collect2 doesn't work under 4.3+
10220 collect2name=`$CC -print-prog-name=collect2`
10221 if test -f "$collect2name" &&
10222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10223 then
10224 # We have reworked collect2
10226 else
10227 # We have old collect2
10228 hardcode_direct=unsupported
10229 # It fails to find uninstalled libraries when the uninstalled
10230 # path is not listed in the libpath. Setting hardcode_minus_L
10231 # to unsupported forces relinking
10232 hardcode_minus_L=yes
10233 hardcode_libdir_flag_spec='-L$libdir'
10234 hardcode_libdir_separator=
10237 esac
10238 shared_flag='-shared'
10239 if test yes = "$aix_use_runtimelinking"; then
10240 shared_flag="$shared_flag "'$wl-G'
10242 # Need to ensure runtime linking is disabled for the traditional
10243 # shared library, or the linker may eventually find shared libraries
10244 # /with/ Import File - we do not want to mix them.
10245 shared_flag_aix='-shared'
10246 shared_flag_svr4='-shared $wl-G'
10247 else
10248 # not using gcc
10249 if test ia64 = "$host_cpu"; then
10250 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10251 # chokes on -Wl,-G. The following line is correct:
10252 shared_flag='-G'
10253 else
10254 if test yes = "$aix_use_runtimelinking"; then
10255 shared_flag='$wl-G'
10256 else
10257 shared_flag='$wl-bM:SRE'
10259 shared_flag_aix='$wl-bM:SRE'
10260 shared_flag_svr4='$wl-G'
10264 export_dynamic_flag_spec='$wl-bexpall'
10265 # It seems that -bexpall does not export symbols beginning with
10266 # underscore (_), so it is better to generate a list of symbols to export.
10267 always_export_symbols=yes
10268 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10269 # Warning - without using the other runtime loading flags (-brtl),
10270 # -berok will link without error, but may produce a broken library.
10271 allow_undefined_flag='-berok'
10272 # Determine the default libpath from the value encoded in an
10273 # empty executable.
10274 if test set = "${lt_cv_aix_libpath+set}"; then
10275 aix_libpath=$lt_cv_aix_libpath
10276 else
10277 if ${lt_cv_aix_libpath_+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10284 main ()
10288 return 0;
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10293 lt_aix_libpath_sed='
10294 /Import File Strings/,/^$/ {
10295 /^0/ {
10296 s/^0 *\([^ ]*\) *$/\1/
10300 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10301 # Check for a 64-bit object if we didn't find anything.
10302 if test -z "$lt_cv_aix_libpath_"; then
10303 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 if test -z "$lt_cv_aix_libpath_"; then
10309 lt_cv_aix_libpath_=/usr/lib:/lib
10314 aix_libpath=$lt_cv_aix_libpath_
10317 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10318 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
10319 else
10320 if test ia64 = "$host_cpu"; then
10321 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10322 allow_undefined_flag="-z nodefs"
10323 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"
10324 else
10325 # Determine the default libpath from the value encoded in an
10326 # empty executable.
10327 if test set = "${lt_cv_aix_libpath+set}"; then
10328 aix_libpath=$lt_cv_aix_libpath
10329 else
10330 if ${lt_cv_aix_libpath_+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10337 main ()
10341 return 0;
10343 _ACEOF
10344 if ac_fn_c_try_link "$LINENO"; then :
10346 lt_aix_libpath_sed='
10347 /Import File Strings/,/^$/ {
10348 /^0/ {
10349 s/^0 *\([^ ]*\) *$/\1/
10353 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354 # Check for a 64-bit object if we didn't find anything.
10355 if test -z "$lt_cv_aix_libpath_"; then
10356 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 if test -z "$lt_cv_aix_libpath_"; then
10362 lt_cv_aix_libpath_=/usr/lib:/lib
10367 aix_libpath=$lt_cv_aix_libpath_
10370 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10371 # Warning - without using the other run time loading flags,
10372 # -berok will link without error, but may produce a broken library.
10373 no_undefined_flag=' $wl-bernotok'
10374 allow_undefined_flag=' $wl-berok'
10375 if test yes = "$with_gnu_ld"; then
10376 # We only use this code for GNU lds that support --whole-archive.
10377 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10378 else
10379 # Exported symbols can be pulled into shared objects from archives
10380 whole_archive_flag_spec='$convenience'
10382 archive_cmds_need_lc=yes
10383 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10384 # -brtl affects multiple linker settings, -berok does not and is overridden later
10385 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10386 if test svr4 != "$with_aix_soname"; then
10387 # This is similar to how AIX traditionally builds its shared libraries.
10388 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'
10390 if test aix != "$with_aix_soname"; then
10391 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'
10392 else
10393 # used by -dlpreopen to get the symbols
10394 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10396 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10401 amigaos*)
10402 case $host_cpu in
10403 powerpc)
10404 # see comment about AmigaOS4 .so support
10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10406 archive_expsym_cmds=''
10408 m68k)
10409 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)'
10410 hardcode_libdir_flag_spec='-L$libdir'
10411 hardcode_minus_L=yes
10413 esac
10416 bsdi[45]*)
10417 export_dynamic_flag_spec=-rdynamic
10420 cygwin* | mingw* | pw32* | cegcc*)
10421 # When not using gcc, we currently assume that we are using
10422 # Microsoft Visual C++.
10423 # hardcode_libdir_flag_spec is actually meaningless, as there is
10424 # no search path for DLLs.
10425 case $cc_basename in
10426 cl*)
10427 # Native MSVC
10428 hardcode_libdir_flag_spec=' '
10429 allow_undefined_flag=unsupported
10430 always_export_symbols=yes
10431 file_list_spec='@'
10432 # Tell ltmain to make .lib files, not .a files.
10433 libext=lib
10434 # Tell ltmain to make .dll files, not .so files.
10435 shrext_cmds=.dll
10436 # FIXME: Setting linknames here is a bad hack.
10437 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10438 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10439 cp "$export_symbols" "$output_objdir/$soname.def";
10440 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10441 else
10442 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10444 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10445 linknames='
10446 # The linker will not automatically build a static lib if we build a DLL.
10447 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10448 enable_shared_with_static_runtimes=yes
10449 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10451 # Don't use ranlib
10452 old_postinstall_cmds='chmod 644 $oldlib'
10453 postlink_cmds='lt_outputfile="@OUTPUT@"~
10454 lt_tool_outputfile="@TOOL_OUTPUT@"~
10455 case $lt_outputfile in
10456 *.exe|*.EXE) ;;
10458 lt_outputfile=$lt_outputfile.exe
10459 lt_tool_outputfile=$lt_tool_outputfile.exe
10461 esac~
10462 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10463 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10464 $RM "$lt_outputfile.manifest";
10468 # Assume MSVC wrapper
10469 hardcode_libdir_flag_spec=' '
10470 allow_undefined_flag=unsupported
10471 # Tell ltmain to make .lib files, not .a files.
10472 libext=lib
10473 # Tell ltmain to make .dll files, not .so files.
10474 shrext_cmds=.dll
10475 # FIXME: Setting linknames here is a bad hack.
10476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10477 # The linker will automatically build a .lib file if we build a DLL.
10478 old_archive_from_new_cmds='true'
10479 # FIXME: Should let the user specify the lib program.
10480 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10481 enable_shared_with_static_runtimes=yes
10483 esac
10486 darwin* | rhapsody*)
10489 archive_cmds_need_lc=no
10490 hardcode_direct=no
10491 hardcode_automatic=yes
10492 hardcode_shlibpath_var=unsupported
10493 if test yes = "$lt_cv_ld_force_load"; then
10494 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\"`'
10496 else
10497 whole_archive_flag_spec=''
10499 link_all_deplibs=yes
10500 allow_undefined_flag=$_lt_dar_allow_undefined
10501 case $cc_basename in
10502 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10503 *) _lt_dar_can_shared=$GCC ;;
10504 esac
10505 if test yes = "$_lt_dar_can_shared"; then
10506 output_verbose_link_cmd=func_echo_all
10507 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10508 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10509 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"
10510 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"
10512 else
10513 ld_shlibs=no
10518 dgux*)
10519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10520 hardcode_libdir_flag_spec='-L$libdir'
10521 hardcode_shlibpath_var=no
10524 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10525 # support. Future versions do this automatically, but an explicit c++rt0.o
10526 # does not break anything, and helps significantly (at the cost of a little
10527 # extra space).
10528 freebsd2.2*)
10529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10530 hardcode_libdir_flag_spec='-R$libdir'
10531 hardcode_direct=yes
10532 hardcode_shlibpath_var=no
10535 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10536 freebsd2.*)
10537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_direct=yes
10539 hardcode_minus_L=yes
10540 hardcode_shlibpath_var=no
10543 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10544 freebsd* | dragonfly*)
10545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10546 hardcode_libdir_flag_spec='-R$libdir'
10547 hardcode_direct=yes
10548 hardcode_shlibpath_var=no
10551 hpux9*)
10552 if test yes = "$GCC"; then
10553 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'
10554 else
10555 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'
10557 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10558 hardcode_libdir_separator=:
10559 hardcode_direct=yes
10561 # hardcode_minus_L: Not really in the search PATH,
10562 # but as the default location of the library.
10563 hardcode_minus_L=yes
10564 export_dynamic_flag_spec='$wl-E'
10567 hpux10*)
10568 if test yes,no = "$GCC,$with_gnu_ld"; then
10569 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10570 else
10571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10573 if test no = "$with_gnu_ld"; then
10574 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10575 hardcode_libdir_separator=:
10576 hardcode_direct=yes
10577 hardcode_direct_absolute=yes
10578 export_dynamic_flag_spec='$wl-E'
10579 # hardcode_minus_L: Not really in the search PATH,
10580 # but as the default location of the library.
10581 hardcode_minus_L=yes
10585 hpux11*)
10586 if test yes,no = "$GCC,$with_gnu_ld"; then
10587 case $host_cpu in
10588 hppa*64*)
10589 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10591 ia64*)
10592 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10595 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10597 esac
10598 else
10599 case $host_cpu in
10600 hppa*64*)
10601 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 ia64*)
10604 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608 # Older versions of the 11.00 compiler do not understand -b yet
10609 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10611 $as_echo_n "checking if $CC understands -b... " >&6; }
10612 if ${lt_cv_prog_compiler__b+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 lt_cv_prog_compiler__b=no
10616 save_LDFLAGS=$LDFLAGS
10617 LDFLAGS="$LDFLAGS -b"
10618 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10620 # The linker can only warn and ignore the option if not recognized
10621 # So say no if there are warnings
10622 if test -s conftest.err; then
10623 # Append any errors to the config.log.
10624 cat conftest.err 1>&5
10625 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627 if diff conftest.exp conftest.er2 >/dev/null; then
10628 lt_cv_prog_compiler__b=yes
10630 else
10631 lt_cv_prog_compiler__b=yes
10634 $RM -r conftest*
10635 LDFLAGS=$save_LDFLAGS
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10639 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10641 if test yes = "$lt_cv_prog_compiler__b"; then
10642 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643 else
10644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10648 esac
10650 if test no = "$with_gnu_ld"; then
10651 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10652 hardcode_libdir_separator=:
10654 case $host_cpu in
10655 hppa*64*|ia64*)
10656 hardcode_direct=no
10657 hardcode_shlibpath_var=no
10660 hardcode_direct=yes
10661 hardcode_direct_absolute=yes
10662 export_dynamic_flag_spec='$wl-E'
10664 # hardcode_minus_L: Not really in the search PATH,
10665 # but as the default location of the library.
10666 hardcode_minus_L=yes
10668 esac
10672 irix5* | irix6* | nonstopux*)
10673 if test yes = "$GCC"; then
10674 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'
10675 # Try to use the -exported_symbol ld option, if it does not
10676 # work, assume that -exports_file does not work either and
10677 # implicitly export all symbols.
10678 # This should be the same for all languages, so no per-tag cache variable.
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10680 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10681 if ${lt_cv_irix_exported_symbol+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 save_LDFLAGS=$LDFLAGS
10685 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 int foo (void) { return 0; }
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 lt_cv_irix_exported_symbol=yes
10692 else
10693 lt_cv_irix_exported_symbol=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LDFLAGS=$save_LDFLAGS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10700 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10701 if test yes = "$lt_cv_irix_exported_symbol"; then
10702 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'
10704 else
10705 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'
10706 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'
10708 archive_cmds_need_lc='no'
10709 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10710 hardcode_libdir_separator=:
10711 inherit_rpath=yes
10712 link_all_deplibs=yes
10715 linux*)
10716 case $cc_basename in
10717 tcc*)
10718 # Fabrice Bellard et al's Tiny C Compiler
10719 ld_shlibs=yes
10720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10722 esac
10725 netbsd*)
10726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10728 else
10729 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10731 hardcode_libdir_flag_spec='-R$libdir'
10732 hardcode_direct=yes
10733 hardcode_shlibpath_var=no
10736 newsos6)
10737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_direct=yes
10739 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10740 hardcode_libdir_separator=:
10741 hardcode_shlibpath_var=no
10744 *nto* | *qnx*)
10747 openbsd* | bitrig*)
10748 if test -f /usr/libexec/ld.so; then
10749 hardcode_direct=yes
10750 hardcode_shlibpath_var=no
10751 hardcode_direct_absolute=yes
10752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10755 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10756 export_dynamic_flag_spec='$wl-E'
10757 else
10758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10759 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10761 else
10762 ld_shlibs=no
10766 os2*)
10767 hardcode_libdir_flag_spec='-L$libdir'
10768 hardcode_minus_L=yes
10769 allow_undefined_flag=unsupported
10770 shrext_cmds=.dll
10771 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10772 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10773 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10774 $ECHO EXPORTS >> $output_objdir/$libname.def~
10775 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10776 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10777 emximp -o $lib $output_objdir/$libname.def'
10778 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10781 $ECHO EXPORTS >> $output_objdir/$libname.def~
10782 prefix_cmds="$SED"~
10783 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10784 prefix_cmds="$prefix_cmds -e 1d";
10786 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10787 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10788 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10789 emximp -o $lib $output_objdir/$libname.def'
10790 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10791 enable_shared_with_static_runtimes=yes
10794 osf3*)
10795 if test yes = "$GCC"; then
10796 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10797 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'
10798 else
10799 allow_undefined_flag=' -expect_unresolved \*'
10800 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'
10802 archive_cmds_need_lc='no'
10803 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10804 hardcode_libdir_separator=:
10807 osf4* | osf5*) # as osf3* with the addition of -msym flag
10808 if test yes = "$GCC"; then
10809 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10810 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'
10811 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10812 else
10813 allow_undefined_flag=' -expect_unresolved \*'
10814 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'
10815 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~
10816 $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'
10818 # Both c and cxx compiler support -rpath directly
10819 hardcode_libdir_flag_spec='-rpath $libdir'
10821 archive_cmds_need_lc='no'
10822 hardcode_libdir_separator=:
10825 solaris*)
10826 no_undefined_flag=' -z defs'
10827 if test yes = "$GCC"; then
10828 wlarc='$wl'
10829 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831 $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'
10832 else
10833 case `$CC -V 2>&1` in
10834 *"Compilers 5.0"*)
10835 wlarc=''
10836 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10841 wlarc='$wl'
10842 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10844 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10846 esac
10848 hardcode_libdir_flag_spec='-R$libdir'
10849 hardcode_shlibpath_var=no
10850 case $host_os in
10851 solaris2.[0-5] | solaris2.[0-5].*) ;;
10853 # The compiler driver will combine and reorder linker options,
10854 # but understands '-z linker_flag'. GCC discards it without '$wl',
10855 # but is careful enough not to reorder.
10856 # Supported since Solaris 2.6 (maybe 2.5.1?)
10857 if test yes = "$GCC"; then
10858 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10859 else
10860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10863 esac
10864 link_all_deplibs=yes
10867 sunos4*)
10868 if test sequent = "$host_vendor"; then
10869 # Use $CC to link under sequent, because it throws in some extra .o
10870 # files that make .init and .fini sections work.
10871 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10872 else
10873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10875 hardcode_libdir_flag_spec='-L$libdir'
10876 hardcode_direct=yes
10877 hardcode_minus_L=yes
10878 hardcode_shlibpath_var=no
10881 sysv4)
10882 case $host_vendor in
10883 sni)
10884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885 hardcode_direct=yes # is this really true???
10887 siemens)
10888 ## LD is ld it makes a PLAMLIB
10889 ## CC just makes a GrossModule.
10890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10891 reload_cmds='$CC -r -o $output$reload_objs'
10892 hardcode_direct=no
10894 motorola)
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10898 esac
10899 runpath_var='LD_RUN_PATH'
10900 hardcode_shlibpath_var=no
10903 sysv4.3*)
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_shlibpath_var=no
10906 export_dynamic_flag_spec='-Bexport'
10909 sysv4*MP*)
10910 if test -d /usr/nec; then
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_shlibpath_var=no
10913 runpath_var=LD_RUN_PATH
10914 hardcode_runpath_var=yes
10915 ld_shlibs=yes
10919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10920 no_undefined_flag='$wl-z,text'
10921 archive_cmds_need_lc=no
10922 hardcode_shlibpath_var=no
10923 runpath_var='LD_RUN_PATH'
10925 if test yes = "$GCC"; then
10926 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 else
10929 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 sysv5* | sco3.2v5* | sco5v6*)
10935 # Note: We CANNOT use -z defs as we might desire, because we do not
10936 # link with -lc, and that would cause any symbols used from libc to
10937 # always be unresolved, which means just about no library would
10938 # ever link correctly. If we're not using GNU ld we use -z text
10939 # though, which does catch some bad symbols but isn't as heavy-handed
10940 # as -z defs.
10941 no_undefined_flag='$wl-z,text'
10942 allow_undefined_flag='$wl-z,nodefs'
10943 archive_cmds_need_lc=no
10944 hardcode_shlibpath_var=no
10945 hardcode_libdir_flag_spec='$wl-R,$libdir'
10946 hardcode_libdir_separator=':'
10947 link_all_deplibs=yes
10948 export_dynamic_flag_spec='$wl-Bexport'
10949 runpath_var='LD_RUN_PATH'
10951 if test yes = "$GCC"; then
10952 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 else
10955 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 uts4*)
10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10962 hardcode_libdir_flag_spec='-L$libdir'
10963 hardcode_shlibpath_var=no
10967 ld_shlibs=no
10969 esac
10971 if test sni = "$host_vendor"; then
10972 case $host in
10973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10974 export_dynamic_flag_spec='$wl-Blargedynsym'
10976 esac
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10981 $as_echo "$ld_shlibs" >&6; }
10982 test no = "$ld_shlibs" && can_build_shared=no
10984 with_gnu_ld=$with_gnu_ld
11001 # Do we need to explicitly link libc?
11003 case "x$archive_cmds_need_lc" in
11004 x|xyes)
11005 # Assume -lc should be added
11006 archive_cmds_need_lc=yes
11008 if test yes,yes = "$GCC,$enable_shared"; then
11009 case $archive_cmds in
11010 *'~'*)
11011 # FIXME: we may have to deal with multi-command sequences.
11013 '$CC '*)
11014 # Test whether the compiler implicitly links with -lc since on some
11015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11016 # to ld, don't add -lc before -lgcc.
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11019 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 $RM conftest*
11023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11026 (eval $ac_compile) 2>&5
11027 ac_status=$?
11028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029 test $ac_status = 0; } 2>conftest.err; then
11030 soname=conftest
11031 lib=conftest
11032 libobjs=conftest.$ac_objext
11033 deplibs=
11034 wl=$lt_prog_compiler_wl
11035 pic_flag=$lt_prog_compiler_pic
11036 compiler_flags=-v
11037 linker_flags=-v
11038 verstring=
11039 output_objdir=.
11040 libname=conftest
11041 lt_save_allow_undefined_flag=$allow_undefined_flag
11042 allow_undefined_flag=
11043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11044 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11045 ac_status=$?
11046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047 test $ac_status = 0; }
11048 then
11049 lt_cv_archive_cmds_need_lc=no
11050 else
11051 lt_cv_archive_cmds_need_lc=yes
11053 allow_undefined_flag=$lt_save_allow_undefined_flag
11054 else
11055 cat conftest.err 1>&5
11057 $RM conftest*
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11061 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11062 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11064 esac
11067 esac
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11221 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11223 if test yes = "$GCC"; then
11224 case $host_os in
11225 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11226 *) lt_awk_arg='/^libraries:/' ;;
11227 esac
11228 case $host_os in
11229 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11230 *) lt_sed_strip_eq='s|=/|/|g' ;;
11231 esac
11232 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11233 case $lt_search_path_spec in
11234 *\;*)
11235 # if the path contains ";" then we assume it to be the separator
11236 # otherwise default to the standard path separator (i.e. ":") - it is
11237 # assumed that no part of a normal pathname contains ";" but that should
11238 # okay in the real world where ";" in dirpaths is itself problematic.
11239 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11244 esac
11245 # Ok, now we have the path, separated by spaces, we can step through it
11246 # and add multilib dir if necessary...
11247 lt_tmp_lt_search_path_spec=
11248 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11249 # ...but if some path component already ends with the multilib dir we assume
11250 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11251 case "$lt_multi_os_dir; $lt_search_path_spec " in
11252 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11253 lt_multi_os_dir=
11255 esac
11256 for lt_sys_path in $lt_search_path_spec; do
11257 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11259 elif test -n "$lt_multi_os_dir"; then
11260 test -d "$lt_sys_path" && \
11261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263 done
11264 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11265 BEGIN {RS = " "; FS = "/|\n";} {
11266 lt_foo = "";
11267 lt_count = 0;
11268 for (lt_i = NF; lt_i > 0; lt_i--) {
11269 if ($lt_i != "" && $lt_i != ".") {
11270 if ($lt_i == "..") {
11271 lt_count++;
11272 } else {
11273 if (lt_count == 0) {
11274 lt_foo = "/" $lt_i lt_foo;
11275 } else {
11276 lt_count--;
11281 if (lt_foo != "") { lt_freq[lt_foo]++; }
11282 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11284 # AWK program above erroneously prepends '/' to C:/dos/paths
11285 # for these hosts.
11286 case $host_os in
11287 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11288 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11289 esac
11290 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11291 else
11292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11294 library_names_spec=
11295 libname_spec='lib$name'
11296 soname_spec=
11297 shrext_cmds=.so
11298 postinstall_cmds=
11299 postuninstall_cmds=
11300 finish_cmds=
11301 finish_eval=
11302 shlibpath_var=
11303 shlibpath_overrides_runpath=unknown
11304 version_type=none
11305 dynamic_linker="$host_os ld.so"
11306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11307 need_lib_prefix=unknown
11308 hardcode_into_libs=no
11310 # when you set need_version to no, make sure it does not cause -set_version
11311 # flags to be left without arguments
11312 need_version=unknown
11316 case $host_os in
11317 aix3*)
11318 version_type=linux # correct to gnu/linux during the next big refactor
11319 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11320 shlibpath_var=LIBPATH
11322 # AIX 3 has no versioning support, so we append a major version to the name.
11323 soname_spec='$libname$release$shared_ext$major'
11326 aix[4-9]*)
11327 version_type=linux # correct to gnu/linux during the next big refactor
11328 need_lib_prefix=no
11329 need_version=no
11330 hardcode_into_libs=yes
11331 if test ia64 = "$host_cpu"; then
11332 # AIX 5 supports IA64
11333 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 else
11336 # With GCC up to 2.95.x, collect2 would create an import file
11337 # for dependence libraries. The import file would start with
11338 # the line '#! .'. This would cause the generated library to
11339 # depend on '.', always an invalid library. This was fixed in
11340 # development snapshots of GCC prior to 3.0.
11341 case $host_os in
11342 aix4 | aix4.[01] | aix4.[01].*)
11343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11344 echo ' yes '
11345 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11347 else
11348 can_build_shared=no
11351 esac
11352 # Using Import Files as archive members, it is possible to support
11353 # filename-based versioning of shared library archives on AIX. While
11354 # this would work for both with and without runtime linking, it will
11355 # prevent static linking of such archives. So we do filename-based
11356 # shared library versioning with .so extension only, which is used
11357 # when both runtime linking and shared linking is enabled.
11358 # Unfortunately, runtime linking may impact performance, so we do
11359 # not want this to be the default eventually. Also, we use the
11360 # versioned .so libs for executables only if there is the -brtl
11361 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11362 # To allow for filename-based versioning support, we need to create
11363 # libNAME.so.V as an archive file, containing:
11364 # *) an Import File, referring to the versioned filename of the
11365 # archive as well as the shared archive member, telling the
11366 # bitwidth (32 or 64) of that shared object, and providing the
11367 # list of exported symbols of that shared object, eventually
11368 # decorated with the 'weak' keyword
11369 # *) the shared object with the F_LOADONLY flag set, to really avoid
11370 # it being seen by the linker.
11371 # At run time we better use the real file rather than another symlink,
11372 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11374 case $with_aix_soname,$aix_use_runtimelinking in
11375 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11376 # soname into executable. Probably we can add versioning support to
11377 # collect2, so additional links can be useful in future.
11378 aix,yes) # traditional libtool
11379 dynamic_linker='AIX unversionable lib.so'
11380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11381 # instead of lib<name>.a to let people know that these are not
11382 # typical AIX shared libraries.
11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385 aix,no) # traditional AIX only
11386 dynamic_linker='AIX lib.a(lib.so.V)'
11387 # We preserve .a as extension for shared libraries through AIX4.2
11388 # and later when we are not doing run time linking.
11389 library_names_spec='$libname$release.a $libname.a'
11390 soname_spec='$libname$release$shared_ext$major'
11392 svr4,*) # full svr4 only
11393 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11394 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11395 # We do not specify a path in Import Files, so LIBPATH fires.
11396 shlibpath_overrides_runpath=yes
11398 *,yes) # both, prefer svr4
11399 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11400 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11401 # unpreferred sharedlib libNAME.a needs extra handling
11402 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"'
11403 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"'
11404 # We do not specify a path in Import Files, so LIBPATH fires.
11405 shlibpath_overrides_runpath=yes
11407 *,no) # both, prefer aix
11408 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11409 library_names_spec='$libname$release.a $libname.a'
11410 soname_spec='$libname$release$shared_ext$major'
11411 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11412 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)'
11413 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"'
11415 esac
11416 shlibpath_var=LIBPATH
11420 amigaos*)
11421 case $host_cpu in
11422 powerpc)
11423 # Since July 2007 AmigaOS4 officially supports .so libraries.
11424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427 m68k)
11428 library_names_spec='$libname.ixlibrary $libname.a'
11429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430 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'
11432 esac
11435 beos*)
11436 library_names_spec='$libname$shared_ext'
11437 dynamic_linker="$host_os ld.so"
11438 shlibpath_var=LIBRARY_PATH
11441 bsdi[45]*)
11442 version_type=linux # correct to gnu/linux during the next big refactor
11443 need_version=no
11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11445 soname_spec='$libname$release$shared_ext$major'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450 # the default ld.so.conf also contains /usr/contrib/lib and
11451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452 # libtool to hard-code these into programs
11455 cygwin* | mingw* | pw32* | cegcc*)
11456 version_type=windows
11457 shrext_cmds=.dll
11458 need_version=no
11459 need_lib_prefix=no
11461 case $GCC,$cc_basename in
11462 yes,*)
11463 # gcc
11464 library_names_spec='$libname.dll.a'
11465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11466 postinstall_cmds='base_file=`basename \$file`~
11467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11468 dldir=$destdir/`dirname \$dlpath`~
11469 test -d \$dldir || mkdir -p \$dldir~
11470 $install_prog $dir/$dlname \$dldir/$dlname~
11471 chmod a+x \$dldir/$dlname~
11472 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11473 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11476 dlpath=$dir/\$dldll~
11477 $RM \$dlpath'
11478 shlibpath_overrides_runpath=yes
11480 case $host_os in
11481 cygwin*)
11482 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11483 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11485 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11487 mingw* | cegcc*)
11488 # MinGW DLLs use traditional 'lib' prefix
11489 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11491 pw32*)
11492 # pw32 DLLs use 'pw' prefix rather than 'lib'
11493 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11495 esac
11496 dynamic_linker='Win32 ld.exe'
11499 *,cl*)
11500 # Native MSVC
11501 libname_spec='$name'
11502 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11503 library_names_spec='$libname.dll.lib'
11505 case $build_os in
11506 mingw*)
11507 sys_lib_search_path_spec=
11508 lt_save_ifs=$IFS
11509 IFS=';'
11510 for lt_path in $LIB
11512 IFS=$lt_save_ifs
11513 # Let DOS variable expansion print the short 8.3 style file name.
11514 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11515 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11516 done
11517 IFS=$lt_save_ifs
11518 # Convert to MSYS style.
11519 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11521 cygwin*)
11522 # Convert to unix form, then to dos form, then back to unix form
11523 # but this time dos style (no spaces!) so that the unix form looks
11524 # like /cygdrive/c/PROGRA~1:/cygdr...
11525 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11526 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11527 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11530 sys_lib_search_path_spec=$LIB
11531 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11532 # It is most probably a Windows format PATH.
11533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11534 else
11535 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11537 # FIXME: find the short name or the path components, as spaces are
11538 # common. (e.g. "Program Files" -> "PROGRA~1")
11540 esac
11542 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11543 postinstall_cmds='base_file=`basename \$file`~
11544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11545 dldir=$destdir/`dirname \$dlpath`~
11546 test -d \$dldir || mkdir -p \$dldir~
11547 $install_prog $dir/$dlname \$dldir/$dlname'
11548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11549 dlpath=$dir/\$dldll~
11550 $RM \$dlpath'
11551 shlibpath_overrides_runpath=yes
11552 dynamic_linker='Win32 link.exe'
11556 # Assume MSVC wrapper
11557 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11558 dynamic_linker='Win32 ld.exe'
11560 esac
11561 # FIXME: first we should search . and the directory the executable is in
11562 shlibpath_var=PATH
11565 darwin* | rhapsody*)
11566 dynamic_linker="$host_os dyld"
11567 version_type=darwin
11568 need_lib_prefix=no
11569 need_version=no
11570 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11571 soname_spec='$libname$release$major$shared_ext'
11572 shlibpath_overrides_runpath=yes
11573 shlibpath_var=DYLD_LIBRARY_PATH
11574 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11576 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11580 dgux*)
11581 version_type=linux # correct to gnu/linux during the next big refactor
11582 need_lib_prefix=no
11583 need_version=no
11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585 soname_spec='$libname$release$shared_ext$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11589 freebsd* | dragonfly*)
11590 # DragonFly does not have aout. When/if they implement a new
11591 # versioning mechanism, adjust this.
11592 if test -x /usr/bin/objformat; then
11593 objformat=`/usr/bin/objformat`
11594 else
11595 case $host_os in
11596 freebsd[23].*) objformat=aout ;;
11597 *) objformat=elf ;;
11598 esac
11600 version_type=freebsd-$objformat
11601 case $version_type in
11602 freebsd-elf*)
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 need_version=no
11606 need_lib_prefix=no
11608 freebsd-*)
11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11610 need_version=yes
11612 esac
11613 shlibpath_var=LD_LIBRARY_PATH
11614 case $host_os in
11615 freebsd2.*)
11616 shlibpath_overrides_runpath=yes
11618 freebsd3.[01]* | freebsdelf3.[01]*)
11619 shlibpath_overrides_runpath=yes
11620 hardcode_into_libs=yes
11622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11624 shlibpath_overrides_runpath=no
11625 hardcode_into_libs=yes
11627 *) # from 4.6 on, and DragonFly
11628 shlibpath_overrides_runpath=yes
11629 hardcode_into_libs=yes
11631 esac
11634 haiku*)
11635 version_type=linux # correct to gnu/linux during the next big refactor
11636 need_lib_prefix=no
11637 need_version=no
11638 dynamic_linker="$host_os runtime_loader"
11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640 soname_spec='$libname$release$shared_ext$major'
11641 shlibpath_var=LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11644 hardcode_into_libs=yes
11647 hpux9* | hpux10* | hpux11*)
11648 # Give a soname corresponding to the major version so that dld.sl refuses to
11649 # link against other versions.
11650 version_type=sunos
11651 need_lib_prefix=no
11652 need_version=no
11653 case $host_cpu in
11654 ia64*)
11655 shrext_cmds='.so'
11656 hardcode_into_libs=yes
11657 dynamic_linker="$host_os dld.so"
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11661 soname_spec='$libname$release$shared_ext$major'
11662 if test 32 = "$HPUX_IA64_MODE"; then
11663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11664 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11665 else
11666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11667 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11670 hppa*64*)
11671 shrext_cmds='.sl'
11672 hardcode_into_libs=yes
11673 dynamic_linker="$host_os dld.sl"
11674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677 soname_spec='$libname$release$shared_ext$major'
11678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11682 shrext_cmds='.sl'
11683 dynamic_linker="$host_os dld.sl"
11684 shlibpath_var=SHLIB_PATH
11685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 soname_spec='$libname$release$shared_ext$major'
11689 esac
11690 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11691 postinstall_cmds='chmod 555 $lib'
11692 # or fails outright, so override atomically:
11693 install_override_mode=555
11696 interix[3-9]*)
11697 version_type=linux # correct to gnu/linux during the next big refactor
11698 need_lib_prefix=no
11699 need_version=no
11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11701 soname_spec='$libname$release$shared_ext$major'
11702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 hardcode_into_libs=yes
11708 irix5* | irix6* | nonstopux*)
11709 case $host_os in
11710 nonstopux*) version_type=nonstopux ;;
11712 if test yes = "$lt_cv_prog_gnu_ld"; then
11713 version_type=linux # correct to gnu/linux during the next big refactor
11714 else
11715 version_type=irix
11716 fi ;;
11717 esac
11718 need_lib_prefix=no
11719 need_version=no
11720 soname_spec='$libname$release$shared_ext$major'
11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11722 case $host_os in
11723 irix5* | nonstopux*)
11724 libsuff= shlibsuff=
11727 case $LD in # libtool.m4 will add one of these switches to LD
11728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11729 libsuff= shlibsuff= libmagic=32-bit;;
11730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11731 libsuff=32 shlibsuff=N32 libmagic=N32;;
11732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11734 *) libsuff= shlibsuff= libmagic=never-match;;
11735 esac
11737 esac
11738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11739 shlibpath_overrides_runpath=no
11740 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11741 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11742 hardcode_into_libs=yes
11745 # No shared lib support for Linux oldld, aout, or coff.
11746 linux*oldld* | linux*aout* | linux*coff*)
11747 dynamic_linker=no
11750 linux*android*)
11751 version_type=none # Android doesn't support versioned libraries.
11752 need_lib_prefix=no
11753 need_version=no
11754 library_names_spec='$libname$release$shared_ext'
11755 soname_spec='$libname$release$shared_ext'
11756 finish_cmds=
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=yes
11760 # This implies no fast_install, which is unacceptable.
11761 # Some rework will be needed to allow for fast_install
11762 # before this can be enabled.
11763 hardcode_into_libs=yes
11765 dynamic_linker='Android linker'
11766 # Don't embed -rpath directories since the linker doesn't support them.
11767 hardcode_libdir_flag_spec='-L$libdir'
11770 # This must be glibc/ELF.
11771 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11772 version_type=linux # correct to gnu/linux during the next big refactor
11773 need_lib_prefix=no
11774 need_version=no
11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776 soname_spec='$libname$release$shared_ext$major'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=no
11781 # Some binutils ld are patched to set DT_RUNPATH
11782 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 lt_cv_shlibpath_overrides_runpath=no
11786 save_LDFLAGS=$LDFLAGS
11787 save_libdir=$libdir
11788 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11789 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11794 main ()
11798 return 0;
11800 _ACEOF
11801 if ac_fn_c_try_link "$LINENO"; then :
11802 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11803 lt_cv_shlibpath_overrides_runpath=yes
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 LDFLAGS=$save_LDFLAGS
11809 libdir=$save_libdir
11813 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11815 # This implies no fast_install, which is unacceptable.
11816 # Some rework will be needed to allow for fast_install
11817 # before this can be enabled.
11818 hardcode_into_libs=yes
11820 # Ideally, we could use ldconfig to report *all* directores which are
11821 # searched for libraries, however this is still not possible. Aside from not
11822 # being certain /sbin/ldconfig is available, command
11823 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11824 # even though it is searched at run-time. Try to do the best guess by
11825 # appending ld.so.conf contents (and includes) to the search path.
11826 if test -f /etc/ld.so.conf; then
11827 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' ' '`
11828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11831 # We used to test for /lib/ld.so.1 and disable shared libraries on
11832 # powerpc, because MkLinux only supported shared libraries with the
11833 # GNU dynamic linker. Since this was broken with cross compilers,
11834 # most powerpc-linux boxes support dynamic linking these days and
11835 # people can always --disable-shared, the test was removed, and we
11836 # assume the GNU/Linux dynamic linker is in use.
11837 dynamic_linker='GNU/Linux ld.so'
11840 netbsd*)
11841 version_type=sunos
11842 need_lib_prefix=no
11843 need_version=no
11844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11847 dynamic_linker='NetBSD (a.out) ld.so'
11848 else
11849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11850 soname_spec='$libname$release$shared_ext$major'
11851 dynamic_linker='NetBSD ld.elf_so'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=yes
11855 hardcode_into_libs=yes
11858 newsos6)
11859 version_type=linux # correct to gnu/linux during the next big refactor
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11865 *nto* | *qnx*)
11866 version_type=qnx
11867 need_lib_prefix=no
11868 need_version=no
11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11870 soname_spec='$libname$release$shared_ext$major'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath=no
11873 hardcode_into_libs=yes
11874 dynamic_linker='ldqnx.so'
11877 openbsd* | bitrig*)
11878 version_type=sunos
11879 sys_lib_dlsearch_path_spec=/usr/lib
11880 need_lib_prefix=no
11881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11882 need_version=no
11883 else
11884 need_version=yes
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=yes
11892 os2*)
11893 libname_spec='$name'
11894 version_type=windows
11895 shrext_cmds=.dll
11896 need_version=no
11897 need_lib_prefix=no
11898 # OS/2 can only load a DLL with a base name of 8 characters or less.
11899 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11900 v=$($ECHO $release$versuffix | tr -d .-);
11901 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11902 $ECHO $n$v`$shared_ext'
11903 library_names_spec='${libname}_dll.$libext'
11904 dynamic_linker='OS/2 ld.exe'
11905 shlibpath_var=BEGINLIBPATH
11906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11908 postinstall_cmds='base_file=`basename \$file`~
11909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11910 dldir=$destdir/`dirname \$dlpath`~
11911 test -d \$dldir || mkdir -p \$dldir~
11912 $install_prog $dir/$dlname \$dldir/$dlname~
11913 chmod a+x \$dldir/$dlname~
11914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11918 dlpath=$dir/\$dldll~
11919 $RM \$dlpath'
11922 osf3* | osf4* | osf5*)
11923 version_type=osf
11924 need_lib_prefix=no
11925 need_version=no
11926 soname_spec='$libname$release$shared_ext$major'
11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11933 rdos*)
11934 dynamic_linker=no
11937 solaris*)
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 need_lib_prefix=no
11940 need_version=no
11941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11942 soname_spec='$libname$release$shared_ext$major'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=yes
11945 hardcode_into_libs=yes
11946 # ldd complains unless libraries are executable
11947 postinstall_cmds='chmod +x $lib'
11950 sunos4*)
11951 version_type=sunos
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11956 if test yes = "$with_gnu_ld"; then
11957 need_lib_prefix=no
11959 need_version=yes
11962 sysv4 | sysv4.3*)
11963 version_type=linux # correct to gnu/linux during the next big refactor
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 soname_spec='$libname$release$shared_ext$major'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 case $host_vendor in
11968 sni)
11969 shlibpath_overrides_runpath=no
11970 need_lib_prefix=no
11971 runpath_var=LD_RUN_PATH
11973 siemens)
11974 need_lib_prefix=no
11976 motorola)
11977 need_lib_prefix=no
11978 need_version=no
11979 shlibpath_overrides_runpath=no
11980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11982 esac
11985 sysv4*MP*)
11986 if test -d /usr/nec; then
11987 version_type=linux # correct to gnu/linux during the next big refactor
11988 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11989 soname_spec='$libname$shared_ext.$major'
11990 shlibpath_var=LD_LIBRARY_PATH
11994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11995 version_type=sco
11996 need_lib_prefix=no
11997 need_version=no
11998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11999 soname_spec='$libname$release$shared_ext$major'
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=yes
12002 hardcode_into_libs=yes
12003 if test yes = "$with_gnu_ld"; then
12004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12005 else
12006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12007 case $host_os in
12008 sco3.2v5*)
12009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12011 esac
12013 sys_lib_dlsearch_path_spec='/usr/lib'
12016 tpf*)
12017 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12018 version_type=linux # correct to gnu/linux during the next big refactor
12019 need_lib_prefix=no
12020 need_version=no
12021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=no
12024 hardcode_into_libs=yes
12027 uts4*)
12028 version_type=linux # correct to gnu/linux during the next big refactor
12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030 soname_spec='$libname$release$shared_ext$major'
12031 shlibpath_var=LD_LIBRARY_PATH
12035 dynamic_linker=no
12037 esac
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12039 $as_echo "$dynamic_linker" >&6; }
12040 test no = "$dynamic_linker" && can_build_shared=no
12042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12043 if test yes = "$GCC"; then
12044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12047 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12048 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12051 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12052 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12055 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12056 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12058 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12059 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12061 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12062 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12161 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12162 hardcode_action=
12163 if test -n "$hardcode_libdir_flag_spec" ||
12164 test -n "$runpath_var" ||
12165 test yes = "$hardcode_automatic"; then
12167 # We can hardcode non-existent directories.
12168 if test no != "$hardcode_direct" &&
12169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12170 # have to relink, otherwise we might link with an installed library
12171 # when we should be linking with a yet-to-be-installed one
12172 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12173 test no != "$hardcode_minus_L"; then
12174 # Linking always hardcodes the temporary library directory.
12175 hardcode_action=relink
12176 else
12177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12178 hardcode_action=immediate
12180 else
12181 # We cannot hardcode anything, or else we can only hardcode existing
12182 # directories.
12183 hardcode_action=unsupported
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12186 $as_echo "$hardcode_action" >&6; }
12188 if test relink = "$hardcode_action" ||
12189 test yes = "$inherit_rpath"; then
12190 # Fast installation is not supported
12191 enable_fast_install=no
12192 elif test yes = "$shlibpath_overrides_runpath" ||
12193 test no = "$enable_shared"; then
12194 # Fast installation is not necessary
12195 enable_fast_install=needless
12203 if test yes != "$enable_dlopen"; then
12204 enable_dlopen=unknown
12205 enable_dlopen_self=unknown
12206 enable_dlopen_self_static=unknown
12207 else
12208 lt_cv_dlopen=no
12209 lt_cv_dlopen_libs=
12211 case $host_os in
12212 beos*)
12213 lt_cv_dlopen=load_add_on
12214 lt_cv_dlopen_libs=
12215 lt_cv_dlopen_self=yes
12218 mingw* | pw32* | cegcc*)
12219 lt_cv_dlopen=LoadLibrary
12220 lt_cv_dlopen_libs=
12223 cygwin*)
12224 lt_cv_dlopen=dlopen
12225 lt_cv_dlopen_libs=
12228 darwin*)
12229 # if libdl is installed we need to link against it
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12232 if ${ac_cv_lib_dl_dlopen+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-ldl $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char dlopen ();
12248 main ()
12250 return dlopen ();
12252 return 0;
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_dl_dlopen=yes
12257 else
12258 ac_cv_lib_dl_dlopen=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12267 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12268 else
12270 lt_cv_dlopen=dyld
12271 lt_cv_dlopen_libs=
12272 lt_cv_dlopen_self=yes
12278 tpf*)
12279 # Don't try to run any link tests for TPF. We know it's impossible
12280 # because TPF is a cross-compiler, and we know how we open DSOs.
12281 lt_cv_dlopen=dlopen
12282 lt_cv_dlopen_libs=
12283 lt_cv_dlopen_self=no
12287 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12288 if test "x$ac_cv_func_shl_load" = xyes; then :
12289 lt_cv_dlopen=shl_load
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12293 if ${ac_cv_lib_dld_shl_load+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-ldld $LIBS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char shl_load ();
12309 main ()
12311 return shl_load ();
12313 return 0;
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"; then :
12317 ac_cv_lib_dld_shl_load=yes
12318 else
12319 ac_cv_lib_dld_shl_load=no
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 LIBS=$ac_check_lib_save_LIBS
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12327 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12328 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12329 else
12330 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12331 if test "x$ac_cv_func_dlopen" = xyes; then :
12332 lt_cv_dlopen=dlopen
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12336 if ${ac_cv_lib_dl_dlopen+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-ldl $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char dlopen ();
12352 main ()
12354 return dlopen ();
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_dl_dlopen=yes
12361 else
12362 ac_cv_lib_dl_dlopen=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12375 if ${ac_cv_lib_svld_dlopen+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lsvld $LIBS"
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char dlopen ();
12391 main ()
12393 return dlopen ();
12395 return 0;
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 ac_cv_lib_svld_dlopen=yes
12400 else
12401 ac_cv_lib_svld_dlopen=no
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 LIBS=$ac_check_lib_save_LIBS
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12408 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12409 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12410 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12413 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12414 if ${ac_cv_lib_dld_dld_link+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-ldld $LIBS"
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12422 /* Override any GCC internal prototype to avoid an error.
12423 Use char because int might match the return type of a GCC
12424 builtin and then its argument prototype would still apply. */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 char dld_link ();
12430 main ()
12432 return dld_link ();
12434 return 0;
12436 _ACEOF
12437 if ac_fn_c_try_link "$LINENO"; then :
12438 ac_cv_lib_dld_dld_link=yes
12439 else
12440 ac_cv_lib_dld_dld_link=no
12442 rm -f core conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12444 LIBS=$ac_check_lib_save_LIBS
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12447 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12448 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12449 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12468 esac
12470 if test no = "$lt_cv_dlopen"; then
12471 enable_dlopen=no
12472 else
12473 enable_dlopen=yes
12476 case $lt_cv_dlopen in
12477 dlopen)
12478 save_CPPFLAGS=$CPPFLAGS
12479 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12481 save_LDFLAGS=$LDFLAGS
12482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12484 save_LIBS=$LIBS
12485 LIBS="$lt_cv_dlopen_libs $LIBS"
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12488 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12489 if ${lt_cv_dlopen_self+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test yes = "$cross_compiling"; then :
12493 lt_cv_dlopen_self=cross
12494 else
12495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12496 lt_status=$lt_dlunknown
12497 cat > conftest.$ac_ext <<_LT_EOF
12498 #line $LINENO "configure"
12499 #include "confdefs.h"
12501 #if HAVE_DLFCN_H
12502 #include <dlfcn.h>
12503 #endif
12505 #include <stdio.h>
12507 #ifdef RTLD_GLOBAL
12508 # define LT_DLGLOBAL RTLD_GLOBAL
12509 #else
12510 # ifdef DL_GLOBAL
12511 # define LT_DLGLOBAL DL_GLOBAL
12512 # else
12513 # define LT_DLGLOBAL 0
12514 # endif
12515 #endif
12517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12518 find out it does not work in some platform. */
12519 #ifndef LT_DLLAZY_OR_NOW
12520 # ifdef RTLD_LAZY
12521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12522 # else
12523 # ifdef DL_LAZY
12524 # define LT_DLLAZY_OR_NOW DL_LAZY
12525 # else
12526 # ifdef RTLD_NOW
12527 # define LT_DLLAZY_OR_NOW RTLD_NOW
12528 # else
12529 # ifdef DL_NOW
12530 # define LT_DLLAZY_OR_NOW DL_NOW
12531 # else
12532 # define LT_DLLAZY_OR_NOW 0
12533 # endif
12534 # endif
12535 # endif
12536 # endif
12537 #endif
12539 /* When -fvisibility=hidden is used, assume the code has been annotated
12540 correspondingly for the symbols needed. */
12541 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12542 int fnord () __attribute__((visibility("default")));
12543 #endif
12545 int fnord () { return 42; }
12546 int main ()
12548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12549 int status = $lt_dlunknown;
12551 if (self)
12553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12554 else
12556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12557 else puts (dlerror ());
12559 /* dlclose (self); */
12561 else
12562 puts (dlerror ());
12564 return status;
12566 _LT_EOF
12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12568 (eval $ac_link) 2>&5
12569 ac_status=$?
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12572 (./conftest; exit; ) >&5 2>/dev/null
12573 lt_status=$?
12574 case x$lt_status in
12575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12578 esac
12579 else :
12580 # compilation failed
12581 lt_cv_dlopen_self=no
12584 rm -fr conftest*
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12589 $as_echo "$lt_cv_dlopen_self" >&6; }
12591 if test yes = "$lt_cv_dlopen_self"; then
12592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12595 if ${lt_cv_dlopen_self_static+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 if test yes = "$cross_compiling"; then :
12599 lt_cv_dlopen_self_static=cross
12600 else
12601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12602 lt_status=$lt_dlunknown
12603 cat > conftest.$ac_ext <<_LT_EOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12607 #if HAVE_DLFCN_H
12608 #include <dlfcn.h>
12609 #endif
12611 #include <stdio.h>
12613 #ifdef RTLD_GLOBAL
12614 # define LT_DLGLOBAL RTLD_GLOBAL
12615 #else
12616 # ifdef DL_GLOBAL
12617 # define LT_DLGLOBAL DL_GLOBAL
12618 # else
12619 # define LT_DLGLOBAL 0
12620 # endif
12621 #endif
12623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12624 find out it does not work in some platform. */
12625 #ifndef LT_DLLAZY_OR_NOW
12626 # ifdef RTLD_LAZY
12627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12628 # else
12629 # ifdef DL_LAZY
12630 # define LT_DLLAZY_OR_NOW DL_LAZY
12631 # else
12632 # ifdef RTLD_NOW
12633 # define LT_DLLAZY_OR_NOW RTLD_NOW
12634 # else
12635 # ifdef DL_NOW
12636 # define LT_DLLAZY_OR_NOW DL_NOW
12637 # else
12638 # define LT_DLLAZY_OR_NOW 0
12639 # endif
12640 # endif
12641 # endif
12642 # endif
12643 #endif
12645 /* When -fvisibility=hidden is used, assume the code has been annotated
12646 correspondingly for the symbols needed. */
12647 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12648 int fnord () __attribute__((visibility("default")));
12649 #endif
12651 int fnord () { return 42; }
12652 int main ()
12654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12655 int status = $lt_dlunknown;
12657 if (self)
12659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12660 else
12662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12663 else puts (dlerror ());
12665 /* dlclose (self); */
12667 else
12668 puts (dlerror ());
12670 return status;
12672 _LT_EOF
12673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12674 (eval $ac_link) 2>&5
12675 ac_status=$?
12676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12677 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12678 (./conftest; exit; ) >&5 2>/dev/null
12679 lt_status=$?
12680 case x$lt_status in
12681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12684 esac
12685 else :
12686 # compilation failed
12687 lt_cv_dlopen_self_static=no
12690 rm -fr conftest*
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12695 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12698 CPPFLAGS=$save_CPPFLAGS
12699 LDFLAGS=$save_LDFLAGS
12700 LIBS=$save_LIBS
12702 esac
12704 case $lt_cv_dlopen_self in
12705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12706 *) enable_dlopen_self=unknown ;;
12707 esac
12709 case $lt_cv_dlopen_self_static in
12710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12711 *) enable_dlopen_self_static=unknown ;;
12712 esac
12731 striplib=
12732 old_striplib=
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12734 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12735 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12736 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12737 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739 $as_echo "yes" >&6; }
12740 else
12741 # FIXME - insert some real tests, host_os isn't really good enough
12742 case $host_os in
12743 darwin*)
12744 if test -n "$STRIP"; then
12745 striplib="$STRIP -x"
12746 old_striplib="$STRIP -S"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12748 $as_echo "yes" >&6; }
12749 else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12758 esac
12772 # Report what library types will actually be built
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12774 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12776 $as_echo "$can_build_shared" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12779 $as_echo_n "checking whether to build shared libraries... " >&6; }
12780 test no = "$can_build_shared" && enable_shared=no
12782 # On AIX, shared libraries and static libraries use the same namespace, and
12783 # are all built from PIC.
12784 case $host_os in
12785 aix3*)
12786 test yes = "$enable_shared" && enable_static=no
12787 if test -n "$RANLIB"; then
12788 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12789 postinstall_cmds='$RANLIB $lib'
12793 aix[4-9]*)
12794 if test ia64 != "$host_cpu"; then
12795 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12796 yes,aix,yes) ;; # shared object as lib.so file only
12797 yes,svr4,*) ;; # shared object as lib.so archive member only
12798 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12799 esac
12802 esac
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12804 $as_echo "$enable_shared" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12807 $as_echo_n "checking whether to build static libraries... " >&6; }
12808 # Make sure either enable_shared or enable_static is yes.
12809 test yes = "$enable_shared" || enable_static=yes
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12811 $as_echo "$enable_static" >&6; }
12817 ac_ext=c
12818 ac_cpp='$CPP $CPPFLAGS'
12819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12823 CC=$lt_save_CC
12839 ac_config_commands="$ac_config_commands libtool"
12844 # Only expand once:
12847 # Check whether --enable-largefile was given.
12848 if test "${enable_largefile+set}" = set; then :
12849 enableval=$enable_largefile;
12852 if test "$enable_largefile" != no; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12855 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12856 if ${ac_cv_sys_largefile_CC+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 ac_cv_sys_largefile_CC=no
12860 if test "$GCC" != yes; then
12861 ac_save_CC=$CC
12862 while :; do
12863 # IRIX 6.2 and later do not support large files by default,
12864 # so use the C compiler's -n32 option if that helps.
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #include <sys/types.h>
12868 /* Check that off_t can represent 2**63 - 1 correctly.
12869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12870 since some C++ compilers masquerading as C compilers
12871 incorrectly reject 9223372036854775807. */
12872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12874 && LARGE_OFF_T % 2147483647 == 1)
12875 ? 1 : -1];
12877 main ()
12881 return 0;
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 break
12887 rm -f core conftest.err conftest.$ac_objext
12888 CC="$CC -n32"
12889 if ac_fn_c_try_compile "$LINENO"; then :
12890 ac_cv_sys_largefile_CC=' -n32'; break
12892 rm -f core conftest.err conftest.$ac_objext
12893 break
12894 done
12895 CC=$ac_save_CC
12896 rm -f conftest.$ac_ext
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12900 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12901 if test "$ac_cv_sys_largefile_CC" != no; then
12902 CC=$CC$ac_cv_sys_largefile_CC
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12906 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12907 if ${ac_cv_sys_file_offset_bits+:} false; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 while :; do
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include <sys/types.h>
12914 /* Check that off_t can represent 2**63 - 1 correctly.
12915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12916 since some C++ compilers masquerading as C compilers
12917 incorrectly reject 9223372036854775807. */
12918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12920 && LARGE_OFF_T % 2147483647 == 1)
12921 ? 1 : -1];
12923 main ()
12927 return 0;
12929 _ACEOF
12930 if ac_fn_c_try_compile "$LINENO"; then :
12931 ac_cv_sys_file_offset_bits=no; break
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 #define _FILE_OFFSET_BITS 64
12937 #include <sys/types.h>
12938 /* Check that off_t can represent 2**63 - 1 correctly.
12939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12940 since some C++ compilers masquerading as C compilers
12941 incorrectly reject 9223372036854775807. */
12942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12944 && LARGE_OFF_T % 2147483647 == 1)
12945 ? 1 : -1];
12947 main ()
12951 return 0;
12953 _ACEOF
12954 if ac_fn_c_try_compile "$LINENO"; then :
12955 ac_cv_sys_file_offset_bits=64; break
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958 ac_cv_sys_file_offset_bits=unknown
12959 break
12960 done
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12963 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12964 case $ac_cv_sys_file_offset_bits in #(
12965 no | unknown) ;;
12967 cat >>confdefs.h <<_ACEOF
12968 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12969 _ACEOF
12971 esac
12972 rm -rf conftest*
12973 if test $ac_cv_sys_file_offset_bits = unknown; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12975 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12976 if ${ac_cv_sys_large_files+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 while :; do
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 #include <sys/types.h>
12983 /* Check that off_t can represent 2**63 - 1 correctly.
12984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12985 since some C++ compilers masquerading as C compilers
12986 incorrectly reject 9223372036854775807. */
12987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12989 && LARGE_OFF_T % 2147483647 == 1)
12990 ? 1 : -1];
12992 main ()
12996 return 0;
12998 _ACEOF
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000 ac_cv_sys_large_files=no; break
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 #define _LARGE_FILES 1
13006 #include <sys/types.h>
13007 /* Check that off_t can represent 2**63 - 1 correctly.
13008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13009 since some C++ compilers masquerading as C compilers
13010 incorrectly reject 9223372036854775807. */
13011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13013 && LARGE_OFF_T % 2147483647 == 1)
13014 ? 1 : -1];
13016 main ()
13020 return 0;
13022 _ACEOF
13023 if ac_fn_c_try_compile "$LINENO"; then :
13024 ac_cv_sys_large_files=1; break
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 ac_cv_sys_large_files=unknown
13028 break
13029 done
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13032 $as_echo "$ac_cv_sys_large_files" >&6; }
13033 case $ac_cv_sys_large_files in #(
13034 no | unknown) ;;
13036 cat >>confdefs.h <<_ACEOF
13037 #define _LARGE_FILES $ac_cv_sys_large_files
13038 _ACEOF
13040 esac
13041 rm -rf conftest*
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13048 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13049 if ${ac_cv_sys_largefile_source+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 while :; do
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13055 #include <sys/types.h> /* for off_t */
13056 #include <stdio.h>
13058 main ()
13060 int (*fp) (FILE *, off_t, int) = fseeko;
13061 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13063 return 0;
13065 _ACEOF
13066 if ac_fn_c_try_link "$LINENO"; then :
13067 ac_cv_sys_largefile_source=no; break
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #define _LARGEFILE_SOURCE 1
13074 #include <sys/types.h> /* for off_t */
13075 #include <stdio.h>
13077 main ()
13079 int (*fp) (FILE *, off_t, int) = fseeko;
13080 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13082 return 0;
13084 _ACEOF
13085 if ac_fn_c_try_link "$LINENO"; then :
13086 ac_cv_sys_largefile_source=1; break
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 ac_cv_sys_largefile_source=unknown
13091 break
13092 done
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13095 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13096 case $ac_cv_sys_largefile_source in #(
13097 no | unknown) ;;
13099 cat >>confdefs.h <<_ACEOF
13100 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13101 _ACEOF
13103 esac
13104 rm -rf conftest*
13106 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13107 # in glibc 2.1.3, but that breaks too many other things.
13108 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13109 if test $ac_cv_sys_largefile_source != unknown; then
13111 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13115 ac_header_dirent=no
13116 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13117 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13119 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13120 if eval \${$as_ac_Header+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125 #include <sys/types.h>
13126 #include <$ac_hdr>
13129 main ()
13131 if ((DIR *) 0)
13132 return 0;
13134 return 0;
13136 _ACEOF
13137 if ac_fn_c_try_compile "$LINENO"; then :
13138 eval "$as_ac_Header=yes"
13139 else
13140 eval "$as_ac_Header=no"
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 eval ac_res=\$$as_ac_Header
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13146 $as_echo "$ac_res" >&6; }
13147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13148 cat >>confdefs.h <<_ACEOF
13149 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13150 _ACEOF
13152 ac_header_dirent=$ac_hdr; break
13155 done
13156 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13157 if test $ac_header_dirent = dirent.h; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13159 $as_echo_n "checking for library containing opendir... " >&6; }
13160 if ${ac_cv_search_opendir+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 ac_func_search_save_LIBS=$LIBS
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13167 /* Override any GCC internal prototype to avoid an error.
13168 Use char because int might match the return type of a GCC
13169 builtin and then its argument prototype would still apply. */
13170 #ifdef __cplusplus
13171 extern "C"
13172 #endif
13173 char opendir ();
13175 main ()
13177 return opendir ();
13179 return 0;
13181 _ACEOF
13182 for ac_lib in '' dir; do
13183 if test -z "$ac_lib"; then
13184 ac_res="none required"
13185 else
13186 ac_res=-l$ac_lib
13187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13189 if ac_fn_c_try_link "$LINENO"; then :
13190 ac_cv_search_opendir=$ac_res
13192 rm -f core conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext
13194 if ${ac_cv_search_opendir+:} false; then :
13195 break
13197 done
13198 if ${ac_cv_search_opendir+:} false; then :
13200 else
13201 ac_cv_search_opendir=no
13203 rm conftest.$ac_ext
13204 LIBS=$ac_func_search_save_LIBS
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13207 $as_echo "$ac_cv_search_opendir" >&6; }
13208 ac_res=$ac_cv_search_opendir
13209 if test "$ac_res" != no; then :
13210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13216 $as_echo_n "checking for library containing opendir... " >&6; }
13217 if ${ac_cv_search_opendir+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 ac_func_search_save_LIBS=$LIBS
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13227 #ifdef __cplusplus
13228 extern "C"
13229 #endif
13230 char opendir ();
13232 main ()
13234 return opendir ();
13236 return 0;
13238 _ACEOF
13239 for ac_lib in '' x; do
13240 if test -z "$ac_lib"; then
13241 ac_res="none required"
13242 else
13243 ac_res=-l$ac_lib
13244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 ac_cv_search_opendir=$ac_res
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext
13251 if ${ac_cv_search_opendir+:} false; then :
13252 break
13254 done
13255 if ${ac_cv_search_opendir+:} false; then :
13257 else
13258 ac_cv_search_opendir=no
13260 rm conftest.$ac_ext
13261 LIBS=$ac_func_search_save_LIBS
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13264 $as_echo "$ac_cv_search_opendir" >&6; }
13265 ac_res=$ac_cv_search_opendir
13266 if test "$ac_res" != no; then :
13267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13274 $as_echo_n "checking for ANSI C header files... " >&6; }
13275 if ${ac_cv_header_stdc+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #include <stdlib.h>
13281 #include <stdarg.h>
13282 #include <string.h>
13283 #include <float.h>
13286 main ()
13290 return 0;
13292 _ACEOF
13293 if ac_fn_c_try_compile "$LINENO"; then :
13294 ac_cv_header_stdc=yes
13295 else
13296 ac_cv_header_stdc=no
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 if test $ac_cv_header_stdc = yes; then
13301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #include <string.h>
13306 _ACEOF
13307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13308 $EGREP "memchr" >/dev/null 2>&1; then :
13310 else
13311 ac_cv_header_stdc=no
13313 rm -f conftest*
13317 if test $ac_cv_header_stdc = yes; then
13318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #include <stdlib.h>
13323 _ACEOF
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325 $EGREP "free" >/dev/null 2>&1; then :
13327 else
13328 ac_cv_header_stdc=no
13330 rm -f conftest*
13334 if test $ac_cv_header_stdc = yes; then
13335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336 if test "$cross_compiling" = yes; then :
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 #include <ctype.h>
13342 #include <stdlib.h>
13343 #if ((' ' & 0x0FF) == 0x020)
13344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13346 #else
13347 # define ISLOWER(c) \
13348 (('a' <= (c) && (c) <= 'i') \
13349 || ('j' <= (c) && (c) <= 'r') \
13350 || ('s' <= (c) && (c) <= 'z'))
13351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13352 #endif
13354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13356 main ()
13358 int i;
13359 for (i = 0; i < 256; i++)
13360 if (XOR (islower (i), ISLOWER (i))
13361 || toupper (i) != TOUPPER (i))
13362 return 2;
13363 return 0;
13365 _ACEOF
13366 if ac_fn_c_try_run "$LINENO"; then :
13368 else
13369 ac_cv_header_stdc=no
13371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13372 conftest.$ac_objext conftest.beam conftest.$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13378 $as_echo "$ac_cv_header_stdc" >&6; }
13379 if test $ac_cv_header_stdc = yes; then
13381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13386 $as_echo_n "checking whether closedir returns void... " >&6; }
13387 if ${ac_cv_func_closedir_void+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test "$cross_compiling" = yes; then :
13391 ac_cv_func_closedir_void=yes
13392 else
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 $ac_includes_default
13396 #include <$ac_header_dirent>
13397 #ifndef __cplusplus
13398 int closedir ();
13399 #endif
13402 main ()
13404 return closedir (opendir (".")) != 0;
13406 return 0;
13408 _ACEOF
13409 if ac_fn_c_try_run "$LINENO"; then :
13410 ac_cv_func_closedir_void=no
13411 else
13412 ac_cv_func_closedir_void=yes
13414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13415 conftest.$ac_objext conftest.beam conftest.$ac_ext
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13420 $as_echo "$ac_cv_func_closedir_void" >&6; }
13421 if test $ac_cv_func_closedir_void = yes; then
13423 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
13427 for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
13428 do :
13429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13430 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13434 _ACEOF
13438 done
13440 for ac_func in putenv
13441 do :
13442 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
13443 if test "x$ac_cv_func_putenv" = xyes; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_PUTENV 1
13446 _ACEOF
13449 done
13451 for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
13452 do :
13453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13456 cat >>confdefs.h <<_ACEOF
13457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13458 _ACEOF
13461 done
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13464 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13465 if ${ac_cv_c_const+:} false; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13472 main ()
13475 #ifndef __cplusplus
13476 /* Ultrix mips cc rejects this sort of thing. */
13477 typedef int charset[2];
13478 const charset cs = { 0, 0 };
13479 /* SunOS 4.1.1 cc rejects this. */
13480 char const *const *pcpcc;
13481 char **ppc;
13482 /* NEC SVR4.0.2 mips cc rejects this. */
13483 struct point {int x, y;};
13484 static struct point const zero = {0,0};
13485 /* AIX XL C 1.02.0.0 rejects this.
13486 It does not let you subtract one const X* pointer from another in
13487 an arm of an if-expression whose if-part is not a constant
13488 expression */
13489 const char *g = "string";
13490 pcpcc = &g + (g ? g-g : 0);
13491 /* HPUX 7.0 cc rejects these. */
13492 ++pcpcc;
13493 ppc = (char**) pcpcc;
13494 pcpcc = (char const *const *) ppc;
13495 { /* SCO 3.2v4 cc rejects this sort of thing. */
13496 char tx;
13497 char *t = &tx;
13498 char const *s = 0 ? (char *) 0 : (char const *) 0;
13500 *t++ = 0;
13501 if (s) return 0;
13503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13504 int x[] = {25, 17};
13505 const int *foo = &x[0];
13506 ++foo;
13508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13509 typedef const int *iptr;
13510 iptr p = 0;
13511 ++p;
13513 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13515 struct s { int j; const int *ap[3]; } bx;
13516 struct s *b = &bx; b->j = 5;
13518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13519 const int foo = 10;
13520 if (!foo) return 0;
13522 return !cs[0] && !zero.x;
13523 #endif
13526 return 0;
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530 ac_cv_c_const=yes
13531 else
13532 ac_cv_c_const=no
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13537 $as_echo "$ac_cv_c_const" >&6; }
13538 if test $ac_cv_c_const = no; then
13540 $as_echo "#define const /**/" >>confdefs.h
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13545 $as_echo_n "checking for inline... " >&6; }
13546 if ${ac_cv_c_inline+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 ac_cv_c_inline=no
13550 for ac_kw in inline __inline__ __inline; do
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #ifndef __cplusplus
13554 typedef int foo_t;
13555 static $ac_kw foo_t static_foo () {return 0; }
13556 $ac_kw foo_t foo () {return 0; }
13557 #endif
13559 _ACEOF
13560 if ac_fn_c_try_compile "$LINENO"; then :
13561 ac_cv_c_inline=$ac_kw
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564 test "$ac_cv_c_inline" != no && break
13565 done
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13569 $as_echo "$ac_cv_c_inline" >&6; }
13571 case $ac_cv_c_inline in
13572 inline | yes) ;;
13574 case $ac_cv_c_inline in
13575 no) ac_val=;;
13576 *) ac_val=$ac_cv_c_inline;;
13577 esac
13578 cat >>confdefs.h <<_ACEOF
13579 #ifndef __cplusplus
13580 #define inline $ac_val
13581 #endif
13582 _ACEOF
13584 esac
13586 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13587 if test "x$ac_cv_type_size_t" = xyes; then :
13589 else
13591 cat >>confdefs.h <<_ACEOF
13592 #define size_t unsigned int
13593 _ACEOF
13597 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13598 case $ac_cv_c_int64_t in #(
13599 no|yes) ;; #(
13602 cat >>confdefs.h <<_ACEOF
13603 #define int64_t $ac_cv_c_int64_t
13604 _ACEOF
13606 esac
13608 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13609 case $ac_cv_c_uint64_t in #(
13610 no|yes) ;; #(
13613 $as_echo "#define _UINT64_T 1" >>confdefs.h
13616 cat >>confdefs.h <<_ACEOF
13617 #define uint64_t $ac_cv_c_uint64_t
13618 _ACEOF
13620 esac
13622 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
13623 *':no:'*) :
13624 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
13625 *) :
13627 esac
13628 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13629 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_STAT_ST_MTIM 1
13633 _ACEOF
13640 for ac_prog in 'bison -y' byacc
13642 # Extract the first word of "$ac_prog", so it can be a program name with args.
13643 set dummy $ac_prog; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if ${ac_cv_prog_YACC+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$YACC"; then
13650 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_prog_YACC="$ac_prog"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13663 done
13664 done
13665 IFS=$as_save_IFS
13669 YACC=$ac_cv_prog_YACC
13670 if test -n "$YACC"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13672 $as_echo "$YACC" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13679 test -n "$YACC" && break
13680 done
13681 test -n "$YACC" || YACC="yacc"
13683 for ac_prog in flex lex
13685 # Extract the first word of "$ac_prog", so it can be a program name with args.
13686 set dummy $ac_prog; ac_word=$2
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688 $as_echo_n "checking for $ac_word... " >&6; }
13689 if ${ac_cv_prog_LEX+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 if test -n "$LEX"; then
13693 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13694 else
13695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696 for as_dir in $PATH
13698 IFS=$as_save_IFS
13699 test -z "$as_dir" && as_dir=.
13700 for ac_exec_ext in '' $ac_executable_extensions; do
13701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13702 ac_cv_prog_LEX="$ac_prog"
13703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704 break 2
13706 done
13707 done
13708 IFS=$as_save_IFS
13712 LEX=$ac_cv_prog_LEX
13713 if test -n "$LEX"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13715 $as_echo "$LEX" >&6; }
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13722 test -n "$LEX" && break
13723 done
13724 test -n "$LEX" || LEX=":"
13726 if test "x$LEX" != "x:"; then
13727 cat >conftest.l <<_ACEOF
13729 a { ECHO; }
13730 b { REJECT; }
13731 c { yymore (); }
13732 d { yyless (1); }
13733 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13734 yyless ((input () != 0)); }
13735 f { unput (yytext[0]); }
13736 . { BEGIN INITIAL; }
13738 #ifdef YYTEXT_POINTER
13739 extern char *yytext;
13740 #endif
13742 main (void)
13744 return ! yylex () + ! yywrap ();
13746 _ACEOF
13747 { { ac_try="$LEX conftest.l"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751 esac
13752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13753 $as_echo "$ac_try_echo"; } >&5
13754 (eval "$LEX conftest.l") 2>&5
13755 ac_status=$?
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13759 $as_echo_n "checking lex output file root... " >&6; }
13760 if ${ac_cv_prog_lex_root+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13764 if test -f lex.yy.c; then
13765 ac_cv_prog_lex_root=lex.yy
13766 elif test -f lexyy.c; then
13767 ac_cv_prog_lex_root=lexyy
13768 else
13769 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13773 $as_echo "$ac_cv_prog_lex_root" >&6; }
13774 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13776 if test -z "${LEXLIB+set}"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13778 $as_echo_n "checking lex library... " >&6; }
13779 if ${ac_cv_lib_lex+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13783 ac_save_LIBS=$LIBS
13784 ac_cv_lib_lex='none needed'
13785 for ac_lib in '' -lfl -ll; do
13786 LIBS="$ac_lib $ac_save_LIBS"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789 `cat $LEX_OUTPUT_ROOT.c`
13790 _ACEOF
13791 if ac_fn_c_try_link "$LINENO"; then :
13792 ac_cv_lib_lex=$ac_lib
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 test "$ac_cv_lib_lex" != 'none needed' && break
13797 done
13798 LIBS=$ac_save_LIBS
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13802 $as_echo "$ac_cv_lib_lex" >&6; }
13803 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13808 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13809 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812 # POSIX says lex can declare yytext either as a pointer or an array; the
13813 # default is implementation-dependent. Figure out which it is, since
13814 # not all implementations provide the %pointer and %array declarations.
13815 ac_cv_prog_lex_yytext_pointer=no
13816 ac_save_LIBS=$LIBS
13817 LIBS="$LEXLIB $ac_save_LIBS"
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13821 #define YYTEXT_POINTER 1
13822 `cat $LEX_OUTPUT_ROOT.c`
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_prog_lex_yytext_pointer=yes
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_save_LIBS
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13833 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13834 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13836 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13839 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13843 # Work around a problem with Flex Version 2.5.31 which needs -l flag.
13844 # Since all recent versions of flex support -l, don't check for the
13845 # specific version, but check that at least "--version" is supported.
13846 # We also want to catch LEX=/some/where/flex, so:
13847 case $LEX in
13848 *flex) $LEX --version >/dev/null 2>&1 && LEX="$LEX -l" ;;
13849 esac
13852 for ac_func in strerror
13853 do :
13854 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13855 if test "x$ac_cv_func_strerror" = xyes; then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define HAVE_STRERROR 1
13858 _ACEOF
13861 done
13863 for ac_header in errno.h
13864 do :
13865 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13866 if test "x$ac_cv_header_errno_h" = xyes; then :
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_ERRNO_H 1
13869 _ACEOF
13873 done
13875 # The cast to long int works around a bug in the HP C Compiler
13876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13878 # This bug is HP SR number 8606223364.
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13880 $as_echo_n "checking size of int... " >&6; }
13881 if ${ac_cv_sizeof_int+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13886 else
13887 if test "$ac_cv_type_int" = yes; then
13888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13890 as_fn_error 77 "cannot compute sizeof (int)
13891 See \`config.log' for more details" "$LINENO" 5; }
13892 else
13893 ac_cv_sizeof_int=0
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13899 $as_echo "$ac_cv_sizeof_int" >&6; }
13903 cat >>confdefs.h <<_ACEOF
13904 #define SIZEOF_INT $ac_cv_sizeof_int
13905 _ACEOF
13908 # The cast to long int works around a bug in the HP C Compiler
13909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13911 # This bug is HP SR number 8606223364.
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13913 $as_echo_n "checking size of long... " >&6; }
13914 if ${ac_cv_sizeof_long+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13919 else
13920 if test "$ac_cv_type_long" = yes; then
13921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13923 as_fn_error 77 "cannot compute sizeof (long)
13924 See \`config.log' for more details" "$LINENO" 5; }
13925 else
13926 ac_cv_sizeof_long=0
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13932 $as_echo "$ac_cv_sizeof_long" >&6; }
13936 cat >>confdefs.h <<_ACEOF
13937 #define SIZEOF_LONG $ac_cv_sizeof_long
13938 _ACEOF
13941 # The cast to long int works around a bug in the HP C Compiler
13942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13944 # This bug is HP SR number 8606223364.
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13946 $as_echo_n "checking size of void *... " >&6; }
13947 if ${ac_cv_sizeof_void_p+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13952 else
13953 if test "$ac_cv_type_void_p" = yes; then
13954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13956 as_fn_error 77 "cannot compute sizeof (void *)
13957 See \`config.log' for more details" "$LINENO" 5; }
13958 else
13959 ac_cv_sizeof_void_p=0
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13965 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13969 cat >>confdefs.h <<_ACEOF
13970 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13971 _ACEOF
13975 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13976 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13978 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13980 else
13981 for ac_type in 'unsigned int' 'unsigned long int' \
13982 'unsigned long long int'; do
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 $ac_includes_default
13987 main ()
13989 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13990 test_array [0] = 0;
13991 return test_array [0];
13994 return 0;
13996 _ACEOF
13997 if ac_fn_c_try_compile "$LINENO"; then :
13999 cat >>confdefs.h <<_ACEOF
14000 #define uintptr_t $ac_type
14001 _ACEOF
14003 ac_type=
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 test -z "$ac_type" && break
14007 done
14012 ac_fn_c_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
14014 if test "x$ac_cv_have_decl_isascii" = xyes; then :
14015 ac_have_decl=1
14016 else
14017 ac_have_decl=0
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_DECL_ISASCII $ac_have_decl
14022 _ACEOF
14025 ac_config_headers="$ac_config_headers kpathsea/c-auto.h:c-auto.in"
14028 ac_config_files="$ac_config_files Makefile"
14031 cat >confcache <<\_ACEOF
14032 # This file is a shell script that caches the results of configure
14033 # tests run on this system so they can be shared between configure
14034 # scripts and configure runs, see configure's option --config-cache.
14035 # It is not useful on other systems. If it contains results you don't
14036 # want to keep, you may remove or edit it.
14038 # config.status only pays attention to the cache file if you give it
14039 # the --recheck option to rerun configure.
14041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14043 # following values.
14045 _ACEOF
14047 # The following way of writing the cache mishandles newlines in values,
14048 # but we know of no workaround that is simple, portable, and efficient.
14049 # So, we kill variables containing newlines.
14050 # Ultrix sh set writes to stderr and can't be redirected directly,
14051 # and sets the high bit in the cache file unless we assign to the vars.
14053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14054 eval ac_val=\$$ac_var
14055 case $ac_val in #(
14056 *${as_nl}*)
14057 case $ac_var in #(
14058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14060 esac
14061 case $ac_var in #(
14062 _ | IFS | as_nl) ;; #(
14063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14064 *) { eval $ac_var=; unset $ac_var;} ;;
14065 esac ;;
14066 esac
14067 done
14069 (set) 2>&1 |
14070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14071 *${as_nl}ac_space=\ *)
14072 # `set' does not quote correctly, so add quotes: double-quote
14073 # substitution turns \\\\ into \\, and sed turns \\ into \.
14074 sed -n \
14075 "s/'/'\\\\''/g;
14076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14077 ;; #(
14079 # `set' quotes correctly as required by POSIX, so do not add quotes.
14080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14082 esac |
14083 sort
14085 sed '
14086 /^ac_cv_env_/b end
14087 t clear
14088 :clear
14089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14090 t end
14091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14092 :end' >>confcache
14093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14094 if test -w "$cache_file"; then
14095 if test "x$cache_file" != "x/dev/null"; then
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14097 $as_echo "$as_me: updating cache $cache_file" >&6;}
14098 if test ! -f "$cache_file" || test -h "$cache_file"; then
14099 cat confcache >"$cache_file"
14100 else
14101 case $cache_file in #(
14102 */* | ?:*)
14103 mv -f confcache "$cache_file"$$ &&
14104 mv -f "$cache_file"$$ "$cache_file" ;; #(
14106 mv -f confcache "$cache_file" ;;
14107 esac
14110 else
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14115 rm -f confcache
14117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14118 # Let make expand exec_prefix.
14119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14121 DEFS=-DHAVE_CONFIG_H
14123 ac_libobjs=
14124 ac_ltlibobjs=
14126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14127 # 1. Remove the extension, and $U if already installed.
14128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14129 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14131 # will be set to the directory where LIBOBJS objects are built.
14132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14133 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14134 done
14135 LIBOBJS=$ac_libobjs
14137 LTLIBOBJS=$ac_ltlibobjs
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14141 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14142 if test -n "$am_sleep_pid"; then
14143 # Hide warnings about reused PIDs.
14144 wait $am_sleep_pid 2>/dev/null
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14147 $as_echo "done" >&6; }
14148 if test -n "$EXEEXT"; then
14149 am__EXEEXT_TRUE=
14150 am__EXEEXT_FALSE='#'
14151 else
14152 am__EXEEXT_TRUE='#'
14153 am__EXEEXT_FALSE=
14156 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14157 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14160 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14161 as_fn_error $? "conditional \"AMDEP\" was never defined.
14162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14165 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14169 : "${CONFIG_STATUS=./config.status}"
14170 ac_write_fail=0
14171 ac_clean_files_save=$ac_clean_files
14172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14174 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14175 as_write_fail=0
14176 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14177 #! $SHELL
14178 # Generated by $as_me.
14179 # Run this file to recreate the current configuration.
14180 # Compiler output produced by configure, useful for debugging
14181 # configure, is in config.log if it exists.
14183 debug=false
14184 ac_cs_recheck=false
14185 ac_cs_silent=false
14187 SHELL=\${CONFIG_SHELL-$SHELL}
14188 export SHELL
14189 _ASEOF
14190 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14191 ## -------------------- ##
14192 ## M4sh Initialization. ##
14193 ## -------------------- ##
14195 # Be more Bourne compatible
14196 DUALCASE=1; export DUALCASE # for MKS sh
14197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14198 emulate sh
14199 NULLCMD=:
14200 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14201 # is contrary to our usage. Disable this feature.
14202 alias -g '${1+"$@"}'='"$@"'
14203 setopt NO_GLOB_SUBST
14204 else
14205 case `(set -o) 2>/dev/null` in #(
14206 *posix*) :
14207 set -o posix ;; #(
14208 *) :
14210 esac
14214 as_nl='
14216 export as_nl
14217 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14218 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14220 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14221 # Prefer a ksh shell builtin over an external printf program on Solaris,
14222 # but without wasting forks for bash or zsh.
14223 if test -z "$BASH_VERSION$ZSH_VERSION" \
14224 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14225 as_echo='print -r --'
14226 as_echo_n='print -rn --'
14227 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14228 as_echo='printf %s\n'
14229 as_echo_n='printf %s'
14230 else
14231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14232 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14233 as_echo_n='/usr/ucb/echo -n'
14234 else
14235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14236 as_echo_n_body='eval
14237 arg=$1;
14238 case $arg in #(
14239 *"$as_nl"*)
14240 expr "X$arg" : "X\\(.*\\)$as_nl";
14241 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14242 esac;
14243 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14245 export as_echo_n_body
14246 as_echo_n='sh -c $as_echo_n_body as_echo'
14248 export as_echo_body
14249 as_echo='sh -c $as_echo_body as_echo'
14252 # The user is always right.
14253 if test "${PATH_SEPARATOR+set}" != set; then
14254 PATH_SEPARATOR=:
14255 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14256 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14257 PATH_SEPARATOR=';'
14262 # IFS
14263 # We need space, tab and new line, in precisely that order. Quoting is
14264 # there to prevent editors from complaining about space-tab.
14265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14266 # splitting by setting IFS to empty value.)
14267 IFS=" "" $as_nl"
14269 # Find who we are. Look in the path if we contain no directory separator.
14270 as_myself=
14271 case $0 in #((
14272 *[\\/]* ) as_myself=$0 ;;
14273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14276 IFS=$as_save_IFS
14277 test -z "$as_dir" && as_dir=.
14278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14279 done
14280 IFS=$as_save_IFS
14283 esac
14284 # We did not find ourselves, most probably we were run as `sh COMMAND'
14285 # in which case we are not to be found in the path.
14286 if test "x$as_myself" = x; then
14287 as_myself=$0
14289 if test ! -f "$as_myself"; then
14290 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14291 exit 1
14294 # Unset variables that we do not need and which cause bugs (e.g. in
14295 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14296 # suppresses any "Segmentation fault" message there. '((' could
14297 # trigger a bug in pdksh 5.2.14.
14298 for as_var in BASH_ENV ENV MAIL MAILPATH
14299 do eval test x\${$as_var+set} = xset \
14300 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14301 done
14302 PS1='$ '
14303 PS2='> '
14304 PS4='+ '
14306 # NLS nuisances.
14307 LC_ALL=C
14308 export LC_ALL
14309 LANGUAGE=C
14310 export LANGUAGE
14312 # CDPATH.
14313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14316 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14317 # ----------------------------------------
14318 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14319 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14320 # script with STATUS, using 1 if that was 0.
14321 as_fn_error ()
14323 as_status=$1; test $as_status -eq 0 && as_status=1
14324 if test "$4"; then
14325 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14326 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14328 $as_echo "$as_me: error: $2" >&2
14329 as_fn_exit $as_status
14330 } # as_fn_error
14333 # as_fn_set_status STATUS
14334 # -----------------------
14335 # Set $? to STATUS, without forking.
14336 as_fn_set_status ()
14338 return $1
14339 } # as_fn_set_status
14341 # as_fn_exit STATUS
14342 # -----------------
14343 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14344 as_fn_exit ()
14346 set +e
14347 as_fn_set_status $1
14348 exit $1
14349 } # as_fn_exit
14351 # as_fn_unset VAR
14352 # ---------------
14353 # Portably unset VAR.
14354 as_fn_unset ()
14356 { eval $1=; unset $1;}
14358 as_unset=as_fn_unset
14359 # as_fn_append VAR VALUE
14360 # ----------------------
14361 # Append the text in VALUE to the end of the definition contained in VAR. Take
14362 # advantage of any shell optimizations that allow amortized linear growth over
14363 # repeated appends, instead of the typical quadratic growth present in naive
14364 # implementations.
14365 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14366 eval 'as_fn_append ()
14368 eval $1+=\$2
14370 else
14371 as_fn_append ()
14373 eval $1=\$$1\$2
14375 fi # as_fn_append
14377 # as_fn_arith ARG...
14378 # ------------------
14379 # Perform arithmetic evaluation on the ARGs, and store the result in the
14380 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14381 # must be portable across $(()) and expr.
14382 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14383 eval 'as_fn_arith ()
14385 as_val=$(( $* ))
14387 else
14388 as_fn_arith ()
14390 as_val=`expr "$@" || test $? -eq 1`
14392 fi # as_fn_arith
14395 if expr a : '\(a\)' >/dev/null 2>&1 &&
14396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14397 as_expr=expr
14398 else
14399 as_expr=false
14402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14403 as_basename=basename
14404 else
14405 as_basename=false
14408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14409 as_dirname=dirname
14410 else
14411 as_dirname=false
14414 as_me=`$as_basename -- "$0" ||
14415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14416 X"$0" : 'X\(//\)$' \| \
14417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14418 $as_echo X/"$0" |
14419 sed '/^.*\/\([^/][^/]*\)\/*$/{
14420 s//\1/
14423 /^X\/\(\/\/\)$/{
14424 s//\1/
14427 /^X\/\(\/\).*/{
14428 s//\1/
14431 s/.*/./; q'`
14433 # Avoid depending upon Character Ranges.
14434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14437 as_cr_digits='0123456789'
14438 as_cr_alnum=$as_cr_Letters$as_cr_digits
14440 ECHO_C= ECHO_N= ECHO_T=
14441 case `echo -n x` in #(((((
14442 -n*)
14443 case `echo 'xy\c'` in
14444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14445 xy) ECHO_C='\c';;
14446 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14447 ECHO_T=' ';;
14448 esac;;
14450 ECHO_N='-n';;
14451 esac
14453 rm -f conf$$ conf$$.exe conf$$.file
14454 if test -d conf$$.dir; then
14455 rm -f conf$$.dir/conf$$.file
14456 else
14457 rm -f conf$$.dir
14458 mkdir conf$$.dir 2>/dev/null
14460 if (echo >conf$$.file) 2>/dev/null; then
14461 if ln -s conf$$.file conf$$ 2>/dev/null; then
14462 as_ln_s='ln -s'
14463 # ... but there are two gotchas:
14464 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14465 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14466 # In both cases, we have to default to `cp -pR'.
14467 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14468 as_ln_s='cp -pR'
14469 elif ln conf$$.file conf$$ 2>/dev/null; then
14470 as_ln_s=ln
14471 else
14472 as_ln_s='cp -pR'
14474 else
14475 as_ln_s='cp -pR'
14477 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14478 rmdir conf$$.dir 2>/dev/null
14481 # as_fn_mkdir_p
14482 # -------------
14483 # Create "$as_dir" as a directory, including parents if necessary.
14484 as_fn_mkdir_p ()
14487 case $as_dir in #(
14488 -*) as_dir=./$as_dir;;
14489 esac
14490 test -d "$as_dir" || eval $as_mkdir_p || {
14491 as_dirs=
14492 while :; do
14493 case $as_dir in #(
14494 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14495 *) as_qdir=$as_dir;;
14496 esac
14497 as_dirs="'$as_qdir' $as_dirs"
14498 as_dir=`$as_dirname -- "$as_dir" ||
14499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14500 X"$as_dir" : 'X\(//\)[^/]' \| \
14501 X"$as_dir" : 'X\(//\)$' \| \
14502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14503 $as_echo X"$as_dir" |
14504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14505 s//\1/
14508 /^X\(\/\/\)[^/].*/{
14509 s//\1/
14512 /^X\(\/\/\)$/{
14513 s//\1/
14516 /^X\(\/\).*/{
14517 s//\1/
14520 s/.*/./; q'`
14521 test -d "$as_dir" && break
14522 done
14523 test -z "$as_dirs" || eval "mkdir $as_dirs"
14524 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14527 } # as_fn_mkdir_p
14528 if mkdir -p . 2>/dev/null; then
14529 as_mkdir_p='mkdir -p "$as_dir"'
14530 else
14531 test -d ./-p && rmdir ./-p
14532 as_mkdir_p=false
14536 # as_fn_executable_p FILE
14537 # -----------------------
14538 # Test if FILE is an executable regular file.
14539 as_fn_executable_p ()
14541 test -f "$1" && test -x "$1"
14542 } # as_fn_executable_p
14543 as_test_x='test -x'
14544 as_executable_p=as_fn_executable_p
14546 # Sed expression to map a string onto a valid CPP name.
14547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14549 # Sed expression to map a string onto a valid variable name.
14550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14553 exec 6>&1
14554 ## ----------------------------------- ##
14555 ## Main body of $CONFIG_STATUS script. ##
14556 ## ----------------------------------- ##
14557 _ASEOF
14558 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561 # Save the log message, to keep $0 and so on meaningful, and to
14562 # report actual input values of CONFIG_FILES etc. instead of their
14563 # values after options handling.
14564 ac_log="
14565 This file was extended by Web2C Tools $as_me 2015, which was
14566 generated by GNU Autoconf 2.69. Invocation command line was
14568 CONFIG_FILES = $CONFIG_FILES
14569 CONFIG_HEADERS = $CONFIG_HEADERS
14570 CONFIG_LINKS = $CONFIG_LINKS
14571 CONFIG_COMMANDS = $CONFIG_COMMANDS
14572 $ $0 $@
14574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14577 _ACEOF
14579 case $ac_config_files in *"
14580 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14581 esac
14583 case $ac_config_headers in *"
14584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14585 esac
14588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14589 # Files that config.status was made for.
14590 config_files="$ac_config_files"
14591 config_headers="$ac_config_headers"
14592 config_commands="$ac_config_commands"
14594 _ACEOF
14596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14597 ac_cs_usage="\
14598 \`$as_me' instantiates files and other configuration actions
14599 from templates according to the current configuration. Unless the files
14600 and actions are specified as TAGs, all are instantiated by default.
14602 Usage: $0 [OPTION]... [TAG]...
14604 -h, --help print this help, then exit
14605 -V, --version print version number and configuration settings, then exit
14606 --config print configuration, then exit
14607 -q, --quiet, --silent
14608 do not print progress messages
14609 -d, --debug don't remove temporary files
14610 --recheck update $as_me by reconfiguring in the same conditions
14611 --file=FILE[:TEMPLATE]
14612 instantiate the configuration file FILE
14613 --header=FILE[:TEMPLATE]
14614 instantiate the configuration header FILE
14616 Configuration files:
14617 $config_files
14619 Configuration headers:
14620 $config_headers
14622 Configuration commands:
14623 $config_commands
14625 Report bugs to <tex-k@tug.org>."
14627 _ACEOF
14628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14629 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14630 ac_cs_version="\\
14631 Web2C Tools config.status 2015
14632 configured by $0, generated by GNU Autoconf 2.69,
14633 with options \\"\$ac_cs_config\\"
14635 Copyright (C) 2012 Free Software Foundation, Inc.
14636 This config.status script is free software; the Free Software Foundation
14637 gives unlimited permission to copy, distribute and modify it."
14639 ac_pwd='$ac_pwd'
14640 srcdir='$srcdir'
14641 INSTALL='$INSTALL'
14642 MKDIR_P='$MKDIR_P'
14643 AWK='$AWK'
14644 test -n "\$AWK" || AWK=awk
14645 _ACEOF
14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648 # The default lists apply if the user does not specify any file.
14649 ac_need_defaults=:
14650 while test $# != 0
14652 case $1 in
14653 --*=?*)
14654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14655 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14656 ac_shift=:
14658 --*=)
14659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14660 ac_optarg=
14661 ac_shift=:
14664 ac_option=$1
14665 ac_optarg=$2
14666 ac_shift=shift
14668 esac
14670 case $ac_option in
14671 # Handling of the options.
14672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14673 ac_cs_recheck=: ;;
14674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14675 $as_echo "$ac_cs_version"; exit ;;
14676 --config | --confi | --conf | --con | --co | --c )
14677 $as_echo "$ac_cs_config"; exit ;;
14678 --debug | --debu | --deb | --de | --d | -d )
14679 debug=: ;;
14680 --file | --fil | --fi | --f )
14681 $ac_shift
14682 case $ac_optarg in
14683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14684 '') as_fn_error $? "missing file argument" ;;
14685 esac
14686 as_fn_append CONFIG_FILES " '$ac_optarg'"
14687 ac_need_defaults=false;;
14688 --header | --heade | --head | --hea )
14689 $ac_shift
14690 case $ac_optarg in
14691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14692 esac
14693 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14694 ac_need_defaults=false;;
14695 --he | --h)
14696 # Conflict between --help and --header
14697 as_fn_error $? "ambiguous option: \`$1'
14698 Try \`$0 --help' for more information.";;
14699 --help | --hel | -h )
14700 $as_echo "$ac_cs_usage"; exit ;;
14701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14703 ac_cs_silent=: ;;
14705 # This is an error.
14706 -*) as_fn_error $? "unrecognized option: \`$1'
14707 Try \`$0 --help' for more information." ;;
14709 *) as_fn_append ac_config_targets " $1"
14710 ac_need_defaults=false ;;
14712 esac
14713 shift
14714 done
14716 ac_configure_extra_args=
14718 if $ac_cs_silent; then
14719 exec 6>/dev/null
14720 ac_configure_extra_args="$ac_configure_extra_args --silent"
14723 _ACEOF
14724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725 if \$ac_cs_recheck; then
14726 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14727 shift
14728 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14729 CONFIG_SHELL='$SHELL'
14730 export CONFIG_SHELL
14731 exec "\$@"
14734 _ACEOF
14735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14736 exec 5>>config.log
14738 echo
14739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14740 ## Running $as_me. ##
14741 _ASBOX
14742 $as_echo "$ac_log"
14743 } >&5
14745 _ACEOF
14746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14748 # INIT-COMMANDS
14750 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14753 # The HP-UX ksh and POSIX shell print the target directory to stdout
14754 # if CDPATH is set.
14755 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14757 sed_quote_subst='$sed_quote_subst'
14758 double_quote_subst='$double_quote_subst'
14759 delay_variable_subst='$delay_variable_subst'
14760 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14761 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14762 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14763 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14764 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14765 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14766 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14767 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14768 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14769 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14770 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14771 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14772 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14773 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14774 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14775 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14776 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14777 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14778 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14779 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14780 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14781 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14782 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14783 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14784 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14785 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14786 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14787 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14788 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14789 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14790 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14791 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14792 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14793 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14794 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14795 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14796 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14797 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14798 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14799 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14800 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14801 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14802 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14803 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14804 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14805 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14806 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14807 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14808 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14809 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14810 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14811 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14812 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14813 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14814 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14815 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14816 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14817 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14818 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14819 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"`'
14820 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14821 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14822 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14823 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14824 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14825 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14826 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14827 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14828 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14829 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14830 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14831 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14832 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14833 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14834 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14835 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14836 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14837 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14838 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14839 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14840 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14841 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14842 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14843 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14844 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14845 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14846 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14847 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14848 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14849 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14850 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14851 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14852 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14853 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14854 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14855 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14856 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14857 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14858 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14859 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14860 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14861 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14862 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14863 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14864 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14865 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14866 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14867 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14868 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14869 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14870 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14871 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14872 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14873 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14874 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14875 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14876 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14877 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14878 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14879 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14880 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14881 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14882 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14883 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14884 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14885 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14886 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14887 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14888 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14889 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14890 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14891 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14892 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14893 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14894 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14895 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14897 LTCC='$LTCC'
14898 LTCFLAGS='$LTCFLAGS'
14899 compiler='$compiler_DEFAULT'
14901 # A function that is used when there is no print builtin or printf.
14902 func_fallback_echo ()
14904 eval 'cat <<_LTECHO_EOF
14906 _LTECHO_EOF'
14909 # Quote evaled strings.
14910 for var in AS \
14911 DLLTOOL \
14912 OBJDUMP \
14913 SHELL \
14914 ECHO \
14915 PATH_SEPARATOR \
14916 SED \
14917 GREP \
14918 EGREP \
14919 FGREP \
14920 LD \
14921 NM \
14922 LN_S \
14923 lt_SP2NL \
14924 lt_NL2SP \
14925 reload_flag \
14926 deplibs_check_method \
14927 file_magic_cmd \
14928 file_magic_glob \
14929 want_nocaseglob \
14930 sharedlib_from_linklib_cmd \
14931 AR \
14932 AR_FLAGS \
14933 archiver_list_spec \
14934 STRIP \
14935 RANLIB \
14936 CC \
14937 CFLAGS \
14938 compiler \
14939 lt_cv_sys_global_symbol_pipe \
14940 lt_cv_sys_global_symbol_to_cdecl \
14941 lt_cv_sys_global_symbol_to_import \
14942 lt_cv_sys_global_symbol_to_c_name_address \
14943 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14944 lt_cv_nm_interface \
14945 nm_file_list_spec \
14946 lt_cv_truncate_bin \
14947 lt_prog_compiler_no_builtin_flag \
14948 lt_prog_compiler_pic \
14949 lt_prog_compiler_wl \
14950 lt_prog_compiler_static \
14951 lt_cv_prog_compiler_c_o \
14952 need_locks \
14953 MANIFEST_TOOL \
14954 DSYMUTIL \
14955 NMEDIT \
14956 LIPO \
14957 OTOOL \
14958 OTOOL64 \
14959 shrext_cmds \
14960 export_dynamic_flag_spec \
14961 whole_archive_flag_spec \
14962 compiler_needs_object \
14963 with_gnu_ld \
14964 allow_undefined_flag \
14965 no_undefined_flag \
14966 hardcode_libdir_flag_spec \
14967 hardcode_libdir_separator \
14968 exclude_expsyms \
14969 include_expsyms \
14970 file_list_spec \
14971 variables_saved_for_relink \
14972 libname_spec \
14973 library_names_spec \
14974 soname_spec \
14975 install_override_mode \
14976 finish_eval \
14977 old_striplib \
14978 striplib; do
14979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14980 *[\\\\\\\`\\"\\\$]*)
14981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14986 esac
14987 done
14989 # Double-quote double-evaled strings.
14990 for var in reload_cmds \
14991 old_postinstall_cmds \
14992 old_postuninstall_cmds \
14993 old_archive_cmds \
14994 extract_expsyms_cmds \
14995 old_archive_from_new_cmds \
14996 old_archive_from_expsyms_cmds \
14997 archive_cmds \
14998 archive_expsym_cmds \
14999 module_cmds \
15000 module_expsym_cmds \
15001 export_symbols_cmds \
15002 prelink_cmds \
15003 postlink_cmds \
15004 postinstall_cmds \
15005 postuninstall_cmds \
15006 finish_cmds \
15007 sys_lib_search_path_spec \
15008 configure_time_dlsearch_path \
15009 configure_time_lt_sys_library_path; do
15010 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15011 *[\\\\\\\`\\"\\\$]*)
15012 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15015 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15017 esac
15018 done
15020 ac_aux_dir='$ac_aux_dir'
15022 # See if we are running on zsh, and set the options that allow our
15023 # commands through without removal of \ escapes INIT.
15024 if test -n "\${ZSH_VERSION+set}"; then
15025 setopt NO_GLOB_SUBST
15029 PACKAGE='$PACKAGE'
15030 VERSION='$VERSION'
15031 RM='$RM'
15032 ofile='$ofile'
15037 _ACEOF
15039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 # Handling of arguments.
15042 for ac_config_target in $ac_config_targets
15044 case $ac_config_target in
15045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15046 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15047 "kpathsea/c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS kpathsea/c-auto.h:c-auto.in" ;;
15048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15051 esac
15052 done
15055 # If the user did not use the arguments to specify the items to instantiate,
15056 # then the envvar interface is used. Set only those that are not.
15057 # We use the long form for the default assignment because of an extremely
15058 # bizarre bug on SunOS 4.1.3.
15059 if $ac_need_defaults; then
15060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15065 # Have a temporary directory for convenience. Make it in the build tree
15066 # simply because there is no reason against having it here, and in addition,
15067 # creating and moving files from /tmp can sometimes cause problems.
15068 # Hook for its removal unless debugging.
15069 # Note that there is a small window in which the directory will not be cleaned:
15070 # after its creation but before its name has been assigned to `$tmp'.
15071 $debug ||
15073 tmp= ac_tmp=
15074 trap 'exit_status=$?
15075 : "${ac_tmp:=$tmp}"
15076 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15078 trap 'as_fn_exit 1' 1 2 13 15
15080 # Create a (secure) tmp directory for tmp files.
15083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15084 test -d "$tmp"
15085 } ||
15087 tmp=./conf$$-$RANDOM
15088 (umask 077 && mkdir "$tmp")
15089 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15090 ac_tmp=$tmp
15092 # Set up the scripts for CONFIG_FILES section.
15093 # No need to generate them if there are no CONFIG_FILES.
15094 # This happens for instance with `./config.status config.h'.
15095 if test -n "$CONFIG_FILES"; then
15098 ac_cr=`echo X | tr X '\015'`
15099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15100 # But we know of no other shell where ac_cr would be empty at this
15101 # point, so we can use a bashism as a fallback.
15102 if test "x$ac_cr" = x; then
15103 eval ac_cr=\$\'\\r\'
15105 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15107 ac_cs_awk_cr='\\r'
15108 else
15109 ac_cs_awk_cr=$ac_cr
15112 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15113 _ACEOF
15117 echo "cat >conf$$subs.awk <<_ACEOF" &&
15118 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15119 echo "_ACEOF"
15120 } >conf$$subs.sh ||
15121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15122 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15123 ac_delim='%!_!# '
15124 for ac_last_try in false false false false false :; do
15125 . ./conf$$subs.sh ||
15126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15128 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15129 if test $ac_delim_n = $ac_delim_num; then
15130 break
15131 elif $ac_last_try; then
15132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15133 else
15134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15136 done
15137 rm -f conf$$subs.sh
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15141 _ACEOF
15142 sed -n '
15144 s/^/S["/; s/!.*/"]=/
15147 s/^[^!]*!//
15148 :repl
15149 t repl
15150 s/'"$ac_delim"'$//
15151 t delim
15154 s/\(.\{148\}\)..*/\1/
15155 t more1
15156 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15159 b repl
15160 :more1
15161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15164 s/.\{148\}//
15165 t nl
15166 :delim
15168 s/\(.\{148\}\)..*/\1/
15169 t more2
15170 s/["\\]/\\&/g; s/^/"/; s/$/"/
15173 :more2
15174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15177 s/.\{148\}//
15178 t delim
15179 ' <conf$$subs.awk | sed '
15180 /^[^""]/{
15182 s/\n//
15184 ' >>$CONFIG_STATUS || ac_write_fail=1
15185 rm -f conf$$subs.awk
15186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187 _ACAWK
15188 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15189 for (key in S) S_is_set[key] = 1
15190 FS = "\a"
15194 line = $ 0
15195 nfields = split(line, field, "@")
15196 substed = 0
15197 len = length(field[1])
15198 for (i = 2; i < nfields; i++) {
15199 key = field[i]
15200 keylen = length(key)
15201 if (S_is_set[key]) {
15202 value = S[key]
15203 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15204 len += length(value) + length(field[++i])
15205 substed = 1
15206 } else
15207 len += 1 + keylen
15210 print line
15213 _ACAWK
15214 _ACEOF
15215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15217 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15218 else
15220 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15221 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15222 _ACEOF
15224 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15225 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15226 # trailing colons and then remove the whole line if VPATH becomes empty
15227 # (actually we leave an empty line to preserve line numbers).
15228 if test "x$srcdir" = x.; then
15229 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15231 s///
15232 s/^/:/
15233 s/[ ]*$/:/
15234 s/:\$(srcdir):/:/g
15235 s/:\${srcdir}:/:/g
15236 s/:@srcdir@:/:/g
15237 s/^:*//
15238 s/:*$//
15240 s/\(=[ ]*\).*/\1/
15242 s/\n//
15243 s/^[^=]*=[ ]*$//
15247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15248 fi # test -n "$CONFIG_FILES"
15250 # Set up the scripts for CONFIG_HEADERS section.
15251 # No need to generate them if there are no CONFIG_HEADERS.
15252 # This happens for instance with `./config.status Makefile'.
15253 if test -n "$CONFIG_HEADERS"; then
15254 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15255 BEGIN {
15256 _ACEOF
15258 # Transform confdefs.h into an awk script `defines.awk', embedded as
15259 # here-document in config.status, that substitutes the proper values into
15260 # config.h.in to produce config.h.
15262 # Create a delimiter string that does not exist in confdefs.h, to ease
15263 # handling of long lines.
15264 ac_delim='%!_!# '
15265 for ac_last_try in false false :; do
15266 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15267 if test -z "$ac_tt"; then
15268 break
15269 elif $ac_last_try; then
15270 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15271 else
15272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15274 done
15276 # For the awk script, D is an array of macro values keyed by name,
15277 # likewise P contains macro parameters if any. Preserve backslash
15278 # newline sequences.
15280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15281 sed -n '
15282 s/.\{148\}/&'"$ac_delim"'/g
15283 t rset
15284 :rset
15285 s/^[ ]*#[ ]*define[ ][ ]*/ /
15286 t def
15288 :def
15289 s/\\$//
15290 t bsnl
15291 s/["\\]/\\&/g
15292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15293 D["\1"]=" \3"/p
15294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15296 :bsnl
15297 s/["\\]/\\&/g
15298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15299 D["\1"]=" \3\\\\\\n"\\/p
15300 t cont
15301 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15302 t cont
15304 :cont
15306 s/.\{148\}/&'"$ac_delim"'/g
15307 t clear
15308 :clear
15309 s/\\$//
15310 t bsnlc
15311 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15313 :bsnlc
15314 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15315 b cont
15316 ' <confdefs.h | sed '
15317 s/'"$ac_delim"'/"\\\
15318 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321 for (key in D) D_is_set[key] = 1
15322 FS = "\a"
15324 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15325 line = \$ 0
15326 split(line, arg, " ")
15327 if (arg[1] == "#") {
15328 defundef = arg[2]
15329 mac1 = arg[3]
15330 } else {
15331 defundef = substr(arg[1], 2)
15332 mac1 = arg[2]
15334 split(mac1, mac2, "(") #)
15335 macro = mac2[1]
15336 prefix = substr(line, 1, index(line, defundef) - 1)
15337 if (D_is_set[macro]) {
15338 # Preserve the white space surrounding the "#".
15339 print prefix "define", macro P[macro] D[macro]
15340 next
15341 } else {
15342 # Replace #undef with comments. This is necessary, for example,
15343 # in the case of _POSIX_SOURCE, which is predefined and required
15344 # on some systems where configure will not decide to define it.
15345 if (defundef == "undef") {
15346 print "/*", prefix defundef, macro, "*/"
15347 next
15351 { print }
15352 _ACAWK
15353 _ACEOF
15354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15355 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15356 fi # test -n "$CONFIG_HEADERS"
15359 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15360 shift
15361 for ac_tag
15363 case $ac_tag in
15364 :[FHLC]) ac_mode=$ac_tag; continue;;
15365 esac
15366 case $ac_mode$ac_tag in
15367 :[FHL]*:*);;
15368 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15369 :[FH]-) ac_tag=-:-;;
15370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15371 esac
15372 ac_save_IFS=$IFS
15373 IFS=:
15374 set x $ac_tag
15375 IFS=$ac_save_IFS
15376 shift
15377 ac_file=$1
15378 shift
15380 case $ac_mode in
15381 :L) ac_source=$1;;
15382 :[FH])
15383 ac_file_inputs=
15384 for ac_f
15386 case $ac_f in
15387 -) ac_f="$ac_tmp/stdin";;
15388 *) # Look for the file first in the build tree, then in the source tree
15389 # (if the path is not absolute). The absolute path cannot be DOS-style,
15390 # because $ac_f cannot contain `:'.
15391 test -f "$ac_f" ||
15392 case $ac_f in
15393 [\\/$]*) false;;
15394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15395 esac ||
15396 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15397 esac
15398 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15399 as_fn_append ac_file_inputs " '$ac_f'"
15400 done
15402 # Let's still pretend it is `configure' which instantiates (i.e., don't
15403 # use $as_me), people would be surprised to read:
15404 # /* config.h. Generated by config.status. */
15405 configure_input='Generated from '`
15406 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15407 `' by configure.'
15408 if test x"$ac_file" != x-; then
15409 configure_input="$ac_file. $configure_input"
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15411 $as_echo "$as_me: creating $ac_file" >&6;}
15413 # Neutralize special characters interpreted by sed in replacement strings.
15414 case $configure_input in #(
15415 *\&* | *\|* | *\\* )
15416 ac_sed_conf_input=`$as_echo "$configure_input" |
15417 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15418 *) ac_sed_conf_input=$configure_input;;
15419 esac
15421 case $ac_tag in
15422 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15424 esac
15426 esac
15428 ac_dir=`$as_dirname -- "$ac_file" ||
15429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15430 X"$ac_file" : 'X\(//\)[^/]' \| \
15431 X"$ac_file" : 'X\(//\)$' \| \
15432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15433 $as_echo X"$ac_file" |
15434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15435 s//\1/
15438 /^X\(\/\/\)[^/].*/{
15439 s//\1/
15442 /^X\(\/\/\)$/{
15443 s//\1/
15446 /^X\(\/\).*/{
15447 s//\1/
15450 s/.*/./; q'`
15451 as_dir="$ac_dir"; as_fn_mkdir_p
15452 ac_builddir=.
15454 case "$ac_dir" in
15455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15458 # A ".." for each directory in $ac_dir_suffix.
15459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15460 case $ac_top_builddir_sub in
15461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15463 esac ;;
15464 esac
15465 ac_abs_top_builddir=$ac_pwd
15466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15467 # for backward compatibility:
15468 ac_top_builddir=$ac_top_build_prefix
15470 case $srcdir in
15471 .) # We are building in place.
15472 ac_srcdir=.
15473 ac_top_srcdir=$ac_top_builddir_sub
15474 ac_abs_top_srcdir=$ac_pwd ;;
15475 [\\/]* | ?:[\\/]* ) # Absolute name.
15476 ac_srcdir=$srcdir$ac_dir_suffix;
15477 ac_top_srcdir=$srcdir
15478 ac_abs_top_srcdir=$srcdir ;;
15479 *) # Relative name.
15480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15481 ac_top_srcdir=$ac_top_build_prefix$srcdir
15482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15483 esac
15484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15487 case $ac_mode in
15490 # CONFIG_FILE
15493 case $INSTALL in
15494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15496 esac
15497 ac_MKDIR_P=$MKDIR_P
15498 case $MKDIR_P in
15499 [\\/$]* | ?:[\\/]* ) ;;
15500 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15501 esac
15502 _ACEOF
15504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15505 # If the template does not know about datarootdir, expand it.
15506 # FIXME: This hack should be removed a few years after 2.60.
15507 ac_datarootdir_hack=; ac_datarootdir_seen=
15508 ac_sed_dataroot='
15509 /datarootdir/ {
15513 /@datadir@/p
15514 /@docdir@/p
15515 /@infodir@/p
15516 /@localedir@/p
15517 /@mandir@/p'
15518 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15519 *datarootdir*) ac_datarootdir_seen=yes;;
15520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15522 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15523 _ACEOF
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 ac_datarootdir_hack='
15526 s&@datadir@&$datadir&g
15527 s&@docdir@&$docdir&g
15528 s&@infodir@&$infodir&g
15529 s&@localedir@&$localedir&g
15530 s&@mandir@&$mandir&g
15531 s&\\\${datarootdir}&$datarootdir&g' ;;
15532 esac
15533 _ACEOF
15535 # Neutralize VPATH when `$srcdir' = `.'.
15536 # Shell code in configure.ac might set extrasub.
15537 # FIXME: do we really want to maintain this feature?
15538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15539 ac_sed_extra="$ac_vpsub
15540 $extrasub
15541 _ACEOF
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15545 s|@configure_input@|$ac_sed_conf_input|;t t
15546 s&@top_builddir@&$ac_top_builddir_sub&;t t
15547 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15548 s&@srcdir@&$ac_srcdir&;t t
15549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15550 s&@top_srcdir@&$ac_top_srcdir&;t t
15551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15552 s&@builddir@&$ac_builddir&;t t
15553 s&@abs_builddir@&$ac_abs_builddir&;t t
15554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15555 s&@INSTALL@&$ac_INSTALL&;t t
15556 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15557 $ac_datarootdir_hack
15559 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15560 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15563 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15565 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15567 which seems to be undefined. Please make sure it is defined" >&5
15568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15569 which seems to be undefined. Please make sure it is defined" >&2;}
15571 rm -f "$ac_tmp/stdin"
15572 case $ac_file in
15573 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15574 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15575 esac \
15576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15580 # CONFIG_HEADER
15582 if test x"$ac_file" != x-; then
15584 $as_echo "/* $configure_input */" \
15585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15586 } >"$ac_tmp/config.h" \
15587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15588 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15591 else
15592 rm -f "$ac_file"
15593 mv "$ac_tmp/config.h" "$ac_file" \
15594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15596 else
15597 $as_echo "/* $configure_input */" \
15598 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15599 || as_fn_error $? "could not create -" "$LINENO" 5
15601 # Compute "$ac_file"'s index in $config_headers.
15602 _am_arg="$ac_file"
15603 _am_stamp_count=1
15604 for _am_header in $config_headers :; do
15605 case $_am_header in
15606 $_am_arg | $_am_arg:* )
15607 break ;;
15609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15610 esac
15611 done
15612 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15613 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15614 X"$_am_arg" : 'X\(//\)[^/]' \| \
15615 X"$_am_arg" : 'X\(//\)$' \| \
15616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15617 $as_echo X"$_am_arg" |
15618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15619 s//\1/
15622 /^X\(\/\/\)[^/].*/{
15623 s//\1/
15626 /^X\(\/\/\)$/{
15627 s//\1/
15630 /^X\(\/\).*/{
15631 s//\1/
15634 s/.*/./; q'`/stamp-h$_am_stamp_count
15637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15638 $as_echo "$as_me: executing $ac_file commands" >&6;}
15640 esac
15643 case $ac_file$ac_mode in
15644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15645 # Older Autoconf quotes --file arguments for eval, but not when files
15646 # are listed without --file. Let's play safe and only enable the eval
15647 # if we detect the quoting.
15648 case $CONFIG_FILES in
15649 *\'*) eval set x "$CONFIG_FILES" ;;
15650 *) set x $CONFIG_FILES ;;
15651 esac
15652 shift
15653 for mf
15655 # Strip MF so we end up with the name of the file.
15656 mf=`echo "$mf" | sed -e 's/:.*$//'`
15657 # Check whether this is an Automake generated Makefile or not.
15658 # We used to match only the files named 'Makefile.in', but
15659 # some people rename them; so instead we look at the file content.
15660 # Grep'ing the first line is not enough: some people post-process
15661 # each Makefile.in and add a new line on top of each file to say so.
15662 # Grep'ing the whole file is not good either: AIX grep has a line
15663 # limit of 2048, but all sed's we know have understand at least 4000.
15664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15665 dirpart=`$as_dirname -- "$mf" ||
15666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15667 X"$mf" : 'X\(//\)[^/]' \| \
15668 X"$mf" : 'X\(//\)$' \| \
15669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15670 $as_echo X"$mf" |
15671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15672 s//\1/
15675 /^X\(\/\/\)[^/].*/{
15676 s//\1/
15679 /^X\(\/\/\)$/{
15680 s//\1/
15683 /^X\(\/\).*/{
15684 s//\1/
15687 s/.*/./; q'`
15688 else
15689 continue
15691 # Extract the definition of DEPDIR, am__include, and am__quote
15692 # from the Makefile without running 'make'.
15693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15694 test -z "$DEPDIR" && continue
15695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15696 test -z "$am__include" && continue
15697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15698 # Find all dependency output files, they are included files with
15699 # $(DEPDIR) in their names. We invoke sed twice because it is the
15700 # simplest approach to changing $(DEPDIR) to its actual value in the
15701 # expansion.
15702 for file in `sed -n "
15703 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15705 # Make sure the directory exists.
15706 test -f "$dirpart/$file" && continue
15707 fdir=`$as_dirname -- "$file" ||
15708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15709 X"$file" : 'X\(//\)[^/]' \| \
15710 X"$file" : 'X\(//\)$' \| \
15711 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15712 $as_echo X"$file" |
15713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15714 s//\1/
15717 /^X\(\/\/\)[^/].*/{
15718 s//\1/
15721 /^X\(\/\/\)$/{
15722 s//\1/
15725 /^X\(\/\).*/{
15726 s//\1/
15729 s/.*/./; q'`
15730 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15731 # echo "creating $dirpart/$file"
15732 echo '# dummy' > "$dirpart/$file"
15733 done
15734 done
15737 "libtool":C)
15739 # See if we are running on zsh, and set the options that allow our
15740 # commands through without removal of \ escapes.
15741 if test -n "${ZSH_VERSION+set}"; then
15742 setopt NO_GLOB_SUBST
15745 cfgfile=${ofile}T
15746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15747 $RM "$cfgfile"
15749 cat <<_LT_EOF >> "$cfgfile"
15750 #! $SHELL
15751 # Generated automatically by $as_me ($PACKAGE) $VERSION
15752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15753 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15755 # Provide generalized library-building support services.
15756 # Written by Gordon Matzigkeit, 1996
15758 # Copyright (C) 2014 Free Software Foundation, Inc.
15759 # This is free software; see the source for copying conditions. There is NO
15760 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15762 # GNU Libtool is free software; you can redistribute it and/or modify
15763 # it under the terms of the GNU General Public License as published by
15764 # the Free Software Foundation; either version 2 of of the License, or
15765 # (at your option) any later version.
15767 # As a special exception to the GNU General Public License, if you
15768 # distribute this file as part of a program or library that is built
15769 # using GNU Libtool, you may include this file under the same
15770 # distribution terms that you use for the rest of that program.
15772 # GNU Libtool is distributed in the hope that it will be useful, but
15773 # WITHOUT ANY WARRANTY; without even the implied warranty of
15774 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15775 # GNU General Public License for more details.
15777 # You should have received a copy of the GNU General Public License
15778 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15781 # The names of the tagged configurations supported by this script.
15782 available_tags=''
15784 # Configured defaults for sys_lib_dlsearch_path munging.
15785 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15787 # ### BEGIN LIBTOOL CONFIG
15789 # Which release of libtool.m4 was used?
15790 macro_version=$macro_version
15791 macro_revision=$macro_revision
15793 # Assembler program.
15794 AS=$lt_AS
15796 # DLL creation program.
15797 DLLTOOL=$lt_DLLTOOL
15799 # Object dumper program.
15800 OBJDUMP=$lt_OBJDUMP
15802 # Whether or not to build shared libraries.
15803 build_libtool_libs=$enable_shared
15805 # Whether or not to build static libraries.
15806 build_old_libs=$enable_static
15808 # What type of objects to build.
15809 pic_mode=$pic_mode
15811 # Whether or not to optimize for fast installation.
15812 fast_install=$enable_fast_install
15814 # Shared archive member basename,for filename based shared library versioning on AIX.
15815 shared_archive_member_spec=$shared_archive_member_spec
15817 # Shell to use when invoking shell scripts.
15818 SHELL=$lt_SHELL
15820 # An echo program that protects backslashes.
15821 ECHO=$lt_ECHO
15823 # The PATH separator for the build system.
15824 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15826 # The host system.
15827 host_alias=$host_alias
15828 host=$host
15829 host_os=$host_os
15831 # The build system.
15832 build_alias=$build_alias
15833 build=$build
15834 build_os=$build_os
15836 # A sed program that does not truncate output.
15837 SED=$lt_SED
15839 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15840 Xsed="\$SED -e 1s/^X//"
15842 # A grep program that handles long lines.
15843 GREP=$lt_GREP
15845 # An ERE matcher.
15846 EGREP=$lt_EGREP
15848 # A literal string matcher.
15849 FGREP=$lt_FGREP
15851 # A BSD- or MS-compatible name lister.
15852 NM=$lt_NM
15854 # Whether we need soft or hard links.
15855 LN_S=$lt_LN_S
15857 # What is the maximum length of a command?
15858 max_cmd_len=$max_cmd_len
15860 # Object file suffix (normally "o").
15861 objext=$ac_objext
15863 # Executable file suffix (normally "").
15864 exeext=$exeext
15866 # whether the shell understands "unset".
15867 lt_unset=$lt_unset
15869 # turn spaces into newlines.
15870 SP2NL=$lt_lt_SP2NL
15872 # turn newlines into spaces.
15873 NL2SP=$lt_lt_NL2SP
15875 # convert \$build file names to \$host format.
15876 to_host_file_cmd=$lt_cv_to_host_file_cmd
15878 # convert \$build files to toolchain format.
15879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15881 # Method to check whether dependent libraries are shared objects.
15882 deplibs_check_method=$lt_deplibs_check_method
15884 # Command to use when deplibs_check_method = "file_magic".
15885 file_magic_cmd=$lt_file_magic_cmd
15887 # How to find potential files when deplibs_check_method = "file_magic".
15888 file_magic_glob=$lt_file_magic_glob
15890 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15891 want_nocaseglob=$lt_want_nocaseglob
15893 # Command to associate shared and link libraries.
15894 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15896 # The archiver.
15897 AR=$lt_AR
15899 # Flags to create an archive.
15900 AR_FLAGS=$lt_AR_FLAGS
15902 # How to feed a file listing to the archiver.
15903 archiver_list_spec=$lt_archiver_list_spec
15905 # A symbol stripping program.
15906 STRIP=$lt_STRIP
15908 # Commands used to install an old-style archive.
15909 RANLIB=$lt_RANLIB
15910 old_postinstall_cmds=$lt_old_postinstall_cmds
15911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15913 # Whether to use a lock for old archive extraction.
15914 lock_old_archive_extraction=$lock_old_archive_extraction
15916 # A C compiler.
15917 LTCC=$lt_CC
15919 # LTCC compiler flags.
15920 LTCFLAGS=$lt_CFLAGS
15922 # Take the output of nm and produce a listing of raw symbols and C names.
15923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15925 # Transform the output of nm in a proper C declaration.
15926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15928 # Transform the output of nm into a list of symbols to manually relocate.
15929 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15931 # Transform the output of nm in a C name address pair.
15932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15934 # Transform the output of nm in a C name address pair when lib prefix is needed.
15935 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15937 # The name lister interface.
15938 nm_interface=$lt_lt_cv_nm_interface
15940 # Specify filename containing input files for \$NM.
15941 nm_file_list_spec=$lt_nm_file_list_spec
15943 # The root where to search for dependent libraries,and where our libraries should be installed.
15944 lt_sysroot=$lt_sysroot
15946 # Command to truncate a binary pipe.
15947 lt_truncate_bin=$lt_lt_cv_truncate_bin
15949 # The name of the directory that contains temporary libtool files.
15950 objdir=$objdir
15952 # Used to examine libraries when file_magic_cmd begins with "file".
15953 MAGIC_CMD=$MAGIC_CMD
15955 # Must we lock files when doing compilation?
15956 need_locks=$lt_need_locks
15958 # Manifest tool.
15959 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15961 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15962 DSYMUTIL=$lt_DSYMUTIL
15964 # Tool to change global to local symbols on Mac OS X.
15965 NMEDIT=$lt_NMEDIT
15967 # Tool to manipulate fat objects and archives on Mac OS X.
15968 LIPO=$lt_LIPO
15970 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15971 OTOOL=$lt_OTOOL
15973 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15974 OTOOL64=$lt_OTOOL64
15976 # Old archive suffix (normally "a").
15977 libext=$libext
15979 # Shared library suffix (normally ".so").
15980 shrext_cmds=$lt_shrext_cmds
15982 # The commands to extract the exported symbol list from a shared archive.
15983 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15985 # Variables whose values should be saved in libtool wrapper scripts and
15986 # restored at link time.
15987 variables_saved_for_relink=$lt_variables_saved_for_relink
15989 # Do we need the "lib" prefix for modules?
15990 need_lib_prefix=$need_lib_prefix
15992 # Do we need a version for libraries?
15993 need_version=$need_version
15995 # Library versioning type.
15996 version_type=$version_type
15998 # Shared library runtime path variable.
15999 runpath_var=$runpath_var
16001 # Shared library path variable.
16002 shlibpath_var=$shlibpath_var
16004 # Is shlibpath searched before the hard-coded library search path?
16005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16007 # Format of library name prefix.
16008 libname_spec=$lt_libname_spec
16010 # List of archive names. First name is the real one, the rest are links.
16011 # The last name is the one that the linker finds with -lNAME
16012 library_names_spec=$lt_library_names_spec
16014 # The coded name of the library, if different from the real name.
16015 soname_spec=$lt_soname_spec
16017 # Permission mode override for installation of shared libraries.
16018 install_override_mode=$lt_install_override_mode
16020 # Command to use after installation of a shared archive.
16021 postinstall_cmds=$lt_postinstall_cmds
16023 # Command to use after uninstallation of a shared archive.
16024 postuninstall_cmds=$lt_postuninstall_cmds
16026 # Commands used to finish a libtool library installation in a directory.
16027 finish_cmds=$lt_finish_cmds
16029 # As "finish_cmds", except a single script fragment to be evaled but
16030 # not shown.
16031 finish_eval=$lt_finish_eval
16033 # Whether we should hardcode library paths into libraries.
16034 hardcode_into_libs=$hardcode_into_libs
16036 # Compile-time system search path for libraries.
16037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16039 # Detected run-time system search path for libraries.
16040 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16042 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16043 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16045 # Whether dlopen is supported.
16046 dlopen_support=$enable_dlopen
16048 # Whether dlopen of programs is supported.
16049 dlopen_self=$enable_dlopen_self
16051 # Whether dlopen of statically linked programs is supported.
16052 dlopen_self_static=$enable_dlopen_self_static
16054 # Commands to strip libraries.
16055 old_striplib=$lt_old_striplib
16056 striplib=$lt_striplib
16059 # The linker used to build libraries.
16060 LD=$lt_LD
16062 # How to create reloadable object files.
16063 reload_flag=$lt_reload_flag
16064 reload_cmds=$lt_reload_cmds
16066 # Commands used to build an old-style archive.
16067 old_archive_cmds=$lt_old_archive_cmds
16069 # A language specific compiler.
16070 CC=$lt_compiler
16072 # Is the compiler the GNU compiler?
16073 with_gcc=$GCC
16075 # Compiler flag to turn off builtin functions.
16076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16078 # Additional compiler flags for building library objects.
16079 pic_flag=$lt_lt_prog_compiler_pic
16081 # How to pass a linker flag through the compiler.
16082 wl=$lt_lt_prog_compiler_wl
16084 # Compiler flag to prevent dynamic linking.
16085 link_static_flag=$lt_lt_prog_compiler_static
16087 # Does compiler simultaneously support -c and -o options?
16088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16090 # Whether or not to add -lc for building shared libraries.
16091 build_libtool_need_lc=$archive_cmds_need_lc
16093 # Whether or not to disallow shared libs when runtime libs are static.
16094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16096 # Compiler flag to allow reflexive dlopens.
16097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16099 # Compiler flag to generate shared objects directly from archives.
16100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16102 # Whether the compiler copes with passing no objects directly.
16103 compiler_needs_object=$lt_compiler_needs_object
16105 # Create an old-style archive from a shared archive.
16106 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16108 # Create a temporary old-style archive to link instead of a shared archive.
16109 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16111 # Commands used to build a shared archive.
16112 archive_cmds=$lt_archive_cmds
16113 archive_expsym_cmds=$lt_archive_expsym_cmds
16115 # Commands used to build a loadable module if different from building
16116 # a shared archive.
16117 module_cmds=$lt_module_cmds
16118 module_expsym_cmds=$lt_module_expsym_cmds
16120 # Whether we are building with GNU ld or not.
16121 with_gnu_ld=$lt_with_gnu_ld
16123 # Flag that allows shared libraries with undefined symbols to be built.
16124 allow_undefined_flag=$lt_allow_undefined_flag
16126 # Flag that enforces no undefined symbols.
16127 no_undefined_flag=$lt_no_undefined_flag
16129 # Flag to hardcode \$libdir into a binary during linking.
16130 # This must work even if \$libdir does not exist
16131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16133 # Whether we need a single "-rpath" flag with a separated argument.
16134 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16136 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16137 # DIR into the resulting binary.
16138 hardcode_direct=$hardcode_direct
16140 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16141 # DIR into the resulting binary and the resulting library dependency is
16142 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16143 # library is relocated.
16144 hardcode_direct_absolute=$hardcode_direct_absolute
16146 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16147 # into the resulting binary.
16148 hardcode_minus_L=$hardcode_minus_L
16150 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16151 # into the resulting binary.
16152 hardcode_shlibpath_var=$hardcode_shlibpath_var
16154 # Set to "yes" if building a shared library automatically hardcodes DIR
16155 # into the library and all subsequent libraries and executables linked
16156 # against it.
16157 hardcode_automatic=$hardcode_automatic
16159 # Set to yes if linker adds runtime paths of dependent libraries
16160 # to runtime path list.
16161 inherit_rpath=$inherit_rpath
16163 # Whether libtool must link a program against all its dependency libraries.
16164 link_all_deplibs=$link_all_deplibs
16166 # Set to "yes" if exported symbols are required.
16167 always_export_symbols=$always_export_symbols
16169 # The commands to list exported symbols.
16170 export_symbols_cmds=$lt_export_symbols_cmds
16172 # Symbols that should not be listed in the preloaded symbols.
16173 exclude_expsyms=$lt_exclude_expsyms
16175 # Symbols that must always be exported.
16176 include_expsyms=$lt_include_expsyms
16178 # Commands necessary for linking programs (against libraries) with templates.
16179 prelink_cmds=$lt_prelink_cmds
16181 # Commands necessary for finishing linking programs.
16182 postlink_cmds=$lt_postlink_cmds
16184 # Specify filename containing input files.
16185 file_list_spec=$lt_file_list_spec
16187 # How to hardcode a shared library path into an executable.
16188 hardcode_action=$hardcode_action
16190 # ### END LIBTOOL CONFIG
16192 _LT_EOF
16194 cat <<'_LT_EOF' >> "$cfgfile"
16196 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16198 # func_munge_path_list VARIABLE PATH
16199 # -----------------------------------
16200 # VARIABLE is name of variable containing _space_ separated list of
16201 # directories to be munged by the contents of PATH, which is string
16202 # having a format:
16203 # "DIR[:DIR]:"
16204 # string "DIR[ DIR]" will be prepended to VARIABLE
16205 # ":DIR[:DIR]"
16206 # string "DIR[ DIR]" will be appended to VARIABLE
16207 # "DIRP[:DIRP]::[DIRA:]DIRA"
16208 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16209 # "DIRA[ DIRA]" will be appended to VARIABLE
16210 # "DIR[:DIR]"
16211 # VARIABLE will be replaced by "DIR[ DIR]"
16212 func_munge_path_list ()
16214 case x$2 in
16218 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16220 x:*)
16221 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16223 *::*)
16224 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16225 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16228 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16230 esac
16234 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16235 func_cc_basename ()
16237 for cc_temp in $*""; do
16238 case $cc_temp in
16239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16241 \-*) ;;
16242 *) break;;
16243 esac
16244 done
16245 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16249 # ### END FUNCTIONS SHARED WITH CONFIGURE
16251 _LT_EOF
16253 case $host_os in
16254 aix3*)
16255 cat <<\_LT_EOF >> "$cfgfile"
16256 # AIX sometimes has problems with the GCC collect2 program. For some
16257 # reason, if we set the COLLECT_NAMES environment variable, the problems
16258 # vanish in a puff of smoke.
16259 if test set != "${COLLECT_NAMES+set}"; then
16260 COLLECT_NAMES=
16261 export COLLECT_NAMES
16263 _LT_EOF
16265 esac
16268 ltmain=$ac_aux_dir/ltmain.sh
16271 # We use sed instead of cat because bash on DJGPP gets confused if
16272 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16273 # text mode, it properly converts lines to CR/LF. This bash problem
16274 # is reportedly fixed, but why not run on old versions too?
16275 sed '$q' "$ltmain" >> "$cfgfile" \
16276 || (rm -f "$cfgfile"; exit 1)
16278 mv -f "$cfgfile" "$ofile" ||
16279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16280 chmod +x "$ofile"
16284 esac
16285 done # for ac_tag
16288 as_fn_exit 0
16289 _ACEOF
16290 ac_clean_files=$ac_clean_files_save
16292 test $ac_write_fail = 0 ||
16293 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16296 # configure is writing to config.log, and then calls config.status.
16297 # config.status does its own redirection, appending to config.log.
16298 # Unfortunately, on DOS this fails, as config.log is still kept open
16299 # by configure, so config.status won't be able to write to it; its
16300 # output is simply discarded. So we exec the FD to /dev/null,
16301 # effectively closing config.log, so it can be properly (re)opened and
16302 # appended to by config.status. When coming back to configure, we
16303 # need to make the FD available again.
16304 if test "$no_create" != yes; then
16305 ac_cs_success=:
16306 ac_config_status_args=
16307 test "$silent" = yes &&
16308 ac_config_status_args="$ac_config_status_args --quiet"
16309 exec 5>/dev/null
16310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16311 exec 5>>config.log
16312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16313 # would make configure fail if this is the last instruction.
16314 $ac_cs_success || as_fn_exit 1
16316 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16318 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}