Apply LOCAL_PATCHES and remove not used ones.
[official-gcc.git] / libphobos / configure
blob27873cff327c9748dfbcb84fe03de3858b9bbdc8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libphobos'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="libdruntime/gcc/attribute.d"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 GDCFLAGSX
606 PHOBOS_SOVERSION
607 DRUNTIME_SOVERSION
608 SPEC_PHOBOS_DEPS
609 gdc_include_dir
610 toolexeclibdir
611 toolexecdir
612 gcc_version
613 DRUNTIME_ZLIB_SYSTEM_FALSE
614 DRUNTIME_ZLIB_SYSTEM_TRUE
615 BACKTRACE_SUPPORTS_THREADS
616 BACKTRACE_USES_MALLOC
617 BACKTRACE_SUPPORTED
618 LIBBACKTRACE
619 LIBATOMIC
620 DCFG_HAVE_LIBATOMIC
621 DCFG_HAVE_64BIT_ATOMICS
622 DCFG_HAVE_ATOMIC_BUILTINS
623 DCFG_MINFO_BRACKETING
624 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
625 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
626 DCFG_ARM_EABI_UNWINDER
627 DCFG_THREAD_MODEL
628 DRUNTIME_OS_SOLARIS_FALSE
629 DRUNTIME_OS_SOLARIS_TRUE
630 DRUNTIME_OS_MINGW_FALSE
631 DRUNTIME_OS_MINGW_TRUE
632 DRUNTIME_OS_LINUX_FALSE
633 DRUNTIME_OS_LINUX_TRUE
634 DRUNTIME_OS_OPENBSD_FALSE
635 DRUNTIME_OS_OPENBSD_TRUE
636 DRUNTIME_OS_NETBSD_FALSE
637 DRUNTIME_OS_NETBSD_TRUE
638 DRUNTIME_OS_FREEBSD_FALSE
639 DRUNTIME_OS_FREEBSD_TRUE
640 DRUNTIME_OS_DRAGONFLYBSD_FALSE
641 DRUNTIME_OS_DRAGONFLYBSD_TRUE
642 DRUNTIME_OS_DARWIN_FALSE
643 DRUNTIME_OS_DARWIN_TRUE
644 DRUNTIME_OS_ANDROID_FALSE
645 DRUNTIME_OS_ANDROID_TRUE
646 DRUNTIME_OS_AIX_FALSE
647 DRUNTIME_OS_AIX_TRUE
648 DRUNTIME_OS_UNIX_FALSE
649 DRUNTIME_OS_UNIX_TRUE
650 DRUNTIME_GC_ENABLE_FALSE
651 DRUNTIME_GC_ENABLE_TRUE
652 libphobos_srcdir
653 libphobos_builddir
654 get_gcc_base_ver
655 phobos_compiler_shared_flag
656 phobos_compiler_pic_flag
657 ENABLE_STATIC_FALSE
658 ENABLE_STATIC_TRUE
659 ENABLE_SHARED_FALSE
660 ENABLE_SHARED_TRUE
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 OBJDUMP
668 LN_S
670 ac_ct_DUMPBIN
671 DUMPBIN
673 FGREP
674 EGREP
675 GREP
677 LIBTOOL
678 CFLAGS_FOR_BUILD
679 CC_FOR_BUILD
681 RANLIB
682 MAINT
683 MAINTAINER_MODE_FALSE
684 MAINTAINER_MODE_TRUE
685 GDCFLAGS
687 CCASFLAGS
688 CCAS
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_os
720 target_vendor
721 target_cpu
722 target
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 multi_basedir
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_multilib
774 enable_maintainer_mode
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 enable_libtool_lock
781 with_gcc_major_version_only
782 enable_werror
783 enable_druntime_gc
784 enable_unix
785 enable_thread_lib
786 with_libatomic
787 with_libbacktrace
788 with_target_system_zlib
789 with_cross_host
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CPPFLAGS'
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
846 ac_prev=
847 ac_dashdash=
848 for ac_option
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
866 ac_dashdash=yes ;;
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
885 --config-cache | -C)
886 cache_file=config.cache ;;
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information."
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 esac
1203 done
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error "missing argument to $ac_option"
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1289 /^X\(\/\/\)$/{
1290 s//\1/
1293 /^X\(\/\).*/{
1294 s//\1/
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1302 else
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1392 cat <<\_ACEOF
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1403 _ACEOF
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of package-unused version-unused:";;
1409 esac
1410 cat <<\_ACEOF
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-multilib build many library versions (default)
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --enable-werror turns on -Werror [default=no]
1425 --enable-druntime-gc enable D runtime garbage collector (default: yes)
1426 --enable-unix enables Unix runtime (default: yes, for Unix
1427 targets)
1428 --enable-thread-lib=<arg>
1429 specify linker option for the system thread library
1430 (default: autodetect)
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-gcc-major-version-only
1439 use only GCC major number in filesystem paths
1440 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1441 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1442 auto)
1443 --with-target-system-zlib
1444 use installed libz (default: no)
1445 --with-cross-host=HOST configuring with a cross compiler
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CCAS assembler compiler command (defaults to CC)
1456 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1457 GDC D compiler command
1458 GDCFLAGS D compiler flags
1459 CPP C preprocessor
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to the package provider.
1465 _ACEOF
1466 ac_status=$?
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 package-unused configure version-unused
1528 generated by GNU Autoconf 2.64
1530 Copyright (C) 2009 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=1
1574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 return $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_d_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_d_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_d_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1615 } # ac_fn_d_try_compile
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_link ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 $as_test_x conftest$ac_exeext
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655 # interfere with the next link command; also delete a directory that is
1656 # left behind by Apple's compiler. We do this before executing the actions.
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 return $ac_retval
1661 } # ac_fn_c_try_link
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } >/dev/null && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1729 } # ac_fn_c_try_cpp
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1771 } # ac_fn_c_try_run
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1801 #undef $2
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1818 main ()
1820 return $2 ();
1822 return 0;
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826 eval "$3=yes"
1827 else
1828 eval "$3=no"
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_check_func
1840 # ac_fn_d_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_d_try_link ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_d_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 $as_test_x conftest$ac_exeext
1868 }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 ac_retval=1
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1884 } # ac_fn_d_try_link
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914 else
1915 ac_header_compiler=no
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930 else
1931 ac_header_preproc=no
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 } # ac_fn_c_check_header_mongrel
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1976 It was created by package-unused $as_me version-unused, which was
1977 generated by GNU Autoconf 2.64. Invocation command line was
1979 $ $0 $@
1981 _ACEOF
1982 exec 5>>config.log
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2006 _ASUNAME
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2017 } >&5
2019 cat >&5 <<_ACEOF
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2026 _ACEOF
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2040 for ac_arg
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2069 as_fn_append ac_configure_args " '$ac_arg'"
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2085 echo
2087 cat <<\_ASBOX
2088 ## ---------------- ##
2089 ## Cache variables. ##
2090 ## ---------------- ##
2091 _ASBOX
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
2110 (set) 2>&1 |
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2113 sed -n \
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 esac |
2121 sort
2123 echo
2125 cat <<\_ASBOX
2126 ## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##
2129 _ASBOX
2130 echo
2131 for ac_var in $ac_subst_vars
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2141 if test -n "$ac_subst_files"; then
2142 cat <<\_ASBOX
2143 ## ------------------- ##
2144 ## File substitutions. ##
2145 ## ------------------- ##
2146 _ASBOX
2147 echo
2148 for ac_var in $ac_subst_files
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
2155 done | sort
2156 echo
2159 if test -s confdefs.h; then
2160 cat <<\_ASBOX
2161 ## ----------- ##
2162 ## confdefs.h. ##
2163 ## ----------- ##
2164 _ASBOX
2165 echo
2166 cat confdefs.h
2167 echo
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 ac_site_file1=$CONFIG_SITE
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229 test "x$ac_site_file" = xNONE && continue
2230 if test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file"
2236 done
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special
2240 # files actually), so we avoid doing that.
2241 if test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327 ac_config_headers="$ac_config_headers config.h"
2330 # Default to --enable-multilib
2331 # Check whether --enable-multilib was given.
2332 if test "${enable_multilib+set}" = set; then :
2333 enableval=$enable_multilib; case "$enableval" in
2334 yes) multilib=yes ;;
2335 no) multilib=no ;;
2336 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2337 esac
2338 else
2339 multilib=yes
2343 # We may get other options which we leave undocumented:
2344 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2345 # See config-ml.in if you want the gory details.
2347 if test "$srcdir" = "."; then
2348 if test "$with_target_subdir" != "."; then
2349 multi_basedir="$srcdir/$with_multisrctop../.."
2350 else
2351 multi_basedir="$srcdir/$with_multisrctop.."
2353 else
2354 multi_basedir="$srcdir/.."
2358 # Even if the default multilib is not a cross compilation,
2359 # it may be that some of the other multilibs are.
2360 if test $cross_compiling = no && test $multilib = yes \
2361 && test "x${with_multisubdir}" != x ; then
2362 cross_compiling=maybe
2365 ac_config_commands="$ac_config_commands default-1"
2367 ac_aux_dir=
2368 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2369 for ac_t in install-sh install.sh shtool; do
2370 if test -f "$ac_dir/$ac_t"; then
2371 ac_aux_dir=$ac_dir
2372 ac_install_sh="$ac_aux_dir/$ac_t -c"
2373 break 2
2375 done
2376 done
2377 if test -z "$ac_aux_dir"; then
2378 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2381 # These three variables are undocumented and unsupported,
2382 # and are intended to be withdrawn in a future Autoconf release.
2383 # They can cause serious problems if a builder's source tree is in a directory
2384 # whose full name contains unusual characters.
2385 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2386 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2387 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2390 # Make sure we can run config.sub.
2391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2392 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2395 $as_echo_n "checking build system type... " >&6; }
2396 if test "${ac_cv_build+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 ac_build_alias=$build_alias
2400 test "x$ac_build_alias" = x &&
2401 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2402 test "x$ac_build_alias" = x &&
2403 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2405 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2409 $as_echo "$ac_cv_build" >&6; }
2410 case $ac_cv_build in
2411 *-*-*) ;;
2412 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2413 esac
2414 build=$ac_cv_build
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_build
2417 shift
2418 build_cpu=$1
2419 build_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 build_os=$*
2424 IFS=$ac_save_IFS
2425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2429 $as_echo_n "checking host system type... " >&6; }
2430 if test "${ac_cv_host+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 if test "x$host_alias" = x; then
2434 ac_cv_host=$ac_cv_build
2435 else
2436 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2442 $as_echo "$ac_cv_host" >&6; }
2443 case $ac_cv_host in
2444 *-*-*) ;;
2445 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2446 esac
2447 host=$ac_cv_host
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_host
2450 shift
2451 host_cpu=$1
2452 host_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 host_os=$*
2457 IFS=$ac_save_IFS
2458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2462 $as_echo_n "checking target system type... " >&6; }
2463 if test "${ac_cv_target+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test "x$target_alias" = x; then
2467 ac_cv_target=$ac_cv_host
2468 else
2469 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2470 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2475 $as_echo "$ac_cv_target" >&6; }
2476 case $ac_cv_target in
2477 *-*-*) ;;
2478 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2479 esac
2480 target=$ac_cv_target
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_target
2483 shift
2484 target_cpu=$1
2485 target_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 target_os=$*
2490 IFS=$ac_save_IFS
2491 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2494 # The aliases save the names the user supplied, while $host etc.
2495 # will get canonicalized.
2496 test -n "$target_alias" &&
2497 test "$program_prefix$program_suffix$program_transform_name" = \
2498 NONENONEs,x,x, &&
2499 program_prefix=${target_alias}-
2502 target_alias=${target_alias-$target}
2505 # 1.11.1: Require that version of automake.
2506 # foreign: Don't require README, INSTALL, NEWS, etc.
2507 # no-define: Don't define PACKAGE and VERSION.
2508 # no-dependencies: Don't generate automatic dependencies.
2509 # (because it breaks when using bootstrap-lean, since some of the
2510 # headers are gone at "make install" time).
2511 # -Wall: Issue all automake warnings.
2512 # -Wno-portability: Don't warn about constructs supported by GNU make.
2513 # (because GCC requires GNU make anyhow).
2514 am__api_version='1.11'
2516 # Find a good install program. We prefer a C program (faster),
2517 # so one script is as good as another. But avoid the broken or
2518 # incompatible versions:
2519 # SysV /etc/install, /usr/sbin/install
2520 # SunOS /usr/etc/install
2521 # IRIX /sbin/install
2522 # AIX /bin/install
2523 # AmigaOS /C/install, which installs bootblocks on floppy discs
2524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527 # OS/2's system install, which has a completely different semantic
2528 # ./install, which can be erroneously created by make from ./install.sh.
2529 # Reject install programs that cannot install multiple files.
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2531 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2532 if test -z "$INSTALL"; then
2533 if test "${ac_cv_path_install+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 # Account for people who put trailing slashes in PATH elements.
2542 case $as_dir/ in #((
2543 ./ | .// | /[cC]/* | \
2544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2546 /usr/ucb/* ) ;;
2548 # OSF1 and SCO ODT 3.0 have their own names for install.
2549 # Don't use installbsd from OSF since it installs stuff as root
2550 # by default.
2551 for ac_prog in ginstall scoinst install; do
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2554 if test $ac_prog = install &&
2555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556 # AIX install. It has an incompatible calling convention.
2558 elif test $ac_prog = install &&
2559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560 # program-specific install script used by HP pwplus--don't use.
2562 else
2563 rm -rf conftest.one conftest.two conftest.dir
2564 echo one > conftest.one
2565 echo two > conftest.two
2566 mkdir conftest.dir
2567 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2568 test -s conftest.one && test -s conftest.two &&
2569 test -s conftest.dir/conftest.one &&
2570 test -s conftest.dir/conftest.two
2571 then
2572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2573 break 3
2577 done
2578 done
2580 esac
2582 done
2583 IFS=$as_save_IFS
2585 rm -rf conftest.one conftest.two conftest.dir
2588 if test "${ac_cv_path_install+set}" = set; then
2589 INSTALL=$ac_cv_path_install
2590 else
2591 # As a last resort, use the slow shell script. Don't cache a
2592 # value for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the value is a relative name.
2595 INSTALL=$ac_install_sh
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2599 $as_echo "$INSTALL" >&6; }
2601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602 # It thinks the first close brace ends the variable substitution.
2603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2610 $as_echo_n "checking whether build environment is sane... " >&6; }
2611 # Just in case
2612 sleep 1
2613 echo timestamp > conftest.file
2614 # Reject unsafe characters in $srcdir or the absolute working directory
2615 # name. Accept space and tab only in the latter.
2616 am_lf='
2618 case `pwd` in
2619 *[\\\"\#\$\&\'\`$am_lf]*)
2620 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2621 esac
2622 case $srcdir in
2623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2624 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2625 esac
2627 # Do `set' in a subshell so we don't clobber the current shell's
2628 # arguments. Must try -L first in case configure is actually a
2629 # symlink; some systems play weird games with the mod time of symlinks
2630 # (eg FreeBSD returns the mod time of the symlink's containing
2631 # directory).
2632 if (
2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2634 if test "$*" = "X"; then
2635 # -L didn't work.
2636 set X `ls -t "$srcdir/configure" conftest.file`
2638 rm -f conftest.file
2639 if test "$*" != "X $srcdir/configure conftest.file" \
2640 && test "$*" != "X conftest.file $srcdir/configure"; then
2642 # If neither matched, then we have a broken ls. This can happen
2643 # if, for instance, CONFIG_SHELL is bash and it inherits a
2644 # broken ls alias from the environment. This has actually
2645 # happened. Such a system could not be considered "sane".
2646 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2647 alias in your environment" "$LINENO" 5
2650 test "$2" = conftest.file
2652 then
2653 # Ok.
2655 else
2656 as_fn_error "newly created file is older than distributed files!
2657 Check your system clock" "$LINENO" 5
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660 $as_echo "yes" >&6; }
2661 test "$program_prefix" != NONE &&
2662 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2663 # Use a double $ so make ignores it.
2664 test "$program_suffix" != NONE &&
2665 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2666 # Double any \ or $.
2667 # By default was `s,x,x', remove it if useless.
2668 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2669 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2671 # expand $ac_aux_dir to an absolute path
2672 am_aux_dir=`cd $ac_aux_dir && pwd`
2674 if test x"${MISSING+set}" != xset; then
2675 case $am_aux_dir in
2676 *\ * | *\ *)
2677 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2679 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2680 esac
2682 # Use eval to expand $SHELL
2683 if eval "$MISSING --run true"; then
2684 am_missing_run="$MISSING --run "
2685 else
2686 am_missing_run=
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2688 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2691 if test x"${install_sh}" != xset; then
2692 case $am_aux_dir in
2693 *\ * | *\ *)
2694 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2696 install_sh="\${SHELL} $am_aux_dir/install-sh"
2697 esac
2700 # Installed binaries are usually stripped using `strip' when the user
2701 # run `make install-strip'. However `strip' might not be the right
2702 # tool to use in cross-compilation environments, therefore Automake
2703 # will honor the `STRIP' environment variable to overrule this program.
2704 if test "$cross_compiling" != no; then
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}strip; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if test "${ac_cv_prog_STRIP+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$STRIP"; then
2714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2727 done
2728 done
2729 IFS=$as_save_IFS
2733 STRIP=$ac_cv_prog_STRIP
2734 if test -n "$STRIP"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2736 $as_echo "$STRIP" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2744 if test -z "$ac_cv_prog_STRIP"; then
2745 ac_ct_STRIP=$STRIP
2746 # Extract the first word of "strip", so it can be a program name with args.
2747 set dummy strip; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$ac_ct_STRIP"; then
2754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_STRIP="strip"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2767 done
2768 done
2769 IFS=$as_save_IFS
2773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2774 if test -n "$ac_ct_STRIP"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2776 $as_echo "$ac_ct_STRIP" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2782 if test "x$ac_ct_STRIP" = x; then
2783 STRIP=":"
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786 yes:)
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2789 ac_tool_warned=yes ;;
2790 esac
2791 STRIP=$ac_ct_STRIP
2793 else
2794 STRIP="$ac_cv_prog_STRIP"
2798 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2801 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2802 if test -z "$MKDIR_P"; then
2803 if test "${ac_cv_path_mkdir+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_prog in mkdir gmkdir; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2814 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2815 'mkdir (GNU coreutils) '* | \
2816 'mkdir (coreutils) '* | \
2817 'mkdir (fileutils) '4.1*)
2818 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2819 break 3;;
2820 esac
2821 done
2822 done
2823 done
2824 IFS=$as_save_IFS
2828 if test "${ac_cv_path_mkdir+set}" = set; then
2829 MKDIR_P="$ac_cv_path_mkdir -p"
2830 else
2831 # As a last resort, use the slow shell script. Don't cache a
2832 # value for MKDIR_P within a source directory, because that will
2833 # break other packages using the cache if that directory is
2834 # removed, or if the value is a relative name.
2835 test -d ./--version && rmdir ./--version
2836 MKDIR_P="$ac_install_sh -d"
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2840 $as_echo "$MKDIR_P" >&6; }
2842 mkdir_p="$MKDIR_P"
2843 case $mkdir_p in
2844 [\\/$]* | ?:[\\/]*) ;;
2845 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2846 esac
2848 for ac_prog in gawk mawk nawk awk
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_AWK+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$AWK"; then
2858 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_AWK="$ac_prog"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2871 done
2872 done
2873 IFS=$as_save_IFS
2877 AWK=$ac_cv_prog_AWK
2878 if test -n "$AWK"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2880 $as_echo "$AWK" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2887 test -n "$AWK" && break
2888 done
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2891 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2892 set x ${MAKE-make}
2893 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2894 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 cat >conftest.make <<\_ACEOF
2898 SHELL = /bin/sh
2899 all:
2900 @echo '@@@%%%=$(MAKE)=@@@%%%'
2901 _ACEOF
2902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2904 *@@@%%%=?*=@@@%%%*)
2905 eval ac_cv_prog_make_${ac_make}_set=yes;;
2907 eval ac_cv_prog_make_${ac_make}_set=no;;
2908 esac
2909 rm -f conftest.make
2911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 SET_MAKE=
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 SET_MAKE="MAKE=${MAKE-make}"
2921 rm -rf .tst 2>/dev/null
2922 mkdir .tst 2>/dev/null
2923 if test -d .tst; then
2924 am__leading_dot=.
2925 else
2926 am__leading_dot=_
2928 rmdir .tst 2>/dev/null
2930 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2931 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2932 # is not polluted with repeated "-I."
2933 am__isrc=' -I$(srcdir)'
2934 # test to see if srcdir already configured
2935 if test -f $srcdir/config.status; then
2936 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2940 # test whether we have cygpath
2941 if test -z "$CYGPATH_W"; then
2942 if (cygpath --version) >/dev/null 2>/dev/null; then
2943 CYGPATH_W='cygpath -w'
2944 else
2945 CYGPATH_W=echo
2950 # Define the identity of the package.
2951 PACKAGE='libphobos'
2952 VERSION='version-unused'
2955 # Some tools Automake needs.
2957 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2960 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2963 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2966 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2969 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2971 # We need awk for the "check" target. The system "awk" is bad on
2972 # some platforms.
2973 # Always define AMTAR for backward compatibility. Yes, it's still used
2974 # in the wild :-( We should find a proper way to deprecate it ...
2975 AMTAR='$${TAR-tar}'
2977 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3013 done
3014 done
3015 IFS=$as_save_IFS
3019 CC=$ac_cv_prog_CC
3020 if test -n "$CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022 $as_echo "$CC" >&6; }
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3030 if test -z "$ac_cv_prog_CC"; then
3031 ac_ct_CC=$CC
3032 # Extract the first word of "gcc", so it can be a program name with args.
3033 set dummy gcc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_CC="gcc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060 if test -n "$ac_ct_CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3062 $as_echo "$ac_ct_CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3068 if test "x$ac_ct_CC" = x; then
3069 CC=""
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072 yes:)
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075 ac_tool_warned=yes ;;
3076 esac
3077 CC=$ac_ct_CC
3079 else
3080 CC="$ac_cv_prog_CC"
3083 if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}cc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_CC="${ac_tool_prefix}cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3124 if test -z "$CC"; then
3125 # Extract the first word of "cc", so it can be a program name with args.
3126 set dummy cc; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_CC+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 ac_prog_rejected=no
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3144 ac_prog_rejected=yes
3145 continue
3147 ac_cv_prog_CC="cc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3155 if test $ac_prog_rejected = yes; then
3156 # We found a bogon in the path, so make sure we never use it.
3157 set dummy $ac_cv_prog_CC
3158 shift
3159 if test $# != 0; then
3160 # We chose a different compiler from the bogus one.
3161 # However, it has the same basename, so the bogon will be chosen
3162 # first if we set CC to just the basename; use the full file name.
3163 shift
3164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3180 if test -z "$CC"; then
3181 if test -n "$ac_tool_prefix"; then
3182 for ac_prog in cl.exe
3184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3205 done
3206 done
3207 IFS=$as_save_IFS
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3221 test -n "$CC" && break
3222 done
3224 if test -z "$CC"; then
3225 ac_ct_CC=$CC
3226 for ac_prog in cl.exe
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229 set dummy $ac_prog; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$ac_ct_CC"; then
3236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_ac_ct_CC="$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256 if test -n "$ac_ct_CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3258 $as_echo "$ac_ct_CC" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3265 test -n "$ac_ct_CC" && break
3266 done
3268 if test "x$ac_ct_CC" = x; then
3269 CC=""
3270 else
3271 case $cross_compiling:$ac_tool_warned in
3272 yes:)
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275 ac_tool_warned=yes ;;
3276 esac
3277 CC=$ac_ct_CC
3284 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error "no acceptable C compiler found in \$PATH
3287 See \`config.log' for more details." "$LINENO" 5; }
3289 # Provide some information about the compiler.
3290 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3291 set X $ac_compile
3292 ac_compiler=$2
3293 for ac_option in --version -v -V -qversion; do
3294 { { ac_try="$ac_compiler $ac_option >&5"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3302 ac_status=$?
3303 if test -s conftest.err; then
3304 sed '10a\
3305 ... rest of stderr output deleted ...
3306 10q' conftest.err >conftest.er1
3307 cat conftest.er1 >&5
3308 rm -f conftest.er1 conftest.err
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }
3312 done
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3329 # of exeext.
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337 ac_rmfiles=
3338 for ac_file in $ac_files
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3343 esac
3344 done
3345 rm -f $ac_rmfiles
3347 if { { ac_try="$ac_link_default"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_link_default") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3362 # Autoconf.
3363 for ac_file in $ac_files ''
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369 [ab].out )
3370 # We found the default executable, but exeext='' is most
3371 # certainly right.
3372 break;;
3373 *.* )
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 then :; else
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3382 # actually working.
3383 break;;
3385 break;;
3386 esac
3387 done
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3390 else
3391 ac_file=''
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3394 $as_echo "$ac_file" >&6; }
3395 if test -z "$ac_file"; then :
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { as_fn_set_status 77
3402 as_fn_error "C compiler cannot create executables
3403 See \`config.log' for more details." "$LINENO" 5; }; }
3405 ac_exeext=$ac_cv_exeext
3407 # Check that the compiler produces executables we can run. If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 # If not cross compiling, check that we can run a simple program.
3412 if test "$cross_compiling" != yes; then
3413 if { ac_try='./$ac_file'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3424 cross_compiling=no
3425 else
3426 if test "$cross_compiling" = maybe; then
3427 cross_compiling=yes
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error "cannot run C compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details." "$LINENO" 5; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3440 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445 $as_echo_n "checking whether we are cross compiling... " >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3447 $as_echo "$cross_compiling" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450 $as_echo_n "checking for suffix of executables... " >&6; }
3451 if { { ac_try="$ac_link"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3459 ac_status=$?
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3464 # work properly (i.e., refer to `conftest.exe'), while it won't with
3465 # `rm'.
3466 for ac_file in conftest.exe conftest conftest.*; do
3467 test -f "$ac_file" || continue
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 break;;
3472 * ) break;;
3473 esac
3474 done
3475 else
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error "cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details." "$LINENO" 5; }
3481 rm -f conftest$ac_cv_exeext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483 $as_echo "$ac_cv_exeext" >&6; }
3485 rm -f conftest.$ac_ext
3486 EXEEXT=$ac_cv_exeext
3487 ac_exeext=$EXEEXT
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3489 $as_echo_n "checking for suffix of object files... " >&6; }
3490 if test "${ac_cv_objext+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 main ()
3501 return 0;
3503 _ACEOF
3504 rm -f conftest.o conftest.obj
3505 if { { ac_try="$ac_compile"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compile") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 for ac_file in conftest.o conftest.obj conftest.*; do
3517 test -f "$ac_file" || continue;
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3520 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 break;;
3522 esac
3523 done
3524 else
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error "cannot compute suffix of object files: cannot compile
3531 See \`config.log' for more details." "$LINENO" 5; }
3533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3536 $as_echo "$ac_cv_objext" >&6; }
3537 OBJEXT=$ac_cv_objext
3538 ac_objext=$OBJEXT
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3540 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3541 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 main ()
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3555 return 0;
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_compiler_gnu=yes
3560 else
3561 ac_compiler_gnu=no
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3568 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3569 if test $ac_compiler_gnu = yes; then
3570 GCC=yes
3571 else
3572 GCC=
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3577 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3578 if test "${ac_cv_prog_cc_g+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 ac_save_c_werror_flag=$ac_c_werror_flag
3582 ac_c_werror_flag=yes
3583 ac_cv_prog_cc_g=no
3584 CFLAGS="-g"
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3589 main ()
3593 return 0;
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_g=yes
3598 else
3599 CFLAGS=""
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 if ac_fn_c_try_compile "$LINENO"; then :
3613 else
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615 CFLAGS="-g"
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3620 main ()
3624 return 0;
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628 ac_cv_prog_cc_g=yes
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3638 $as_echo "$ac_cv_prog_cc_g" >&6; }
3639 if test "$ac_test_CFLAGS" = set; then
3640 CFLAGS=$ac_save_CFLAGS
3641 elif test $ac_cv_prog_cc_g = yes; then
3642 if test "$GCC" = yes; then
3643 CFLAGS="-g -O2"
3644 else
3645 CFLAGS="-g"
3647 else
3648 if test "$GCC" = yes; then
3649 CFLAGS="-O2"
3650 else
3651 CFLAGS=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3656 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_cv_prog_cc_c89=no
3660 ac_save_CC=$CC
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <stdarg.h>
3664 #include <stdio.h>
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3668 struct buf { int x; };
3669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670 static char *e (p, i)
3671 char **p;
3672 int i;
3674 return p[i];
3676 static char *f (char * (*g) (char **, int), char **p, ...)
3678 char *s;
3679 va_list v;
3680 va_start (v,p);
3681 s = g (p, va_arg (v,int));
3682 va_end (v);
3683 return s;
3686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3687 function prototypes and stuff, but not '\xHH' hex character constants.
3688 These don't provoke an error unfortunately, instead are silently treated
3689 as 'x'. The following induces an error, until -std is added to get
3690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3691 array size at least. It's necessary to write '\x00'==0 to get something
3692 that's true only with -std. */
3693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696 inside strings and character constants. */
3697 #define FOO(x) 'x'
3698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 int argc;
3705 char **argv;
3707 main ()
3709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3711 return 0;
3713 _ACEOF
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_cv_prog_cc_c89=$ac_arg
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c89" in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740 esac
3741 if test "x$ac_cv_prog_cc_c89" != xno; then :
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 # By default we simply use the C compiler to build assembly code.
3753 test "${CCAS+set}" = set || CCAS=$CC
3754 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3758 ac_ext=c
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 if test -n "$ac_tool_prefix"; then
3764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if test "${ac_cv_prog_CC+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC="$CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3785 done
3786 done
3787 IFS=$as_save_IFS
3791 CC=$ac_cv_prog_CC
3792 if test -n "$CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794 $as_echo "$CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3802 if test -z "$ac_cv_prog_CC"; then
3803 ac_ct_CC=$CC
3804 # Extract the first word of "gcc", so it can be a program name with args.
3805 set dummy gcc; ac_word=$2
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 $as_echo_n "checking for $ac_word... " >&6; }
3808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 if test -n "$ac_ct_CC"; then
3812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_ac_ct_CC="gcc"
3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3825 done
3826 done
3827 IFS=$as_save_IFS
3831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3832 if test -n "$ac_ct_CC"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3834 $as_echo "$ac_ct_CC" >&6; }
3835 else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3840 if test "x$ac_ct_CC" = x; then
3841 CC=""
3842 else
3843 case $cross_compiling:$ac_tool_warned in
3844 yes:)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847 ac_tool_warned=yes ;;
3848 esac
3849 CC=$ac_ct_CC
3851 else
3852 CC="$ac_cv_prog_CC"
3855 if test -z "$CC"; then
3856 if test -n "$ac_tool_prefix"; then
3857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3858 set dummy ${ac_tool_prefix}cc; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if test "${ac_cv_prog_CC+set}" = set; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -n "$CC"; then
3865 ac_cv_prog_CC="$CC" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_CC="${ac_tool_prefix}cc"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3878 done
3879 done
3880 IFS=$as_save_IFS
3884 CC=$ac_cv_prog_CC
3885 if test -n "$CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887 $as_echo "$CC" >&6; }
3888 else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3896 if test -z "$CC"; then
3897 # Extract the first word of "cc", so it can be a program name with args.
3898 set dummy cc; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if test "${ac_cv_prog_CC+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 if test -n "$CC"; then
3905 ac_cv_prog_CC="$CC" # Let the user override the test.
3906 else
3907 ac_prog_rejected=no
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3916 ac_prog_rejected=yes
3917 continue
3919 ac_cv_prog_CC="cc"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3923 done
3924 done
3925 IFS=$as_save_IFS
3927 if test $ac_prog_rejected = yes; then
3928 # We found a bogon in the path, so make sure we never use it.
3929 set dummy $ac_cv_prog_CC
3930 shift
3931 if test $# != 0; then
3932 # We chose a different compiler from the bogus one.
3933 # However, it has the same basename, so the bogon will be chosen
3934 # first if we set CC to just the basename; use the full file name.
3935 shift
3936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3941 CC=$ac_cv_prog_CC
3942 if test -n "$CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944 $as_echo "$CC" >&6; }
3945 else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3952 if test -z "$CC"; then
3953 if test -n "$ac_tool_prefix"; then
3954 for ac_prog in cl.exe
3956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if test "${ac_cv_prog_CC+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3977 done
3978 done
3979 IFS=$as_save_IFS
3983 CC=$ac_cv_prog_CC
3984 if test -n "$CC"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3986 $as_echo "$CC" >&6; }
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3993 test -n "$CC" && break
3994 done
3996 if test -z "$CC"; then
3997 ac_ct_CC=$CC
3998 for ac_prog in cl.exe
4000 # Extract the first word of "$ac_prog", so it can be a program name with args.
4001 set dummy $ac_prog; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -n "$ac_ct_CC"; then
4008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017 ac_cv_prog_ac_ct_CC="$ac_prog"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4021 done
4022 done
4023 IFS=$as_save_IFS
4027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4028 if test -n "$ac_ct_CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030 $as_echo "$ac_ct_CC" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4037 test -n "$ac_ct_CC" && break
4038 done
4040 if test "x$ac_ct_CC" = x; then
4041 CC=""
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044 yes:)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4048 esac
4049 CC=$ac_ct_CC
4056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error "no acceptable C compiler found in \$PATH
4059 See \`config.log' for more details." "$LINENO" 5; }
4061 # Provide some information about the compiler.
4062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4063 set X $ac_compile
4064 ac_compiler=$2
4065 for ac_option in --version -v -V -qversion; do
4066 { { ac_try="$ac_compiler $ac_option >&5"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4074 ac_status=$?
4075 if test -s conftest.err; then
4076 sed '10a\
4077 ... rest of stderr output deleted ...
4078 10q' conftest.err >conftest.er1
4079 cat conftest.er1 >&5
4080 rm -f conftest.er1 conftest.err
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }
4084 done
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4088 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4097 #ifndef __GNUC__
4098 choke me
4099 #endif
4102 return 0;
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_compiler_gnu=yes
4107 else
4108 ac_compiler_gnu=no
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4116 if test $ac_compiler_gnu = yes; then
4117 GCC=yes
4118 else
4119 GCC=
4121 ac_test_CFLAGS=${CFLAGS+set}
4122 ac_save_CFLAGS=$CFLAGS
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4125 if test "${ac_cv_prog_cc_g+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4130 ac_cv_prog_cc_g=no
4131 CFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 main ()
4140 return 0;
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_prog_cc_g=yes
4145 else
4146 CFLAGS=""
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 main ()
4155 return 0;
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4160 else
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 main ()
4171 return 0;
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185 $as_echo "$ac_cv_prog_cc_g" >&6; }
4186 if test "$ac_test_CFLAGS" = set; then
4187 CFLAGS=$ac_save_CFLAGS
4188 elif test $ac_cv_prog_cc_g = yes; then
4189 if test "$GCC" = yes; then
4190 CFLAGS="-g -O2"
4191 else
4192 CFLAGS="-g"
4194 else
4195 if test "$GCC" = yes; then
4196 CFLAGS="-O2"
4197 else
4198 CFLAGS=
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4203 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 ac_cv_prog_cc_c89=no
4207 ac_save_CC=$CC
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <stdarg.h>
4211 #include <stdio.h>
4212 #include <sys/types.h>
4213 #include <sys/stat.h>
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4218 char **p;
4219 int i;
4221 return p[i];
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4225 char *s;
4226 va_list v;
4227 va_start (v,p);
4228 s = g (p, va_arg (v,int));
4229 va_end (v);
4230 return s;
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4244 #define FOO(x) 'x'
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 int argc;
4252 char **argv;
4254 main ()
4256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4258 return 0;
4260 _ACEOF
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_c89=$ac_arg
4268 rm -f core conftest.err conftest.$ac_objext
4269 test "x$ac_cv_prog_cc_c89" != "xno" && break
4270 done
4271 rm -f conftest.$ac_ext
4272 CC=$ac_save_CC
4275 # AC_CACHE_VAL
4276 case "x$ac_cv_prog_cc_c89" in
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279 $as_echo "none needed" >&6; } ;;
4280 xno)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 $as_echo "unsupported" >&6; } ;;
4284 CC="$CC $ac_cv_prog_cc_c89"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4287 esac
4288 if test "x$ac_cv_prog_cc_c89" != xno; then :
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 ac_ext=d
4299 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4300 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=yes
4302 if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_prog_GDC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$GDC"; then
4311 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4324 done
4325 done
4326 IFS=$as_save_IFS
4330 GDC=$ac_cv_prog_GDC
4331 if test -n "$GDC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4333 $as_echo "$GDC" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4341 if test -z "$ac_cv_prog_GDC"; then
4342 ac_ct_GDC=$GDC
4343 # Extract the first word of "gdc", so it can be a program name with args.
4344 set dummy gdc; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if test "${ac_cv_prog_ac_ct_GDC+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$ac_ct_GDC"; then
4351 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ac_ct_GDC="gdc"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
4371 if test -n "$ac_ct_GDC"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
4373 $as_echo "$ac_ct_GDC" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4379 if test "x$ac_ct_GDC" = x; then
4380 GDC=""
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383 yes:)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4387 esac
4388 GDC=$ac_ct_GDC
4390 else
4391 GDC="$ac_cv_prog_GDC"
4394 if test -z "$GDC"; then
4395 if test -n "$ac_tool_prefix"; then
4396 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
4397 set dummy ${ac_tool_prefix}gdc; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_GDC+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -n "$GDC"; then
4404 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4423 GDC=$ac_cv_prog_GDC
4424 if test -n "$GDC"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4426 $as_echo "$GDC" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4435 if test -z "$GDC"; then
4436 # Extract the first word of "gdc", so it can be a program name with args.
4437 set dummy gdc; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_GDC+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$GDC"; then
4444 ac_cv_prog_GDC="$GDC" # Let the user override the test.
4445 else
4446 ac_prog_rejected=no
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4455 ac_prog_rejected=yes
4456 continue
4458 ac_cv_prog_GDC="gdc"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4466 if test $ac_prog_rejected = yes; then
4467 # We found a bogon in the path, so make sure we never use it.
4468 set dummy $ac_cv_prog_GDC
4469 shift
4470 if test $# != 0; then
4471 # We chose a different compiler from the bogus one.
4472 # However, it has the same basename, so the bogon will be chosen
4473 # first if we set GDC to just the basename; use the full file name.
4474 shift
4475 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
4480 GDC=$ac_cv_prog_GDC
4481 if test -n "$GDC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
4483 $as_echo "$GDC" >&6; }
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 { { ac_try="$ac_compiler --version >&5"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler --version >&5") 2>conftest.err
4505 ac_status=$?
4506 if test -s conftest.err; then
4507 sed '10a\
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
4523 $as_echo_n "checking for absolute libphobos source path... " >&6; }
4524 if test "${phobos_cv_abs_srcdir+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
4530 $as_echo "$phobos_cv_abs_srcdir" >&6; }
4531 if test -d "$phobos_cv_abs_srcdir"; then :
4533 else
4534 as_fn_error "can't find absolute libphobos source path" "$LINENO" 5
4540 gdc_save_DFLAGS=$GDCFLAGS
4541 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
4543 ac_ext=d
4544 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
4545 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=yes
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
4549 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
4550 cat > conftest.$ac_ext <<_ACEOF
4551 module mod;
4554 extern(C) int main() {
4555 return 0;
4557 _ACEOF
4558 if ac_fn_d_try_compile "$LINENO"; then :
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4560 $as_echo "yes" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 as_fn_error "can't compile D sources!" "$LINENO" 5
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_ext=c
4568 ac_cpp='$CPP $CPPFLAGS'
4569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 GDCFLAGS=$gdc_save_DFLAGS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4582 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4583 # Check whether --enable-maintainer-mode was given.
4584 if test "${enable_maintainer_mode+set}" = set; then :
4585 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4586 else
4587 USE_MAINTAINER_MODE=no
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4591 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4592 if test $USE_MAINTAINER_MODE = yes; then
4593 MAINTAINER_MODE_TRUE=
4594 MAINTAINER_MODE_FALSE='#'
4595 else
4596 MAINTAINER_MODE_TRUE='#'
4597 MAINTAINER_MODE_FALSE=
4600 MAINT=$MAINTAINER_MODE_TRUE
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$RANLIB"; then
4612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4627 IFS=$as_save_IFS
4631 RANLIB=$ac_cv_prog_RANLIB
4632 if test -n "$RANLIB"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4634 $as_echo "$RANLIB" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4642 if test -z "$ac_cv_prog_RANLIB"; then
4643 ac_ct_RANLIB=$RANLIB
4644 # Extract the first word of "ranlib", so it can be a program name with args.
4645 set dummy ranlib; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$ac_ct_RANLIB"; then
4652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_ac_ct_RANLIB="ranlib"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4665 done
4666 done
4667 IFS=$as_save_IFS
4671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4672 if test -n "$ac_ct_RANLIB"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4674 $as_echo "$ac_ct_RANLIB" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4680 if test "x$ac_ct_RANLIB" = x; then
4681 RANLIB=":"
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 RANLIB=$ac_ct_RANLIB
4691 else
4692 RANLIB="$ac_cv_prog_RANLIB"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4697 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4698 set x ${MAKE-make}
4699 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4700 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 cat >conftest.make <<\_ACEOF
4704 SHELL = /bin/sh
4705 all:
4706 @echo '@@@%%%=$(MAKE)=@@@%%%'
4707 _ACEOF
4708 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4709 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4710 *@@@%%%=?*=@@@%%%*)
4711 eval ac_cv_prog_make_${ac_make}_set=yes;;
4713 eval ac_cv_prog_make_${ac_make}_set=no;;
4714 esac
4715 rm -f conftest.make
4717 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4719 $as_echo "yes" >&6; }
4720 SET_MAKE=
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 SET_MAKE="MAKE=${MAKE-make}"
4728 # This should be inherited in the recursive make, but ensure it is defined.
4729 test "$AR" || AR=ar
4732 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
4736 # Enable libtool
4737 case `pwd` in
4738 *\ * | *\ *)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4740 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4741 esac
4745 macro_version='2.2.7a'
4746 macro_revision='1.3134'
4760 ltmain="$ac_aux_dir/ltmain.sh"
4762 # Backslashify metacharacters that are still active within
4763 # double-quoted strings.
4764 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4766 # Same as above, but do not quote variable references.
4767 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4769 # Sed substitution to delay expansion of an escaped shell variable in a
4770 # double_quote_subst'ed string.
4771 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4773 # Sed substitution to delay expansion of an escaped single quote.
4774 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4776 # Sed substitution to avoid accidental globbing in evaled expressions
4777 no_glob_subst='s/\*/\\\*/g'
4779 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4780 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4781 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4784 $as_echo_n "checking how to print strings... " >&6; }
4785 # Test print first, because it will be a builtin if present.
4786 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4787 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4788 ECHO='print -r --'
4789 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4790 ECHO='printf %s\n'
4791 else
4792 # Use this function as a fallback that always works.
4793 func_fallback_echo ()
4795 eval 'cat <<_LTECHO_EOF
4797 _LTECHO_EOF'
4799 ECHO='func_fallback_echo'
4802 # func_echo_all arg...
4803 # Invoke $ECHO with all args, space-separated.
4804 func_echo_all ()
4806 $ECHO ""
4809 case "$ECHO" in
4810 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4811 $as_echo "printf" >&6; } ;;
4812 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4813 $as_echo "print -r" >&6; } ;;
4814 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4815 $as_echo "cat" >&6; } ;;
4816 esac
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4832 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4833 if test "${ac_cv_path_SED+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837 for ac_i in 1 2 3 4 5 6 7; do
4838 ac_script="$ac_script$as_nl$ac_script"
4839 done
4840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841 { ac_script=; unset ac_script;}
4842 if test -z "$SED"; then
4843 ac_path_SED_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in sed gsed; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4853 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4854 # Check for GNU ac_path_SED and select it if it is found.
4855 # Check for GNU $ac_path_SED
4856 case `"$ac_path_SED" --version 2>&1` in
4857 *GNU*)
4858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4860 ac_count=0
4861 $as_echo_n 0123456789 >"conftest.in"
4862 while :
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo '' >> "conftest.nl"
4868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 as_fn_arith $ac_count + 1 && ac_count=$as_val
4871 if test $ac_count -gt ${ac_path_SED_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_SED="$ac_path_SED"
4874 ac_path_SED_max=$ac_count
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4878 done
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 esac
4882 $ac_path_SED_found && break 3
4883 done
4884 done
4885 done
4886 IFS=$as_save_IFS
4887 if test -z "$ac_cv_path_SED"; then
4888 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4890 else
4891 ac_cv_path_SED=$SED
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4896 $as_echo "$ac_cv_path_SED" >&6; }
4897 SED="$ac_cv_path_SED"
4898 rm -f conftest.sed
4900 test -z "$SED" && SED=sed
4901 Xsed="$SED -e 1s/^X//"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4915 if test "${ac_cv_path_GREP+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -z "$GREP"; then
4919 ac_path_GREP_found=false
4920 # Loop through the user's path and test for each of PROGNAME-LIST
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_prog in grep ggrep; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930 # Check for GNU ac_path_GREP and select it if it is found.
4931 # Check for GNU $ac_path_GREP
4932 case `"$ac_path_GREP" --version 2>&1` in
4933 *GNU*)
4934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4936 ac_count=0
4937 $as_echo_n 0123456789 >"conftest.in"
4938 while :
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 $as_echo 'GREP' >> "conftest.nl"
4944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 as_fn_arith $ac_count + 1 && ac_count=$as_val
4947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_GREP="$ac_path_GREP"
4950 ac_path_GREP_max=$ac_count
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4954 done
4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 esac
4958 $ac_path_GREP_found && break 3
4959 done
4960 done
4961 done
4962 IFS=$as_save_IFS
4963 if test -z "$ac_cv_path_GREP"; then
4964 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4966 else
4967 ac_cv_path_GREP=$GREP
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4972 $as_echo "$ac_cv_path_GREP" >&6; }
4973 GREP="$ac_cv_path_GREP"
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4977 $as_echo_n "checking for egrep... " >&6; }
4978 if test "${ac_cv_path_EGREP+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4982 then ac_cv_path_EGREP="$GREP -E"
4983 else
4984 if test -z "$EGREP"; then
4985 ac_path_EGREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in egrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4996 # Check for GNU ac_path_EGREP and select it if it is found.
4997 # Check for GNU $ac_path_EGREP
4998 case `"$ac_path_EGREP" --version 2>&1` in
4999 *GNU*)
5000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5002 ac_count=0
5003 $as_echo_n 0123456789 >"conftest.in"
5004 while :
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'EGREP' >> "conftest.nl"
5010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_EGREP="$ac_path_EGREP"
5016 ac_path_EGREP_max=$ac_count
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5020 done
5021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 esac
5024 $ac_path_EGREP_found && break 3
5025 done
5026 done
5027 done
5028 IFS=$as_save_IFS
5029 if test -z "$ac_cv_path_EGREP"; then
5030 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5032 else
5033 ac_cv_path_EGREP=$EGREP
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5039 $as_echo "$ac_cv_path_EGREP" >&6; }
5040 EGREP="$ac_cv_path_EGREP"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5044 $as_echo_n "checking for fgrep... " >&6; }
5045 if test "${ac_cv_path_FGREP+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5049 then ac_cv_path_FGREP="$GREP -F"
5050 else
5051 if test -z "$FGREP"; then
5052 ac_path_FGREP_found=false
5053 # Loop through the user's path and test for each of PROGNAME-LIST
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_prog in fgrep; do
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5062 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5063 # Check for GNU ac_path_FGREP and select it if it is found.
5064 # Check for GNU $ac_path_FGREP
5065 case `"$ac_path_FGREP" --version 2>&1` in
5066 *GNU*)
5067 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5069 ac_count=0
5070 $as_echo_n 0123456789 >"conftest.in"
5071 while :
5073 cat "conftest.in" "conftest.in" >"conftest.tmp"
5074 mv "conftest.tmp" "conftest.in"
5075 cp "conftest.in" "conftest.nl"
5076 $as_echo 'FGREP' >> "conftest.nl"
5077 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5079 as_fn_arith $ac_count + 1 && ac_count=$as_val
5080 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5081 # Best one so far, save it but keep looking for a better one
5082 ac_cv_path_FGREP="$ac_path_FGREP"
5083 ac_path_FGREP_max=$ac_count
5085 # 10*(2^10) chars as input seems more than enough
5086 test $ac_count -gt 10 && break
5087 done
5088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5089 esac
5091 $ac_path_FGREP_found && break 3
5092 done
5093 done
5094 done
5095 IFS=$as_save_IFS
5096 if test -z "$ac_cv_path_FGREP"; then
5097 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 else
5100 ac_cv_path_FGREP=$FGREP
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5106 $as_echo "$ac_cv_path_FGREP" >&6; }
5107 FGREP="$ac_cv_path_FGREP"
5110 test -z "$GREP" && GREP=grep
5130 # Check whether --with-gnu-ld was given.
5131 if test "${with_gnu_ld+set}" = set; then :
5132 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5133 else
5134 with_gnu_ld=no
5137 ac_prog=ld
5138 if test "$GCC" = yes; then
5139 # Check if gcc -print-prog-name=ld gives a path.
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5141 $as_echo_n "checking for ld used by $CC... " >&6; }
5142 case $host in
5143 *-*-mingw*)
5144 # gcc leaves a trailing carriage return which upsets mingw
5145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5148 esac
5149 case $ac_prog in
5150 # Accept absolute paths.
5151 [\\/]* | ?:[\\/]*)
5152 re_direlt='/[^/][^/]*/\.\./'
5153 # Canonicalize the pathname of ld
5154 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5155 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5156 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5157 done
5158 test -z "$LD" && LD="$ac_prog"
5161 # If it fails, then pretend we aren't using GCC.
5162 ac_prog=ld
5165 # If it is relative, then search for the first ld in PATH.
5166 with_gnu_ld=unknown
5168 esac
5169 elif test "$with_gnu_ld" = yes; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5171 $as_echo_n "checking for GNU ld... " >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5174 $as_echo_n "checking for non-GNU ld... " >&6; }
5176 if test "${lt_cv_path_LD+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -z "$LD"; then
5180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5181 for ac_dir in $PATH; do
5182 IFS="$lt_save_ifs"
5183 test -z "$ac_dir" && ac_dir=.
5184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5185 lt_cv_path_LD="$ac_dir/$ac_prog"
5186 # Check to see if the program is GNU ld. I'd rather use --version,
5187 # but apparently some variants of GNU ld only accept -v.
5188 # Break only if it was the GNU/non-GNU ld that we prefer.
5189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5190 *GNU* | *'with BFD'*)
5191 test "$with_gnu_ld" != no && break
5194 test "$with_gnu_ld" != yes && break
5196 esac
5198 done
5199 IFS="$lt_save_ifs"
5200 else
5201 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5205 LD="$lt_cv_path_LD"
5206 if test -n "$LD"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5208 $as_echo "$LD" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5213 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5215 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5216 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5220 case `$LD -v 2>&1 </dev/null` in
5221 *GNU* | *'with BFD'*)
5222 lt_cv_prog_gnu_ld=yes
5225 lt_cv_prog_gnu_ld=no
5227 esac
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5230 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5231 with_gnu_ld=$lt_cv_prog_gnu_ld
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5242 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5243 if test "${lt_cv_path_NM+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$NM"; then
5247 # Let the user override the test.
5248 lt_cv_path_NM="$NM"
5249 else
5250 lt_nm_to_check="${ac_tool_prefix}nm"
5251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5252 lt_nm_to_check="$lt_nm_to_check nm"
5254 for lt_tmp_nm in $lt_nm_to_check; do
5255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5257 IFS="$lt_save_ifs"
5258 test -z "$ac_dir" && ac_dir=.
5259 tmp_nm="$ac_dir/$lt_tmp_nm"
5260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5261 # Check to see if the nm accepts a BSD-compat flag.
5262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5263 # nm: unknown option "B" ignored
5264 # Tru64's nm complains that /dev/null is an invalid object file
5265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5266 */dev/null* | *'Invalid file or object type'*)
5267 lt_cv_path_NM="$tmp_nm -B"
5268 break
5271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5272 */dev/null*)
5273 lt_cv_path_NM="$tmp_nm -p"
5274 break
5277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5278 continue # so that we can try to find one that supports BSD flags
5280 esac
5282 esac
5284 done
5285 IFS="$lt_save_ifs"
5286 done
5287 : ${lt_cv_path_NM=no}
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5291 $as_echo "$lt_cv_path_NM" >&6; }
5292 if test "$lt_cv_path_NM" != "no"; then
5293 NM="$lt_cv_path_NM"
5294 else
5295 # Didn't find any BSD compatible name lister, look for dumpbin.
5296 if test -n "$DUMPBIN"; then :
5297 # Let the user override the test.
5298 else
5299 if test -n "$ac_tool_prefix"; then
5300 for ac_prog in dumpbin "link -dump"
5302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test -n "$DUMPBIN"; then
5310 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5323 done
5324 done
5325 IFS=$as_save_IFS
5329 DUMPBIN=$ac_cv_prog_DUMPBIN
5330 if test -n "$DUMPBIN"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5332 $as_echo "$DUMPBIN" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5339 test -n "$DUMPBIN" && break
5340 done
5342 if test -z "$DUMPBIN"; then
5343 ac_ct_DUMPBIN=$DUMPBIN
5344 for ac_prog in dumpbin "link -dump"
5346 # Extract the first word of "$ac_prog", so it can be a program name with args.
5347 set dummy $ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$ac_ct_DUMPBIN"; then
5354 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5374 if test -n "$ac_ct_DUMPBIN"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5376 $as_echo "$ac_ct_DUMPBIN" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 test -n "$ac_ct_DUMPBIN" && break
5384 done
5386 if test "x$ac_ct_DUMPBIN" = x; then
5387 DUMPBIN=":"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390 yes:)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5394 esac
5395 DUMPBIN=$ac_ct_DUMPBIN
5399 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5400 *COFF*)
5401 DUMPBIN="$DUMPBIN -symbols"
5404 DUMPBIN=:
5406 esac
5409 if test "$DUMPBIN" != ":"; then
5410 NM="$DUMPBIN"
5413 test -z "$NM" && NM=nm
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5421 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5422 if test "${lt_cv_nm_interface+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 lt_cv_nm_interface="BSD nm"
5426 echo "int some_variable = 0;" > conftest.$ac_ext
5427 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5428 (eval "$ac_compile" 2>conftest.err)
5429 cat conftest.err >&5
5430 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5431 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5432 cat conftest.err >&5
5433 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5434 cat conftest.out >&5
5435 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5436 lt_cv_nm_interface="MS dumpbin"
5438 rm -f conftest*
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5441 $as_echo "$lt_cv_nm_interface" >&6; }
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5444 $as_echo_n "checking whether ln -s works... " >&6; }
5445 LN_S=$as_ln_s
5446 if test "$LN_S" = "ln -s"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5451 $as_echo "no, using $LN_S" >&6; }
5454 # find the maximum length of command line arguments
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5456 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5461 teststring="ABCD"
5463 case $build_os in
5464 msdosdjgpp*)
5465 # On DJGPP, this test can blow up pretty badly due to problems in libc
5466 # (any single argument exceeding 2000 bytes causes a buffer overrun
5467 # during glob expansion). Even if it were fixed, the result of this
5468 # check would be larger than it should be.
5469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5472 gnu*)
5473 # Under GNU Hurd, this test is not required because there is
5474 # no limit to the length of command line arguments.
5475 # Libtool will interpret -1 as no limit whatsoever
5476 lt_cv_sys_max_cmd_len=-1;
5479 cygwin* | mingw* | cegcc*)
5480 # On Win9x/ME, this test blows up -- it succeeds, but takes
5481 # about 5 minutes as the teststring grows exponentially.
5482 # Worse, since 9x/ME are not pre-emptively multitasking,
5483 # you end up with a "frozen" computer, even though with patience
5484 # the test eventually succeeds (with a max line length of 256k).
5485 # Instead, let's just punt: use the minimum linelength reported by
5486 # all of the supported platforms: 8192 (on NT/2K/XP).
5487 lt_cv_sys_max_cmd_len=8192;
5490 mint*)
5491 # On MiNT this can take a long time and run out of memory.
5492 lt_cv_sys_max_cmd_len=8192;
5495 amigaos*)
5496 # On AmigaOS with pdksh, this test takes hours, literally.
5497 # So we just punt and use a minimum line length of 8192.
5498 lt_cv_sys_max_cmd_len=8192;
5501 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5502 # This has been around since 386BSD, at least. Likely further.
5503 if test -x /sbin/sysctl; then
5504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5505 elif test -x /usr/sbin/sysctl; then
5506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5507 else
5508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5510 # And add a safety zone
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5515 interix*)
5516 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5517 lt_cv_sys_max_cmd_len=196608
5520 osf*)
5521 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5522 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5523 # nice to cause kernel panics so lets avoid the loop below.
5524 # First set a reasonable default.
5525 lt_cv_sys_max_cmd_len=16384
5527 if test -x /sbin/sysconfig; then
5528 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5529 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5530 esac
5533 sco3.2v5*)
5534 lt_cv_sys_max_cmd_len=102400
5536 sysv5* | sco5v6* | sysv4.2uw2*)
5537 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5538 if test -n "$kargmax"; then
5539 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5540 else
5541 lt_cv_sys_max_cmd_len=32768
5545 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5546 if test -n "$lt_cv_sys_max_cmd_len"; then
5547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5549 else
5550 # Make teststring a little bigger before we do anything with it.
5551 # a 1K string should be a reasonable start.
5552 for i in 1 2 3 4 5 6 7 8 ; do
5553 teststring=$teststring$teststring
5554 done
5555 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5556 # If test is not a shell built-in, we'll probably end up computing a
5557 # maximum length that is only half of the actual maximum length, but
5558 # we can't tell.
5559 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5560 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5561 test $i != 17 # 1/2 MB should be enough
5563 i=`expr $i + 1`
5564 teststring=$teststring$teststring
5565 done
5566 # Only check the string length outside the loop.
5567 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5568 teststring=
5569 # Add a significant safety factor because C++ compilers can tack on
5570 # massive amounts of additional arguments before passing them to the
5571 # linker. It appears as though 1/2 is a usable value.
5572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5575 esac
5579 if test -n $lt_cv_sys_max_cmd_len ; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5581 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5584 $as_echo "none" >&6; }
5586 max_cmd_len=$lt_cv_sys_max_cmd_len
5593 : ${CP="cp -f"}
5594 : ${MV="mv -f"}
5595 : ${RM="rm -f"}
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5598 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5599 # Try some XSI features
5600 xsi_shell=no
5601 ( _lt_dummy="a/b/c"
5602 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5603 = c,a/b,, \
5604 && eval 'test $(( 1 + 1 )) -eq 2 \
5605 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5606 && xsi_shell=yes
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5608 $as_echo "$xsi_shell" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5612 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5613 lt_shell_append=no
5614 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5615 >/dev/null 2>&1 \
5616 && lt_shell_append=yes
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5618 $as_echo "$lt_shell_append" >&6; }
5621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5622 lt_unset=unset
5623 else
5624 lt_unset=false
5631 # test EBCDIC or ASCII
5632 case `echo X|tr X '\101'` in
5633 A) # ASCII based system
5634 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5635 lt_SP2NL='tr \040 \012'
5636 lt_NL2SP='tr \015\012 \040\040'
5638 *) # EBCDIC based system
5639 lt_SP2NL='tr \100 \n'
5640 lt_NL2SP='tr \r\n \100\100'
5642 esac
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5653 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5654 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 lt_cv_ld_reload_flag='-r'
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5660 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5661 reload_flag=$lt_cv_ld_reload_flag
5662 case $reload_flag in
5663 "" | " "*) ;;
5664 *) reload_flag=" $reload_flag" ;;
5665 esac
5666 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5667 case $host_os in
5668 darwin*)
5669 if test "$GCC" = yes; then
5670 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5671 else
5672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5675 esac
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$OBJDUMP"; then
5694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5709 IFS=$as_save_IFS
5713 OBJDUMP=$ac_cv_prog_OBJDUMP
5714 if test -n "$OBJDUMP"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5716 $as_echo "$OBJDUMP" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5724 if test -z "$ac_cv_prog_OBJDUMP"; then
5725 ac_ct_OBJDUMP=$OBJDUMP
5726 # Extract the first word of "objdump", so it can be a program name with args.
5727 set dummy objdump; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -n "$ac_ct_OBJDUMP"; then
5734 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5747 done
5748 done
5749 IFS=$as_save_IFS
5753 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5754 if test -n "$ac_ct_OBJDUMP"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5756 $as_echo "$ac_ct_OBJDUMP" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5762 if test "x$ac_ct_OBJDUMP" = x; then
5763 OBJDUMP="false"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766 yes:)
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 ac_tool_warned=yes ;;
5770 esac
5771 OBJDUMP=$ac_ct_OBJDUMP
5773 else
5774 OBJDUMP="$ac_cv_prog_OBJDUMP"
5777 test -z "$OBJDUMP" && OBJDUMP=objdump
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5788 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5789 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 lt_cv_file_magic_cmd='$MAGIC_CMD'
5793 lt_cv_file_magic_test_file=
5794 lt_cv_deplibs_check_method='unknown'
5795 # Need to set the preceding variable on all platforms that support
5796 # interlibrary dependencies.
5797 # 'none' -- dependencies not supported.
5798 # `unknown' -- same as none, but documents that we really don't know.
5799 # 'pass_all' -- all dependencies passed with no checks.
5800 # 'test_compile' -- check by making test program.
5801 # 'file_magic [[regex]]' -- check by looking for files in library path
5802 # which responds to the $file_magic_cmd with a given extended regex.
5803 # If you have `file' or equivalent on your system and you're not sure
5804 # whether `pass_all' will *always* work, you probably want this one.
5806 case $host_os in
5807 aix[4-9]*)
5808 lt_cv_deplibs_check_method=pass_all
5811 beos*)
5812 lt_cv_deplibs_check_method=pass_all
5815 bsdi[45]*)
5816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5817 lt_cv_file_magic_cmd='/usr/bin/file -L'
5818 lt_cv_file_magic_test_file=/shlib/libc.so
5821 cygwin*)
5822 # func_win32_libid is a shell function defined in ltmain.sh
5823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5824 lt_cv_file_magic_cmd='func_win32_libid'
5827 mingw* | pw32*)
5828 # Base MSYS/MinGW do not provide the 'file' command needed by
5829 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5830 # unless we find 'file', for example because we are cross-compiling.
5831 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5832 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834 lt_cv_file_magic_cmd='func_win32_libid'
5835 else
5836 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5837 lt_cv_file_magic_cmd='$OBJDUMP -f'
5841 cegcc*)
5842 # use the weaker test based on 'objdump'. See mingw*.
5843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5844 lt_cv_file_magic_cmd='$OBJDUMP -f'
5847 darwin* | rhapsody*)
5848 lt_cv_deplibs_check_method=pass_all
5851 freebsd* | dragonfly*)
5852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5853 case $host_cpu in
5854 i*86 )
5855 # Not sure whether the presence of OpenBSD here was a mistake.
5856 # Let's accept both of them until this is cleared up.
5857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5858 lt_cv_file_magic_cmd=/usr/bin/file
5859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5861 esac
5862 else
5863 lt_cv_deplibs_check_method=pass_all
5867 gnu*)
5868 lt_cv_deplibs_check_method=pass_all
5871 haiku*)
5872 lt_cv_deplibs_check_method=pass_all
5875 hpux10.20* | hpux11*)
5876 lt_cv_file_magic_cmd=/usr/bin/file
5877 case $host_cpu in
5878 ia64*)
5879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5882 hppa*64*)
5883 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]'
5884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5888 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5890 esac
5893 interix[3-9]*)
5894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5898 irix5* | irix6* | nonstopux*)
5899 case $LD in
5900 *-32|*"-32 ") libmagic=32-bit;;
5901 *-n32|*"-n32 ") libmagic=N32;;
5902 *-64|*"-64 ") libmagic=64-bit;;
5903 *) libmagic=never-match;;
5904 esac
5905 lt_cv_deplibs_check_method=pass_all
5908 # This must be Linux ELF.
5909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5910 lt_cv_deplibs_check_method=pass_all
5913 netbsd*)
5914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5916 else
5917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5921 newos6*)
5922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5923 lt_cv_file_magic_cmd=/usr/bin/file
5924 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5927 *nto* | *qnx*)
5928 lt_cv_deplibs_check_method=pass_all
5931 openbsd*)
5932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5934 else
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5939 osf3* | osf4* | osf5*)
5940 lt_cv_deplibs_check_method=pass_all
5943 rdos*)
5944 lt_cv_deplibs_check_method=pass_all
5947 solaris*)
5948 lt_cv_deplibs_check_method=pass_all
5951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5952 lt_cv_deplibs_check_method=pass_all
5955 sysv4 | sysv4.3*)
5956 case $host_vendor in
5957 motorola)
5958 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]'
5959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5961 ncr)
5962 lt_cv_deplibs_check_method=pass_all
5964 sequent)
5965 lt_cv_file_magic_cmd='/bin/file'
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5968 sni)
5969 lt_cv_file_magic_cmd='/bin/file'
5970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5971 lt_cv_file_magic_test_file=/lib/libc.so
5973 siemens)
5974 lt_cv_deplibs_check_method=pass_all
5977 lt_cv_deplibs_check_method=pass_all
5979 esac
5982 tpf*)
5983 lt_cv_deplibs_check_method=pass_all
5985 esac
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5989 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5990 file_magic_cmd=$lt_cv_file_magic_cmd
5991 deplibs_check_method=$lt_cv_deplibs_check_method
5992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}ar; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if test "${ac_cv_prog_AR+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$AR"; then
6014 ac_cv_prog_AR="$AR" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_AR="${ac_tool_prefix}ar"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6027 done
6028 done
6029 IFS=$as_save_IFS
6033 AR=$ac_cv_prog_AR
6034 if test -n "$AR"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6036 $as_echo "$AR" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test -z "$ac_cv_prog_AR"; then
6045 ac_ct_AR=$AR
6046 # Extract the first word of "ar", so it can be a program name with args.
6047 set dummy ar; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test -n "$ac_ct_AR"; then
6054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_ac_ct_AR="ar"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6067 done
6068 done
6069 IFS=$as_save_IFS
6073 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6074 if test -n "$ac_ct_AR"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6076 $as_echo "$ac_ct_AR" >&6; }
6077 else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6082 if test "x$ac_ct_AR" = x; then
6083 AR="false"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6090 esac
6091 AR=$ac_ct_AR
6093 else
6094 AR="$ac_cv_prog_AR"
6097 test -z "$AR" && AR=ar
6098 test -z "$AR_FLAGS" && AR_FLAGS=cru
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}strip; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if test "${ac_cv_prog_STRIP+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$STRIP"; then
6119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6132 done
6133 done
6134 IFS=$as_save_IFS
6138 STRIP=$ac_cv_prog_STRIP
6139 if test -n "$STRIP"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6141 $as_echo "$STRIP" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6149 if test -z "$ac_cv_prog_STRIP"; then
6150 ac_ct_STRIP=$STRIP
6151 # Extract the first word of "strip", so it can be a program name with args.
6152 set dummy strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$ac_ct_STRIP"; then
6159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_ac_ct_STRIP="strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6172 done
6173 done
6174 IFS=$as_save_IFS
6178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6179 if test -n "$ac_ct_STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6181 $as_echo "$ac_ct_STRIP" >&6; }
6182 else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6187 if test "x$ac_ct_STRIP" = x; then
6188 STRIP=":"
6189 else
6190 case $cross_compiling:$ac_tool_warned in
6191 yes:)
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194 ac_tool_warned=yes ;;
6195 esac
6196 STRIP=$ac_ct_STRIP
6198 else
6199 STRIP="$ac_cv_prog_STRIP"
6202 test -z "$STRIP" && STRIP=:
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$RANLIB"; then
6218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6237 RANLIB=$ac_cv_prog_RANLIB
6238 if test -n "$RANLIB"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6240 $as_echo "$RANLIB" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6248 if test -z "$ac_cv_prog_RANLIB"; then
6249 ac_ct_RANLIB=$RANLIB
6250 # Extract the first word of "ranlib", so it can be a program name with args.
6251 set dummy ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$ac_ct_RANLIB"; then
6258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_RANLIB="ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6273 IFS=$as_save_IFS
6277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6278 if test -n "$ac_ct_RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6280 $as_echo "$ac_ct_RANLIB" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6286 if test "x$ac_ct_RANLIB" = x; then
6287 RANLIB=":"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 RANLIB=$ac_ct_RANLIB
6297 else
6298 RANLIB="$ac_cv_prog_RANLIB"
6301 test -z "$RANLIB" && RANLIB=:
6308 # Determine commands to create old-style static archives.
6309 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6310 old_postinstall_cmds='chmod 644 $oldlib'
6311 old_postuninstall_cmds=
6313 if test -n "$RANLIB"; then
6314 case $host_os in
6315 openbsd*)
6316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6321 esac
6322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6325 case $host_os in
6326 darwin*)
6327 lock_old_archive_extraction=yes ;;
6329 lock_old_archive_extraction=no ;;
6330 esac
6370 # If no C compiler was specified, use CC.
6371 LTCC=${LTCC-"$CC"}
6373 # If no C compiler flags were specified, use CFLAGS.
6374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6376 # Allow CC to be a program name with arguments.
6377 compiler=$CC
6380 # Check for command to grab the raw symbol name followed by C symbol from nm.
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6382 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6383 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6387 # These are sane defaults that work on at least a few old systems.
6388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6390 # Character class describing NM global symbol codes.
6391 symcode='[BCDEGRST]'
6393 # Regexp to match symbols that can be accessed directly from C.
6394 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6396 # Define system-specific variables.
6397 case $host_os in
6398 aix*)
6399 symcode='[BCDT]'
6401 cygwin* | mingw* | pw32* | cegcc*)
6402 symcode='[ABCDGISTW]'
6404 hpux*)
6405 if test "$host_cpu" = ia64; then
6406 symcode='[ABCDEGRST]'
6409 irix* | nonstopux*)
6410 symcode='[BCDEGRST]'
6412 osf*)
6413 symcode='[BCDEGQRST]'
6415 solaris*)
6416 symcode='[BDRT]'
6418 sco3.2v5*)
6419 symcode='[DT]'
6421 sysv4.2uw2*)
6422 symcode='[DT]'
6424 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6425 symcode='[ABDT]'
6427 sysv4)
6428 symcode='[DFNSTU]'
6430 esac
6432 # If we're using GNU nm, then use its standard symbol codes.
6433 case `$NM -V 2>&1` in
6434 *GNU* | *'with BFD'*)
6435 symcode='[ABCDGIRSTW]' ;;
6436 esac
6438 # Transform an extracted symbol line into a proper C declaration.
6439 # Some systems (esp. on ia64) link data and code symbols differently,
6440 # so use this general approach.
6441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6443 # Transform an extracted symbol line into symbol name and symbol address
6444 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6445 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6447 # Handle CRLF in mingw tool chain
6448 opt_cr=
6449 case $build_os in
6450 mingw*)
6451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6453 esac
6455 # Try without a prefix underscore, then with it.
6456 for ac_symprfx in "" "_"; do
6458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6459 symxfrm="\\1 $ac_symprfx\\2 \\2"
6461 # Write the raw and C identifiers.
6462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6463 # Fake it for dumpbin and say T for any non-static function
6464 # and D for any global variable.
6465 # Also find C++ and __fastcall symbols from MSVC++,
6466 # which start with @ or ?.
6467 lt_cv_sys_global_symbol_pipe="$AWK '"\
6468 " {last_section=section; section=\$ 3};"\
6469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6470 " \$ 0!~/External *\|/{next};"\
6471 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6472 " {if(hide[section]) next};"\
6473 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6474 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6475 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6476 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6477 " ' prfx=^$ac_symprfx"
6478 else
6479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6482 # Check to see that the pipe works correctly.
6483 pipe_works=no
6485 rm -f conftest*
6486 cat > conftest.$ac_ext <<_LT_EOF
6487 #ifdef __cplusplus
6488 extern "C" {
6489 #endif
6490 char nm_test_var;
6491 void nm_test_func(void);
6492 void nm_test_func(void){}
6493 #ifdef __cplusplus
6495 #endif
6496 int main(){nm_test_var='a';nm_test_func();return(0);}
6497 _LT_EOF
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 # Now try to grab the symbols.
6505 nlist=conftest.nm
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6507 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; } && test -s "$nlist"; then
6511 # Try sorting and uniquifying the output.
6512 if sort "$nlist" | uniq > "$nlist"T; then
6513 mv -f "$nlist"T "$nlist"
6514 else
6515 rm -f "$nlist"T
6518 # Make sure that we snagged all the symbols we need.
6519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6521 cat <<_LT_EOF > conftest.$ac_ext
6522 #ifdef __cplusplus
6523 extern "C" {
6524 #endif
6526 _LT_EOF
6527 # Now generate the symbol file.
6528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6530 cat <<_LT_EOF >> conftest.$ac_ext
6532 /* The mapping between symbol names and symbols. */
6533 const struct {
6534 const char *name;
6535 void *address;
6537 lt__PROGRAM__LTX_preloaded_symbols[] =
6539 { "@PROGRAM@", (void *) 0 },
6540 _LT_EOF
6541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6542 cat <<\_LT_EOF >> conftest.$ac_ext
6543 {0, (void *) 0}
6546 /* This works around a problem in FreeBSD linker */
6547 #ifdef FREEBSD_WORKAROUND
6548 static const void *lt_preloaded_setup() {
6549 return lt__PROGRAM__LTX_preloaded_symbols;
6551 #endif
6553 #ifdef __cplusplus
6555 #endif
6556 _LT_EOF
6557 # Now try linking the two files.
6558 mv conftest.$ac_objext conftstm.$ac_objext
6559 lt_save_LIBS="$LIBS"
6560 lt_save_CFLAGS="$CFLAGS"
6561 LIBS="conftstm.$ac_objext"
6562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6564 (eval $ac_link) 2>&5
6565 ac_status=$?
6566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6567 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6568 pipe_works=yes
6570 LIBS="$lt_save_LIBS"
6571 CFLAGS="$lt_save_CFLAGS"
6572 else
6573 echo "cannot find nm_test_func in $nlist" >&5
6575 else
6576 echo "cannot find nm_test_var in $nlist" >&5
6578 else
6579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6581 else
6582 echo "$progname: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 rm -rf conftest* conftst*
6587 # Do not use the global_symbol_pipe unless it works.
6588 if test "$pipe_works" = yes; then
6589 break
6590 else
6591 lt_cv_sys_global_symbol_pipe=
6593 done
6597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6598 lt_cv_sys_global_symbol_to_cdecl=
6600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6602 $as_echo "failed" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6605 $as_echo "ok" >&6; }
6630 # Check whether --enable-libtool-lock was given.
6631 if test "${enable_libtool_lock+set}" = set; then :
6632 enableval=$enable_libtool_lock;
6635 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6637 # Some flags need to be propagated to the compiler or linker for good
6638 # libtool support.
6639 case $host in
6640 ia64-*-hpux*)
6641 # Find out which ABI we are using.
6642 echo 'int i;' > conftest.$ac_ext
6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6644 (eval $ac_compile) 2>&5
6645 ac_status=$?
6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; }; then
6648 case `/usr/bin/file conftest.$ac_objext` in
6649 *ELF-32*)
6650 HPUX_IA64_MODE="32"
6652 *ELF-64*)
6653 HPUX_IA64_MODE="64"
6655 esac
6657 rm -rf conftest*
6659 *-*-irix6*)
6660 # Find out which ABI we are using.
6661 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 if test "$lt_cv_prog_gnu_ld" = yes; then
6668 case `/usr/bin/file conftest.$ac_objext` in
6669 *32-bit*)
6670 LD="${LD-ld} -melf32bsmip"
6672 *N32*)
6673 LD="${LD-ld} -melf32bmipn32"
6675 *64-bit*)
6676 LD="${LD-ld} -melf64bmip"
6678 esac
6679 else
6680 case `/usr/bin/file conftest.$ac_objext` in
6681 *32-bit*)
6682 LD="${LD-ld} -32"
6684 *N32*)
6685 LD="${LD-ld} -n32"
6687 *64-bit*)
6688 LD="${LD-ld} -64"
6690 esac
6693 rm -rf conftest*
6696 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6697 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6698 # Find out which ABI we are using.
6699 echo 'int i;' > conftest.$ac_ext
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6701 (eval $ac_compile) 2>&5
6702 ac_status=$?
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; }; then
6705 case `/usr/bin/file conftest.o` in
6706 *32-bit*)
6707 case $host in
6708 x86_64-*kfreebsd*-gnu)
6709 LD="${LD-ld} -m elf_i386_fbsd"
6711 x86_64-*linux*)
6712 case `/usr/bin/file conftest.o` in
6713 *x86-64*)
6714 LD="${LD-ld} -m elf32_x86_64"
6717 LD="${LD-ld} -m elf_i386"
6719 esac
6721 powerpc64le-*linux*)
6722 LD="${LD-ld} -m elf32lppclinux"
6724 powerpc64-*linux*)
6725 LD="${LD-ld} -m elf32ppclinux"
6727 s390x-*linux*)
6728 LD="${LD-ld} -m elf_s390"
6730 sparc64-*linux*)
6731 LD="${LD-ld} -m elf32_sparc"
6733 esac
6735 *64-bit*)
6736 case $host in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_x86_64_fbsd"
6740 x86_64-*linux*)
6741 LD="${LD-ld} -m elf_x86_64"
6743 powerpcle-*linux*)
6744 LD="${LD-ld} -m elf64lppc"
6746 powerpc-*linux*)
6747 LD="${LD-ld} -m elf64ppc"
6749 s390*-*linux*|s390*-*tpf*)
6750 LD="${LD-ld} -m elf64_s390"
6752 sparc*-*linux*)
6753 LD="${LD-ld} -m elf64_sparc"
6755 esac
6757 esac
6759 rm -rf conftest*
6762 *-*-sco3.2v5*)
6763 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6764 SAVE_CFLAGS="$CFLAGS"
6765 CFLAGS="$CFLAGS -belf"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6767 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6768 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 ac_ext=c
6772 ac_cpp='$CPP $CPPFLAGS'
6773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6781 main ()
6785 return 0;
6787 _ACEOF
6788 if ac_fn_c_try_link "$LINENO"; then :
6789 lt_cv_cc_needs_belf=yes
6790 else
6791 lt_cv_cc_needs_belf=no
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 ac_ext=c
6796 ac_cpp='$CPP $CPPFLAGS'
6797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6803 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6804 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6805 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6806 CFLAGS="$SAVE_CFLAGS"
6809 sparc*-*solaris*)
6810 # Find out which ABI we are using.
6811 echo 'int i;' > conftest.$ac_ext
6812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6813 (eval $ac_compile) 2>&5
6814 ac_status=$?
6815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6816 test $ac_status = 0; }; then
6817 case `/usr/bin/file conftest.o` in
6818 *64-bit*)
6819 case $lt_cv_prog_gnu_ld in
6820 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6822 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6823 LD="${LD-ld} -64"
6826 esac
6828 esac
6830 rm -rf conftest*
6832 esac
6834 need_locks="$enable_libtool_lock"
6837 case $host_os in
6838 rhapsody* | darwin*)
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$DSYMUTIL"; then
6848 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6863 IFS=$as_save_IFS
6867 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6868 if test -n "$DSYMUTIL"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6870 $as_echo "$DSYMUTIL" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6878 if test -z "$ac_cv_prog_DSYMUTIL"; then
6879 ac_ct_DSYMUTIL=$DSYMUTIL
6880 # Extract the first word of "dsymutil", so it can be a program name with args.
6881 set dummy dsymutil; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$ac_ct_DSYMUTIL"; then
6888 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6907 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6908 if test -n "$ac_ct_DSYMUTIL"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6910 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6916 if test "x$ac_ct_DSYMUTIL" = x; then
6917 DSYMUTIL=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 DSYMUTIL=$ac_ct_DSYMUTIL
6927 else
6928 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$NMEDIT"; then
6940 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 NMEDIT=$ac_cv_prog_NMEDIT
6960 if test -n "$NMEDIT"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6962 $as_echo "$NMEDIT" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6970 if test -z "$ac_cv_prog_NMEDIT"; then
6971 ac_ct_NMEDIT=$NMEDIT
6972 # Extract the first word of "nmedit", so it can be a program name with args.
6973 set dummy nmedit; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$ac_ct_NMEDIT"; then
6980 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6999 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7000 if test -n "$ac_ct_NMEDIT"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7002 $as_echo "$ac_ct_NMEDIT" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7008 if test "x$ac_ct_NMEDIT" = x; then
7009 NMEDIT=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017 NMEDIT=$ac_ct_NMEDIT
7019 else
7020 NMEDIT="$ac_cv_prog_NMEDIT"
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_prog_LIPO+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$LIPO"; then
7032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7045 done
7046 done
7047 IFS=$as_save_IFS
7051 LIPO=$ac_cv_prog_LIPO
7052 if test -n "$LIPO"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7054 $as_echo "$LIPO" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7062 if test -z "$ac_cv_prog_LIPO"; then
7063 ac_ct_LIPO=$LIPO
7064 # Extract the first word of "lipo", so it can be a program name with args.
7065 set dummy lipo; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$ac_ct_LIPO"; then
7072 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_ac_ct_LIPO="lipo"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7092 if test -n "$ac_ct_LIPO"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7094 $as_echo "$ac_ct_LIPO" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7100 if test "x$ac_ct_LIPO" = x; then
7101 LIPO=":"
7102 else
7103 case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 LIPO=$ac_ct_LIPO
7111 else
7112 LIPO="$ac_cv_prog_LIPO"
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}otool; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$OTOOL"; then
7124 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7137 done
7138 done
7139 IFS=$as_save_IFS
7143 OTOOL=$ac_cv_prog_OTOOL
7144 if test -n "$OTOOL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7146 $as_echo "$OTOOL" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7154 if test -z "$ac_cv_prog_OTOOL"; then
7155 ac_ct_OTOOL=$OTOOL
7156 # Extract the first word of "otool", so it can be a program name with args.
7157 set dummy otool; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if test -n "$ac_ct_OTOOL"; then
7164 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_ac_ct_OTOOL="otool"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7179 IFS=$as_save_IFS
7183 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7184 if test -n "$ac_ct_OTOOL"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7186 $as_echo "$ac_ct_OTOOL" >&6; }
7187 else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7192 if test "x$ac_ct_OTOOL" = x; then
7193 OTOOL=":"
7194 else
7195 case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7200 esac
7201 OTOOL=$ac_ct_OTOOL
7203 else
7204 OTOOL="$ac_cv_prog_OTOOL"
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$OTOOL64"; then
7216 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7235 OTOOL64=$ac_cv_prog_OTOOL64
7236 if test -n "$OTOOL64"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7238 $as_echo "$OTOOL64" >&6; }
7239 else
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7246 if test -z "$ac_cv_prog_OTOOL64"; then
7247 ac_ct_OTOOL64=$OTOOL64
7248 # Extract the first word of "otool64", so it can be a program name with args.
7249 set dummy otool64; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$ac_ct_OTOOL64"; then
7256 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_ac_ct_OTOOL64="otool64"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7269 done
7270 done
7271 IFS=$as_save_IFS
7275 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7276 if test -n "$ac_ct_OTOOL64"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7278 $as_echo "$ac_ct_OTOOL64" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7284 if test "x$ac_ct_OTOOL64" = x; then
7285 OTOOL64=":"
7286 else
7287 case $cross_compiling:$ac_tool_warned in
7288 yes:)
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7292 esac
7293 OTOOL64=$ac_ct_OTOOL64
7295 else
7296 OTOOL64="$ac_cv_prog_OTOOL64"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7326 $as_echo_n "checking for -single_module linker flag... " >&6; }
7327 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 lt_cv_apple_cc_single_mod=no
7331 if test -z "${LT_MULTI_MODULE}"; then
7332 # By default we will add the -single_module flag. You can override
7333 # by either setting the environment variable LT_MULTI_MODULE
7334 # non-empty at configure time, or by adding -multi_module to the
7335 # link flags.
7336 rm -rf libconftest.dylib*
7337 echo "int foo(void){return 1;}" > conftest.c
7338 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7339 -dynamiclib -Wl,-single_module conftest.c" >&5
7340 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7341 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7342 _lt_result=$?
7343 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7344 lt_cv_apple_cc_single_mod=yes
7345 else
7346 cat conftest.err >&5
7348 rm -rf libconftest.dylib*
7349 rm -f conftest.*
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7353 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7355 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7356 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 lt_cv_ld_exported_symbols_list=no
7360 save_LDFLAGS=$LDFLAGS
7361 echo "_main" > conftest.sym
7362 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7367 main ()
7371 return 0;
7373 _ACEOF
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 lt_cv_ld_exported_symbols_list=yes
7376 else
7377 lt_cv_ld_exported_symbols_list=no
7379 rm -f core conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7381 LDFLAGS="$save_LDFLAGS"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7385 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7387 $as_echo_n "checking for -force_load linker flag... " >&6; }
7388 if test "${lt_cv_ld_force_load+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 lt_cv_ld_force_load=no
7392 cat > conftest.c << _LT_EOF
7393 int forced_loaded() { return 2;}
7394 _LT_EOF
7395 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7396 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7397 echo "$AR cru libconftest.a conftest.o" >&5
7398 $AR cru libconftest.a conftest.o 2>&5
7399 cat > conftest.c << _LT_EOF
7400 int main() { return 0;}
7401 _LT_EOF
7402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7404 _lt_result=$?
7405 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7406 lt_cv_ld_force_load=yes
7407 else
7408 cat conftest.err >&5
7410 rm -f conftest.err libconftest.a conftest conftest.c
7411 rm -rf conftest.dSYM
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7415 $as_echo "$lt_cv_ld_force_load" >&6; }
7416 case $host_os in
7417 rhapsody* | darwin1.[012])
7418 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7419 darwin1.*)
7420 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7421 darwin*) # darwin 5.x on
7422 # if running on 10.5 or later, the deployment target defaults
7423 # to the OS version, if on x86, and 10.4, the deployment
7424 # target defaults to 10.4. Don't you love it?
7425 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7426 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7428 10.[012][,.]*)
7429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7430 10.*)
7431 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7432 esac
7434 esac
7435 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7436 _lt_dar_single_mod='$single_module'
7438 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7439 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7440 else
7441 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7443 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7444 _lt_dsymutil='~$DSYMUTIL $lib || :'
7445 else
7446 _lt_dsymutil=
7449 esac
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7458 # On Suns, sometimes $CPP names a directory.
7459 if test -n "$CPP" && test -d "$CPP"; then
7460 CPP=
7462 if test -z "$CPP"; then
7463 if test "${ac_cv_prog_CPP+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 # Double quotes because CPP needs to be expanded
7467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7469 ac_preproc_ok=false
7470 for ac_c_preproc_warn_flag in '' yes
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error" is here to catch this case.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #ifdef __STDC__
7481 # include <limits.h>
7482 #else
7483 # include <assert.h>
7484 #endif
7485 Syntax error
7486 _ACEOF
7487 if ac_fn_c_try_cpp "$LINENO"; then :
7489 else
7490 # Broken: fails on valid input.
7491 continue
7493 rm -f conftest.err conftest.$ac_ext
7495 # OK, works on sane cases. Now check whether nonexistent headers
7496 # can be detected and how.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <ac_nonexistent.h>
7500 _ACEOF
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502 # Broken: success on invalid input.
7503 continue
7504 else
7505 # Passes both tests.
7506 ac_preproc_ok=:
7507 break
7509 rm -f conftest.err conftest.$ac_ext
7511 done
7512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513 rm -f conftest.err conftest.$ac_ext
7514 if $ac_preproc_ok; then :
7515 break
7518 done
7519 ac_cv_prog_CPP=$CPP
7522 CPP=$ac_cv_prog_CPP
7523 else
7524 ac_cv_prog_CPP=$CPP
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7527 $as_echo "$CPP" >&6; }
7528 ac_preproc_ok=false
7529 for ac_c_preproc_warn_flag in '' yes
7531 # Use a header file that comes with gcc, so configuring glibc
7532 # with a fresh cross-compiler works.
7533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534 # <limits.h> exists even on freestanding compilers.
7535 # On the NeXT, cc -E runs the code through the compiler's parser,
7536 # not just through cpp. "Syntax error" is here to catch this case.
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #ifdef __STDC__
7540 # include <limits.h>
7541 #else
7542 # include <assert.h>
7543 #endif
7544 Syntax error
7545 _ACEOF
7546 if ac_fn_c_try_cpp "$LINENO"; then :
7548 else
7549 # Broken: fails on valid input.
7550 continue
7552 rm -f conftest.err conftest.$ac_ext
7554 # OK, works on sane cases. Now check whether nonexistent headers
7555 # can be detected and how.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <ac_nonexistent.h>
7559 _ACEOF
7560 if ac_fn_c_try_cpp "$LINENO"; then :
7561 # Broken: success on invalid input.
7562 continue
7563 else
7564 # Passes both tests.
7565 ac_preproc_ok=:
7566 break
7568 rm -f conftest.err conftest.$ac_ext
7570 done
7571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7572 rm -f conftest.err conftest.$ac_ext
7573 if $ac_preproc_ok; then :
7575 else
7576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7578 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7579 See \`config.log' for more details." "$LINENO" 5; }
7582 ac_ext=c
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7590 $as_echo_n "checking for ANSI C header files... " >&6; }
7591 if test "${ac_cv_header_stdc+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 #include <stdlib.h>
7597 #include <stdarg.h>
7598 #include <string.h>
7599 #include <float.h>
7602 main ()
7606 return 0;
7608 _ACEOF
7609 if ac_fn_c_try_compile "$LINENO"; then :
7610 ac_cv_header_stdc=yes
7611 else
7612 ac_cv_header_stdc=no
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 if test $ac_cv_header_stdc = yes; then
7617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <string.h>
7622 _ACEOF
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "memchr" >/dev/null 2>&1; then :
7626 else
7627 ac_cv_header_stdc=no
7629 rm -f conftest*
7633 if test $ac_cv_header_stdc = yes; then
7634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 #include <stdlib.h>
7639 _ACEOF
7640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641 $EGREP "free" >/dev/null 2>&1; then :
7643 else
7644 ac_cv_header_stdc=no
7646 rm -f conftest*
7650 if test $ac_cv_header_stdc = yes; then
7651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7652 if test "$cross_compiling" = yes; then :
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <ctype.h>
7658 #include <stdlib.h>
7659 #if ((' ' & 0x0FF) == 0x020)
7660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7662 #else
7663 # define ISLOWER(c) \
7664 (('a' <= (c) && (c) <= 'i') \
7665 || ('j' <= (c) && (c) <= 'r') \
7666 || ('s' <= (c) && (c) <= 'z'))
7667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668 #endif
7670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7672 main ()
7674 int i;
7675 for (i = 0; i < 256; i++)
7676 if (XOR (islower (i), ISLOWER (i))
7677 || toupper (i) != TOUPPER (i))
7678 return 2;
7679 return 0;
7681 _ACEOF
7682 if ac_fn_c_try_run "$LINENO"; then :
7684 else
7685 ac_cv_header_stdc=no
7687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7688 conftest.$ac_objext conftest.beam conftest.$ac_ext
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7694 $as_echo "$ac_cv_header_stdc" >&6; }
7695 if test $ac_cv_header_stdc = yes; then
7697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7703 inttypes.h stdint.h unistd.h
7704 do :
7705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7706 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7708 eval as_val=\$$as_ac_Header
7709 if test "x$as_val" = x""yes; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7716 done
7719 for ac_header in dlfcn.h
7720 do :
7721 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7723 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DLFCN_H 1
7726 _ACEOF
7730 done
7736 # Set options
7737 enable_dlopen=yes
7742 enable_win32_dll=no
7745 # Check whether --enable-shared was given.
7746 if test "${enable_shared+set}" = set; then :
7747 enableval=$enable_shared; p=${PACKAGE-default}
7748 case $enableval in
7749 yes) enable_shared=yes ;;
7750 no) enable_shared=no ;;
7752 enable_shared=no
7753 # Look at the argument we got. We use all the common list separators.
7754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7755 for pkg in $enableval; do
7756 IFS="$lt_save_ifs"
7757 if test "X$pkg" = "X$p"; then
7758 enable_shared=yes
7760 done
7761 IFS="$lt_save_ifs"
7763 esac
7764 else
7765 enable_shared=yes
7776 # Check whether --enable-static was given.
7777 if test "${enable_static+set}" = set; then :
7778 enableval=$enable_static; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_static=yes ;;
7781 no) enable_static=no ;;
7783 enable_static=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7786 for pkg in $enableval; do
7787 IFS="$lt_save_ifs"
7788 if test "X$pkg" = "X$p"; then
7789 enable_static=yes
7791 done
7792 IFS="$lt_save_ifs"
7794 esac
7795 else
7796 enable_static=yes
7808 # Check whether --with-pic was given.
7809 if test "${with_pic+set}" = set; then :
7810 withval=$with_pic; pic_mode="$withval"
7811 else
7812 pic_mode=default
7816 test -z "$pic_mode" && pic_mode=default
7824 # Check whether --enable-fast-install was given.
7825 if test "${enable_fast_install+set}" = set; then :
7826 enableval=$enable_fast_install; p=${PACKAGE-default}
7827 case $enableval in
7828 yes) enable_fast_install=yes ;;
7829 no) enable_fast_install=no ;;
7831 enable_fast_install=no
7832 # Look at the argument we got. We use all the common list separators.
7833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7834 for pkg in $enableval; do
7835 IFS="$lt_save_ifs"
7836 if test "X$pkg" = "X$p"; then
7837 enable_fast_install=yes
7839 done
7840 IFS="$lt_save_ifs"
7842 esac
7843 else
7844 enable_fast_install=yes
7857 # This can be used to rebuild libtool when needed
7858 LIBTOOL_DEPS="$ltmain"
7860 # Always use our own libtool.
7861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7888 test -z "$LN_S" && LN_S="ln -s"
7903 if test -n "${ZSH_VERSION+set}" ; then
7904 setopt NO_GLOB_SUBST
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7908 $as_echo_n "checking for objdir... " >&6; }
7909 if test "${lt_cv_objdir+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 rm -f .libs 2>/dev/null
7913 mkdir .libs 2>/dev/null
7914 if test -d .libs; then
7915 lt_cv_objdir=.libs
7916 else
7917 # MS-DOS does not allow filenames that begin with a dot.
7918 lt_cv_objdir=_libs
7920 rmdir .libs 2>/dev/null
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7923 $as_echo "$lt_cv_objdir" >&6; }
7924 objdir=$lt_cv_objdir
7930 cat >>confdefs.h <<_ACEOF
7931 #define LT_OBJDIR "$lt_cv_objdir/"
7932 _ACEOF
7937 case $host_os in
7938 aix3*)
7939 # AIX sometimes has problems with the GCC collect2 program. For some
7940 # reason, if we set the COLLECT_NAMES environment variable, the problems
7941 # vanish in a puff of smoke.
7942 if test "X${COLLECT_NAMES+set}" != Xset; then
7943 COLLECT_NAMES=
7944 export COLLECT_NAMES
7947 esac
7949 # Global variables:
7950 ofile=libtool
7951 can_build_shared=yes
7953 # All known linkers require a `.a' archive for static linking (except MSVC,
7954 # which needs '.lib').
7955 libext=a
7957 with_gnu_ld="$lt_cv_prog_gnu_ld"
7959 old_CC="$CC"
7960 old_CFLAGS="$CFLAGS"
7962 # Set sane defaults for various variables
7963 test -z "$CC" && CC=cc
7964 test -z "$LTCC" && LTCC=$CC
7965 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7966 test -z "$LD" && LD=ld
7967 test -z "$ac_objext" && ac_objext=o
7969 for cc_temp in $compiler""; do
7970 case $cc_temp in
7971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7973 \-*) ;;
7974 *) break;;
7975 esac
7976 done
7977 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7980 # Only perform the check for file, if the check method requires it
7981 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7982 case $deplibs_check_method in
7983 file_magic*)
7984 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7986 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7987 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 case $MAGIC_CMD in
7991 [\\/*] | ?:[\\/]*)
7992 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7995 lt_save_MAGIC_CMD="$MAGIC_CMD"
7996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7997 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7998 for ac_dir in $ac_dummy; do
7999 IFS="$lt_save_ifs"
8000 test -z "$ac_dir" && ac_dir=.
8001 if test -f $ac_dir/${ac_tool_prefix}file; then
8002 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8003 if test -n "$file_magic_test_file"; then
8004 case $deplibs_check_method in
8005 "file_magic "*)
8006 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8008 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8009 $EGREP "$file_magic_regex" > /dev/null; then
8011 else
8012 cat <<_LT_EOF 1>&2
8014 *** Warning: the command libtool uses to detect shared libraries,
8015 *** $file_magic_cmd, produces output that libtool cannot recognize.
8016 *** The result is that libtool may fail to recognize shared libraries
8017 *** as such. This will affect the creation of libtool libraries that
8018 *** depend on shared libraries, but programs linked with such libtool
8019 *** libraries will work regardless of this problem. Nevertheless, you
8020 *** may want to report the problem to your system manager and/or to
8021 *** bug-libtool@gnu.org
8023 _LT_EOF
8024 fi ;;
8025 esac
8027 break
8029 done
8030 IFS="$lt_save_ifs"
8031 MAGIC_CMD="$lt_save_MAGIC_CMD"
8033 esac
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037 if test -n "$MAGIC_CMD"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8039 $as_echo "$MAGIC_CMD" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8049 if test -z "$lt_cv_path_MAGIC_CMD"; then
8050 if test -n "$ac_tool_prefix"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8052 $as_echo_n "checking for file... " >&6; }
8053 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 case $MAGIC_CMD in
8057 [\\/*] | ?:[\\/]*)
8058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8061 lt_save_MAGIC_CMD="$MAGIC_CMD"
8062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8064 for ac_dir in $ac_dummy; do
8065 IFS="$lt_save_ifs"
8066 test -z "$ac_dir" && ac_dir=.
8067 if test -f $ac_dir/file; then
8068 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8069 if test -n "$file_magic_test_file"; then
8070 case $deplibs_check_method in
8071 "file_magic "*)
8072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8075 $EGREP "$file_magic_regex" > /dev/null; then
8077 else
8078 cat <<_LT_EOF 1>&2
8080 *** Warning: the command libtool uses to detect shared libraries,
8081 *** $file_magic_cmd, produces output that libtool cannot recognize.
8082 *** The result is that libtool may fail to recognize shared libraries
8083 *** as such. This will affect the creation of libtool libraries that
8084 *** depend on shared libraries, but programs linked with such libtool
8085 *** libraries will work regardless of this problem. Nevertheless, you
8086 *** may want to report the problem to your system manager and/or to
8087 *** bug-libtool@gnu.org
8089 _LT_EOF
8090 fi ;;
8091 esac
8093 break
8095 done
8096 IFS="$lt_save_ifs"
8097 MAGIC_CMD="$lt_save_MAGIC_CMD"
8099 esac
8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103 if test -n "$MAGIC_CMD"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8105 $as_echo "$MAGIC_CMD" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8112 else
8113 MAGIC_CMD=:
8119 esac
8121 # Use C for the default configuration in the libtool script
8123 lt_save_CC="$CC"
8124 ac_ext=c
8125 ac_cpp='$CPP $CPPFLAGS'
8126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131 # Source file extension for C test sources.
8132 ac_ext=c
8134 # Object file extension for compiled C test sources.
8135 objext=o
8136 objext=$objext
8138 # Code to be used in simple compile tests
8139 lt_simple_compile_test_code="int some_variable = 0;"
8141 # Code to be used in simple link tests
8142 lt_simple_link_test_code='int main(){return(0);}'
8150 # If no C compiler was specified, use CC.
8151 LTCC=${LTCC-"$CC"}
8153 # If no C compiler flags were specified, use CFLAGS.
8154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8156 # Allow CC to be a program name with arguments.
8157 compiler=$CC
8159 # Save the default compiler, since it gets overwritten when the other
8160 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8161 compiler_DEFAULT=$CC
8163 # save warnings/boilerplate of simple test code
8164 ac_outfile=conftest.$ac_objext
8165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8167 _lt_compiler_boilerplate=`cat conftest.err`
8168 $RM conftest*
8170 ac_outfile=conftest.$ac_objext
8171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8173 _lt_linker_boilerplate=`cat conftest.err`
8174 $RM -r conftest*
8177 ## CAVEAT EMPTOR:
8178 ## There is no encapsulation within the following macros, do not change
8179 ## the running order or otherwise move them around unless you know exactly
8180 ## what you are doing...
8181 if test -n "$compiler"; then
8183 lt_prog_compiler_no_builtin_flag=
8185 if test "$GCC" = yes; then
8186 case $cc_basename in
8187 nvcc*)
8188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8191 esac
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8195 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 lt_cv_prog_compiler_rtti_exceptions=no
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201 lt_compiler_flag="-fno-rtti -fno-exceptions"
8202 # Insert the option either (1) after the last *FLAGS variable, or
8203 # (2) before a word containing "conftest.", or (3) at the end.
8204 # Note that $ac_compile itself does not contain backslashes and begins
8205 # with a dollar sign (not a hyphen), so the echo should work correctly.
8206 # The option is referenced via a variable to avoid confusing sed.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>conftest.err)
8213 ac_status=$?
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s "$ac_outfile"; then
8217 # The compiler can only warn and ignore the option if not recognized
8218 # So say no if there are warnings other than the usual output.
8219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8222 lt_cv_prog_compiler_rtti_exceptions=yes
8225 $RM conftest*
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8233 else
8244 lt_prog_compiler_wl=
8245 lt_prog_compiler_pic=
8246 lt_prog_compiler_static=
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8251 if test "$GCC" = yes; then
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_static='-static'
8255 case $host_os in
8256 aix*)
8257 # All AIX code is PIC.
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8262 lt_prog_compiler_pic='-fPIC'
8265 amigaos*)
8266 case $host_cpu in
8267 powerpc)
8268 # see comment about AmigaOS4 .so support
8269 lt_prog_compiler_pic='-fPIC'
8271 m68k)
8272 # FIXME: we need at least 68020 code to build shared libraries, but
8273 # adding the `-m68020' flag to GCC prevents building anything better,
8274 # like `-m68040'.
8275 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8277 esac
8280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8281 # PIC is the default for these OSes.
8284 mingw* | cygwin* | pw32* | os2* | cegcc*)
8285 # This hack is so that the source file can tell whether it is being
8286 # built for inclusion in a dll (and should export symbols for example).
8287 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8288 # (--disable-auto-import) libraries
8289 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 darwin* | rhapsody*)
8293 # PIC is the default on this platform
8294 # Common symbols not allowed in MH_DYLIB files
8295 lt_prog_compiler_pic='-fno-common'
8298 haiku*)
8299 # PIC is the default for Haiku.
8300 # The "-static" flag exists, but is broken.
8301 lt_prog_compiler_static=
8304 hpux*)
8305 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8306 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8307 # sets the default TLS model and affects inlining.
8308 case $host_cpu in
8309 hppa*64*)
8310 # +Z the default
8313 lt_prog_compiler_pic='-fPIC'
8315 esac
8318 interix[3-9]*)
8319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8320 # Instead, we relocate shared libraries at runtime.
8323 msdosdjgpp*)
8324 # Just because we use GCC doesn't mean we suddenly get shared libraries
8325 # on systems that don't support them.
8326 lt_prog_compiler_can_build_shared=no
8327 enable_shared=no
8330 *nto* | *qnx*)
8331 # QNX uses GNU C++, but need to define -shared option too, otherwise
8332 # it will coredump.
8333 lt_prog_compiler_pic='-fPIC -shared'
8336 sysv4*MP*)
8337 if test -d /usr/nec; then
8338 lt_prog_compiler_pic=-Kconform_pic
8343 lt_prog_compiler_pic='-fPIC'
8345 esac
8347 case $cc_basename in
8348 nvcc*) # Cuda Compiler Driver 2.2
8349 lt_prog_compiler_wl='-Xlinker '
8350 lt_prog_compiler_pic='-Xcompiler -fPIC'
8352 esac
8353 else
8354 # PORTME Check for flag to pass linker flags through the system compiler.
8355 case $host_os in
8356 aix*)
8357 lt_prog_compiler_wl='-Wl,'
8358 if test "$host_cpu" = ia64; then
8359 # AIX 5 now supports IA64 processor
8360 lt_prog_compiler_static='-Bstatic'
8361 else
8362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8366 mingw* | cygwin* | pw32* | os2* | cegcc*)
8367 # This hack is so that the source file can tell whether it is being
8368 # built for inclusion in a dll (and should export symbols for example).
8369 lt_prog_compiler_pic='-DDLL_EXPORT'
8372 hpux9* | hpux10* | hpux11*)
8373 lt_prog_compiler_wl='-Wl,'
8374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8375 # not for PA HP-UX.
8376 case $host_cpu in
8377 hppa*64*|ia64*)
8378 # +Z the default
8381 lt_prog_compiler_pic='+Z'
8383 esac
8384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8385 lt_prog_compiler_static='${wl}-a ${wl}archive'
8388 irix5* | irix6* | nonstopux*)
8389 lt_prog_compiler_wl='-Wl,'
8390 # PIC (with -KPIC) is the default.
8391 lt_prog_compiler_static='-non_shared'
8394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8395 case $cc_basename in
8396 # old Intel for x86_64 which still supported -KPIC.
8397 ecc*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-KPIC'
8400 lt_prog_compiler_static='-static'
8402 # icc used to be incompatible with GCC.
8403 # ICC 10 doesn't accept -KPIC any more.
8404 icc* | ifort*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-fPIC'
8407 lt_prog_compiler_static='-static'
8409 # Lahey Fortran 8.1.
8410 lf95*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='--shared'
8413 lt_prog_compiler_static='--static'
8415 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8416 # Portland Group compilers (*not* the Pentium gcc compiler,
8417 # which looks to be a dead project)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-fpic'
8420 lt_prog_compiler_static='-Bstatic'
8422 ccc*)
8423 lt_prog_compiler_wl='-Wl,'
8424 # All Alpha code is PIC.
8425 lt_prog_compiler_static='-non_shared'
8427 xl* | bgxl* | bgf* | mpixl*)
8428 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-qpic'
8431 lt_prog_compiler_static='-qstaticlink'
8434 case `$CC -V 2>&1 | sed 5q` in
8435 *Sun\ F* | *Sun*Fortran*)
8436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 lt_prog_compiler_wl=''
8441 *Sun\ C*)
8442 # Sun C 5.9
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 lt_prog_compiler_wl='-Wl,'
8447 esac
8449 esac
8452 newsos6)
8453 lt_prog_compiler_pic='-KPIC'
8454 lt_prog_compiler_static='-Bstatic'
8457 *nto* | *qnx*)
8458 # QNX uses GNU C++, but need to define -shared option too, otherwise
8459 # it will coredump.
8460 lt_prog_compiler_pic='-fPIC -shared'
8463 osf3* | osf4* | osf5*)
8464 lt_prog_compiler_wl='-Wl,'
8465 # All OSF/1 code is PIC.
8466 lt_prog_compiler_static='-non_shared'
8469 rdos*)
8470 lt_prog_compiler_static='-non_shared'
8473 solaris*)
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-Bstatic'
8476 case $cc_basename in
8477 f77* | f90* | f95*)
8478 lt_prog_compiler_wl='-Qoption ld ';;
8480 lt_prog_compiler_wl='-Wl,';;
8481 esac
8484 sunos4*)
8485 lt_prog_compiler_wl='-Qoption ld '
8486 lt_prog_compiler_pic='-PIC'
8487 lt_prog_compiler_static='-Bstatic'
8490 sysv4 | sysv4.2uw2* | sysv4.3*)
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-Bstatic'
8496 sysv4*MP*)
8497 if test -d /usr/nec ;then
8498 lt_prog_compiler_pic='-Kconform_pic'
8499 lt_prog_compiler_static='-Bstatic'
8503 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8509 unicos*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_can_build_shared=no
8514 uts4*)
8515 lt_prog_compiler_pic='-pic'
8516 lt_prog_compiler_static='-Bstatic'
8520 lt_prog_compiler_can_build_shared=no
8522 esac
8525 case $host_os in
8526 # For platforms which do not support PIC, -DPIC is meaningless:
8527 *djgpp*)
8528 lt_prog_compiler_pic=
8531 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8533 esac
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8535 $as_echo "$lt_prog_compiler_pic" >&6; }
8543 # Check to make sure the PIC flag actually works.
8545 if test -n "$lt_prog_compiler_pic"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8547 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8548 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 lt_cv_prog_compiler_pic_works=no
8552 ac_outfile=conftest.$ac_objext
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 # The option is referenced via a variable to avoid confusing sed.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>conftest.err)
8566 ac_status=$?
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s "$ac_outfile"; then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings other than the usual output.
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_pic_works=yes
8578 $RM conftest*
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8582 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8584 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8585 case $lt_prog_compiler_pic in
8586 "" | " "*) ;;
8587 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8588 esac
8589 else
8590 lt_prog_compiler_pic=
8591 lt_prog_compiler_can_build_shared=no
8602 # Check to make sure the static flag actually works.
8604 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8606 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8607 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 lt_cv_prog_compiler_static_works=no
8611 save_LDFLAGS="$LDFLAGS"
8612 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8613 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8615 # The linker can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 if test -s conftest.err; then
8618 # Append any errors to the config.log.
8619 cat conftest.err 1>&5
8620 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8622 if diff conftest.exp conftest.er2 >/dev/null; then
8623 lt_cv_prog_compiler_static_works=yes
8625 else
8626 lt_cv_prog_compiler_static_works=yes
8629 $RM -r conftest*
8630 LDFLAGS="$save_LDFLAGS"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8634 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8636 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8638 else
8639 lt_prog_compiler_static=
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8649 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8650 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 lt_cv_prog_compiler_c_o=no
8654 $RM -r conftest 2>/dev/null
8655 mkdir conftest
8656 cd conftest
8657 mkdir out
8658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8660 lt_compiler_flag="-o out/conftest2.$ac_objext"
8661 # Insert the option either (1) after the last *FLAGS variable, or
8662 # (2) before a word containing "conftest.", or (3) at the end.
8663 # Note that $ac_compile itself does not contain backslashes and begins
8664 # with a dollar sign (not a hyphen), so the echo should work correctly.
8665 lt_compile=`echo "$ac_compile" | $SED \
8666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668 -e 's:$: $lt_compiler_flag:'`
8669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670 (eval "$lt_compile" 2>out/conftest.err)
8671 ac_status=$?
8672 cat out/conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8675 then
8676 # The compiler can only warn and ignore the option if not recognized
8677 # So say no if there are warnings
8678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8681 lt_cv_prog_compiler_c_o=yes
8684 chmod u+w . 2>&5
8685 $RM conftest*
8686 # SGI C++ compiler will create directory out/ii_files/ for
8687 # template instantiation
8688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8689 $RM out/* && rmdir out
8690 cd ..
8691 $RM -r conftest
8692 $RM conftest*
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8696 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8704 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8705 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 lt_cv_prog_compiler_c_o=no
8709 $RM -r conftest 2>/dev/null
8710 mkdir conftest
8711 cd conftest
8712 mkdir out
8713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715 lt_compiler_flag="-o out/conftest2.$ac_objext"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 lt_compile=`echo "$ac_compile" | $SED \
8721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723 -e 's:$: $lt_compiler_flag:'`
8724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8725 (eval "$lt_compile" 2>out/conftest.err)
8726 ac_status=$?
8727 cat out/conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8730 then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings
8733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_c_o=yes
8739 chmod u+w . 2>&5
8740 $RM conftest*
8741 # SGI C++ compiler will create directory out/ii_files/ for
8742 # template instantiation
8743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8744 $RM out/* && rmdir out
8745 cd ..
8746 $RM -r conftest
8747 $RM conftest*
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8751 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8756 hard_links="nottested"
8757 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8758 # do not overwrite the value of need_locks provided by the user
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8760 $as_echo_n "checking if we can lock with hard links... " >&6; }
8761 hard_links=yes
8762 $RM conftest*
8763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764 touch conftest.a
8765 ln conftest.a conftest.b 2>&5 || hard_links=no
8766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8768 $as_echo "$hard_links" >&6; }
8769 if test "$hard_links" = no; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8771 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8772 need_locks=warn
8774 else
8775 need_locks=no
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8784 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8786 runpath_var=
8787 allow_undefined_flag=
8788 always_export_symbols=no
8789 archive_cmds=
8790 archive_expsym_cmds=
8791 compiler_needs_object=no
8792 enable_shared_with_static_runtimes=no
8793 export_dynamic_flag_spec=
8794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8795 hardcode_automatic=no
8796 hardcode_direct=no
8797 hardcode_direct_absolute=no
8798 hardcode_libdir_flag_spec=
8799 hardcode_libdir_flag_spec_ld=
8800 hardcode_libdir_separator=
8801 hardcode_minus_L=no
8802 hardcode_shlibpath_var=unsupported
8803 inherit_rpath=no
8804 link_all_deplibs=unknown
8805 module_cmds=
8806 module_expsym_cmds=
8807 old_archive_from_new_cmds=
8808 old_archive_from_expsyms_cmds=
8809 thread_safe_flag_spec=
8810 whole_archive_flag_spec=
8811 # include_expsyms should be a list of space-separated symbols to be *always*
8812 # included in the symbol list
8813 include_expsyms=
8814 # exclude_expsyms can be an extended regexp of symbols to exclude
8815 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8816 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8817 # as well as any symbol that contains `d'.
8818 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8819 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8820 # platforms (ab)use it in PIC code, but their linkers get confused if
8821 # the symbol is explicitly referenced. Since portable code cannot
8822 # rely on this symbol name, it's probably fine to never include it in
8823 # preloaded symbol tables.
8824 # Exclude shared library initialization/finalization symbols.
8825 extract_expsyms_cmds=
8827 case $host_os in
8828 cygwin* | mingw* | pw32* | cegcc*)
8829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8830 # When not using gcc, we currently assume that we are using
8831 # Microsoft Visual C++.
8832 if test "$GCC" != yes; then
8833 with_gnu_ld=no
8836 interix*)
8837 # we just hope/assume this is gcc and not c89 (= MSVC++)
8838 with_gnu_ld=yes
8840 openbsd*)
8841 with_gnu_ld=no
8843 esac
8845 ld_shlibs=yes
8847 # On some targets, GNU ld is compatible enough with the native linker
8848 # that we're better off using the native interface for both.
8849 lt_use_gnu_ld_interface=no
8850 if test "$with_gnu_ld" = yes; then
8851 case $host_os in
8852 aix*)
8853 # The AIX port of GNU ld has always aspired to compatibility
8854 # with the native linker. However, as the warning in the GNU ld
8855 # block says, versions before 2.19.5* couldn't really create working
8856 # shared libraries, regardless of the interface used.
8857 case `$LD -v 2>&1` in
8858 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8859 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8860 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8862 lt_use_gnu_ld_interface=yes
8864 esac
8867 lt_use_gnu_ld_interface=yes
8869 esac
8872 if test "$lt_use_gnu_ld_interface" = yes; then
8873 # If archive_cmds runs LD, not CC, wlarc should be empty
8874 wlarc='${wl}'
8876 # Set some defaults for GNU ld with shared library support. These
8877 # are reset later if shared libraries are not supported. Putting them
8878 # here allows them to be overridden if necessary.
8879 runpath_var=LD_RUN_PATH
8880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881 export_dynamic_flag_spec='${wl}--export-dynamic'
8882 # ancient GNU ld didn't support --whole-archive et. al.
8883 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8884 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8885 else
8886 whole_archive_flag_spec=
8888 supports_anon_versioning=no
8889 case `$LD -v 2>&1` in
8890 *GNU\ gold*) supports_anon_versioning=yes ;;
8891 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8892 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8893 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8894 *\ 2.11.*) ;; # other 2.11 versions
8895 *) supports_anon_versioning=yes ;;
8896 esac
8898 # See if GNU ld supports shared libraries.
8899 case $host_os in
8900 aix[3-9]*)
8901 # On AIX/PPC, the GNU linker is very broken
8902 if test "$host_cpu" != ia64; then
8903 ld_shlibs=no
8904 cat <<_LT_EOF 1>&2
8906 *** Warning: the GNU linker, at least up to release 2.19, is reported
8907 *** to be unable to reliably create shared libraries on AIX.
8908 *** Therefore, libtool is disabling shared libraries support. If you
8909 *** really care for shared libraries, you may want to install binutils
8910 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8911 *** You will then need to restart the configuration process.
8913 _LT_EOF
8917 amigaos*)
8918 case $host_cpu in
8919 powerpc)
8920 # see comment about AmigaOS4 .so support
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 archive_expsym_cmds=''
8924 m68k)
8925 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)'
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_minus_L=yes
8929 esac
8932 beos*)
8933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934 allow_undefined_flag=unsupported
8935 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8936 # support --undefined. This deserves some investigation. FIXME
8937 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 else
8939 ld_shlibs=no
8943 cygwin* | mingw* | pw32* | cegcc*)
8944 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8945 # as there is no search path for DLLs.
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 export_dynamic_flag_spec='${wl}--export-all-symbols'
8948 allow_undefined_flag=unsupported
8949 always_export_symbols=no
8950 enable_shared_with_static_runtimes=yes
8951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8953 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8955 # If the export-symbols file already is a .def file (1st line
8956 # is EXPORTS), use it as is; otherwise, prepend...
8957 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8958 cp $export_symbols $output_objdir/$soname.def;
8959 else
8960 echo EXPORTS > $output_objdir/$soname.def;
8961 cat $export_symbols >> $output_objdir/$soname.def;
8963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8964 else
8965 ld_shlibs=no
8969 haiku*)
8970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 link_all_deplibs=yes
8974 interix[3-9]*)
8975 hardcode_direct=no
8976 hardcode_shlibpath_var=no
8977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8978 export_dynamic_flag_spec='${wl}-E'
8979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8980 # Instead, shared libraries are loaded at an image base (0x10000000 by
8981 # default) and relocated if they conflict, which is a slow very memory
8982 # consuming and fragmenting process. To avoid this, we pick a random,
8983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8986 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'
8989 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8990 tmp_diet=no
8991 if test "$host_os" = linux-dietlibc; then
8992 case $cc_basename in
8993 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8994 esac
8996 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8997 && test "$tmp_diet" = no
8998 then
8999 tmp_addflag=' $pic_flag'
9000 tmp_sharedflag='-shared'
9001 case $cc_basename,$host_cpu in
9002 pgcc*) # Portland Group C compiler
9003 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'
9004 tmp_addflag=' $pic_flag'
9006 pgf77* | pgf90* | pgf95* | pgfortran*)
9007 # Portland Group f77 and f90 compilers
9008 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'
9009 tmp_addflag=' $pic_flag -Mnomain' ;;
9010 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9011 tmp_addflag=' -i_dynamic' ;;
9012 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9013 tmp_addflag=' -i_dynamic -nofor_main' ;;
9014 ifc* | ifort*) # Intel Fortran compiler
9015 tmp_addflag=' -nofor_main' ;;
9016 lf95*) # Lahey Fortran 8.1
9017 whole_archive_flag_spec=
9018 tmp_sharedflag='--shared' ;;
9019 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9020 tmp_sharedflag='-qmkshrobj'
9021 tmp_addflag= ;;
9022 nvcc*) # Cuda Compiler Driver 2.2
9023 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'
9024 compiler_needs_object=yes
9026 esac
9027 case `$CC -V 2>&1 | sed 5q` in
9028 *Sun\ C*) # Sun C 5.9
9029 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'
9030 compiler_needs_object=yes
9031 tmp_sharedflag='-G' ;;
9032 *Sun\ F*) # Sun Fortran 8.3
9033 tmp_sharedflag='-G' ;;
9034 esac
9035 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037 if test "x$supports_anon_versioning" = xyes; then
9038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040 echo "local: *; };" >> $output_objdir/$libname.ver~
9041 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9044 case $cc_basename in
9045 xlf* | bgf* | bgxlf* | mpixlf*)
9046 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9047 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9048 hardcode_libdir_flag_spec=
9049 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9050 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9051 if test "x$supports_anon_versioning" = xyes; then
9052 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9054 echo "local: *; };" >> $output_objdir/$libname.ver~
9055 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9058 esac
9059 else
9060 ld_shlibs=no
9064 netbsd*)
9065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9066 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9067 wlarc=
9068 else
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9074 solaris*)
9075 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9076 ld_shlibs=no
9077 cat <<_LT_EOF 1>&2
9079 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9080 *** create shared libraries on Solaris systems. Therefore, libtool
9081 *** is disabling shared libraries support. We urge you to upgrade GNU
9082 *** binutils to release 2.9.1 or newer. Another option is to modify
9083 *** your PATH or compiler configuration so that the native linker is
9084 *** used, and then restart.
9086 _LT_EOF
9087 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 else
9091 ld_shlibs=no
9095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9096 case `$LD -v 2>&1` in
9097 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9098 ld_shlibs=no
9099 cat <<_LT_EOF 1>&2
9101 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9102 *** reliably create shared libraries on SCO systems. Therefore, libtool
9103 *** is disabling shared libraries support. We urge you to upgrade GNU
9104 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9105 *** your PATH or compiler configuration so that the native linker is
9106 *** used, and then restart.
9108 _LT_EOF
9111 # For security reasons, it is highly recommended that you always
9112 # use absolute paths for naming shared libraries, and exclude the
9113 # DT_RUNPATH tag from executables and libraries. But doing so
9114 # requires that you compile everything twice, which is a pain.
9115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9119 else
9120 ld_shlibs=no
9123 esac
9126 sunos4*)
9127 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9128 wlarc=
9129 hardcode_direct=yes
9130 hardcode_shlibpath_var=no
9134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9137 else
9138 ld_shlibs=no
9141 esac
9143 if test "$ld_shlibs" = no; then
9144 runpath_var=
9145 hardcode_libdir_flag_spec=
9146 export_dynamic_flag_spec=
9147 whole_archive_flag_spec=
9149 else
9150 # PORTME fill in a description of your system's linker (not GNU ld)
9151 case $host_os in
9152 aix3*)
9153 allow_undefined_flag=unsupported
9154 always_export_symbols=yes
9155 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'
9156 # Note: this linker hardcodes the directories in LIBPATH if there
9157 # are no directories specified by -L.
9158 hardcode_minus_L=yes
9159 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9160 # Neither direct hardcoding nor static linking is supported with a
9161 # broken collect2.
9162 hardcode_direct=unsupported
9166 aix[4-9]*)
9167 if test "$host_cpu" = ia64; then
9168 # On IA64, the linker does run time linking by default, so we don't
9169 # have to do anything special.
9170 aix_use_runtimelinking=no
9171 exp_sym_flag='-Bexport'
9172 no_entry_flag=""
9173 else
9174 # If we're using GNU nm, then we don't want the "-C" option.
9175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9176 # Also, AIX nm treats weak defined symbols like other global
9177 # defined symbols, whereas GNU nm marks them as "W".
9178 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9179 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9180 else
9181 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9183 aix_use_runtimelinking=no
9185 # Test if we are trying to use run time linking or normal
9186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9187 # need to do runtime linking.
9188 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9189 for ld_flag in $LDFLAGS; do
9190 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9191 aix_use_runtimelinking=yes
9192 break
9194 done
9196 esac
9198 exp_sym_flag='-bexport'
9199 no_entry_flag='-bnoentry'
9202 # When large executables or shared objects are built, AIX ld can
9203 # have problems creating the table of contents. If linking a library
9204 # or program results in "error TOC overflow" add -mminimal-toc to
9205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9208 archive_cmds=''
9209 hardcode_direct=yes
9210 hardcode_direct_absolute=yes
9211 hardcode_libdir_separator=':'
9212 link_all_deplibs=yes
9213 file_list_spec='${wl}-f,'
9215 if test "$GCC" = yes; then
9216 case $host_os in aix4.[012]|aix4.[012].*)
9217 # We only want to do this on AIX 4.2 and lower, the check
9218 # below for broken collect2 doesn't work under 4.3+
9219 collect2name=`${CC} -print-prog-name=collect2`
9220 if test -f "$collect2name" &&
9221 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9222 then
9223 # We have reworked collect2
9225 else
9226 # We have old collect2
9227 hardcode_direct=unsupported
9228 # It fails to find uninstalled libraries when the uninstalled
9229 # path is not listed in the libpath. Setting hardcode_minus_L
9230 # to unsupported forces relinking
9231 hardcode_minus_L=yes
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_libdir_separator=
9236 esac
9237 shared_flag='-shared'
9238 if test "$aix_use_runtimelinking" = yes; then
9239 shared_flag="$shared_flag "'${wl}-G'
9241 else
9242 # not using gcc
9243 if test "$host_cpu" = ia64; then
9244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245 # chokes on -Wl,-G. The following line is correct:
9246 shared_flag='-G'
9247 else
9248 if test "$aix_use_runtimelinking" = yes; then
9249 shared_flag='${wl}-G'
9250 else
9251 shared_flag='${wl}-bM:SRE'
9256 export_dynamic_flag_spec='${wl}-bexpall'
9257 # It seems that -bexpall does not export symbols beginning with
9258 # underscore (_), so it is better to generate a list of symbols to export.
9259 always_export_symbols=yes
9260 if test "$aix_use_runtimelinking" = yes; then
9261 # Warning - without using the other runtime loading flags (-brtl),
9262 # -berok will link without error, but may produce a broken library.
9263 allow_undefined_flag='-berok'
9264 # Determine the default libpath from the value encoded in an
9265 # empty executable.
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9270 main ()
9274 return 0;
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9279 lt_aix_libpath_sed='
9280 /Import File Strings/,/^$/ {
9281 /^0/ {
9282 s/^0 *\(.*\)$/\1/
9286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9287 # Check for a 64-bit object if we didn't find anything.
9288 if test -z "$aix_libpath"; then
9289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9297 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9298 else
9299 if test "$host_cpu" = ia64; then
9300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9301 allow_undefined_flag="-z nodefs"
9302 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"
9303 else
9304 # Determine the default libpath from the value encoded in an
9305 # empty executable.
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9310 main ()
9314 return 0;
9316 _ACEOF
9317 if ac_fn_c_try_link "$LINENO"; then :
9319 lt_aix_libpath_sed='
9320 /Import File Strings/,/^$/ {
9321 /^0/ {
9322 s/^0 *\(.*\)$/\1/
9326 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327 # Check for a 64-bit object if we didn't find anything.
9328 if test -z "$aix_libpath"; then
9329 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9332 rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9336 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9337 # Warning - without using the other run time loading flags,
9338 # -berok will link without error, but may produce a broken library.
9339 no_undefined_flag=' ${wl}-bernotok'
9340 allow_undefined_flag=' ${wl}-berok'
9341 if test "$with_gnu_ld" = yes; then
9342 # We only use this code for GNU lds that support --whole-archive.
9343 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9344 else
9345 # Exported symbols can be pulled into shared objects from archives
9346 whole_archive_flag_spec='$convenience'
9348 archive_cmds_need_lc=yes
9349 # This is similar to how AIX traditionally builds its shared libraries.
9350 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9355 amigaos*)
9356 case $host_cpu in
9357 powerpc)
9358 # see comment about AmigaOS4 .so support
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds=''
9362 m68k)
9363 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)'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9367 esac
9370 bsdi[45]*)
9371 export_dynamic_flag_spec=-rdynamic
9374 cygwin* | mingw* | pw32* | cegcc*)
9375 # When not using gcc, we currently assume that we are using
9376 # Microsoft Visual C++.
9377 # hardcode_libdir_flag_spec is actually meaningless, as there is
9378 # no search path for DLLs.
9379 hardcode_libdir_flag_spec=' '
9380 allow_undefined_flag=unsupported
9381 # Tell ltmain to make .lib files, not .a files.
9382 libext=lib
9383 # Tell ltmain to make .dll files, not .so files.
9384 shrext_cmds=".dll"
9385 # FIXME: Setting linknames here is a bad hack.
9386 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9387 # The linker will automatically build a .lib file if we build a DLL.
9388 old_archive_from_new_cmds='true'
9389 # FIXME: Should let the user specify the lib program.
9390 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9391 fix_srcfile_path='`cygpath -w "$srcfile"`'
9392 enable_shared_with_static_runtimes=yes
9395 darwin* | rhapsody*)
9398 archive_cmds_need_lc=no
9399 hardcode_direct=no
9400 hardcode_automatic=yes
9401 hardcode_shlibpath_var=unsupported
9402 if test "$lt_cv_ld_force_load" = "yes"; then
9403 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\"`'
9404 else
9405 whole_archive_flag_spec=''
9407 link_all_deplibs=yes
9408 allow_undefined_flag="$_lt_dar_allow_undefined"
9409 case $cc_basename in
9410 ifort*) _lt_dar_can_shared=yes ;;
9411 *) _lt_dar_can_shared=$GCC ;;
9412 esac
9413 if test "$_lt_dar_can_shared" = "yes"; then
9414 output_verbose_link_cmd=func_echo_all
9415 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9416 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9417 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}"
9418 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}"
9420 else
9421 ld_shlibs=no
9426 dgux*)
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_shlibpath_var=no
9432 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9433 # support. Future versions do this automatically, but an explicit c++rt0.o
9434 # does not break anything, and helps significantly (at the cost of a little
9435 # extra space).
9436 freebsd2.2*)
9437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9438 hardcode_libdir_flag_spec='-R$libdir'
9439 hardcode_direct=yes
9440 hardcode_shlibpath_var=no
9443 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9444 freebsd2.*)
9445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_direct=yes
9447 hardcode_minus_L=yes
9448 hardcode_shlibpath_var=no
9451 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9452 freebsd* | dragonfly*)
9453 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 hardcode_direct=yes
9456 hardcode_shlibpath_var=no
9459 hpux9*)
9460 if test "$GCC" = yes; then
9461 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9462 else
9463 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466 hardcode_libdir_separator=:
9467 hardcode_direct=yes
9469 # hardcode_minus_L: Not really in the search PATH,
9470 # but as the default location of the library.
9471 hardcode_minus_L=yes
9472 export_dynamic_flag_spec='${wl}-E'
9475 hpux10*)
9476 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9477 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478 else
9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9481 if test "$with_gnu_ld" = no; then
9482 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483 hardcode_libdir_flag_spec_ld='+b $libdir'
9484 hardcode_libdir_separator=:
9485 hardcode_direct=yes
9486 hardcode_direct_absolute=yes
9487 export_dynamic_flag_spec='${wl}-E'
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9494 hpux11*)
9495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496 case $host_cpu in
9497 hppa*64*)
9498 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 ia64*)
9501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9506 esac
9507 else
9508 case $host_cpu in
9509 hppa*64*)
9510 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 ia64*)
9513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9517 # Older versions of the 11.00 compiler do not understand -b yet
9518 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9520 $as_echo_n "checking if $CC understands -b... " >&6; }
9521 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 lt_cv_prog_compiler__b=no
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS -b"
9527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529 # The linker can only warn and ignore the option if not recognized
9530 # So say no if there are warnings
9531 if test -s conftest.err; then
9532 # Append any errors to the config.log.
9533 cat conftest.err 1>&5
9534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536 if diff conftest.exp conftest.er2 >/dev/null; then
9537 lt_cv_prog_compiler__b=yes
9539 else
9540 lt_cv_prog_compiler__b=yes
9543 $RM -r conftest*
9544 LDFLAGS="$save_LDFLAGS"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9548 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9550 if test x"$lt_cv_prog_compiler__b" = xyes; then
9551 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9552 else
9553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9557 esac
9559 if test "$with_gnu_ld" = no; then
9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561 hardcode_libdir_separator=:
9563 case $host_cpu in
9564 hppa*64*|ia64*)
9565 hardcode_direct=no
9566 hardcode_shlibpath_var=no
9569 hardcode_direct=yes
9570 hardcode_direct_absolute=yes
9571 export_dynamic_flag_spec='${wl}-E'
9573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9577 esac
9581 irix5* | irix6* | nonstopux*)
9582 if test "$GCC" = yes; then
9583 archive_cmds='$CC -shared $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'
9584 # Try to use the -exported_symbol ld option, if it does not
9585 # work, assume that -exports_file does not work either and
9586 # implicitly export all symbols.
9587 save_LDFLAGS="$LDFLAGS"
9588 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 int foo(void) {}
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"; then :
9594 archive_expsym_cmds='$CC -shared $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'
9597 rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599 LDFLAGS="$save_LDFLAGS"
9600 else
9601 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'
9602 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'
9604 archive_cmds_need_lc='no'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9607 inherit_rpath=yes
9608 link_all_deplibs=yes
9611 netbsd*)
9612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9614 else
9615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_direct=yes
9619 hardcode_shlibpath_var=no
9622 newsos6)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=yes
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 hardcode_libdir_separator=:
9627 hardcode_shlibpath_var=no
9630 *nto* | *qnx*)
9633 openbsd*)
9634 if test -f /usr/libexec/ld.so; then
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 hardcode_direct_absolute=yes
9638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642 export_dynamic_flag_spec='${wl}-E'
9643 else
9644 case $host_os in
9645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-R$libdir'
9650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9653 esac
9655 else
9656 ld_shlibs=no
9660 os2*)
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_minus_L=yes
9663 allow_undefined_flag=unsupported
9664 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9665 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9668 osf3*)
9669 if test "$GCC" = yes; then
9670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9671 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'
9672 else
9673 allow_undefined_flag=' -expect_unresolved \*'
9674 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'
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678 hardcode_libdir_separator=:
9681 osf4* | osf5*) # as osf3* with the addition of -msym flag
9682 if test "$GCC" = yes; then
9683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9684 archive_cmds='$CC -shared${allow_undefined_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'
9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 else
9687 allow_undefined_flag=' -expect_unresolved \*'
9688 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'
9689 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~
9690 $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'
9692 # Both c and cxx compiler support -rpath directly
9693 hardcode_libdir_flag_spec='-rpath $libdir'
9695 archive_cmds_need_lc='no'
9696 hardcode_libdir_separator=:
9699 solaris*)
9700 no_undefined_flag=' -z defs'
9701 if test "$GCC" = yes; then
9702 wlarc='${wl}'
9703 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9705 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9706 else
9707 case `$CC -V 2>&1` in
9708 *"Compilers 5.0"*)
9709 wlarc=''
9710 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9715 wlarc='${wl}'
9716 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9720 esac
9722 hardcode_libdir_flag_spec='-R$libdir'
9723 hardcode_shlibpath_var=no
9724 case $host_os in
9725 solaris2.[0-5] | solaris2.[0-5].*) ;;
9727 # The compiler driver will combine and reorder linker options,
9728 # but understands `-z linker_flag'. GCC discards it without `$wl',
9729 # but is careful enough not to reorder.
9730 # Supported since Solaris 2.6 (maybe 2.5.1?)
9731 if test "$GCC" = yes; then
9732 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9733 else
9734 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9737 esac
9738 link_all_deplibs=yes
9741 sunos4*)
9742 if test "x$host_vendor" = xsequent; then
9743 # Use $CC to link under sequent, because it throws in some extra .o
9744 # files that make .init and .fini sections work.
9745 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_direct=yes
9751 hardcode_minus_L=yes
9752 hardcode_shlibpath_var=no
9755 sysv4)
9756 case $host_vendor in
9757 sni)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=yes # is this really true???
9761 siemens)
9762 ## LD is ld it makes a PLAMLIB
9763 ## CC just makes a GrossModule.
9764 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9765 reload_cmds='$CC -r -o $output$reload_objs'
9766 hardcode_direct=no
9768 motorola)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9772 esac
9773 runpath_var='LD_RUN_PATH'
9774 hardcode_shlibpath_var=no
9777 sysv4.3*)
9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_shlibpath_var=no
9780 export_dynamic_flag_spec='-Bexport'
9783 sysv4*MP*)
9784 if test -d /usr/nec; then
9785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786 hardcode_shlibpath_var=no
9787 runpath_var=LD_RUN_PATH
9788 hardcode_runpath_var=yes
9789 ld_shlibs=yes
9793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9794 no_undefined_flag='${wl}-z,text'
9795 archive_cmds_need_lc=no
9796 hardcode_shlibpath_var=no
9797 runpath_var='LD_RUN_PATH'
9799 if test "$GCC" = yes; then
9800 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 else
9803 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 sysv5* | sco3.2v5* | sco5v6*)
9809 # Note: We can NOT use -z defs as we might desire, because we do not
9810 # link with -lc, and that would cause any symbols used from libc to
9811 # always be unresolved, which means just about no library would
9812 # ever link correctly. If we're not using GNU ld we use -z text
9813 # though, which does catch some bad symbols but isn't as heavy-handed
9814 # as -z defs.
9815 no_undefined_flag='${wl}-z,text'
9816 allow_undefined_flag='${wl}-z,nodefs'
9817 archive_cmds_need_lc=no
9818 hardcode_shlibpath_var=no
9819 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9820 hardcode_libdir_separator=':'
9821 link_all_deplibs=yes
9822 export_dynamic_flag_spec='${wl}-Bexport'
9823 runpath_var='LD_RUN_PATH'
9825 if test "$GCC" = yes; then
9826 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 uts4*)
9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_shlibpath_var=no
9841 ld_shlibs=no
9843 esac
9845 if test x$host_vendor = xsni; then
9846 case $host in
9847 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9848 export_dynamic_flag_spec='${wl}-Blargedynsym'
9850 esac
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9855 $as_echo "$ld_shlibs" >&6; }
9856 test "$ld_shlibs" = no && can_build_shared=no
9858 with_gnu_ld=$with_gnu_ld
9875 # Do we need to explicitly link libc?
9877 case "x$archive_cmds_need_lc" in
9878 x|xyes)
9879 # Assume -lc should be added
9880 archive_cmds_need_lc=yes
9882 if test "$enable_shared" = yes && test "$GCC" = yes; then
9883 case $archive_cmds in
9884 *'~'*)
9885 # FIXME: we may have to deal with multi-command sequences.
9887 '$CC '*)
9888 # Test whether the compiler implicitly links with -lc since on some
9889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9890 # to ld, don't add -lc before -lgcc.
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9892 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9893 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 $RM conftest*
9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9900 (eval $ac_compile) 2>&5
9901 ac_status=$?
9902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9903 test $ac_status = 0; } 2>conftest.err; then
9904 soname=conftest
9905 lib=conftest
9906 libobjs=conftest.$ac_objext
9907 deplibs=
9908 wl=$lt_prog_compiler_wl
9909 pic_flag=$lt_prog_compiler_pic
9910 compiler_flags=-v
9911 linker_flags=-v
9912 verstring=
9913 output_objdir=.
9914 libname=conftest
9915 lt_save_allow_undefined_flag=$allow_undefined_flag
9916 allow_undefined_flag=
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9918 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }
9922 then
9923 lt_cv_archive_cmds_need_lc=no
9924 else
9925 lt_cv_archive_cmds_need_lc=yes
9927 allow_undefined_flag=$lt_save_allow_undefined_flag
9928 else
9929 cat conftest.err 1>&5
9931 $RM conftest*
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9935 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9936 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9938 esac
9941 esac
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10102 if test "$GCC" = yes; then
10103 case $host_os in
10104 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10105 *) lt_awk_arg="/^libraries:/" ;;
10106 esac
10107 case $host_os in
10108 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10109 *) lt_sed_strip_eq="s,=/,/,g" ;;
10110 esac
10111 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10112 case $lt_search_path_spec in
10113 *\;*)
10114 # if the path contains ";" then we assume it to be the separator
10115 # otherwise default to the standard path separator (i.e. ":") - it is
10116 # assumed that no part of a normal pathname contains ";" but that should
10117 # okay in the real world where ";" in dirpaths is itself problematic.
10118 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10123 esac
10124 # Ok, now we have the path, separated by spaces, we can step through it
10125 # and add multilib dir if necessary.
10126 lt_tmp_lt_search_path_spec=
10127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10128 for lt_sys_path in $lt_search_path_spec; do
10129 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10131 else
10132 test -d "$lt_sys_path" && \
10133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10135 done
10136 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10137 BEGIN {RS=" "; FS="/|\n";} {
10138 lt_foo="";
10139 lt_count=0;
10140 for (lt_i = NF; lt_i > 0; lt_i--) {
10141 if ($lt_i != "" && $lt_i != ".") {
10142 if ($lt_i == "..") {
10143 lt_count++;
10144 } else {
10145 if (lt_count == 0) {
10146 lt_foo="/" $lt_i lt_foo;
10147 } else {
10148 lt_count--;
10153 if (lt_foo != "") { lt_freq[lt_foo]++; }
10154 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10156 # AWK program above erroneously prepends '/' to C:/dos/paths
10157 # for these hosts.
10158 case $host_os in
10159 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10160 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10161 esac
10162 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10163 else
10164 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10166 library_names_spec=
10167 libname_spec='lib$name'
10168 soname_spec=
10169 shrext_cmds=".so"
10170 postinstall_cmds=
10171 postuninstall_cmds=
10172 finish_cmds=
10173 finish_eval=
10174 shlibpath_var=
10175 shlibpath_overrides_runpath=unknown
10176 version_type=none
10177 dynamic_linker="$host_os ld.so"
10178 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10179 need_lib_prefix=unknown
10180 hardcode_into_libs=no
10182 # when you set need_version to no, make sure it does not cause -set_version
10183 # flags to be left without arguments
10184 need_version=unknown
10186 case $host_os in
10187 aix3*)
10188 version_type=linux
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10190 shlibpath_var=LIBPATH
10192 # AIX 3 has no versioning support, so we append a major version to the name.
10193 soname_spec='${libname}${release}${shared_ext}$major'
10196 aix[4-9]*)
10197 version_type=linux
10198 need_lib_prefix=no
10199 need_version=no
10200 hardcode_into_libs=yes
10201 if test "$host_cpu" = ia64; then
10202 # AIX 5 supports IA64
10203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 else
10206 # With GCC up to 2.95.x, collect2 would create an import file
10207 # for dependence libraries. The import file would start with
10208 # the line `#! .'. This would cause the generated library to
10209 # depend on `.', always an invalid library. This was fixed in
10210 # development snapshots of GCC prior to 3.0.
10211 case $host_os in
10212 aix4 | aix4.[01] | aix4.[01].*)
10213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10214 echo ' yes '
10215 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10217 else
10218 can_build_shared=no
10221 esac
10222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10223 # soname into executable. Probably we can add versioning support to
10224 # collect2, so additional links can be useful in future.
10225 if test "$aix_use_runtimelinking" = yes; then
10226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10227 # instead of lib<name>.a to let people know that these are not
10228 # typical AIX shared libraries.
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 else
10231 # We preserve .a as extension for shared libraries through AIX4.2
10232 # and later when we are not doing run time linking.
10233 library_names_spec='${libname}${release}.a $libname.a'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10236 shlibpath_var=LIBPATH
10240 amigaos*)
10241 case $host_cpu in
10242 powerpc)
10243 # Since July 2007 AmigaOS4 officially supports .so libraries.
10244 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 m68k)
10248 library_names_spec='$libname.ixlibrary $libname.a'
10249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10250 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10252 esac
10255 beos*)
10256 library_names_spec='${libname}${shared_ext}'
10257 dynamic_linker="$host_os ld.so"
10258 shlibpath_var=LIBRARY_PATH
10261 bsdi[45]*)
10262 version_type=linux
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10270 # the default ld.so.conf also contains /usr/contrib/lib and
10271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10272 # libtool to hard-code these into programs
10275 cygwin* | mingw* | pw32* | cegcc*)
10276 version_type=windows
10277 shrext_cmds=".dll"
10278 need_version=no
10279 need_lib_prefix=no
10281 case $GCC,$host_os in
10282 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10283 library_names_spec='$libname.dll.a'
10284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10285 postinstall_cmds='base_file=`basename \${file}`~
10286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10287 dldir=$destdir/`dirname \$dlpath`~
10288 test -d \$dldir || mkdir -p \$dldir~
10289 $install_prog $dir/$dlname \$dldir/$dlname~
10290 chmod a+x \$dldir/$dlname~
10291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10295 dlpath=$dir/\$dldll~
10296 $RM \$dlpath'
10297 shlibpath_overrides_runpath=yes
10299 case $host_os in
10300 cygwin*)
10301 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10304 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10306 mingw* | cegcc*)
10307 # MinGW DLLs use traditional 'lib' prefix
10308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310 pw32*)
10311 # pw32 DLLs use 'pw' prefix rather than 'lib'
10312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314 esac
10318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10320 esac
10321 dynamic_linker='Win32 ld.exe'
10322 # FIXME: first we should search . and the directory the executable is in
10323 shlibpath_var=PATH
10326 darwin* | rhapsody*)
10327 dynamic_linker="$host_os dyld"
10328 version_type=darwin
10329 need_lib_prefix=no
10330 need_version=no
10331 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10332 soname_spec='${libname}${release}${major}$shared_ext'
10333 shlibpath_overrides_runpath=yes
10334 shlibpath_var=DYLD_LIBRARY_PATH
10335 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10341 dgux*)
10342 version_type=linux
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10350 freebsd* | dragonfly*)
10351 # DragonFly does not have aout. When/if they implement a new
10352 # versioning mechanism, adjust this.
10353 if test -x /usr/bin/objformat; then
10354 objformat=`/usr/bin/objformat`
10355 else
10356 case $host_os in
10357 freebsd[23].*) objformat=aout ;;
10358 *) objformat=elf ;;
10359 esac
10361 version_type=freebsd-$objformat
10362 case $version_type in
10363 freebsd-elf*)
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 need_version=no
10366 need_lib_prefix=no
10368 freebsd-*)
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10370 need_version=yes
10372 esac
10373 shlibpath_var=LD_LIBRARY_PATH
10374 case $host_os in
10375 freebsd2.*)
10376 shlibpath_overrides_runpath=yes
10378 freebsd3.[01]* | freebsdelf3.[01]*)
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10382 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10383 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10384 shlibpath_overrides_runpath=no
10385 hardcode_into_libs=yes
10387 *) # from 4.6 on, and DragonFly
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10391 esac
10394 gnu*)
10395 version_type=linux
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 hardcode_into_libs=yes
10404 haiku*)
10405 version_type=linux
10406 need_lib_prefix=no
10407 need_version=no
10408 dynamic_linker="$host_os runtime_loader"
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LIBRARY_PATH
10412 shlibpath_overrides_runpath=yes
10413 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10414 hardcode_into_libs=yes
10417 hpux9* | hpux10* | hpux11*)
10418 # Give a soname corresponding to the major version so that dld.sl refuses to
10419 # link against other versions.
10420 version_type=sunos
10421 need_lib_prefix=no
10422 need_version=no
10423 case $host_cpu in
10424 ia64*)
10425 shrext_cmds='.so'
10426 hardcode_into_libs=yes
10427 dynamic_linker="$host_os dld.so"
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 if test "X$HPUX_IA64_MODE" = X32; then
10433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10434 else
10435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10439 hppa*64*)
10440 shrext_cmds='.sl'
10441 hardcode_into_libs=yes
10442 dynamic_linker="$host_os dld.sl"
10443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10451 shrext_cmds='.sl'
10452 dynamic_linker="$host_os dld.sl"
10453 shlibpath_var=SHLIB_PATH
10454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10458 esac
10459 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10460 postinstall_cmds='chmod 555 $lib'
10461 # or fails outright, so override atomically:
10462 install_override_mode=555
10465 interix[3-9]*)
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10477 irix5* | irix6* | nonstopux*)
10478 case $host_os in
10479 nonstopux*) version_type=nonstopux ;;
10481 if test "$lt_cv_prog_gnu_ld" = yes; then
10482 version_type=linux
10483 else
10484 version_type=irix
10485 fi ;;
10486 esac
10487 need_lib_prefix=no
10488 need_version=no
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10491 case $host_os in
10492 irix5* | nonstopux*)
10493 libsuff= shlibsuff=
10496 case $LD in # libtool.m4 will add one of these switches to LD
10497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10498 libsuff= shlibsuff= libmagic=32-bit;;
10499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10500 libsuff=32 shlibsuff=N32 libmagic=N32;;
10501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10503 *) libsuff= shlibsuff= libmagic=never-match;;
10504 esac
10506 esac
10507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10508 shlibpath_overrides_runpath=no
10509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10511 hardcode_into_libs=yes
10514 # No shared lib support for Linux oldld, aout, or coff.
10515 linux*oldld* | linux*aout* | linux*coff*)
10516 dynamic_linker=no
10519 # This must be Linux ELF.
10520 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10521 version_type=linux
10522 need_lib_prefix=no
10523 need_version=no
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10530 # Some binutils ld are patched to set DT_RUNPATH
10531 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 lt_cv_shlibpath_overrides_runpath=no
10535 save_LDFLAGS=$LDFLAGS
10536 save_libdir=$libdir
10537 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10538 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10543 main ()
10547 return 0;
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10552 lt_cv_shlibpath_overrides_runpath=yes
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LDFLAGS=$save_LDFLAGS
10558 libdir=$save_libdir
10562 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10564 # This implies no fast_install, which is unacceptable.
10565 # Some rework will be needed to allow for fast_install
10566 # before this can be enabled.
10567 hardcode_into_libs=yes
10569 # Append ld.so.conf contents to the search path
10570 if test -f /etc/ld.so.conf; then
10571 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' ' '`
10572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10575 # We used to test for /lib/ld.so.1 and disable shared libraries on
10576 # powerpc, because MkLinux only supported shared libraries with the
10577 # GNU dynamic linker. Since this was broken with cross compilers,
10578 # most powerpc-linux boxes support dynamic linking these days and
10579 # people can always --disable-shared, the test was removed, and we
10580 # assume the GNU/Linux dynamic linker is in use.
10581 dynamic_linker='GNU/Linux ld.so'
10584 netbsd*)
10585 version_type=sunos
10586 need_lib_prefix=no
10587 need_version=no
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10591 dynamic_linker='NetBSD (a.out) ld.so'
10592 else
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 dynamic_linker='NetBSD ld.elf_so'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 hardcode_into_libs=yes
10602 newsos6)
10603 version_type=linux
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10609 *nto* | *qnx*)
10610 version_type=qnx
10611 need_lib_prefix=no
10612 need_version=no
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=no
10617 hardcode_into_libs=yes
10618 dynamic_linker='ldqnx.so'
10621 openbsd*)
10622 version_type=sunos
10623 sys_lib_dlsearch_path_spec="/usr/lib"
10624 need_lib_prefix=no
10625 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10626 case $host_os in
10627 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10628 *) need_version=no ;;
10629 esac
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10634 case $host_os in
10635 openbsd2.[89] | openbsd2.[89].*)
10636 shlibpath_overrides_runpath=no
10639 shlibpath_overrides_runpath=yes
10641 esac
10642 else
10643 shlibpath_overrides_runpath=yes
10647 os2*)
10648 libname_spec='$name'
10649 shrext_cmds=".dll"
10650 need_lib_prefix=no
10651 library_names_spec='$libname${shared_ext} $libname.a'
10652 dynamic_linker='OS/2 ld.exe'
10653 shlibpath_var=LIBPATH
10656 osf3* | osf4* | osf5*)
10657 version_type=osf
10658 need_lib_prefix=no
10659 need_version=no
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10667 rdos*)
10668 dynamic_linker=no
10671 solaris*)
10672 version_type=linux
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10680 # ldd complains unless libraries are executable
10681 postinstall_cmds='chmod +x $lib'
10684 sunos4*)
10685 version_type=sunos
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 if test "$with_gnu_ld" = yes; then
10691 need_lib_prefix=no
10693 need_version=yes
10696 sysv4 | sysv4.3*)
10697 version_type=linux
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 case $host_vendor in
10702 sni)
10703 shlibpath_overrides_runpath=no
10704 need_lib_prefix=no
10705 runpath_var=LD_RUN_PATH
10707 siemens)
10708 need_lib_prefix=no
10710 motorola)
10711 need_lib_prefix=no
10712 need_version=no
10713 shlibpath_overrides_runpath=no
10714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10716 esac
10719 sysv4*MP*)
10720 if test -d /usr/nec ;then
10721 version_type=linux
10722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10723 soname_spec='$libname${shared_ext}.$major'
10724 shlibpath_var=LD_LIBRARY_PATH
10728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10729 version_type=freebsd-elf
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 shlibpath_overrides_runpath=yes
10736 hardcode_into_libs=yes
10737 if test "$with_gnu_ld" = yes; then
10738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10739 else
10740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10741 case $host_os in
10742 sco3.2v5*)
10743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10745 esac
10747 sys_lib_dlsearch_path_spec='/usr/lib'
10750 tpf*)
10751 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10752 version_type=linux
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 shlibpath_overrides_runpath=no
10758 hardcode_into_libs=yes
10761 uts4*)
10762 version_type=linux
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10769 dynamic_linker=no
10771 esac
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10773 $as_echo "$dynamic_linker" >&6; }
10774 test "$dynamic_linker" = no && can_build_shared=no
10776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10777 if test "$GCC" = yes; then
10778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10781 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10782 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10785 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10880 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10881 hardcode_action=
10882 if test -n "$hardcode_libdir_flag_spec" ||
10883 test -n "$runpath_var" ||
10884 test "X$hardcode_automatic" = "Xyes" ; then
10886 # We can hardcode non-existent directories.
10887 if test "$hardcode_direct" != no &&
10888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10889 # have to relink, otherwise we might link with an installed library
10890 # when we should be linking with a yet-to-be-installed one
10891 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10892 test "$hardcode_minus_L" != no; then
10893 # Linking always hardcodes the temporary library directory.
10894 hardcode_action=relink
10895 else
10896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10897 hardcode_action=immediate
10899 else
10900 # We cannot hardcode anything, or else we can only hardcode existing
10901 # directories.
10902 hardcode_action=unsupported
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10905 $as_echo "$hardcode_action" >&6; }
10907 if test "$hardcode_action" = relink ||
10908 test "$inherit_rpath" = yes; then
10909 # Fast installation is not supported
10910 enable_fast_install=no
10911 elif test "$shlibpath_overrides_runpath" = yes ||
10912 test "$enable_shared" = no; then
10913 # Fast installation is not necessary
10914 enable_fast_install=needless
10922 if test "x$enable_dlopen" != xyes; then
10923 enable_dlopen=unknown
10924 enable_dlopen_self=unknown
10925 enable_dlopen_self_static=unknown
10926 else
10927 lt_cv_dlopen=no
10928 lt_cv_dlopen_libs=
10930 case $host_os in
10931 beos*)
10932 lt_cv_dlopen="load_add_on"
10933 lt_cv_dlopen_libs=
10934 lt_cv_dlopen_self=yes
10937 mingw* | pw32* | cegcc*)
10938 lt_cv_dlopen="LoadLibrary"
10939 lt_cv_dlopen_libs=
10942 cygwin*)
10943 lt_cv_dlopen="dlopen"
10944 lt_cv_dlopen_libs=
10947 darwin*)
10948 # if libdl is installed we need to link against it
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-ldl $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dlopen ();
10967 main ()
10969 return dlopen ();
10971 return 0;
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"; then :
10975 ac_cv_lib_dl_dlopen=yes
10976 else
10977 ac_cv_lib_dl_dlopen=no
10979 rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10985 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10987 else
10989 lt_cv_dlopen="dyld"
10990 lt_cv_dlopen_libs=
10991 lt_cv_dlopen_self=yes
10998 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10999 if test "x$ac_cv_func_shl_load" = x""yes; then :
11000 lt_cv_dlopen="shl_load"
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11003 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11004 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 ac_check_lib_save_LIBS=$LIBS
11008 LIBS="-ldld $LIBS"
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char shl_load ();
11020 main ()
11022 return shl_load ();
11024 return 0;
11026 _ACEOF
11027 if ac_fn_c_try_link "$LINENO"; then :
11028 ac_cv_lib_dld_shl_load=yes
11029 else
11030 ac_cv_lib_dld_shl_load=no
11032 rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11037 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11038 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11039 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11040 else
11041 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11042 if test "x$ac_cv_func_dlopen" = x""yes; then :
11043 lt_cv_dlopen="dlopen"
11044 else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11046 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 ac_check_lib_save_LIBS=$LIBS
11051 LIBS="-ldl $LIBS"
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char dlopen ();
11063 main ()
11065 return dlopen ();
11067 return 0;
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 ac_cv_lib_dl_dlopen=yes
11072 else
11073 ac_cv_lib_dl_dlopen=no
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11080 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11081 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11085 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11086 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 ac_check_lib_save_LIBS=$LIBS
11090 LIBS="-lsvld $LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char dlopen ();
11102 main ()
11104 return dlopen ();
11106 return 0;
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_svld_dlopen=yes
11111 else
11112 ac_cv_lib_svld_dlopen=no
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11119 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11120 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11122 else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11124 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-ldld $LIBS"
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char dld_link ();
11141 main ()
11143 return dld_link ();
11145 return 0;
11147 _ACEOF
11148 if ac_fn_c_try_link "$LINENO"; then :
11149 ac_cv_lib_dld_dld_link=yes
11150 else
11151 ac_cv_lib_dld_dld_link=no
11153 rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11158 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11159 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11179 esac
11181 if test "x$lt_cv_dlopen" != xno; then
11182 enable_dlopen=yes
11183 else
11184 enable_dlopen=no
11187 case $lt_cv_dlopen in
11188 dlopen)
11189 save_CPPFLAGS="$CPPFLAGS"
11190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11192 save_LDFLAGS="$LDFLAGS"
11193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11195 save_LIBS="$LIBS"
11196 LIBS="$lt_cv_dlopen_libs $LIBS"
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11199 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11200 if test "${lt_cv_dlopen_self+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test "$cross_compiling" = yes; then :
11204 lt_cv_dlopen_self=cross
11205 else
11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11207 lt_status=$lt_dlunknown
11208 cat > conftest.$ac_ext <<_LT_EOF
11209 #line 11209 "configure"
11210 #include "confdefs.h"
11212 #if HAVE_DLFCN_H
11213 #include <dlfcn.h>
11214 #endif
11216 #include <stdio.h>
11218 #ifdef RTLD_GLOBAL
11219 # define LT_DLGLOBAL RTLD_GLOBAL
11220 #else
11221 # ifdef DL_GLOBAL
11222 # define LT_DLGLOBAL DL_GLOBAL
11223 # else
11224 # define LT_DLGLOBAL 0
11225 # endif
11226 #endif
11228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229 find out it does not work in some platform. */
11230 #ifndef LT_DLLAZY_OR_NOW
11231 # ifdef RTLD_LAZY
11232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11233 # else
11234 # ifdef DL_LAZY
11235 # define LT_DLLAZY_OR_NOW DL_LAZY
11236 # else
11237 # ifdef RTLD_NOW
11238 # define LT_DLLAZY_OR_NOW RTLD_NOW
11239 # else
11240 # ifdef DL_NOW
11241 # define LT_DLLAZY_OR_NOW DL_NOW
11242 # else
11243 # define LT_DLLAZY_OR_NOW 0
11244 # endif
11245 # endif
11246 # endif
11247 # endif
11248 #endif
11250 /* When -fvisbility=hidden is used, assume the code has been annotated
11251 correspondingly for the symbols needed. */
11252 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11253 void fnord () __attribute__((visibility("default")));
11254 #endif
11256 void fnord () { int i=42; }
11257 int main ()
11259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11260 int status = $lt_dlunknown;
11262 if (self)
11264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11265 else
11267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11268 else puts (dlerror ());
11270 /* dlclose (self); */
11272 else
11273 puts (dlerror ());
11275 return status;
11277 _LT_EOF
11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11279 (eval $ac_link) 2>&5
11280 ac_status=$?
11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11283 (./conftest; exit; ) >&5 2>/dev/null
11284 lt_status=$?
11285 case x$lt_status in
11286 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11287 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11288 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11289 esac
11290 else :
11291 # compilation failed
11292 lt_cv_dlopen_self=no
11295 rm -fr conftest*
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11300 $as_echo "$lt_cv_dlopen_self" >&6; }
11302 if test "x$lt_cv_dlopen_self" = xyes; then
11303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11305 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11306 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 if test "$cross_compiling" = yes; then :
11310 lt_cv_dlopen_self_static=cross
11311 else
11312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11313 lt_status=$lt_dlunknown
11314 cat > conftest.$ac_ext <<_LT_EOF
11315 #line 11315 "configure"
11316 #include "confdefs.h"
11318 #if HAVE_DLFCN_H
11319 #include <dlfcn.h>
11320 #endif
11322 #include <stdio.h>
11324 #ifdef RTLD_GLOBAL
11325 # define LT_DLGLOBAL RTLD_GLOBAL
11326 #else
11327 # ifdef DL_GLOBAL
11328 # define LT_DLGLOBAL DL_GLOBAL
11329 # else
11330 # define LT_DLGLOBAL 0
11331 # endif
11332 #endif
11334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11335 find out it does not work in some platform. */
11336 #ifndef LT_DLLAZY_OR_NOW
11337 # ifdef RTLD_LAZY
11338 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11339 # else
11340 # ifdef DL_LAZY
11341 # define LT_DLLAZY_OR_NOW DL_LAZY
11342 # else
11343 # ifdef RTLD_NOW
11344 # define LT_DLLAZY_OR_NOW RTLD_NOW
11345 # else
11346 # ifdef DL_NOW
11347 # define LT_DLLAZY_OR_NOW DL_NOW
11348 # else
11349 # define LT_DLLAZY_OR_NOW 0
11350 # endif
11351 # endif
11352 # endif
11353 # endif
11354 #endif
11356 /* When -fvisbility=hidden is used, assume the code has been annotated
11357 correspondingly for the symbols needed. */
11358 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11359 void fnord () __attribute__((visibility("default")));
11360 #endif
11362 void fnord () { int i=42; }
11363 int main ()
11365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11366 int status = $lt_dlunknown;
11368 if (self)
11370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11371 else
11373 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374 else puts (dlerror ());
11376 /* dlclose (self); */
11378 else
11379 puts (dlerror ());
11381 return status;
11383 _LT_EOF
11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11389 (./conftest; exit; ) >&5 2>/dev/null
11390 lt_status=$?
11391 case x$lt_status in
11392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11395 esac
11396 else :
11397 # compilation failed
11398 lt_cv_dlopen_self_static=no
11401 rm -fr conftest*
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11406 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11409 CPPFLAGS="$save_CPPFLAGS"
11410 LDFLAGS="$save_LDFLAGS"
11411 LIBS="$save_LIBS"
11413 esac
11415 case $lt_cv_dlopen_self in
11416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11417 *) enable_dlopen_self=unknown ;;
11418 esac
11420 case $lt_cv_dlopen_self_static in
11421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11422 *) enable_dlopen_self_static=unknown ;;
11423 esac
11442 striplib=
11443 old_striplib=
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11445 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11446 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11450 $as_echo "yes" >&6; }
11451 else
11452 # FIXME - insert some real tests, host_os isn't really good enough
11453 case $host_os in
11454 darwin*)
11455 if test -n "$STRIP" ; then
11456 striplib="$STRIP -x"
11457 old_striplib="$STRIP -S"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459 $as_echo "yes" >&6; }
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11469 esac
11483 # Report which library types will actually be built
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11485 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11487 $as_echo "$can_build_shared" >&6; }
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11490 $as_echo_n "checking whether to build shared libraries... " >&6; }
11491 test "$can_build_shared" = "no" && enable_shared=no
11493 # On AIX, shared libraries and static libraries use the same namespace, and
11494 # are all built from PIC.
11495 case $host_os in
11496 aix3*)
11497 test "$enable_shared" = yes && enable_static=no
11498 if test -n "$RANLIB"; then
11499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11500 postinstall_cmds='$RANLIB $lib'
11504 aix[4-9]*)
11505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11506 test "$enable_shared" = yes && enable_static=no
11509 esac
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11511 $as_echo "$enable_shared" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11514 $as_echo_n "checking whether to build static libraries... " >&6; }
11515 # Make sure either enable_shared or enable_static is yes.
11516 test "$enable_shared" = yes || enable_static=yes
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11518 $as_echo "$enable_static" >&6; }
11524 ac_ext=c
11525 ac_cpp='$CPP $CPPFLAGS'
11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11530 CC="$lt_save_CC"
11544 ac_config_commands="$ac_config_commands libtool"
11549 # Only expand once:
11555 gdc_save_DFLAGS=$GDCFLAGS
11556 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11559 # Source file extension for D test sources.
11560 ac_ext=d
11562 # Object file extension for compiled D test sources.
11563 objext=o
11564 objext_D=$objext
11566 # Code to be used in simple compile tests
11567 lt_simple_compile_test_code="module mod; extern(C) int main() { return 0; }"
11569 # Code to be used in simple link tests
11570 lt_simple_link_test_code='module mod; extern(C) int main() { return 0; }'
11572 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11579 # If no C compiler was specified, use CC.
11580 LTCC=${LTCC-"$CC"}
11582 # If no C compiler flags were specified, use CFLAGS.
11583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11585 # Allow CC to be a program name with arguments.
11586 compiler=$CC
11589 # save warnings/boilerplate of simple test code
11590 ac_outfile=conftest.$ac_objext
11591 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11593 _lt_compiler_boilerplate=`cat conftest.err`
11594 $RM conftest*
11596 ac_outfile=conftest.$ac_objext
11597 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11599 _lt_linker_boilerplate=`cat conftest.err`
11600 $RM -r conftest*
11603 # Allow CC to be a program name with arguments.
11604 lt_save_CC=$CC
11605 lt_save_CFLAGS=$CFLAGS
11606 lt_save_DFLAGS=$GDCFLAGS
11607 lt_save_GCC=$GCC
11608 GCC=yes
11609 CC=${GDC-"gdc"}
11610 # Need to specify location for object.d
11611 GDCFLAGS="-nophoboslib $GDCFLAGS"
11612 CFLAGS=$GDCFLAGS
11613 compiler=$CC
11614 compiler_D=$CC
11615 LD_D=$CC
11616 for cc_temp in $compiler""; do
11617 case $cc_temp in
11618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11620 \-*) ;;
11621 *) break;;
11622 esac
11623 done
11624 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11627 # GDC did not exist at the time GCC didn't implicitly link libc in.
11628 archive_cmds_need_lc_D=no
11630 old_archive_cmds_D=$old_archive_cmds
11631 reload_flag_D=$reload_flag
11632 reload_cmds_D=$reload_cmds
11634 ## CAVEAT EMPTOR:
11635 ## There is no encapsulation within the following macros, do not change
11636 ## the running order or otherwise move them around unless you know exactly
11637 ## what you are doing...
11638 if test -n "$compiler"; then
11640 lt_prog_compiler_no_builtin_flag_D=
11642 if test "$GCC" = yes; then
11643 case $cc_basename in
11644 nvcc*)
11645 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
11647 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
11648 esac
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 lt_cv_prog_compiler_rtti_exceptions=no
11656 ac_outfile=conftest.$ac_objext
11657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11658 lt_compiler_flag="-fno-rtti -fno-exceptions"
11659 # Insert the option either (1) after the last *FLAGS variable, or
11660 # (2) before a word containing "conftest.", or (3) at the end.
11661 # Note that $ac_compile itself does not contain backslashes and begins
11662 # with a dollar sign (not a hyphen), so the echo should work correctly.
11663 # The option is referenced via a variable to avoid confusing sed.
11664 lt_compile=`echo "$ac_compile" | $SED \
11665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11667 -e 's:$: $lt_compiler_flag:'`
11668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11669 (eval "$lt_compile" 2>conftest.err)
11670 ac_status=$?
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 if (exit $ac_status) && test -s "$ac_outfile"; then
11674 # The compiler can only warn and ignore the option if not recognized
11675 # So say no if there are warnings other than the usual output.
11676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11679 lt_cv_prog_compiler_rtti_exceptions=yes
11682 $RM conftest*
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11689 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
11690 else
11698 lt_prog_compiler_wl_D=
11699 lt_prog_compiler_pic_D=
11700 lt_prog_compiler_static_D=
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11705 if test "$GCC" = yes; then
11706 lt_prog_compiler_wl_D='-Wl,'
11707 lt_prog_compiler_static_D='-static'
11709 case $host_os in
11710 aix*)
11711 # All AIX code is PIC.
11712 if test "$host_cpu" = ia64; then
11713 # AIX 5 now supports IA64 processor
11714 lt_prog_compiler_static_D='-Bstatic'
11716 lt_prog_compiler_pic_D='-fPIC'
11719 amigaos*)
11720 case $host_cpu in
11721 powerpc)
11722 # see comment about AmigaOS4 .so support
11723 lt_prog_compiler_pic_D='-fPIC'
11725 m68k)
11726 # FIXME: we need at least 68020 code to build shared libraries, but
11727 # adding the `-m68020' flag to GCC prevents building anything better,
11728 # like `-m68040'.
11729 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
11731 esac
11734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11735 # PIC is the default for these OSes.
11738 mingw* | cygwin* | pw32* | os2* | cegcc*)
11739 # This hack is so that the source file can tell whether it is being
11740 # built for inclusion in a dll (and should export symbols for example).
11741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11742 # (--disable-auto-import) libraries
11743 lt_prog_compiler_pic_D='-DDLL_EXPORT'
11746 darwin* | rhapsody*)
11747 # PIC is the default on this platform
11748 # Common symbols not allowed in MH_DYLIB files
11749 lt_prog_compiler_pic_D='-fno-common'
11752 haiku*)
11753 # PIC is the default for Haiku.
11754 # The "-static" flag exists, but is broken.
11755 lt_prog_compiler_static_D=
11758 hpux*)
11759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11761 # sets the default TLS model and affects inlining.
11762 case $host_cpu in
11763 hppa*64*)
11764 # +Z the default
11767 lt_prog_compiler_pic_D='-fPIC'
11769 esac
11772 interix[3-9]*)
11773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11774 # Instead, we relocate shared libraries at runtime.
11777 msdosdjgpp*)
11778 # Just because we use GCC doesn't mean we suddenly get shared libraries
11779 # on systems that don't support them.
11780 lt_prog_compiler_can_build_shared_D=no
11781 enable_shared=no
11784 *nto* | *qnx*)
11785 # QNX uses GNU C++, but need to define -shared option too, otherwise
11786 # it will coredump.
11787 lt_prog_compiler_pic_D='-fPIC -shared'
11790 sysv4*MP*)
11791 if test -d /usr/nec; then
11792 lt_prog_compiler_pic_D=-Kconform_pic
11797 lt_prog_compiler_pic_D='-fPIC'
11799 esac
11801 case $cc_basename in
11802 nvcc*) # Cuda Compiler Driver 2.2
11803 lt_prog_compiler_wl_D='-Xlinker '
11804 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
11806 esac
11807 else
11808 # PORTME Check for flag to pass linker flags through the system compiler.
11809 case $host_os in
11810 aix*)
11811 lt_prog_compiler_wl_D='-Wl,'
11812 if test "$host_cpu" = ia64; then
11813 # AIX 5 now supports IA64 processor
11814 lt_prog_compiler_static_D='-Bstatic'
11815 else
11816 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
11820 mingw* | cygwin* | pw32* | os2* | cegcc*)
11821 # This hack is so that the source file can tell whether it is being
11822 # built for inclusion in a dll (and should export symbols for example).
11823 lt_prog_compiler_pic_D='-DDLL_EXPORT'
11826 hpux9* | hpux10* | hpux11*)
11827 lt_prog_compiler_wl_D='-Wl,'
11828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11829 # not for PA HP-UX.
11830 case $host_cpu in
11831 hppa*64*|ia64*)
11832 # +Z the default
11835 lt_prog_compiler_pic_D='+Z'
11837 esac
11838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11839 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
11842 irix5* | irix6* | nonstopux*)
11843 lt_prog_compiler_wl_D='-Wl,'
11844 # PIC (with -KPIC) is the default.
11845 lt_prog_compiler_static_D='-non_shared'
11848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11849 case $cc_basename in
11850 # old Intel for x86_64 which still supported -KPIC.
11851 ecc*)
11852 lt_prog_compiler_wl_D='-Wl,'
11853 lt_prog_compiler_pic_D='-KPIC'
11854 lt_prog_compiler_static_D='-static'
11856 # icc used to be incompatible with GCC.
11857 # ICC 10 doesn't accept -KPIC any more.
11858 icc* | ifort*)
11859 lt_prog_compiler_wl_D='-Wl,'
11860 lt_prog_compiler_pic_D='-fPIC'
11861 lt_prog_compiler_static_D='-static'
11863 # Lahey Fortran 8.1.
11864 lf95*)
11865 lt_prog_compiler_wl_D='-Wl,'
11866 lt_prog_compiler_pic_D='--shared'
11867 lt_prog_compiler_static_D='--static'
11869 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11870 # Portland Group compilers (*not* the Pentium gcc compiler,
11871 # which looks to be a dead project)
11872 lt_prog_compiler_wl_D='-Wl,'
11873 lt_prog_compiler_pic_D='-fpic'
11874 lt_prog_compiler_static_D='-Bstatic'
11876 ccc*)
11877 lt_prog_compiler_wl_D='-Wl,'
11878 # All Alpha code is PIC.
11879 lt_prog_compiler_static_D='-non_shared'
11881 xl* | bgxl* | bgf* | mpixl*)
11882 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11883 lt_prog_compiler_wl_D='-Wl,'
11884 lt_prog_compiler_pic_D='-qpic'
11885 lt_prog_compiler_static_D='-qstaticlink'
11888 case `$CC -V 2>&1 | sed 5q` in
11889 *Sun\ F* | *Sun*Fortran*)
11890 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11891 lt_prog_compiler_pic_D='-KPIC'
11892 lt_prog_compiler_static_D='-Bstatic'
11893 lt_prog_compiler_wl_D=''
11895 *Sun\ C*)
11896 # Sun C 5.9
11897 lt_prog_compiler_pic_D='-KPIC'
11898 lt_prog_compiler_static_D='-Bstatic'
11899 lt_prog_compiler_wl_D='-Wl,'
11901 esac
11903 esac
11906 newsos6)
11907 lt_prog_compiler_pic_D='-KPIC'
11908 lt_prog_compiler_static_D='-Bstatic'
11911 *nto* | *qnx*)
11912 # QNX uses GNU C++, but need to define -shared option too, otherwise
11913 # it will coredump.
11914 lt_prog_compiler_pic_D='-fPIC -shared'
11917 osf3* | osf4* | osf5*)
11918 lt_prog_compiler_wl_D='-Wl,'
11919 # All OSF/1 code is PIC.
11920 lt_prog_compiler_static_D='-non_shared'
11923 rdos*)
11924 lt_prog_compiler_static_D='-non_shared'
11927 solaris*)
11928 lt_prog_compiler_pic_D='-KPIC'
11929 lt_prog_compiler_static_D='-Bstatic'
11930 case $cc_basename in
11931 f77* | f90* | f95*)
11932 lt_prog_compiler_wl_D='-Qoption ld ';;
11934 lt_prog_compiler_wl_D='-Wl,';;
11935 esac
11938 sunos4*)
11939 lt_prog_compiler_wl_D='-Qoption ld '
11940 lt_prog_compiler_pic_D='-PIC'
11941 lt_prog_compiler_static_D='-Bstatic'
11944 sysv4 | sysv4.2uw2* | sysv4.3*)
11945 lt_prog_compiler_wl_D='-Wl,'
11946 lt_prog_compiler_pic_D='-KPIC'
11947 lt_prog_compiler_static_D='-Bstatic'
11950 sysv4*MP*)
11951 if test -d /usr/nec ;then
11952 lt_prog_compiler_pic_D='-Kconform_pic'
11953 lt_prog_compiler_static_D='-Bstatic'
11957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11958 lt_prog_compiler_wl_D='-Wl,'
11959 lt_prog_compiler_pic_D='-KPIC'
11960 lt_prog_compiler_static_D='-Bstatic'
11963 unicos*)
11964 lt_prog_compiler_wl_D='-Wl,'
11965 lt_prog_compiler_can_build_shared_D=no
11968 uts4*)
11969 lt_prog_compiler_pic_D='-pic'
11970 lt_prog_compiler_static_D='-Bstatic'
11974 lt_prog_compiler_can_build_shared_D=no
11976 esac
11979 case $host_os in
11980 # For platforms which do not support PIC, -DPIC is meaningless:
11981 *djgpp*)
11982 lt_prog_compiler_pic_D=
11985 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
11987 esac
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
11989 $as_echo "$lt_prog_compiler_pic_D" >&6; }
11994 # Check to make sure the PIC flag actually works.
11996 if test -n "$lt_prog_compiler_pic_D"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
11998 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
11999 if test "${lt_cv_prog_compiler_pic_works_D+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 lt_cv_prog_compiler_pic_works_D=no
12003 ac_outfile=conftest.$ac_objext
12004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12005 lt_compiler_flag="$lt_prog_compiler_pic_D"
12006 # Insert the option either (1) after the last *FLAGS variable, or
12007 # (2) before a word containing "conftest.", or (3) at the end.
12008 # Note that $ac_compile itself does not contain backslashes and begins
12009 # with a dollar sign (not a hyphen), so the echo should work correctly.
12010 # The option is referenced via a variable to avoid confusing sed.
12011 lt_compile=`echo "$ac_compile" | $SED \
12012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12014 -e 's:$: $lt_compiler_flag:'`
12015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12016 (eval "$lt_compile" 2>conftest.err)
12017 ac_status=$?
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 if (exit $ac_status) && test -s "$ac_outfile"; then
12021 # The compiler can only warn and ignore the option if not recognized
12022 # So say no if there are warnings other than the usual output.
12023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12026 lt_cv_prog_compiler_pic_works_D=yes
12029 $RM conftest*
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12033 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12035 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12036 case $lt_prog_compiler_pic_D in
12037 "" | " "*) ;;
12038 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12039 esac
12040 else
12041 lt_prog_compiler_pic_D=
12042 lt_prog_compiler_can_build_shared_D=no
12050 # Check to make sure the static flag actually works.
12052 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12054 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12055 if test "${lt_cv_prog_compiler_static_works_D+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 lt_cv_prog_compiler_static_works_D=no
12059 save_LDFLAGS="$LDFLAGS"
12060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12061 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12063 # The linker can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 if test -s conftest.err; then
12066 # Append any errors to the config.log.
12067 cat conftest.err 1>&5
12068 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12070 if diff conftest.exp conftest.er2 >/dev/null; then
12071 lt_cv_prog_compiler_static_works_D=yes
12073 else
12074 lt_cv_prog_compiler_static_works_D=yes
12077 $RM -r conftest*
12078 LDFLAGS="$save_LDFLAGS"
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12082 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12084 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12086 else
12087 lt_prog_compiler_static_D=
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12095 if test "${lt_cv_prog_compiler_c_o_D+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 lt_cv_prog_compiler_c_o_D=no
12099 $RM -r conftest 2>/dev/null
12100 mkdir conftest
12101 cd conftest
12102 mkdir out
12103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12105 lt_compiler_flag="-o out/conftest2.$ac_objext"
12106 # Insert the option either (1) after the last *FLAGS variable, or
12107 # (2) before a word containing "conftest.", or (3) at the end.
12108 # Note that $ac_compile itself does not contain backslashes and begins
12109 # with a dollar sign (not a hyphen), so the echo should work correctly.
12110 lt_compile=`echo "$ac_compile" | $SED \
12111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113 -e 's:$: $lt_compiler_flag:'`
12114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12115 (eval "$lt_compile" 2>out/conftest.err)
12116 ac_status=$?
12117 cat out/conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12120 then
12121 # The compiler can only warn and ignore the option if not recognized
12122 # So say no if there are warnings
12123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12126 lt_cv_prog_compiler_c_o_D=yes
12129 chmod u+w . 2>&5
12130 $RM conftest*
12131 # SGI C++ compiler will create directory out/ii_files/ for
12132 # template instantiation
12133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12134 $RM out/* && rmdir out
12135 cd ..
12136 $RM -r conftest
12137 $RM conftest*
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12141 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12147 if test "${lt_cv_prog_compiler_c_o_D+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 lt_cv_prog_compiler_c_o_D=no
12151 $RM -r conftest 2>/dev/null
12152 mkdir conftest
12153 cd conftest
12154 mkdir out
12155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12157 lt_compiler_flag="-o out/conftest2.$ac_objext"
12158 # Insert the option either (1) after the last *FLAGS variable, or
12159 # (2) before a word containing "conftest.", or (3) at the end.
12160 # Note that $ac_compile itself does not contain backslashes and begins
12161 # with a dollar sign (not a hyphen), so the echo should work correctly.
12162 lt_compile=`echo "$ac_compile" | $SED \
12163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12165 -e 's:$: $lt_compiler_flag:'`
12166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12167 (eval "$lt_compile" 2>out/conftest.err)
12168 ac_status=$?
12169 cat out/conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12172 then
12173 # The compiler can only warn and ignore the option if not recognized
12174 # So say no if there are warnings
12175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12178 lt_cv_prog_compiler_c_o_D=yes
12181 chmod u+w . 2>&5
12182 $RM conftest*
12183 # SGI C++ compiler will create directory out/ii_files/ for
12184 # template instantiation
12185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12186 $RM out/* && rmdir out
12187 cd ..
12188 $RM -r conftest
12189 $RM conftest*
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12193 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12198 hard_links="nottested"
12199 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12200 # do not overwrite the value of need_locks provided by the user
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12202 $as_echo_n "checking if we can lock with hard links... " >&6; }
12203 hard_links=yes
12204 $RM conftest*
12205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12206 touch conftest.a
12207 ln conftest.a conftest.b 2>&5 || hard_links=no
12208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12210 $as_echo "$hard_links" >&6; }
12211 if test "$hard_links" = no; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12213 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12214 need_locks=warn
12216 else
12217 need_locks=no
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12225 runpath_var=
12226 allow_undefined_flag_D=
12227 always_export_symbols_D=no
12228 archive_cmds_D=
12229 archive_expsym_cmds_D=
12230 compiler_needs_object_D=no
12231 enable_shared_with_static_runtimes_D=no
12232 export_dynamic_flag_spec_D=
12233 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12234 hardcode_automatic_D=no
12235 hardcode_direct_D=no
12236 hardcode_direct_absolute_D=no
12237 hardcode_libdir_flag_spec_D=
12238 hardcode_libdir_flag_spec_ld_D=
12239 hardcode_libdir_separator_D=
12240 hardcode_minus_L_D=no
12241 hardcode_shlibpath_var_D=unsupported
12242 inherit_rpath_D=no
12243 link_all_deplibs_D=unknown
12244 module_cmds_D=
12245 module_expsym_cmds_D=
12246 old_archive_from_new_cmds_D=
12247 old_archive_from_expsyms_cmds_D=
12248 thread_safe_flag_spec_D=
12249 whole_archive_flag_spec_D=
12250 # include_expsyms should be a list of space-separated symbols to be *always*
12251 # included in the symbol list
12252 include_expsyms_D=
12253 # exclude_expsyms can be an extended regexp of symbols to exclude
12254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12256 # as well as any symbol that contains `d'.
12257 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12259 # platforms (ab)use it in PIC code, but their linkers get confused if
12260 # the symbol is explicitly referenced. Since portable code cannot
12261 # rely on this symbol name, it's probably fine to never include it in
12262 # preloaded symbol tables.
12263 # Exclude shared library initialization/finalization symbols.
12264 extract_expsyms_cmds=
12266 case $host_os in
12267 cygwin* | mingw* | pw32* | cegcc*)
12268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12269 # When not using gcc, we currently assume that we are using
12270 # Microsoft Visual C++.
12271 if test "$GCC" != yes; then
12272 with_gnu_ld=no
12275 interix*)
12276 # we just hope/assume this is gcc and not c89 (= MSVC++)
12277 with_gnu_ld=yes
12279 openbsd*)
12280 with_gnu_ld=no
12282 esac
12284 ld_shlibs_D=yes
12286 # On some targets, GNU ld is compatible enough with the native linker
12287 # that we're better off using the native interface for both.
12288 lt_use_gnu_ld_interface=no
12289 if test "$with_gnu_ld" = yes; then
12290 case $host_os in
12291 aix*)
12292 # The AIX port of GNU ld has always aspired to compatibility
12293 # with the native linker. However, as the warning in the GNU ld
12294 # block says, versions before 2.19.5* couldn't really create working
12295 # shared libraries, regardless of the interface used.
12296 case `$LD -v 2>&1` in
12297 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12298 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12299 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12301 lt_use_gnu_ld_interface=yes
12303 esac
12306 lt_use_gnu_ld_interface=yes
12308 esac
12311 if test "$lt_use_gnu_ld_interface" = yes; then
12312 # If archive_cmds runs LD, not CC, wlarc should be empty
12313 wlarc='${wl}'
12315 # Set some defaults for GNU ld with shared library support. These
12316 # are reset later if shared libraries are not supported. Putting them
12317 # here allows them to be overridden if necessary.
12318 runpath_var=LD_RUN_PATH
12319 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12320 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12321 # ancient GNU ld didn't support --whole-archive et. al.
12322 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12323 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12324 else
12325 whole_archive_flag_spec_D=
12327 supports_anon_versioning=no
12328 case `$LD -v 2>&1` in
12329 *GNU\ gold*) supports_anon_versioning=yes ;;
12330 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12331 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12332 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12333 *\ 2.11.*) ;; # other 2.11 versions
12334 *) supports_anon_versioning=yes ;;
12335 esac
12337 # See if GNU ld supports shared libraries.
12338 case $host_os in
12339 aix[3-9]*)
12340 # On AIX/PPC, the GNU linker is very broken
12341 if test "$host_cpu" != ia64; then
12342 ld_shlibs_D=no
12343 cat <<_LT_EOF 1>&2
12345 *** Warning: the GNU linker, at least up to release 2.19, is reported
12346 *** to be unable to reliably create shared libraries on AIX.
12347 *** Therefore, libtool is disabling shared libraries support. If you
12348 *** really care for shared libraries, you may want to install binutils
12349 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12350 *** You will then need to restart the configuration process.
12352 _LT_EOF
12356 amigaos*)
12357 case $host_cpu in
12358 powerpc)
12359 # see comment about AmigaOS4 .so support
12360 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12361 archive_expsym_cmds_D=''
12363 m68k)
12364 archive_cmds_D='$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)'
12365 hardcode_libdir_flag_spec_D='-L$libdir'
12366 hardcode_minus_L_D=yes
12368 esac
12371 beos*)
12372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12373 allow_undefined_flag_D=unsupported
12374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12375 # support --undefined. This deserves some investigation. FIXME
12376 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12377 else
12378 ld_shlibs_D=no
12382 cygwin* | mingw* | pw32* | cegcc*)
12383 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12384 # as there is no search path for DLLs.
12385 hardcode_libdir_flag_spec_D='-L$libdir'
12386 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12387 allow_undefined_flag_D=unsupported
12388 always_export_symbols_D=no
12389 enable_shared_with_static_runtimes_D=yes
12390 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12393 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12394 # If the export-symbols file already is a .def file (1st line
12395 # is EXPORTS), use it as is; otherwise, prepend...
12396 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12397 cp $export_symbols $output_objdir/$soname.def;
12398 else
12399 echo EXPORTS > $output_objdir/$soname.def;
12400 cat $export_symbols >> $output_objdir/$soname.def;
12402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12403 else
12404 ld_shlibs_D=no
12408 haiku*)
12409 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410 link_all_deplibs_D=yes
12413 interix[3-9]*)
12414 hardcode_direct_D=no
12415 hardcode_shlibpath_var_D=no
12416 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12417 export_dynamic_flag_spec_D='${wl}-E'
12418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12419 # Instead, shared libraries are loaded at an image base (0x10000000 by
12420 # default) and relocated if they conflict, which is a slow very memory
12421 # consuming and fragmenting process. To avoid this, we pick a random,
12422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12424 archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12425 archive_expsym_cmds_D='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'
12428 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12429 tmp_diet=no
12430 if test "$host_os" = linux-dietlibc; then
12431 case $cc_basename in
12432 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12433 esac
12435 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12436 && test "$tmp_diet" = no
12437 then
12438 tmp_addflag=' $pic_flag'
12439 tmp_sharedflag='-shared'
12440 case $cc_basename,$host_cpu in
12441 pgcc*) # Portland Group C compiler
12442 whole_archive_flag_spec_D='${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'
12443 tmp_addflag=' $pic_flag'
12445 pgf77* | pgf90* | pgf95* | pgfortran*)
12446 # Portland Group f77 and f90 compilers
12447 whole_archive_flag_spec_D='${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'
12448 tmp_addflag=' $pic_flag -Mnomain' ;;
12449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12450 tmp_addflag=' -i_dynamic' ;;
12451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12452 tmp_addflag=' -i_dynamic -nofor_main' ;;
12453 ifc* | ifort*) # Intel Fortran compiler
12454 tmp_addflag=' -nofor_main' ;;
12455 lf95*) # Lahey Fortran 8.1
12456 whole_archive_flag_spec_D=
12457 tmp_sharedflag='--shared' ;;
12458 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12459 tmp_sharedflag='-qmkshrobj'
12460 tmp_addflag= ;;
12461 nvcc*) # Cuda Compiler Driver 2.2
12462 whole_archive_flag_spec_D='${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'
12463 compiler_needs_object_D=yes
12465 esac
12466 case `$CC -V 2>&1 | sed 5q` in
12467 *Sun\ C*) # Sun C 5.9
12468 whole_archive_flag_spec_D='${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'
12469 compiler_needs_object_D=yes
12470 tmp_sharedflag='-G' ;;
12471 *Sun\ F*) # Sun Fortran 8.3
12472 tmp_sharedflag='-G' ;;
12473 esac
12474 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476 if test "x$supports_anon_versioning" = xyes; then
12477 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12479 echo "local: *; };" >> $output_objdir/$libname.ver~
12480 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12483 case $cc_basename in
12484 xlf* | bgf* | bgxlf* | mpixlf*)
12485 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12486 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12487 hardcode_libdir_flag_spec_D=
12488 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12489 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12490 if test "x$supports_anon_versioning" = xyes; then
12491 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12493 echo "local: *; };" >> $output_objdir/$libname.ver~
12494 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12497 esac
12498 else
12499 ld_shlibs_D=no
12503 netbsd*)
12504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12505 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12506 wlarc=
12507 else
12508 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12513 solaris*)
12514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12515 ld_shlibs_D=no
12516 cat <<_LT_EOF 1>&2
12518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12519 *** create shared libraries on Solaris systems. Therefore, libtool
12520 *** is disabling shared libraries support. We urge you to upgrade GNU
12521 *** binutils to release 2.9.1 or newer. Another option is to modify
12522 *** your PATH or compiler configuration so that the native linker is
12523 *** used, and then restart.
12525 _LT_EOF
12526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12527 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12528 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12529 else
12530 ld_shlibs_D=no
12534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12535 case `$LD -v 2>&1` in
12536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12537 ld_shlibs_D=no
12538 cat <<_LT_EOF 1>&2
12540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12541 *** reliably create shared libraries on SCO systems. Therefore, libtool
12542 *** is disabling shared libraries support. We urge you to upgrade GNU
12543 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12544 *** your PATH or compiler configuration so that the native linker is
12545 *** used, and then restart.
12547 _LT_EOF
12550 # For security reasons, it is highly recommended that you always
12551 # use absolute paths for naming shared libraries, and exclude the
12552 # DT_RUNPATH tag from executables and libraries. But doing so
12553 # requires that you compile everything twice, which is a pain.
12554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12555 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12556 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12557 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12558 else
12559 ld_shlibs_D=no
12562 esac
12565 sunos4*)
12566 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12567 wlarc=
12568 hardcode_direct_D=yes
12569 hardcode_shlibpath_var_D=no
12573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12575 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12576 else
12577 ld_shlibs_D=no
12580 esac
12582 if test "$ld_shlibs_D" = no; then
12583 runpath_var=
12584 hardcode_libdir_flag_spec_D=
12585 export_dynamic_flag_spec_D=
12586 whole_archive_flag_spec_D=
12588 else
12589 # PORTME fill in a description of your system's linker (not GNU ld)
12590 case $host_os in
12591 aix3*)
12592 allow_undefined_flag_D=unsupported
12593 always_export_symbols_D=yes
12594 archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12595 # Note: this linker hardcodes the directories in LIBPATH if there
12596 # are no directories specified by -L.
12597 hardcode_minus_L_D=yes
12598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12599 # Neither direct hardcoding nor static linking is supported with a
12600 # broken collect2.
12601 hardcode_direct_D=unsupported
12605 aix[4-9]*)
12606 if test "$host_cpu" = ia64; then
12607 # On IA64, the linker does run time linking by default, so we don't
12608 # have to do anything special.
12609 aix_use_runtimelinking=no
12610 exp_sym_flag='-Bexport'
12611 no_entry_flag=""
12612 else
12613 # If we're using GNU nm, then we don't want the "-C" option.
12614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12615 # Also, AIX nm treats weak defined symbols like other global
12616 # defined symbols, whereas GNU nm marks them as "W".
12617 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12618 export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12619 else
12620 export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12622 aix_use_runtimelinking=no
12624 # Test if we are trying to use run time linking or normal
12625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12626 # need to do runtime linking.
12627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12628 for ld_flag in $LDFLAGS; do
12629 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12630 aix_use_runtimelinking=yes
12631 break
12633 done
12635 esac
12637 exp_sym_flag='-bexport'
12638 no_entry_flag='-bnoentry'
12641 # When large executables or shared objects are built, AIX ld can
12642 # have problems creating the table of contents. If linking a library
12643 # or program results in "error TOC overflow" add -mminimal-toc to
12644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12647 archive_cmds_D=''
12648 hardcode_direct_D=yes
12649 hardcode_direct_absolute_D=yes
12650 hardcode_libdir_separator_D=':'
12651 link_all_deplibs_D=yes
12652 file_list_spec_D='${wl}-f,'
12654 if test "$GCC" = yes; then
12655 case $host_os in aix4.[012]|aix4.[012].*)
12656 # We only want to do this on AIX 4.2 and lower, the check
12657 # below for broken collect2 doesn't work under 4.3+
12658 collect2name=`${CC} -print-prog-name=collect2`
12659 if test -f "$collect2name" &&
12660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12661 then
12662 # We have reworked collect2
12664 else
12665 # We have old collect2
12666 hardcode_direct_D=unsupported
12667 # It fails to find uninstalled libraries when the uninstalled
12668 # path is not listed in the libpath. Setting hardcode_minus_L
12669 # to unsupported forces relinking
12670 hardcode_minus_L_D=yes
12671 hardcode_libdir_flag_spec_D='-L$libdir'
12672 hardcode_libdir_separator_D=
12675 esac
12676 shared_flag='-shared'
12677 if test "$aix_use_runtimelinking" = yes; then
12678 shared_flag="$shared_flag "'${wl}-G'
12680 else
12681 # not using gcc
12682 if test "$host_cpu" = ia64; then
12683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12684 # chokes on -Wl,-G. The following line is correct:
12685 shared_flag='-G'
12686 else
12687 if test "$aix_use_runtimelinking" = yes; then
12688 shared_flag='${wl}-G'
12689 else
12690 shared_flag='${wl}-bM:SRE'
12695 export_dynamic_flag_spec_D='${wl}-bexpall'
12696 # It seems that -bexpall does not export symbols beginning with
12697 # underscore (_), so it is better to generate a list of symbols to export.
12698 always_export_symbols_D=yes
12699 if test "$aix_use_runtimelinking" = yes; then
12700 # Warning - without using the other runtime loading flags (-brtl),
12701 # -berok will link without error, but may produce a broken library.
12702 allow_undefined_flag_D='-berok'
12703 # Determine the default libpath from the value encoded in an
12704 # empty executable.
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12709 main ()
12713 return 0;
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12718 lt_aix_libpath_sed='
12719 /Import File Strings/,/^$/ {
12720 /^0/ {
12721 s/^0 *\(.*\)$/\1/
12725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12726 # Check for a 64-bit object if we didn't find anything.
12727 if test -z "$aix_libpath"; then
12728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12731 rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext conftest.$ac_ext
12733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12735 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
12736 archive_expsym_cmds_D='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12737 else
12738 if test "$host_cpu" = ia64; then
12739 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
12740 allow_undefined_flag_D="-z nodefs"
12741 archive_expsym_cmds_D="\$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"
12742 else
12743 # Determine the default libpath from the value encoded in an
12744 # empty executable.
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12749 main ()
12753 return 0;
12755 _ACEOF
12756 if ac_fn_c_try_link "$LINENO"; then :
12758 lt_aix_libpath_sed='
12759 /Import File Strings/,/^$/ {
12760 /^0/ {
12761 s/^0 *\(.*\)$/\1/
12765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12766 # Check for a 64-bit object if we didn't find anything.
12767 if test -z "$aix_libpath"; then
12768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12771 rm -f core conftest.err conftest.$ac_objext \
12772 conftest$ac_exeext conftest.$ac_ext
12773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12775 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
12776 # Warning - without using the other run time loading flags,
12777 # -berok will link without error, but may produce a broken library.
12778 no_undefined_flag_D=' ${wl}-bernotok'
12779 allow_undefined_flag_D=' ${wl}-berok'
12780 if test "$with_gnu_ld" = yes; then
12781 # We only use this code for GNU lds that support --whole-archive.
12782 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12783 else
12784 # Exported symbols can be pulled into shared objects from archives
12785 whole_archive_flag_spec_D='$convenience'
12787 archive_cmds_need_lc_D=yes
12788 # This is similar to how AIX traditionally builds its shared libraries.
12789 archive_expsym_cmds_D="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12794 amigaos*)
12795 case $host_cpu in
12796 powerpc)
12797 # see comment about AmigaOS4 .so support
12798 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12799 archive_expsym_cmds_D=''
12801 m68k)
12802 archive_cmds_D='$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)'
12803 hardcode_libdir_flag_spec_D='-L$libdir'
12804 hardcode_minus_L_D=yes
12806 esac
12809 bsdi[45]*)
12810 export_dynamic_flag_spec_D=-rdynamic
12813 cygwin* | mingw* | pw32* | cegcc*)
12814 # When not using gcc, we currently assume that we are using
12815 # Microsoft Visual C++.
12816 # hardcode_libdir_flag_spec is actually meaningless, as there is
12817 # no search path for DLLs.
12818 hardcode_libdir_flag_spec_D=' '
12819 allow_undefined_flag_D=unsupported
12820 # Tell ltmain to make .lib files, not .a files.
12821 libext=lib
12822 # Tell ltmain to make .dll files, not .so files.
12823 shrext_cmds=".dll"
12824 # FIXME: Setting linknames here is a bad hack.
12825 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12826 # The linker will automatically build a .lib file if we build a DLL.
12827 old_archive_from_new_cmds_D='true'
12828 # FIXME: Should let the user specify the lib program.
12829 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
12830 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
12831 enable_shared_with_static_runtimes_D=yes
12834 darwin* | rhapsody*)
12837 archive_cmds_need_lc_D=no
12838 hardcode_direct_D=no
12839 hardcode_automatic_D=yes
12840 hardcode_shlibpath_var_D=unsupported
12841 if test "$lt_cv_ld_force_load" = "yes"; then
12842 whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12843 else
12844 whole_archive_flag_spec_D=''
12846 link_all_deplibs_D=yes
12847 allow_undefined_flag_D="$_lt_dar_allow_undefined"
12848 case $cc_basename in
12849 ifort*) _lt_dar_can_shared=yes ;;
12850 *) _lt_dar_can_shared=$GCC ;;
12851 esac
12852 if test "$_lt_dar_can_shared" = "yes"; then
12853 output_verbose_link_cmd=func_echo_all
12854 archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12855 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12856 archive_expsym_cmds_D="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}"
12857 module_expsym_cmds_D="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}"
12859 else
12860 ld_shlibs_D=no
12865 dgux*)
12866 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_libdir_flag_spec_D='-L$libdir'
12868 hardcode_shlibpath_var_D=no
12871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12872 # support. Future versions do this automatically, but an explicit c++rt0.o
12873 # does not break anything, and helps significantly (at the cost of a little
12874 # extra space).
12875 freebsd2.2*)
12876 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12877 hardcode_libdir_flag_spec_D='-R$libdir'
12878 hardcode_direct_D=yes
12879 hardcode_shlibpath_var_D=no
12882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12883 freebsd2.*)
12884 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct_D=yes
12886 hardcode_minus_L_D=yes
12887 hardcode_shlibpath_var_D=no
12890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12891 freebsd* | dragonfly*)
12892 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12893 hardcode_libdir_flag_spec_D='-R$libdir'
12894 hardcode_direct_D=yes
12895 hardcode_shlibpath_var_D=no
12898 hpux9*)
12899 if test "$GCC" = yes; then
12900 archive_cmds_D='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12901 else
12902 archive_cmds_D='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12904 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
12905 hardcode_libdir_separator_D=:
12906 hardcode_direct_D=yes
12908 # hardcode_minus_L: Not really in the search PATH,
12909 # but as the default location of the library.
12910 hardcode_minus_L_D=yes
12911 export_dynamic_flag_spec_D='${wl}-E'
12914 hpux10*)
12915 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12916 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12917 else
12918 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12920 if test "$with_gnu_ld" = no; then
12921 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
12922 hardcode_libdir_flag_spec_ld_D='+b $libdir'
12923 hardcode_libdir_separator_D=:
12924 hardcode_direct_D=yes
12925 hardcode_direct_absolute_D=yes
12926 export_dynamic_flag_spec_D='${wl}-E'
12927 # hardcode_minus_L: Not really in the search PATH,
12928 # but as the default location of the library.
12929 hardcode_minus_L_D=yes
12933 hpux11*)
12934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12935 case $host_cpu in
12936 hppa*64*)
12937 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12939 ia64*)
12940 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12943 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12945 esac
12946 else
12947 case $host_cpu in
12948 hppa*64*)
12949 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12951 ia64*)
12952 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12955 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12957 esac
12959 if test "$with_gnu_ld" = no; then
12960 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
12961 hardcode_libdir_separator_D=:
12963 case $host_cpu in
12964 hppa*64*|ia64*)
12965 hardcode_direct_D=no
12966 hardcode_shlibpath_var_D=no
12969 hardcode_direct_D=yes
12970 hardcode_direct_absolute_D=yes
12971 export_dynamic_flag_spec_D='${wl}-E'
12973 # hardcode_minus_L: Not really in the search PATH,
12974 # but as the default location of the library.
12975 hardcode_minus_L_D=yes
12977 esac
12981 irix5* | irix6* | nonstopux*)
12982 if test "$GCC" = yes; then
12983 archive_cmds_D='$CC -shared $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'
12984 # Try to use the -exported_symbol ld option, if it does not
12985 # work, assume that -exports_file does not work either and
12986 # implicitly export all symbols.
12987 save_LDFLAGS="$LDFLAGS"
12988 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991 int foo(void) {}
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 archive_expsym_cmds_D='$CC -shared $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'
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LDFLAGS="$save_LDFLAGS"
13000 else
13001 archive_cmds_D='$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'
13002 archive_expsym_cmds_D='$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'
13004 archive_cmds_need_lc_D='no'
13005 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13006 hardcode_libdir_separator_D=:
13007 inherit_rpath_D=yes
13008 link_all_deplibs_D=yes
13011 netbsd*)
13012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13013 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13014 else
13015 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13017 hardcode_libdir_flag_spec_D='-R$libdir'
13018 hardcode_direct_D=yes
13019 hardcode_shlibpath_var_D=no
13022 newsos6)
13023 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13024 hardcode_direct_D=yes
13025 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13026 hardcode_libdir_separator_D=:
13027 hardcode_shlibpath_var_D=no
13030 *nto* | *qnx*)
13033 openbsd*)
13034 if test -f /usr/libexec/ld.so; then
13035 hardcode_direct_D=yes
13036 hardcode_shlibpath_var_D=no
13037 hardcode_direct_absolute_D=yes
13038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13039 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13041 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13042 export_dynamic_flag_spec_D='${wl}-E'
13043 else
13044 case $host_os in
13045 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13046 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_libdir_flag_spec_D='-R$libdir'
13050 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13051 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13053 esac
13055 else
13056 ld_shlibs_D=no
13060 os2*)
13061 hardcode_libdir_flag_spec_D='-L$libdir'
13062 hardcode_minus_L_D=yes
13063 allow_undefined_flag_D=unsupported
13064 archive_cmds_D='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13065 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13068 osf3*)
13069 if test "$GCC" = yes; then
13070 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13071 archive_cmds_D='$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'
13072 else
13073 allow_undefined_flag_D=' -expect_unresolved \*'
13074 archive_cmds_D='$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'
13076 archive_cmds_need_lc_D='no'
13077 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13078 hardcode_libdir_separator_D=:
13081 osf4* | osf5*) # as osf3* with the addition of -msym flag
13082 if test "$GCC" = yes; then
13083 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13084 archive_cmds_D='$CC -shared${allow_undefined_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'
13085 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13086 else
13087 allow_undefined_flag_D=' -expect_unresolved \*'
13088 archive_cmds_D='$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'
13089 archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13090 $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'
13092 # Both c and cxx compiler support -rpath directly
13093 hardcode_libdir_flag_spec_D='-rpath $libdir'
13095 archive_cmds_need_lc_D='no'
13096 hardcode_libdir_separator_D=:
13099 solaris*)
13100 no_undefined_flag_D=' -z defs'
13101 if test "$GCC" = yes; then
13102 wlarc='${wl}'
13103 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13105 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13106 else
13107 case `$CC -V 2>&1` in
13108 *"Compilers 5.0"*)
13109 wlarc=''
13110 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13112 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13115 wlarc='${wl}'
13116 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13117 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13118 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13120 esac
13122 hardcode_libdir_flag_spec_D='-R$libdir'
13123 hardcode_shlibpath_var_D=no
13124 case $host_os in
13125 solaris2.[0-5] | solaris2.[0-5].*) ;;
13127 # The compiler driver will combine and reorder linker options,
13128 # but understands `-z linker_flag'. GCC discards it without `$wl',
13129 # but is careful enough not to reorder.
13130 # Supported since Solaris 2.6 (maybe 2.5.1?)
13131 if test "$GCC" = yes; then
13132 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13133 else
13134 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13137 esac
13138 link_all_deplibs_D=yes
13141 sunos4*)
13142 if test "x$host_vendor" = xsequent; then
13143 # Use $CC to link under sequent, because it throws in some extra .o
13144 # files that make .init and .fini sections work.
13145 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13146 else
13147 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13149 hardcode_libdir_flag_spec_D='-L$libdir'
13150 hardcode_direct_D=yes
13151 hardcode_minus_L_D=yes
13152 hardcode_shlibpath_var_D=no
13155 sysv4)
13156 case $host_vendor in
13157 sni)
13158 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13159 hardcode_direct_D=yes # is this really true???
13161 siemens)
13162 ## LD is ld it makes a PLAMLIB
13163 ## CC just makes a GrossModule.
13164 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13165 reload_cmds_D='$CC -r -o $output$reload_objs'
13166 hardcode_direct_D=no
13168 motorola)
13169 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13172 esac
13173 runpath_var='LD_RUN_PATH'
13174 hardcode_shlibpath_var_D=no
13177 sysv4.3*)
13178 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13179 hardcode_shlibpath_var_D=no
13180 export_dynamic_flag_spec_D='-Bexport'
13183 sysv4*MP*)
13184 if test -d /usr/nec; then
13185 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186 hardcode_shlibpath_var_D=no
13187 runpath_var=LD_RUN_PATH
13188 hardcode_runpath_var=yes
13189 ld_shlibs_D=yes
13193 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13194 no_undefined_flag_D='${wl}-z,text'
13195 archive_cmds_need_lc_D=no
13196 hardcode_shlibpath_var_D=no
13197 runpath_var='LD_RUN_PATH'
13199 if test "$GCC" = yes; then
13200 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 else
13203 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13204 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13208 sysv5* | sco3.2v5* | sco5v6*)
13209 # Note: We can NOT use -z defs as we might desire, because we do not
13210 # link with -lc, and that would cause any symbols used from libc to
13211 # always be unresolved, which means just about no library would
13212 # ever link correctly. If we're not using GNU ld we use -z text
13213 # though, which does catch some bad symbols but isn't as heavy-handed
13214 # as -z defs.
13215 no_undefined_flag_D='${wl}-z,text'
13216 allow_undefined_flag_D='${wl}-z,nodefs'
13217 archive_cmds_need_lc_D=no
13218 hardcode_shlibpath_var_D=no
13219 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13220 hardcode_libdir_separator_D=':'
13221 link_all_deplibs_D=yes
13222 export_dynamic_flag_spec_D='${wl}-Bexport'
13223 runpath_var='LD_RUN_PATH'
13225 if test "$GCC" = yes; then
13226 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13228 else
13229 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13230 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13234 uts4*)
13235 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 hardcode_libdir_flag_spec_D='-L$libdir'
13237 hardcode_shlibpath_var_D=no
13241 ld_shlibs_D=no
13243 esac
13245 if test x$host_vendor = xsni; then
13246 case $host in
13247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13248 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13250 esac
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13255 $as_echo "$ld_shlibs_D" >&6; }
13256 test "$ld_shlibs_D" = no && can_build_shared=no
13258 with_gnu_ld_D=$with_gnu_ld
13266 # Do we need to explicitly link libc?
13268 case "x$archive_cmds_need_lc_D" in
13269 x|xyes)
13270 # Assume -lc should be added
13271 archive_cmds_need_lc_D=yes
13273 if test "$enable_shared" = yes && test "$GCC" = yes; then
13274 case $archive_cmds_D in
13275 *'~'*)
13276 # FIXME: we may have to deal with multi-command sequences.
13278 '$CC '*)
13279 # Test whether the compiler implicitly links with -lc since on some
13280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13281 # to ld, don't add -lc before -lgcc.
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13284 if test "${lt_cv_archive_cmds_need_lc_D+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 $RM conftest*
13288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13291 (eval $ac_compile) 2>&5
13292 ac_status=$?
13293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13294 test $ac_status = 0; } 2>conftest.err; then
13295 soname=conftest
13296 lib=conftest
13297 libobjs=conftest.$ac_objext
13298 deplibs=
13299 wl=$lt_prog_compiler_wl_D
13300 pic_flag=$lt_prog_compiler_pic_D
13301 compiler_flags=-v
13302 linker_flags=-v
13303 verstring=
13304 output_objdir=.
13305 libname=conftest
13306 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13307 allow_undefined_flag_D=
13308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13309 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13310 ac_status=$?
13311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13312 test $ac_status = 0; }
13313 then
13314 lt_cv_archive_cmds_need_lc_D=no
13315 else
13316 lt_cv_archive_cmds_need_lc_D=yes
13318 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13319 else
13320 cat conftest.err 1>&5
13322 $RM conftest*
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13326 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13327 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13329 esac
13332 esac
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13399 hardcode_action_D=
13400 if test -n "$hardcode_libdir_flag_spec_D" ||
13401 test -n "$runpath_var_D" ||
13402 test "X$hardcode_automatic_D" = "Xyes" ; then
13404 # We can hardcode non-existent directories.
13405 if test "$hardcode_direct_D" != no &&
13406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13407 # have to relink, otherwise we might link with an installed library
13408 # when we should be linking with a yet-to-be-installed one
13409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13410 test "$hardcode_minus_L_D" != no; then
13411 # Linking always hardcodes the temporary library directory.
13412 hardcode_action_D=relink
13413 else
13414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13415 hardcode_action_D=immediate
13417 else
13418 # We cannot hardcode anything, or else we can only hardcode existing
13419 # directories.
13420 hardcode_action_D=unsupported
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13423 $as_echo "$hardcode_action_D" >&6; }
13425 if test "$hardcode_action_D" = relink ||
13426 test "$inherit_rpath_D" = yes; then
13427 # Fast installation is not supported
13428 enable_fast_install=no
13429 elif test "$shlibpath_overrides_runpath" = yes ||
13430 test "$enable_shared" = no; then
13431 # Fast installation is not necessary
13432 enable_fast_install=needless
13443 ac_ext=c
13444 ac_cpp='$CPP $CPPFLAGS'
13445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450 GCC=$lt_save_GCC
13451 CC=$lt_save_CC
13452 CFLAGS=$lt_save_CFLAGS
13453 GDCFLAGS=$lt_save_DFLAGS
13455 GDCFLAGS=$gdc_save_DFLAGS
13457 if test "$enable_shared" = "yes"; then
13458 ENABLE_SHARED_TRUE=
13459 ENABLE_SHARED_FALSE='#'
13460 else
13461 ENABLE_SHARED_TRUE='#'
13462 ENABLE_SHARED_FALSE=
13465 if test "$enable_static" = "yes"; then
13466 ENABLE_STATIC_TRUE=
13467 ENABLE_STATIC_FALSE='#'
13468 else
13469 ENABLE_STATIC_TRUE='#'
13470 ENABLE_STATIC_FALSE=
13474 # libtool variables for Phobos shared and position-independent compiles.
13476 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13477 # creating shared objects. Default: -fversion=Shared.
13479 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13480 # creating position-independent objects. This varies with the target
13481 # hardware and operating system, but is often: -fPIC.
13483 # The distinction between pic and shared compilation flags is not present in
13484 # libtool, and so we make it here. How it is handled is that in shared
13485 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13486 # ensure that conditional compilation of shared runtime code is compiled in.
13487 # The original PIC flags are then used in the compilation of every object.
13489 # Why are objects destined for libgphobos.a compiled with -fPIC?
13490 # Because -fPIC is not harmful to use for objects destined for static
13491 # libraries. In addition, using -fPIC will allow the use of static
13492 # libgphobos.a in the creation of other D shared libraries.
13493 if test "$enable_shared" = yes; then
13494 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13495 phobos_compiler_shared_flag="-fversion=Shared"
13496 else
13497 phobos_compiler_pic_flag=
13498 phobos_compiler_shared_flag=
13503 # Override the libtool's pic_flag and pic_mode.
13504 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13505 # NB: this impacts --with-pic and --without-pic.
13506 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13507 pic_mode='default'
13509 # Determine what GCC version number to use in filesystem paths.
13511 get_gcc_base_ver="cat"
13513 # Check whether --with-gcc-major-version-only was given.
13514 if test "${with_gcc_major_version_only+set}" = set; then :
13515 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13516 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13524 # libphobos/libdruntime specific options and feature detection
13526 # These need to be absolute paths, yet at the same time need to
13527 # canonicalize only relative paths, because then amd will not unmount
13528 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13529 libphobos_builddir=`${PWDCMD-pwd}`
13530 case $srcdir in
13531 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13532 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13533 esac
13538 if test ${multilib} = yes; then
13539 multilib_arg="--enable-multilib"
13540 else
13541 multilib_arg=
13545 # Check whether --enable-werror was given.
13546 if test "${enable_werror+set}" = set; then :
13547 enableval=$enable_werror;
13550 WERROR_FLAG=""
13551 if test "x$enable_werror" = "xyes"; then
13552 WERROR_FLAG="-Werror"
13556 # Check whether --enable-druntime-gc was given.
13557 if test "${enable_druntime_gc+set}" = set; then :
13558 enableval=$enable_druntime_gc; enable_druntime_gc=no
13559 else
13560 enable_druntime_gc=yes
13564 if test "$enable_druntime_gc" = "yes"; then
13565 DRUNTIME_GC_ENABLE_TRUE=
13566 DRUNTIME_GC_ENABLE_FALSE='#'
13567 else
13568 DRUNTIME_GC_ENABLE_TRUE='#'
13569 DRUNTIME_GC_ENABLE_FALSE=
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
13575 $as_echo_n "checking for target OS... " >&6; }
13576 if test "${druntime_cv_target_os+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
13582 $as_echo "$druntime_cv_target_os" >&6; }
13583 if test -z "$druntime_cv_target_os"; then :
13584 as_fn_error "can't detect target OS" "$LINENO" 5
13589 # Check whether --enable-unix was given.
13590 if test "${enable_unix+set}" = set; then :
13591 enableval=$enable_unix; :
13592 else
13593 enable_unix=auto
13597 case "$druntime_cv_target_os" in
13598 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
13599 esac
13600 if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
13601 enable_unix=yes
13603 if test "$enable_unix" = "yes"; then
13604 DRUNTIME_OS_UNIX_TRUE=
13605 DRUNTIME_OS_UNIX_FALSE='#'
13606 else
13607 DRUNTIME_OS_UNIX_TRUE='#'
13608 DRUNTIME_OS_UNIX_FALSE=
13615 druntime_target_os_parsed=""
13616 case "$druntime_cv_target_os" in
13617 aix*) druntime_target_os_parsed="aix"
13619 *android*)
13620 druntime_target_os_parsed="android"
13622 darwin*) druntime_target_os_parsed="darwin"
13624 dragonfly*)
13625 druntime_target_os_parsed="dragonflybsd"
13627 freebsd*|k*bsd*-gnu)
13628 druntime_target_os_parsed="freebsd"
13630 openbsd*)
13631 druntime_target_os_parsed="openbsd"
13633 netbsd*)
13634 druntime_target_os_parsed="netbsd"
13636 linux*) druntime_target_os_parsed="linux"
13638 mingw*) druntime_target_os_parsed="mingw"
13640 *solaris*) druntime_target_os_parsed="solaris"
13641 esac
13642 if test "$druntime_target_os_parsed" = "aix"; then
13643 DRUNTIME_OS_AIX_TRUE=
13644 DRUNTIME_OS_AIX_FALSE='#'
13645 else
13646 DRUNTIME_OS_AIX_TRUE='#'
13647 DRUNTIME_OS_AIX_FALSE=
13650 if test "$druntime_target_os_parsed" = "android"; then
13651 DRUNTIME_OS_ANDROID_TRUE=
13652 DRUNTIME_OS_ANDROID_FALSE='#'
13653 else
13654 DRUNTIME_OS_ANDROID_TRUE='#'
13655 DRUNTIME_OS_ANDROID_FALSE=
13658 if test "$druntime_target_os_parsed" = "darwin"; then
13659 DRUNTIME_OS_DARWIN_TRUE=
13660 DRUNTIME_OS_DARWIN_FALSE='#'
13661 else
13662 DRUNTIME_OS_DARWIN_TRUE='#'
13663 DRUNTIME_OS_DARWIN_FALSE=
13666 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
13667 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
13668 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
13669 else
13670 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
13671 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
13674 if test "$druntime_target_os_parsed" = "freebsd"; then
13675 DRUNTIME_OS_FREEBSD_TRUE=
13676 DRUNTIME_OS_FREEBSD_FALSE='#'
13677 else
13678 DRUNTIME_OS_FREEBSD_TRUE='#'
13679 DRUNTIME_OS_FREEBSD_FALSE=
13682 if test "$druntime_target_os_parsed" = "netbsd"; then
13683 DRUNTIME_OS_NETBSD_TRUE=
13684 DRUNTIME_OS_NETBSD_FALSE='#'
13685 else
13686 DRUNTIME_OS_NETBSD_TRUE='#'
13687 DRUNTIME_OS_NETBSD_FALSE=
13690 if test "$druntime_target_os_parsed" = "openbsd"; then
13691 DRUNTIME_OS_OPENBSD_TRUE=
13692 DRUNTIME_OS_OPENBSD_FALSE='#'
13693 else
13694 DRUNTIME_OS_OPENBSD_TRUE='#'
13695 DRUNTIME_OS_OPENBSD_FALSE=
13698 if test "$druntime_target_os_parsed" = "linux"; then
13699 DRUNTIME_OS_LINUX_TRUE=
13700 DRUNTIME_OS_LINUX_FALSE='#'
13701 else
13702 DRUNTIME_OS_LINUX_TRUE='#'
13703 DRUNTIME_OS_LINUX_FALSE=
13706 if test "$druntime_target_os_parsed" = "mingw"; then
13707 DRUNTIME_OS_MINGW_TRUE=
13708 DRUNTIME_OS_MINGW_FALSE='#'
13709 else
13710 DRUNTIME_OS_MINGW_TRUE='#'
13711 DRUNTIME_OS_MINGW_FALSE=
13714 if test "$druntime_target_os_parsed" = "solaris"; then
13715 DRUNTIME_OS_SOLARIS_TRUE=
13716 DRUNTIME_OS_SOLARIS_FALSE='#'
13717 else
13718 DRUNTIME_OS_SOLARIS_TRUE='#'
13719 DRUNTIME_OS_SOLARIS_FALSE=
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
13726 $as_echo_n "checking for thread model used by GDC... " >&6; }
13727 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
13729 $as_echo "$d_thread_model" >&6; }
13731 # Map from thread model to thread interface.
13733 case $d_thread_model in
13734 aix) DCFG_THREAD_MODEL="Posix" ;;
13735 lynx) DCFG_THREAD_MODEL="Posix" ;;
13736 posix) DCFG_THREAD_MODEL="Posix" ;;
13737 single) DCFG_THREAD_MODEL="Single" ;;
13738 win32) DCFG_THREAD_MODEL="Win32" ;;
13739 # TODO: These targets need porting.
13740 dce|mipssde|rtems|tpf|vxworks)
13741 DCFG_THREAD_MODEL="Single" ;;
13742 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
13743 esac
13748 ac_ext=c
13749 ac_cpp='$CPP $CPPFLAGS'
13750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
13755 $as_echo_n "checking for ARM unwinder... " >&6; }
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 #include <unwind.h>
13760 main ()
13763 #if __ARM_EABI_UNWINDER__
13764 #error Yes, it is.
13765 #endif
13768 return 0;
13770 _ACEOF
13771 if ac_fn_c_try_compile "$LINENO"; then :
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 DCFG_ARM_EABI_UNWINDER=false
13775 else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13777 $as_echo "yes" >&6; }
13778 DCFG_ARM_EABI_UNWINDER=true
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
13783 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
13784 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
13785 else
13786 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
13787 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
13790 ac_ext=c
13791 ac_cpp='$CPP $CPPFLAGS'
13792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13798 ac_ext=c
13799 ac_cpp='$CPP $CPPFLAGS'
13800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
13805 $as_echo_n "checking for minfo section bracketing... " >&6; }
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 void* module_info_ptr __attribute__((section ("minfo")));
13810 extern void* __start_minfo __attribute__((visibility ("hidden")));
13811 extern void* __stop_minfo __attribute__((visibility ("hidden")));
13813 int main()
13815 // Never run, just to prevent compiler from optimizing access
13816 return &__start_minfo == &__stop_minfo;
13819 _ACEOF
13820 if ac_fn_c_try_link "$LINENO"; then :
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13822 $as_echo "yes" >&6; }
13823 DCFG_MINFO_BRACKETING=true
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 DCFG_MINFO_BRACKETING=false
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13832 ac_ext=c
13833 ac_cpp='$CPP $CPPFLAGS'
13834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13842 gdc_save_DFLAGS=$GDCFLAGS
13843 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
13845 ac_ext=d
13846 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
13847 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13848 ac_compiler_gnu=yes
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
13851 $as_echo_n "checking for library containing malloc... " >&6; }
13852 if test "${ac_cv_search_malloc+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 ac_func_search_save_LIBS=$LIBS
13856 cat > conftest.$ac_ext <<_ACEOF
13857 module mod;
13858 extern(C) int malloc();
13860 extern(C) int main() {
13861 malloc(); return 0;
13863 _ACEOF
13864 for ac_lib in '' c; do
13865 if test -z "$ac_lib"; then
13866 ac_res="none required"
13867 else
13868 ac_res=-l$ac_lib
13869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13871 if ac_fn_d_try_link "$LINENO"; then :
13872 ac_cv_search_malloc=$ac_res
13874 rm -f core conftest.err conftest.$ac_objext \
13875 conftest$ac_exeext
13876 if test "${ac_cv_search_malloc+set}" = set; then :
13877 break
13879 done
13880 if test "${ac_cv_search_malloc+set}" = set; then :
13882 else
13883 ac_cv_search_malloc=no
13885 rm conftest.$ac_ext
13886 LIBS=$ac_func_search_save_LIBS
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
13889 $as_echo "$ac_cv_search_malloc" >&6; }
13890 ac_res=$ac_cv_search_malloc
13891 if test "$ac_res" != no; then :
13892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13897 enable_thread_lib=yes
13898 # Check whether --enable-thread-lib was given.
13899 if test "${enable_thread_lib+set}" = set; then :
13900 enableval=$enable_thread_lib;
13904 if test "x$enable_thread_lib" = "xyes"; then :
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13907 $as_echo_n "checking for library containing pthread_create... " >&6; }
13908 if test "${ac_cv_search_pthread_create+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 ac_func_search_save_LIBS=$LIBS
13912 cat > conftest.$ac_ext <<_ACEOF
13913 module mod;
13914 extern(C) int pthread_create();
13916 extern(C) int main() {
13917 pthread_create(); return 0;
13919 _ACEOF
13920 for ac_lib in '' pthread; do
13921 if test -z "$ac_lib"; then
13922 ac_res="none required"
13923 else
13924 ac_res=-l$ac_lib
13925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13927 if ac_fn_d_try_link "$LINENO"; then :
13928 ac_cv_search_pthread_create=$ac_res
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext
13932 if test "${ac_cv_search_pthread_create+set}" = set; then :
13933 break
13935 done
13936 if test "${ac_cv_search_pthread_create+set}" = set; then :
13938 else
13939 ac_cv_search_pthread_create=no
13941 rm conftest.$ac_ext
13942 LIBS=$ac_func_search_save_LIBS
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13945 $as_echo "$ac_cv_search_pthread_create" >&6; }
13946 ac_res=$ac_cv_search_pthread_create
13947 if test "$ac_res" != no; then :
13948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13953 else
13955 if test "x$enable_thread_lib" = "xno"; then :
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
13958 $as_echo_n "checking for thread library... " >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13960 $as_echo "disabled" >&6; }
13962 else
13964 as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
13966 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
13967 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 ac_check_lib_save_LIBS=$LIBS
13971 LIBS="-l$enable_thread_lib $LIBS"
13972 cat > conftest.$ac_ext <<_ACEOF
13973 module mod;
13974 extern(C) int pthread_create();
13976 extern(C) int main() {
13977 pthread_create(); return 0;
13979 _ACEOF
13980 if ac_fn_d_try_link "$LINENO"; then :
13981 eval "$as_ac_Lib=yes"
13982 else
13983 eval "$as_ac_Lib=no"
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 LIBS=$ac_check_lib_save_LIBS
13989 eval ac_res=\$$as_ac_Lib
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13991 $as_echo "$ac_res" >&6; }
13992 eval as_val=\$$as_ac_Lib
13993 if test "x$as_val" = x""yes; then :
13994 cat >>confdefs.h <<_ACEOF
13995 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
13996 _ACEOF
13998 LIBS="-l$enable_thread_lib $LIBS"
14000 else
14002 as_fn_error "Thread library not found" "$LINENO" 5
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14012 $as_echo_n "checking for library containing cosf... " >&6; }
14013 if test "${ac_cv_search_cosf+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 ac_func_search_save_LIBS=$LIBS
14017 cat > conftest.$ac_ext <<_ACEOF
14018 module mod;
14019 extern(C) int cosf();
14021 extern(C) int main() {
14022 cosf(); return 0;
14024 _ACEOF
14025 for ac_lib in '' m; do
14026 if test -z "$ac_lib"; then
14027 ac_res="none required"
14028 else
14029 ac_res=-l$ac_lib
14030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14032 if ac_fn_d_try_link "$LINENO"; then :
14033 ac_cv_search_cosf=$ac_res
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext
14037 if test "${ac_cv_search_cosf+set}" = set; then :
14038 break
14040 done
14041 if test "${ac_cv_search_cosf+set}" = set; then :
14043 else
14044 ac_cv_search_cosf=no
14046 rm conftest.$ac_ext
14047 LIBS=$ac_func_search_save_LIBS
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14050 $as_echo "$ac_cv_search_cosf" >&6; }
14051 ac_res=$ac_cv_search_cosf
14052 if test "$ac_res" != no; then :
14053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14058 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14059 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 ac_func_search_save_LIBS=$LIBS
14063 cat > conftest.$ac_ext <<_ACEOF
14064 module mod;
14065 extern(C) int clock_gettime();
14067 extern(C) int main() {
14068 clock_gettime(); return 0;
14070 _ACEOF
14071 for ac_lib in '' rt; do
14072 if test -z "$ac_lib"; then
14073 ac_res="none required"
14074 else
14075 ac_res=-l$ac_lib
14076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14078 if ac_fn_d_try_link "$LINENO"; then :
14079 ac_cv_search_clock_gettime=$ac_res
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext
14083 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14084 break
14086 done
14087 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14089 else
14090 ac_cv_search_clock_gettime=no
14092 rm conftest.$ac_ext
14093 LIBS=$ac_func_search_save_LIBS
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14096 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14097 ac_res=$ac_cv_search_clock_gettime
14098 if test "$ac_res" != no; then :
14099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14104 # This checks to see if the host supports the compiler-generated builtins
14105 # for atomic operations for various integral sizes. Note, this is intended
14106 # to be an all-or-nothing switch, so all the atomic operations that are
14107 # used should be checked.
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14109 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14110 if test "${druntime_cv_atomic_byte+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14114 cat > conftest.$ac_ext <<_ACEOF
14115 module mod;
14116 import gcc.builtins;
14118 extern(C) int main() {
14120 shared(byte) c1;
14121 byte c2, c3;
14122 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14123 __atomic_load_1(&c1, 5);
14124 __atomic_store_1(&c1, c2, 5);
14125 return 0;
14128 _ACEOF
14129 if ac_fn_d_try_link "$LINENO"; then :
14130 druntime_cv_atomic_byte=yes
14131 else
14132 druntime_cv_atomic_byte=no
14134 rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14140 $as_echo "$druntime_cv_atomic_byte" >&6; }
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14143 $as_echo_n "checking for atomic builtins for short... " >&6; }
14144 if test "${druntime_cv_atomic_short+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14148 cat > conftest.$ac_ext <<_ACEOF
14149 module mod;
14150 import gcc.builtins;
14152 extern(C) int main() {
14154 shared(short) c1;
14155 short c2, c3;
14156 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14157 __atomic_load_2(&c1, 5);
14158 __atomic_store_2(&c1, c2, 5);
14159 return 0;
14162 _ACEOF
14163 if ac_fn_d_try_link "$LINENO"; then :
14164 druntime_cv_atomic_short=yes
14165 else
14166 druntime_cv_atomic_short=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14174 $as_echo "$druntime_cv_atomic_short" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14177 $as_echo_n "checking for atomic builtins for int... " >&6; }
14178 if test "${druntime_cv_atomic_int+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14180 else
14182 cat > conftest.$ac_ext <<_ACEOF
14183 module mod;
14184 import gcc.builtins;
14186 extern(C) int main() {
14188 shared(int) c1;
14189 int c2, c3;
14190 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14191 __atomic_load_4(&c1, 5);
14192 __atomic_store_4(&c1, c2, 5);
14193 return 0;
14196 _ACEOF
14197 if ac_fn_d_try_link "$LINENO"; then :
14198 druntime_cv_atomic_int=yes
14199 else
14200 druntime_cv_atomic_int=no
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14208 $as_echo "$druntime_cv_atomic_int" >&6; }
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14211 $as_echo_n "checking for atomic builtins for long... " >&6; }
14212 if test "${druntime_cv_atomic_long+set}" = set; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14216 cat > conftest.$ac_ext <<_ACEOF
14217 module mod;
14218 import gcc.builtins;
14220 extern(C) int main() {
14222 shared(long) c1;
14223 long c2, c3;
14224 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14225 __atomic_load_8(&c1, 5);
14226 __atomic_store_8(&c1, c2, 5);
14227 return 0;
14230 _ACEOF
14231 if ac_fn_d_try_link "$LINENO"; then :
14232 druntime_cv_atomic_long=yes
14233 else
14234 druntime_cv_atomic_long=no
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14242 $as_echo "$druntime_cv_atomic_long" >&6; }
14244 # Have atomic builtin support if all but the long test above passes.
14245 DCFG_HAVE_ATOMIC_BUILTINS=false
14246 if test "$druntime_cv_atomic_byte" = yes \
14247 && test "$druntime_cv_atomic_short" = yes \
14248 && test "$druntime_cv_atomic_int" = yes; then \
14249 DCFG_HAVE_ATOMIC_BUILTINS=true
14252 # Have 64-bit atomic support if the long test above passes.
14253 DCFG_HAVE_64BIT_ATOMICS=false
14254 if test "$druntime_cv_atomic_long" = yes; then
14255 DCFG_HAVE_64BIT_ATOMICS=true
14261 ac_ext=c
14262 ac_cpp='$CPP $CPPFLAGS'
14263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268 GDCFLAGS=$gdc_save_DFLAGS
14273 # Check whether --with-libatomic was given.
14274 if test "${with_libatomic+set}" = set; then :
14275 withval=$with_libatomic;
14279 DCFG_HAVE_LIBATOMIC=false
14280 LIBATOMIC=
14281 if test "x$with_libatomic" != "xno"; then :
14283 DCFG_HAVE_LIBATOMIC=true
14284 LIBATOMIC=../../libatomic/libatomic_convenience.la
14286 else
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14289 $as_echo_n "checking for libatomic... " >&6; }
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14291 $as_echo "disabled" >&6; }
14299 ac_ext=c
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14305 BACKTRACE_SUPPORTED=false
14306 BACKTRACE_USES_MALLOC=false
14307 BACKTRACE_SUPPORTS_THREADS=false
14308 LIBBACKTRACE=""
14311 # Check whether --with-libbacktrace was given.
14312 if test "${with_libbacktrace+set}" = set; then :
14313 withval=$with_libbacktrace;
14317 if test "x$with_libbacktrace" != "xno"; then :
14319 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14321 gdc_save_CPPFLAGS=$CPPFLAGS
14322 CPPFLAGS+=" -I../libbacktrace "
14324 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14325 if test "x$ac_cv_header_backtrace_supported_h" = x""yes; then :
14326 have_libbacktrace_h=true
14327 else
14328 have_libbacktrace_h=false
14333 if $have_libbacktrace_h; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14335 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14339 #include <backtrace-supported.h>
14340 #if BACKTRACE_SUPPORTED
14341 FOUND_LIBBACKTRACE_RESULT_GDC
14342 #endif
14344 _ACEOF
14345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14346 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14347 BACKTRACE_SUPPORTED=true
14348 else
14349 BACKTRACE_SUPPORTED=false
14351 rm -f conftest*
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14354 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14357 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14361 #include <backtrace-supported.h>
14362 #if BACKTRACE_USES_MALLOC
14363 FOUND_LIBBACKTRACE_RESULT_GDC
14364 #endif
14366 _ACEOF
14367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14368 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14369 BACKTRACE_USES_MALLOC=true
14370 else
14371 BACKTRACE_USES_MALLOC=false
14373 rm -f conftest*
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14376 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14379 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14383 #include <backtrace-supported.h>
14384 #if BACKTRACE_SUPPORTS_THREADS
14385 FOUND_LIBBACKTRACE_RESULT_GDC
14386 #endif
14388 _ACEOF
14389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14390 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14391 BACKTRACE_SUPPORTS_THREADS=true
14392 else
14393 BACKTRACE_SUPPORTS_THREADS=false
14395 rm -f conftest*
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14398 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14400 CPPFLAGS=$gdc_save_CPPFLAGS
14402 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14405 $as_echo_n "checking for libbacktrace... " >&6; }
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14407 $as_echo "disabled" >&6; }
14415 ac_ext=c
14416 ac_cpp='$CPP $CPPFLAGS'
14417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14423 # Libtool has already checked this, so re-use the inferred dlopen lib.
14424 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14426 LIBS="$LIBS $lt_cv_dlopen_libs"
14432 # Check whether --with-target-system-zlib was given.
14433 if test "${with_target_system_zlib+set}" = set; then :
14434 withval=$with_target_system_zlib;
14438 system_zlib=false
14439 if test "x$with_target_system_zlib" = "xyes"; then :
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14442 $as_echo_n "checking for deflate in -lz... " >&6; }
14443 if test "${ac_cv_lib_z_deflate+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 ac_check_lib_save_LIBS=$LIBS
14447 LIBS="-lz $LIBS"
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char deflate ();
14459 main ()
14461 return deflate ();
14463 return 0;
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"; then :
14467 ac_cv_lib_z_deflate=yes
14468 else
14469 ac_cv_lib_z_deflate=no
14471 rm -f core conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14476 $as_echo "$ac_cv_lib_z_deflate" >&6; }
14477 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
14479 system_zlib=yes
14481 else
14483 as_fn_error "System zlib not found" "$LINENO" 5
14488 else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14491 $as_echo_n "checking for zlib... " >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14493 $as_echo "just compiled" >&6; }
14497 if test "$with_target_system_zlib" = yes; then
14498 DRUNTIME_ZLIB_SYSTEM_TRUE=
14499 DRUNTIME_ZLIB_SYSTEM_FALSE='#'
14500 else
14501 DRUNTIME_ZLIB_SYSTEM_TRUE='#'
14502 DRUNTIME_ZLIB_SYSTEM_FALSE=
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
14510 $as_echo_n "checking D GCC version... " >&6; }
14511 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
14513 $as_echo "$gcc_version" >&6; }
14517 # Check whether --with-cross-host was given.
14518 if test "${with_cross_host+set}" = set; then :
14519 withval=$with_cross_host;
14523 toolexecdir=no
14524 toolexeclibdir=no
14526 version_specific_libs=no
14528 # Version-specific runtime libs processing.
14529 if test $version_specific_libs = yes; then
14530 toolexecdir='${libdir}/gcc/${host_alias}'
14531 toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
14532 else
14533 # Calculate toolexecdir, toolexeclibdir
14534 # Install a library built with a cross compiler in tooldir, not libdir.
14535 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
14536 toolexecdir='${exec_prefix}/${host_alias}'
14537 toolexeclibdir='${toolexecdir}/lib'
14538 else
14539 toolexecdir='${libdir}/gcc/${host_alias}'
14540 toolexeclibdir='${libdir}'
14542 multi_os_directory=`$GDC -print-multi-os-directory`
14543 case $multi_os_directory in
14544 .) ;; # Avoid trailing /.
14545 *) toolexeclibdir=${toolexeclibdir}/${multi_os_directory} ;;
14546 esac
14551 # Default case for install directory for D sources files.
14552 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
14556 # Add dependencies for libgphobos.spec file
14557 SPEC_PHOBOS_DEPS="$LIBS"
14560 # Libdruntime / phobos soname version
14561 DRUNTIME_SOVERSION="76:2:0"
14562 PHOBOS_SOVERSION="76:2:0"
14566 # Set default flags (after DRUNTIME_WERROR!)
14567 if test -z "$GDCFLAGS"; then
14568 GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
14572 if test -z "$GDCFLAGSX"; then
14573 GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
14577 # Sanity check for the cross-compilation case:
14578 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14579 if test "x$ac_cv_header_stdio_h" = x""yes; then :
14581 else
14582 as_fn_error "cannot find stdio.h." "$LINENO" 5
14587 ac_config_files="$ac_config_files Makefile src/Makefile libdruntime/Makefile testsuite/Makefile"
14590 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
14592 ac_config_files="$ac_config_files src/libgphobos.spec"
14594 ac_config_files="$ac_config_files testsuite/testsuite_flags"
14597 # We need multilib support, but only if configuring for the target.
14598 ac_config_commands="$ac_config_commands default"
14601 cat >confcache <<\_ACEOF
14602 # This file is a shell script that caches the results of configure
14603 # tests run on this system so they can be shared between configure
14604 # scripts and configure runs, see configure's option --config-cache.
14605 # It is not useful on other systems. If it contains results you don't
14606 # want to keep, you may remove or edit it.
14608 # config.status only pays attention to the cache file if you give it
14609 # the --recheck option to rerun configure.
14611 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14612 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14613 # following values.
14615 _ACEOF
14617 # The following way of writing the cache mishandles newlines in values,
14618 # but we know of no workaround that is simple, portable, and efficient.
14619 # So, we kill variables containing newlines.
14620 # Ultrix sh set writes to stderr and can't be redirected directly,
14621 # and sets the high bit in the cache file unless we assign to the vars.
14623 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14624 eval ac_val=\$$ac_var
14625 case $ac_val in #(
14626 *${as_nl}*)
14627 case $ac_var in #(
14628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14630 esac
14631 case $ac_var in #(
14632 _ | IFS | as_nl) ;; #(
14633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14634 *) { eval $ac_var=; unset $ac_var;} ;;
14635 esac ;;
14636 esac
14637 done
14639 (set) 2>&1 |
14640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14641 *${as_nl}ac_space=\ *)
14642 # `set' does not quote correctly, so add quotes: double-quote
14643 # substitution turns \\\\ into \\, and sed turns \\ into \.
14644 sed -n \
14645 "s/'/'\\\\''/g;
14646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14647 ;; #(
14649 # `set' quotes correctly as required by POSIX, so do not add quotes.
14650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14652 esac |
14653 sort
14655 sed '
14656 /^ac_cv_env_/b end
14657 t clear
14658 :clear
14659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14660 t end
14661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14662 :end' >>confcache
14663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14664 if test -w "$cache_file"; then
14665 test "x$cache_file" != "x/dev/null" &&
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14667 $as_echo "$as_me: updating cache $cache_file" >&6;}
14668 cat confcache >$cache_file
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14671 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14674 rm -f confcache
14676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14677 # Let make expand exec_prefix.
14678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14680 DEFS=-DHAVE_CONFIG_H
14682 ac_libobjs=
14683 ac_ltlibobjs=
14684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14685 # 1. Remove the extension, and $U if already installed.
14686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14687 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14689 # will be set to the directory where LIBOBJS objects are built.
14690 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14691 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14692 done
14693 LIBOBJS=$ac_libobjs
14695 LTLIBOBJS=$ac_ltlibobjs
14698 if test -n "$EXEEXT"; then
14699 am__EXEEXT_TRUE=
14700 am__EXEEXT_FALSE='#'
14701 else
14702 am__EXEEXT_TRUE='#'
14703 am__EXEEXT_FALSE=
14706 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14707 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
14711 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
14712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
14715 as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
14716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14718 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
14719 as_fn_error "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
14720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14722 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
14723 as_fn_error "conditional \"DRUNTIME_OS_UNIX\" was never defined.
14724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14726 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
14727 as_fn_error "conditional \"DRUNTIME_OS_AIX\" was never defined.
14728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14730 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
14731 as_fn_error "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
14732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14734 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
14735 as_fn_error "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
14736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
14739 as_fn_error "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
14740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14742 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
14743 as_fn_error "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
14744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14746 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
14747 as_fn_error "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
14748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14750 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
14751 as_fn_error "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
14752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
14755 as_fn_error "conditional \"DRUNTIME_OS_LINUX\" was never defined.
14756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
14759 as_fn_error "conditional \"DRUNTIME_OS_MINGW\" was never defined.
14760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14762 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
14763 as_fn_error "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
14764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14766 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
14767 as_fn_error "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
14768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14770 if test -z "${DRUNTIME_ZLIB_SYSTEM_TRUE}" && test -z "${DRUNTIME_ZLIB_SYSTEM_FALSE}"; then
14771 as_fn_error "conditional \"DRUNTIME_ZLIB_SYSTEM\" was never defined.
14772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14775 : ${CONFIG_STATUS=./config.status}
14776 ac_write_fail=0
14777 ac_clean_files_save=$ac_clean_files
14778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14780 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14781 as_write_fail=0
14782 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14783 #! $SHELL
14784 # Generated by $as_me.
14785 # Run this file to recreate the current configuration.
14786 # Compiler output produced by configure, useful for debugging
14787 # configure, is in config.log if it exists.
14789 debug=false
14790 ac_cs_recheck=false
14791 ac_cs_silent=false
14793 SHELL=\${CONFIG_SHELL-$SHELL}
14794 export SHELL
14795 _ASEOF
14796 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14797 ## -------------------- ##
14798 ## M4sh Initialization. ##
14799 ## -------------------- ##
14801 # Be more Bourne compatible
14802 DUALCASE=1; export DUALCASE # for MKS sh
14803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14804 emulate sh
14805 NULLCMD=:
14806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14807 # is contrary to our usage. Disable this feature.
14808 alias -g '${1+"$@"}'='"$@"'
14809 setopt NO_GLOB_SUBST
14810 else
14811 case `(set -o) 2>/dev/null` in #(
14812 *posix*) :
14813 set -o posix ;; #(
14814 *) :
14816 esac
14820 as_nl='
14822 export as_nl
14823 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14824 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14827 # Prefer a ksh shell builtin over an external printf program on Solaris,
14828 # but without wasting forks for bash or zsh.
14829 if test -z "$BASH_VERSION$ZSH_VERSION" \
14830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14831 as_echo='print -r --'
14832 as_echo_n='print -rn --'
14833 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14834 as_echo='printf %s\n'
14835 as_echo_n='printf %s'
14836 else
14837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14839 as_echo_n='/usr/ucb/echo -n'
14840 else
14841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14842 as_echo_n_body='eval
14843 arg=$1;
14844 case $arg in #(
14845 *"$as_nl"*)
14846 expr "X$arg" : "X\\(.*\\)$as_nl";
14847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14848 esac;
14849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14851 export as_echo_n_body
14852 as_echo_n='sh -c $as_echo_n_body as_echo'
14854 export as_echo_body
14855 as_echo='sh -c $as_echo_body as_echo'
14858 # The user is always right.
14859 if test "${PATH_SEPARATOR+set}" != set; then
14860 PATH_SEPARATOR=:
14861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14863 PATH_SEPARATOR=';'
14868 # IFS
14869 # We need space, tab and new line, in precisely that order. Quoting is
14870 # there to prevent editors from complaining about space-tab.
14871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14872 # splitting by setting IFS to empty value.)
14873 IFS=" "" $as_nl"
14875 # Find who we are. Look in the path if we contain no directory separator.
14876 case $0 in #((
14877 *[\\/]* ) as_myself=$0 ;;
14878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14884 done
14885 IFS=$as_save_IFS
14888 esac
14889 # We did not find ourselves, most probably we were run as `sh COMMAND'
14890 # in which case we are not to be found in the path.
14891 if test "x$as_myself" = x; then
14892 as_myself=$0
14894 if test ! -f "$as_myself"; then
14895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14896 exit 1
14899 # Unset variables that we do not need and which cause bugs (e.g. in
14900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14901 # suppresses any "Segmentation fault" message there. '((' could
14902 # trigger a bug in pdksh 5.2.14.
14903 for as_var in BASH_ENV ENV MAIL MAILPATH
14904 do eval test x\${$as_var+set} = xset \
14905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14906 done
14907 PS1='$ '
14908 PS2='> '
14909 PS4='+ '
14911 # NLS nuisances.
14912 LC_ALL=C
14913 export LC_ALL
14914 LANGUAGE=C
14915 export LANGUAGE
14917 # CDPATH.
14918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14921 # as_fn_error ERROR [LINENO LOG_FD]
14922 # ---------------------------------
14923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14925 # script with status $?, using 1 if that was 0.
14926 as_fn_error ()
14928 as_status=$?; test $as_status -eq 0 && as_status=1
14929 if test "$3"; then
14930 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14933 $as_echo "$as_me: error: $1" >&2
14934 as_fn_exit $as_status
14935 } # as_fn_error
14938 # as_fn_set_status STATUS
14939 # -----------------------
14940 # Set $? to STATUS, without forking.
14941 as_fn_set_status ()
14943 return $1
14944 } # as_fn_set_status
14946 # as_fn_exit STATUS
14947 # -----------------
14948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14949 as_fn_exit ()
14951 set +e
14952 as_fn_set_status $1
14953 exit $1
14954 } # as_fn_exit
14956 # as_fn_unset VAR
14957 # ---------------
14958 # Portably unset VAR.
14959 as_fn_unset ()
14961 { eval $1=; unset $1;}
14963 as_unset=as_fn_unset
14964 # as_fn_append VAR VALUE
14965 # ----------------------
14966 # Append the text in VALUE to the end of the definition contained in VAR. Take
14967 # advantage of any shell optimizations that allow amortized linear growth over
14968 # repeated appends, instead of the typical quadratic growth present in naive
14969 # implementations.
14970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14971 eval 'as_fn_append ()
14973 eval $1+=\$2
14975 else
14976 as_fn_append ()
14978 eval $1=\$$1\$2
14980 fi # as_fn_append
14982 # as_fn_arith ARG...
14983 # ------------------
14984 # Perform arithmetic evaluation on the ARGs, and store the result in the
14985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14986 # must be portable across $(()) and expr.
14987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14988 eval 'as_fn_arith ()
14990 as_val=$(( $* ))
14992 else
14993 as_fn_arith ()
14995 as_val=`expr "$@" || test $? -eq 1`
14997 fi # as_fn_arith
15000 if expr a : '\(a\)' >/dev/null 2>&1 &&
15001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15002 as_expr=expr
15003 else
15004 as_expr=false
15007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15008 as_basename=basename
15009 else
15010 as_basename=false
15013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15014 as_dirname=dirname
15015 else
15016 as_dirname=false
15019 as_me=`$as_basename -- "$0" ||
15020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15021 X"$0" : 'X\(//\)$' \| \
15022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15023 $as_echo X/"$0" |
15024 sed '/^.*\/\([^/][^/]*\)\/*$/{
15025 s//\1/
15028 /^X\/\(\/\/\)$/{
15029 s//\1/
15032 /^X\/\(\/\).*/{
15033 s//\1/
15036 s/.*/./; q'`
15038 # Avoid depending upon Character Ranges.
15039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15042 as_cr_digits='0123456789'
15043 as_cr_alnum=$as_cr_Letters$as_cr_digits
15045 ECHO_C= ECHO_N= ECHO_T=
15046 case `echo -n x` in #(((((
15047 -n*)
15048 case `echo 'xy\c'` in
15049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15050 xy) ECHO_C='\c';;
15051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15052 ECHO_T=' ';;
15053 esac;;
15055 ECHO_N='-n';;
15056 esac
15058 rm -f conf$$ conf$$.exe conf$$.file
15059 if test -d conf$$.dir; then
15060 rm -f conf$$.dir/conf$$.file
15061 else
15062 rm -f conf$$.dir
15063 mkdir conf$$.dir 2>/dev/null
15065 if (echo >conf$$.file) 2>/dev/null; then
15066 if ln -s conf$$.file conf$$ 2>/dev/null; then
15067 as_ln_s='ln -s'
15068 # ... but there are two gotchas:
15069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15071 # In both cases, we have to default to `cp -p'.
15072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15073 as_ln_s='cp -p'
15074 elif ln conf$$.file conf$$ 2>/dev/null; then
15075 as_ln_s=ln
15076 else
15077 as_ln_s='cp -p'
15079 else
15080 as_ln_s='cp -p'
15082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15083 rmdir conf$$.dir 2>/dev/null
15086 # as_fn_mkdir_p
15087 # -------------
15088 # Create "$as_dir" as a directory, including parents if necessary.
15089 as_fn_mkdir_p ()
15092 case $as_dir in #(
15093 -*) as_dir=./$as_dir;;
15094 esac
15095 test -d "$as_dir" || eval $as_mkdir_p || {
15096 as_dirs=
15097 while :; do
15098 case $as_dir in #(
15099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15100 *) as_qdir=$as_dir;;
15101 esac
15102 as_dirs="'$as_qdir' $as_dirs"
15103 as_dir=`$as_dirname -- "$as_dir" ||
15104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105 X"$as_dir" : 'X\(//\)[^/]' \| \
15106 X"$as_dir" : 'X\(//\)$' \| \
15107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15108 $as_echo X"$as_dir" |
15109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15110 s//\1/
15113 /^X\(\/\/\)[^/].*/{
15114 s//\1/
15117 /^X\(\/\/\)$/{
15118 s//\1/
15121 /^X\(\/\).*/{
15122 s//\1/
15125 s/.*/./; q'`
15126 test -d "$as_dir" && break
15127 done
15128 test -z "$as_dirs" || eval "mkdir $as_dirs"
15129 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15132 } # as_fn_mkdir_p
15133 if mkdir -p . 2>/dev/null; then
15134 as_mkdir_p='mkdir -p "$as_dir"'
15135 else
15136 test -d ./-p && rmdir ./-p
15137 as_mkdir_p=false
15140 if test -x / >/dev/null 2>&1; then
15141 as_test_x='test -x'
15142 else
15143 if ls -dL / >/dev/null 2>&1; then
15144 as_ls_L_option=L
15145 else
15146 as_ls_L_option=
15148 as_test_x='
15149 eval sh -c '\''
15150 if test -d "$1"; then
15151 test -d "$1/.";
15152 else
15153 case $1 in #(
15154 -*)set "./$1";;
15155 esac;
15156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15157 ???[sx]*):;;*)false;;esac;fi
15158 '\'' sh
15161 as_executable_p=$as_test_x
15163 # Sed expression to map a string onto a valid CPP name.
15164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15166 # Sed expression to map a string onto a valid variable name.
15167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15170 exec 6>&1
15171 ## ----------------------------------- ##
15172 ## Main body of $CONFIG_STATUS script. ##
15173 ## ----------------------------------- ##
15174 _ASEOF
15175 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178 # Save the log message, to keep $0 and so on meaningful, and to
15179 # report actual input values of CONFIG_FILES etc. instead of their
15180 # values after options handling.
15181 ac_log="
15182 This file was extended by package-unused $as_me version-unused, which was
15183 generated by GNU Autoconf 2.64. Invocation command line was
15185 CONFIG_FILES = $CONFIG_FILES
15186 CONFIG_HEADERS = $CONFIG_HEADERS
15187 CONFIG_LINKS = $CONFIG_LINKS
15188 CONFIG_COMMANDS = $CONFIG_COMMANDS
15189 $ $0 $@
15191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15194 _ACEOF
15196 case $ac_config_files in *"
15197 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15198 esac
15200 case $ac_config_headers in *"
15201 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15202 esac
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 # Files that config.status was made for.
15207 config_files="$ac_config_files"
15208 config_headers="$ac_config_headers"
15209 config_commands="$ac_config_commands"
15211 _ACEOF
15213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214 ac_cs_usage="\
15215 \`$as_me' instantiates files and other configuration actions
15216 from templates according to the current configuration. Unless the files
15217 and actions are specified as TAGs, all are instantiated by default.
15219 Usage: $0 [OPTION]... [TAG]...
15221 -h, --help print this help, then exit
15222 -V, --version print version number and configuration settings, then exit
15223 -q, --quiet, --silent
15224 do not print progress messages
15225 -d, --debug don't remove temporary files
15226 --recheck update $as_me by reconfiguring in the same conditions
15227 --file=FILE[:TEMPLATE]
15228 instantiate the configuration file FILE
15229 --header=FILE[:TEMPLATE]
15230 instantiate the configuration header FILE
15232 Configuration files:
15233 $config_files
15235 Configuration headers:
15236 $config_headers
15238 Configuration commands:
15239 $config_commands
15241 Report bugs to the package provider."
15243 _ACEOF
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 ac_cs_version="\\
15246 package-unused config.status version-unused
15247 configured by $0, generated by GNU Autoconf 2.64,
15248 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15250 Copyright (C) 2009 Free Software Foundation, Inc.
15251 This config.status script is free software; the Free Software Foundation
15252 gives unlimited permission to copy, distribute and modify it."
15254 ac_pwd='$ac_pwd'
15255 srcdir='$srcdir'
15256 INSTALL='$INSTALL'
15257 MKDIR_P='$MKDIR_P'
15258 AWK='$AWK'
15259 test -n "\$AWK" || AWK=awk
15260 _ACEOF
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 # The default lists apply if the user does not specify any file.
15264 ac_need_defaults=:
15265 while test $# != 0
15267 case $1 in
15268 --*=*)
15269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15271 ac_shift=:
15274 ac_option=$1
15275 ac_optarg=$2
15276 ac_shift=shift
15278 esac
15280 case $ac_option in
15281 # Handling of the options.
15282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15283 ac_cs_recheck=: ;;
15284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15285 $as_echo "$ac_cs_version"; exit ;;
15286 --debug | --debu | --deb | --de | --d | -d )
15287 debug=: ;;
15288 --file | --fil | --fi | --f )
15289 $ac_shift
15290 case $ac_optarg in
15291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15292 esac
15293 as_fn_append CONFIG_FILES " '$ac_optarg'"
15294 ac_need_defaults=false;;
15295 --header | --heade | --head | --hea )
15296 $ac_shift
15297 case $ac_optarg in
15298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15299 esac
15300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15301 ac_need_defaults=false;;
15302 --he | --h)
15303 # Conflict between --help and --header
15304 as_fn_error "ambiguous option: \`$1'
15305 Try \`$0 --help' for more information.";;
15306 --help | --hel | -h )
15307 $as_echo "$ac_cs_usage"; exit ;;
15308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15310 ac_cs_silent=: ;;
15312 # This is an error.
15313 -*) as_fn_error "unrecognized option: \`$1'
15314 Try \`$0 --help' for more information." ;;
15316 *) as_fn_append ac_config_targets " $1"
15317 ac_need_defaults=false ;;
15319 esac
15320 shift
15321 done
15323 ac_configure_extra_args=
15325 if $ac_cs_silent; then
15326 exec 6>/dev/null
15327 ac_configure_extra_args="$ac_configure_extra_args --silent"
15330 _ACEOF
15331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 if \$ac_cs_recheck; then
15333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15334 shift
15335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15336 CONFIG_SHELL='$SHELL'
15337 export CONFIG_SHELL
15338 exec "\$@"
15341 _ACEOF
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 exec 5>>config.log
15345 echo
15346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15347 ## Running $as_me. ##
15348 _ASBOX
15349 $as_echo "$ac_log"
15350 } >&5
15352 _ACEOF
15353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355 # INIT-COMMANDS
15358 srcdir="$srcdir"
15359 host="$host"
15360 target="$target"
15361 with_multisubdir="$with_multisubdir"
15362 with_multisrctop="$with_multisrctop"
15363 with_target_subdir="$with_target_subdir"
15364 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15365 multi_basedir="$multi_basedir"
15366 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15367 CC="$CC"
15368 CXX="$CXX"
15369 GFORTRAN="$GFORTRAN"
15370 GDC="$GDC"
15373 # The HP-UX ksh and POSIX shell print the target directory to stdout
15374 # if CDPATH is set.
15375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15377 sed_quote_subst='$sed_quote_subst'
15378 double_quote_subst='$double_quote_subst'
15379 delay_variable_subst='$delay_variable_subst'
15380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15388 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15389 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15390 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15391 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15392 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15393 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15394 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15395 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15396 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15397 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15398 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15399 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15400 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15401 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15402 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15403 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15404 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15405 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15406 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15407 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15408 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15409 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15410 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15411 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15412 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15413 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15414 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15415 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15416 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15417 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15418 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15419 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15420 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15421 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15422 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15423 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15424 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15425 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15426 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15427 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15428 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"`'
15429 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15430 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15431 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15433 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15434 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15435 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15436 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15460 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15461 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15462 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15463 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15464 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15465 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15466 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15467 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15468 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15469 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15470 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15471 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15472 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15473 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15474 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15475 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15476 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15477 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15478 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15479 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15480 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15481 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15482 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15483 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15484 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15485 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15486 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15487 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15488 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15489 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15490 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15491 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15492 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15493 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15494 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15495 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15496 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15497 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15498 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15499 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15500 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
15501 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
15502 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
15503 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15504 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
15505 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
15506 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
15507 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
15508 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
15509 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
15510 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
15511 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
15512 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
15513 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15514 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15515 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
15516 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
15517 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
15518 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
15519 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15520 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
15521 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
15522 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
15523 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15524 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
15525 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
15526 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
15527 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
15528 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
15529 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
15530 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
15531 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
15532 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
15533 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
15534 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
15535 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
15536 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
15537 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
15538 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
15539 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
15540 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
15541 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
15542 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
15544 LTCC='$LTCC'
15545 LTCFLAGS='$LTCFLAGS'
15546 compiler='$compiler_DEFAULT'
15548 # A function that is used when there is no print builtin or printf.
15549 func_fallback_echo ()
15551 eval 'cat <<_LTECHO_EOF
15553 _LTECHO_EOF'
15556 # Quote evaled strings.
15557 for var in SHELL \
15558 ECHO \
15559 SED \
15560 GREP \
15561 EGREP \
15562 FGREP \
15563 LD \
15564 NM \
15565 LN_S \
15566 lt_SP2NL \
15567 lt_NL2SP \
15568 reload_flag \
15569 OBJDUMP \
15570 deplibs_check_method \
15571 file_magic_cmd \
15572 AR \
15573 AR_FLAGS \
15574 STRIP \
15575 RANLIB \
15576 CC \
15577 CFLAGS \
15578 compiler \
15579 lt_cv_sys_global_symbol_pipe \
15580 lt_cv_sys_global_symbol_to_cdecl \
15581 lt_cv_sys_global_symbol_to_c_name_address \
15582 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15583 lt_prog_compiler_no_builtin_flag \
15584 lt_prog_compiler_wl \
15585 lt_prog_compiler_pic \
15586 lt_prog_compiler_static \
15587 lt_cv_prog_compiler_c_o \
15588 need_locks \
15589 DSYMUTIL \
15590 NMEDIT \
15591 LIPO \
15592 OTOOL \
15593 OTOOL64 \
15594 shrext_cmds \
15595 export_dynamic_flag_spec \
15596 whole_archive_flag_spec \
15597 compiler_needs_object \
15598 with_gnu_ld \
15599 allow_undefined_flag \
15600 no_undefined_flag \
15601 hardcode_libdir_flag_spec \
15602 hardcode_libdir_flag_spec_ld \
15603 hardcode_libdir_separator \
15604 fix_srcfile_path \
15605 exclude_expsyms \
15606 include_expsyms \
15607 file_list_spec \
15608 variables_saved_for_relink \
15609 libname_spec \
15610 library_names_spec \
15611 soname_spec \
15612 install_override_mode \
15613 finish_eval \
15614 old_striplib \
15615 striplib \
15616 LD_D \
15617 reload_flag_D \
15618 compiler_D \
15619 lt_prog_compiler_no_builtin_flag_D \
15620 lt_prog_compiler_wl_D \
15621 lt_prog_compiler_pic_D \
15622 lt_prog_compiler_static_D \
15623 lt_cv_prog_compiler_c_o_D \
15624 export_dynamic_flag_spec_D \
15625 whole_archive_flag_spec_D \
15626 compiler_needs_object_D \
15627 with_gnu_ld_D \
15628 allow_undefined_flag_D \
15629 no_undefined_flag_D \
15630 hardcode_libdir_flag_spec_D \
15631 hardcode_libdir_flag_spec_ld_D \
15632 hardcode_libdir_separator_D \
15633 fix_srcfile_path_D \
15634 exclude_expsyms_D \
15635 include_expsyms_D \
15636 file_list_spec_D; do
15637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15638 *[\\\\\\\`\\"\\\$]*)
15639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15644 esac
15645 done
15647 # Double-quote double-evaled strings.
15648 for var in reload_cmds \
15649 old_postinstall_cmds \
15650 old_postuninstall_cmds \
15651 old_archive_cmds \
15652 extract_expsyms_cmds \
15653 old_archive_from_new_cmds \
15654 old_archive_from_expsyms_cmds \
15655 archive_cmds \
15656 archive_expsym_cmds \
15657 module_cmds \
15658 module_expsym_cmds \
15659 export_symbols_cmds \
15660 prelink_cmds \
15661 postinstall_cmds \
15662 postuninstall_cmds \
15663 finish_cmds \
15664 sys_lib_search_path_spec \
15665 sys_lib_dlsearch_path_spec \
15666 reload_cmds_D \
15667 old_archive_cmds_D \
15668 old_archive_from_new_cmds_D \
15669 old_archive_from_expsyms_cmds_D \
15670 archive_cmds_D \
15671 archive_expsym_cmds_D \
15672 module_cmds_D \
15673 module_expsym_cmds_D \
15674 export_symbols_cmds_D \
15675 prelink_cmds_D; do
15676 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15677 *[\\\\\\\`\\"\\\$]*)
15678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15681 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15683 esac
15684 done
15686 ac_aux_dir='$ac_aux_dir'
15687 xsi_shell='$xsi_shell'
15688 lt_shell_append='$lt_shell_append'
15690 # See if we are running on zsh, and set the options which allow our
15691 # commands through without removal of \ escapes INIT.
15692 if test -n "\${ZSH_VERSION+set}" ; then
15693 setopt NO_GLOB_SUBST
15697 PACKAGE='$PACKAGE'
15698 VERSION='$VERSION'
15699 TIMESTAMP='$TIMESTAMP'
15700 RM='$RM'
15701 ofile='$ofile'
15708 # Variables needed in config.status (file generation) which aren't already
15709 # passed by autoconf.
15710 SUBDIRS="$SUBDIRS"
15713 _ACEOF
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15717 # Handling of arguments.
15718 for ac_config_target in $ac_config_targets
15720 case $ac_config_target in
15721 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15722 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15723 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15724 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15725 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15726 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
15727 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15728 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
15729 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
15730 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
15731 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
15732 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15734 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15735 esac
15736 done
15739 # If the user did not use the arguments to specify the items to instantiate,
15740 # then the envvar interface is used. Set only those that are not.
15741 # We use the long form for the default assignment because of an extremely
15742 # bizarre bug on SunOS 4.1.3.
15743 if $ac_need_defaults; then
15744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15749 # Have a temporary directory for convenience. Make it in the build tree
15750 # simply because there is no reason against having it here, and in addition,
15751 # creating and moving files from /tmp can sometimes cause problems.
15752 # Hook for its removal unless debugging.
15753 # Note that there is a small window in which the directory will not be cleaned:
15754 # after its creation but before its name has been assigned to `$tmp'.
15755 $debug ||
15757 tmp=
15758 trap 'exit_status=$?
15759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15761 trap 'as_fn_exit 1' 1 2 13 15
15763 # Create a (secure) tmp directory for tmp files.
15766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15767 test -n "$tmp" && test -d "$tmp"
15768 } ||
15770 tmp=./conf$$-$RANDOM
15771 (umask 077 && mkdir "$tmp")
15772 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15774 # Set up the scripts for CONFIG_FILES section.
15775 # No need to generate them if there are no CONFIG_FILES.
15776 # This happens for instance with `./config.status config.h'.
15777 if test -n "$CONFIG_FILES"; then
15780 ac_cr=`echo X | tr X '\015'`
15781 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15782 # But we know of no other shell where ac_cr would be empty at this
15783 # point, so we can use a bashism as a fallback.
15784 if test "x$ac_cr" = x; then
15785 eval ac_cr=\$\'\\r\'
15787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15789 ac_cs_awk_cr='\r'
15790 else
15791 ac_cs_awk_cr=$ac_cr
15794 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15795 _ACEOF
15799 echo "cat >conf$$subs.awk <<_ACEOF" &&
15800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15801 echo "_ACEOF"
15802 } >conf$$subs.sh ||
15803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15805 ac_delim='%!_!# '
15806 for ac_last_try in false false false false false :; do
15807 . ./conf$$subs.sh ||
15808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15811 if test $ac_delim_n = $ac_delim_num; then
15812 break
15813 elif $ac_last_try; then
15814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15815 else
15816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15818 done
15819 rm -f conf$$subs.sh
15821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15822 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15823 _ACEOF
15824 sed -n '
15826 s/^/S["/; s/!.*/"]=/
15829 s/^[^!]*!//
15830 :repl
15831 t repl
15832 s/'"$ac_delim"'$//
15833 t delim
15836 s/\(.\{148\}\).*/\1/
15837 t more1
15838 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15841 b repl
15842 :more1
15843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15846 s/.\{148\}//
15847 t nl
15848 :delim
15850 s/\(.\{148\}\).*/\1/
15851 t more2
15852 s/["\\]/\\&/g; s/^/"/; s/$/"/
15855 :more2
15856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15859 s/.\{148\}//
15860 t delim
15861 ' <conf$$subs.awk | sed '
15862 /^[^""]/{
15864 s/\n//
15866 ' >>$CONFIG_STATUS || ac_write_fail=1
15867 rm -f conf$$subs.awk
15868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869 _ACAWK
15870 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15871 for (key in S) S_is_set[key] = 1
15872 FS = "\a"
15876 line = $ 0
15877 nfields = split(line, field, "@")
15878 substed = 0
15879 len = length(field[1])
15880 for (i = 2; i < nfields; i++) {
15881 key = field[i]
15882 keylen = length(key)
15883 if (S_is_set[key]) {
15884 value = S[key]
15885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15886 len += length(value) + length(field[++i])
15887 substed = 1
15888 } else
15889 len += 1 + keylen
15892 print line
15895 _ACAWK
15896 _ACEOF
15897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15900 else
15902 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15903 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15904 _ACEOF
15906 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15907 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15908 # trailing colons and then remove the whole line if VPATH becomes empty
15909 # (actually we leave an empty line to preserve line numbers).
15910 if test "x$srcdir" = x.; then
15911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15912 s/:*\$(srcdir):*/:/
15913 s/:*\${srcdir}:*/:/
15914 s/:*@srcdir@:*/:/
15915 s/^\([^=]*=[ ]*\):*/\1/
15916 s/:*$//
15917 s/^[^=]*=[ ]*$//
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 fi # test -n "$CONFIG_FILES"
15924 # Set up the scripts for CONFIG_HEADERS section.
15925 # No need to generate them if there are no CONFIG_HEADERS.
15926 # This happens for instance with `./config.status Makefile'.
15927 if test -n "$CONFIG_HEADERS"; then
15928 cat >"$tmp/defines.awk" <<\_ACAWK ||
15929 BEGIN {
15930 _ACEOF
15932 # Transform confdefs.h into an awk script `defines.awk', embedded as
15933 # here-document in config.status, that substitutes the proper values into
15934 # config.h.in to produce config.h.
15936 # Create a delimiter string that does not exist in confdefs.h, to ease
15937 # handling of long lines.
15938 ac_delim='%!_!# '
15939 for ac_last_try in false false :; do
15940 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15941 if test -z "$ac_t"; then
15942 break
15943 elif $ac_last_try; then
15944 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15945 else
15946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15948 done
15950 # For the awk script, D is an array of macro values keyed by name,
15951 # likewise P contains macro parameters if any. Preserve backslash
15952 # newline sequences.
15954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15955 sed -n '
15956 s/.\{148\}/&'"$ac_delim"'/g
15957 t rset
15958 :rset
15959 s/^[ ]*#[ ]*define[ ][ ]*/ /
15960 t def
15962 :def
15963 s/\\$//
15964 t bsnl
15965 s/["\\]/\\&/g
15966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15967 D["\1"]=" \3"/p
15968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15970 :bsnl
15971 s/["\\]/\\&/g
15972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15973 D["\1"]=" \3\\\\\\n"\\/p
15974 t cont
15975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15976 t cont
15978 :cont
15980 s/.\{148\}/&'"$ac_delim"'/g
15981 t clear
15982 :clear
15983 s/\\$//
15984 t bsnlc
15985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15987 :bsnlc
15988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15989 b cont
15990 ' <confdefs.h | sed '
15991 s/'"$ac_delim"'/"\\\
15992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 for (key in D) D_is_set[key] = 1
15996 FS = "\a"
15998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15999 line = \$ 0
16000 split(line, arg, " ")
16001 if (arg[1] == "#") {
16002 defundef = arg[2]
16003 mac1 = arg[3]
16004 } else {
16005 defundef = substr(arg[1], 2)
16006 mac1 = arg[2]
16008 split(mac1, mac2, "(") #)
16009 macro = mac2[1]
16010 prefix = substr(line, 1, index(line, defundef) - 1)
16011 if (D_is_set[macro]) {
16012 # Preserve the white space surrounding the "#".
16013 print prefix "define", macro P[macro] D[macro]
16014 next
16015 } else {
16016 # Replace #undef with comments. This is necessary, for example,
16017 # in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 if (defundef == "undef") {
16020 print "/*", prefix defundef, macro, "*/"
16021 next
16025 { print }
16026 _ACAWK
16027 _ACEOF
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16030 fi # test -n "$CONFIG_HEADERS"
16033 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16034 shift
16035 for ac_tag
16037 case $ac_tag in
16038 :[FHLC]) ac_mode=$ac_tag; continue;;
16039 esac
16040 case $ac_mode$ac_tag in
16041 :[FHL]*:*);;
16042 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16043 :[FH]-) ac_tag=-:-;;
16044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16045 esac
16046 ac_save_IFS=$IFS
16047 IFS=:
16048 set x $ac_tag
16049 IFS=$ac_save_IFS
16050 shift
16051 ac_file=$1
16052 shift
16054 case $ac_mode in
16055 :L) ac_source=$1;;
16056 :[FH])
16057 ac_file_inputs=
16058 for ac_f
16060 case $ac_f in
16061 -) ac_f="$tmp/stdin";;
16062 *) # Look for the file first in the build tree, then in the source tree
16063 # (if the path is not absolute). The absolute path cannot be DOS-style,
16064 # because $ac_f cannot contain `:'.
16065 test -f "$ac_f" ||
16066 case $ac_f in
16067 [\\/$]*) false;;
16068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16069 esac ||
16070 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16071 esac
16072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16073 as_fn_append ac_file_inputs " '$ac_f'"
16074 done
16076 # Let's still pretend it is `configure' which instantiates (i.e., don't
16077 # use $as_me), people would be surprised to read:
16078 # /* config.h. Generated by config.status. */
16079 configure_input='Generated from '`
16080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16081 `' by configure.'
16082 if test x"$ac_file" != x-; then
16083 configure_input="$ac_file. $configure_input"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16085 $as_echo "$as_me: creating $ac_file" >&6;}
16087 # Neutralize special characters interpreted by sed in replacement strings.
16088 case $configure_input in #(
16089 *\&* | *\|* | *\\* )
16090 ac_sed_conf_input=`$as_echo "$configure_input" |
16091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16092 *) ac_sed_conf_input=$configure_input;;
16093 esac
16095 case $ac_tag in
16096 *:-:* | *:-) cat >"$tmp/stdin" \
16097 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16098 esac
16100 esac
16102 ac_dir=`$as_dirname -- "$ac_file" ||
16103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104 X"$ac_file" : 'X\(//\)[^/]' \| \
16105 X"$ac_file" : 'X\(//\)$' \| \
16106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16107 $as_echo X"$ac_file" |
16108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16109 s//\1/
16112 /^X\(\/\/\)[^/].*/{
16113 s//\1/
16116 /^X\(\/\/\)$/{
16117 s//\1/
16120 /^X\(\/\).*/{
16121 s//\1/
16124 s/.*/./; q'`
16125 as_dir="$ac_dir"; as_fn_mkdir_p
16126 ac_builddir=.
16128 case "$ac_dir" in
16129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16132 # A ".." for each directory in $ac_dir_suffix.
16133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16134 case $ac_top_builddir_sub in
16135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16137 esac ;;
16138 esac
16139 ac_abs_top_builddir=$ac_pwd
16140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16141 # for backward compatibility:
16142 ac_top_builddir=$ac_top_build_prefix
16144 case $srcdir in
16145 .) # We are building in place.
16146 ac_srcdir=.
16147 ac_top_srcdir=$ac_top_builddir_sub
16148 ac_abs_top_srcdir=$ac_pwd ;;
16149 [\\/]* | ?:[\\/]* ) # Absolute name.
16150 ac_srcdir=$srcdir$ac_dir_suffix;
16151 ac_top_srcdir=$srcdir
16152 ac_abs_top_srcdir=$srcdir ;;
16153 *) # Relative name.
16154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16155 ac_top_srcdir=$ac_top_build_prefix$srcdir
16156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16157 esac
16158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16161 case $ac_mode in
16164 # CONFIG_FILE
16167 case $INSTALL in
16168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16170 esac
16171 ac_MKDIR_P=$MKDIR_P
16172 case $MKDIR_P in
16173 [\\/$]* | ?:[\\/]* ) ;;
16174 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16175 esac
16176 _ACEOF
16178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179 # If the template does not know about datarootdir, expand it.
16180 # FIXME: This hack should be removed a few years after 2.60.
16181 ac_datarootdir_hack=; ac_datarootdir_seen=
16182 ac_sed_dataroot='
16183 /datarootdir/ {
16187 /@datadir@/p
16188 /@docdir@/p
16189 /@infodir@/p
16190 /@localedir@/p
16191 /@mandir@/p'
16192 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16193 *datarootdir*) ac_datarootdir_seen=yes;;
16194 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16196 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16197 _ACEOF
16198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199 ac_datarootdir_hack='
16200 s&@datadir@&$datadir&g
16201 s&@docdir@&$docdir&g
16202 s&@infodir@&$infodir&g
16203 s&@localedir@&$localedir&g
16204 s&@mandir@&$mandir&g
16205 s&\\\${datarootdir}&$datarootdir&g' ;;
16206 esac
16207 _ACEOF
16209 # Neutralize VPATH when `$srcdir' = `.'.
16210 # Shell code in configure.ac might set extrasub.
16211 # FIXME: do we really want to maintain this feature?
16212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16213 ac_sed_extra="$ac_vpsub
16214 $extrasub
16215 _ACEOF
16216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16219 s|@configure_input@|$ac_sed_conf_input|;t t
16220 s&@top_builddir@&$ac_top_builddir_sub&;t t
16221 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16222 s&@srcdir@&$ac_srcdir&;t t
16223 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16224 s&@top_srcdir@&$ac_top_srcdir&;t t
16225 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16226 s&@builddir@&$ac_builddir&;t t
16227 s&@abs_builddir@&$ac_abs_builddir&;t t
16228 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16229 s&@INSTALL@&$ac_INSTALL&;t t
16230 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16231 $ac_datarootdir_hack
16233 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16234 || as_fn_error "could not create $ac_file" "$LINENO" 5
16236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16240 which seems to be undefined. Please make sure it is defined." >&5
16241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16242 which seems to be undefined. Please make sure it is defined." >&2;}
16244 rm -f "$tmp/stdin"
16245 case $ac_file in
16246 -) cat "$tmp/out" && rm -f "$tmp/out";;
16247 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16248 esac \
16249 || as_fn_error "could not create $ac_file" "$LINENO" 5
16253 # CONFIG_HEADER
16255 if test x"$ac_file" != x-; then
16257 $as_echo "/* $configure_input */" \
16258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16259 } >"$tmp/config.h" \
16260 || as_fn_error "could not create $ac_file" "$LINENO" 5
16261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16263 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16264 else
16265 rm -f "$ac_file"
16266 mv "$tmp/config.h" "$ac_file" \
16267 || as_fn_error "could not create $ac_file" "$LINENO" 5
16269 else
16270 $as_echo "/* $configure_input */" \
16271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16272 || as_fn_error "could not create -" "$LINENO" 5
16274 # Compute "$ac_file"'s index in $config_headers.
16275 _am_arg="$ac_file"
16276 _am_stamp_count=1
16277 for _am_header in $config_headers :; do
16278 case $_am_header in
16279 $_am_arg | $_am_arg:* )
16280 break ;;
16282 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16283 esac
16284 done
16285 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16286 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16287 X"$_am_arg" : 'X\(//\)[^/]' \| \
16288 X"$_am_arg" : 'X\(//\)$' \| \
16289 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16290 $as_echo X"$_am_arg" |
16291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16292 s//\1/
16295 /^X\(\/\/\)[^/].*/{
16296 s//\1/
16299 /^X\(\/\/\)$/{
16300 s//\1/
16303 /^X\(\/\).*/{
16304 s//\1/
16307 s/.*/./; q'`/stamp-h$_am_stamp_count
16310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16311 $as_echo "$as_me: executing $ac_file commands" >&6;}
16313 esac
16316 case $ac_file$ac_mode in
16317 "default-1":C)
16318 # Only add multilib support code if we just rebuilt the top-level
16319 # Makefile.
16320 case " $CONFIG_FILES " in
16321 *" Makefile "*)
16322 ac_file=Makefile . ${multi_basedir}/config-ml.in
16324 esac ;;
16325 "libtool":C)
16327 # See if we are running on zsh, and set the options which allow our
16328 # commands through without removal of \ escapes.
16329 if test -n "${ZSH_VERSION+set}" ; then
16330 setopt NO_GLOB_SUBST
16333 cfgfile="${ofile}T"
16334 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16335 $RM "$cfgfile"
16337 cat <<_LT_EOF >> "$cfgfile"
16338 #! $SHELL
16340 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16341 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16343 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16345 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16346 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16347 # Written by Gordon Matzigkeit, 1996
16349 # This file is part of GNU Libtool.
16351 # GNU Libtool is free software; you can redistribute it and/or
16352 # modify it under the terms of the GNU General Public License as
16353 # published by the Free Software Foundation; either version 2 of
16354 # the License, or (at your option) any later version.
16356 # As a special exception to the GNU General Public License,
16357 # if you distribute this file as part of a program or library that
16358 # is built using GNU Libtool, you may include this file under the
16359 # same distribution terms that you use for the rest of that program.
16361 # GNU Libtool is distributed in the hope that it will be useful,
16362 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16364 # GNU General Public License for more details.
16366 # You should have received a copy of the GNU General Public License
16367 # along with GNU Libtool; see the file COPYING. If not, a copy
16368 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16369 # obtained by writing to the Free Software Foundation, Inc.,
16370 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16373 # The names of the tagged configurations supported by this script.
16374 available_tags="D "
16376 # ### BEGIN LIBTOOL CONFIG
16378 # Which release of libtool.m4 was used?
16379 macro_version=$macro_version
16380 macro_revision=$macro_revision
16382 # Whether or not to build shared libraries.
16383 build_libtool_libs=$enable_shared
16385 # Whether or not to build static libraries.
16386 build_old_libs=$enable_static
16388 # What type of objects to build.
16389 pic_mode=$pic_mode
16391 # Whether or not to optimize for fast installation.
16392 fast_install=$enable_fast_install
16394 # Shell to use when invoking shell scripts.
16395 SHELL=$lt_SHELL
16397 # An echo program that protects backslashes.
16398 ECHO=$lt_ECHO
16400 # The host system.
16401 host_alias=$host_alias
16402 host=$host
16403 host_os=$host_os
16405 # The build system.
16406 build_alias=$build_alias
16407 build=$build
16408 build_os=$build_os
16410 # A sed program that does not truncate output.
16411 SED=$lt_SED
16413 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16414 Xsed="\$SED -e 1s/^X//"
16416 # A grep program that handles long lines.
16417 GREP=$lt_GREP
16419 # An ERE matcher.
16420 EGREP=$lt_EGREP
16422 # A literal string matcher.
16423 FGREP=$lt_FGREP
16425 # A BSD- or MS-compatible name lister.
16426 NM=$lt_NM
16428 # Whether we need soft or hard links.
16429 LN_S=$lt_LN_S
16431 # What is the maximum length of a command?
16432 max_cmd_len=$max_cmd_len
16434 # Object file suffix (normally "o").
16435 objext=$ac_objext
16437 # Executable file suffix (normally "").
16438 exeext=$exeext
16440 # whether the shell understands "unset".
16441 lt_unset=$lt_unset
16443 # turn spaces into newlines.
16444 SP2NL=$lt_lt_SP2NL
16446 # turn newlines into spaces.
16447 NL2SP=$lt_lt_NL2SP
16449 # An object symbol dumper.
16450 OBJDUMP=$lt_OBJDUMP
16452 # Method to check whether dependent libraries are shared objects.
16453 deplibs_check_method=$lt_deplibs_check_method
16455 # Command to use when deplibs_check_method == "file_magic".
16456 file_magic_cmd=$lt_file_magic_cmd
16458 # The archiver.
16459 AR=$lt_AR
16460 AR_FLAGS=$lt_AR_FLAGS
16462 # A symbol stripping program.
16463 STRIP=$lt_STRIP
16465 # Commands used to install an old-style archive.
16466 RANLIB=$lt_RANLIB
16467 old_postinstall_cmds=$lt_old_postinstall_cmds
16468 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16470 # Whether to use a lock for old archive extraction.
16471 lock_old_archive_extraction=$lock_old_archive_extraction
16473 # A C compiler.
16474 LTCC=$lt_CC
16476 # LTCC compiler flags.
16477 LTCFLAGS=$lt_CFLAGS
16479 # Take the output of nm and produce a listing of raw symbols and C names.
16480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16482 # Transform the output of nm in a proper C declaration.
16483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16485 # Transform the output of nm in a C name address pair.
16486 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16488 # Transform the output of nm in a C name address pair when lib prefix is needed.
16489 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16491 # The name of the directory that contains temporary libtool files.
16492 objdir=$objdir
16494 # Used to examine libraries when file_magic_cmd begins with "file".
16495 MAGIC_CMD=$MAGIC_CMD
16497 # Must we lock files when doing compilation?
16498 need_locks=$lt_need_locks
16500 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16501 DSYMUTIL=$lt_DSYMUTIL
16503 # Tool to change global to local symbols on Mac OS X.
16504 NMEDIT=$lt_NMEDIT
16506 # Tool to manipulate fat objects and archives on Mac OS X.
16507 LIPO=$lt_LIPO
16509 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16510 OTOOL=$lt_OTOOL
16512 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16513 OTOOL64=$lt_OTOOL64
16515 # Old archive suffix (normally "a").
16516 libext=$libext
16518 # Shared library suffix (normally ".so").
16519 shrext_cmds=$lt_shrext_cmds
16521 # The commands to extract the exported symbol list from a shared archive.
16522 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16524 # Variables whose values should be saved in libtool wrapper scripts and
16525 # restored at link time.
16526 variables_saved_for_relink=$lt_variables_saved_for_relink
16528 # Do we need the "lib" prefix for modules?
16529 need_lib_prefix=$need_lib_prefix
16531 # Do we need a version for libraries?
16532 need_version=$need_version
16534 # Library versioning type.
16535 version_type=$version_type
16537 # Shared library runtime path variable.
16538 runpath_var=$runpath_var
16540 # Shared library path variable.
16541 shlibpath_var=$shlibpath_var
16543 # Is shlibpath searched before the hard-coded library search path?
16544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16546 # Format of library name prefix.
16547 libname_spec=$lt_libname_spec
16549 # List of archive names. First name is the real one, the rest are links.
16550 # The last name is the one that the linker finds with -lNAME
16551 library_names_spec=$lt_library_names_spec
16553 # The coded name of the library, if different from the real name.
16554 soname_spec=$lt_soname_spec
16556 # Permission mode override for installation of shared libraries.
16557 install_override_mode=$lt_install_override_mode
16559 # Command to use after installation of a shared archive.
16560 postinstall_cmds=$lt_postinstall_cmds
16562 # Command to use after uninstallation of a shared archive.
16563 postuninstall_cmds=$lt_postuninstall_cmds
16565 # Commands used to finish a libtool library installation in a directory.
16566 finish_cmds=$lt_finish_cmds
16568 # As "finish_cmds", except a single script fragment to be evaled but
16569 # not shown.
16570 finish_eval=$lt_finish_eval
16572 # Whether we should hardcode library paths into libraries.
16573 hardcode_into_libs=$hardcode_into_libs
16575 # Compile-time system search path for libraries.
16576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16578 # Run-time system search path for libraries.
16579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16581 # Whether dlopen is supported.
16582 dlopen_support=$enable_dlopen
16584 # Whether dlopen of programs is supported.
16585 dlopen_self=$enable_dlopen_self
16587 # Whether dlopen of statically linked programs is supported.
16588 dlopen_self_static=$enable_dlopen_self_static
16590 # Commands to strip libraries.
16591 old_striplib=$lt_old_striplib
16592 striplib=$lt_striplib
16595 # The linker used to build libraries.
16596 LD=$lt_LD
16598 # How to create reloadable object files.
16599 reload_flag=$lt_reload_flag
16600 reload_cmds=$lt_reload_cmds
16602 # Commands used to build an old-style archive.
16603 old_archive_cmds=$lt_old_archive_cmds
16605 # A language specific compiler.
16606 CC=$lt_compiler
16608 # Is the compiler the GNU compiler?
16609 with_gcc=$GCC
16611 # Compiler flag to turn off builtin functions.
16612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16614 # How to pass a linker flag through the compiler.
16615 wl=$lt_lt_prog_compiler_wl
16617 # Additional compiler flags for building library objects.
16618 pic_flag=$lt_lt_prog_compiler_pic
16620 # Compiler flag to prevent dynamic linking.
16621 link_static_flag=$lt_lt_prog_compiler_static
16623 # Does compiler simultaneously support -c and -o options?
16624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16626 # Whether or not to add -lc for building shared libraries.
16627 build_libtool_need_lc=$archive_cmds_need_lc
16629 # Whether or not to disallow shared libs when runtime libs are static.
16630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16632 # Compiler flag to allow reflexive dlopens.
16633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16635 # Compiler flag to generate shared objects directly from archives.
16636 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16638 # Whether the compiler copes with passing no objects directly.
16639 compiler_needs_object=$lt_compiler_needs_object
16641 # Create an old-style archive from a shared archive.
16642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16644 # Create a temporary old-style archive to link instead of a shared archive.
16645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16647 # Commands used to build a shared archive.
16648 archive_cmds=$lt_archive_cmds
16649 archive_expsym_cmds=$lt_archive_expsym_cmds
16651 # Commands used to build a loadable module if different from building
16652 # a shared archive.
16653 module_cmds=$lt_module_cmds
16654 module_expsym_cmds=$lt_module_expsym_cmds
16656 # Whether we are building with GNU ld or not.
16657 with_gnu_ld=$lt_with_gnu_ld
16659 # Flag that allows shared libraries with undefined symbols to be built.
16660 allow_undefined_flag=$lt_allow_undefined_flag
16662 # Flag that enforces no undefined symbols.
16663 no_undefined_flag=$lt_no_undefined_flag
16665 # Flag to hardcode \$libdir into a binary during linking.
16666 # This must work even if \$libdir does not exist
16667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16669 # If ld is used when linking, flag to hardcode \$libdir into a binary
16670 # during linking. This must work even if \$libdir does not exist.
16671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16673 # Whether we need a single "-rpath" flag with a separated argument.
16674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16677 # DIR into the resulting binary.
16678 hardcode_direct=$hardcode_direct
16680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16681 # DIR into the resulting binary and the resulting library dependency is
16682 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16683 # library is relocated.
16684 hardcode_direct_absolute=$hardcode_direct_absolute
16686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16687 # into the resulting binary.
16688 hardcode_minus_L=$hardcode_minus_L
16690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16691 # into the resulting binary.
16692 hardcode_shlibpath_var=$hardcode_shlibpath_var
16694 # Set to "yes" if building a shared library automatically hardcodes DIR
16695 # into the library and all subsequent libraries and executables linked
16696 # against it.
16697 hardcode_automatic=$hardcode_automatic
16699 # Set to yes if linker adds runtime paths of dependent libraries
16700 # to runtime path list.
16701 inherit_rpath=$inherit_rpath
16703 # Whether libtool must link a program against all its dependency libraries.
16704 link_all_deplibs=$link_all_deplibs
16706 # Fix the shell variable \$srcfile for the compiler.
16707 fix_srcfile_path=$lt_fix_srcfile_path
16709 # Set to "yes" if exported symbols are required.
16710 always_export_symbols=$always_export_symbols
16712 # The commands to list exported symbols.
16713 export_symbols_cmds=$lt_export_symbols_cmds
16715 # Symbols that should not be listed in the preloaded symbols.
16716 exclude_expsyms=$lt_exclude_expsyms
16718 # Symbols that must always be exported.
16719 include_expsyms=$lt_include_expsyms
16721 # Commands necessary for linking programs (against libraries) with templates.
16722 prelink_cmds=$lt_prelink_cmds
16724 # Specify filename containing input files.
16725 file_list_spec=$lt_file_list_spec
16727 # How to hardcode a shared library path into an executable.
16728 hardcode_action=$hardcode_action
16730 # ### END LIBTOOL CONFIG
16732 _LT_EOF
16734 case $host_os in
16735 aix3*)
16736 cat <<\_LT_EOF >> "$cfgfile"
16737 # AIX sometimes has problems with the GCC collect2 program. For some
16738 # reason, if we set the COLLECT_NAMES environment variable, the problems
16739 # vanish in a puff of smoke.
16740 if test "X${COLLECT_NAMES+set}" != Xset; then
16741 COLLECT_NAMES=
16742 export COLLECT_NAMES
16744 _LT_EOF
16746 esac
16749 ltmain="$ac_aux_dir/ltmain.sh"
16752 # We use sed instead of cat because bash on DJGPP gets confused if
16753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16754 # text mode, it properly converts lines to CR/LF. This bash problem
16755 # is reportedly fixed, but why not run on old versions too?
16756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16757 || (rm -f "$cfgfile"; exit 1)
16759 case $xsi_shell in
16760 yes)
16761 cat << \_LT_EOF >> "$cfgfile"
16763 # func_dirname file append nondir_replacement
16764 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16765 # otherwise set result to NONDIR_REPLACEMENT.
16766 func_dirname ()
16768 case ${1} in
16769 */*) func_dirname_result="${1%/*}${2}" ;;
16770 * ) func_dirname_result="${3}" ;;
16771 esac
16774 # func_basename file
16775 func_basename ()
16777 func_basename_result="${1##*/}"
16780 # func_dirname_and_basename file append nondir_replacement
16781 # perform func_basename and func_dirname in a single function
16782 # call:
16783 # dirname: Compute the dirname of FILE. If nonempty,
16784 # add APPEND to the result, otherwise set result
16785 # to NONDIR_REPLACEMENT.
16786 # value returned in "$func_dirname_result"
16787 # basename: Compute filename of FILE.
16788 # value retuned in "$func_basename_result"
16789 # Implementation must be kept synchronized with func_dirname
16790 # and func_basename. For efficiency, we do not delegate to
16791 # those functions but instead duplicate the functionality here.
16792 func_dirname_and_basename ()
16794 case ${1} in
16795 */*) func_dirname_result="${1%/*}${2}" ;;
16796 * ) func_dirname_result="${3}" ;;
16797 esac
16798 func_basename_result="${1##*/}"
16801 # func_stripname prefix suffix name
16802 # strip PREFIX and SUFFIX off of NAME.
16803 # PREFIX and SUFFIX must not contain globbing or regex special
16804 # characters, hashes, percent signs, but SUFFIX may contain a leading
16805 # dot (in which case that matches only a dot).
16806 func_stripname ()
16808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16809 # positional parameters, so assign one to ordinary parameter first.
16810 func_stripname_result=${3}
16811 func_stripname_result=${func_stripname_result#"${1}"}
16812 func_stripname_result=${func_stripname_result%"${2}"}
16815 # func_opt_split
16816 func_opt_split ()
16818 func_opt_split_opt=${1%%=*}
16819 func_opt_split_arg=${1#*=}
16822 # func_lo2o object
16823 func_lo2o ()
16825 case ${1} in
16826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16827 *) func_lo2o_result=${1} ;;
16828 esac
16831 # func_xform libobj-or-source
16832 func_xform ()
16834 func_xform_result=${1%.*}.lo
16837 # func_arith arithmetic-term...
16838 func_arith ()
16840 func_arith_result=$(( $* ))
16843 # func_len string
16844 # STRING may not start with a hyphen.
16845 func_len ()
16847 func_len_result=${#1}
16850 _LT_EOF
16852 *) # Bourne compatible functions.
16853 cat << \_LT_EOF >> "$cfgfile"
16855 # func_dirname file append nondir_replacement
16856 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16857 # otherwise set result to NONDIR_REPLACEMENT.
16858 func_dirname ()
16860 # Extract subdirectory from the argument.
16861 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16862 if test "X$func_dirname_result" = "X${1}"; then
16863 func_dirname_result="${3}"
16864 else
16865 func_dirname_result="$func_dirname_result${2}"
16869 # func_basename file
16870 func_basename ()
16872 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16876 # func_stripname prefix suffix name
16877 # strip PREFIX and SUFFIX off of NAME.
16878 # PREFIX and SUFFIX must not contain globbing or regex special
16879 # characters, hashes, percent signs, but SUFFIX may contain a leading
16880 # dot (in which case that matches only a dot).
16881 # func_strip_suffix prefix name
16882 func_stripname ()
16884 case ${2} in
16885 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16886 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16887 esac
16890 # sed scripts:
16891 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16892 my_sed_long_arg='1s/^-[^=]*=//'
16894 # func_opt_split
16895 func_opt_split ()
16897 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16898 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16901 # func_lo2o object
16902 func_lo2o ()
16904 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16907 # func_xform libobj-or-source
16908 func_xform ()
16910 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16913 # func_arith arithmetic-term...
16914 func_arith ()
16916 func_arith_result=`expr "$@"`
16919 # func_len string
16920 # STRING may not start with a hyphen.
16921 func_len ()
16923 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16926 _LT_EOF
16927 esac
16929 case $lt_shell_append in
16930 yes)
16931 cat << \_LT_EOF >> "$cfgfile"
16933 # func_append var value
16934 # Append VALUE to the end of shell variable VAR.
16935 func_append ()
16937 eval "$1+=\$2"
16939 _LT_EOF
16942 cat << \_LT_EOF >> "$cfgfile"
16944 # func_append var value
16945 # Append VALUE to the end of shell variable VAR.
16946 func_append ()
16948 eval "$1=\$$1\$2"
16951 _LT_EOF
16953 esac
16956 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16957 || (rm -f "$cfgfile"; exit 1)
16959 mv -f "$cfgfile" "$ofile" ||
16960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16961 chmod +x "$ofile"
16964 cat <<_LT_EOF >> "$ofile"
16966 # ### BEGIN LIBTOOL TAG CONFIG: D
16968 # The linker used to build libraries.
16969 LD=$lt_LD_D
16971 # How to create reloadable object files.
16972 reload_flag=$lt_reload_flag_D
16973 reload_cmds=$lt_reload_cmds_D
16975 # Commands used to build an old-style archive.
16976 old_archive_cmds=$lt_old_archive_cmds_D
16978 # A language specific compiler.
16979 CC=$lt_compiler_D
16981 # Is the compiler the GNU compiler?
16982 with_gcc=$GCC_D
16984 # Compiler flag to turn off builtin functions.
16985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
16987 # How to pass a linker flag through the compiler.
16988 wl=$lt_lt_prog_compiler_wl_D
16990 # Additional compiler flags for building library objects.
16991 pic_flag=$lt_lt_prog_compiler_pic_D
16993 # Compiler flag to prevent dynamic linking.
16994 link_static_flag=$lt_lt_prog_compiler_static_D
16996 # Does compiler simultaneously support -c and -o options?
16997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
16999 # Whether or not to add -lc for building shared libraries.
17000 build_libtool_need_lc=$archive_cmds_need_lc_D
17002 # Whether or not to disallow shared libs when runtime libs are static.
17003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17005 # Compiler flag to allow reflexive dlopens.
17006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17008 # Compiler flag to generate shared objects directly from archives.
17009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17011 # Whether the compiler copes with passing no objects directly.
17012 compiler_needs_object=$lt_compiler_needs_object_D
17014 # Create an old-style archive from a shared archive.
17015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17017 # Create a temporary old-style archive to link instead of a shared archive.
17018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17020 # Commands used to build a shared archive.
17021 archive_cmds=$lt_archive_cmds_D
17022 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17024 # Commands used to build a loadable module if different from building
17025 # a shared archive.
17026 module_cmds=$lt_module_cmds_D
17027 module_expsym_cmds=$lt_module_expsym_cmds_D
17029 # Whether we are building with GNU ld or not.
17030 with_gnu_ld=$lt_with_gnu_ld_D
17032 # Flag that allows shared libraries with undefined symbols to be built.
17033 allow_undefined_flag=$lt_allow_undefined_flag_D
17035 # Flag that enforces no undefined symbols.
17036 no_undefined_flag=$lt_no_undefined_flag_D
17038 # Flag to hardcode \$libdir into a binary during linking.
17039 # This must work even if \$libdir does not exist
17040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17042 # If ld is used when linking, flag to hardcode \$libdir into a binary
17043 # during linking. This must work even if \$libdir does not exist.
17044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17046 # Whether we need a single "-rpath" flag with a separated argument.
17047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17050 # DIR into the resulting binary.
17051 hardcode_direct=$hardcode_direct_D
17053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17054 # DIR into the resulting binary and the resulting library dependency is
17055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17056 # library is relocated.
17057 hardcode_direct_absolute=$hardcode_direct_absolute_D
17059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17060 # into the resulting binary.
17061 hardcode_minus_L=$hardcode_minus_L_D
17063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17064 # into the resulting binary.
17065 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17067 # Set to "yes" if building a shared library automatically hardcodes DIR
17068 # into the library and all subsequent libraries and executables linked
17069 # against it.
17070 hardcode_automatic=$hardcode_automatic_D
17072 # Set to yes if linker adds runtime paths of dependent libraries
17073 # to runtime path list.
17074 inherit_rpath=$inherit_rpath_D
17076 # Whether libtool must link a program against all its dependency libraries.
17077 link_all_deplibs=$link_all_deplibs_D
17079 # Fix the shell variable \$srcfile for the compiler.
17080 fix_srcfile_path=$lt_fix_srcfile_path_D
17082 # Set to "yes" if exported symbols are required.
17083 always_export_symbols=$always_export_symbols_D
17085 # The commands to list exported symbols.
17086 export_symbols_cmds=$lt_export_symbols_cmds_D
17088 # Symbols that should not be listed in the preloaded symbols.
17089 exclude_expsyms=$lt_exclude_expsyms_D
17091 # Symbols that must always be exported.
17092 include_expsyms=$lt_include_expsyms_D
17094 # Commands necessary for linking programs (against libraries) with templates.
17095 prelink_cmds=$lt_prelink_cmds_D
17097 # Specify filename containing input files.
17098 file_list_spec=$lt_file_list_spec_D
17100 # How to hardcode a shared library path into an executable.
17101 hardcode_action=$hardcode_action_D
17103 # ### END LIBTOOL TAG CONFIG: D
17104 _LT_EOF
17107 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17108 "default":C) if test -n "$CONFIG_FILES"; then
17109 if test -n "${with_target_subdir}"; then
17110 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17111 # that multilib installs will end up installed in the correct place.
17112 # The testsuite needs it for multilib-aware ABI baseline files.
17113 # To work around this not being passed down from config-ml.in ->
17114 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
17115 # append it here. Only modify Makefiles that have just been created.
17117 # Also, get rid of this simulated-VPATH thing that automake does.
17118 cat > vpsed << \_EOF
17119 s!`test -f '$<' || echo '$(srcdir)/'`!!
17120 _EOF
17121 for i in $SUBDIRS; do
17122 case $CONFIG_FILES in
17123 *${i}/Makefile*)
17124 #echo "Adding MULTISUBDIR to $i/Makefile"
17125 sed -f vpsed $i/Makefile > tmp
17126 grep '^MULTISUBDIR =' Makefile >> tmp
17127 mv tmp $i/Makefile
17129 esac
17130 done
17131 rm vpsed
17136 esac
17137 done # for ac_tag
17140 as_fn_exit 0
17141 _ACEOF
17142 ac_clean_files=$ac_clean_files_save
17144 test $ac_write_fail = 0 ||
17145 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17148 # configure is writing to config.log, and then calls config.status.
17149 # config.status does its own redirection, appending to config.log.
17150 # Unfortunately, on DOS this fails, as config.log is still kept open
17151 # by configure, so config.status won't be able to write to it; its
17152 # output is simply discarded. So we exec the FD to /dev/null,
17153 # effectively closing config.log, so it can be properly (re)opened and
17154 # appended to by config.status. When coming back to configure, we
17155 # need to make the FD available again.
17156 if test "$no_create" != yes; then
17157 ac_cs_success=:
17158 ac_config_status_args=
17159 test "$silent" = yes &&
17160 ac_config_status_args="$ac_config_status_args --quiet"
17161 exec 5>/dev/null
17162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17163 exec 5>>config.log
17164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17165 # would make configure fail if this is the last instruction.
17166 $ac_cs_success || as_fn_exit $?
17168 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17170 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}