ada: Add assertion for the implementation of storage models
[official-gcc.git] / libphobos / configure
blob925c53c5f5e4941a3cadee7cb4f32d5df1bf8373
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 WARN_DFLAGS
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 CHECKING_DFLAGS
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
644 gdc_include_dir
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
647 gcc_version
648 LIBZ
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
651 BACKTRACE_SUPPORTED
652 LIBBACKTRACE
653 LIBATOMIC
654 DCFG_HAVE_LIBATOMIC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
657 DCFG_HAVE_QSORT_R
658 OS_LINK_SPEC
659 DCFG_DLPI_TLS_MODID
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
666 DCFG_THREAD_MODEL
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_OS_AIX_TRUE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
703 SECTION_FLAGS
704 libphobos_srcdir
705 libphobos_builddir
706 get_gcc_base_ver
707 phobos_compiler_shared_flag
708 phobos_compiler_pic_flag
709 phobos_lt_pic_flag
710 enable_static
711 enable_shared
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 OBJDUMP
718 LN_S
720 ac_ct_DUMPBIN
721 DUMPBIN
723 FGREP
725 LIBTOOL
726 CFLAGS_FOR_BUILD
727 CC_FOR_BUILD
729 DCFG_ENABLE_CET
730 CET_DFLAGS
731 CET_FLAGS
732 RANLIB
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 GDCFLAGS
738 CCASFLAGS
739 CCAS
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 EGREP
768 GREP
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
777 target_os
778 target_vendor
779 target_cpu
780 target
781 host_os
782 host_vendor
783 host_cpu
784 host
785 build_os
786 build_vendor
787 build_cpu
788 build
789 multi_basedir
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL'
828 ac_subst_files='DRTSTUFF_SPEC'
829 ac_user_opts='
830 enable_option_checking
831 enable_multilib
832 enable_silent_rules
833 enable_maintainer_mode
834 enable_cet
835 enable_shared
836 enable_static
837 with_pic
838 enable_fast_install
839 with_gnu_ld
840 enable_libtool_lock
841 with_gcc_major_version_only
842 enable_werror
843 with_libatomic
844 with_libbacktrace
845 with_target_system_zlib
846 with_cross_host
847 enable_version_specific_runtime_libs
848 with_toolexeclibdir
849 enable_libphobos
850 with_libphobos_druntime_only
851 enable_libphobos_checking
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CPP'
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
912 ac_prev=
913 ac_dashdash=
914 for ac_option
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
933 ac_dashdash=yes ;;
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
952 --config-cache | -C)
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269 esac
1270 done
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1354 /^X\(\/\/\)$/{
1355 s//\1/
1358 /^X\(\/\).*/{
1359 s//\1/
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1367 else
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1457 cat <<\_ACEOF
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468 _ACEOF
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of package-unused version-unused:";;
1474 esac
1475 cat <<\_ACEOF
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-multilib build many library versions (default)
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-cet enable Intel CET in target libraries [default=auto]
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-werror turns on -Werror [default=no]
1494 --enable-version-specific-runtime-libs
1495 Specify that runtime libraries should be installed
1496 in a compiler-specific directory
1497 --enable-libphobos Enable libphobos
1498 --enable-libphobos-checking[=LIST]
1499 enable expensive run-time checks. With LIST, enable
1500 only specific categories of checks. Categories are:
1501 yes,no,all,none,release. Flags are: assert or other
1502 strings
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-pic try to use only PIC/non-PIC objects [default=use
1508 both]
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-gcc-major-version-only
1511 use only GCC major number in filesystem paths
1512 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1513 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1514 auto)
1515 --with-target-system-zlib={yes,no,auto}
1516 use installed libz (default: no)
1517 --with-cross-host=HOST configuring with a cross compiler
1518 --with-toolexeclibdir=DIR
1519 install libraries built with a cross compiler within
1521 --with-libphobos-druntime-only={yes,no,auto}
1522 build only the druntime library (default: auto)
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 CPP C preprocessor
1533 CCAS assembler compiler command (defaults to CC)
1534 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1535 GDC D compiler command
1536 GDCFLAGS D compiler flags
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to the package provider.
1542 _ACEOF
1543 ac_status=$?
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1570 case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603 cat <<\_ACEOF
1604 package-unused configure version-unused
1605 generated by GNU Autoconf 2.69
1607 Copyright (C) 2012 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611 exit
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_compile
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=1
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_c_try_cpp
1693 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1696 # the include files in INCLUDES and setting the cache variable VAR
1697 # accordingly.
1698 ac_fn_c_check_header_mongrel ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if eval \${$3+:} false; then :
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 else
1711 # Is the header compilable?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1713 $as_echo_n "checking $2 usability... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720 ac_header_compiler=yes
1721 else
1722 ac_header_compiler=no
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1726 $as_echo "$ac_header_compiler" >&6; }
1728 # Is the header present?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1730 $as_echo_n "checking $2 presence... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_cpp "$LINENO"; then :
1736 ac_header_preproc=yes
1737 else
1738 ac_header_preproc=no
1740 rm -f conftest.err conftest.i conftest.$ac_ext
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1742 $as_echo "$ac_header_preproc" >&6; }
1744 # So? What about this header?
1745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1746 yes:no: )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1748 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752 no:yes:* )
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1754 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1756 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1758 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1760 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764 esac
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 eval "$3=\$ac_header_compiler"
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_mongrel
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1784 ac_fn_c_try_run ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1795 ac_status=$?
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=$ac_status
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_c_try_run
1822 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists and can be compiled using the include files in
1825 # INCLUDES, setting the cache variable VAR accordingly.
1826 ac_fn_c_check_header_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 eval "$3=yes"
1841 else
1842 eval "$3=no"
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 } # ac_fn_c_check_header_compile
1853 # ac_fn_d_try_compile LINENO
1854 # --------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_d_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_d_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_d_try_compile
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_link ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_c_try_link
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1965 #undef $2
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970 #ifdef __cplusplus
1971 extern "C"
1972 #endif
1973 char $2 ();
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1978 choke me
1979 #endif
1982 main ()
1984 return $2 ();
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991 else
1992 eval "$3=no"
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005 # ----------------------------------------------------
2006 # Tries to find if the field MEMBER exists in type AGGR, after including
2007 # INCLUDES, setting cache variable VAR accordingly.
2008 ac_fn_c_check_member ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012 $as_echo_n "checking for $2.$3... " >&6; }
2013 if eval \${$4+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2020 main ()
2022 static $2 ac_aggr;
2023 if (ac_aggr.$3)
2024 return 0;
2026 return 0;
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 static $2 ac_aggr;
2039 if (sizeof ac_aggr.$3)
2040 return 0;
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047 else
2048 eval "$4=no"
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 eval ac_res=\$$4
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_member
2061 # ac_fn_d_try_link LINENO
2062 # -----------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_d_try_link ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext conftest$ac_exeext
2068 if { { ac_try="$ac_link"
2069 case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>conftest.err
2076 ac_status=$?
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_d_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest$ac_exeext && {
2087 test "$cross_compiling" = yes ||
2088 test -x conftest$ac_exeext
2089 }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_retval=1
2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099 # interfere with the next link command; also delete a directory that is
2100 # left behind by Apple's compiler. We do this before executing the actions.
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 as_fn_set_status $ac_retval
2105 } # ac_fn_d_try_link
2106 cat >config.log <<_ACEOF
2107 This file contains any messages produced by compilers while
2108 running configure, to aid debugging if configure makes a mistake.
2110 It was created by package-unused $as_me version-unused, which was
2111 generated by GNU Autoconf 2.69. Invocation command line was
2113 $ $0 $@
2115 _ACEOF
2116 exec 5>>config.log
2118 cat <<_ASUNAME
2119 ## --------- ##
2120 ## Platform. ##
2121 ## --------- ##
2123 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2133 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2134 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2136 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2137 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2138 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2140 _ASUNAME
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 $as_echo "PATH: $as_dir"
2148 done
2149 IFS=$as_save_IFS
2151 } >&5
2153 cat >&5 <<_ACEOF
2156 ## ----------- ##
2157 ## Core tests. ##
2158 ## ----------- ##
2160 _ACEOF
2163 # Keep a trace of the command line.
2164 # Strip out --no-create and --no-recursion so they do not pile up.
2165 # Strip out --silent because we don't want to record it for future runs.
2166 # Also quote any args containing shell meta-characters.
2167 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_configure_args=
2169 ac_configure_args0=
2170 ac_configure_args1=
2171 ac_must_keep_next=false
2172 for ac_pass in 1 2
2174 for ac_arg
2176 case $ac_arg in
2177 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179 | -silent | --silent | --silen | --sile | --sil)
2180 continue ;;
2181 *\'*)
2182 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 esac
2184 case $ac_pass in
2185 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187 as_fn_append ac_configure_args1 " '$ac_arg'"
2188 if test $ac_must_keep_next = true; then
2189 ac_must_keep_next=false # Got value, back to normal.
2190 else
2191 case $ac_arg in
2192 *=* | --config-cache | -C | -disable-* | --disable-* \
2193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195 | -with-* | --with-* | -without-* | --without-* | --x)
2196 case "$ac_configure_args0 " in
2197 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198 esac
2200 -* ) ac_must_keep_next=true ;;
2201 esac
2203 as_fn_append ac_configure_args " '$ac_arg'"
2205 esac
2206 done
2207 done
2208 { ac_configure_args0=; unset ac_configure_args0;}
2209 { ac_configure_args1=; unset ac_configure_args1;}
2211 # When interrupted or exit'd, cleanup temporary files, and complete
2212 # config.log. We remove comments because anyway the quotes in there
2213 # would cause problems or look ugly.
2214 # WARNING: Use '\'' to represent an apostrophe within the trap.
2215 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216 trap 'exit_status=$?
2217 # Save into config.log some information that might help in debugging.
2219 echo
2221 $as_echo "## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##"
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 esac |
2253 sort
2255 echo
2257 $as_echo "## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##"
2260 echo
2261 for ac_var in $ac_subst_vars
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2271 if test -n "$ac_subst_files"; then
2272 $as_echo "## ------------------- ##
2273 ## File substitutions. ##
2274 ## ------------------- ##"
2275 echo
2276 for ac_var in $ac_subst_files
2278 eval ac_val=\$$ac_var
2279 case $ac_val in
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 esac
2282 $as_echo "$ac_var='\''$ac_val'\''"
2283 done | sort
2284 echo
2287 if test -s confdefs.h; then
2288 $as_echo "## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##"
2291 echo
2292 cat confdefs.h
2293 echo
2295 test "$ac_signal" != 0 &&
2296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2303 for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2311 $as_echo "/* confdefs.h */" > confdefs.h
2313 # Predefined preprocessor variables.
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345 # We do not want a PATH search for config.site.
2346 case $CONFIG_SITE in #((
2347 -*) ac_site_file1=./$CONFIG_SITE;;
2348 */*) ac_site_file1=$CONFIG_SITE;;
2349 *) ac_site_file1=./$CONFIG_SITE;;
2350 esac
2351 elif test "x$prefix" != xNONE; then
2352 ac_site_file1=$prefix/share/config.site
2353 ac_site_file2=$prefix/etc/config.site
2354 else
2355 ac_site_file1=$ac_default_prefix/share/config.site
2356 ac_site_file2=$ac_default_prefix/etc/config.site
2358 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360 test "x$ac_site_file" = xNONE && continue
2361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364 sed 's/^/| /' "$ac_site_file" >&5
2365 . "$ac_site_file" \
2366 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 as_fn_error $? "failed to load site script $ac_site_file
2369 See \`config.log' for more details" "$LINENO" 5; }
2371 done
2373 if test -r "$cache_file"; then
2374 # Some versions of bash will fail to source /dev/null (special files
2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379 case $cache_file in
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2382 esac
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387 >$cache_file
2390 # Check that the precious variables saved in the cache have kept the same
2391 # value.
2392 ac_cache_corrupted=false
2393 for ac_var in $ac_precious_vars; do
2394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395 eval ac_new_set=\$ac_env_${ac_var}_set
2396 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397 eval ac_new_val=\$ac_env_${ac_var}_value
2398 case $ac_old_set,$ac_new_set in
2399 set,)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,set)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,);;
2409 if test "x$ac_old_val" != "x$ac_new_val"; then
2410 # differences in whitespace do not lead to failure.
2411 ac_old_val_w=`echo x $ac_old_val`
2412 ac_new_val_w=`echo x $ac_new_val`
2413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416 ac_cache_corrupted=:
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420 eval $ac_var=\$ac_old_val
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2423 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2425 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2426 fi;;
2427 esac
2428 # Pass precious variables to config.status.
2429 if test "$ac_new_set" = set; then
2430 case $ac_new_val in
2431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 *) ac_arg=$ac_var=$ac_new_val ;;
2433 esac
2434 case " $ac_configure_args " in
2435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2436 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437 esac
2439 done
2440 if $ac_cache_corrupted; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2447 ## -------------------- ##
2448 ## Main body of script. ##
2449 ## -------------------- ##
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 ac_config_headers="$ac_config_headers config.h"
2465 # Default to --enable-multilib
2466 # Check whether --enable-multilib was given.
2467 if test "${enable_multilib+set}" = set; then :
2468 enableval=$enable_multilib; case "$enableval" in
2469 yes) multilib=yes ;;
2470 no) multilib=no ;;
2471 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2472 esac
2473 else
2474 multilib=yes
2478 # We may get other options which we leave undocumented:
2479 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2480 # See config-ml.in if you want the gory details.
2482 if test "$srcdir" = "."; then
2483 if test "$with_target_subdir" != "."; then
2484 multi_basedir="$srcdir/$with_multisrctop../.."
2485 else
2486 multi_basedir="$srcdir/$with_multisrctop.."
2488 else
2489 multi_basedir="$srcdir/.."
2493 # Even if the default multilib is not a cross compilation,
2494 # it may be that some of the other multilibs are.
2495 if test $cross_compiling = no && test $multilib = yes \
2496 && test "x${with_multisubdir}" != x ; then
2497 cross_compiling=maybe
2500 ac_config_commands="$ac_config_commands default-1"
2502 ac_aux_dir=
2503 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2504 if test -f "$ac_dir/install-sh"; then
2505 ac_aux_dir=$ac_dir
2506 ac_install_sh="$ac_aux_dir/install-sh -c"
2507 break
2508 elif test -f "$ac_dir/install.sh"; then
2509 ac_aux_dir=$ac_dir
2510 ac_install_sh="$ac_aux_dir/install.sh -c"
2511 break
2512 elif test -f "$ac_dir/shtool"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/shtool install -c"
2515 break
2517 done
2518 if test -z "$ac_aux_dir"; then
2519 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2522 # These three variables are undocumented and unsupported,
2523 # and are intended to be withdrawn in a future Autoconf release.
2524 # They can cause serious problems if a builder's source tree is in a directory
2525 # whose full name contains unusual characters.
2526 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2527 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2528 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2531 # Make sure we can run config.sub.
2532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2533 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2536 $as_echo_n "checking build system type... " >&6; }
2537 if ${ac_cv_build+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 ac_build_alias=$build_alias
2541 test "x$ac_build_alias" = x &&
2542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2543 test "x$ac_build_alias" = x &&
2544 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2545 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2550 $as_echo "$ac_cv_build" >&6; }
2551 case $ac_cv_build in
2552 *-*-*) ;;
2553 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2554 esac
2555 build=$ac_cv_build
2556 ac_save_IFS=$IFS; IFS='-'
2557 set x $ac_cv_build
2558 shift
2559 build_cpu=$1
2560 build_vendor=$2
2561 shift; shift
2562 # Remember, the first character of IFS is used to create $*,
2563 # except with old shells:
2564 build_os=$*
2565 IFS=$ac_save_IFS
2566 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2570 $as_echo_n "checking host system type... " >&6; }
2571 if ${ac_cv_host+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test "x$host_alias" = x; then
2575 ac_cv_host=$ac_cv_build
2576 else
2577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2583 $as_echo "$ac_cv_host" >&6; }
2584 case $ac_cv_host in
2585 *-*-*) ;;
2586 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2587 esac
2588 host=$ac_cv_host
2589 ac_save_IFS=$IFS; IFS='-'
2590 set x $ac_cv_host
2591 shift
2592 host_cpu=$1
2593 host_vendor=$2
2594 shift; shift
2595 # Remember, the first character of IFS is used to create $*,
2596 # except with old shells:
2597 host_os=$*
2598 IFS=$ac_save_IFS
2599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2603 $as_echo_n "checking target system type... " >&6; }
2604 if ${ac_cv_target+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test "x$target_alias" = x; then
2608 ac_cv_target=$ac_cv_host
2609 else
2610 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2616 $as_echo "$ac_cv_target" >&6; }
2617 case $ac_cv_target in
2618 *-*-*) ;;
2619 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2620 esac
2621 target=$ac_cv_target
2622 ac_save_IFS=$IFS; IFS='-'
2623 set x $ac_cv_target
2624 shift
2625 target_cpu=$1
2626 target_vendor=$2
2627 shift; shift
2628 # Remember, the first character of IFS is used to create $*,
2629 # except with old shells:
2630 target_os=$*
2631 IFS=$ac_save_IFS
2632 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2635 # The aliases save the names the user supplied, while $host etc.
2636 # will get canonicalized.
2637 test -n "$target_alias" &&
2638 test "$program_prefix$program_suffix$program_transform_name" = \
2639 NONENONEs,x,x, &&
2640 program_prefix=${target_alias}-
2642 # Expand $ac_aux_dir to an absolute path.
2643 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2674 IFS=$as_save_IFS
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2689 if test -z "$ac_cv_prog_CC"; then
2690 ac_ct_CC=$CC
2691 # Extract the first word of "gcc", so it can be a program name with args.
2692 set dummy gcc; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_ac_ct_CC="gcc"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719 if test -n "$ac_ct_CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2721 $as_echo "$ac_ct_CC" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2727 if test "x$ac_ct_CC" = x; then
2728 CC=""
2729 else
2730 case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736 CC=$ac_ct_CC
2738 else
2739 CC="$ac_cv_prog_CC"
2742 if test -z "$CC"; then
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}cc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="${ac_tool_prefix}cc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2765 done
2766 done
2767 IFS=$as_save_IFS
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2783 if test -z "$CC"; then
2784 # Extract the first word of "cc", so it can be a program name with args.
2785 set dummy cc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 ac_prog_rejected=no
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2803 ac_prog_rejected=yes
2804 continue
2806 ac_cv_prog_CC="cc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2810 done
2811 done
2812 IFS=$as_save_IFS
2814 if test $ac_prog_rejected = yes; then
2815 # We found a bogon in the path, so make sure we never use it.
2816 set dummy $ac_cv_prog_CC
2817 shift
2818 if test $# != 0; then
2819 # We chose a different compiler from the bogus one.
2820 # However, it has the same basename, so the bogon will be chosen
2821 # first if we set CC to just the basename; use the full file name.
2822 shift
2823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 for ac_prog in cl.exe
2843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2866 IFS=$as_save_IFS
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2880 test -n "$CC" && break
2881 done
2883 if test -z "$CC"; then
2884 ac_ct_CC=$CC
2885 for ac_prog in cl.exe
2887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2888 set dummy $ac_prog; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_CC="$ac_prog"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2910 IFS=$as_save_IFS
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917 $as_echo "$ac_ct_CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2924 test -n "$ac_ct_CC" && break
2925 done
2927 if test "x$ac_ct_CC" = x; then
2928 CC=""
2929 else
2930 case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936 CC=$ac_ct_CC
2943 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error $? "no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details" "$LINENO" 5; }
2948 # Provide some information about the compiler.
2949 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2950 set X $ac_compile
2951 ac_compiler=$2
2952 for ac_option in --version -v -V -qversion; do
2953 { { ac_try="$ac_compiler $ac_option >&5"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961 ac_status=$?
2962 if test -s conftest.err; then
2963 sed '10a\
2964 ... rest of stderr output deleted ...
2965 10q' conftest.err >conftest.er1
2966 cat conftest.er1 >&5
2968 rm -f conftest.er1 conftest.err
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971 done
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 ac_clean_files_save=$ac_clean_files
2985 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2988 # of exeext.
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2990 $as_echo_n "checking whether the C compiler works... " >&6; }
2991 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 # The possible output files:
2994 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2996 ac_rmfiles=
2997 for ac_file in $ac_files
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 esac
3003 done
3004 rm -f $ac_rmfiles
3006 if { { ac_try="$ac_link_default"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link_default") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3020 # so that the user can short-circuit this test for compilers unknown to
3021 # Autoconf.
3022 for ac_file in $ac_files ''
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3028 [ab].out )
3029 # We found the default executable, but exeext='' is most
3030 # certainly right.
3031 break;;
3032 *.* )
3033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034 then :; else
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3041 # actually working.
3042 break;;
3044 break;;
3045 esac
3046 done
3047 test "$ac_cv_exeext" = no && ac_cv_exeext=
3049 else
3050 ac_file=''
3052 if test -z "$ac_file"; then :
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 $as_echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error 77 "C compiler cannot create executables
3061 See \`config.log' for more details" "$LINENO" 5; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064 $as_echo "yes" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067 $as_echo_n "checking for C compiler default output file name... " >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069 $as_echo "$ac_file" >&6; }
3070 ac_exeext=$ac_cv_exeext
3072 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073 ac_clean_files=$ac_clean_files_save
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3075 $as_echo_n "checking for suffix of executables... " >&6; }
3076 if { { ac_try="$ac_link"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3089 # work properly (i.e., refer to `conftest.exe'), while it won't with
3090 # `rm'.
3091 for ac_file in conftest.exe conftest conftest.*; do
3092 test -f "$ac_file" || continue
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 break;;
3097 * ) break;;
3098 esac
3099 done
3100 else
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3104 See \`config.log' for more details" "$LINENO" 5; }
3106 rm -f conftest conftest$ac_cv_exeext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3108 $as_echo "$ac_cv_exeext" >&6; }
3110 rm -f conftest.$ac_ext
3111 EXEEXT=$ac_cv_exeext
3112 ac_exeext=$EXEEXT
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3115 #include <stdio.h>
3117 main ()
3119 FILE *f = fopen ("conftest.out", "w");
3120 return ferror (f) || fclose (f) != 0;
3123 return 0;
3125 _ACEOF
3126 ac_clean_files="$ac_clean_files conftest.out"
3127 # Check that the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3130 $as_echo_n "checking whether we are cross compiling... " >&6; }
3131 if test "$cross_compiling" != yes; then
3132 { { ac_try="$ac_link"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }
3143 if { ac_try='./conftest$ac_cv_exeext'
3144 { { case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; }; then
3154 cross_compiling=no
3155 else
3156 if test "$cross_compiling" = maybe; then
3157 cross_compiling=yes
3158 else
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot run C compiled programs.
3162 If you meant to cross compile, use \`--host'.
3163 See \`config.log' for more details" "$LINENO" 5; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3168 $as_echo "$cross_compiling" >&6; }
3170 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3171 ac_clean_files=$ac_clean_files_save
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173 $as_echo_n "checking for suffix of object files... " >&6; }
3174 if ${ac_cv_objext+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 rm -f conftest.o conftest.obj
3189 if { { ac_try="$ac_compile"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compile") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 for ac_file in conftest.o conftest.obj conftest.*; do
3201 test -f "$ac_file" || continue;
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 break;;
3206 esac
3207 done
3208 else
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "cannot compute suffix of object files: cannot compile
3215 See \`config.log' for more details" "$LINENO" 5; }
3217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220 $as_echo "$ac_cv_objext" >&6; }
3221 OBJEXT=$ac_cv_objext
3222 ac_objext=$OBJEXT
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3224 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3225 if ${ac_cv_c_compiler_gnu+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 main ()
3234 #ifndef __GNUC__
3235 choke me
3236 #endif
3239 return 0;
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_compiler_gnu=yes
3244 else
3245 ac_compiler_gnu=no
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3252 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3253 if test $ac_compiler_gnu = yes; then
3254 GCC=yes
3255 else
3256 GCC=
3258 ac_test_CFLAGS=${CFLAGS+set}
3259 ac_save_CFLAGS=$CFLAGS
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3261 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3262 if ${ac_cv_prog_cc_g+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 ac_save_c_werror_flag=$ac_c_werror_flag
3266 ac_c_werror_flag=yes
3267 ac_cv_prog_cc_g=no
3268 CFLAGS="-g"
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 if ac_fn_c_try_compile "$LINENO"; then :
3281 ac_cv_prog_cc_g=yes
3282 else
3283 CFLAGS=""
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 if ac_fn_c_try_compile "$LINENO"; then :
3297 else
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_g=yes
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3322 $as_echo "$ac_cv_prog_cc_g" >&6; }
3323 if test "$ac_test_CFLAGS" = set; then
3324 CFLAGS=$ac_save_CFLAGS
3325 elif test $ac_cv_prog_cc_g = yes; then
3326 if test "$GCC" = yes; then
3327 CFLAGS="-g -O2"
3328 else
3329 CFLAGS="-g"
3331 else
3332 if test "$GCC" = yes; then
3333 CFLAGS="-O2"
3334 else
3335 CFLAGS=
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3339 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3340 if ${ac_cv_prog_cc_c89+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 ac_cv_prog_cc_c89=no
3344 ac_save_CC=$CC
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdarg.h>
3348 #include <stdio.h>
3349 struct stat;
3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3351 struct buf { int x; };
3352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353 static char *e (p, i)
3354 char **p;
3355 int i;
3357 return p[i];
3359 static char *f (char * (*g) (char **, int), char **p, ...)
3361 char *s;
3362 va_list v;
3363 va_start (v,p);
3364 s = g (p, va_arg (v,int));
3365 va_end (v);
3366 return s;
3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3370 function prototypes and stuff, but not '\xHH' hex character constants.
3371 These don't provoke an error unfortunately, instead are silently treated
3372 as 'x'. The following induces an error, until -std is added to get
3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3374 array size at least. It's necessary to write '\x00'==0 to get something
3375 that's true only with -std. */
3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379 inside strings and character constants. */
3380 #define FOO(x) 'x'
3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3383 int test (int i, double x);
3384 struct s1 {int (*f) (int a);};
3385 struct s2 {int (*f) (double a);};
3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387 int argc;
3388 char **argv;
3390 main ()
3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3394 return 0;
3396 _ACEOF
3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3400 CC="$ac_save_CC $ac_arg"
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_cv_prog_cc_c89=$ac_arg
3404 rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406 done
3407 rm -f conftest.$ac_ext
3408 CC=$ac_save_CC
3411 # AC_CACHE_VAL
3412 case "x$ac_cv_prog_cc_c89" in
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3415 $as_echo "none needed" >&6; } ;;
3416 xno)
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3418 $as_echo "unsupported" >&6; } ;;
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3422 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3423 esac
3424 if test "x$ac_cv_prog_cc_c89" != xno; then :
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3440 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3441 if ${am_cv_prog_cc_c_o+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 main ()
3452 return 0;
3454 _ACEOF
3455 # Make sure it works both with $CC and with simple cc.
3456 # Following AC_PROG_CC_C_O, we do the test twice because some
3457 # compilers refuse to overwrite an existing .o file with -o,
3458 # though they will create one.
3459 am_cv_prog_cc_c_o=yes
3460 for am_i in 1 2; do
3461 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3462 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } \
3466 && test -f conftest2.$ac_objext; then
3467 : OK
3468 else
3469 am_cv_prog_cc_c_o=no
3470 break
3472 done
3473 rm -f core conftest*
3474 unset am_i
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3477 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3478 if test "$am_cv_prog_cc_c_o" != yes; then
3479 # Losing compiler, so override with the script.
3480 # FIXME: It is wrong to rewrite CC.
3481 # But if we don't then we get into trouble of one sort or another.
3482 # A longer-term fix would be to have automake use am__CC in this case,
3483 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3484 CC="$am_aux_dir/compile $CC"
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 ac_ext=c
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3500 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3501 # On Suns, sometimes $CPP names a directory.
3502 if test -n "$CPP" && test -d "$CPP"; then
3503 CPP=
3505 if test -z "$CPP"; then
3506 if ${ac_cv_prog_CPP+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 # Double quotes because CPP needs to be expanded
3510 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3512 ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523 #ifdef __STDC__
3524 # include <limits.h>
3525 #else
3526 # include <assert.h>
3527 #endif
3528 Syntax error
3529 _ACEOF
3530 if ac_fn_c_try_cpp "$LINENO"; then :
3532 else
3533 # Broken: fails on valid input.
3534 continue
3536 rm -f conftest.err conftest.i conftest.$ac_ext
3538 # OK, works on sane cases. Now check whether nonexistent headers
3539 # can be detected and how.
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 #include <ac_nonexistent.h>
3543 _ACEOF
3544 if ac_fn_c_try_cpp "$LINENO"; then :
3545 # Broken: success on invalid input.
3546 continue
3547 else
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3552 rm -f conftest.err conftest.i conftest.$ac_ext
3554 done
3555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556 rm -f conftest.i conftest.err conftest.$ac_ext
3557 if $ac_preproc_ok; then :
3558 break
3561 done
3562 ac_cv_prog_CPP=$CPP
3565 CPP=$ac_cv_prog_CPP
3566 else
3567 ac_cv_prog_CPP=$CPP
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3570 $as_echo "$CPP" >&6; }
3571 ac_preproc_ok=false
3572 for ac_c_preproc_warn_flag in '' yes
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #ifdef __STDC__
3583 # include <limits.h>
3584 #else
3585 # include <assert.h>
3586 #endif
3587 Syntax error
3588 _ACEOF
3589 if ac_fn_c_try_cpp "$LINENO"; then :
3591 else
3592 # Broken: fails on valid input.
3593 continue
3595 rm -f conftest.err conftest.i conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3602 _ACEOF
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604 # Broken: success on invalid input.
3605 continue
3606 else
3607 # Passes both tests.
3608 ac_preproc_ok=:
3609 break
3611 rm -f conftest.err conftest.i conftest.$ac_ext
3613 done
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.i conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then :
3618 else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3622 See \`config.log' for more details" "$LINENO" 5; }
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3633 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3634 if ${ac_cv_path_GREP+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -z "$GREP"; then
3638 ac_path_GREP_found=false
3639 # Loop through the user's path and test for each of PROGNAME-LIST
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_prog in grep ggrep; do
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3648 as_fn_executable_p "$ac_path_GREP" || continue
3649 # Check for GNU ac_path_GREP and select it if it is found.
3650 # Check for GNU $ac_path_GREP
3651 case `"$ac_path_GREP" --version 2>&1` in
3652 *GNU*)
3653 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3655 ac_count=0
3656 $as_echo_n 0123456789 >"conftest.in"
3657 while :
3659 cat "conftest.in" "conftest.in" >"conftest.tmp"
3660 mv "conftest.tmp" "conftest.in"
3661 cp "conftest.in" "conftest.nl"
3662 $as_echo 'GREP' >> "conftest.nl"
3663 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3665 as_fn_arith $ac_count + 1 && ac_count=$as_val
3666 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3667 # Best one so far, save it but keep looking for a better one
3668 ac_cv_path_GREP="$ac_path_GREP"
3669 ac_path_GREP_max=$ac_count
3671 # 10*(2^10) chars as input seems more than enough
3672 test $ac_count -gt 10 && break
3673 done
3674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3675 esac
3677 $ac_path_GREP_found && break 3
3678 done
3679 done
3680 done
3681 IFS=$as_save_IFS
3682 if test -z "$ac_cv_path_GREP"; then
3683 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3685 else
3686 ac_cv_path_GREP=$GREP
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3691 $as_echo "$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3696 $as_echo_n "checking for egrep... " >&6; }
3697 if ${ac_cv_path_EGREP+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3702 else
3703 if test -z "$EGREP"; then
3704 ac_path_EGREP_found=false
3705 # Loop through the user's path and test for each of PROGNAME-LIST
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_prog in egrep; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714 as_fn_executable_p "$ac_path_EGREP" || continue
3715 # Check for GNU ac_path_EGREP and select it if it is found.
3716 # Check for GNU $ac_path_EGREP
3717 case `"$ac_path_EGREP" --version 2>&1` in
3718 *GNU*)
3719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3721 ac_count=0
3722 $as_echo_n 0123456789 >"conftest.in"
3723 while :
3725 cat "conftest.in" "conftest.in" >"conftest.tmp"
3726 mv "conftest.tmp" "conftest.in"
3727 cp "conftest.in" "conftest.nl"
3728 $as_echo 'EGREP' >> "conftest.nl"
3729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3731 as_fn_arith $ac_count + 1 && ac_count=$as_val
3732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733 # Best one so far, save it but keep looking for a better one
3734 ac_cv_path_EGREP="$ac_path_EGREP"
3735 ac_path_EGREP_max=$ac_count
3737 # 10*(2^10) chars as input seems more than enough
3738 test $ac_count -gt 10 && break
3739 done
3740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741 esac
3743 $ac_path_EGREP_found && break 3
3744 done
3745 done
3746 done
3747 IFS=$as_save_IFS
3748 if test -z "$ac_cv_path_EGREP"; then
3749 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3751 else
3752 ac_cv_path_EGREP=$EGREP
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3758 $as_echo "$ac_cv_path_EGREP" >&6; }
3759 EGREP="$ac_cv_path_EGREP"
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3763 $as_echo_n "checking for ANSI C header files... " >&6; }
3764 if ${ac_cv_header_stdc+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #include <stdlib.h>
3770 #include <stdarg.h>
3771 #include <string.h>
3772 #include <float.h>
3775 main ()
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_header_stdc=yes
3784 else
3785 ac_cv_header_stdc=no
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 if test $ac_cv_header_stdc = yes; then
3790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793 #include <string.h>
3795 _ACEOF
3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 $EGREP "memchr" >/dev/null 2>&1; then :
3799 else
3800 ac_cv_header_stdc=no
3802 rm -f conftest*
3806 if test $ac_cv_header_stdc = yes; then
3807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 #include <stdlib.h>
3812 _ACEOF
3813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 $EGREP "free" >/dev/null 2>&1; then :
3816 else
3817 ac_cv_header_stdc=no
3819 rm -f conftest*
3823 if test $ac_cv_header_stdc = yes; then
3824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3825 if test "$cross_compiling" = yes; then :
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830 #include <ctype.h>
3831 #include <stdlib.h>
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835 #else
3836 # define ISLOWER(c) \
3837 (('a' <= (c) && (c) <= 'i') \
3838 || ('j' <= (c) && (c) <= 'r') \
3839 || ('s' <= (c) && (c) <= 'z'))
3840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3841 #endif
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3845 main ()
3847 int i;
3848 for (i = 0; i < 256; i++)
3849 if (XOR (islower (i), ISLOWER (i))
3850 || toupper (i) != TOUPPER (i))
3851 return 2;
3852 return 0;
3854 _ACEOF
3855 if ac_fn_c_try_run "$LINENO"; then :
3857 else
3858 ac_cv_header_stdc=no
3860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3861 conftest.$ac_objext conftest.beam conftest.$ac_ext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3867 $as_echo "$ac_cv_header_stdc" >&6; }
3868 if test $ac_cv_header_stdc = yes; then
3870 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3875 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3876 inttypes.h stdint.h unistd.h
3877 do :
3878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3882 cat >>confdefs.h <<_ACEOF
3883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884 _ACEOF
3888 done
3892 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3893 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3894 MINIX=yes
3895 else
3896 MINIX=
3900 if test "$MINIX" = yes; then
3902 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3905 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3908 $as_echo "#define _MINIX 1" >>confdefs.h
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3914 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3915 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3921 # define __EXTENSIONS__ 1
3922 $ac_includes_default
3924 main ()
3928 return 0;
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_safe_to_define___extensions__=yes
3933 else
3934 ac_cv_safe_to_define___extensions__=no
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3939 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3940 test $ac_cv_safe_to_define___extensions__ = yes &&
3941 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3943 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3945 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3947 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3949 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3953 target_alias=${target_alias-$target}
3956 # 1.11.1: Require that version of automake.
3957 # foreign: Don't require README, INSTALL, NEWS, etc.
3958 # no-define: Don't define PACKAGE and VERSION.
3959 # no-dependencies: Don't generate automatic dependencies.
3960 # (because it breaks when using bootstrap-lean, since some of the
3961 # headers are gone at "make install" time).
3962 # subdir-objects: Build objects in sub-directories.
3963 # -Wall: Issue all automake warnings.
3964 # -Wno-portability: Don't warn about constructs supported by GNU make.
3965 # (because GCC requires GNU make anyhow).
3966 # -Wno-override: Overrides used in testsuite.
3967 am__api_version='1.15'
3969 # Find a good install program. We prefer a C program (faster),
3970 # so one script is as good as another. But avoid the broken or
3971 # incompatible versions:
3972 # SysV /etc/install, /usr/sbin/install
3973 # SunOS /usr/etc/install
3974 # IRIX /sbin/install
3975 # AIX /bin/install
3976 # AmigaOS /C/install, which installs bootblocks on floppy discs
3977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3980 # OS/2's system install, which has a completely different semantic
3981 # ./install, which can be erroneously created by make from ./install.sh.
3982 # Reject install programs that cannot install multiple files.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3984 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3985 if test -z "$INSTALL"; then
3986 if ${ac_cv_path_install+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 # Account for people who put trailing slashes in PATH elements.
3995 case $as_dir/ in #((
3996 ./ | .// | /[cC]/* | \
3997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3998 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3999 /usr/ucb/* ) ;;
4001 # OSF1 and SCO ODT 3.0 have their own names for install.
4002 # Don't use installbsd from OSF since it installs stuff as root
4003 # by default.
4004 for ac_prog in ginstall scoinst install; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4007 if test $ac_prog = install &&
4008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009 # AIX install. It has an incompatible calling convention.
4011 elif test $ac_prog = install &&
4012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4013 # program-specific install script used by HP pwplus--don't use.
4015 else
4016 rm -rf conftest.one conftest.two conftest.dir
4017 echo one > conftest.one
4018 echo two > conftest.two
4019 mkdir conftest.dir
4020 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4021 test -s conftest.one && test -s conftest.two &&
4022 test -s conftest.dir/conftest.one &&
4023 test -s conftest.dir/conftest.two
4024 then
4025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4026 break 3
4030 done
4031 done
4033 esac
4035 done
4036 IFS=$as_save_IFS
4038 rm -rf conftest.one conftest.two conftest.dir
4041 if test "${ac_cv_path_install+set}" = set; then
4042 INSTALL=$ac_cv_path_install
4043 else
4044 # As a last resort, use the slow shell script. Don't cache a
4045 # value for INSTALL within a source directory, because that will
4046 # break other packages using the cache if that directory is
4047 # removed, or if the value is a relative name.
4048 INSTALL=$ac_install_sh
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4052 $as_echo "$INSTALL" >&6; }
4054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4055 # It thinks the first close brace ends the variable substitution.
4056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4063 $as_echo_n "checking whether build environment is sane... " >&6; }
4064 # Reject unsafe characters in $srcdir or the absolute working directory
4065 # name. Accept space and tab only in the latter.
4066 am_lf='
4068 case `pwd` in
4069 *[\\\"\#\$\&\'\`$am_lf]*)
4070 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4071 esac
4072 case $srcdir in
4073 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4074 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4075 esac
4077 # Do 'set' in a subshell so we don't clobber the current shell's
4078 # arguments. Must try -L first in case configure is actually a
4079 # symlink; some systems play weird games with the mod time of symlinks
4080 # (eg FreeBSD returns the mod time of the symlink's containing
4081 # directory).
4082 if (
4083 am_has_slept=no
4084 for am_try in 1 2; do
4085 echo "timestamp, slept: $am_has_slept" > conftest.file
4086 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4087 if test "$*" = "X"; then
4088 # -L didn't work.
4089 set X `ls -t "$srcdir/configure" conftest.file`
4091 if test "$*" != "X $srcdir/configure conftest.file" \
4092 && test "$*" != "X conftest.file $srcdir/configure"; then
4094 # If neither matched, then we have a broken ls. This can happen
4095 # if, for instance, CONFIG_SHELL is bash and it inherits a
4096 # broken ls alias from the environment. This has actually
4097 # happened. Such a system could not be considered "sane".
4098 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4099 alias in your environment" "$LINENO" 5
4101 if test "$2" = conftest.file || test $am_try -eq 2; then
4102 break
4104 # Just in case.
4105 sleep 1
4106 am_has_slept=yes
4107 done
4108 test "$2" = conftest.file
4110 then
4111 # Ok.
4113 else
4114 as_fn_error $? "newly created file is older than distributed files!
4115 Check your system clock" "$LINENO" 5
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4118 $as_echo "yes" >&6; }
4119 # If we didn't sleep, we still need to ensure time stamps of config.status and
4120 # generated files are strictly newer.
4121 am_sleep_pid=
4122 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4123 ( sleep 1 ) &
4124 am_sleep_pid=$!
4127 rm -f conftest.file
4129 test "$program_prefix" != NONE &&
4130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4131 # Use a double $ so make ignores it.
4132 test "$program_suffix" != NONE &&
4133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4134 # Double any \ or $.
4135 # By default was `s,x,x', remove it if useless.
4136 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4137 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4139 if test x"${MISSING+set}" != xset; then
4140 case $am_aux_dir in
4141 *\ * | *\ *)
4142 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4144 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4145 esac
4147 # Use eval to expand $SHELL
4148 if eval "$MISSING --is-lightweight"; then
4149 am_missing_run="$MISSING "
4150 else
4151 am_missing_run=
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4153 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4156 if test x"${install_sh+set}" != xset; then
4157 case $am_aux_dir in
4158 *\ * | *\ *)
4159 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4161 install_sh="\${SHELL} $am_aux_dir/install-sh"
4162 esac
4165 # Installed binaries are usually stripped using 'strip' when the user
4166 # run "make install-strip". However 'strip' might not be the right
4167 # tool to use in cross-compilation environments, therefore Automake
4168 # will honor the 'STRIP' environment variable to overrule this program.
4169 if test "$cross_compiling" != no; then
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}strip; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_STRIP+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$STRIP"; then
4179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4198 STRIP=$ac_cv_prog_STRIP
4199 if test -n "$STRIP"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4201 $as_echo "$STRIP" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4209 if test -z "$ac_cv_prog_STRIP"; then
4210 ac_ct_STRIP=$STRIP
4211 # Extract the first word of "strip", so it can be a program name with args.
4212 set dummy strip; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$ac_ct_STRIP"; then
4219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_ac_ct_STRIP="strip"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4239 if test -n "$ac_ct_STRIP"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4241 $as_echo "$ac_ct_STRIP" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4247 if test "x$ac_ct_STRIP" = x; then
4248 STRIP=":"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 STRIP=$ac_ct_STRIP
4258 else
4259 STRIP="$ac_cv_prog_STRIP"
4263 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4266 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4267 if test -z "$MKDIR_P"; then
4268 if ${ac_cv_path_mkdir+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_prog in mkdir gmkdir; do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4279 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4280 'mkdir (GNU coreutils) '* | \
4281 'mkdir (coreutils) '* | \
4282 'mkdir (fileutils) '4.1*)
4283 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4284 break 3;;
4285 esac
4286 done
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 test -d ./--version && rmdir ./--version
4294 if test "${ac_cv_path_mkdir+set}" = set; then
4295 MKDIR_P="$ac_cv_path_mkdir -p"
4296 else
4297 # As a last resort, use the slow shell script. Don't cache a
4298 # value for MKDIR_P within a source directory, because that will
4299 # break other packages using the cache if that directory is
4300 # removed, or if the value is a relative name.
4301 MKDIR_P="$ac_install_sh -d"
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4305 $as_echo "$MKDIR_P" >&6; }
4307 for ac_prog in gawk mawk nawk awk
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_AWK+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$AWK"; then
4317 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_AWK="$ac_prog"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4332 IFS=$as_save_IFS
4336 AWK=$ac_cv_prog_AWK
4337 if test -n "$AWK"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4339 $as_echo "$AWK" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4346 test -n "$AWK" && break
4347 done
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4350 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4351 set x ${MAKE-make}
4352 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4353 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 cat >conftest.make <<\_ACEOF
4357 SHELL = /bin/sh
4358 all:
4359 @echo '@@@%%%=$(MAKE)=@@@%%%'
4360 _ACEOF
4361 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4363 *@@@%%%=?*=@@@%%%*)
4364 eval ac_cv_prog_make_${ac_make}_set=yes;;
4366 eval ac_cv_prog_make_${ac_make}_set=no;;
4367 esac
4368 rm -f conftest.make
4370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373 SET_MAKE=
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 SET_MAKE="MAKE=${MAKE-make}"
4380 rm -rf .tst 2>/dev/null
4381 mkdir .tst 2>/dev/null
4382 if test -d .tst; then
4383 am__leading_dot=.
4384 else
4385 am__leading_dot=_
4387 rmdir .tst 2>/dev/null
4389 # Check whether --enable-silent-rules was given.
4390 if test "${enable_silent_rules+set}" = set; then :
4391 enableval=$enable_silent_rules;
4394 case $enable_silent_rules in # (((
4395 yes) AM_DEFAULT_VERBOSITY=0;;
4396 no) AM_DEFAULT_VERBOSITY=1;;
4397 *) AM_DEFAULT_VERBOSITY=1;;
4398 esac
4399 am_make=${MAKE-make}
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4401 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4402 if ${am_cv_make_support_nested_variables+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if $as_echo 'TRUE=$(BAR$(V))
4406 BAR0=false
4407 BAR1=true
4409 am__doit:
4410 @$(TRUE)
4411 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4412 am_cv_make_support_nested_variables=yes
4413 else
4414 am_cv_make_support_nested_variables=no
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4418 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4419 if test $am_cv_make_support_nested_variables = yes; then
4420 AM_V='$(V)'
4421 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4422 else
4423 AM_V=$AM_DEFAULT_VERBOSITY
4424 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4426 AM_BACKSLASH='\'
4428 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4429 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4430 # is not polluted with repeated "-I."
4431 am__isrc=' -I$(srcdir)'
4432 # test to see if srcdir already configured
4433 if test -f $srcdir/config.status; then
4434 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4438 # test whether we have cygpath
4439 if test -z "$CYGPATH_W"; then
4440 if (cygpath --version) >/dev/null 2>/dev/null; then
4441 CYGPATH_W='cygpath -w'
4442 else
4443 CYGPATH_W=echo
4448 # Define the identity of the package.
4449 PACKAGE='libphobos'
4450 VERSION='version-unused'
4453 # Some tools Automake needs.
4455 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4458 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4461 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4464 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4467 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4469 # For better backward compatibility. To be removed once Automake 1.9.x
4470 # dies out for good. For more background, see:
4471 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4472 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4473 mkdir_p='$(MKDIR_P)'
4475 # We need awk for the "check" target (and possibly the TAP driver). The
4476 # system "awk" is bad on some platforms.
4477 # Always define AMTAR for backward compatibility. Yes, it's still used
4478 # in the wild :-( We should find a proper way to deprecate it ...
4479 AMTAR='$${TAR-tar}'
4482 # We'll loop over all known methods to create a tar archive until one works.
4483 _am_tools='gnutar pax cpio none'
4485 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4492 # POSIX will say in a future version that running "rm -f" with no argument
4493 # is OK; and we want to be able to make that assumption in our Makefile
4494 # recipes. So use an aggressive probe to check that the usage we want is
4495 # actually supported "in the wild" to an acceptable degree.
4496 # See automake bug#10828.
4497 # To make any issue more visible, cause the running configure to be aborted
4498 # by default if the 'rm' program in use doesn't match our expectations; the
4499 # user can still override this though.
4500 if rm -f && rm -fr && rm -rf; then : OK; else
4501 cat >&2 <<'END'
4502 Oops!
4504 Your 'rm' program seems unable to run without file operands specified
4505 on the command line, even when the '-f' option is present. This is contrary
4506 to the behaviour of most rm programs out there, and not conforming with
4507 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4509 Please tell bug-automake@gnu.org about your system, including the value
4510 of your $PATH and any error possibly output before this message. This
4511 can help us improve future automake versions.
4514 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4515 echo 'Configuration will proceed anyway, since you have set the' >&2
4516 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4517 echo >&2
4518 else
4519 cat >&2 <<'END'
4520 Aborting the configuration process, to ensure you take notice of the issue.
4522 You can download and install GNU coreutils to get an 'rm' implementation
4523 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4525 If you want to complete the configuration process using your problematic
4526 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4527 to "yes", and re-run configure.
4530 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4537 # By default we simply use the C compiler to build assembly code.
4539 test "${CCAS+set}" = set || CCAS=$CC
4540 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 if test -n "$ac_tool_prefix"; then
4550 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4551 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_prog_CC+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$CC"; then
4558 ac_cv_prog_CC="$CC" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4573 IFS=$as_save_IFS
4577 CC=$ac_cv_prog_CC
4578 if test -n "$CC"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4580 $as_echo "$CC" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4588 if test -z "$ac_cv_prog_CC"; then
4589 ac_ct_CC=$CC
4590 # Extract the first word of "gcc", so it can be a program name with args.
4591 set dummy gcc; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -n "$ac_ct_CC"; then
4598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_CC="gcc"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4618 if test -n "$ac_ct_CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4620 $as_echo "$ac_ct_CC" >&6; }
4621 else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4626 if test "x$ac_ct_CC" = x; then
4627 CC=""
4628 else
4629 case $cross_compiling:$ac_tool_warned in
4630 yes:)
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4633 ac_tool_warned=yes ;;
4634 esac
4635 CC=$ac_ct_CC
4637 else
4638 CC="$ac_cv_prog_CC"
4641 if test -z "$CC"; then
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}cc; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_CC+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_CC="${ac_tool_prefix}cc"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 CC=$ac_cv_prog_CC
4671 if test -n "$CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673 $as_echo "$CC" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4682 if test -z "$CC"; then
4683 # Extract the first word of "cc", so it can be a program name with args.
4684 set dummy cc; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_CC+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC="$CC" # Let the user override the test.
4692 else
4693 ac_prog_rejected=no
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4702 ac_prog_rejected=yes
4703 continue
4705 ac_cv_prog_CC="cc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4713 if test $ac_prog_rejected = yes; then
4714 # We found a bogon in the path, so make sure we never use it.
4715 set dummy $ac_cv_prog_CC
4716 shift
4717 if test $# != 0; then
4718 # We chose a different compiler from the bogus one.
4719 # However, it has the same basename, so the bogon will be chosen
4720 # first if we set CC to just the basename; use the full file name.
4721 shift
4722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4727 CC=$ac_cv_prog_CC
4728 if test -n "$CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4730 $as_echo "$CC" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 for ac_prog in cl.exe
4742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_prog_CC+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 if test -n "$CC"; then
4750 ac_cv_prog_CC="$CC" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4763 done
4764 done
4765 IFS=$as_save_IFS
4769 CC=$ac_cv_prog_CC
4770 if test -n "$CC"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4772 $as_echo "$CC" >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4779 test -n "$CC" && break
4780 done
4782 if test -z "$CC"; then
4783 ac_ct_CC=$CC
4784 for ac_prog in cl.exe
4786 # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$ac_ct_CC"; then
4794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_ac_ct_CC="$ac_prog"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4814 if test -n "$ac_ct_CC"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4816 $as_echo "$ac_ct_CC" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4823 test -n "$ac_ct_CC" && break
4824 done
4826 if test "x$ac_ct_CC" = x; then
4827 CC=""
4828 else
4829 case $cross_compiling:$ac_tool_warned in
4830 yes:)
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4834 esac
4835 CC=$ac_ct_CC
4842 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4844 as_fn_error $? "no acceptable C compiler found in \$PATH
4845 See \`config.log' for more details" "$LINENO" 5; }
4847 # Provide some information about the compiler.
4848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4849 set X $ac_compile
4850 ac_compiler=$2
4851 for ac_option in --version -v -V -qversion; do
4852 { { ac_try="$ac_compiler $ac_option >&5"
4853 case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4858 $as_echo "$ac_try_echo"; } >&5
4859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4860 ac_status=$?
4861 if test -s conftest.err; then
4862 sed '10a\
4863 ... rest of stderr output deleted ...
4864 10q' conftest.err >conftest.er1
4865 cat conftest.er1 >&5
4867 rm -f conftest.er1 conftest.err
4868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4869 test $ac_status = 0; }
4870 done
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4873 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4874 if ${ac_cv_c_compiler_gnu+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4881 main ()
4883 #ifndef __GNUC__
4884 choke me
4885 #endif
4888 return 0;
4890 _ACEOF
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_compiler_gnu=yes
4893 else
4894 ac_compiler_gnu=no
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4901 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4902 if test $ac_compiler_gnu = yes; then
4903 GCC=yes
4904 else
4905 GCC=
4907 ac_test_CFLAGS=${CFLAGS+set}
4908 ac_save_CFLAGS=$CFLAGS
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4910 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4911 if ${ac_cv_prog_cc_g+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 ac_save_c_werror_flag=$ac_c_werror_flag
4915 ac_c_werror_flag=yes
4916 ac_cv_prog_cc_g=no
4917 CFLAGS="-g"
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4922 main ()
4926 return 0;
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_prog_cc_g=yes
4931 else
4932 CFLAGS=""
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4937 main ()
4941 return 0;
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4946 else
4947 ac_c_werror_flag=$ac_save_c_werror_flag
4948 CFLAGS="-g"
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4953 main ()
4957 return 0;
4959 _ACEOF
4960 if ac_fn_c_try_compile "$LINENO"; then :
4961 ac_cv_prog_cc_g=yes
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 ac_c_werror_flag=$ac_save_c_werror_flag
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4971 $as_echo "$ac_cv_prog_cc_g" >&6; }
4972 if test "$ac_test_CFLAGS" = set; then
4973 CFLAGS=$ac_save_CFLAGS
4974 elif test $ac_cv_prog_cc_g = yes; then
4975 if test "$GCC" = yes; then
4976 CFLAGS="-g -O2"
4977 else
4978 CFLAGS="-g"
4980 else
4981 if test "$GCC" = yes; then
4982 CFLAGS="-O2"
4983 else
4984 CFLAGS=
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4989 if ${ac_cv_prog_cc_c89+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 ac_cv_prog_cc_c89=no
4993 ac_save_CC=$CC
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <stdarg.h>
4997 #include <stdio.h>
4998 struct stat;
4999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5000 struct buf { int x; };
5001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5002 static char *e (p, i)
5003 char **p;
5004 int i;
5006 return p[i];
5008 static char *f (char * (*g) (char **, int), char **p, ...)
5010 char *s;
5011 va_list v;
5012 va_start (v,p);
5013 s = g (p, va_arg (v,int));
5014 va_end (v);
5015 return s;
5018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5019 function prototypes and stuff, but not '\xHH' hex character constants.
5020 These don't provoke an error unfortunately, instead are silently treated
5021 as 'x'. The following induces an error, until -std is added to get
5022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5023 array size at least. It's necessary to write '\x00'==0 to get something
5024 that's true only with -std. */
5025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5028 inside strings and character constants. */
5029 #define FOO(x) 'x'
5030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5032 int test (int i, double x);
5033 struct s1 {int (*f) (int a);};
5034 struct s2 {int (*f) (double a);};
5035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5036 int argc;
5037 char **argv;
5039 main ()
5041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5043 return 0;
5045 _ACEOF
5046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5049 CC="$ac_save_CC $ac_arg"
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_prog_cc_c89=$ac_arg
5053 rm -f core conftest.err conftest.$ac_objext
5054 test "x$ac_cv_prog_cc_c89" != "xno" && break
5055 done
5056 rm -f conftest.$ac_ext
5057 CC=$ac_save_CC
5060 # AC_CACHE_VAL
5061 case "x$ac_cv_prog_cc_c89" in
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5064 $as_echo "none needed" >&6; } ;;
5065 xno)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5067 $as_echo "unsupported" >&6; } ;;
5069 CC="$CC $ac_cv_prog_cc_c89"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5072 esac
5073 if test "x$ac_cv_prog_cc_c89" != xno; then :
5077 ac_ext=c
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5089 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5090 if ${am_cv_prog_cc_c_o+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5097 main ()
5101 return 0;
5103 _ACEOF
5104 # Make sure it works both with $CC and with simple cc.
5105 # Following AC_PROG_CC_C_O, we do the test twice because some
5106 # compilers refuse to overwrite an existing .o file with -o,
5107 # though they will create one.
5108 am_cv_prog_cc_c_o=yes
5109 for am_i in 1 2; do
5110 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5111 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } \
5115 && test -f conftest2.$ac_objext; then
5116 : OK
5117 else
5118 am_cv_prog_cc_c_o=no
5119 break
5121 done
5122 rm -f core conftest*
5123 unset am_i
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5126 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5127 if test "$am_cv_prog_cc_c_o" != yes; then
5128 # Losing compiler, so override with the script.
5129 # FIXME: It is wrong to rewrite CC.
5130 # But if we don't then we get into trouble of one sort or another.
5131 # A longer-term fix would be to have automake use am__CC in this case,
5132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5133 CC="$am_aux_dir/compile $CC"
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 ac_ext=d
5143 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5144 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=yes
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_GDC+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$GDC"; then
5155 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5174 GDC=$ac_cv_prog_GDC
5175 if test -n "$GDC"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5177 $as_echo "$GDC" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5185 if test -z "$ac_cv_prog_GDC"; then
5186 ac_ct_GDC=$GDC
5187 # Extract the first word of "gdc", so it can be a program name with args.
5188 set dummy gdc; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_GDC"; then
5195 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_GDC="gdc"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5208 done
5209 done
5210 IFS=$as_save_IFS
5214 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5215 if test -n "$ac_ct_GDC"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5217 $as_echo "$ac_ct_GDC" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5223 if test "x$ac_ct_GDC" = x; then
5224 GDC=""
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 GDC=$ac_ct_GDC
5234 else
5235 GDC="$ac_cv_prog_GDC"
5238 if test -z "$GDC"; then
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_GDC+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$GDC"; then
5248 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 GDC=$ac_cv_prog_GDC
5268 if test -n "$GDC"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5270 $as_echo "$GDC" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5279 if test -z "$GDC"; then
5280 # Extract the first word of "gdc", so it can be a program name with args.
5281 set dummy gdc; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if ${ac_cv_prog_GDC+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$GDC"; then
5288 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5289 else
5290 ac_prog_rejected=no
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5299 ac_prog_rejected=yes
5300 continue
5302 ac_cv_prog_GDC="gdc"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5310 if test $ac_prog_rejected = yes; then
5311 # We found a bogon in the path, so make sure we never use it.
5312 set dummy $ac_cv_prog_GDC
5313 shift
5314 if test $# != 0; then
5315 # We chose a different compiler from the bogus one.
5316 # However, it has the same basename, so the bogon will be chosen
5317 # first if we set GDC to just the basename; use the full file name.
5318 shift
5319 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5324 GDC=$ac_cv_prog_GDC
5325 if test -n "$GDC"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5327 $as_echo "$GDC" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5337 # Provide some information about the compiler.
5338 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5339 set X $ac_compile
5340 ac_compiler=$2
5341 { { ac_try="$ac_compiler --version >&5"
5342 case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345 esac
5346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5347 $as_echo "$ac_try_echo"; } >&5
5348 (eval "$ac_compiler --version >&5") 2>conftest.err
5349 ac_status=$?
5350 if test -s conftest.err; then
5351 sed '10a\
5352 ... rest of stderr output deleted ...
5353 10q' conftest.err >conftest.er1
5354 cat conftest.er1 >&5
5356 rm -f conftest.er1 conftest.err
5357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5358 test $ac_status = 0; }
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5367 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5368 if ${phobos_cv_abs_srcdir+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5374 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5375 if test -d "$phobos_cv_abs_srcdir"; then :
5377 else
5378 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5384 gdc_save_DFLAGS=$GDCFLAGS
5385 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5387 ac_ext=d
5388 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5389 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=yes
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5393 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5394 cat > conftest.$ac_ext <<_ACEOF
5395 module object;
5398 extern(C) int main() {
5399 return 0;
5401 _ACEOF
5402 if ac_fn_d_try_compile "$LINENO"; then :
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404 $as_echo "yes" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 as_fn_error $? "can't compile D sources!" "$LINENO" 5
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 GDCFLAGS=$gdc_save_DFLAGS
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5427 # Check whether --enable-maintainer-mode was given.
5428 if test "${enable_maintainer_mode+set}" = set; then :
5429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5430 else
5431 USE_MAINTAINER_MODE=no
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5436 if test $USE_MAINTAINER_MODE = yes; then
5437 MAINTAINER_MODE_TRUE=
5438 MAINTAINER_MODE_FALSE='#'
5439 else
5440 MAINTAINER_MODE_TRUE='#'
5441 MAINTAINER_MODE_FALSE=
5444 MAINT=$MAINTAINER_MODE_TRUE
5447 if test -n "$ac_tool_prefix"; then
5448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_prog_RANLIB+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$RANLIB"; then
5456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5475 RANLIB=$ac_cv_prog_RANLIB
5476 if test -n "$RANLIB"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5478 $as_echo "$RANLIB" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5486 if test -z "$ac_cv_prog_RANLIB"; then
5487 ac_ct_RANLIB=$RANLIB
5488 # Extract the first word of "ranlib", so it can be a program name with args.
5489 set dummy ranlib; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$ac_ct_RANLIB"; then
5496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_ac_ct_RANLIB="ranlib"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5516 if test -n "$ac_ct_RANLIB"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5518 $as_echo "$ac_ct_RANLIB" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5524 if test "x$ac_ct_RANLIB" = x; then
5525 RANLIB=":"
5526 else
5527 case $cross_compiling:$ac_tool_warned in
5528 yes:)
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5531 ac_tool_warned=yes ;;
5532 esac
5533 RANLIB=$ac_ct_RANLIB
5535 else
5536 RANLIB="$ac_cv_prog_RANLIB"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5541 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5542 set x ${MAKE-make}
5543 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5544 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat >conftest.make <<\_ACEOF
5548 SHELL = /bin/sh
5549 all:
5550 @echo '@@@%%%=$(MAKE)=@@@%%%'
5551 _ACEOF
5552 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5553 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5554 *@@@%%%=?*=@@@%%%*)
5555 eval ac_cv_prog_make_${ac_make}_set=yes;;
5557 eval ac_cv_prog_make_${ac_make}_set=no;;
5558 esac
5559 rm -f conftest.make
5561 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564 SET_MAKE=
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 SET_MAKE="MAKE=${MAKE-make}"
5572 # Add CET specific flags if CET is enabled
5573 # Check whether --enable-cet was given.
5574 if test "${enable_cet+set}" = set; then :
5575 enableval=$enable_cet;
5576 case "$enableval" in
5577 yes|no|auto) ;;
5578 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5579 esac
5581 else
5582 enable_cet=auto
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5587 $as_echo_n "checking for CET support... " >&6; }
5589 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5590 case "$host" in
5591 i[34567]86-*-linux* | x86_64-*-linux*)
5592 case "$enable_cet" in
5593 auto)
5594 # Check if target supports multi-byte NOPs
5595 # and if compiler and assembler support CET insn.
5596 cet_save_CFLAGS="$CFLAGS"
5597 CFLAGS="$CFLAGS -fcf-protection"
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5602 main ()
5605 #if !defined(__SSE2__)
5606 #error target does not support multi-byte NOPs
5607 #else
5608 asm ("setssbsy");
5609 #endif
5612 return 0;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 enable_cet=yes
5617 else
5618 enable_cet=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 CFLAGS="$cet_save_CFLAGS"
5623 yes)
5624 # Check if assembler supports CET.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5629 main ()
5631 asm ("setssbsy");
5633 return 0;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5638 else
5639 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 esac
5646 enable_cet=no
5648 esac
5649 if test x$enable_cet = xyes; then
5650 CET_FLAGS="-fcf-protection -mshstk"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5659 # To ensure that runtime code for CET is compiled in, add in D version flags.
5660 if test x$enable_cet = xyes; then :
5662 CET_DFLAGS="$CET_FLAGS -fversion=CET"
5663 DCFG_ENABLE_CET=true
5665 else
5667 CET_DFLAGS=
5668 DCFG_ENABLE_CET=false
5674 # This should be inherited in the recursive make, but ensure it is defined.
5675 test "$AR" || AR=ar
5678 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5682 # Enable libtool
5683 case `pwd` in
5684 *\ * | *\ *)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5686 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5687 esac
5691 macro_version='2.2.7a'
5692 macro_revision='1.3134'
5706 ltmain="$ac_aux_dir/ltmain.sh"
5708 # Backslashify metacharacters that are still active within
5709 # double-quoted strings.
5710 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5712 # Same as above, but do not quote variable references.
5713 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5715 # Sed substitution to delay expansion of an escaped shell variable in a
5716 # double_quote_subst'ed string.
5717 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5719 # Sed substitution to delay expansion of an escaped single quote.
5720 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5722 # Sed substitution to avoid accidental globbing in evaled expressions
5723 no_glob_subst='s/\*/\\\*/g'
5725 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5726 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5727 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5730 $as_echo_n "checking how to print strings... " >&6; }
5731 # Test print first, because it will be a builtin if present.
5732 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5733 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5734 ECHO='print -r --'
5735 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5736 ECHO='printf %s\n'
5737 else
5738 # Use this function as a fallback that always works.
5739 func_fallback_echo ()
5741 eval 'cat <<_LTECHO_EOF
5743 _LTECHO_EOF'
5745 ECHO='func_fallback_echo'
5748 # func_echo_all arg...
5749 # Invoke $ECHO with all args, space-separated.
5750 func_echo_all ()
5752 $ECHO ""
5755 case "$ECHO" in
5756 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5757 $as_echo "printf" >&6; } ;;
5758 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5759 $as_echo "print -r" >&6; } ;;
5760 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5761 $as_echo "cat" >&6; } ;;
5762 esac
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5778 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5779 if ${ac_cv_path_SED+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5783 for ac_i in 1 2 3 4 5 6 7; do
5784 ac_script="$ac_script$as_nl$ac_script"
5785 done
5786 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5787 { ac_script=; unset ac_script;}
5788 if test -z "$SED"; then
5789 ac_path_SED_found=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_prog in sed gsed; do
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5799 as_fn_executable_p "$ac_path_SED" || continue
5800 # Check for GNU ac_path_SED and select it if it is found.
5801 # Check for GNU $ac_path_SED
5802 case `"$ac_path_SED" --version 2>&1` in
5803 *GNU*)
5804 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5806 ac_count=0
5807 $as_echo_n 0123456789 >"conftest.in"
5808 while :
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 $as_echo '' >> "conftest.nl"
5814 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_SED_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_SED="$ac_path_SED"
5820 ac_path_SED_max=$ac_count
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826 esac
5828 $ac_path_SED_found && break 3
5829 done
5830 done
5831 done
5832 IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_SED"; then
5834 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5836 else
5837 ac_cv_path_SED=$SED
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5842 $as_echo "$ac_cv_path_SED" >&6; }
5843 SED="$ac_cv_path_SED"
5844 rm -f conftest.sed
5846 test -z "$SED" && SED=sed
5847 Xsed="$SED -e 1s/^X//"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5860 $as_echo_n "checking for fgrep... " >&6; }
5861 if ${ac_cv_path_FGREP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5865 then ac_cv_path_FGREP="$GREP -F"
5866 else
5867 if test -z "$FGREP"; then
5868 ac_path_FGREP_found=false
5869 # Loop through the user's path and test for each of PROGNAME-LIST
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_prog in fgrep; do
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5878 as_fn_executable_p "$ac_path_FGREP" || continue
5879 # Check for GNU ac_path_FGREP and select it if it is found.
5880 # Check for GNU $ac_path_FGREP
5881 case `"$ac_path_FGREP" --version 2>&1` in
5882 *GNU*)
5883 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5885 ac_count=0
5886 $as_echo_n 0123456789 >"conftest.in"
5887 while :
5889 cat "conftest.in" "conftest.in" >"conftest.tmp"
5890 mv "conftest.tmp" "conftest.in"
5891 cp "conftest.in" "conftest.nl"
5892 $as_echo 'FGREP' >> "conftest.nl"
5893 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5895 as_fn_arith $ac_count + 1 && ac_count=$as_val
5896 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5897 # Best one so far, save it but keep looking for a better one
5898 ac_cv_path_FGREP="$ac_path_FGREP"
5899 ac_path_FGREP_max=$ac_count
5901 # 10*(2^10) chars as input seems more than enough
5902 test $ac_count -gt 10 && break
5903 done
5904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5905 esac
5907 $ac_path_FGREP_found && break 3
5908 done
5909 done
5910 done
5911 IFS=$as_save_IFS
5912 if test -z "$ac_cv_path_FGREP"; then
5913 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5915 else
5916 ac_cv_path_FGREP=$FGREP
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5922 $as_echo "$ac_cv_path_FGREP" >&6; }
5923 FGREP="$ac_cv_path_FGREP"
5926 test -z "$GREP" && GREP=grep
5946 # Check whether --with-gnu-ld was given.
5947 if test "${with_gnu_ld+set}" = set; then :
5948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5949 else
5950 with_gnu_ld=no
5953 ac_prog=ld
5954 if test "$GCC" = yes; then
5955 # Check if gcc -print-prog-name=ld gives a path.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5957 $as_echo_n "checking for ld used by $CC... " >&6; }
5958 case $host in
5959 *-*-mingw*)
5960 # gcc leaves a trailing carriage return which upsets mingw
5961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5964 esac
5965 case $ac_prog in
5966 # Accept absolute paths.
5967 [\\/]* | ?:[\\/]*)
5968 re_direlt='/[^/][^/]*/\.\./'
5969 # Canonicalize the pathname of ld
5970 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5971 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5972 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5973 done
5974 test -z "$LD" && LD="$ac_prog"
5977 # If it fails, then pretend we aren't using GCC.
5978 ac_prog=ld
5981 # If it is relative, then search for the first ld in PATH.
5982 with_gnu_ld=unknown
5984 esac
5985 elif test "$with_gnu_ld" = yes; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5987 $as_echo_n "checking for GNU ld... " >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5990 $as_echo_n "checking for non-GNU ld... " >&6; }
5992 if ${lt_cv_path_LD+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if test -z "$LD"; then
5996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5997 for ac_dir in $PATH; do
5998 IFS="$lt_save_ifs"
5999 test -z "$ac_dir" && ac_dir=.
6000 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6001 lt_cv_path_LD="$ac_dir/$ac_prog"
6002 # Check to see if the program is GNU ld. I'd rather use --version,
6003 # but apparently some variants of GNU ld only accept -v.
6004 # Break only if it was the GNU/non-GNU ld that we prefer.
6005 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6006 *GNU* | *'with BFD'*)
6007 test "$with_gnu_ld" != no && break
6010 test "$with_gnu_ld" != yes && break
6012 esac
6014 done
6015 IFS="$lt_save_ifs"
6016 else
6017 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6021 LD="$lt_cv_path_LD"
6022 if test -n "$LD"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6024 $as_echo "$LD" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6029 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6031 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6032 if ${lt_cv_prog_gnu_ld+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6036 case `$LD -v 2>&1 </dev/null` in
6037 *GNU* | *'with BFD'*)
6038 lt_cv_prog_gnu_ld=yes
6041 lt_cv_prog_gnu_ld=no
6043 esac
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6046 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6047 with_gnu_ld=$lt_cv_prog_gnu_ld
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6058 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6059 if ${lt_cv_path_NM+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$NM"; then
6063 # Let the user override the test.
6064 lt_cv_path_NM="$NM"
6065 else
6066 lt_nm_to_check="${ac_tool_prefix}nm"
6067 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6068 lt_nm_to_check="$lt_nm_to_check nm"
6070 for lt_tmp_nm in $lt_nm_to_check; do
6071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6072 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6073 IFS="$lt_save_ifs"
6074 test -z "$ac_dir" && ac_dir=.
6075 tmp_nm="$ac_dir/$lt_tmp_nm"
6076 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6077 # Check to see if the nm accepts a BSD-compat flag.
6078 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6079 # nm: unknown option "B" ignored
6080 # Tru64's nm complains that /dev/null is an invalid object file
6081 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6082 */dev/null* | *'Invalid file or object type'*)
6083 lt_cv_path_NM="$tmp_nm -B"
6084 break
6087 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6088 */dev/null*)
6089 lt_cv_path_NM="$tmp_nm -p"
6090 break
6093 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6094 continue # so that we can try to find one that supports BSD flags
6096 esac
6098 esac
6100 done
6101 IFS="$lt_save_ifs"
6102 done
6103 : ${lt_cv_path_NM=no}
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6107 $as_echo "$lt_cv_path_NM" >&6; }
6108 if test "$lt_cv_path_NM" != "no"; then
6109 NM="$lt_cv_path_NM"
6110 else
6111 # Didn't find any BSD compatible name lister, look for dumpbin.
6112 if test -n "$DUMPBIN"; then :
6113 # Let the user override the test.
6114 else
6115 if test -n "$ac_tool_prefix"; then
6116 for ac_prog in dumpbin "link -dump"
6118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_DUMPBIN+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$DUMPBIN"; then
6126 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6139 done
6140 done
6141 IFS=$as_save_IFS
6145 DUMPBIN=$ac_cv_prog_DUMPBIN
6146 if test -n "$DUMPBIN"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6148 $as_echo "$DUMPBIN" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6155 test -n "$DUMPBIN" && break
6156 done
6158 if test -z "$DUMPBIN"; then
6159 ac_ct_DUMPBIN=$DUMPBIN
6160 for ac_prog in dumpbin "link -dump"
6162 # Extract the first word of "$ac_prog", so it can be a program name with args.
6163 set dummy $ac_prog; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$ac_ct_DUMPBIN"; then
6170 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6183 done
6184 done
6185 IFS=$as_save_IFS
6189 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6190 if test -n "$ac_ct_DUMPBIN"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6192 $as_echo "$ac_ct_DUMPBIN" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6199 test -n "$ac_ct_DUMPBIN" && break
6200 done
6202 if test "x$ac_ct_DUMPBIN" = x; then
6203 DUMPBIN=":"
6204 else
6205 case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211 DUMPBIN=$ac_ct_DUMPBIN
6215 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6216 *COFF*)
6217 DUMPBIN="$DUMPBIN -symbols"
6220 DUMPBIN=:
6222 esac
6225 if test "$DUMPBIN" != ":"; then
6226 NM="$DUMPBIN"
6229 test -z "$NM" && NM=nm
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6237 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6238 if ${lt_cv_nm_interface+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 lt_cv_nm_interface="BSD nm"
6242 echo "int some_variable = 0;" > conftest.$ac_ext
6243 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6244 (eval "$ac_compile" 2>conftest.err)
6245 cat conftest.err >&5
6246 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6247 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6248 cat conftest.err >&5
6249 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6250 cat conftest.out >&5
6251 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6252 lt_cv_nm_interface="MS dumpbin"
6254 rm -f conftest*
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6257 $as_echo "$lt_cv_nm_interface" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6260 $as_echo_n "checking whether ln -s works... " >&6; }
6261 LN_S=$as_ln_s
6262 if test "$LN_S" = "ln -s"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264 $as_echo "yes" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6267 $as_echo "no, using $LN_S" >&6; }
6270 # find the maximum length of command line arguments
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6272 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6273 if ${lt_cv_sys_max_cmd_len+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6277 teststring="ABCD"
6279 case $build_os in
6280 msdosdjgpp*)
6281 # On DJGPP, this test can blow up pretty badly due to problems in libc
6282 # (any single argument exceeding 2000 bytes causes a buffer overrun
6283 # during glob expansion). Even if it were fixed, the result of this
6284 # check would be larger than it should be.
6285 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6288 gnu*)
6289 # Under GNU Hurd, this test is not required because there is
6290 # no limit to the length of command line arguments.
6291 # Libtool will interpret -1 as no limit whatsoever
6292 lt_cv_sys_max_cmd_len=-1;
6295 cygwin* | mingw* | cegcc*)
6296 # On Win9x/ME, this test blows up -- it succeeds, but takes
6297 # about 5 minutes as the teststring grows exponentially.
6298 # Worse, since 9x/ME are not pre-emptively multitasking,
6299 # you end up with a "frozen" computer, even though with patience
6300 # the test eventually succeeds (with a max line length of 256k).
6301 # Instead, let's just punt: use the minimum linelength reported by
6302 # all of the supported platforms: 8192 (on NT/2K/XP).
6303 lt_cv_sys_max_cmd_len=8192;
6306 mint*)
6307 # On MiNT this can take a long time and run out of memory.
6308 lt_cv_sys_max_cmd_len=8192;
6311 amigaos*)
6312 # On AmigaOS with pdksh, this test takes hours, literally.
6313 # So we just punt and use a minimum line length of 8192.
6314 lt_cv_sys_max_cmd_len=8192;
6317 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6318 # This has been around since 386BSD, at least. Likely further.
6319 if test -x /sbin/sysctl; then
6320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6321 elif test -x /usr/sbin/sysctl; then
6322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6323 else
6324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6326 # And add a safety zone
6327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6331 interix*)
6332 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6333 lt_cv_sys_max_cmd_len=196608
6336 osf*)
6337 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6338 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6339 # nice to cause kernel panics so lets avoid the loop below.
6340 # First set a reasonable default.
6341 lt_cv_sys_max_cmd_len=16384
6343 if test -x /sbin/sysconfig; then
6344 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6345 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6346 esac
6349 sco3.2v5*)
6350 lt_cv_sys_max_cmd_len=102400
6352 sysv5* | sco5v6* | sysv4.2uw2*)
6353 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6354 if test -n "$kargmax"; then
6355 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6356 else
6357 lt_cv_sys_max_cmd_len=32768
6361 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6362 if test -n "$lt_cv_sys_max_cmd_len"; then
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6365 else
6366 # Make teststring a little bigger before we do anything with it.
6367 # a 1K string should be a reasonable start.
6368 for i in 1 2 3 4 5 6 7 8 ; do
6369 teststring=$teststring$teststring
6370 done
6371 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6372 # If test is not a shell built-in, we'll probably end up computing a
6373 # maximum length that is only half of the actual maximum length, but
6374 # we can't tell.
6375 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6376 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6377 test $i != 17 # 1/2 MB should be enough
6379 i=`expr $i + 1`
6380 teststring=$teststring$teststring
6381 done
6382 # Only check the string length outside the loop.
6383 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6384 teststring=
6385 # Add a significant safety factor because C++ compilers can tack on
6386 # massive amounts of additional arguments before passing them to the
6387 # linker. It appears as though 1/2 is a usable value.
6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6391 esac
6395 if test -n $lt_cv_sys_max_cmd_len ; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6397 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6398 else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6400 $as_echo "none" >&6; }
6402 max_cmd_len=$lt_cv_sys_max_cmd_len
6409 : ${CP="cp -f"}
6410 : ${MV="mv -f"}
6411 : ${RM="rm -f"}
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6414 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6415 # Try some XSI features
6416 xsi_shell=no
6417 ( _lt_dummy="a/b/c"
6418 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6419 = c,a/b,, \
6420 && eval 'test $(( 1 + 1 )) -eq 2 \
6421 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6422 && xsi_shell=yes
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6424 $as_echo "$xsi_shell" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6428 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6429 lt_shell_append=no
6430 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6431 >/dev/null 2>&1 \
6432 && lt_shell_append=yes
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6434 $as_echo "$lt_shell_append" >&6; }
6437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6438 lt_unset=unset
6439 else
6440 lt_unset=false
6447 # test EBCDIC or ASCII
6448 case `echo X|tr X '\101'` in
6449 A) # ASCII based system
6450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6451 lt_SP2NL='tr \040 \012'
6452 lt_NL2SP='tr \015\012 \040\040'
6454 *) # EBCDIC based system
6455 lt_SP2NL='tr \100 \n'
6456 lt_NL2SP='tr \r\n \100\100'
6458 esac
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6469 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6470 if ${lt_cv_ld_reload_flag+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 lt_cv_ld_reload_flag='-r'
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6476 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6477 reload_flag=$lt_cv_ld_reload_flag
6478 case $reload_flag in
6479 "" | " "*) ;;
6480 *) reload_flag=" $reload_flag" ;;
6481 esac
6482 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6483 case $host_os in
6484 darwin*)
6485 if test "$GCC" = yes; then
6486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6487 else
6488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6491 esac
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_OBJDUMP+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if test -n "$OBJDUMP"; then
6510 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6523 done
6524 done
6525 IFS=$as_save_IFS
6529 OBJDUMP=$ac_cv_prog_OBJDUMP
6530 if test -n "$OBJDUMP"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6532 $as_echo "$OBJDUMP" >&6; }
6533 else
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_OBJDUMP"; then
6541 ac_ct_OBJDUMP=$OBJDUMP
6542 # Extract the first word of "objdump", so it can be a program name with args.
6543 set dummy objdump; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$ac_ct_OBJDUMP"; then
6550 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6563 done
6564 done
6565 IFS=$as_save_IFS
6569 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6570 if test -n "$ac_ct_OBJDUMP"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6572 $as_echo "$ac_ct_OBJDUMP" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_OBJDUMP" = x; then
6579 OBJDUMP="false"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 OBJDUMP=$ac_ct_OBJDUMP
6589 else
6590 OBJDUMP="$ac_cv_prog_OBJDUMP"
6593 test -z "$OBJDUMP" && OBJDUMP=objdump
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6604 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6605 if ${lt_cv_deplibs_check_method+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 lt_cv_file_magic_cmd='$MAGIC_CMD'
6609 lt_cv_file_magic_test_file=
6610 lt_cv_deplibs_check_method='unknown'
6611 # Need to set the preceding variable on all platforms that support
6612 # interlibrary dependencies.
6613 # 'none' -- dependencies not supported.
6614 # `unknown' -- same as none, but documents that we really don't know.
6615 # 'pass_all' -- all dependencies passed with no checks.
6616 # 'test_compile' -- check by making test program.
6617 # 'file_magic [[regex]]' -- check by looking for files in library path
6618 # which responds to the $file_magic_cmd with a given extended regex.
6619 # If you have `file' or equivalent on your system and you're not sure
6620 # whether `pass_all' will *always* work, you probably want this one.
6622 case $host_os in
6623 aix[4-9]*)
6624 lt_cv_deplibs_check_method=pass_all
6627 beos*)
6628 lt_cv_deplibs_check_method=pass_all
6631 bsdi[45]*)
6632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6633 lt_cv_file_magic_cmd='/usr/bin/file -L'
6634 lt_cv_file_magic_test_file=/shlib/libc.so
6637 cygwin*)
6638 # func_win32_libid is a shell function defined in ltmain.sh
6639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6640 lt_cv_file_magic_cmd='func_win32_libid'
6643 mingw* | pw32*)
6644 # Base MSYS/MinGW do not provide the 'file' command needed by
6645 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6646 # unless we find 'file', for example because we are cross-compiling.
6647 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6648 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6650 lt_cv_file_magic_cmd='func_win32_libid'
6651 else
6652 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6653 lt_cv_file_magic_cmd='$OBJDUMP -f'
6657 cegcc*)
6658 # use the weaker test based on 'objdump'. See mingw*.
6659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6660 lt_cv_file_magic_cmd='$OBJDUMP -f'
6663 darwin* | rhapsody*)
6664 lt_cv_deplibs_check_method=pass_all
6667 freebsd* | dragonfly*)
6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6669 case $host_cpu in
6670 i*86 )
6671 # Not sure whether the presence of OpenBSD here was a mistake.
6672 # Let's accept both of them until this is cleared up.
6673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6674 lt_cv_file_magic_cmd=/usr/bin/file
6675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6677 esac
6678 else
6679 lt_cv_deplibs_check_method=pass_all
6683 gnu*)
6684 lt_cv_deplibs_check_method=pass_all
6687 haiku*)
6688 lt_cv_deplibs_check_method=pass_all
6691 hpux10.20* | hpux11*)
6692 lt_cv_file_magic_cmd=/usr/bin/file
6693 case $host_cpu in
6694 ia64*)
6695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6696 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6698 hppa*64*)
6699 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]'
6700 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6704 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6706 esac
6709 interix[3-9]*)
6710 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6714 irix5* | irix6* | nonstopux*)
6715 case $LD in
6716 *-32|*"-32 ") libmagic=32-bit;;
6717 *-n32|*"-n32 ") libmagic=N32;;
6718 *-64|*"-64 ") libmagic=64-bit;;
6719 *) libmagic=never-match;;
6720 esac
6721 lt_cv_deplibs_check_method=pass_all
6724 # This must be Linux ELF.
6725 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6726 lt_cv_deplibs_check_method=pass_all
6729 netbsd*)
6730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732 else
6733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6737 newos6*)
6738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6739 lt_cv_file_magic_cmd=/usr/bin/file
6740 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6743 *nto* | *qnx*)
6744 lt_cv_deplibs_check_method=pass_all
6747 openbsd*)
6748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6750 else
6751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6755 osf3* | osf4* | osf5*)
6756 lt_cv_deplibs_check_method=pass_all
6759 rdos*)
6760 lt_cv_deplibs_check_method=pass_all
6763 solaris*)
6764 lt_cv_deplibs_check_method=pass_all
6767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6768 lt_cv_deplibs_check_method=pass_all
6771 sysv4 | sysv4.3*)
6772 case $host_vendor in
6773 motorola)
6774 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]'
6775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6777 ncr)
6778 lt_cv_deplibs_check_method=pass_all
6780 sequent)
6781 lt_cv_file_magic_cmd='/bin/file'
6782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6784 sni)
6785 lt_cv_file_magic_cmd='/bin/file'
6786 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6787 lt_cv_file_magic_test_file=/lib/libc.so
6789 siemens)
6790 lt_cv_deplibs_check_method=pass_all
6793 lt_cv_deplibs_check_method=pass_all
6795 esac
6798 tpf*)
6799 lt_cv_deplibs_check_method=pass_all
6801 vxworks*)
6802 # Assume VxWorks cross toolchains are built on Linux, possibly
6803 # as canadian for Windows hosts.
6804 lt_cv_deplibs_check_method=pass_all
6806 esac
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6810 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6811 file_magic_cmd=$lt_cv_file_magic_cmd
6812 deplibs_check_method=$lt_cv_deplibs_check_method
6813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}ar; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_AR+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$AR"; then
6835 ac_cv_prog_AR="$AR" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_AR="${ac_tool_prefix}ar"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6848 done
6849 done
6850 IFS=$as_save_IFS
6854 AR=$ac_cv_prog_AR
6855 if test -n "$AR"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6857 $as_echo "$AR" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6865 if test -z "$ac_cv_prog_AR"; then
6866 ac_ct_AR=$AR
6867 # Extract the first word of "ar", so it can be a program name with args.
6868 set dummy ar; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 if test -n "$ac_ct_AR"; then
6875 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_ac_ct_AR="ar"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6888 done
6889 done
6890 IFS=$as_save_IFS
6894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6895 if test -n "$ac_ct_AR"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6897 $as_echo "$ac_ct_AR" >&6; }
6898 else
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6903 if test "x$ac_ct_AR" = x; then
6904 AR="false"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912 AR=$ac_ct_AR
6914 else
6915 AR="$ac_cv_prog_AR"
6918 test -z "$AR" && AR=ar
6919 test -z "$AR_FLAGS" && AR_FLAGS=cru
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}strip; 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 ${ac_cv_prog_STRIP+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$STRIP"; then
6940 ac_cv_prog_STRIP="$STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
6960 if test -n "$STRIP"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6962 $as_echo "$STRIP" >&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_STRIP"; then
6971 ac_ct_STRIP=$STRIP
6972 # Extract the first word of "strip", so it can be a program name with args.
6973 set dummy strip; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$ac_ct_STRIP"; then
6980 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_ac_ct_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
7000 if test -n "$ac_ct_STRIP"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7002 $as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
7009 STRIP=":"
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 STRIP=$ac_ct_STRIP
7019 else
7020 STRIP="$ac_cv_prog_STRIP"
7023 test -z "$STRIP" && STRIP=:
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_RANLIB+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$RANLIB"; then
7039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7052 done
7053 done
7054 IFS=$as_save_IFS
7058 RANLIB=$ac_cv_prog_RANLIB
7059 if test -n "$RANLIB"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7061 $as_echo "$RANLIB" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7069 if test -z "$ac_cv_prog_RANLIB"; then
7070 ac_ct_RANLIB=$RANLIB
7071 # Extract the first word of "ranlib", so it can be a program name with args.
7072 set dummy ranlib; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if test -n "$ac_ct_RANLIB"; then
7079 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_ac_ct_RANLIB="ranlib"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7092 done
7093 done
7094 IFS=$as_save_IFS
7098 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7099 if test -n "$ac_ct_RANLIB"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7101 $as_echo "$ac_ct_RANLIB" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7107 if test "x$ac_ct_RANLIB" = x; then
7108 RANLIB=":"
7109 else
7110 case $cross_compiling:$ac_tool_warned in
7111 yes:)
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114 ac_tool_warned=yes ;;
7115 esac
7116 RANLIB=$ac_ct_RANLIB
7118 else
7119 RANLIB="$ac_cv_prog_RANLIB"
7122 test -z "$RANLIB" && RANLIB=:
7129 # Determine commands to create old-style static archives.
7130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7131 old_postinstall_cmds='chmod 644 $oldlib'
7132 old_postuninstall_cmds=
7134 if test -n "$RANLIB"; then
7135 case $host_os in
7136 openbsd*)
7137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7140 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7142 esac
7143 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7146 case $host_os in
7147 darwin*)
7148 lock_old_archive_extraction=yes ;;
7150 lock_old_archive_extraction=no ;;
7151 esac
7191 # If no C compiler was specified, use CC.
7192 LTCC=${LTCC-"$CC"}
7194 # If no C compiler flags were specified, use CFLAGS.
7195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7197 # Allow CC to be a program name with arguments.
7198 compiler=$CC
7201 # Check for command to grab the raw symbol name followed by C symbol from nm.
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7203 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7204 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7208 # These are sane defaults that work on at least a few old systems.
7209 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7211 # Character class describing NM global symbol codes.
7212 symcode='[BCDEGRST]'
7214 # Regexp to match symbols that can be accessed directly from C.
7215 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7217 # Define system-specific variables.
7218 case $host_os in
7219 aix*)
7220 symcode='[BCDT]'
7222 cygwin* | mingw* | pw32* | cegcc*)
7223 symcode='[ABCDGISTW]'
7225 hpux*)
7226 if test "$host_cpu" = ia64; then
7227 symcode='[ABCDEGRST]'
7230 irix* | nonstopux*)
7231 symcode='[BCDEGRST]'
7233 osf*)
7234 symcode='[BCDEGQRST]'
7236 solaris*)
7237 symcode='[BDRT]'
7239 sco3.2v5*)
7240 symcode='[DT]'
7242 sysv4.2uw2*)
7243 symcode='[DT]'
7245 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7246 symcode='[ABDT]'
7248 sysv4)
7249 symcode='[DFNSTU]'
7251 esac
7253 # If we're using GNU nm, then use its standard symbol codes.
7254 case `$NM -V 2>&1` in
7255 *GNU* | *'with BFD'*)
7256 symcode='[ABCDGIRSTW]' ;;
7257 esac
7259 # Transform an extracted symbol line into a proper C declaration.
7260 # Some systems (esp. on ia64) link data and code symbols differently,
7261 # so use this general approach.
7262 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7264 # Transform an extracted symbol line into symbol name and symbol address
7265 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7266 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'"
7268 # Handle CRLF in mingw tool chain
7269 opt_cr=
7270 case $build_os in
7271 mingw*)
7272 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7274 esac
7276 # Try without a prefix underscore, then with it.
7277 for ac_symprfx in "" "_"; do
7279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7280 symxfrm="\\1 $ac_symprfx\\2 \\2"
7282 # Write the raw and C identifiers.
7283 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7284 # Fake it for dumpbin and say T for any non-static function
7285 # and D for any global variable.
7286 # Also find C++ and __fastcall symbols from MSVC++,
7287 # which start with @ or ?.
7288 lt_cv_sys_global_symbol_pipe="$AWK '"\
7289 " {last_section=section; section=\$ 3};"\
7290 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7291 " \$ 0!~/External *\|/{next};"\
7292 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7293 " {if(hide[section]) next};"\
7294 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7295 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7296 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7297 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7298 " ' prfx=^$ac_symprfx"
7299 else
7300 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7303 # Check to see that the pipe works correctly.
7304 pipe_works=no
7306 rm -f conftest*
7307 cat > conftest.$ac_ext <<_LT_EOF
7308 #ifdef __cplusplus
7309 extern "C" {
7310 #endif
7311 char nm_test_var;
7312 void nm_test_func(void);
7313 void nm_test_func(void){}
7314 #ifdef __cplusplus
7316 #endif
7317 int main(){nm_test_var='a';nm_test_func();return(0);}
7318 _LT_EOF
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7321 (eval $ac_compile) 2>&5
7322 ac_status=$?
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; }; then
7325 # Now try to grab the symbols.
7326 nlist=conftest.nm
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7328 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; } && test -s "$nlist"; then
7332 # Try sorting and uniquifying the output.
7333 if sort "$nlist" | uniq > "$nlist"T; then
7334 mv -f "$nlist"T "$nlist"
7335 else
7336 rm -f "$nlist"T
7339 # Make sure that we snagged all the symbols we need.
7340 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7341 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7342 cat <<_LT_EOF > conftest.$ac_ext
7343 #ifdef __cplusplus
7344 extern "C" {
7345 #endif
7347 _LT_EOF
7348 # Now generate the symbol file.
7349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7351 cat <<_LT_EOF >> conftest.$ac_ext
7353 /* The mapping between symbol names and symbols. */
7354 const struct {
7355 const char *name;
7356 void *address;
7358 lt__PROGRAM__LTX_preloaded_symbols[] =
7360 { "@PROGRAM@", (void *) 0 },
7361 _LT_EOF
7362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7363 cat <<\_LT_EOF >> conftest.$ac_ext
7364 {0, (void *) 0}
7367 /* This works around a problem in FreeBSD linker */
7368 #ifdef FREEBSD_WORKAROUND
7369 static const void *lt_preloaded_setup() {
7370 return lt__PROGRAM__LTX_preloaded_symbols;
7372 #endif
7374 #ifdef __cplusplus
7376 #endif
7377 _LT_EOF
7378 # Now try linking the two files.
7379 mv conftest.$ac_objext conftstm.$ac_objext
7380 lt_save_LIBS="$LIBS"
7381 lt_save_CFLAGS="$CFLAGS"
7382 LIBS="conftstm.$ac_objext"
7383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7385 (eval $ac_link) 2>&5
7386 ac_status=$?
7387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7389 pipe_works=yes
7391 LIBS="$lt_save_LIBS"
7392 CFLAGS="$lt_save_CFLAGS"
7393 else
7394 echo "cannot find nm_test_func in $nlist" >&5
7396 else
7397 echo "cannot find nm_test_var in $nlist" >&5
7399 else
7400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7402 else
7403 echo "$progname: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7406 rm -rf conftest* conftst*
7408 # Do not use the global_symbol_pipe unless it works.
7409 if test "$pipe_works" = yes; then
7410 break
7411 else
7412 lt_cv_sys_global_symbol_pipe=
7414 done
7418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7419 lt_cv_sys_global_symbol_to_cdecl=
7421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7423 $as_echo "failed" >&6; }
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7426 $as_echo "ok" >&6; }
7450 # Check whether --enable-libtool-lock was given.
7451 if test "${enable_libtool_lock+set}" = set; then :
7452 enableval=$enable_libtool_lock;
7455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7457 # Some flags need to be propagated to the compiler or linker for good
7458 # libtool support.
7459 case $host in
7460 ia64-*-hpux*)
7461 # Find out which ABI we are using.
7462 echo 'int i;' > conftest.$ac_ext
7463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7464 (eval $ac_compile) 2>&5
7465 ac_status=$?
7466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7467 test $ac_status = 0; }; then
7468 case `/usr/bin/file conftest.$ac_objext` in
7469 *ELF-32*)
7470 HPUX_IA64_MODE="32"
7472 *ELF-64*)
7473 HPUX_IA64_MODE="64"
7475 esac
7477 rm -rf conftest*
7479 *-*-irix6*)
7480 # Find out which ABI we are using.
7481 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7483 (eval $ac_compile) 2>&5
7484 ac_status=$?
7485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; }; then
7487 if test "$lt_cv_prog_gnu_ld" = yes; then
7488 case `/usr/bin/file conftest.$ac_objext` in
7489 *32-bit*)
7490 LD="${LD-ld} -melf32bsmip"
7492 *N32*)
7493 LD="${LD-ld} -melf32bmipn32"
7495 *64-bit*)
7496 LD="${LD-ld} -melf64bmip"
7498 esac
7499 else
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *32-bit*)
7502 LD="${LD-ld} -32"
7504 *N32*)
7505 LD="${LD-ld} -n32"
7507 *64-bit*)
7508 LD="${LD-ld} -64"
7510 esac
7513 rm -rf conftest*
7516 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7517 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7518 # Find out which ABI we are using.
7519 echo 'int i;' > conftest.$ac_ext
7520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521 (eval $ac_compile) 2>&5
7522 ac_status=$?
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; then
7525 case `/usr/bin/file conftest.o` in
7526 *32-bit*)
7527 case $host in
7528 x86_64-*kfreebsd*-gnu)
7529 LD="${LD-ld} -m elf_i386_fbsd"
7531 x86_64-*linux*)
7532 case `/usr/bin/file conftest.o` in
7533 *x86-64*)
7534 LD="${LD-ld} -m elf32_x86_64"
7537 LD="${LD-ld} -m elf_i386"
7539 esac
7541 powerpc64le-*linux*)
7542 LD="${LD-ld} -m elf32lppclinux"
7544 powerpc64-*linux*)
7545 LD="${LD-ld} -m elf32ppclinux"
7547 s390x-*linux*)
7548 LD="${LD-ld} -m elf_s390"
7550 sparc64-*linux*)
7551 LD="${LD-ld} -m elf32_sparc"
7553 esac
7555 *64-bit*)
7556 case $host in
7557 x86_64-*kfreebsd*-gnu)
7558 LD="${LD-ld} -m elf_x86_64_fbsd"
7560 x86_64-*linux*)
7561 LD="${LD-ld} -m elf_x86_64"
7563 powerpcle-*linux*)
7564 LD="${LD-ld} -m elf64lppc"
7566 powerpc-*linux*)
7567 LD="${LD-ld} -m elf64ppc"
7569 s390*-*linux*|s390*-*tpf*)
7570 LD="${LD-ld} -m elf64_s390"
7572 sparc*-*linux*)
7573 LD="${LD-ld} -m elf64_sparc"
7575 esac
7577 esac
7579 rm -rf conftest*
7582 *-*-sco3.2v5*)
7583 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7584 SAVE_CFLAGS="$CFLAGS"
7585 CFLAGS="$CFLAGS -belf"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7587 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7588 if ${lt_cv_cc_needs_belf+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 ac_ext=c
7592 ac_cpp='$CPP $CPPFLAGS'
7593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7601 main ()
7605 return 0;
7607 _ACEOF
7608 if ac_fn_c_try_link "$LINENO"; then :
7609 lt_cv_cc_needs_belf=yes
7610 else
7611 lt_cv_cc_needs_belf=no
7613 rm -f core conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615 ac_ext=c
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7623 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7624 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7625 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7626 CFLAGS="$SAVE_CFLAGS"
7629 sparc*-*solaris*)
7630 # Find out which ABI we are using.
7631 echo 'int i;' > conftest.$ac_ext
7632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7633 (eval $ac_compile) 2>&5
7634 ac_status=$?
7635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; }; then
7637 case `/usr/bin/file conftest.o` in
7638 *64-bit*)
7639 case $lt_cv_prog_gnu_ld in
7640 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7642 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7643 LD="${LD-ld} -64"
7646 esac
7648 esac
7650 rm -rf conftest*
7652 esac
7654 need_locks="$enable_libtool_lock"
7657 case $host_os in
7658 rhapsody* | darwin*)
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test -n "$DSYMUTIL"; then
7668 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7681 done
7682 done
7683 IFS=$as_save_IFS
7687 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7688 if test -n "$DSYMUTIL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7690 $as_echo "$DSYMUTIL" >&6; }
7691 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7698 if test -z "$ac_cv_prog_DSYMUTIL"; then
7699 ac_ct_DSYMUTIL=$DSYMUTIL
7700 # Extract the first word of "dsymutil", so it can be a program name with args.
7701 set dummy dsymutil; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$ac_ct_DSYMUTIL"; then
7708 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7721 done
7722 done
7723 IFS=$as_save_IFS
7727 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7728 if test -n "$ac_ct_DSYMUTIL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7730 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7736 if test "x$ac_ct_DSYMUTIL" = x; then
7737 DSYMUTIL=":"
7738 else
7739 case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745 DSYMUTIL=$ac_ct_DSYMUTIL
7747 else
7748 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_NMEDIT+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$NMEDIT"; then
7760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7779 NMEDIT=$ac_cv_prog_NMEDIT
7780 if test -n "$NMEDIT"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7782 $as_echo "$NMEDIT" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7790 if test -z "$ac_cv_prog_NMEDIT"; then
7791 ac_ct_NMEDIT=$NMEDIT
7792 # Extract the first word of "nmedit", so it can be a program name with args.
7793 set dummy nmedit; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$ac_ct_NMEDIT"; then
7800 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7819 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7820 if test -n "$ac_ct_NMEDIT"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7822 $as_echo "$ac_ct_NMEDIT" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7828 if test "x$ac_ct_NMEDIT" = x; then
7829 NMEDIT=":"
7830 else
7831 case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837 NMEDIT=$ac_ct_NMEDIT
7839 else
7840 NMEDIT="$ac_cv_prog_NMEDIT"
7843 if test -n "$ac_tool_prefix"; then
7844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_LIPO+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$LIPO"; then
7852 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7871 LIPO=$ac_cv_prog_LIPO
7872 if test -n "$LIPO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7874 $as_echo "$LIPO" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7882 if test -z "$ac_cv_prog_LIPO"; then
7883 ac_ct_LIPO=$LIPO
7884 # Extract the first word of "lipo", so it can be a program name with args.
7885 set dummy lipo; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 if test -n "$ac_ct_LIPO"; then
7892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901 ac_cv_prog_ac_ct_LIPO="lipo"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7905 done
7906 done
7907 IFS=$as_save_IFS
7911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7912 if test -n "$ac_ct_LIPO"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7914 $as_echo "$ac_ct_LIPO" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7920 if test "x$ac_ct_LIPO" = x; then
7921 LIPO=":"
7922 else
7923 case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929 LIPO=$ac_ct_LIPO
7931 else
7932 LIPO="$ac_cv_prog_LIPO"
7935 if test -n "$ac_tool_prefix"; then
7936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}otool; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if ${ac_cv_prog_OTOOL+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test -n "$OTOOL"; then
7944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7957 done
7958 done
7959 IFS=$as_save_IFS
7963 OTOOL=$ac_cv_prog_OTOOL
7964 if test -n "$OTOOL"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7966 $as_echo "$OTOOL" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7974 if test -z "$ac_cv_prog_OTOOL"; then
7975 ac_ct_OTOOL=$OTOOL
7976 # Extract the first word of "otool", so it can be a program name with args.
7977 set dummy otool; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 if test -n "$ac_ct_OTOOL"; then
7984 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_ac_ct_OTOOL="otool"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7997 done
7998 done
7999 IFS=$as_save_IFS
8003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8004 if test -n "$ac_ct_OTOOL"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8006 $as_echo "$ac_ct_OTOOL" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8012 if test "x$ac_ct_OTOOL" = x; then
8013 OTOOL=":"
8014 else
8015 case $cross_compiling:$ac_tool_warned in
8016 yes:)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019 ac_tool_warned=yes ;;
8020 esac
8021 OTOOL=$ac_ct_OTOOL
8023 else
8024 OTOOL="$ac_cv_prog_OTOOL"
8027 if test -n "$ac_tool_prefix"; then
8028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_prog_OTOOL64+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$OTOOL64"; then
8036 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8049 done
8050 done
8051 IFS=$as_save_IFS
8055 OTOOL64=$ac_cv_prog_OTOOL64
8056 if test -n "$OTOOL64"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8058 $as_echo "$OTOOL64" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8066 if test -z "$ac_cv_prog_OTOOL64"; then
8067 ac_ct_OTOOL64=$OTOOL64
8068 # Extract the first word of "otool64", so it can be a program name with args.
8069 set dummy otool64; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 if test -n "$ac_ct_OTOOL64"; then
8076 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_ac_ct_OTOOL64="otool64"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8089 done
8090 done
8091 IFS=$as_save_IFS
8095 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8096 if test -n "$ac_ct_OTOOL64"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8098 $as_echo "$ac_ct_OTOOL64" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8104 if test "x$ac_ct_OTOOL64" = x; then
8105 OTOOL64=":"
8106 else
8107 case $cross_compiling:$ac_tool_warned in
8108 yes:)
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111 ac_tool_warned=yes ;;
8112 esac
8113 OTOOL64=$ac_ct_OTOOL64
8115 else
8116 OTOOL64="$ac_cv_prog_OTOOL64"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8146 $as_echo_n "checking for -single_module linker flag... " >&6; }
8147 if ${lt_cv_apple_cc_single_mod+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 lt_cv_apple_cc_single_mod=no
8151 if test -z "${LT_MULTI_MODULE}"; then
8152 # By default we will add the -single_module flag. You can override
8153 # by either setting the environment variable LT_MULTI_MODULE
8154 # non-empty at configure time, or by adding -multi_module to the
8155 # link flags.
8156 rm -rf libconftest.dylib*
8157 echo "int foo(void){return 1;}" > conftest.c
8158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159 -dynamiclib -Wl,-single_module conftest.c" >&5
8160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8162 _lt_result=$?
8163 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8164 lt_cv_apple_cc_single_mod=yes
8165 else
8166 cat conftest.err >&5
8168 rm -rf libconftest.dylib*
8169 rm -f conftest.*
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8173 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8175 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8176 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_ld_exported_symbols_list=no
8180 save_LDFLAGS=$LDFLAGS
8181 echo "_main" > conftest.sym
8182 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8187 main ()
8191 return 0;
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 lt_cv_ld_exported_symbols_list=yes
8196 else
8197 lt_cv_ld_exported_symbols_list=no
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 LDFLAGS="$save_LDFLAGS"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8205 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8207 $as_echo_n "checking for -force_load linker flag... " >&6; }
8208 if ${lt_cv_ld_force_load+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_ld_force_load=no
8212 cat > conftest.c << _LT_EOF
8213 int forced_loaded() { return 2;}
8214 _LT_EOF
8215 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8216 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8217 echo "$AR cru libconftest.a conftest.o" >&5
8218 $AR cru libconftest.a conftest.o 2>&5
8219 cat > conftest.c << _LT_EOF
8220 int main() { return 0;}
8221 _LT_EOF
8222 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8223 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8224 _lt_result=$?
8225 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8226 lt_cv_ld_force_load=yes
8227 else
8228 cat conftest.err >&5
8230 rm -f conftest.err libconftest.a conftest conftest.c
8231 rm -rf conftest.dSYM
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8235 $as_echo "$lt_cv_ld_force_load" >&6; }
8236 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8237 # build without first building modern cctools / linker.
8238 case $host_cpu-$host_os in
8239 *-rhapsody* | *-darwin1.[012])
8240 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8241 *-darwin1.*)
8242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8243 *-darwin*)
8244 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8245 # deployment target is forced to an earlier version.
8246 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8247 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8249 10.[012][,.]*)
8250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8254 esac
8256 esac
8257 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8258 _lt_dar_single_mod='$single_module'
8260 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8261 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8262 else
8263 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8265 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8266 _lt_dsymutil='~$DSYMUTIL $lib || :'
8267 else
8268 _lt_dsymutil=
8271 esac
8273 for ac_header in dlfcn.h
8274 do :
8275 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8277 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8278 cat >>confdefs.h <<_ACEOF
8279 #define HAVE_DLFCN_H 1
8280 _ACEOF
8284 done
8290 # Set options
8291 enable_dlopen=yes
8296 enable_win32_dll=no
8299 # Check whether --enable-shared was given.
8300 if test "${enable_shared+set}" = set; then :
8301 enableval=$enable_shared; p=${PACKAGE-default}
8302 case $enableval in
8303 yes) enable_shared=yes ;;
8304 no) enable_shared=no ;;
8306 enable_shared=no
8307 # Look at the argument we got. We use all the common list separators.
8308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8309 for pkg in $enableval; do
8310 IFS="$lt_save_ifs"
8311 if test "X$pkg" = "X$p"; then
8312 enable_shared=yes
8314 done
8315 IFS="$lt_save_ifs"
8317 esac
8318 else
8319 enable_shared=yes
8330 # Check whether --enable-static was given.
8331 if test "${enable_static+set}" = set; then :
8332 enableval=$enable_static; p=${PACKAGE-default}
8333 case $enableval in
8334 yes) enable_static=yes ;;
8335 no) enable_static=no ;;
8337 enable_static=no
8338 # Look at the argument we got. We use all the common list separators.
8339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8340 for pkg in $enableval; do
8341 IFS="$lt_save_ifs"
8342 if test "X$pkg" = "X$p"; then
8343 enable_static=yes
8345 done
8346 IFS="$lt_save_ifs"
8348 esac
8349 else
8350 enable_static=yes
8362 # Check whether --with-pic was given.
8363 if test "${with_pic+set}" = set; then :
8364 withval=$with_pic; pic_mode="$withval"
8365 else
8366 pic_mode=default
8370 test -z "$pic_mode" && pic_mode=default
8378 # Check whether --enable-fast-install was given.
8379 if test "${enable_fast_install+set}" = set; then :
8380 enableval=$enable_fast_install; p=${PACKAGE-default}
8381 case $enableval in
8382 yes) enable_fast_install=yes ;;
8383 no) enable_fast_install=no ;;
8385 enable_fast_install=no
8386 # Look at the argument we got. We use all the common list separators.
8387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8388 for pkg in $enableval; do
8389 IFS="$lt_save_ifs"
8390 if test "X$pkg" = "X$p"; then
8391 enable_fast_install=yes
8393 done
8394 IFS="$lt_save_ifs"
8396 esac
8397 else
8398 enable_fast_install=yes
8411 # This can be used to rebuild libtool when needed
8412 LIBTOOL_DEPS="$ltmain"
8414 # Always use our own libtool.
8415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8442 test -z "$LN_S" && LN_S="ln -s"
8457 if test -n "${ZSH_VERSION+set}" ; then
8458 setopt NO_GLOB_SUBST
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8462 $as_echo_n "checking for objdir... " >&6; }
8463 if ${lt_cv_objdir+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 rm -f .libs 2>/dev/null
8467 mkdir .libs 2>/dev/null
8468 if test -d .libs; then
8469 lt_cv_objdir=.libs
8470 else
8471 # MS-DOS does not allow filenames that begin with a dot.
8472 lt_cv_objdir=_libs
8474 rmdir .libs 2>/dev/null
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8477 $as_echo "$lt_cv_objdir" >&6; }
8478 objdir=$lt_cv_objdir
8484 cat >>confdefs.h <<_ACEOF
8485 #define LT_OBJDIR "$lt_cv_objdir/"
8486 _ACEOF
8491 case $host_os in
8492 aix3*)
8493 # AIX sometimes has problems with the GCC collect2 program. For some
8494 # reason, if we set the COLLECT_NAMES environment variable, the problems
8495 # vanish in a puff of smoke.
8496 if test "X${COLLECT_NAMES+set}" != Xset; then
8497 COLLECT_NAMES=
8498 export COLLECT_NAMES
8501 esac
8503 # Global variables:
8504 ofile=libtool
8505 can_build_shared=yes
8507 # All known linkers require a `.a' archive for static linking (except MSVC,
8508 # which needs '.lib').
8509 libext=a
8511 with_gnu_ld="$lt_cv_prog_gnu_ld"
8513 old_CC="$CC"
8514 old_CFLAGS="$CFLAGS"
8516 # Set sane defaults for various variables
8517 test -z "$CC" && CC=cc
8518 test -z "$LTCC" && LTCC=$CC
8519 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8520 test -z "$LD" && LD=ld
8521 test -z "$ac_objext" && ac_objext=o
8523 for cc_temp in $compiler""; do
8524 case $cc_temp in
8525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8527 \-*) ;;
8528 *) break;;
8529 esac
8530 done
8531 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8534 # Only perform the check for file, if the check method requires it
8535 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8536 case $deplibs_check_method in
8537 file_magic*)
8538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8540 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 case $MAGIC_CMD in
8545 [\\/*] | ?:[\\/]*)
8546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8549 lt_save_MAGIC_CMD="$MAGIC_CMD"
8550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8552 for ac_dir in $ac_dummy; do
8553 IFS="$lt_save_ifs"
8554 test -z "$ac_dir" && ac_dir=.
8555 if test -f $ac_dir/${ac_tool_prefix}file; then
8556 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8557 if test -n "$file_magic_test_file"; then
8558 case $deplibs_check_method in
8559 "file_magic "*)
8560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8563 $EGREP "$file_magic_regex" > /dev/null; then
8565 else
8566 cat <<_LT_EOF 1>&2
8568 *** Warning: the command libtool uses to detect shared libraries,
8569 *** $file_magic_cmd, produces output that libtool cannot recognize.
8570 *** The result is that libtool may fail to recognize shared libraries
8571 *** as such. This will affect the creation of libtool libraries that
8572 *** depend on shared libraries, but programs linked with such libtool
8573 *** libraries will work regardless of this problem. Nevertheless, you
8574 *** may want to report the problem to your system manager and/or to
8575 *** bug-libtool@gnu.org
8577 _LT_EOF
8578 fi ;;
8579 esac
8581 break
8583 done
8584 IFS="$lt_save_ifs"
8585 MAGIC_CMD="$lt_save_MAGIC_CMD"
8587 esac
8590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 if test -n "$MAGIC_CMD"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8593 $as_echo "$MAGIC_CMD" >&6; }
8594 else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8603 if test -z "$lt_cv_path_MAGIC_CMD"; then
8604 if test -n "$ac_tool_prefix"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8606 $as_echo_n "checking for file... " >&6; }
8607 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 case $MAGIC_CMD in
8611 [\\/*] | ?:[\\/]*)
8612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8615 lt_save_MAGIC_CMD="$MAGIC_CMD"
8616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8618 for ac_dir in $ac_dummy; do
8619 IFS="$lt_save_ifs"
8620 test -z "$ac_dir" && ac_dir=.
8621 if test -f $ac_dir/file; then
8622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8623 if test -n "$file_magic_test_file"; then
8624 case $deplibs_check_method in
8625 "file_magic "*)
8626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8629 $EGREP "$file_magic_regex" > /dev/null; then
8631 else
8632 cat <<_LT_EOF 1>&2
8634 *** Warning: the command libtool uses to detect shared libraries,
8635 *** $file_magic_cmd, produces output that libtool cannot recognize.
8636 *** The result is that libtool may fail to recognize shared libraries
8637 *** as such. This will affect the creation of libtool libraries that
8638 *** depend on shared libraries, but programs linked with such libtool
8639 *** libraries will work regardless of this problem. Nevertheless, you
8640 *** may want to report the problem to your system manager and/or to
8641 *** bug-libtool@gnu.org
8643 _LT_EOF
8644 fi ;;
8645 esac
8647 break
8649 done
8650 IFS="$lt_save_ifs"
8651 MAGIC_CMD="$lt_save_MAGIC_CMD"
8653 esac
8656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8657 if test -n "$MAGIC_CMD"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8659 $as_echo "$MAGIC_CMD" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8666 else
8667 MAGIC_CMD=:
8673 esac
8675 # Use C for the default configuration in the libtool script
8677 lt_save_CC="$CC"
8678 ac_ext=c
8679 ac_cpp='$CPP $CPPFLAGS'
8680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685 # Source file extension for C test sources.
8686 ac_ext=c
8688 # Object file extension for compiled C test sources.
8689 objext=o
8690 objext=$objext
8692 # Code to be used in simple compile tests
8693 lt_simple_compile_test_code="int some_variable = 0;"
8695 # Code to be used in simple link tests
8696 lt_simple_link_test_code='int main(){return(0);}'
8704 # If no C compiler was specified, use CC.
8705 LTCC=${LTCC-"$CC"}
8707 # If no C compiler flags were specified, use CFLAGS.
8708 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8710 # Allow CC to be a program name with arguments.
8711 compiler=$CC
8713 # Save the default compiler, since it gets overwritten when the other
8714 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8715 compiler_DEFAULT=$CC
8717 # save warnings/boilerplate of simple test code
8718 ac_outfile=conftest.$ac_objext
8719 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8721 _lt_compiler_boilerplate=`cat conftest.err`
8722 $RM conftest*
8724 ac_outfile=conftest.$ac_objext
8725 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8727 _lt_linker_boilerplate=`cat conftest.err`
8728 $RM -r conftest*
8731 ## CAVEAT EMPTOR:
8732 ## There is no encapsulation within the following macros, do not change
8733 ## the running order or otherwise move them around unless you know exactly
8734 ## what you are doing...
8735 if test -n "$compiler"; then
8737 lt_prog_compiler_no_builtin_flag=
8739 if test "$GCC" = yes; then
8740 case $cc_basename in
8741 nvcc*)
8742 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8744 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8745 esac
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8748 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8749 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 lt_cv_prog_compiler_rtti_exceptions=no
8753 ac_outfile=conftest.$ac_objext
8754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755 lt_compiler_flag="-fno-rtti -fno-exceptions"
8756 # Insert the option either (1) after the last *FLAGS variable, or
8757 # (2) before a word containing "conftest.", or (3) at the end.
8758 # Note that $ac_compile itself does not contain backslashes and begins
8759 # with a dollar sign (not a hyphen), so the echo should work correctly.
8760 # The option is referenced via a variable to avoid confusing sed.
8761 lt_compile=`echo "$ac_compile" | $SED \
8762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764 -e 's:$: $lt_compiler_flag:'`
8765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8766 (eval "$lt_compile" 2>conftest.err)
8767 ac_status=$?
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 if (exit $ac_status) && test -s "$ac_outfile"; then
8771 # The compiler can only warn and ignore the option if not recognized
8772 # So say no if there are warnings other than the usual output.
8773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8776 lt_cv_prog_compiler_rtti_exceptions=yes
8779 $RM conftest*
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8783 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8785 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8786 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8787 else
8798 lt_prog_compiler_wl=
8799 lt_prog_compiler_pic=
8800 lt_prog_compiler_static=
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8803 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8805 if test "$GCC" = yes; then
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_static='-static'
8809 case $host_os in
8810 aix*)
8811 # All AIX code is PIC.
8812 if test "$host_cpu" = ia64; then
8813 # AIX 5 now supports IA64 processor
8814 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_pic='-fPIC'
8819 amigaos*)
8820 case $host_cpu in
8821 powerpc)
8822 # see comment about AmigaOS4 .so support
8823 lt_prog_compiler_pic='-fPIC'
8825 m68k)
8826 # FIXME: we need at least 68020 code to build shared libraries, but
8827 # adding the `-m68020' flag to GCC prevents building anything better,
8828 # like `-m68040'.
8829 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8831 esac
8834 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8835 # PIC is the default for these OSes.
8838 mingw* | cygwin* | pw32* | os2* | cegcc*)
8839 # This hack is so that the source file can tell whether it is being
8840 # built for inclusion in a dll (and should export symbols for example).
8841 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8842 # (--disable-auto-import) libraries
8843 lt_prog_compiler_pic='-DDLL_EXPORT'
8846 darwin* | rhapsody*)
8847 # PIC is the default on this platform
8848 # Common symbols not allowed in MH_DYLIB files
8849 lt_prog_compiler_pic='-fno-common'
8852 haiku*)
8853 # PIC is the default for Haiku.
8854 # The "-static" flag exists, but is broken.
8855 lt_prog_compiler_static=
8858 hpux*)
8859 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8860 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8861 # sets the default TLS model and affects inlining.
8862 case $host_cpu in
8863 hppa*64*)
8864 # +Z the default
8867 lt_prog_compiler_pic='-fPIC'
8869 esac
8872 interix[3-9]*)
8873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8874 # Instead, we relocate shared libraries at runtime.
8877 msdosdjgpp*)
8878 # Just because we use GCC doesn't mean we suddenly get shared libraries
8879 # on systems that don't support them.
8880 lt_prog_compiler_can_build_shared=no
8881 enable_shared=no
8884 *nto* | *qnx*)
8885 # QNX uses GNU C++, but need to define -shared option too, otherwise
8886 # it will coredump.
8887 lt_prog_compiler_pic='-fPIC -shared'
8890 sysv4*MP*)
8891 if test -d /usr/nec; then
8892 lt_prog_compiler_pic=-Kconform_pic
8897 lt_prog_compiler_pic='-fPIC'
8899 esac
8901 case $cc_basename in
8902 nvcc*) # Cuda Compiler Driver 2.2
8903 lt_prog_compiler_wl='-Xlinker '
8904 lt_prog_compiler_pic='-Xcompiler -fPIC'
8906 esac
8907 else
8908 # PORTME Check for flag to pass linker flags through the system compiler.
8909 case $host_os in
8910 aix*)
8911 lt_prog_compiler_wl='-Wl,'
8912 if test "$host_cpu" = ia64; then
8913 # AIX 5 now supports IA64 processor
8914 lt_prog_compiler_static='-Bstatic'
8915 else
8916 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8920 mingw* | cygwin* | pw32* | os2* | cegcc*)
8921 # This hack is so that the source file can tell whether it is being
8922 # built for inclusion in a dll (and should export symbols for example).
8923 lt_prog_compiler_pic='-DDLL_EXPORT'
8926 hpux9* | hpux10* | hpux11*)
8927 lt_prog_compiler_wl='-Wl,'
8928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8929 # not for PA HP-UX.
8930 case $host_cpu in
8931 hppa*64*|ia64*)
8932 # +Z the default
8935 lt_prog_compiler_pic='+Z'
8937 esac
8938 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8939 lt_prog_compiler_static='${wl}-a ${wl}archive'
8942 irix5* | irix6* | nonstopux*)
8943 lt_prog_compiler_wl='-Wl,'
8944 # PIC (with -KPIC) is the default.
8945 lt_prog_compiler_static='-non_shared'
8948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8949 case $cc_basename in
8950 # old Intel for x86_64 which still supported -KPIC.
8951 ecc*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-static'
8956 # icc used to be incompatible with GCC.
8957 # ICC 10 doesn't accept -KPIC any more.
8958 icc* | ifort*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-fPIC'
8961 lt_prog_compiler_static='-static'
8963 # Lahey Fortran 8.1.
8964 lf95*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='--shared'
8967 lt_prog_compiler_static='--static'
8969 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8970 # Portland Group compilers (*not* the Pentium gcc compiler,
8971 # which looks to be a dead project)
8972 lt_prog_compiler_wl='-Wl,'
8973 lt_prog_compiler_pic='-fpic'
8974 lt_prog_compiler_static='-Bstatic'
8976 ccc*)
8977 lt_prog_compiler_wl='-Wl,'
8978 # All Alpha code is PIC.
8979 lt_prog_compiler_static='-non_shared'
8981 xl* | bgxl* | bgf* | mpixl*)
8982 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_pic='-qpic'
8985 lt_prog_compiler_static='-qstaticlink'
8988 case `$CC -V 2>&1 | sed 5q` in
8989 *Sun\ F* | *Sun*Fortran*)
8990 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-Bstatic'
8993 lt_prog_compiler_wl=''
8995 *Sun\ C*)
8996 # Sun C 5.9
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 lt_prog_compiler_wl='-Wl,'
9001 esac
9003 esac
9006 newsos6)
9007 lt_prog_compiler_pic='-KPIC'
9008 lt_prog_compiler_static='-Bstatic'
9011 *nto* | *qnx*)
9012 # QNX uses GNU C++, but need to define -shared option too, otherwise
9013 # it will coredump.
9014 lt_prog_compiler_pic='-fPIC -shared'
9017 osf3* | osf4* | osf5*)
9018 lt_prog_compiler_wl='-Wl,'
9019 # All OSF/1 code is PIC.
9020 lt_prog_compiler_static='-non_shared'
9023 rdos*)
9024 lt_prog_compiler_static='-non_shared'
9027 solaris*)
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 case $cc_basename in
9031 f77* | f90* | f95*)
9032 lt_prog_compiler_wl='-Qoption ld ';;
9034 lt_prog_compiler_wl='-Wl,';;
9035 esac
9038 sunos4*)
9039 lt_prog_compiler_wl='-Qoption ld '
9040 lt_prog_compiler_pic='-PIC'
9041 lt_prog_compiler_static='-Bstatic'
9044 sysv4 | sysv4.2uw2* | sysv4.3*)
9045 lt_prog_compiler_wl='-Wl,'
9046 lt_prog_compiler_pic='-KPIC'
9047 lt_prog_compiler_static='-Bstatic'
9050 sysv4*MP*)
9051 if test -d /usr/nec ;then
9052 lt_prog_compiler_pic='-Kconform_pic'
9053 lt_prog_compiler_static='-Bstatic'
9057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_pic='-KPIC'
9060 lt_prog_compiler_static='-Bstatic'
9063 unicos*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_can_build_shared=no
9068 uts4*)
9069 lt_prog_compiler_pic='-pic'
9070 lt_prog_compiler_static='-Bstatic'
9074 lt_prog_compiler_can_build_shared=no
9076 esac
9079 case $host_os in
9080 # For platforms which do not support PIC, -DPIC is meaningless:
9081 *djgpp*)
9082 lt_prog_compiler_pic=
9085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9087 esac
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9089 $as_echo "$lt_prog_compiler_pic" >&6; }
9097 # Check to make sure the PIC flag actually works.
9099 if test -n "$lt_prog_compiler_pic"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9102 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 lt_cv_prog_compiler_pic_works=no
9106 ac_outfile=conftest.$ac_objext
9107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9109 # Insert the option either (1) after the last *FLAGS variable, or
9110 # (2) before a word containing "conftest.", or (3) at the end.
9111 # Note that $ac_compile itself does not contain backslashes and begins
9112 # with a dollar sign (not a hyphen), so the echo should work correctly.
9113 # The option is referenced via a variable to avoid confusing sed.
9114 lt_compile=`echo "$ac_compile" | $SED \
9115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9117 -e 's:$: $lt_compiler_flag:'`
9118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9119 (eval "$lt_compile" 2>conftest.err)
9120 ac_status=$?
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 if (exit $ac_status) && test -s "$ac_outfile"; then
9124 # The compiler can only warn and ignore the option if not recognized
9125 # So say no if there are warnings other than the usual output.
9126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_pic_works=yes
9132 $RM conftest*
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9136 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9138 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9139 case $lt_prog_compiler_pic in
9140 "" | " "*) ;;
9141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9142 esac
9143 else
9144 lt_prog_compiler_pic=
9145 lt_prog_compiler_can_build_shared=no
9156 # Check to make sure the static flag actually works.
9158 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9160 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9161 if ${lt_cv_prog_compiler_static_works+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 lt_cv_prog_compiler_static_works=no
9165 save_LDFLAGS="$LDFLAGS"
9166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9169 # The linker can only warn and ignore the option if not recognized
9170 # So say no if there are warnings
9171 if test -s conftest.err; then
9172 # Append any errors to the config.log.
9173 cat conftest.err 1>&5
9174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9176 if diff conftest.exp conftest.er2 >/dev/null; then
9177 lt_cv_prog_compiler_static_works=yes
9179 else
9180 lt_cv_prog_compiler_static_works=yes
9183 $RM -r conftest*
9184 LDFLAGS="$save_LDFLAGS"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9188 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9190 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9192 else
9193 lt_prog_compiler_static=
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9204 if ${lt_cv_prog_compiler_c_o+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 lt_cv_prog_compiler_c_o=no
9208 $RM -r conftest 2>/dev/null
9209 mkdir conftest
9210 cd conftest
9211 mkdir out
9212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9214 lt_compiler_flag="-o out/conftest2.$ac_objext"
9215 # Insert the option either (1) after the last *FLAGS variable, or
9216 # (2) before a word containing "conftest.", or (3) at the end.
9217 # Note that $ac_compile itself does not contain backslashes and begins
9218 # with a dollar sign (not a hyphen), so the echo should work correctly.
9219 lt_compile=`echo "$ac_compile" | $SED \
9220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9222 -e 's:$: $lt_compiler_flag:'`
9223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9224 (eval "$lt_compile" 2>out/conftest.err)
9225 ac_status=$?
9226 cat out/conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9229 then
9230 # The compiler can only warn and ignore the option if not recognized
9231 # So say no if there are warnings
9232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9235 lt_cv_prog_compiler_c_o=yes
9238 chmod u+w . 2>&5
9239 $RM conftest*
9240 # SGI C++ compiler will create directory out/ii_files/ for
9241 # template instantiation
9242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9243 $RM out/* && rmdir out
9244 cd ..
9245 $RM -r conftest
9246 $RM conftest*
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9259 if ${lt_cv_prog_compiler_c_o+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 lt_cv_prog_compiler_c_o=no
9263 $RM -r conftest 2>/dev/null
9264 mkdir conftest
9265 cd conftest
9266 mkdir out
9267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9269 lt_compiler_flag="-o out/conftest2.$ac_objext"
9270 # Insert the option either (1) after the last *FLAGS variable, or
9271 # (2) before a word containing "conftest.", or (3) at the end.
9272 # Note that $ac_compile itself does not contain backslashes and begins
9273 # with a dollar sign (not a hyphen), so the echo should work correctly.
9274 lt_compile=`echo "$ac_compile" | $SED \
9275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9277 -e 's:$: $lt_compiler_flag:'`
9278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9279 (eval "$lt_compile" 2>out/conftest.err)
9280 ac_status=$?
9281 cat out/conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9284 then
9285 # The compiler can only warn and ignore the option if not recognized
9286 # So say no if there are warnings
9287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9290 lt_cv_prog_compiler_c_o=yes
9293 chmod u+w . 2>&5
9294 $RM conftest*
9295 # SGI C++ compiler will create directory out/ii_files/ for
9296 # template instantiation
9297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9298 $RM out/* && rmdir out
9299 cd ..
9300 $RM -r conftest
9301 $RM conftest*
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9310 hard_links="nottested"
9311 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9312 # do not overwrite the value of need_locks provided by the user
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9314 $as_echo_n "checking if we can lock with hard links... " >&6; }
9315 hard_links=yes
9316 $RM conftest*
9317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9318 touch conftest.a
9319 ln conftest.a conftest.b 2>&5 || hard_links=no
9320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9322 $as_echo "$hard_links" >&6; }
9323 if test "$hard_links" = no; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9325 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9326 need_locks=warn
9328 else
9329 need_locks=no
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9338 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9340 runpath_var=
9341 allow_undefined_flag=
9342 always_export_symbols=no
9343 archive_cmds=
9344 archive_expsym_cmds=
9345 compiler_needs_object=no
9346 enable_shared_with_static_runtimes=no
9347 export_dynamic_flag_spec=
9348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9349 hardcode_automatic=no
9350 hardcode_direct=no
9351 hardcode_direct_absolute=no
9352 hardcode_libdir_flag_spec=
9353 hardcode_libdir_flag_spec_ld=
9354 hardcode_libdir_separator=
9355 hardcode_minus_L=no
9356 hardcode_shlibpath_var=unsupported
9357 inherit_rpath=no
9358 link_all_deplibs=unknown
9359 module_cmds=
9360 module_expsym_cmds=
9361 old_archive_from_new_cmds=
9362 old_archive_from_expsyms_cmds=
9363 thread_safe_flag_spec=
9364 whole_archive_flag_spec=
9365 # include_expsyms should be a list of space-separated symbols to be *always*
9366 # included in the symbol list
9367 include_expsyms=
9368 # exclude_expsyms can be an extended regexp of symbols to exclude
9369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9371 # as well as any symbol that contains `d'.
9372 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9374 # platforms (ab)use it in PIC code, but their linkers get confused if
9375 # the symbol is explicitly referenced. Since portable code cannot
9376 # rely on this symbol name, it's probably fine to never include it in
9377 # preloaded symbol tables.
9378 # Exclude shared library initialization/finalization symbols.
9379 extract_expsyms_cmds=
9381 case $host_os in
9382 cygwin* | mingw* | pw32* | cegcc*)
9383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9384 # When not using gcc, we currently assume that we are using
9385 # Microsoft Visual C++.
9386 if test "$GCC" != yes; then
9387 with_gnu_ld=no
9390 interix*)
9391 # we just hope/assume this is gcc and not c89 (= MSVC++)
9392 with_gnu_ld=yes
9394 openbsd*)
9395 with_gnu_ld=no
9397 esac
9399 ld_shlibs=yes
9401 # On some targets, GNU ld is compatible enough with the native linker
9402 # that we're better off using the native interface for both.
9403 lt_use_gnu_ld_interface=no
9404 if test "$with_gnu_ld" = yes; then
9405 case $host_os in
9406 aix*)
9407 # The AIX port of GNU ld has always aspired to compatibility
9408 # with the native linker. However, as the warning in the GNU ld
9409 # block says, versions before 2.19.5* couldn't really create working
9410 # shared libraries, regardless of the interface used.
9411 case `$LD -v 2>&1` in
9412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9414 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9416 lt_use_gnu_ld_interface=yes
9418 esac
9421 lt_use_gnu_ld_interface=yes
9423 esac
9426 if test "$lt_use_gnu_ld_interface" = yes; then
9427 # If archive_cmds runs LD, not CC, wlarc should be empty
9428 wlarc='${wl}'
9430 # Set some defaults for GNU ld with shared library support. These
9431 # are reset later if shared libraries are not supported. Putting them
9432 # here allows them to be overridden if necessary.
9433 runpath_var=LD_RUN_PATH
9434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435 export_dynamic_flag_spec='${wl}--export-dynamic'
9436 # ancient GNU ld didn't support --whole-archive et. al.
9437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9438 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9439 else
9440 whole_archive_flag_spec=
9442 supports_anon_versioning=no
9443 case `$LD -v 2>&1` in
9444 *GNU\ gold*) supports_anon_versioning=yes ;;
9445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9448 *\ 2.11.*) ;; # other 2.11 versions
9449 *) supports_anon_versioning=yes ;;
9450 esac
9452 # See if GNU ld supports shared libraries.
9453 case $host_os in
9454 aix[3-9]*)
9455 # On AIX/PPC, the GNU linker is very broken
9456 if test "$host_cpu" != ia64; then
9457 ld_shlibs=no
9458 cat <<_LT_EOF 1>&2
9460 *** Warning: the GNU linker, at least up to release 2.19, is reported
9461 *** to be unable to reliably create shared libraries on AIX.
9462 *** Therefore, libtool is disabling shared libraries support. If you
9463 *** really care for shared libraries, you may want to install binutils
9464 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9465 *** You will then need to restart the configuration process.
9467 _LT_EOF
9471 amigaos*)
9472 case $host_cpu in
9473 powerpc)
9474 # see comment about AmigaOS4 .so support
9475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9476 archive_expsym_cmds=''
9478 m68k)
9479 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)'
9480 hardcode_libdir_flag_spec='-L$libdir'
9481 hardcode_minus_L=yes
9483 esac
9486 beos*)
9487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9488 allow_undefined_flag=unsupported
9489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9490 # support --undefined. This deserves some investigation. FIXME
9491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492 else
9493 ld_shlibs=no
9497 cygwin* | mingw* | pw32* | cegcc*)
9498 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9499 # as there is no search path for DLLs.
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 export_dynamic_flag_spec='${wl}--export-all-symbols'
9502 allow_undefined_flag=unsupported
9503 always_export_symbols=no
9504 enable_shared_with_static_runtimes=yes
9505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9509 # If the export-symbols file already is a .def file (1st line
9510 # is EXPORTS), use it as is; otherwise, prepend...
9511 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9512 cp $export_symbols $output_objdir/$soname.def;
9513 else
9514 echo EXPORTS > $output_objdir/$soname.def;
9515 cat $export_symbols >> $output_objdir/$soname.def;
9517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9518 else
9519 ld_shlibs=no
9523 haiku*)
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 link_all_deplibs=yes
9528 interix[3-9]*)
9529 hardcode_direct=no
9530 hardcode_shlibpath_var=no
9531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9532 export_dynamic_flag_spec='${wl}-E'
9533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9534 # Instead, shared libraries are loaded at an image base (0x10000000 by
9535 # default) and relocated if they conflict, which is a slow very memory
9536 # consuming and fragmenting process. To avoid this, we pick a random,
9537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9540 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'
9543 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9544 tmp_diet=no
9545 if test "$host_os" = linux-dietlibc; then
9546 case $cc_basename in
9547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9548 esac
9550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9551 && test "$tmp_diet" = no
9552 then
9553 tmp_addflag=' $pic_flag'
9554 tmp_sharedflag='-shared'
9555 case $cc_basename,$host_cpu in
9556 pgcc*) # Portland Group C compiler
9557 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'
9558 tmp_addflag=' $pic_flag'
9560 pgf77* | pgf90* | pgf95* | pgfortran*)
9561 # Portland Group f77 and f90 compilers
9562 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'
9563 tmp_addflag=' $pic_flag -Mnomain' ;;
9564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9565 tmp_addflag=' -i_dynamic' ;;
9566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9567 tmp_addflag=' -i_dynamic -nofor_main' ;;
9568 ifc* | ifort*) # Intel Fortran compiler
9569 tmp_addflag=' -nofor_main' ;;
9570 lf95*) # Lahey Fortran 8.1
9571 whole_archive_flag_spec=
9572 tmp_sharedflag='--shared' ;;
9573 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9574 tmp_sharedflag='-qmkshrobj'
9575 tmp_addflag= ;;
9576 nvcc*) # Cuda Compiler Driver 2.2
9577 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'
9578 compiler_needs_object=yes
9580 esac
9581 case `$CC -V 2>&1 | sed 5q` in
9582 *Sun\ C*) # Sun C 5.9
9583 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'
9584 compiler_needs_object=yes
9585 tmp_sharedflag='-G' ;;
9586 *Sun\ F*) # Sun Fortran 8.3
9587 tmp_sharedflag='-G' ;;
9588 esac
9589 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591 if test "x$supports_anon_versioning" = xyes; then
9592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9594 echo "local: *; };" >> $output_objdir/$libname.ver~
9595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9598 case $cc_basename in
9599 xlf* | bgf* | bgxlf* | mpixlf*)
9600 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9601 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9602 hardcode_libdir_flag_spec=
9603 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9604 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9605 if test "x$supports_anon_versioning" = xyes; then
9606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9608 echo "local: *; };" >> $output_objdir/$libname.ver~
9609 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9612 esac
9613 else
9614 ld_shlibs=no
9618 netbsd*)
9619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9620 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9621 wlarc=
9622 else
9623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9628 solaris*)
9629 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9630 ld_shlibs=no
9631 cat <<_LT_EOF 1>&2
9633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9634 *** create shared libraries on Solaris systems. Therefore, libtool
9635 *** is disabling shared libraries support. We urge you to upgrade GNU
9636 *** binutils to release 2.9.1 or newer. Another option is to modify
9637 *** your PATH or compiler configuration so that the native linker is
9638 *** used, and then restart.
9640 _LT_EOF
9641 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9644 else
9645 ld_shlibs=no
9649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9650 case `$LD -v 2>&1` in
9651 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9652 ld_shlibs=no
9653 cat <<_LT_EOF 1>&2
9655 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9656 *** reliably create shared libraries on SCO systems. Therefore, libtool
9657 *** is disabling shared libraries support. We urge you to upgrade GNU
9658 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9659 *** your PATH or compiler configuration so that the native linker is
9660 *** used, and then restart.
9662 _LT_EOF
9665 # For security reasons, it is highly recommended that you always
9666 # use absolute paths for naming shared libraries, and exclude the
9667 # DT_RUNPATH tag from executables and libraries. But doing so
9668 # requires that you compile everything twice, which is a pain.
9669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9673 else
9674 ld_shlibs=no
9677 esac
9680 sunos4*)
9681 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682 wlarc=
9683 hardcode_direct=yes
9684 hardcode_shlibpath_var=no
9688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9691 else
9692 ld_shlibs=no
9695 esac
9697 if test "$ld_shlibs" = no; then
9698 runpath_var=
9699 hardcode_libdir_flag_spec=
9700 export_dynamic_flag_spec=
9701 whole_archive_flag_spec=
9703 else
9704 # PORTME fill in a description of your system's linker (not GNU ld)
9705 case $host_os in
9706 aix3*)
9707 allow_undefined_flag=unsupported
9708 always_export_symbols=yes
9709 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'
9710 # Note: this linker hardcodes the directories in LIBPATH if there
9711 # are no directories specified by -L.
9712 hardcode_minus_L=yes
9713 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9714 # Neither direct hardcoding nor static linking is supported with a
9715 # broken collect2.
9716 hardcode_direct=unsupported
9720 aix[4-9]*)
9721 if test "$host_cpu" = ia64; then
9722 # On IA64, the linker does run time linking by default, so we don't
9723 # have to do anything special.
9724 aix_use_runtimelinking=no
9725 exp_sym_flag='-Bexport'
9726 no_entry_flag=""
9727 else
9728 # If we're using GNU nm, then we don't want the "-C" option.
9729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9730 # Also, AIX nm treats weak defined symbols like other global
9731 # defined symbols, whereas GNU nm marks them as "W".
9732 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9733 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'
9734 else
9735 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'
9737 aix_use_runtimelinking=no
9739 # Test if we are trying to use run time linking or normal
9740 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9741 # need to do runtime linking.
9742 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9743 for ld_flag in $LDFLAGS; do
9744 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9745 aix_use_runtimelinking=yes
9746 break
9748 done
9750 esac
9752 exp_sym_flag='-bexport'
9753 no_entry_flag='-bnoentry'
9756 # When large executables or shared objects are built, AIX ld can
9757 # have problems creating the table of contents. If linking a library
9758 # or program results in "error TOC overflow" add -mminimal-toc to
9759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9762 archive_cmds=''
9763 hardcode_direct=yes
9764 hardcode_direct_absolute=yes
9765 hardcode_libdir_separator=':'
9766 link_all_deplibs=yes
9767 file_list_spec='${wl}-f,'
9769 if test "$GCC" = yes; then
9770 case $host_os in aix4.[012]|aix4.[012].*)
9771 # We only want to do this on AIX 4.2 and lower, the check
9772 # below for broken collect2 doesn't work under 4.3+
9773 collect2name=`${CC} -print-prog-name=collect2`
9774 if test -f "$collect2name" &&
9775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9776 then
9777 # We have reworked collect2
9779 else
9780 # We have old collect2
9781 hardcode_direct=unsupported
9782 # It fails to find uninstalled libraries when the uninstalled
9783 # path is not listed in the libpath. Setting hardcode_minus_L
9784 # to unsupported forces relinking
9785 hardcode_minus_L=yes
9786 hardcode_libdir_flag_spec='-L$libdir'
9787 hardcode_libdir_separator=
9790 esac
9791 shared_flag='-shared'
9792 if test "$aix_use_runtimelinking" = yes; then
9793 shared_flag="$shared_flag "'${wl}-G'
9795 else
9796 # not using gcc
9797 if test "$host_cpu" = ia64; then
9798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9799 # chokes on -Wl,-G. The following line is correct:
9800 shared_flag='-G'
9801 else
9802 if test "$aix_use_runtimelinking" = yes; then
9803 shared_flag='${wl}-G'
9804 else
9805 shared_flag='${wl}-bM:SRE'
9810 export_dynamic_flag_spec='${wl}-bexpall'
9811 # It seems that -bexpall does not export symbols beginning with
9812 # underscore (_), so it is better to generate a list of symbols to export.
9813 always_export_symbols=yes
9814 if test "$aix_use_runtimelinking" = yes; then
9815 # Warning - without using the other runtime loading flags (-brtl),
9816 # -berok will link without error, but may produce a broken library.
9817 allow_undefined_flag='-berok'
9818 # Determine the default libpath from the value encoded in an
9819 # empty executable.
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9824 main ()
9828 return 0;
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9833 lt_aix_libpath_sed='
9834 /Import File Strings/,/^$/ {
9835 /^0/ {
9836 s/^0 *\(.*\)$/\1/
9840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 # Check for a 64-bit object if we didn't find anything.
9842 if test -z "$aix_libpath"; then
9843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9851 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"
9852 else
9853 if test "$host_cpu" = ia64; then
9854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9855 allow_undefined_flag="-z nodefs"
9856 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"
9857 else
9858 # Determine the default libpath from the value encoded in an
9859 # empty executable.
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9864 main ()
9868 return 0;
9870 _ACEOF
9871 if ac_fn_c_try_link "$LINENO"; then :
9873 lt_aix_libpath_sed='
9874 /Import File Strings/,/^$/ {
9875 /^0/ {
9876 s/^0 *\(.*\)$/\1/
9880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9881 # Check for a 64-bit object if we didn't find anything.
9882 if test -z "$aix_libpath"; then
9883 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9891 # Warning - without using the other run time loading flags,
9892 # -berok will link without error, but may produce a broken library.
9893 no_undefined_flag=' ${wl}-bernotok'
9894 allow_undefined_flag=' ${wl}-berok'
9895 if test "$with_gnu_ld" = yes; then
9896 # We only use this code for GNU lds that support --whole-archive.
9897 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9898 else
9899 # Exported symbols can be pulled into shared objects from archives
9900 whole_archive_flag_spec='$convenience'
9902 archive_cmds_need_lc=yes
9903 # This is similar to how AIX traditionally builds its shared libraries.
9904 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'
9909 amigaos*)
9910 case $host_cpu in
9911 powerpc)
9912 # see comment about AmigaOS4 .so support
9913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914 archive_expsym_cmds=''
9916 m68k)
9917 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)'
9918 hardcode_libdir_flag_spec='-L$libdir'
9919 hardcode_minus_L=yes
9921 esac
9924 bsdi[45]*)
9925 export_dynamic_flag_spec=-rdynamic
9928 cygwin* | mingw* | pw32* | cegcc*)
9929 # When not using gcc, we currently assume that we are using
9930 # Microsoft Visual C++.
9931 # hardcode_libdir_flag_spec is actually meaningless, as there is
9932 # no search path for DLLs.
9933 hardcode_libdir_flag_spec=' '
9934 allow_undefined_flag=unsupported
9935 # Tell ltmain to make .lib files, not .a files.
9936 libext=lib
9937 # Tell ltmain to make .dll files, not .so files.
9938 shrext_cmds=".dll"
9939 # FIXME: Setting linknames here is a bad hack.
9940 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9941 # The linker will automatically build a .lib file if we build a DLL.
9942 old_archive_from_new_cmds='true'
9943 # FIXME: Should let the user specify the lib program.
9944 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9945 fix_srcfile_path='`cygpath -w "$srcfile"`'
9946 enable_shared_with_static_runtimes=yes
9949 darwin* | rhapsody*)
9952 archive_cmds_need_lc=no
9953 hardcode_direct=no
9954 hardcode_automatic=yes
9955 hardcode_shlibpath_var=unsupported
9956 if test "$lt_cv_ld_force_load" = "yes"; then
9957 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\"`'
9958 else
9959 whole_archive_flag_spec=''
9961 link_all_deplibs=yes
9962 allow_undefined_flag="$_lt_dar_allow_undefined"
9963 case $cc_basename in
9964 ifort*) _lt_dar_can_shared=yes ;;
9965 *) _lt_dar_can_shared=$GCC ;;
9966 esac
9967 if test "$_lt_dar_can_shared" = "yes"; then
9968 output_verbose_link_cmd=func_echo_all
9969 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9970 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9971 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}"
9972 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}"
9974 else
9975 ld_shlibs=no
9980 dgux*)
9981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_shlibpath_var=no
9986 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9987 # support. Future versions do this automatically, but an explicit c++rt0.o
9988 # does not break anything, and helps significantly (at the cost of a little
9989 # extra space).
9990 freebsd2.2*)
9991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9992 hardcode_libdir_flag_spec='-R$libdir'
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9997 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9998 freebsd2.*)
9999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=yes
10001 hardcode_minus_L=yes
10002 hardcode_shlibpath_var=no
10005 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10006 freebsd* | dragonfly*)
10007 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10013 hpux9*)
10014 if test "$GCC" = yes; then
10015 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'
10016 else
10017 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'
10019 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10020 hardcode_libdir_separator=:
10021 hardcode_direct=yes
10023 # hardcode_minus_L: Not really in the search PATH,
10024 # but as the default location of the library.
10025 hardcode_minus_L=yes
10026 export_dynamic_flag_spec='${wl}-E'
10029 hpux10*)
10030 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10031 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10035 if test "$with_gnu_ld" = no; then
10036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10037 hardcode_libdir_flag_spec_ld='+b $libdir'
10038 hardcode_libdir_separator=:
10039 hardcode_direct=yes
10040 hardcode_direct_absolute=yes
10041 export_dynamic_flag_spec='${wl}-E'
10042 # hardcode_minus_L: Not really in the search PATH,
10043 # but as the default location of the library.
10044 hardcode_minus_L=yes
10048 hpux11*)
10049 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10050 case $host_cpu in
10051 hppa*64*)
10052 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10054 ia64*)
10055 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10060 esac
10061 else
10062 case $host_cpu in
10063 hppa*64*)
10064 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10066 ia64*)
10067 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10071 # Older versions of the 11.00 compiler do not understand -b yet
10072 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10074 $as_echo_n "checking if $CC understands -b... " >&6; }
10075 if ${lt_cv_prog_compiler__b+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 lt_cv_prog_compiler__b=no
10079 save_LDFLAGS="$LDFLAGS"
10080 LDFLAGS="$LDFLAGS -b"
10081 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10082 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10083 # The linker can only warn and ignore the option if not recognized
10084 # So say no if there are warnings
10085 if test -s conftest.err; then
10086 # Append any errors to the config.log.
10087 cat conftest.err 1>&5
10088 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10090 if diff conftest.exp conftest.er2 >/dev/null; then
10091 lt_cv_prog_compiler__b=yes
10093 else
10094 lt_cv_prog_compiler__b=yes
10097 $RM -r conftest*
10098 LDFLAGS="$save_LDFLAGS"
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10102 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10104 if test x"$lt_cv_prog_compiler__b" = xyes; then
10105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10106 else
10107 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10111 esac
10113 if test "$with_gnu_ld" = no; then
10114 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10115 hardcode_libdir_separator=:
10117 case $host_cpu in
10118 hppa*64*|ia64*)
10119 hardcode_direct=no
10120 hardcode_shlibpath_var=no
10123 hardcode_direct=yes
10124 hardcode_direct_absolute=yes
10125 export_dynamic_flag_spec='${wl}-E'
10127 # hardcode_minus_L: Not really in the search PATH,
10128 # but as the default location of the library.
10129 hardcode_minus_L=yes
10131 esac
10135 irix5* | irix6* | nonstopux*)
10136 if test "$GCC" = yes; then
10137 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'
10138 # Try to use the -exported_symbol ld option, if it does not
10139 # work, assume that -exports_file does not work either and
10140 # implicitly export all symbols.
10141 save_LDFLAGS="$LDFLAGS"
10142 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 int foo(void) {}
10146 _ACEOF
10147 if ac_fn_c_try_link "$LINENO"; then :
10148 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'
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LDFLAGS="$save_LDFLAGS"
10154 else
10155 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'
10156 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'
10158 archive_cmds_need_lc='no'
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 hardcode_libdir_separator=:
10161 inherit_rpath=yes
10162 link_all_deplibs=yes
10165 netbsd*)
10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10168 else
10169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10171 hardcode_libdir_flag_spec='-R$libdir'
10172 hardcode_direct=yes
10173 hardcode_shlibpath_var=no
10176 newsos6)
10177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_direct=yes
10179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10180 hardcode_libdir_separator=:
10181 hardcode_shlibpath_var=no
10184 *nto* | *qnx*)
10187 openbsd*)
10188 if test -f /usr/libexec/ld.so; then
10189 hardcode_direct=yes
10190 hardcode_shlibpath_var=no
10191 hardcode_direct_absolute=yes
10192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10193 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10196 export_dynamic_flag_spec='${wl}-E'
10197 else
10198 case $host_os in
10199 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_libdir_flag_spec='-R$libdir'
10204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10207 esac
10209 else
10210 ld_shlibs=no
10214 os2*)
10215 hardcode_libdir_flag_spec='-L$libdir'
10216 hardcode_minus_L=yes
10217 allow_undefined_flag=unsupported
10218 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'
10219 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10222 osf3*)
10223 if test "$GCC" = yes; then
10224 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10225 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'
10226 else
10227 allow_undefined_flag=' -expect_unresolved \*'
10228 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'
10230 archive_cmds_need_lc='no'
10231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10232 hardcode_libdir_separator=:
10235 osf4* | osf5*) # as osf3* with the addition of -msym flag
10236 if test "$GCC" = yes; then
10237 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10238 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'
10239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10240 else
10241 allow_undefined_flag=' -expect_unresolved \*'
10242 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'
10243 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~
10244 $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'
10246 # Both c and cxx compiler support -rpath directly
10247 hardcode_libdir_flag_spec='-rpath $libdir'
10249 archive_cmds_need_lc='no'
10250 hardcode_libdir_separator=:
10253 solaris*)
10254 no_undefined_flag=' -z defs'
10255 if test "$GCC" = yes; then
10256 wlarc='${wl}'
10257 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10259 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10260 else
10261 case `$CC -V 2>&1` in
10262 *"Compilers 5.0"*)
10263 wlarc=''
10264 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10266 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10269 wlarc='${wl}'
10270 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10274 esac
10276 hardcode_libdir_flag_spec='-R$libdir'
10277 hardcode_shlibpath_var=no
10278 case $host_os in
10279 solaris2.[0-5] | solaris2.[0-5].*) ;;
10281 # The compiler driver will combine and reorder linker options,
10282 # but understands `-z linker_flag'. GCC discards it without `$wl',
10283 # but is careful enough not to reorder.
10284 # Supported since Solaris 2.6 (maybe 2.5.1?)
10285 if test "$GCC" = yes; then
10286 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10287 else
10288 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10291 esac
10292 link_all_deplibs=yes
10295 sunos4*)
10296 if test "x$host_vendor" = xsequent; then
10297 # Use $CC to link under sequent, because it throws in some extra .o
10298 # files that make .init and .fini sections work.
10299 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10300 else
10301 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_libdir_flag_spec='-L$libdir'
10304 hardcode_direct=yes
10305 hardcode_minus_L=yes
10306 hardcode_shlibpath_var=no
10309 sysv4)
10310 case $host_vendor in
10311 sni)
10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_direct=yes # is this really true???
10315 siemens)
10316 ## LD is ld it makes a PLAMLIB
10317 ## CC just makes a GrossModule.
10318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10319 reload_cmds='$CC -r -o $output$reload_objs'
10320 hardcode_direct=no
10322 motorola)
10323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10326 esac
10327 runpath_var='LD_RUN_PATH'
10328 hardcode_shlibpath_var=no
10331 sysv4.3*)
10332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10333 hardcode_shlibpath_var=no
10334 export_dynamic_flag_spec='-Bexport'
10337 sysv4*MP*)
10338 if test -d /usr/nec; then
10339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_shlibpath_var=no
10341 runpath_var=LD_RUN_PATH
10342 hardcode_runpath_var=yes
10343 ld_shlibs=yes
10347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10348 no_undefined_flag='${wl}-z,text'
10349 archive_cmds_need_lc=no
10350 hardcode_shlibpath_var=no
10351 runpath_var='LD_RUN_PATH'
10353 if test "$GCC" = yes; then
10354 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 else
10357 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 sysv5* | sco3.2v5* | sco5v6*)
10363 # Note: We can NOT use -z defs as we might desire, because we do not
10364 # link with -lc, and that would cause any symbols used from libc to
10365 # always be unresolved, which means just about no library would
10366 # ever link correctly. If we're not using GNU ld we use -z text
10367 # though, which does catch some bad symbols but isn't as heavy-handed
10368 # as -z defs.
10369 no_undefined_flag='${wl}-z,text'
10370 allow_undefined_flag='${wl}-z,nodefs'
10371 archive_cmds_need_lc=no
10372 hardcode_shlibpath_var=no
10373 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10374 hardcode_libdir_separator=':'
10375 link_all_deplibs=yes
10376 export_dynamic_flag_spec='${wl}-Bexport'
10377 runpath_var='LD_RUN_PATH'
10379 if test "$GCC" = yes; then
10380 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10382 else
10383 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 uts4*)
10389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_libdir_flag_spec='-L$libdir'
10391 hardcode_shlibpath_var=no
10395 ld_shlibs=no
10397 esac
10399 if test x$host_vendor = xsni; then
10400 case $host in
10401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10402 export_dynamic_flag_spec='${wl}-Blargedynsym'
10404 esac
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10409 $as_echo "$ld_shlibs" >&6; }
10410 test "$ld_shlibs" = no && can_build_shared=no
10412 with_gnu_ld=$with_gnu_ld
10429 # Do we need to explicitly link libc?
10431 case "x$archive_cmds_need_lc" in
10432 x|xyes)
10433 # Assume -lc should be added
10434 archive_cmds_need_lc=yes
10436 if test "$enable_shared" = yes && test "$GCC" = yes; then
10437 case $archive_cmds in
10438 *'~'*)
10439 # FIXME: we may have to deal with multi-command sequences.
10441 '$CC '*)
10442 # Test whether the compiler implicitly links with -lc since on some
10443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10444 # to ld, don't add -lc before -lgcc.
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10446 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10447 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 $RM conftest*
10451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10454 (eval $ac_compile) 2>&5
10455 ac_status=$?
10456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10457 test $ac_status = 0; } 2>conftest.err; then
10458 soname=conftest
10459 lib=conftest
10460 libobjs=conftest.$ac_objext
10461 deplibs=
10462 wl=$lt_prog_compiler_wl
10463 pic_flag=$lt_prog_compiler_pic
10464 compiler_flags=-v
10465 linker_flags=-v
10466 verstring=
10467 output_objdir=.
10468 libname=conftest
10469 lt_save_allow_undefined_flag=$allow_undefined_flag
10470 allow_undefined_flag=
10471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10472 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10473 ac_status=$?
10474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10475 test $ac_status = 0; }
10476 then
10477 lt_cv_archive_cmds_need_lc=no
10478 else
10479 lt_cv_archive_cmds_need_lc=yes
10481 allow_undefined_flag=$lt_save_allow_undefined_flag
10482 else
10483 cat conftest.err 1>&5
10485 $RM conftest*
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10489 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10490 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10492 esac
10495 esac
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10654 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10656 if test "$GCC" = yes; then
10657 case $host_os in
10658 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10659 *) lt_awk_arg="/^libraries:/" ;;
10660 esac
10661 case $host_os in
10662 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10663 *) lt_sed_strip_eq="s,=/,/,g" ;;
10664 esac
10665 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10666 case $lt_search_path_spec in
10667 *\;*)
10668 # if the path contains ";" then we assume it to be the separator
10669 # otherwise default to the standard path separator (i.e. ":") - it is
10670 # assumed that no part of a normal pathname contains ";" but that should
10671 # okay in the real world where ";" in dirpaths is itself problematic.
10672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10677 esac
10678 # Ok, now we have the path, separated by spaces, we can step through it
10679 # and add multilib dir if necessary.
10680 lt_tmp_lt_search_path_spec=
10681 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10682 for lt_sys_path in $lt_search_path_spec; do
10683 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10684 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10685 else
10686 test -d "$lt_sys_path" && \
10687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10689 done
10690 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10691 BEGIN {RS=" "; FS="/|\n";} {
10692 lt_foo="";
10693 lt_count=0;
10694 for (lt_i = NF; lt_i > 0; lt_i--) {
10695 if ($lt_i != "" && $lt_i != ".") {
10696 if ($lt_i == "..") {
10697 lt_count++;
10698 } else {
10699 if (lt_count == 0) {
10700 lt_foo="/" $lt_i lt_foo;
10701 } else {
10702 lt_count--;
10707 if (lt_foo != "") { lt_freq[lt_foo]++; }
10708 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10710 # AWK program above erroneously prepends '/' to C:/dos/paths
10711 # for these hosts.
10712 case $host_os in
10713 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10714 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10715 esac
10716 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10717 else
10718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10720 library_names_spec=
10721 libname_spec='lib$name'
10722 soname_spec=
10723 shrext_cmds=".so"
10724 postinstall_cmds=
10725 postuninstall_cmds=
10726 finish_cmds=
10727 finish_eval=
10728 shlibpath_var=
10729 shlibpath_overrides_runpath=unknown
10730 version_type=none
10731 dynamic_linker="$host_os ld.so"
10732 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10733 need_lib_prefix=unknown
10734 hardcode_into_libs=no
10736 # when you set need_version to no, make sure it does not cause -set_version
10737 # flags to be left without arguments
10738 need_version=unknown
10740 case $host_os in
10741 aix3*)
10742 version_type=linux
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10744 shlibpath_var=LIBPATH
10746 # AIX 3 has no versioning support, so we append a major version to the name.
10747 soname_spec='${libname}${release}${shared_ext}$major'
10750 aix[4-9]*)
10751 version_type=linux
10752 need_lib_prefix=no
10753 need_version=no
10754 hardcode_into_libs=yes
10755 if test "$host_cpu" = ia64; then
10756 # AIX 5 supports IA64
10757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 else
10760 # With GCC up to 2.95.x, collect2 would create an import file
10761 # for dependence libraries. The import file would start with
10762 # the line `#! .'. This would cause the generated library to
10763 # depend on `.', always an invalid library. This was fixed in
10764 # development snapshots of GCC prior to 3.0.
10765 case $host_os in
10766 aix4 | aix4.[01] | aix4.[01].*)
10767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10768 echo ' yes '
10769 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10771 else
10772 can_build_shared=no
10775 esac
10776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10777 # soname into executable. Probably we can add versioning support to
10778 # collect2, so additional links can be useful in future.
10779 if test "$aix_use_runtimelinking" = yes; then
10780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10781 # instead of lib<name>.a to let people know that these are not
10782 # typical AIX shared libraries.
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 else
10785 # We preserve .a as extension for shared libraries through AIX4.2
10786 # and later when we are not doing run time linking.
10787 library_names_spec='${libname}${release}.a $libname.a'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LIBPATH
10794 amigaos*)
10795 case $host_cpu in
10796 powerpc)
10797 # Since July 2007 AmigaOS4 officially supports .so libraries.
10798 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 m68k)
10802 library_names_spec='$libname.ixlibrary $libname.a'
10803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10804 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'
10806 esac
10809 beos*)
10810 library_names_spec='${libname}${shared_ext}'
10811 dynamic_linker="$host_os ld.so"
10812 shlibpath_var=LIBRARY_PATH
10815 bsdi[45]*)
10816 version_type=linux
10817 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10823 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10824 # the default ld.so.conf also contains /usr/contrib/lib and
10825 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10826 # libtool to hard-code these into programs
10829 cygwin* | mingw* | pw32* | cegcc*)
10830 version_type=windows
10831 shrext_cmds=".dll"
10832 need_version=no
10833 need_lib_prefix=no
10835 case $GCC,$host_os in
10836 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10837 library_names_spec='$libname.dll.a'
10838 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10839 postinstall_cmds='base_file=`basename \${file}`~
10840 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10841 dldir=$destdir/`dirname \$dlpath`~
10842 test -d \$dldir || mkdir -p \$dldir~
10843 $install_prog $dir/$dlname \$dldir/$dlname~
10844 chmod a+x \$dldir/$dlname~
10845 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10846 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10849 dlpath=$dir/\$dldll~
10850 $RM \$dlpath'
10851 shlibpath_overrides_runpath=yes
10853 case $host_os in
10854 cygwin*)
10855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10858 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10860 mingw* | cegcc*)
10861 # MinGW DLLs use traditional 'lib' prefix
10862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864 pw32*)
10865 # pw32 DLLs use 'pw' prefix rather than 'lib'
10866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10868 esac
10872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10874 esac
10875 dynamic_linker='Win32 ld.exe'
10876 # FIXME: first we should search . and the directory the executable is in
10877 shlibpath_var=PATH
10880 darwin* | rhapsody*)
10881 dynamic_linker="$host_os dyld"
10882 version_type=darwin
10883 need_lib_prefix=no
10884 need_version=no
10885 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10886 soname_spec='${libname}${release}${major}$shared_ext'
10887 shlibpath_overrides_runpath=yes
10888 shlibpath_var=DYLD_LIBRARY_PATH
10889 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10895 dgux*)
10896 version_type=linux
10897 need_lib_prefix=no
10898 need_version=no
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10904 freebsd* | dragonfly*)
10905 # DragonFly does not have aout. When/if they implement a new
10906 # versioning mechanism, adjust this.
10907 if test -x /usr/bin/objformat; then
10908 objformat=`/usr/bin/objformat`
10909 else
10910 case $host_os in
10911 freebsd[23].*) objformat=aout ;;
10912 *) objformat=elf ;;
10913 esac
10915 version_type=freebsd-$objformat
10916 case $version_type in
10917 freebsd-elf*)
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 need_version=no
10920 need_lib_prefix=no
10922 freebsd-*)
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10924 need_version=yes
10926 esac
10927 shlibpath_var=LD_LIBRARY_PATH
10928 case $host_os in
10929 freebsd2.*)
10930 shlibpath_overrides_runpath=yes
10932 freebsd3.[01]* | freebsdelf3.[01]*)
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10938 shlibpath_overrides_runpath=no
10939 hardcode_into_libs=yes
10941 *) # from 4.6 on, and DragonFly
10942 shlibpath_overrides_runpath=yes
10943 hardcode_into_libs=yes
10945 esac
10948 haiku*)
10949 version_type=linux
10950 need_lib_prefix=no
10951 need_version=no
10952 dynamic_linker="$host_os runtime_loader"
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 shlibpath_var=LIBRARY_PATH
10956 shlibpath_overrides_runpath=yes
10957 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10958 hardcode_into_libs=yes
10961 hpux9* | hpux10* | hpux11*)
10962 # Give a soname corresponding to the major version so that dld.sl refuses to
10963 # link against other versions.
10964 version_type=sunos
10965 need_lib_prefix=no
10966 need_version=no
10967 case $host_cpu in
10968 ia64*)
10969 shrext_cmds='.so'
10970 hardcode_into_libs=yes
10971 dynamic_linker="$host_os dld.so"
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 if test "X$HPUX_IA64_MODE" = X32; then
10977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10978 else
10979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10983 hppa*64*)
10984 shrext_cmds='.sl'
10985 hardcode_into_libs=yes
10986 dynamic_linker="$host_os dld.sl"
10987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10995 shrext_cmds='.sl'
10996 dynamic_linker="$host_os dld.sl"
10997 shlibpath_var=SHLIB_PATH
10998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11002 esac
11003 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11004 postinstall_cmds='chmod 555 $lib'
11005 # or fails outright, so override atomically:
11006 install_override_mode=555
11009 interix[3-9]*)
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=no
11018 hardcode_into_libs=yes
11021 irix5* | irix6* | nonstopux*)
11022 case $host_os in
11023 nonstopux*) version_type=nonstopux ;;
11025 if test "$lt_cv_prog_gnu_ld" = yes; then
11026 version_type=linux
11027 else
11028 version_type=irix
11029 fi ;;
11030 esac
11031 need_lib_prefix=no
11032 need_version=no
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11035 case $host_os in
11036 irix5* | nonstopux*)
11037 libsuff= shlibsuff=
11040 case $LD in # libtool.m4 will add one of these switches to LD
11041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11042 libsuff= shlibsuff= libmagic=32-bit;;
11043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11044 libsuff=32 shlibsuff=N32 libmagic=N32;;
11045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11047 *) libsuff= shlibsuff= libmagic=never-match;;
11048 esac
11050 esac
11051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11052 shlibpath_overrides_runpath=no
11053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11055 hardcode_into_libs=yes
11058 # No shared lib support for Linux oldld, aout, or coff.
11059 linux*oldld* | linux*aout* | linux*coff*)
11060 dynamic_linker=no
11063 # This must be Linux ELF.
11065 # uclinux* changes (here and below) have been submitted to the libtool
11066 # project, but have not yet been accepted: they are GCC-local changes
11067 # for the time being. (See
11068 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11069 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11070 version_type=linux
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 shlibpath_overrides_runpath=no
11079 # Some binutils ld are patched to set DT_RUNPATH
11080 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 lt_cv_shlibpath_overrides_runpath=no
11084 save_LDFLAGS=$LDFLAGS
11085 save_libdir=$libdir
11086 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11087 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11092 main ()
11096 return 0;
11098 _ACEOF
11099 if ac_fn_c_try_link "$LINENO"; then :
11100 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11101 lt_cv_shlibpath_overrides_runpath=yes
11104 rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LDFLAGS=$save_LDFLAGS
11107 libdir=$save_libdir
11111 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11113 # This implies no fast_install, which is unacceptable.
11114 # Some rework will be needed to allow for fast_install
11115 # before this can be enabled.
11116 hardcode_into_libs=yes
11118 # Append ld.so.conf contents to the search path
11119 if test -f /etc/ld.so.conf; then
11120 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' ' '`
11121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11124 # We used to test for /lib/ld.so.1 and disable shared libraries on
11125 # powerpc, because MkLinux only supported shared libraries with the
11126 # GNU dynamic linker. Since this was broken with cross compilers,
11127 # most powerpc-linux boxes support dynamic linking these days and
11128 # people can always --disable-shared, the test was removed, and we
11129 # assume the GNU/Linux dynamic linker is in use.
11130 dynamic_linker='GNU/Linux ld.so'
11133 netbsd*)
11134 version_type=sunos
11135 need_lib_prefix=no
11136 need_version=no
11137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11140 dynamic_linker='NetBSD (a.out) ld.so'
11141 else
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 dynamic_linker='NetBSD ld.elf_so'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 hardcode_into_libs=yes
11151 newsos6)
11152 version_type=linux
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11158 *nto* | *qnx*)
11159 version_type=qnx
11160 need_lib_prefix=no
11161 need_version=no
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=no
11166 hardcode_into_libs=yes
11167 dynamic_linker='ldqnx.so'
11170 openbsd*)
11171 version_type=sunos
11172 sys_lib_dlsearch_path_spec="/usr/lib"
11173 need_lib_prefix=no
11174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11175 case $host_os in
11176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11177 *) need_version=no ;;
11178 esac
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11183 case $host_os in
11184 openbsd2.[89] | openbsd2.[89].*)
11185 shlibpath_overrides_runpath=no
11188 shlibpath_overrides_runpath=yes
11190 esac
11191 else
11192 shlibpath_overrides_runpath=yes
11196 os2*)
11197 libname_spec='$name'
11198 shrext_cmds=".dll"
11199 need_lib_prefix=no
11200 library_names_spec='$libname${shared_ext} $libname.a'
11201 dynamic_linker='OS/2 ld.exe'
11202 shlibpath_var=LIBPATH
11205 osf3* | osf4* | osf5*)
11206 version_type=osf
11207 need_lib_prefix=no
11208 need_version=no
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11216 rdos*)
11217 dynamic_linker=no
11220 solaris*)
11221 version_type=linux
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 hardcode_into_libs=yes
11229 # ldd complains unless libraries are executable
11230 postinstall_cmds='chmod +x $lib'
11233 sunos4*)
11234 version_type=sunos
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 if test "$with_gnu_ld" = yes; then
11240 need_lib_prefix=no
11242 need_version=yes
11245 sysv4 | sysv4.3*)
11246 version_type=linux
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 case $host_vendor in
11251 sni)
11252 shlibpath_overrides_runpath=no
11253 need_lib_prefix=no
11254 runpath_var=LD_RUN_PATH
11256 siemens)
11257 need_lib_prefix=no
11259 motorola)
11260 need_lib_prefix=no
11261 need_version=no
11262 shlibpath_overrides_runpath=no
11263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11265 esac
11268 sysv4*MP*)
11269 if test -d /usr/nec ;then
11270 version_type=linux
11271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11272 soname_spec='$libname${shared_ext}.$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11278 version_type=freebsd-elf
11279 need_lib_prefix=no
11280 need_version=no
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 shlibpath_overrides_runpath=yes
11285 hardcode_into_libs=yes
11286 if test "$with_gnu_ld" = yes; then
11287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11288 else
11289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11290 case $host_os in
11291 sco3.2v5*)
11292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11294 esac
11296 sys_lib_dlsearch_path_spec='/usr/lib'
11299 tpf*)
11300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11301 version_type=linux
11302 need_lib_prefix=no
11303 need_version=no
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=no
11307 hardcode_into_libs=yes
11310 uts4*)
11311 version_type=linux
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 shlibpath_var=LD_LIBRARY_PATH
11317 # Shared libraries for VwWorks, >= 7 only at this stage
11318 # and (fpic) still incompatible with "large" code models
11319 # in a few configurations. Only for RTP mode in any case,
11320 # and upon explicit request at configure time.
11321 vxworks7*)
11322 dynamic_linker=no
11323 case ${with_multisubdir}-${enable_shared} in
11324 *large*)
11326 *mrtp*-yes)
11327 version_type=linux
11328 need_lib_prefix=no
11329 need_version=no
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 dynamic_linker="$host_os module_loader"
11334 esac
11337 dynamic_linker=no
11339 esac
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11341 $as_echo "$dynamic_linker" >&6; }
11342 test "$dynamic_linker" = no && can_build_shared=no
11344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11345 if test "$GCC" = yes; then
11346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11449 hardcode_action=
11450 if test -n "$hardcode_libdir_flag_spec" ||
11451 test -n "$runpath_var" ||
11452 test "X$hardcode_automatic" = "Xyes" ; then
11454 # We can hardcode non-existent directories.
11455 if test "$hardcode_direct" != no &&
11456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11457 # have to relink, otherwise we might link with an installed library
11458 # when we should be linking with a yet-to-be-installed one
11459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11460 test "$hardcode_minus_L" != no; then
11461 # Linking always hardcodes the temporary library directory.
11462 hardcode_action=relink
11463 else
11464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11465 hardcode_action=immediate
11467 else
11468 # We cannot hardcode anything, or else we can only hardcode existing
11469 # directories.
11470 hardcode_action=unsupported
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11473 $as_echo "$hardcode_action" >&6; }
11475 if test "$hardcode_action" = relink ||
11476 test "$inherit_rpath" = yes; then
11477 # Fast installation is not supported
11478 enable_fast_install=no
11479 elif test "$shlibpath_overrides_runpath" = yes ||
11480 test "$enable_shared" = no; then
11481 # Fast installation is not necessary
11482 enable_fast_install=needless
11490 if test "x$enable_dlopen" != xyes; then
11491 enable_dlopen=unknown
11492 enable_dlopen_self=unknown
11493 enable_dlopen_self_static=unknown
11494 else
11495 lt_cv_dlopen=no
11496 lt_cv_dlopen_libs=
11498 case $host_os in
11499 beos*)
11500 lt_cv_dlopen="load_add_on"
11501 lt_cv_dlopen_libs=
11502 lt_cv_dlopen_self=yes
11505 mingw* | pw32* | cegcc*)
11506 lt_cv_dlopen="LoadLibrary"
11507 lt_cv_dlopen_libs=
11510 cygwin*)
11511 lt_cv_dlopen="dlopen"
11512 lt_cv_dlopen_libs=
11515 darwin*)
11516 # if libdl is installed we need to link against it
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11519 if ${ac_cv_lib_dl_dlopen+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-ldl $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dlopen ();
11535 main ()
11537 return dlopen ();
11539 return 0;
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_dl_dlopen=yes
11544 else
11545 ac_cv_lib_dl_dlopen=no
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11555 else
11557 lt_cv_dlopen="dyld"
11558 lt_cv_dlopen_libs=
11559 lt_cv_dlopen_self=yes
11566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11567 if test "x$ac_cv_func_shl_load" = xyes; then :
11568 lt_cv_dlopen="shl_load"
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11572 if ${ac_cv_lib_dld_shl_load+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 ac_check_lib_save_LIBS=$LIBS
11576 LIBS="-ldld $LIBS"
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char shl_load ();
11588 main ()
11590 return shl_load ();
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_lib_dld_shl_load=yes
11597 else
11598 ac_cv_lib_dld_shl_load=no
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LIBS=$ac_check_lib_save_LIBS
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11606 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11608 else
11609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11610 if test "x$ac_cv_func_dlopen" = xyes; then :
11611 lt_cv_dlopen="dlopen"
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11615 if ${ac_cv_lib_dl_dlopen+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 ac_check_lib_save_LIBS=$LIBS
11619 LIBS="-ldl $LIBS"
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char dlopen ();
11631 main ()
11633 return dlopen ();
11635 return 0;
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639 ac_cv_lib_dl_dlopen=yes
11640 else
11641 ac_cv_lib_dl_dlopen=no
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11649 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11654 if ${ac_cv_lib_svld_dlopen+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 ac_check_lib_save_LIBS=$LIBS
11658 LIBS="-lsvld $LIBS"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char dlopen ();
11670 main ()
11672 return dlopen ();
11674 return 0;
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"; then :
11678 ac_cv_lib_svld_dlopen=yes
11679 else
11680 ac_cv_lib_svld_dlopen=no
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11688 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11690 else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11693 if ${ac_cv_lib_dld_dld_link+:} false; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-ldld $LIBS"
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 char dld_link ();
11709 main ()
11711 return dld_link ();
11713 return 0;
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"; then :
11717 ac_cv_lib_dld_dld_link=yes
11718 else
11719 ac_cv_lib_dld_dld_link=no
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11727 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11747 esac
11749 if test "x$lt_cv_dlopen" != xno; then
11750 enable_dlopen=yes
11751 else
11752 enable_dlopen=no
11755 case $lt_cv_dlopen in
11756 dlopen)
11757 save_CPPFLAGS="$CPPFLAGS"
11758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11760 save_LDFLAGS="$LDFLAGS"
11761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11763 save_LIBS="$LIBS"
11764 LIBS="$lt_cv_dlopen_libs $LIBS"
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11768 if ${lt_cv_dlopen_self+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test "$cross_compiling" = yes; then :
11772 lt_cv_dlopen_self=cross
11773 else
11774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11775 lt_status=$lt_dlunknown
11776 cat > conftest.$ac_ext <<_LT_EOF
11777 #line 11777 "configure"
11778 #include "confdefs.h"
11780 #if HAVE_DLFCN_H
11781 #include <dlfcn.h>
11782 #endif
11784 #include <stdio.h>
11786 #ifdef RTLD_GLOBAL
11787 # define LT_DLGLOBAL RTLD_GLOBAL
11788 #else
11789 # ifdef DL_GLOBAL
11790 # define LT_DLGLOBAL DL_GLOBAL
11791 # else
11792 # define LT_DLGLOBAL 0
11793 # endif
11794 #endif
11796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11797 find out it does not work in some platform. */
11798 #ifndef LT_DLLAZY_OR_NOW
11799 # ifdef RTLD_LAZY
11800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11801 # else
11802 # ifdef DL_LAZY
11803 # define LT_DLLAZY_OR_NOW DL_LAZY
11804 # else
11805 # ifdef RTLD_NOW
11806 # define LT_DLLAZY_OR_NOW RTLD_NOW
11807 # else
11808 # ifdef DL_NOW
11809 # define LT_DLLAZY_OR_NOW DL_NOW
11810 # else
11811 # define LT_DLLAZY_OR_NOW 0
11812 # endif
11813 # endif
11814 # endif
11815 # endif
11816 #endif
11818 /* When -fvisbility=hidden is used, assume the code has been annotated
11819 correspondingly for the symbols needed. */
11820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11821 void fnord () __attribute__((visibility("default")));
11822 #endif
11824 void fnord () { int i=42; }
11825 int main ()
11827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11828 int status = $lt_dlunknown;
11830 if (self)
11832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11833 else
11835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11836 else puts (dlerror ());
11838 /* dlclose (self); */
11840 else
11841 puts (dlerror ());
11843 return status;
11845 _LT_EOF
11846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11847 (eval $ac_link) 2>&5
11848 ac_status=$?
11849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11851 (./conftest; exit; ) >&5 2>/dev/null
11852 lt_status=$?
11853 case x$lt_status in
11854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11857 esac
11858 else :
11859 # compilation failed
11860 lt_cv_dlopen_self=no
11863 rm -fr conftest*
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11868 $as_echo "$lt_cv_dlopen_self" >&6; }
11870 if test "x$lt_cv_dlopen_self" = xyes; then
11871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11874 if ${lt_cv_dlopen_self_static+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 if test "$cross_compiling" = yes; then :
11878 lt_cv_dlopen_self_static=cross
11879 else
11880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11881 lt_status=$lt_dlunknown
11882 cat > conftest.$ac_ext <<_LT_EOF
11883 #line 11883 "configure"
11884 #include "confdefs.h"
11886 #if HAVE_DLFCN_H
11887 #include <dlfcn.h>
11888 #endif
11890 #include <stdio.h>
11892 #ifdef RTLD_GLOBAL
11893 # define LT_DLGLOBAL RTLD_GLOBAL
11894 #else
11895 # ifdef DL_GLOBAL
11896 # define LT_DLGLOBAL DL_GLOBAL
11897 # else
11898 # define LT_DLGLOBAL 0
11899 # endif
11900 #endif
11902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11903 find out it does not work in some platform. */
11904 #ifndef LT_DLLAZY_OR_NOW
11905 # ifdef RTLD_LAZY
11906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11907 # else
11908 # ifdef DL_LAZY
11909 # define LT_DLLAZY_OR_NOW DL_LAZY
11910 # else
11911 # ifdef RTLD_NOW
11912 # define LT_DLLAZY_OR_NOW RTLD_NOW
11913 # else
11914 # ifdef DL_NOW
11915 # define LT_DLLAZY_OR_NOW DL_NOW
11916 # else
11917 # define LT_DLLAZY_OR_NOW 0
11918 # endif
11919 # endif
11920 # endif
11921 # endif
11922 #endif
11924 /* When -fvisbility=hidden is used, assume the code has been annotated
11925 correspondingly for the symbols needed. */
11926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11927 void fnord () __attribute__((visibility("default")));
11928 #endif
11930 void fnord () { int i=42; }
11931 int main ()
11933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11934 int status = $lt_dlunknown;
11936 if (self)
11938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11939 else
11941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11942 else puts (dlerror ());
11944 /* dlclose (self); */
11946 else
11947 puts (dlerror ());
11949 return status;
11951 _LT_EOF
11952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11953 (eval $ac_link) 2>&5
11954 ac_status=$?
11955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11957 (./conftest; exit; ) >&5 2>/dev/null
11958 lt_status=$?
11959 case x$lt_status in
11960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11963 esac
11964 else :
11965 # compilation failed
11966 lt_cv_dlopen_self_static=no
11969 rm -fr conftest*
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11977 CPPFLAGS="$save_CPPFLAGS"
11978 LDFLAGS="$save_LDFLAGS"
11979 LIBS="$save_LIBS"
11981 esac
11983 case $lt_cv_dlopen_self in
11984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11985 *) enable_dlopen_self=unknown ;;
11986 esac
11988 case $lt_cv_dlopen_self_static in
11989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11990 *) enable_dlopen_self_static=unknown ;;
11991 esac
12010 striplib=
12011 old_striplib=
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12018 $as_echo "yes" >&6; }
12019 else
12020 # FIXME - insert some real tests, host_os isn't really good enough
12021 case $host_os in
12022 darwin*)
12023 if test -n "$STRIP" ; then
12024 striplib="$STRIP -x"
12025 old_striplib="$STRIP -S"
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12037 esac
12051 # Report which library types will actually be built
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12055 $as_echo "$can_build_shared" >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12058 $as_echo_n "checking whether to build shared libraries... " >&6; }
12059 test "$can_build_shared" = "no" && enable_shared=no
12061 # On AIX, shared libraries and static libraries use the same namespace, and
12062 # are all built from PIC.
12063 case $host_os in
12064 aix3*)
12065 test "$enable_shared" = yes && enable_static=no
12066 if test -n "$RANLIB"; then
12067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12068 postinstall_cmds='$RANLIB $lib'
12072 aix[4-9]*)
12073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12074 test "$enable_shared" = yes && enable_static=no
12077 esac
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12079 $as_echo "$enable_shared" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12082 $as_echo_n "checking whether to build static libraries... " >&6; }
12083 # Make sure either enable_shared or enable_static is yes.
12084 test "$enable_shared" = yes || enable_static=yes
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12086 $as_echo "$enable_static" >&6; }
12092 ac_ext=c
12093 ac_cpp='$CPP $CPPFLAGS'
12094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12098 CC="$lt_save_CC"
12112 ac_config_commands="$ac_config_commands libtool"
12117 # Only expand once:
12123 gdc_save_DFLAGS=$GDCFLAGS
12124 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12127 # Source file extension for D test sources.
12128 ac_ext=d
12130 # Object file extension for compiled D test sources.
12131 objext=o
12132 objext_D=$objext
12134 # Code to be used in simple compile tests
12135 lt_simple_compile_test_code="\
12136 module object;
12137 shared int some_variable = 0;
12140 # Code to be used in simple link tests
12141 lt_simple_link_test_code="\
12142 module object;
12143 extern(C) int main() { return 0; }
12146 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12153 # If no C compiler was specified, use CC.
12154 LTCC=${LTCC-"$CC"}
12156 # If no C compiler flags were specified, use CFLAGS.
12157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12159 # Allow CC to be a program name with arguments.
12160 compiler=$CC
12163 # save warnings/boilerplate of simple test code
12164 ac_outfile=conftest.$ac_objext
12165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12167 _lt_compiler_boilerplate=`cat conftest.err`
12168 $RM conftest*
12170 ac_outfile=conftest.$ac_objext
12171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12173 _lt_linker_boilerplate=`cat conftest.err`
12174 $RM -r conftest*
12177 # Allow CC to be a program name with arguments.
12178 lt_save_CC=$CC
12179 lt_save_CFLAGS=$CFLAGS
12180 lt_save_GCC=$GCC
12181 GCC=yes
12182 CC=${GDC-"gdc"}
12183 CFLAGS=$GDCFLAGS
12184 compiler=$CC
12185 compiler_D=$CC
12186 LD_D=$CC
12187 for cc_temp in $compiler""; do
12188 case $cc_temp in
12189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12191 \-*) ;;
12192 *) break;;
12193 esac
12194 done
12195 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12198 # GDC did not exist at the time GCC didn't implicitly link libc in.
12199 archive_cmds_need_lc_D=no
12201 old_archive_cmds_D=$old_archive_cmds
12202 reload_flag_D=$reload_flag
12203 reload_cmds_D=$reload_cmds
12205 ## CAVEAT EMPTOR:
12206 ## There is no encapsulation within the following macros, do not change
12207 ## the running order or otherwise move them around unless you know exactly
12208 ## what you are doing...
12209 if test -n "$compiler"; then
12211 lt_prog_compiler_no_builtin_flag_D=
12213 if test "$GCC" = yes; then
12214 case $cc_basename in
12215 nvcc*)
12216 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12218 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12219 esac
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12222 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12223 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 lt_cv_prog_compiler_rtti_exceptions=no
12227 ac_outfile=conftest.$ac_objext
12228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12229 lt_compiler_flag="-fno-rtti -fno-exceptions"
12230 # Insert the option either (1) after the last *FLAGS variable, or
12231 # (2) before a word containing "conftest.", or (3) at the end.
12232 # Note that $ac_compile itself does not contain backslashes and begins
12233 # with a dollar sign (not a hyphen), so the echo should work correctly.
12234 # The option is referenced via a variable to avoid confusing sed.
12235 lt_compile=`echo "$ac_compile" | $SED \
12236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12238 -e 's:$: $lt_compiler_flag:'`
12239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12240 (eval "$lt_compile" 2>conftest.err)
12241 ac_status=$?
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 if (exit $ac_status) && test -s "$ac_outfile"; then
12245 # The compiler can only warn and ignore the option if not recognized
12246 # So say no if there are warnings other than the usual output.
12247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12250 lt_cv_prog_compiler_rtti_exceptions=yes
12253 $RM conftest*
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12257 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12259 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12260 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12261 else
12269 lt_prog_compiler_wl_D=
12270 lt_prog_compiler_pic_D=
12271 lt_prog_compiler_static_D=
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12274 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12276 if test "$GCC" = yes; then
12277 lt_prog_compiler_wl_D='-Wl,'
12278 lt_prog_compiler_static_D='-static'
12280 case $host_os in
12281 aix*)
12282 # All AIX code is PIC.
12283 if test "$host_cpu" = ia64; then
12284 # AIX 5 now supports IA64 processor
12285 lt_prog_compiler_static_D='-Bstatic'
12287 lt_prog_compiler_pic_D='-fPIC'
12290 amigaos*)
12291 case $host_cpu in
12292 powerpc)
12293 # see comment about AmigaOS4 .so support
12294 lt_prog_compiler_pic_D='-fPIC'
12296 m68k)
12297 # FIXME: we need at least 68020 code to build shared libraries, but
12298 # adding the `-m68020' flag to GCC prevents building anything better,
12299 # like `-m68040'.
12300 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12302 esac
12305 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12306 # PIC is the default for these OSes.
12309 mingw* | cygwin* | pw32* | os2* | cegcc*)
12310 # This hack is so that the source file can tell whether it is being
12311 # built for inclusion in a dll (and should export symbols for example).
12312 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12313 # (--disable-auto-import) libraries
12314 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12317 darwin* | rhapsody*)
12318 # PIC is the default on this platform
12319 # Common symbols not allowed in MH_DYLIB files
12320 lt_prog_compiler_pic_D='-fno-common'
12323 haiku*)
12324 # PIC is the default for Haiku.
12325 # The "-static" flag exists, but is broken.
12326 lt_prog_compiler_static_D=
12329 hpux*)
12330 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12331 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12332 # sets the default TLS model and affects inlining.
12333 case $host_cpu in
12334 hppa*64*)
12335 # +Z the default
12338 lt_prog_compiler_pic_D='-fPIC'
12340 esac
12343 interix[3-9]*)
12344 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12345 # Instead, we relocate shared libraries at runtime.
12348 msdosdjgpp*)
12349 # Just because we use GCC doesn't mean we suddenly get shared libraries
12350 # on systems that don't support them.
12351 lt_prog_compiler_can_build_shared_D=no
12352 enable_shared=no
12355 *nto* | *qnx*)
12356 # QNX uses GNU C++, but need to define -shared option too, otherwise
12357 # it will coredump.
12358 lt_prog_compiler_pic_D='-fPIC -shared'
12361 sysv4*MP*)
12362 if test -d /usr/nec; then
12363 lt_prog_compiler_pic_D=-Kconform_pic
12368 lt_prog_compiler_pic_D='-fPIC'
12370 esac
12372 case $cc_basename in
12373 nvcc*) # Cuda Compiler Driver 2.2
12374 lt_prog_compiler_wl_D='-Xlinker '
12375 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12377 esac
12378 else
12379 # PORTME Check for flag to pass linker flags through the system compiler.
12380 case $host_os in
12381 aix*)
12382 lt_prog_compiler_wl_D='-Wl,'
12383 if test "$host_cpu" = ia64; then
12384 # AIX 5 now supports IA64 processor
12385 lt_prog_compiler_static_D='-Bstatic'
12386 else
12387 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12391 mingw* | cygwin* | pw32* | os2* | cegcc*)
12392 # This hack is so that the source file can tell whether it is being
12393 # built for inclusion in a dll (and should export symbols for example).
12394 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12397 hpux9* | hpux10* | hpux11*)
12398 lt_prog_compiler_wl_D='-Wl,'
12399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12400 # not for PA HP-UX.
12401 case $host_cpu in
12402 hppa*64*|ia64*)
12403 # +Z the default
12406 lt_prog_compiler_pic_D='+Z'
12408 esac
12409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12410 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12413 irix5* | irix6* | nonstopux*)
12414 lt_prog_compiler_wl_D='-Wl,'
12415 # PIC (with -KPIC) is the default.
12416 lt_prog_compiler_static_D='-non_shared'
12419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12420 case $cc_basename in
12421 # old Intel for x86_64 which still supported -KPIC.
12422 ecc*)
12423 lt_prog_compiler_wl_D='-Wl,'
12424 lt_prog_compiler_pic_D='-KPIC'
12425 lt_prog_compiler_static_D='-static'
12427 # icc used to be incompatible with GCC.
12428 # ICC 10 doesn't accept -KPIC any more.
12429 icc* | ifort*)
12430 lt_prog_compiler_wl_D='-Wl,'
12431 lt_prog_compiler_pic_D='-fPIC'
12432 lt_prog_compiler_static_D='-static'
12434 # Lahey Fortran 8.1.
12435 lf95*)
12436 lt_prog_compiler_wl_D='-Wl,'
12437 lt_prog_compiler_pic_D='--shared'
12438 lt_prog_compiler_static_D='--static'
12440 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12441 # Portland Group compilers (*not* the Pentium gcc compiler,
12442 # which looks to be a dead project)
12443 lt_prog_compiler_wl_D='-Wl,'
12444 lt_prog_compiler_pic_D='-fpic'
12445 lt_prog_compiler_static_D='-Bstatic'
12447 ccc*)
12448 lt_prog_compiler_wl_D='-Wl,'
12449 # All Alpha code is PIC.
12450 lt_prog_compiler_static_D='-non_shared'
12452 xl* | bgxl* | bgf* | mpixl*)
12453 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12454 lt_prog_compiler_wl_D='-Wl,'
12455 lt_prog_compiler_pic_D='-qpic'
12456 lt_prog_compiler_static_D='-qstaticlink'
12459 case `$CC -V 2>&1 | sed 5q` in
12460 *Sun\ F* | *Sun*Fortran*)
12461 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12462 lt_prog_compiler_pic_D='-KPIC'
12463 lt_prog_compiler_static_D='-Bstatic'
12464 lt_prog_compiler_wl_D=''
12466 *Sun\ C*)
12467 # Sun C 5.9
12468 lt_prog_compiler_pic_D='-KPIC'
12469 lt_prog_compiler_static_D='-Bstatic'
12470 lt_prog_compiler_wl_D='-Wl,'
12472 esac
12474 esac
12477 newsos6)
12478 lt_prog_compiler_pic_D='-KPIC'
12479 lt_prog_compiler_static_D='-Bstatic'
12482 *nto* | *qnx*)
12483 # QNX uses GNU C++, but need to define -shared option too, otherwise
12484 # it will coredump.
12485 lt_prog_compiler_pic_D='-fPIC -shared'
12488 osf3* | osf4* | osf5*)
12489 lt_prog_compiler_wl_D='-Wl,'
12490 # All OSF/1 code is PIC.
12491 lt_prog_compiler_static_D='-non_shared'
12494 rdos*)
12495 lt_prog_compiler_static_D='-non_shared'
12498 solaris*)
12499 lt_prog_compiler_pic_D='-KPIC'
12500 lt_prog_compiler_static_D='-Bstatic'
12501 case $cc_basename in
12502 f77* | f90* | f95*)
12503 lt_prog_compiler_wl_D='-Qoption ld ';;
12505 lt_prog_compiler_wl_D='-Wl,';;
12506 esac
12509 sunos4*)
12510 lt_prog_compiler_wl_D='-Qoption ld '
12511 lt_prog_compiler_pic_D='-PIC'
12512 lt_prog_compiler_static_D='-Bstatic'
12515 sysv4 | sysv4.2uw2* | sysv4.3*)
12516 lt_prog_compiler_wl_D='-Wl,'
12517 lt_prog_compiler_pic_D='-KPIC'
12518 lt_prog_compiler_static_D='-Bstatic'
12521 sysv4*MP*)
12522 if test -d /usr/nec ;then
12523 lt_prog_compiler_pic_D='-Kconform_pic'
12524 lt_prog_compiler_static_D='-Bstatic'
12528 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12529 lt_prog_compiler_wl_D='-Wl,'
12530 lt_prog_compiler_pic_D='-KPIC'
12531 lt_prog_compiler_static_D='-Bstatic'
12534 unicos*)
12535 lt_prog_compiler_wl_D='-Wl,'
12536 lt_prog_compiler_can_build_shared_D=no
12539 uts4*)
12540 lt_prog_compiler_pic_D='-pic'
12541 lt_prog_compiler_static_D='-Bstatic'
12545 lt_prog_compiler_can_build_shared_D=no
12547 esac
12550 case $host_os in
12551 # For platforms which do not support PIC, -DPIC is meaningless:
12552 *djgpp*)
12553 lt_prog_compiler_pic_D=
12556 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12558 esac
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12560 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12565 # Check to make sure the PIC flag actually works.
12567 if test -n "$lt_prog_compiler_pic_D"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12569 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12570 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 lt_cv_prog_compiler_pic_works_D=no
12574 ac_outfile=conftest.$ac_objext
12575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12576 lt_compiler_flag="$lt_prog_compiler_pic_D"
12577 # Insert the option either (1) after the last *FLAGS variable, or
12578 # (2) before a word containing "conftest.", or (3) at the end.
12579 # Note that $ac_compile itself does not contain backslashes and begins
12580 # with a dollar sign (not a hyphen), so the echo should work correctly.
12581 # The option is referenced via a variable to avoid confusing sed.
12582 lt_compile=`echo "$ac_compile" | $SED \
12583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12585 -e 's:$: $lt_compiler_flag:'`
12586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12587 (eval "$lt_compile" 2>conftest.err)
12588 ac_status=$?
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 if (exit $ac_status) && test -s "$ac_outfile"; then
12592 # The compiler can only warn and ignore the option if not recognized
12593 # So say no if there are warnings other than the usual output.
12594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12597 lt_cv_prog_compiler_pic_works_D=yes
12600 $RM conftest*
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12604 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12606 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12607 case $lt_prog_compiler_pic_D in
12608 "" | " "*) ;;
12609 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12610 esac
12611 else
12612 lt_prog_compiler_pic_D=
12613 lt_prog_compiler_can_build_shared_D=no
12621 # Check to make sure the static flag actually works.
12623 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12625 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12626 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 lt_cv_prog_compiler_static_works_D=no
12630 save_LDFLAGS="$LDFLAGS"
12631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12634 # The linker can only warn and ignore the option if not recognized
12635 # So say no if there are warnings
12636 if test -s conftest.err; then
12637 # Append any errors to the config.log.
12638 cat conftest.err 1>&5
12639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12641 if diff conftest.exp conftest.er2 >/dev/null; then
12642 lt_cv_prog_compiler_static_works_D=yes
12644 else
12645 lt_cv_prog_compiler_static_works_D=yes
12648 $RM -r conftest*
12649 LDFLAGS="$save_LDFLAGS"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12653 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12655 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12657 else
12658 lt_prog_compiler_static_D=
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12666 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 lt_cv_prog_compiler_c_o_D=no
12670 $RM -r conftest 2>/dev/null
12671 mkdir conftest
12672 cd conftest
12673 mkdir out
12674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12676 lt_compiler_flag="-o out/conftest2.$ac_objext"
12677 # Insert the option either (1) after the last *FLAGS variable, or
12678 # (2) before a word containing "conftest.", or (3) at the end.
12679 # Note that $ac_compile itself does not contain backslashes and begins
12680 # with a dollar sign (not a hyphen), so the echo should work correctly.
12681 lt_compile=`echo "$ac_compile" | $SED \
12682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12684 -e 's:$: $lt_compiler_flag:'`
12685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12686 (eval "$lt_compile" 2>out/conftest.err)
12687 ac_status=$?
12688 cat out/conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12691 then
12692 # The compiler can only warn and ignore the option if not recognized
12693 # So say no if there are warnings
12694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12697 lt_cv_prog_compiler_c_o_D=yes
12700 chmod u+w . 2>&5
12701 $RM conftest*
12702 # SGI C++ compiler will create directory out/ii_files/ for
12703 # template instantiation
12704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12705 $RM out/* && rmdir out
12706 cd ..
12707 $RM -r conftest
12708 $RM conftest*
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12712 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12718 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 lt_cv_prog_compiler_c_o_D=no
12722 $RM -r conftest 2>/dev/null
12723 mkdir conftest
12724 cd conftest
12725 mkdir out
12726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12728 lt_compiler_flag="-o out/conftest2.$ac_objext"
12729 # Insert the option either (1) after the last *FLAGS variable, or
12730 # (2) before a word containing "conftest.", or (3) at the end.
12731 # Note that $ac_compile itself does not contain backslashes and begins
12732 # with a dollar sign (not a hyphen), so the echo should work correctly.
12733 lt_compile=`echo "$ac_compile" | $SED \
12734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736 -e 's:$: $lt_compiler_flag:'`
12737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12738 (eval "$lt_compile" 2>out/conftest.err)
12739 ac_status=$?
12740 cat out/conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12743 then
12744 # The compiler can only warn and ignore the option if not recognized
12745 # So say no if there are warnings
12746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12749 lt_cv_prog_compiler_c_o_D=yes
12752 chmod u+w . 2>&5
12753 $RM conftest*
12754 # SGI C++ compiler will create directory out/ii_files/ for
12755 # template instantiation
12756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12757 $RM out/* && rmdir out
12758 cd ..
12759 $RM -r conftest
12760 $RM conftest*
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12764 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12769 hard_links="nottested"
12770 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12771 # do not overwrite the value of need_locks provided by the user
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12773 $as_echo_n "checking if we can lock with hard links... " >&6; }
12774 hard_links=yes
12775 $RM conftest*
12776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12777 touch conftest.a
12778 ln conftest.a conftest.b 2>&5 || hard_links=no
12779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12781 $as_echo "$hard_links" >&6; }
12782 if test "$hard_links" = no; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12784 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12785 need_locks=warn
12787 else
12788 need_locks=no
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12794 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12796 runpath_var=
12797 allow_undefined_flag_D=
12798 always_export_symbols_D=no
12799 archive_cmds_D=
12800 archive_expsym_cmds_D=
12801 compiler_needs_object_D=no
12802 enable_shared_with_static_runtimes_D=no
12803 export_dynamic_flag_spec_D=
12804 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12805 hardcode_automatic_D=no
12806 hardcode_direct_D=no
12807 hardcode_direct_absolute_D=no
12808 hardcode_libdir_flag_spec_D=
12809 hardcode_libdir_flag_spec_ld_D=
12810 hardcode_libdir_separator_D=
12811 hardcode_minus_L_D=no
12812 hardcode_shlibpath_var_D=unsupported
12813 inherit_rpath_D=no
12814 link_all_deplibs_D=unknown
12815 module_cmds_D=
12816 module_expsym_cmds_D=
12817 old_archive_from_new_cmds_D=
12818 old_archive_from_expsyms_cmds_D=
12819 thread_safe_flag_spec_D=
12820 whole_archive_flag_spec_D=
12821 # include_expsyms should be a list of space-separated symbols to be *always*
12822 # included in the symbol list
12823 include_expsyms_D=
12824 # exclude_expsyms can be an extended regexp of symbols to exclude
12825 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12826 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12827 # as well as any symbol that contains `d'.
12828 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12829 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12830 # platforms (ab)use it in PIC code, but their linkers get confused if
12831 # the symbol is explicitly referenced. Since portable code cannot
12832 # rely on this symbol name, it's probably fine to never include it in
12833 # preloaded symbol tables.
12834 # Exclude shared library initialization/finalization symbols.
12835 extract_expsyms_cmds=
12837 case $host_os in
12838 cygwin* | mingw* | pw32* | cegcc*)
12839 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12840 # When not using gcc, we currently assume that we are using
12841 # Microsoft Visual C++.
12842 if test "$GCC" != yes; then
12843 with_gnu_ld=no
12846 interix*)
12847 # we just hope/assume this is gcc and not c89 (= MSVC++)
12848 with_gnu_ld=yes
12850 openbsd*)
12851 with_gnu_ld=no
12853 esac
12855 ld_shlibs_D=yes
12857 # On some targets, GNU ld is compatible enough with the native linker
12858 # that we're better off using the native interface for both.
12859 lt_use_gnu_ld_interface=no
12860 if test "$with_gnu_ld" = yes; then
12861 case $host_os in
12862 aix*)
12863 # The AIX port of GNU ld has always aspired to compatibility
12864 # with the native linker. However, as the warning in the GNU ld
12865 # block says, versions before 2.19.5* couldn't really create working
12866 # shared libraries, regardless of the interface used.
12867 case `$LD -v 2>&1` in
12868 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12869 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12870 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12872 lt_use_gnu_ld_interface=yes
12874 esac
12877 lt_use_gnu_ld_interface=yes
12879 esac
12882 if test "$lt_use_gnu_ld_interface" = yes; then
12883 # If archive_cmds runs LD, not CC, wlarc should be empty
12884 wlarc='${wl}'
12886 # Set some defaults for GNU ld with shared library support. These
12887 # are reset later if shared libraries are not supported. Putting them
12888 # here allows them to be overridden if necessary.
12889 runpath_var=LD_RUN_PATH
12890 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12891 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12892 # ancient GNU ld didn't support --whole-archive et. al.
12893 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12894 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12895 else
12896 whole_archive_flag_spec_D=
12898 supports_anon_versioning=no
12899 case `$LD -v 2>&1` in
12900 *GNU\ gold*) supports_anon_versioning=yes ;;
12901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12904 *\ 2.11.*) ;; # other 2.11 versions
12905 *) supports_anon_versioning=yes ;;
12906 esac
12908 # See if GNU ld supports shared libraries.
12909 case $host_os in
12910 aix[3-9]*)
12911 # On AIX/PPC, the GNU linker is very broken
12912 if test "$host_cpu" != ia64; then
12913 ld_shlibs_D=no
12914 cat <<_LT_EOF 1>&2
12916 *** Warning: the GNU linker, at least up to release 2.19, is reported
12917 *** to be unable to reliably create shared libraries on AIX.
12918 *** Therefore, libtool is disabling shared libraries support. If you
12919 *** really care for shared libraries, you may want to install binutils
12920 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12921 *** You will then need to restart the configuration process.
12923 _LT_EOF
12927 amigaos*)
12928 case $host_cpu in
12929 powerpc)
12930 # see comment about AmigaOS4 .so support
12931 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 archive_expsym_cmds_D=''
12934 m68k)
12935 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)'
12936 hardcode_libdir_flag_spec_D='-L$libdir'
12937 hardcode_minus_L_D=yes
12939 esac
12942 beos*)
12943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12944 allow_undefined_flag_D=unsupported
12945 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12946 # support --undefined. This deserves some investigation. FIXME
12947 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 else
12949 ld_shlibs_D=no
12953 cygwin* | mingw* | pw32* | cegcc*)
12954 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12955 # as there is no search path for DLLs.
12956 hardcode_libdir_flag_spec_D='-L$libdir'
12957 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12958 allow_undefined_flag_D=unsupported
12959 always_export_symbols_D=no
12960 enable_shared_with_static_runtimes_D=yes
12961 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12963 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12964 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12965 # If the export-symbols file already is a .def file (1st line
12966 # is EXPORTS), use it as is; otherwise, prepend...
12967 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12968 cp $export_symbols $output_objdir/$soname.def;
12969 else
12970 echo EXPORTS > $output_objdir/$soname.def;
12971 cat $export_symbols >> $output_objdir/$soname.def;
12973 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12974 else
12975 ld_shlibs_D=no
12979 haiku*)
12980 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12981 link_all_deplibs_D=yes
12984 interix[3-9]*)
12985 hardcode_direct_D=no
12986 hardcode_shlibpath_var_D=no
12987 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12988 export_dynamic_flag_spec_D='${wl}-E'
12989 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12990 # Instead, shared libraries are loaded at an image base (0x10000000 by
12991 # default) and relocated if they conflict, which is a slow very memory
12992 # consuming and fragmenting process. To avoid this, we pick a random,
12993 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12994 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12995 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'
12996 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'
12999 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13000 tmp_diet=no
13001 if test "$host_os" = linux-dietlibc; then
13002 case $cc_basename in
13003 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13004 esac
13006 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13007 && test "$tmp_diet" = no
13008 then
13009 tmp_addflag=' $pic_flag'
13010 tmp_sharedflag='-shared'
13011 case $cc_basename,$host_cpu in
13012 pgcc*) # Portland Group C compiler
13013 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'
13014 tmp_addflag=' $pic_flag'
13016 pgf77* | pgf90* | pgf95* | pgfortran*)
13017 # Portland Group f77 and f90 compilers
13018 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'
13019 tmp_addflag=' $pic_flag -Mnomain' ;;
13020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13021 tmp_addflag=' -i_dynamic' ;;
13022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13023 tmp_addflag=' -i_dynamic -nofor_main' ;;
13024 ifc* | ifort*) # Intel Fortran compiler
13025 tmp_addflag=' -nofor_main' ;;
13026 lf95*) # Lahey Fortran 8.1
13027 whole_archive_flag_spec_D=
13028 tmp_sharedflag='--shared' ;;
13029 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13030 tmp_sharedflag='-qmkshrobj'
13031 tmp_addflag= ;;
13032 nvcc*) # Cuda Compiler Driver 2.2
13033 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'
13034 compiler_needs_object_D=yes
13036 esac
13037 case `$CC -V 2>&1 | sed 5q` in
13038 *Sun\ C*) # Sun C 5.9
13039 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'
13040 compiler_needs_object_D=yes
13041 tmp_sharedflag='-G' ;;
13042 *Sun\ F*) # Sun Fortran 8.3
13043 tmp_sharedflag='-G' ;;
13044 esac
13045 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13047 if test "x$supports_anon_versioning" = xyes; then
13048 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13050 echo "local: *; };" >> $output_objdir/$libname.ver~
13051 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13054 case $cc_basename in
13055 xlf* | bgf* | bgxlf* | mpixlf*)
13056 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13057 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13058 hardcode_libdir_flag_spec_D=
13059 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13060 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13061 if test "x$supports_anon_versioning" = xyes; then
13062 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13064 echo "local: *; };" >> $output_objdir/$libname.ver~
13065 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13068 esac
13069 else
13070 ld_shlibs_D=no
13074 netbsd*)
13075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13076 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13077 wlarc=
13078 else
13079 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13084 solaris*)
13085 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13086 ld_shlibs_D=no
13087 cat <<_LT_EOF 1>&2
13089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13090 *** create shared libraries on Solaris systems. Therefore, libtool
13091 *** is disabling shared libraries support. We urge you to upgrade GNU
13092 *** binutils to release 2.9.1 or newer. Another option is to modify
13093 *** your PATH or compiler configuration so that the native linker is
13094 *** used, and then restart.
13096 _LT_EOF
13097 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13098 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13100 else
13101 ld_shlibs_D=no
13105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13106 case `$LD -v 2>&1` in
13107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13108 ld_shlibs_D=no
13109 cat <<_LT_EOF 1>&2
13111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13112 *** reliably create shared libraries on SCO systems. Therefore, libtool
13113 *** is disabling shared libraries support. We urge you to upgrade GNU
13114 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13115 *** your PATH or compiler configuration so that the native linker is
13116 *** used, and then restart.
13118 _LT_EOF
13121 # For security reasons, it is highly recommended that you always
13122 # use absolute paths for naming shared libraries, and exclude the
13123 # DT_RUNPATH tag from executables and libraries. But doing so
13124 # requires that you compile everything twice, which is a pain.
13125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13126 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13127 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13129 else
13130 ld_shlibs_D=no
13133 esac
13136 sunos4*)
13137 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13138 wlarc=
13139 hardcode_direct_D=yes
13140 hardcode_shlibpath_var_D=no
13144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13145 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13147 else
13148 ld_shlibs_D=no
13151 esac
13153 if test "$ld_shlibs_D" = no; then
13154 runpath_var=
13155 hardcode_libdir_flag_spec_D=
13156 export_dynamic_flag_spec_D=
13157 whole_archive_flag_spec_D=
13159 else
13160 # PORTME fill in a description of your system's linker (not GNU ld)
13161 case $host_os in
13162 aix3*)
13163 allow_undefined_flag_D=unsupported
13164 always_export_symbols_D=yes
13165 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'
13166 # Note: this linker hardcodes the directories in LIBPATH if there
13167 # are no directories specified by -L.
13168 hardcode_minus_L_D=yes
13169 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13170 # Neither direct hardcoding nor static linking is supported with a
13171 # broken collect2.
13172 hardcode_direct_D=unsupported
13176 aix[4-9]*)
13177 if test "$host_cpu" = ia64; then
13178 # On IA64, the linker does run time linking by default, so we don't
13179 # have to do anything special.
13180 aix_use_runtimelinking=no
13181 exp_sym_flag='-Bexport'
13182 no_entry_flag=""
13183 else
13184 # If we're using GNU nm, then we don't want the "-C" option.
13185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13186 # Also, AIX nm treats weak defined symbols like other global
13187 # defined symbols, whereas GNU nm marks them as "W".
13188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13189 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'
13190 else
13191 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'
13193 aix_use_runtimelinking=no
13195 # Test if we are trying to use run time linking or normal
13196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13197 # need to do runtime linking.
13198 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13199 for ld_flag in $LDFLAGS; do
13200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13201 aix_use_runtimelinking=yes
13202 break
13204 done
13206 esac
13208 exp_sym_flag='-bexport'
13209 no_entry_flag='-bnoentry'
13212 # When large executables or shared objects are built, AIX ld can
13213 # have problems creating the table of contents. If linking a library
13214 # or program results in "error TOC overflow" add -mminimal-toc to
13215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13218 archive_cmds_D=''
13219 hardcode_direct_D=yes
13220 hardcode_direct_absolute_D=yes
13221 hardcode_libdir_separator_D=':'
13222 link_all_deplibs_D=yes
13223 file_list_spec_D='${wl}-f,'
13225 if test "$GCC" = yes; then
13226 case $host_os in aix4.[012]|aix4.[012].*)
13227 # We only want to do this on AIX 4.2 and lower, the check
13228 # below for broken collect2 doesn't work under 4.3+
13229 collect2name=`${CC} -print-prog-name=collect2`
13230 if test -f "$collect2name" &&
13231 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13232 then
13233 # We have reworked collect2
13235 else
13236 # We have old collect2
13237 hardcode_direct_D=unsupported
13238 # It fails to find uninstalled libraries when the uninstalled
13239 # path is not listed in the libpath. Setting hardcode_minus_L
13240 # to unsupported forces relinking
13241 hardcode_minus_L_D=yes
13242 hardcode_libdir_flag_spec_D='-L$libdir'
13243 hardcode_libdir_separator_D=
13246 esac
13247 shared_flag='-shared'
13248 if test "$aix_use_runtimelinking" = yes; then
13249 shared_flag="$shared_flag "'${wl}-G'
13251 else
13252 # not using gcc
13253 if test "$host_cpu" = ia64; then
13254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13255 # chokes on -Wl,-G. The following line is correct:
13256 shared_flag='-G'
13257 else
13258 if test "$aix_use_runtimelinking" = yes; then
13259 shared_flag='${wl}-G'
13260 else
13261 shared_flag='${wl}-bM:SRE'
13266 export_dynamic_flag_spec_D='${wl}-bexpall'
13267 # It seems that -bexpall does not export symbols beginning with
13268 # underscore (_), so it is better to generate a list of symbols to export.
13269 always_export_symbols_D=yes
13270 if test "$aix_use_runtimelinking" = yes; then
13271 # Warning - without using the other runtime loading flags (-brtl),
13272 # -berok will link without error, but may produce a broken library.
13273 allow_undefined_flag_D='-berok'
13274 # Determine the default libpath from the value encoded in an
13275 # empty executable.
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13280 main ()
13284 return 0;
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"; then :
13289 lt_aix_libpath_sed='
13290 /Import File Strings/,/^$/ {
13291 /^0/ {
13292 s/^0 *\(.*\)$/\1/
13296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297 # Check for a 64-bit object if we didn't find anything.
13298 if test -z "$aix_libpath"; then
13299 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13306 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13307 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"
13308 else
13309 if test "$host_cpu" = ia64; then
13310 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13311 allow_undefined_flag_D="-z nodefs"
13312 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"
13313 else
13314 # Determine the default libpath from the value encoded in an
13315 # empty executable.
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13320 main ()
13324 return 0;
13326 _ACEOF
13327 if ac_fn_c_try_link "$LINENO"; then :
13329 lt_aix_libpath_sed='
13330 /Import File Strings/,/^$/ {
13331 /^0/ {
13332 s/^0 *\(.*\)$/\1/
13336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13337 # Check for a 64-bit object if we didn't find anything.
13338 if test -z "$aix_libpath"; then
13339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13346 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13347 # Warning - without using the other run time loading flags,
13348 # -berok will link without error, but may produce a broken library.
13349 no_undefined_flag_D=' ${wl}-bernotok'
13350 allow_undefined_flag_D=' ${wl}-berok'
13351 if test "$with_gnu_ld" = yes; then
13352 # We only use this code for GNU lds that support --whole-archive.
13353 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13354 else
13355 # Exported symbols can be pulled into shared objects from archives
13356 whole_archive_flag_spec_D='$convenience'
13358 archive_cmds_need_lc_D=yes
13359 # This is similar to how AIX traditionally builds its shared libraries.
13360 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'
13365 amigaos*)
13366 case $host_cpu in
13367 powerpc)
13368 # see comment about AmigaOS4 .so support
13369 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds_D=''
13372 m68k)
13373 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)'
13374 hardcode_libdir_flag_spec_D='-L$libdir'
13375 hardcode_minus_L_D=yes
13377 esac
13380 bsdi[45]*)
13381 export_dynamic_flag_spec_D=-rdynamic
13384 cygwin* | mingw* | pw32* | cegcc*)
13385 # When not using gcc, we currently assume that we are using
13386 # Microsoft Visual C++.
13387 # hardcode_libdir_flag_spec is actually meaningless, as there is
13388 # no search path for DLLs.
13389 hardcode_libdir_flag_spec_D=' '
13390 allow_undefined_flag_D=unsupported
13391 # Tell ltmain to make .lib files, not .a files.
13392 libext=lib
13393 # Tell ltmain to make .dll files, not .so files.
13394 shrext_cmds=".dll"
13395 # FIXME: Setting linknames here is a bad hack.
13396 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13397 # The linker will automatically build a .lib file if we build a DLL.
13398 old_archive_from_new_cmds_D='true'
13399 # FIXME: Should let the user specify the lib program.
13400 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13401 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13402 enable_shared_with_static_runtimes_D=yes
13405 darwin* | rhapsody*)
13408 archive_cmds_need_lc_D=no
13409 hardcode_direct_D=no
13410 hardcode_automatic_D=yes
13411 hardcode_shlibpath_var_D=unsupported
13412 if test "$lt_cv_ld_force_load" = "yes"; then
13413 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\"`'
13414 else
13415 whole_archive_flag_spec_D=''
13417 link_all_deplibs_D=yes
13418 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13419 case $cc_basename in
13420 ifort*) _lt_dar_can_shared=yes ;;
13421 *) _lt_dar_can_shared=$GCC ;;
13422 esac
13423 if test "$_lt_dar_can_shared" = "yes"; then
13424 output_verbose_link_cmd=func_echo_all
13425 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}"
13426 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13427 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}"
13428 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}"
13430 else
13431 ld_shlibs_D=no
13436 dgux*)
13437 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438 hardcode_libdir_flag_spec_D='-L$libdir'
13439 hardcode_shlibpath_var_D=no
13442 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13443 # support. Future versions do this automatically, but an explicit c++rt0.o
13444 # does not break anything, and helps significantly (at the cost of a little
13445 # extra space).
13446 freebsd2.2*)
13447 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13448 hardcode_libdir_flag_spec_D='-R$libdir'
13449 hardcode_direct_D=yes
13450 hardcode_shlibpath_var_D=no
13453 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13454 freebsd2.*)
13455 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct_D=yes
13457 hardcode_minus_L_D=yes
13458 hardcode_shlibpath_var_D=no
13461 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13462 freebsd* | dragonfly*)
13463 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13464 hardcode_libdir_flag_spec_D='-R$libdir'
13465 hardcode_direct_D=yes
13466 hardcode_shlibpath_var_D=no
13469 hpux9*)
13470 if test "$GCC" = yes; then
13471 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'
13472 else
13473 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'
13475 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13476 hardcode_libdir_separator_D=:
13477 hardcode_direct_D=yes
13479 # hardcode_minus_L: Not really in the search PATH,
13480 # but as the default location of the library.
13481 hardcode_minus_L_D=yes
13482 export_dynamic_flag_spec_D='${wl}-E'
13485 hpux10*)
13486 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13487 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13488 else
13489 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13491 if test "$with_gnu_ld" = no; then
13492 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13493 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13494 hardcode_libdir_separator_D=:
13495 hardcode_direct_D=yes
13496 hardcode_direct_absolute_D=yes
13497 export_dynamic_flag_spec_D='${wl}-E'
13498 # hardcode_minus_L: Not really in the search PATH,
13499 # but as the default location of the library.
13500 hardcode_minus_L_D=yes
13504 hpux11*)
13505 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13506 case $host_cpu in
13507 hppa*64*)
13508 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13510 ia64*)
13511 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13516 esac
13517 else
13518 case $host_cpu in
13519 hppa*64*)
13520 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13522 ia64*)
13523 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13526 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13528 esac
13530 if test "$with_gnu_ld" = no; then
13531 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13532 hardcode_libdir_separator_D=:
13534 case $host_cpu in
13535 hppa*64*|ia64*)
13536 hardcode_direct_D=no
13537 hardcode_shlibpath_var_D=no
13540 hardcode_direct_D=yes
13541 hardcode_direct_absolute_D=yes
13542 export_dynamic_flag_spec_D='${wl}-E'
13544 # hardcode_minus_L: Not really in the search PATH,
13545 # but as the default location of the library.
13546 hardcode_minus_L_D=yes
13548 esac
13552 irix5* | irix6* | nonstopux*)
13553 if test "$GCC" = yes; then
13554 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'
13555 # Try to use the -exported_symbol ld option, if it does not
13556 # work, assume that -exports_file does not work either and
13557 # implicitly export all symbols.
13558 save_LDFLAGS="$LDFLAGS"
13559 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 int foo(void) {}
13563 _ACEOF
13564 if ac_fn_c_try_link "$LINENO"; then :
13565 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'
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LDFLAGS="$save_LDFLAGS"
13571 else
13572 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'
13573 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'
13575 archive_cmds_need_lc_D='no'
13576 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13577 hardcode_libdir_separator_D=:
13578 inherit_rpath_D=yes
13579 link_all_deplibs_D=yes
13582 netbsd*)
13583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13584 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13585 else
13586 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13588 hardcode_libdir_flag_spec_D='-R$libdir'
13589 hardcode_direct_D=yes
13590 hardcode_shlibpath_var_D=no
13593 newsos6)
13594 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13595 hardcode_direct_D=yes
13596 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13597 hardcode_libdir_separator_D=:
13598 hardcode_shlibpath_var_D=no
13601 *nto* | *qnx*)
13604 openbsd*)
13605 if test -f /usr/libexec/ld.so; then
13606 hardcode_direct_D=yes
13607 hardcode_shlibpath_var_D=no
13608 hardcode_direct_absolute_D=yes
13609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13610 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13611 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13612 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13613 export_dynamic_flag_spec_D='${wl}-E'
13614 else
13615 case $host_os in
13616 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13617 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_libdir_flag_spec_D='-R$libdir'
13621 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13622 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13624 esac
13626 else
13627 ld_shlibs_D=no
13631 os2*)
13632 hardcode_libdir_flag_spec_D='-L$libdir'
13633 hardcode_minus_L_D=yes
13634 allow_undefined_flag_D=unsupported
13635 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'
13636 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13639 osf3*)
13640 if test "$GCC" = yes; then
13641 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13642 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'
13643 else
13644 allow_undefined_flag_D=' -expect_unresolved \*'
13645 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'
13647 archive_cmds_need_lc_D='no'
13648 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13649 hardcode_libdir_separator_D=:
13652 osf4* | osf5*) # as osf3* with the addition of -msym flag
13653 if test "$GCC" = yes; then
13654 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13655 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'
13656 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13657 else
13658 allow_undefined_flag_D=' -expect_unresolved \*'
13659 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'
13660 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~
13661 $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'
13663 # Both c and cxx compiler support -rpath directly
13664 hardcode_libdir_flag_spec_D='-rpath $libdir'
13666 archive_cmds_need_lc_D='no'
13667 hardcode_libdir_separator_D=:
13670 solaris*)
13671 no_undefined_flag_D=' -z defs'
13672 if test "$GCC" = yes; then
13673 wlarc='${wl}'
13674 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13677 else
13678 case `$CC -V 2>&1` in
13679 *"Compilers 5.0"*)
13680 wlarc=''
13681 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13682 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13686 wlarc='${wl}'
13687 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13689 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13691 esac
13693 hardcode_libdir_flag_spec_D='-R$libdir'
13694 hardcode_shlibpath_var_D=no
13695 case $host_os in
13696 solaris2.[0-5] | solaris2.[0-5].*) ;;
13698 # The compiler driver will combine and reorder linker options,
13699 # but understands `-z linker_flag'. GCC discards it without `$wl',
13700 # but is careful enough not to reorder.
13701 # Supported since Solaris 2.6 (maybe 2.5.1?)
13702 if test "$GCC" = yes; then
13703 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13704 else
13705 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13708 esac
13709 link_all_deplibs_D=yes
13712 sunos4*)
13713 if test "x$host_vendor" = xsequent; then
13714 # Use $CC to link under sequent, because it throws in some extra .o
13715 # files that make .init and .fini sections work.
13716 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13717 else
13718 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13720 hardcode_libdir_flag_spec_D='-L$libdir'
13721 hardcode_direct_D=yes
13722 hardcode_minus_L_D=yes
13723 hardcode_shlibpath_var_D=no
13726 sysv4)
13727 case $host_vendor in
13728 sni)
13729 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13730 hardcode_direct_D=yes # is this really true???
13732 siemens)
13733 ## LD is ld it makes a PLAMLIB
13734 ## CC just makes a GrossModule.
13735 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13736 reload_cmds_D='$CC -r -o $output$reload_objs'
13737 hardcode_direct_D=no
13739 motorola)
13740 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13743 esac
13744 runpath_var='LD_RUN_PATH'
13745 hardcode_shlibpath_var_D=no
13748 sysv4.3*)
13749 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13750 hardcode_shlibpath_var_D=no
13751 export_dynamic_flag_spec_D='-Bexport'
13754 sysv4*MP*)
13755 if test -d /usr/nec; then
13756 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13757 hardcode_shlibpath_var_D=no
13758 runpath_var=LD_RUN_PATH
13759 hardcode_runpath_var=yes
13760 ld_shlibs_D=yes
13764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13765 no_undefined_flag_D='${wl}-z,text'
13766 archive_cmds_need_lc_D=no
13767 hardcode_shlibpath_var_D=no
13768 runpath_var='LD_RUN_PATH'
13770 if test "$GCC" = yes; then
13771 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 else
13774 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13779 sysv5* | sco3.2v5* | sco5v6*)
13780 # Note: We can NOT use -z defs as we might desire, because we do not
13781 # link with -lc, and that would cause any symbols used from libc to
13782 # always be unresolved, which means just about no library would
13783 # ever link correctly. If we're not using GNU ld we use -z text
13784 # though, which does catch some bad symbols but isn't as heavy-handed
13785 # as -z defs.
13786 no_undefined_flag_D='${wl}-z,text'
13787 allow_undefined_flag_D='${wl}-z,nodefs'
13788 archive_cmds_need_lc_D=no
13789 hardcode_shlibpath_var_D=no
13790 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13791 hardcode_libdir_separator_D=':'
13792 link_all_deplibs_D=yes
13793 export_dynamic_flag_spec_D='${wl}-Bexport'
13794 runpath_var='LD_RUN_PATH'
13796 if test "$GCC" = yes; then
13797 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 else
13800 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 uts4*)
13806 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_libdir_flag_spec_D='-L$libdir'
13808 hardcode_shlibpath_var_D=no
13812 ld_shlibs_D=no
13814 esac
13816 if test x$host_vendor = xsni; then
13817 case $host in
13818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13819 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13821 esac
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13826 $as_echo "$ld_shlibs_D" >&6; }
13827 test "$ld_shlibs_D" = no && can_build_shared=no
13829 with_gnu_ld_D=$with_gnu_ld
13837 # Do we need to explicitly link libc?
13839 case "x$archive_cmds_need_lc_D" in
13840 x|xyes)
13841 # Assume -lc should be added
13842 archive_cmds_need_lc_D=yes
13844 if test "$enable_shared" = yes && test "$GCC" = yes; then
13845 case $archive_cmds_D in
13846 *'~'*)
13847 # FIXME: we may have to deal with multi-command sequences.
13849 '$CC '*)
13850 # Test whether the compiler implicitly links with -lc since on some
13851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13852 # to ld, don't add -lc before -lgcc.
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13854 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13855 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 $RM conftest*
13859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13862 (eval $ac_compile) 2>&5
13863 ac_status=$?
13864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13865 test $ac_status = 0; } 2>conftest.err; then
13866 soname=conftest
13867 lib=conftest
13868 libobjs=conftest.$ac_objext
13869 deplibs=
13870 wl=$lt_prog_compiler_wl_D
13871 pic_flag=$lt_prog_compiler_pic_D
13872 compiler_flags=-v
13873 linker_flags=-v
13874 verstring=
13875 output_objdir=.
13876 libname=conftest
13877 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13878 allow_undefined_flag_D=
13879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13880 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13881 ac_status=$?
13882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13883 test $ac_status = 0; }
13884 then
13885 lt_cv_archive_cmds_need_lc_D=no
13886 else
13887 lt_cv_archive_cmds_need_lc_D=yes
13889 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13890 else
13891 cat conftest.err 1>&5
13893 $RM conftest*
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13897 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13898 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13900 esac
13903 esac
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13969 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13970 hardcode_action_D=
13971 if test -n "$hardcode_libdir_flag_spec_D" ||
13972 test -n "$runpath_var_D" ||
13973 test "X$hardcode_automatic_D" = "Xyes" ; then
13975 # We can hardcode non-existent directories.
13976 if test "$hardcode_direct_D" != no &&
13977 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13978 # have to relink, otherwise we might link with an installed library
13979 # when we should be linking with a yet-to-be-installed one
13980 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13981 test "$hardcode_minus_L_D" != no; then
13982 # Linking always hardcodes the temporary library directory.
13983 hardcode_action_D=relink
13984 else
13985 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13986 hardcode_action_D=immediate
13988 else
13989 # We cannot hardcode anything, or else we can only hardcode existing
13990 # directories.
13991 hardcode_action_D=unsupported
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13994 $as_echo "$hardcode_action_D" >&6; }
13996 if test "$hardcode_action_D" = relink ||
13997 test "$inherit_rpath_D" = yes; then
13998 # Fast installation is not supported
13999 enable_fast_install=no
14000 elif test "$shlibpath_overrides_runpath" = yes ||
14001 test "$enable_shared" = no; then
14002 # Fast installation is not necessary
14003 enable_fast_install=needless
14014 ac_ext=c
14015 ac_cpp='$CPP $CPPFLAGS'
14016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14021 GCC=$lt_save_GCC
14022 CC=$lt_save_CC
14023 CFLAGS=$lt_save_CFLAGS
14025 GDCFLAGS=$gdc_save_DFLAGS
14030 # libtool variables for Phobos shared and position-independent compiles.
14032 # Use phobos_lt_pic_flag to designate the automake variable
14033 # used to encapsulate the default libtool approach to creating objects
14034 # with position-independent code. Default: -prefer-pic.
14036 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14037 # creating shared objects. Default: -fversion=Shared.
14039 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14040 # creating position-independent objects. This varies with the target
14041 # hardware and operating system, but is often: -fPIC.
14043 # The distinction between pic and shared compilation flags is not present in
14044 # libtool, and so we make it here. How it is handled is that in shared
14045 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14046 # ensure that conditional compilation of shared runtime code is compiled in.
14047 if test "$enable_shared" = yes; then
14048 phobos_lt_pic_flag="-prefer-pic"
14049 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14050 phobos_compiler_shared_flag="-fversion=Shared"
14051 else
14052 phobos_lt_pic_flag=
14053 phobos_compiler_pic_flag=
14054 phobos_compiler_shared_flag=
14060 # Override the libtool's pic_flag and pic_mode.
14061 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14062 # NB: this impacts --with-pic and --without-pic.
14063 lt_prog_compiler_pic_D="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
14064 pic_mode='default'
14066 # Determine what GCC version number to use in filesystem paths.
14068 get_gcc_base_ver="cat"
14070 # Check whether --with-gcc-major-version-only was given.
14071 if test "${with_gcc_major_version_only+set}" = set; then :
14072 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14073 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14081 # libphobos/libdruntime specific options and feature detection
14083 # These need to be absolute paths, yet at the same time need to
14084 # canonicalize only relative paths, because then amd will not unmount
14085 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14086 libphobos_builddir=`${PWDCMD-pwd}`
14087 case $srcdir in
14088 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14089 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14090 esac
14095 if test ${multilib} = yes; then
14096 multilib_arg="--enable-multilib"
14097 else
14098 multilib_arg=
14102 # Check whether --enable-werror was given.
14103 if test "${enable_werror+set}" = set; then :
14104 enableval=$enable_werror;
14107 WERROR_FLAG=""
14108 if test "x$enable_werror" = "xyes"; then
14109 WERROR_FLAG="-Werror"
14115 gdc_save_DFLAGS=$GDCFLAGS
14116 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14118 ac_ext=d
14119 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14120 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu=yes
14123 GDCFLAGS="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
14124 cat > conftest.$ac_ext <<_ACEOF
14125 module object;
14126 int foo; void bar() { }
14128 extern(C) int main() {
14129 return 0;
14131 _ACEOF
14132 if ac_fn_d_try_compile "$LINENO"; then :
14133 ac_fdsections=yes
14134 else
14135 ac_fdsections=no
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 if test "x$ac_fdsections" = "xyes"; then
14139 SECTION_FLAGS='-ffunction-sections -fdata-sections'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14142 $as_echo "$ac_fdsections" >&6; }
14143 ac_ext=c
14144 ac_cpp='$CPP $CPPFLAGS'
14145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14150 GDCFLAGS=$gdc_save_DFLAGS
14155 druntime_target_cpu_parsed=""
14156 case "$target_cpu" in
14157 aarch64*)
14158 druntime_target_cpu_parsed="aarch64"
14160 arm*) druntime_target_cpu_parsed="arm"
14162 mips*) druntime_target_cpu_parsed="mips"
14164 powerpc*)
14165 druntime_target_cpu_parsed="powerpc"
14167 i[34567]86|x86_64)
14168 druntime_target_cpu_parsed="x86"
14170 s390x)
14171 druntime_target_cpu_parsed="s390x"
14173 s390)
14174 druntime_target_cpu_parsed="s390"
14176 esac
14177 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14178 DRUNTIME_CPU_AARCH64_TRUE=
14179 DRUNTIME_CPU_AARCH64_FALSE='#'
14180 else
14181 DRUNTIME_CPU_AARCH64_TRUE='#'
14182 DRUNTIME_CPU_AARCH64_FALSE=
14185 if test "$druntime_target_cpu_parsed" = "arm"; then
14186 DRUNTIME_CPU_ARM_TRUE=
14187 DRUNTIME_CPU_ARM_FALSE='#'
14188 else
14189 DRUNTIME_CPU_ARM_TRUE='#'
14190 DRUNTIME_CPU_ARM_FALSE=
14193 if test "$druntime_target_cpu_parsed" = "mips"; then
14194 DRUNTIME_CPU_MIPS_TRUE=
14195 DRUNTIME_CPU_MIPS_FALSE='#'
14196 else
14197 DRUNTIME_CPU_MIPS_TRUE='#'
14198 DRUNTIME_CPU_MIPS_FALSE=
14201 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14202 DRUNTIME_CPU_POWERPC_TRUE=
14203 DRUNTIME_CPU_POWERPC_FALSE='#'
14204 else
14205 DRUNTIME_CPU_POWERPC_TRUE='#'
14206 DRUNTIME_CPU_POWERPC_FALSE=
14209 if test "$druntime_target_cpu_parsed" = "x86"; then
14210 DRUNTIME_CPU_X86_TRUE=
14211 DRUNTIME_CPU_X86_FALSE='#'
14212 else
14213 DRUNTIME_CPU_X86_TRUE='#'
14214 DRUNTIME_CPU_X86_FALSE=
14217 if test "$druntime_target_cpu_parsed" = "s390x"; then
14218 DRUNTIME_CPU_SYSTEMZ_TRUE=
14219 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14220 else
14221 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14222 DRUNTIME_CPU_SYSTEMZ_FALSE=
14225 if test "$druntime_target_cpu_parsed" = "s390"; then
14226 DRUNTIME_CPU_S390_TRUE=
14227 DRUNTIME_CPU_S390_FALSE='#'
14228 else
14229 DRUNTIME_CPU_S390_TRUE='#'
14230 DRUNTIME_CPU_S390_FALSE=
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14236 $as_echo_n "checking for target OS... " >&6; }
14237 if ${druntime_cv_target_os+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14243 $as_echo "$druntime_cv_target_os" >&6; }
14244 if test -z "$druntime_cv_target_os"; then :
14245 as_fn_error $? "can't detect target OS" "$LINENO" 5
14251 druntime_target_os_parsed=""
14252 case "$druntime_cv_target_os" in
14253 aix*) druntime_target_os_parsed="aix"
14255 *android*)
14256 druntime_target_os_parsed="android"
14258 darwin*) druntime_target_os_parsed="darwin"
14260 dragonfly*)
14261 druntime_target_os_parsed="dragonflybsd"
14263 freebsd*|k*bsd*-gnu)
14264 druntime_target_os_parsed="freebsd"
14266 openbsd*)
14267 druntime_target_os_parsed="openbsd"
14269 netbsd*)
14270 druntime_target_os_parsed="netbsd"
14272 linux*) druntime_target_os_parsed="linux"
14274 mingw*) druntime_target_os_parsed="mingw"
14276 *solaris*) druntime_target_os_parsed="solaris"
14277 esac
14278 if test "$druntime_target_os_parsed" = "aix"; then
14279 DRUNTIME_OS_AIX_TRUE=
14280 DRUNTIME_OS_AIX_FALSE='#'
14281 else
14282 DRUNTIME_OS_AIX_TRUE='#'
14283 DRUNTIME_OS_AIX_FALSE=
14286 if test "$druntime_target_os_parsed" = "android"; then
14287 DRUNTIME_OS_ANDROID_TRUE=
14288 DRUNTIME_OS_ANDROID_FALSE='#'
14289 else
14290 DRUNTIME_OS_ANDROID_TRUE='#'
14291 DRUNTIME_OS_ANDROID_FALSE=
14294 if test "$druntime_target_os_parsed" = "darwin"; then
14295 DRUNTIME_OS_DARWIN_TRUE=
14296 DRUNTIME_OS_DARWIN_FALSE='#'
14297 else
14298 DRUNTIME_OS_DARWIN_TRUE='#'
14299 DRUNTIME_OS_DARWIN_FALSE=
14302 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14303 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14304 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14305 else
14306 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14307 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14310 if test "$druntime_target_os_parsed" = "freebsd"; then
14311 DRUNTIME_OS_FREEBSD_TRUE=
14312 DRUNTIME_OS_FREEBSD_FALSE='#'
14313 else
14314 DRUNTIME_OS_FREEBSD_TRUE='#'
14315 DRUNTIME_OS_FREEBSD_FALSE=
14318 if test "$druntime_target_os_parsed" = "netbsd"; then
14319 DRUNTIME_OS_NETBSD_TRUE=
14320 DRUNTIME_OS_NETBSD_FALSE='#'
14321 else
14322 DRUNTIME_OS_NETBSD_TRUE='#'
14323 DRUNTIME_OS_NETBSD_FALSE=
14326 if test "$druntime_target_os_parsed" = "openbsd"; then
14327 DRUNTIME_OS_OPENBSD_TRUE=
14328 DRUNTIME_OS_OPENBSD_FALSE='#'
14329 else
14330 DRUNTIME_OS_OPENBSD_TRUE='#'
14331 DRUNTIME_OS_OPENBSD_FALSE=
14334 if test "$druntime_target_os_parsed" = "linux"; then
14335 DRUNTIME_OS_LINUX_TRUE=
14336 DRUNTIME_OS_LINUX_FALSE='#'
14337 else
14338 DRUNTIME_OS_LINUX_TRUE='#'
14339 DRUNTIME_OS_LINUX_FALSE=
14342 if test "$druntime_target_os_parsed" = "mingw"; then
14343 DRUNTIME_OS_MINGW_TRUE=
14344 DRUNTIME_OS_MINGW_FALSE='#'
14345 else
14346 DRUNTIME_OS_MINGW_TRUE='#'
14347 DRUNTIME_OS_MINGW_FALSE=
14350 if test "$druntime_target_os_parsed" = "solaris"; then
14351 DRUNTIME_OS_SOLARIS_TRUE=
14352 DRUNTIME_OS_SOLARIS_FALSE='#'
14353 else
14354 DRUNTIME_OS_SOLARIS_TRUE='#'
14355 DRUNTIME_OS_SOLARIS_FALSE=
14359 druntime_target_posix="no"
14360 case "$druntime_cv_target_os" in
14361 aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
14362 druntime_target_posix="yes"
14364 esac
14365 if test "$druntime_target_posix" = "yes"; then
14366 DRUNTIME_OS_POSIX_TRUE=
14367 DRUNTIME_OS_POSIX_FALSE='#'
14368 else
14369 DRUNTIME_OS_POSIX_TRUE='#'
14370 DRUNTIME_OS_POSIX_FALSE=
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14377 $as_echo_n "checking for thread model used by GDC... " >&6; }
14378 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14380 $as_echo "$d_thread_model" >&6; }
14382 # Map from thread model to thread interface.
14384 case $d_thread_model in
14385 aix) DCFG_THREAD_MODEL="Posix" ;;
14386 lynx) DCFG_THREAD_MODEL="Posix" ;;
14387 posix) DCFG_THREAD_MODEL="Posix" ;;
14388 single) DCFG_THREAD_MODEL="Single" ;;
14389 win32) DCFG_THREAD_MODEL="Win32" ;;
14390 # TODO: These targets need porting.
14391 dce|mipssde|rtems|tpf|vxworks)
14392 DCFG_THREAD_MODEL="Single" ;;
14393 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14394 esac
14399 ac_ext=c
14400 ac_cpp='$CPP $CPPFLAGS'
14401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14406 $as_echo_n "checking for ARM unwinder... " >&6; }
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 #include <unwind.h>
14411 main ()
14414 #if __ARM_EABI_UNWINDER__
14415 #error Yes, it is.
14416 #endif
14419 return 0;
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"; then :
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14425 DCFG_ARM_EABI_UNWINDER=false
14426 else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14428 $as_echo "yes" >&6; }
14429 DCFG_ARM_EABI_UNWINDER=true
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14434 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14435 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14436 else
14437 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14438 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14441 ac_ext=c
14442 ac_cpp='$CPP $CPPFLAGS'
14443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14451 ac_ext=c
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14458 $as_echo_n "checking for minfo section bracketing... " >&6; }
14459 case "$druntime_cv_target_os" in
14460 darwin*)
14461 section="__DATA,__minfodata"
14462 start="section\$start\$__DATA\$__minfodata"
14463 stop="section\$end\$__DATA\$__minfodata"
14466 section="minfo"
14467 start="__start_minfo"
14468 stop="__stop_minfo"
14470 esac
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14474 void* module_info_ptr __attribute__((section ("$section")));
14475 extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
14476 extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
14478 int main()
14480 // Never run, just to prevent compiler from optimizing access
14481 return (int)(&stop_minfo - &start_minfo);
14484 _ACEOF
14485 if ac_fn_c_try_link "$LINENO"; then :
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14487 $as_echo "yes" >&6; }
14488 DCFG_MINFO_BRACKETING=true
14489 else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14492 DCFG_MINFO_BRACKETING=false
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext conftest.$ac_ext
14497 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14498 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14499 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14500 else
14501 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14502 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14505 ac_ext=c
14506 ac_cpp='$CPP $CPPFLAGS'
14507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14513 ac_ext=c
14514 ac_cpp='$CPP $CPPFLAGS'
14515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14519 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14521 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14522 DCFG_DLPI_TLS_MODID=true
14523 else
14524 DCFG_DLPI_TLS_MODID=false
14528 ac_ext=c
14529 ac_cpp='$CPP $CPPFLAGS'
14530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14536 case $target in
14537 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14538 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14539 # relocs. Work around by disabling TLS transitions. Not necessary
14540 # on 32-bit x86, but cannot be distinguished reliably in specs.
14541 druntime_ld_prog=`$CC -print-prog-name=ld`
14542 druntime_ld_gld=no
14543 druntime_ld_relax_transtls=no
14544 if test -n "$druntime_ld_prog" \
14545 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14546 druntime_ld_gld=yes
14547 else
14548 echo 'int main (void) { return 0; }' > conftest.c
14549 save_LDFLAGS="$LDFLAGS"
14550 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14551 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14552 druntime_ld_relax_transtls=yes
14554 LDFLAGS="$save_LDFLAGS"
14555 rm -f conftest.c conftest
14557 if test "$druntime_ld_relax_transtls" = "yes"; then
14558 OS_LINK_SPEC='-z relax=transtls'
14561 esac
14565 ac_ext=c
14566 ac_cpp='$CPP $CPPFLAGS'
14567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14571 DCFG_HAVE_QSORT_R=false
14572 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14573 if test "x$ac_cv_func_qsort_r" = xyes; then :
14574 DCFG_HAVE_QSORT_R=true
14578 ac_ext=c
14579 ac_cpp='$CPP $CPPFLAGS'
14580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14588 gdc_save_DFLAGS=$GDCFLAGS
14589 GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14591 ac_ext=d
14592 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14593 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594 ac_compiler_gnu=yes
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14597 $as_echo_n "checking for library containing malloc... " >&6; }
14598 if ${ac_cv_search_malloc+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 ac_func_search_save_LIBS=$LIBS
14602 cat > conftest.$ac_ext <<_ACEOF
14603 module object;
14604 extern(C) int malloc();
14606 extern(C) int main() {
14607 malloc(); return 0;
14609 _ACEOF
14610 for ac_lib in '' c; do
14611 if test -z "$ac_lib"; then
14612 ac_res="none required"
14613 else
14614 ac_res=-l$ac_lib
14615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14617 if ac_fn_d_try_link "$LINENO"; then :
14618 ac_cv_search_malloc=$ac_res
14620 rm -f core conftest.err conftest.$ac_objext \
14621 conftest$ac_exeext
14622 if ${ac_cv_search_malloc+:} false; then :
14623 break
14625 done
14626 if ${ac_cv_search_malloc+:} false; then :
14628 else
14629 ac_cv_search_malloc=no
14631 rm conftest.$ac_ext
14632 LIBS=$ac_func_search_save_LIBS
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14635 $as_echo "$ac_cv_search_malloc" >&6; }
14636 ac_res=$ac_cv_search_malloc
14637 if test "$ac_res" != no; then :
14638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14643 $as_echo_n "checking for library containing pthread_create... " >&6; }
14644 if ${ac_cv_search_pthread_create+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_func_search_save_LIBS=$LIBS
14648 cat > conftest.$ac_ext <<_ACEOF
14649 module object;
14650 extern(C) int pthread_create();
14652 extern(C) int main() {
14653 pthread_create(); return 0;
14655 _ACEOF
14656 for ac_lib in '' pthread; do
14657 if test -z "$ac_lib"; then
14658 ac_res="none required"
14659 else
14660 ac_res=-l$ac_lib
14661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14663 if ac_fn_d_try_link "$LINENO"; then :
14664 ac_cv_search_pthread_create=$ac_res
14666 rm -f core conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext
14668 if ${ac_cv_search_pthread_create+:} false; then :
14669 break
14671 done
14672 if ${ac_cv_search_pthread_create+:} false; then :
14674 else
14675 ac_cv_search_pthread_create=no
14677 rm conftest.$ac_ext
14678 LIBS=$ac_func_search_save_LIBS
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14681 $as_echo "$ac_cv_search_pthread_create" >&6; }
14682 ac_res=$ac_cv_search_pthread_create
14683 if test "$ac_res" != no; then :
14684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14689 $as_echo_n "checking for library containing cosf... " >&6; }
14690 if ${ac_cv_search_cosf+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693 ac_func_search_save_LIBS=$LIBS
14694 cat > conftest.$ac_ext <<_ACEOF
14695 module object;
14696 extern(C) int cosf();
14698 extern(C) int main() {
14699 cosf(); return 0;
14701 _ACEOF
14702 for ac_lib in '' m; do
14703 if test -z "$ac_lib"; then
14704 ac_res="none required"
14705 else
14706 ac_res=-l$ac_lib
14707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14709 if ac_fn_d_try_link "$LINENO"; then :
14710 ac_cv_search_cosf=$ac_res
14712 rm -f core conftest.err conftest.$ac_objext \
14713 conftest$ac_exeext
14714 if ${ac_cv_search_cosf+:} false; then :
14715 break
14717 done
14718 if ${ac_cv_search_cosf+:} false; then :
14720 else
14721 ac_cv_search_cosf=no
14723 rm conftest.$ac_ext
14724 LIBS=$ac_func_search_save_LIBS
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14727 $as_echo "$ac_cv_search_cosf" >&6; }
14728 ac_res=$ac_cv_search_cosf
14729 if test "$ac_res" != no; then :
14730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14735 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14736 if ${ac_cv_search_clock_gettime+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 ac_func_search_save_LIBS=$LIBS
14740 cat > conftest.$ac_ext <<_ACEOF
14741 module object;
14742 extern(C) int clock_gettime();
14744 extern(C) int main() {
14745 clock_gettime(); return 0;
14747 _ACEOF
14748 for ac_lib in '' rt; do
14749 if test -z "$ac_lib"; then
14750 ac_res="none required"
14751 else
14752 ac_res=-l$ac_lib
14753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14755 if ac_fn_d_try_link "$LINENO"; then :
14756 ac_cv_search_clock_gettime=$ac_res
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext
14760 if ${ac_cv_search_clock_gettime+:} false; then :
14761 break
14763 done
14764 if ${ac_cv_search_clock_gettime+:} false; then :
14766 else
14767 ac_cv_search_clock_gettime=no
14769 rm conftest.$ac_ext
14770 LIBS=$ac_func_search_save_LIBS
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14773 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14774 ac_res=$ac_cv_search_clock_gettime
14775 if test "$ac_res" != no; then :
14776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14781 # This checks to see if the host supports the compiler-generated builtins
14782 # for atomic operations for various integral sizes. Note, this is intended
14783 # to be an all-or-nothing switch, so all the atomic operations that are
14784 # used should be checked.
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14786 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14787 if ${druntime_cv_atomic_byte+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14791 cat > conftest.$ac_ext <<_ACEOF
14792 module object;
14793 import gcc.builtins;
14795 extern(C) int main() {
14797 shared(byte) c1;
14798 byte c2, c3;
14799 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14800 __atomic_load_1(&c1, 5);
14801 __atomic_store_1(&c1, c2, 5);
14802 return 0;
14805 _ACEOF
14806 if ac_fn_d_try_link "$LINENO"; then :
14807 druntime_cv_atomic_byte=yes
14808 else
14809 druntime_cv_atomic_byte=no
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14817 $as_echo "$druntime_cv_atomic_byte" >&6; }
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14820 $as_echo_n "checking for atomic builtins for short... " >&6; }
14821 if ${druntime_cv_atomic_short+:} false; then :
14822 $as_echo_n "(cached) " >&6
14823 else
14825 cat > conftest.$ac_ext <<_ACEOF
14826 module object;
14827 import gcc.builtins;
14829 extern(C) int main() {
14831 shared(short) c1;
14832 short c2, c3;
14833 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14834 __atomic_load_2(&c1, 5);
14835 __atomic_store_2(&c1, c2, 5);
14836 return 0;
14839 _ACEOF
14840 if ac_fn_d_try_link "$LINENO"; then :
14841 druntime_cv_atomic_short=yes
14842 else
14843 druntime_cv_atomic_short=no
14845 rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14851 $as_echo "$druntime_cv_atomic_short" >&6; }
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14854 $as_echo_n "checking for atomic builtins for int... " >&6; }
14855 if ${druntime_cv_atomic_int+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14859 cat > conftest.$ac_ext <<_ACEOF
14860 module object;
14861 import gcc.builtins;
14863 extern(C) int main() {
14865 shared(int) c1;
14866 int c2, c3;
14867 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14868 __atomic_load_4(&c1, 5);
14869 __atomic_store_4(&c1, c2, 5);
14870 return 0;
14873 _ACEOF
14874 if ac_fn_d_try_link "$LINENO"; then :
14875 druntime_cv_atomic_int=yes
14876 else
14877 druntime_cv_atomic_int=no
14879 rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14885 $as_echo "$druntime_cv_atomic_int" >&6; }
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14888 $as_echo_n "checking for atomic builtins for long... " >&6; }
14889 if ${druntime_cv_atomic_long+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14893 cat > conftest.$ac_ext <<_ACEOF
14894 module object;
14895 import gcc.builtins;
14897 extern(C) int main() {
14899 shared(long) c1;
14900 long c2, c3;
14901 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14902 __atomic_load_8(&c1, 5);
14903 __atomic_store_8(&c1, c2, 5);
14904 return 0;
14907 _ACEOF
14908 if ac_fn_d_try_link "$LINENO"; then :
14909 druntime_cv_atomic_long=yes
14910 else
14911 druntime_cv_atomic_long=no
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14919 $as_echo "$druntime_cv_atomic_long" >&6; }
14921 # Have atomic builtin support if all but the long test above passes.
14922 DCFG_HAVE_ATOMIC_BUILTINS=false
14923 if test "$druntime_cv_atomic_byte" = yes \
14924 && test "$druntime_cv_atomic_short" = yes \
14925 && test "$druntime_cv_atomic_int" = yes; then \
14926 DCFG_HAVE_ATOMIC_BUILTINS=true
14929 # Have 64-bit atomic support if the long test above passes.
14930 DCFG_HAVE_64BIT_ATOMICS=false
14931 if test "$druntime_cv_atomic_long" = yes; then
14932 DCFG_HAVE_64BIT_ATOMICS=true
14938 ac_ext=c
14939 ac_cpp='$CPP $CPPFLAGS'
14940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14945 GDCFLAGS=$gdc_save_DFLAGS
14950 # Check whether --with-libatomic was given.
14951 if test "${with_libatomic+set}" = set; then :
14952 withval=$with_libatomic;
14956 DCFG_HAVE_LIBATOMIC=false
14957 LIBATOMIC=
14958 if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
14960 DCFG_HAVE_LIBATOMIC=true
14961 LIBATOMIC=../../libatomic/libatomic_convenience.la
14963 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14966 $as_echo_n "checking for libatomic... " >&6; }
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14968 $as_echo "disabled" >&6; }
14976 ac_ext=c
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14982 BACKTRACE_SUPPORTED=false
14983 BACKTRACE_USES_MALLOC=false
14984 BACKTRACE_SUPPORTS_THREADS=false
14985 LIBBACKTRACE=""
14988 # Check whether --with-libbacktrace was given.
14989 if test "${with_libbacktrace+set}" = set; then :
14990 withval=$with_libbacktrace;
14994 if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
14996 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14998 gdc_save_CPPFLAGS=$CPPFLAGS
14999 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
15001 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
15002 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
15003 have_libbacktrace_h=true
15004 else
15005 have_libbacktrace_h=false
15010 if $have_libbacktrace_h; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
15012 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15016 #include <backtrace-supported.h>
15017 #if BACKTRACE_SUPPORTED
15018 FOUND_LIBBACKTRACE_RESULT_GDC
15019 #endif
15021 _ACEOF
15022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15023 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15024 BACKTRACE_SUPPORTED=true
15025 else
15026 BACKTRACE_SUPPORTED=false
15028 rm -f conftest*
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
15031 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
15034 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15038 #include <backtrace-supported.h>
15039 #if BACKTRACE_USES_MALLOC
15040 FOUND_LIBBACKTRACE_RESULT_GDC
15041 #endif
15043 _ACEOF
15044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15045 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15046 BACKTRACE_USES_MALLOC=true
15047 else
15048 BACKTRACE_USES_MALLOC=false
15050 rm -f conftest*
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
15053 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
15056 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15060 #include <backtrace-supported.h>
15061 #if BACKTRACE_SUPPORTS_THREADS
15062 FOUND_LIBBACKTRACE_RESULT_GDC
15063 #endif
15065 _ACEOF
15066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15067 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
15068 BACKTRACE_SUPPORTS_THREADS=true
15069 else
15070 BACKTRACE_SUPPORTS_THREADS=false
15072 rm -f conftest*
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
15075 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
15077 CPPFLAGS=$gdc_save_CPPFLAGS
15079 else
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15082 $as_echo_n "checking for libbacktrace... " >&6; }
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15084 $as_echo "disabled" >&6; }
15092 ac_ext=c
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15100 # Libtool has already checked this, so re-use the inferred dlopen lib.
15101 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15103 LIBS="$LIBS $lt_cv_dlopen_libs"
15108 druntime_check_both=no
15109 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15110 if test "x$ac_cv_func_connect" = xyes; then :
15112 else
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15114 $as_echo_n "checking for connect in -lsocket... " >&6; }
15115 if ${ac_cv_lib_socket_connect+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 ac_check_lib_save_LIBS=$LIBS
15119 LIBS="-lsocket $LIBS"
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char connect ();
15131 main ()
15133 return connect ();
15135 return 0;
15137 _ACEOF
15138 if ac_fn_c_try_link "$LINENO"; then :
15139 ac_cv_lib_socket_connect=yes
15140 else
15141 ac_cv_lib_socket_connect=no
15143 rm -f core conftest.err conftest.$ac_objext \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15148 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15149 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15150 LIBS="$LIBS -lsocket"
15151 else
15152 druntime_check_both=yes
15157 if test "$druntime_check_both" = "yes"; then
15158 druntime_old_libs=$LIBS
15159 LIBS="$LIBS -lsocket -lnsl"
15160 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15161 if test "x$ac_cv_func_accept" = xyes; then :
15163 else
15164 LIBS=$druntime_old_libs
15168 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15169 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15173 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15174 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lnsl $LIBS"
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char gethostbyname ();
15190 main ()
15192 return gethostbyname ();
15194 return 0;
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198 ac_cv_lib_nsl_gethostbyname=yes
15199 else
15200 ac_cv_lib_nsl_gethostbyname=no
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 LIBS=$ac_check_lib_save_LIBS
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15207 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15208 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15209 LIBS="$LIBS -lnsl"
15216 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15217 # "yes" for targets that have 'version = AsmExternal'.
15218 druntime_fiber_asm_external=no
15219 case "$target_cpu" in
15220 aarch64* | \
15221 arm* | \
15222 i[34567]86|x86_64 | \
15223 powerpc)
15224 druntime_fiber_asm_external=yes
15226 esac
15227 if test "$druntime_fiber_asm_external" = no; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15229 $as_echo_n "checking for library containing swapcontext... " >&6; }
15230 if ${ac_cv_search_swapcontext+:} false; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 ac_func_search_save_LIBS=$LIBS
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15237 /* Override any GCC internal prototype to avoid an error.
15238 Use char because int might match the return type of a GCC
15239 builtin and then its argument prototype would still apply. */
15240 #ifdef __cplusplus
15241 extern "C"
15242 #endif
15243 char swapcontext ();
15245 main ()
15247 return swapcontext ();
15249 return 0;
15251 _ACEOF
15252 for ac_lib in '' c ucontext; do
15253 if test -z "$ac_lib"; then
15254 ac_res="none required"
15255 else
15256 ac_res=-l$ac_lib
15257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15259 if ac_fn_c_try_link "$LINENO"; then :
15260 ac_cv_search_swapcontext=$ac_res
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext
15264 if ${ac_cv_search_swapcontext+:} false; then :
15265 break
15267 done
15268 if ${ac_cv_search_swapcontext+:} false; then :
15270 else
15271 ac_cv_search_swapcontext=no
15273 rm conftest.$ac_ext
15274 LIBS=$ac_func_search_save_LIBS
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15277 $as_echo "$ac_cv_search_swapcontext" >&6; }
15278 ac_res=$ac_cv_search_swapcontext
15279 if test "$ac_res" != no; then :
15280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15282 else
15283 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15289 ac_ext=c
15290 ac_cpp='$CPP $CPPFLAGS'
15291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15295 LIBZ=""
15298 # Check whether --with-target-system-zlib was given.
15299 if test "${with_target_system_zlib+set}" = set; then :
15300 withval=$with_target_system_zlib;
15301 else
15302 with_target_system_zlib=no
15306 case "$with_target_system_zlib" in
15307 yes|no|auto) ;;
15308 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15309 esac
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15312 $as_echo_n "checking for system zlib... " >&6; }
15313 save_LIBS=$LIBS
15314 LIBS="$LIBS -lz"
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 #include <zlib.h>
15319 main ()
15321 gzopen("none", "rb")
15323 return 0;
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"; then :
15328 if test "$cross_compiling" = yes; then :
15329 system_zlib_found=no
15331 else
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15335 #include <zlib.h>
15336 int main() {
15337 gzFile file = gzopen("none", "rb");
15338 return 0;
15341 _ACEOF
15342 if ac_fn_c_try_run "$LINENO"; then :
15343 system_zlib_found=yes
15344 else
15345 system_zlib_found=no
15347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15348 conftest.$ac_objext conftest.beam conftest.$ac_ext
15352 else
15353 system_zlib_found=no
15355 rm -f core conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext conftest.$ac_ext
15357 LIBS=$save_LIBS
15359 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15361 $as_echo "found" >&6; }
15362 LIBS="$LIBS -lz"
15363 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15364 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15365 else
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15367 $as_echo "just compiled" >&6; }
15368 LIBZ=../../zlib/libz_convenience.la
15372 ac_ext=c
15373 ac_cpp='$CPP $CPPFLAGS'
15374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15383 $as_echo_n "checking D GCC version... " >&6; }
15384 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15386 $as_echo "$gcc_version" >&6; }
15390 # Check whether --with-cross-host was given.
15391 if test "${with_cross_host+set}" = set; then :
15392 withval=$with_cross_host;
15396 libphobos_toolexecdir=no
15397 libphobos_toolexeclibdir=no
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15400 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15401 # Check whether --enable-version-specific-runtime-libs was given.
15402 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15403 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15404 yes) version_specific_libs=yes ;;
15405 no) version_specific_libs=no ;;
15406 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15407 esac
15408 else
15409 version_specific_libs=no
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15413 $as_echo "$version_specific_libs" >&6; }
15416 # Check whether --with-toolexeclibdir was given.
15417 if test "${with_toolexeclibdir+set}" = set; then :
15418 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15422 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15424 esac
15425 else
15426 with_toolexeclibdir=no
15431 # Version-specific runtime libs processing.
15432 if test $version_specific_libs = yes; then
15433 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15434 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15435 else
15436 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15437 # Install a library built with a cross compiler in tooldir, not libdir.
15438 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15439 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15440 case ${with_toolexeclibdir} in
15442 libphobos_toolexeclibdir='${toolexecdir}/lib'
15445 libphobos_toolexeclibdir=${with_toolexeclibdir}
15447 esac
15448 else
15449 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15450 libphobos_toolexeclibdir='${libdir}'
15452 multi_os_directory=`$GDC -print-multi-os-directory`
15453 case $multi_os_directory in
15454 .) ;; # Avoid trailing /.
15455 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15456 esac
15461 # Default case for install directory for D sources files.
15462 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15467 $as_echo_n "checking for --enable-libphobos... " >&6; }
15468 # Check whether --enable-libphobos was given.
15469 if test "${enable_libphobos+set}" = set; then :
15470 enableval=$enable_libphobos;
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15474 $as_echo "$enable_libphobos" >&6; }
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15477 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15479 # Check whether --with-libphobos-druntime-only was given.
15480 if test "${with_libphobos_druntime_only+set}" = set; then :
15481 withval=$with_libphobos_druntime_only;
15482 else
15483 with_libphobos_druntime_only=auto
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15487 $as_echo "$with_libphobos_druntime_only" >&6; }
15489 case "$with_libphobos_druntime_only" in
15490 yes|no|auto) ;;
15491 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15492 esac
15494 # See if supported.
15495 unset LIBPHOBOS_SUPPORTED
15496 unset LIBDRUNTIME_ONLY
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15498 $as_echo_n "checking for host support for libphobos... " >&6; }
15499 . ${srcdir}/configure.tgt
15500 case ${host} in
15501 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15502 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15503 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15504 LIBPHOBOS_SUPPORTED=no
15507 esac
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15509 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15511 # Decide if it's usable.
15512 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15513 *:no) use_libphobos=no ;;
15514 *:yes) use_libphobos=yes ;;
15515 yes:*) use_libphobos=yes ;;
15516 *:*) use_libphobos=no ;;
15517 esac
15518 if test x$use_libphobos = xyes; then
15519 ENABLE_LIBPHOBOS_TRUE=
15520 ENABLE_LIBPHOBOS_FALSE='#'
15521 else
15522 ENABLE_LIBPHOBOS_TRUE='#'
15523 ENABLE_LIBPHOBOS_FALSE=
15527 # Decide if only libdruntime should be built.
15528 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15529 *:no) only_libdruntime=no ;;
15530 *:yes) only_libdruntime=yes ;;
15531 yes:*) only_libdruntime=yes ;;
15532 *:*) only_libdruntime=no ;;
15533 esac
15534 if test x$only_libdruntime = xyes; then
15535 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15536 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15537 else
15538 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15539 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15543 # Enable expensive internal checks
15544 # Check whether --enable-libphobos-checking was given.
15545 if test "${enable_libphobos_checking+set}" = set; then :
15546 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15547 else
15548 ac_checking_flags=release
15551 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15552 for check in release $ac_checking_flags
15554 case $check in
15555 # These set all the flags to specific states
15556 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15557 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15558 # These enable particular checks
15559 assert) ASSERT_FLAG="-fassert" ;;
15560 # Accept
15561 *) ;;
15562 esac
15563 done
15564 IFS="$ac_save_IFS"
15565 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15568 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15569 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15570 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15571 else
15572 DRTSTUFF_SPEC=/dev/null
15576 # Add dependencies for libgphobos.spec file
15577 SPEC_PHOBOS_DEPS="$LIBS"
15580 # Libdruntime / phobos soname version
15581 libtool_VERSION=4:0:0
15584 # Set default flags (after DRUNTIME_WERROR!)
15585 if test -z "$GDCFLAGS"; then
15586 GDCFLAGS="-g -O2"
15590 WARN_DFLAGS="-Wall $WERROR_FLAG"
15593 # Sanity check for the cross-compilation case:
15594 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15595 if test "x$ac_cv_header_stdio_h" = xyes; then :
15597 else
15598 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15603 ac_config_files="$ac_config_files Makefile"
15606 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15608 ac_config_files="$ac_config_files src/libgphobos.spec"
15610 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15613 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15614 # that multilib installs will end up installed in the correct place.
15615 # The testsuite needs it for multilib-aware ABI baseline files.
15616 # To work around this not being passed down from config-ml.in ->
15617 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15618 # append it here. Only modify Makefiles that have just been created.
15620 # Also, get rid of this simulated-VPATH thing that automake does.
15621 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15624 cat >confcache <<\_ACEOF
15625 # This file is a shell script that caches the results of configure
15626 # tests run on this system so they can be shared between configure
15627 # scripts and configure runs, see configure's option --config-cache.
15628 # It is not useful on other systems. If it contains results you don't
15629 # want to keep, you may remove or edit it.
15631 # config.status only pays attention to the cache file if you give it
15632 # the --recheck option to rerun configure.
15634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15636 # following values.
15638 _ACEOF
15640 # The following way of writing the cache mishandles newlines in values,
15641 # but we know of no workaround that is simple, portable, and efficient.
15642 # So, we kill variables containing newlines.
15643 # Ultrix sh set writes to stderr and can't be redirected directly,
15644 # and sets the high bit in the cache file unless we assign to the vars.
15646 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15647 eval ac_val=\$$ac_var
15648 case $ac_val in #(
15649 *${as_nl}*)
15650 case $ac_var in #(
15651 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15652 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15653 esac
15654 case $ac_var in #(
15655 _ | IFS | as_nl) ;; #(
15656 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15657 *) { eval $ac_var=; unset $ac_var;} ;;
15658 esac ;;
15659 esac
15660 done
15662 (set) 2>&1 |
15663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15664 *${as_nl}ac_space=\ *)
15665 # `set' does not quote correctly, so add quotes: double-quote
15666 # substitution turns \\\\ into \\, and sed turns \\ into \.
15667 sed -n \
15668 "s/'/'\\\\''/g;
15669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15670 ;; #(
15672 # `set' quotes correctly as required by POSIX, so do not add quotes.
15673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15675 esac |
15676 sort
15678 sed '
15679 /^ac_cv_env_/b end
15680 t clear
15681 :clear
15682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15683 t end
15684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15685 :end' >>confcache
15686 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15687 if test -w "$cache_file"; then
15688 if test "x$cache_file" != "x/dev/null"; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15690 $as_echo "$as_me: updating cache $cache_file" >&6;}
15691 if test ! -f "$cache_file" || test -h "$cache_file"; then
15692 cat confcache >"$cache_file"
15693 else
15694 case $cache_file in #(
15695 */* | ?:*)
15696 mv -f confcache "$cache_file"$$ &&
15697 mv -f "$cache_file"$$ "$cache_file" ;; #(
15699 mv -f confcache "$cache_file" ;;
15700 esac
15703 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15705 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15708 rm -f confcache
15710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15711 # Let make expand exec_prefix.
15712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15714 DEFS=-DHAVE_CONFIG_H
15716 ac_libobjs=
15717 ac_ltlibobjs=
15719 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15720 # 1. Remove the extension, and $U if already installed.
15721 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15722 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15723 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15724 # will be set to the directory where LIBOBJS objects are built.
15725 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15726 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15727 done
15728 LIBOBJS=$ac_libobjs
15730 LTLIBOBJS=$ac_ltlibobjs
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15734 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15735 if test -n "$am_sleep_pid"; then
15736 # Hide warnings about reused PIDs.
15737 wait $am_sleep_pid 2>/dev/null
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15740 $as_echo "done" >&6; }
15741 if test -n "$EXEEXT"; then
15742 am__EXEEXT_TRUE=
15743 am__EXEEXT_FALSE='#'
15744 else
15745 am__EXEEXT_TRUE='#'
15746 am__EXEEXT_FALSE=
15749 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15750 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15754 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15757 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15758 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15761 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15762 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15765 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15766 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15769 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15770 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15773 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15774 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15777 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15778 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15781 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15782 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15785 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15786 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15789 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15790 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15793 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15794 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15797 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15798 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15801 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15802 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15805 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15806 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15809 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15810 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15813 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15814 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15817 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15818 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15821 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15822 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15825 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15826 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15829 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15830 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15833 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15834 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15838 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15842 : "${CONFIG_STATUS=./config.status}"
15843 ac_write_fail=0
15844 ac_clean_files_save=$ac_clean_files
15845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15847 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15848 as_write_fail=0
15849 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15850 #! $SHELL
15851 # Generated by $as_me.
15852 # Run this file to recreate the current configuration.
15853 # Compiler output produced by configure, useful for debugging
15854 # configure, is in config.log if it exists.
15856 debug=false
15857 ac_cs_recheck=false
15858 ac_cs_silent=false
15860 SHELL=\${CONFIG_SHELL-$SHELL}
15861 export SHELL
15862 _ASEOF
15863 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15864 ## -------------------- ##
15865 ## M4sh Initialization. ##
15866 ## -------------------- ##
15868 # Be more Bourne compatible
15869 DUALCASE=1; export DUALCASE # for MKS sh
15870 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15871 emulate sh
15872 NULLCMD=:
15873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15874 # is contrary to our usage. Disable this feature.
15875 alias -g '${1+"$@"}'='"$@"'
15876 setopt NO_GLOB_SUBST
15877 else
15878 case `(set -o) 2>/dev/null` in #(
15879 *posix*) :
15880 set -o posix ;; #(
15881 *) :
15883 esac
15887 as_nl='
15889 export as_nl
15890 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15891 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15894 # Prefer a ksh shell builtin over an external printf program on Solaris,
15895 # but without wasting forks for bash or zsh.
15896 if test -z "$BASH_VERSION$ZSH_VERSION" \
15897 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15898 as_echo='print -r --'
15899 as_echo_n='print -rn --'
15900 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15901 as_echo='printf %s\n'
15902 as_echo_n='printf %s'
15903 else
15904 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15905 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15906 as_echo_n='/usr/ucb/echo -n'
15907 else
15908 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15909 as_echo_n_body='eval
15910 arg=$1;
15911 case $arg in #(
15912 *"$as_nl"*)
15913 expr "X$arg" : "X\\(.*\\)$as_nl";
15914 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15915 esac;
15916 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15918 export as_echo_n_body
15919 as_echo_n='sh -c $as_echo_n_body as_echo'
15921 export as_echo_body
15922 as_echo='sh -c $as_echo_body as_echo'
15925 # The user is always right.
15926 if test "${PATH_SEPARATOR+set}" != set; then
15927 PATH_SEPARATOR=:
15928 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15929 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15930 PATH_SEPARATOR=';'
15935 # IFS
15936 # We need space, tab and new line, in precisely that order. Quoting is
15937 # there to prevent editors from complaining about space-tab.
15938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15939 # splitting by setting IFS to empty value.)
15940 IFS=" "" $as_nl"
15942 # Find who we are. Look in the path if we contain no directory separator.
15943 as_myself=
15944 case $0 in #((
15945 *[\\/]* ) as_myself=$0 ;;
15946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947 for as_dir in $PATH
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15952 done
15953 IFS=$as_save_IFS
15956 esac
15957 # We did not find ourselves, most probably we were run as `sh COMMAND'
15958 # in which case we are not to be found in the path.
15959 if test "x$as_myself" = x; then
15960 as_myself=$0
15962 if test ! -f "$as_myself"; then
15963 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15964 exit 1
15967 # Unset variables that we do not need and which cause bugs (e.g. in
15968 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15969 # suppresses any "Segmentation fault" message there. '((' could
15970 # trigger a bug in pdksh 5.2.14.
15971 for as_var in BASH_ENV ENV MAIL MAILPATH
15972 do eval test x\${$as_var+set} = xset \
15973 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15974 done
15975 PS1='$ '
15976 PS2='> '
15977 PS4='+ '
15979 # NLS nuisances.
15980 LC_ALL=C
15981 export LC_ALL
15982 LANGUAGE=C
15983 export LANGUAGE
15985 # CDPATH.
15986 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15989 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15990 # ----------------------------------------
15991 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15992 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15993 # script with STATUS, using 1 if that was 0.
15994 as_fn_error ()
15996 as_status=$1; test $as_status -eq 0 && as_status=1
15997 if test "$4"; then
15998 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15999 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16001 $as_echo "$as_me: error: $2" >&2
16002 as_fn_exit $as_status
16003 } # as_fn_error
16006 # as_fn_set_status STATUS
16007 # -----------------------
16008 # Set $? to STATUS, without forking.
16009 as_fn_set_status ()
16011 return $1
16012 } # as_fn_set_status
16014 # as_fn_exit STATUS
16015 # -----------------
16016 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16017 as_fn_exit ()
16019 set +e
16020 as_fn_set_status $1
16021 exit $1
16022 } # as_fn_exit
16024 # as_fn_unset VAR
16025 # ---------------
16026 # Portably unset VAR.
16027 as_fn_unset ()
16029 { eval $1=; unset $1;}
16031 as_unset=as_fn_unset
16032 # as_fn_append VAR VALUE
16033 # ----------------------
16034 # Append the text in VALUE to the end of the definition contained in VAR. Take
16035 # advantage of any shell optimizations that allow amortized linear growth over
16036 # repeated appends, instead of the typical quadratic growth present in naive
16037 # implementations.
16038 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16039 eval 'as_fn_append ()
16041 eval $1+=\$2
16043 else
16044 as_fn_append ()
16046 eval $1=\$$1\$2
16048 fi # as_fn_append
16050 # as_fn_arith ARG...
16051 # ------------------
16052 # Perform arithmetic evaluation on the ARGs, and store the result in the
16053 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16054 # must be portable across $(()) and expr.
16055 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16056 eval 'as_fn_arith ()
16058 as_val=$(( $* ))
16060 else
16061 as_fn_arith ()
16063 as_val=`expr "$@" || test $? -eq 1`
16065 fi # as_fn_arith
16068 if expr a : '\(a\)' >/dev/null 2>&1 &&
16069 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16070 as_expr=expr
16071 else
16072 as_expr=false
16075 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16076 as_basename=basename
16077 else
16078 as_basename=false
16081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16082 as_dirname=dirname
16083 else
16084 as_dirname=false
16087 as_me=`$as_basename -- "$0" ||
16088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16089 X"$0" : 'X\(//\)$' \| \
16090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16091 $as_echo X/"$0" |
16092 sed '/^.*\/\([^/][^/]*\)\/*$/{
16093 s//\1/
16096 /^X\/\(\/\/\)$/{
16097 s//\1/
16100 /^X\/\(\/\).*/{
16101 s//\1/
16104 s/.*/./; q'`
16106 # Avoid depending upon Character Ranges.
16107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16110 as_cr_digits='0123456789'
16111 as_cr_alnum=$as_cr_Letters$as_cr_digits
16113 ECHO_C= ECHO_N= ECHO_T=
16114 case `echo -n x` in #(((((
16115 -n*)
16116 case `echo 'xy\c'` in
16117 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16118 xy) ECHO_C='\c';;
16119 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16120 ECHO_T=' ';;
16121 esac;;
16123 ECHO_N='-n';;
16124 esac
16126 rm -f conf$$ conf$$.exe conf$$.file
16127 if test -d conf$$.dir; then
16128 rm -f conf$$.dir/conf$$.file
16129 else
16130 rm -f conf$$.dir
16131 mkdir conf$$.dir 2>/dev/null
16133 if (echo >conf$$.file) 2>/dev/null; then
16134 if ln -s conf$$.file conf$$ 2>/dev/null; then
16135 as_ln_s='ln -s'
16136 # ... but there are two gotchas:
16137 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16138 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16139 # In both cases, we have to default to `cp -pR'.
16140 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16141 as_ln_s='cp -pR'
16142 elif ln conf$$.file conf$$ 2>/dev/null; then
16143 as_ln_s=ln
16144 else
16145 as_ln_s='cp -pR'
16147 else
16148 as_ln_s='cp -pR'
16150 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16151 rmdir conf$$.dir 2>/dev/null
16154 # as_fn_mkdir_p
16155 # -------------
16156 # Create "$as_dir" as a directory, including parents if necessary.
16157 as_fn_mkdir_p ()
16160 case $as_dir in #(
16161 -*) as_dir=./$as_dir;;
16162 esac
16163 test -d "$as_dir" || eval $as_mkdir_p || {
16164 as_dirs=
16165 while :; do
16166 case $as_dir in #(
16167 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16168 *) as_qdir=$as_dir;;
16169 esac
16170 as_dirs="'$as_qdir' $as_dirs"
16171 as_dir=`$as_dirname -- "$as_dir" ||
16172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16173 X"$as_dir" : 'X\(//\)[^/]' \| \
16174 X"$as_dir" : 'X\(//\)$' \| \
16175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16176 $as_echo X"$as_dir" |
16177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16178 s//\1/
16181 /^X\(\/\/\)[^/].*/{
16182 s//\1/
16185 /^X\(\/\/\)$/{
16186 s//\1/
16189 /^X\(\/\).*/{
16190 s//\1/
16193 s/.*/./; q'`
16194 test -d "$as_dir" && break
16195 done
16196 test -z "$as_dirs" || eval "mkdir $as_dirs"
16197 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16200 } # as_fn_mkdir_p
16201 if mkdir -p . 2>/dev/null; then
16202 as_mkdir_p='mkdir -p "$as_dir"'
16203 else
16204 test -d ./-p && rmdir ./-p
16205 as_mkdir_p=false
16209 # as_fn_executable_p FILE
16210 # -----------------------
16211 # Test if FILE is an executable regular file.
16212 as_fn_executable_p ()
16214 test -f "$1" && test -x "$1"
16215 } # as_fn_executable_p
16216 as_test_x='test -x'
16217 as_executable_p=as_fn_executable_p
16219 # Sed expression to map a string onto a valid CPP name.
16220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16222 # Sed expression to map a string onto a valid variable name.
16223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16226 exec 6>&1
16227 ## ----------------------------------- ##
16228 ## Main body of $CONFIG_STATUS script. ##
16229 ## ----------------------------------- ##
16230 _ASEOF
16231 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16234 # Save the log message, to keep $0 and so on meaningful, and to
16235 # report actual input values of CONFIG_FILES etc. instead of their
16236 # values after options handling.
16237 ac_log="
16238 This file was extended by package-unused $as_me version-unused, which was
16239 generated by GNU Autoconf 2.69. Invocation command line was
16241 CONFIG_FILES = $CONFIG_FILES
16242 CONFIG_HEADERS = $CONFIG_HEADERS
16243 CONFIG_LINKS = $CONFIG_LINKS
16244 CONFIG_COMMANDS = $CONFIG_COMMANDS
16245 $ $0 $@
16247 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16250 _ACEOF
16252 case $ac_config_files in *"
16253 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16254 esac
16256 case $ac_config_headers in *"
16257 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16258 esac
16261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16262 # Files that config.status was made for.
16263 config_files="$ac_config_files"
16264 config_headers="$ac_config_headers"
16265 config_commands="$ac_config_commands"
16267 _ACEOF
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16270 ac_cs_usage="\
16271 \`$as_me' instantiates files and other configuration actions
16272 from templates according to the current configuration. Unless the files
16273 and actions are specified as TAGs, all are instantiated by default.
16275 Usage: $0 [OPTION]... [TAG]...
16277 -h, --help print this help, then exit
16278 -V, --version print version number and configuration settings, then exit
16279 --config print configuration, then exit
16280 -q, --quiet, --silent
16281 do not print progress messages
16282 -d, --debug don't remove temporary files
16283 --recheck update $as_me by reconfiguring in the same conditions
16284 --file=FILE[:TEMPLATE]
16285 instantiate the configuration file FILE
16286 --header=FILE[:TEMPLATE]
16287 instantiate the configuration header FILE
16289 Configuration files:
16290 $config_files
16292 Configuration headers:
16293 $config_headers
16295 Configuration commands:
16296 $config_commands
16298 Report bugs to the package provider."
16300 _ACEOF
16301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16302 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16303 ac_cs_version="\\
16304 package-unused config.status version-unused
16305 configured by $0, generated by GNU Autoconf 2.69,
16306 with options \\"\$ac_cs_config\\"
16308 Copyright (C) 2012 Free Software Foundation, Inc.
16309 This config.status script is free software; the Free Software Foundation
16310 gives unlimited permission to copy, distribute and modify it."
16312 ac_pwd='$ac_pwd'
16313 srcdir='$srcdir'
16314 INSTALL='$INSTALL'
16315 MKDIR_P='$MKDIR_P'
16316 AWK='$AWK'
16317 test -n "\$AWK" || AWK=awk
16318 _ACEOF
16320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16321 # The default lists apply if the user does not specify any file.
16322 ac_need_defaults=:
16323 while test $# != 0
16325 case $1 in
16326 --*=?*)
16327 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16328 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16329 ac_shift=:
16331 --*=)
16332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16333 ac_optarg=
16334 ac_shift=:
16337 ac_option=$1
16338 ac_optarg=$2
16339 ac_shift=shift
16341 esac
16343 case $ac_option in
16344 # Handling of the options.
16345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16346 ac_cs_recheck=: ;;
16347 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16348 $as_echo "$ac_cs_version"; exit ;;
16349 --config | --confi | --conf | --con | --co | --c )
16350 $as_echo "$ac_cs_config"; exit ;;
16351 --debug | --debu | --deb | --de | --d | -d )
16352 debug=: ;;
16353 --file | --fil | --fi | --f )
16354 $ac_shift
16355 case $ac_optarg in
16356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16357 '') as_fn_error $? "missing file argument" ;;
16358 esac
16359 as_fn_append CONFIG_FILES " '$ac_optarg'"
16360 ac_need_defaults=false;;
16361 --header | --heade | --head | --hea )
16362 $ac_shift
16363 case $ac_optarg in
16364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16365 esac
16366 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16367 ac_need_defaults=false;;
16368 --he | --h)
16369 # Conflict between --help and --header
16370 as_fn_error $? "ambiguous option: \`$1'
16371 Try \`$0 --help' for more information.";;
16372 --help | --hel | -h )
16373 $as_echo "$ac_cs_usage"; exit ;;
16374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16376 ac_cs_silent=: ;;
16378 # This is an error.
16379 -*) as_fn_error $? "unrecognized option: \`$1'
16380 Try \`$0 --help' for more information." ;;
16382 *) as_fn_append ac_config_targets " $1"
16383 ac_need_defaults=false ;;
16385 esac
16386 shift
16387 done
16389 ac_configure_extra_args=
16391 if $ac_cs_silent; then
16392 exec 6>/dev/null
16393 ac_configure_extra_args="$ac_configure_extra_args --silent"
16396 _ACEOF
16397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16398 if \$ac_cs_recheck; then
16399 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16400 shift
16401 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16402 CONFIG_SHELL='$SHELL'
16403 export CONFIG_SHELL
16404 exec "\$@"
16407 _ACEOF
16408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409 exec 5>>config.log
16411 echo
16412 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16413 ## Running $as_me. ##
16414 _ASBOX
16415 $as_echo "$ac_log"
16416 } >&5
16418 _ACEOF
16419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16421 # INIT-COMMANDS
16424 srcdir="$srcdir"
16425 host="$host"
16426 target="$target"
16427 with_multisubdir="$with_multisubdir"
16428 with_multisrctop="$with_multisrctop"
16429 with_target_subdir="$with_target_subdir"
16430 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16431 multi_basedir="$multi_basedir"
16432 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16433 CC="$CC"
16434 CXX="$CXX"
16435 GFORTRAN="$GFORTRAN"
16436 GDC="$GDC"
16439 # The HP-UX ksh and POSIX shell print the target directory to stdout
16440 # if CDPATH is set.
16441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16443 sed_quote_subst='$sed_quote_subst'
16444 double_quote_subst='$double_quote_subst'
16445 delay_variable_subst='$delay_variable_subst'
16446 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16447 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16448 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16449 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16450 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16451 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16452 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16453 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16454 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16455 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16456 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16457 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16458 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16459 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16460 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16461 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16462 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16463 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16464 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16465 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16466 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16467 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16468 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16469 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16470 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16471 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16472 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16473 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16474 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16475 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16476 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16477 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16478 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16479 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16480 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16481 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16482 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16483 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16484 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16485 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16486 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16487 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16488 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16489 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16490 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16491 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16492 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16493 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16494 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"`'
16495 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16496 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16499 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16500 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16501 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16502 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16503 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16504 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16505 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16506 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16507 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16508 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16509 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16510 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16511 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16512 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16513 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16514 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16515 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16516 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16517 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16518 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16519 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16520 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16521 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16522 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16523 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16524 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16525 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16526 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16527 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16528 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16529 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16530 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16531 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16532 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16533 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16534 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16535 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16536 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16537 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16538 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16539 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16540 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16541 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16542 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16543 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16544 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16545 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16546 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16547 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16548 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16549 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16550 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16551 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16552 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16553 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16554 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16555 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16556 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16557 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16558 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16559 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16560 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16561 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16562 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16563 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16564 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16565 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16566 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16567 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16568 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16569 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16570 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16571 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16572 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16573 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16574 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16575 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16576 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16577 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16578 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16579 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16580 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16581 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16582 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16583 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16584 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16585 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16586 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16587 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16588 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16589 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16590 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16591 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16592 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16593 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16594 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16595 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16596 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16597 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16598 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16599 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16600 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16601 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16602 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16603 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16604 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16605 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16606 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16607 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16608 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16610 LTCC='$LTCC'
16611 LTCFLAGS='$LTCFLAGS'
16612 compiler='$compiler_DEFAULT'
16614 # A function that is used when there is no print builtin or printf.
16615 func_fallback_echo ()
16617 eval 'cat <<_LTECHO_EOF
16619 _LTECHO_EOF'
16622 # Quote evaled strings.
16623 for var in SHELL \
16624 ECHO \
16625 SED \
16626 GREP \
16627 EGREP \
16628 FGREP \
16629 LD \
16630 NM \
16631 LN_S \
16632 lt_SP2NL \
16633 lt_NL2SP \
16634 reload_flag \
16635 OBJDUMP \
16636 deplibs_check_method \
16637 file_magic_cmd \
16638 AR \
16639 AR_FLAGS \
16640 STRIP \
16641 RANLIB \
16642 CC \
16643 CFLAGS \
16644 compiler \
16645 lt_cv_sys_global_symbol_pipe \
16646 lt_cv_sys_global_symbol_to_cdecl \
16647 lt_cv_sys_global_symbol_to_c_name_address \
16648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16649 lt_prog_compiler_no_builtin_flag \
16650 lt_prog_compiler_wl \
16651 lt_prog_compiler_pic \
16652 lt_prog_compiler_static \
16653 lt_cv_prog_compiler_c_o \
16654 need_locks \
16655 DSYMUTIL \
16656 NMEDIT \
16657 LIPO \
16658 OTOOL \
16659 OTOOL64 \
16660 shrext_cmds \
16661 export_dynamic_flag_spec \
16662 whole_archive_flag_spec \
16663 compiler_needs_object \
16664 with_gnu_ld \
16665 allow_undefined_flag \
16666 no_undefined_flag \
16667 hardcode_libdir_flag_spec \
16668 hardcode_libdir_flag_spec_ld \
16669 hardcode_libdir_separator \
16670 fix_srcfile_path \
16671 exclude_expsyms \
16672 include_expsyms \
16673 file_list_spec \
16674 variables_saved_for_relink \
16675 libname_spec \
16676 library_names_spec \
16677 soname_spec \
16678 install_override_mode \
16679 finish_eval \
16680 old_striplib \
16681 striplib \
16682 LD_D \
16683 reload_flag_D \
16684 compiler_D \
16685 lt_prog_compiler_no_builtin_flag_D \
16686 lt_prog_compiler_wl_D \
16687 lt_prog_compiler_pic_D \
16688 lt_prog_compiler_static_D \
16689 lt_cv_prog_compiler_c_o_D \
16690 export_dynamic_flag_spec_D \
16691 whole_archive_flag_spec_D \
16692 compiler_needs_object_D \
16693 with_gnu_ld_D \
16694 allow_undefined_flag_D \
16695 no_undefined_flag_D \
16696 hardcode_libdir_flag_spec_D \
16697 hardcode_libdir_flag_spec_ld_D \
16698 hardcode_libdir_separator_D \
16699 fix_srcfile_path_D \
16700 exclude_expsyms_D \
16701 include_expsyms_D \
16702 file_list_spec_D; do
16703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16704 *[\\\\\\\`\\"\\\$]*)
16705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16710 esac
16711 done
16713 # Double-quote double-evaled strings.
16714 for var in reload_cmds \
16715 old_postinstall_cmds \
16716 old_postuninstall_cmds \
16717 old_archive_cmds \
16718 extract_expsyms_cmds \
16719 old_archive_from_new_cmds \
16720 old_archive_from_expsyms_cmds \
16721 archive_cmds \
16722 archive_expsym_cmds \
16723 module_cmds \
16724 module_expsym_cmds \
16725 export_symbols_cmds \
16726 prelink_cmds \
16727 postinstall_cmds \
16728 postuninstall_cmds \
16729 finish_cmds \
16730 sys_lib_search_path_spec \
16731 sys_lib_dlsearch_path_spec \
16732 reload_cmds_D \
16733 old_archive_cmds_D \
16734 old_archive_from_new_cmds_D \
16735 old_archive_from_expsyms_cmds_D \
16736 archive_cmds_D \
16737 archive_expsym_cmds_D \
16738 module_cmds_D \
16739 module_expsym_cmds_D \
16740 export_symbols_cmds_D \
16741 prelink_cmds_D; do
16742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16743 *[\\\\\\\`\\"\\\$]*)
16744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16749 esac
16750 done
16752 ac_aux_dir='$ac_aux_dir'
16753 xsi_shell='$xsi_shell'
16754 lt_shell_append='$lt_shell_append'
16756 # See if we are running on zsh, and set the options which allow our
16757 # commands through without removal of \ escapes INIT.
16758 if test -n "\${ZSH_VERSION+set}" ; then
16759 setopt NO_GLOB_SUBST
16763 PACKAGE='$PACKAGE'
16764 VERSION='$VERSION'
16765 TIMESTAMP='$TIMESTAMP'
16766 RM='$RM'
16767 ofile='$ofile'
16774 _ACEOF
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 # Handling of arguments.
16779 for ac_config_target in $ac_config_targets
16781 case $ac_config_target in
16782 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16783 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16784 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16786 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16787 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16788 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16789 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16790 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16791 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16792 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16794 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16795 esac
16796 done
16799 # If the user did not use the arguments to specify the items to instantiate,
16800 # then the envvar interface is used. Set only those that are not.
16801 # We use the long form for the default assignment because of an extremely
16802 # bizarre bug on SunOS 4.1.3.
16803 if $ac_need_defaults; then
16804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16809 # Have a temporary directory for convenience. Make it in the build tree
16810 # simply because there is no reason against having it here, and in addition,
16811 # creating and moving files from /tmp can sometimes cause problems.
16812 # Hook for its removal unless debugging.
16813 # Note that there is a small window in which the directory will not be cleaned:
16814 # after its creation but before its name has been assigned to `$tmp'.
16815 $debug ||
16817 tmp= ac_tmp=
16818 trap 'exit_status=$?
16819 : "${ac_tmp:=$tmp}"
16820 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16822 trap 'as_fn_exit 1' 1 2 13 15
16824 # Create a (secure) tmp directory for tmp files.
16827 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16828 test -d "$tmp"
16829 } ||
16831 tmp=./conf$$-$RANDOM
16832 (umask 077 && mkdir "$tmp")
16833 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16834 ac_tmp=$tmp
16836 # Set up the scripts for CONFIG_FILES section.
16837 # No need to generate them if there are no CONFIG_FILES.
16838 # This happens for instance with `./config.status config.h'.
16839 if test -n "$CONFIG_FILES"; then
16841 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16842 ac_cs_awk_getline=:
16843 ac_cs_awk_pipe_init=
16844 ac_cs_awk_read_file='
16845 while ((getline aline < (F[key])) > 0)
16846 print(aline)
16847 close(F[key])'
16848 ac_cs_awk_pipe_fini=
16849 else
16850 ac_cs_awk_getline=false
16851 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16852 ac_cs_awk_read_file='
16853 print "|#_!!_#|"
16854 print "cat " F[key] " &&"
16855 '$ac_cs_awk_pipe_init
16856 # The final `:' finishes the AND list.
16857 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16859 ac_cr=`echo X | tr X '\015'`
16860 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16861 # But we know of no other shell where ac_cr would be empty at this
16862 # point, so we can use a bashism as a fallback.
16863 if test "x$ac_cr" = x; then
16864 eval ac_cr=\$\'\\r\'
16866 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16867 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16868 ac_cs_awk_cr='\\r'
16869 else
16870 ac_cs_awk_cr=$ac_cr
16873 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16874 _ACEOF
16876 # Create commands to substitute file output variables.
16878 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16879 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16880 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16881 echo "_ACAWK" &&
16882 echo "_ACEOF"
16883 } >conf$$files.sh &&
16884 . ./conf$$files.sh ||
16885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16886 rm -f conf$$files.sh
16889 echo "cat >conf$$subs.awk <<_ACEOF" &&
16890 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16891 echo "_ACEOF"
16892 } >conf$$subs.sh ||
16893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16894 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16895 ac_delim='%!_!# '
16896 for ac_last_try in false false false false false :; do
16897 . ./conf$$subs.sh ||
16898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16901 if test $ac_delim_n = $ac_delim_num; then
16902 break
16903 elif $ac_last_try; then
16904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16905 else
16906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16908 done
16909 rm -f conf$$subs.sh
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16913 _ACEOF
16914 sed -n '
16916 s/^/S["/; s/!.*/"]=/
16919 s/^[^!]*!//
16920 :repl
16921 t repl
16922 s/'"$ac_delim"'$//
16923 t delim
16926 s/\(.\{148\}\)..*/\1/
16927 t more1
16928 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16931 b repl
16932 :more1
16933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16936 s/.\{148\}//
16937 t nl
16938 :delim
16940 s/\(.\{148\}\)..*/\1/
16941 t more2
16942 s/["\\]/\\&/g; s/^/"/; s/$/"/
16945 :more2
16946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16949 s/.\{148\}//
16950 t delim
16951 ' <conf$$subs.awk | sed '
16952 /^[^""]/{
16954 s/\n//
16956 ' >>$CONFIG_STATUS || ac_write_fail=1
16957 rm -f conf$$subs.awk
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 _ACAWK
16960 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16961 for (key in S) S_is_set[key] = 1
16962 FS = "\a"
16963 \$ac_cs_awk_pipe_init
16966 line = $ 0
16967 nfields = split(line, field, "@")
16968 substed = 0
16969 len = length(field[1])
16970 for (i = 2; i < nfields; i++) {
16971 key = field[i]
16972 keylen = length(key)
16973 if (S_is_set[key]) {
16974 value = S[key]
16975 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16976 len += length(value) + length(field[++i])
16977 substed = 1
16978 } else
16979 len += 1 + keylen
16981 if (nfields == 3 && !substed) {
16982 key = field[2]
16983 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16984 \$ac_cs_awk_read_file
16985 next
16988 print line
16990 \$ac_cs_awk_pipe_fini
16991 _ACAWK
16992 _ACEOF
16993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16996 else
16998 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17000 _ACEOF
17002 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17003 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17004 # trailing colons and then remove the whole line if VPATH becomes empty
17005 # (actually we leave an empty line to preserve line numbers).
17006 if test "x$srcdir" = x.; then
17007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17009 s///
17010 s/^/:/
17011 s/[ ]*$/:/
17012 s/:\$(srcdir):/:/g
17013 s/:\${srcdir}:/:/g
17014 s/:@srcdir@:/:/g
17015 s/^:*//
17016 s/:*$//
17018 s/\(=[ ]*\).*/\1/
17020 s/\n//
17021 s/^[^=]*=[ ]*$//
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026 fi # test -n "$CONFIG_FILES"
17028 # Set up the scripts for CONFIG_HEADERS section.
17029 # No need to generate them if there are no CONFIG_HEADERS.
17030 # This happens for instance with `./config.status Makefile'.
17031 if test -n "$CONFIG_HEADERS"; then
17032 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17033 BEGIN {
17034 _ACEOF
17036 # Transform confdefs.h into an awk script `defines.awk', embedded as
17037 # here-document in config.status, that substitutes the proper values into
17038 # config.h.in to produce config.h.
17040 # Create a delimiter string that does not exist in confdefs.h, to ease
17041 # handling of long lines.
17042 ac_delim='%!_!# '
17043 for ac_last_try in false false :; do
17044 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17045 if test -z "$ac_tt"; then
17046 break
17047 elif $ac_last_try; then
17048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17049 else
17050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17052 done
17054 # For the awk script, D is an array of macro values keyed by name,
17055 # likewise P contains macro parameters if any. Preserve backslash
17056 # newline sequences.
17058 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17059 sed -n '
17060 s/.\{148\}/&'"$ac_delim"'/g
17061 t rset
17062 :rset
17063 s/^[ ]*#[ ]*define[ ][ ]*/ /
17064 t def
17066 :def
17067 s/\\$//
17068 t bsnl
17069 s/["\\]/\\&/g
17070 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17071 D["\1"]=" \3"/p
17072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17074 :bsnl
17075 s/["\\]/\\&/g
17076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17077 D["\1"]=" \3\\\\\\n"\\/p
17078 t cont
17079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17080 t cont
17082 :cont
17084 s/.\{148\}/&'"$ac_delim"'/g
17085 t clear
17086 :clear
17087 s/\\$//
17088 t bsnlc
17089 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17091 :bsnlc
17092 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17093 b cont
17094 ' <confdefs.h | sed '
17095 s/'"$ac_delim"'/"\\\
17096 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17099 for (key in D) D_is_set[key] = 1
17100 FS = "\a"
17102 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17103 line = \$ 0
17104 split(line, arg, " ")
17105 if (arg[1] == "#") {
17106 defundef = arg[2]
17107 mac1 = arg[3]
17108 } else {
17109 defundef = substr(arg[1], 2)
17110 mac1 = arg[2]
17112 split(mac1, mac2, "(") #)
17113 macro = mac2[1]
17114 prefix = substr(line, 1, index(line, defundef) - 1)
17115 if (D_is_set[macro]) {
17116 # Preserve the white space surrounding the "#".
17117 print prefix "define", macro P[macro] D[macro]
17118 next
17119 } else {
17120 # Replace #undef with comments. This is necessary, for example,
17121 # in the case of _POSIX_SOURCE, which is predefined and required
17122 # on some systems where configure will not decide to define it.
17123 if (defundef == "undef") {
17124 print "/*", prefix defundef, macro, "*/"
17125 next
17129 { print }
17130 _ACAWK
17131 _ACEOF
17132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17133 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17134 fi # test -n "$CONFIG_HEADERS"
17137 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17138 shift
17139 for ac_tag
17141 case $ac_tag in
17142 :[FHLC]) ac_mode=$ac_tag; continue;;
17143 esac
17144 case $ac_mode$ac_tag in
17145 :[FHL]*:*);;
17146 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17147 :[FH]-) ac_tag=-:-;;
17148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17149 esac
17150 ac_save_IFS=$IFS
17151 IFS=:
17152 set x $ac_tag
17153 IFS=$ac_save_IFS
17154 shift
17155 ac_file=$1
17156 shift
17158 case $ac_mode in
17159 :L) ac_source=$1;;
17160 :[FH])
17161 ac_file_inputs=
17162 for ac_f
17164 case $ac_f in
17165 -) ac_f="$ac_tmp/stdin";;
17166 *) # Look for the file first in the build tree, then in the source tree
17167 # (if the path is not absolute). The absolute path cannot be DOS-style,
17168 # because $ac_f cannot contain `:'.
17169 test -f "$ac_f" ||
17170 case $ac_f in
17171 [\\/$]*) false;;
17172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17173 esac ||
17174 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17175 esac
17176 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17177 as_fn_append ac_file_inputs " '$ac_f'"
17178 done
17180 # Let's still pretend it is `configure' which instantiates (i.e., don't
17181 # use $as_me), people would be surprised to read:
17182 # /* config.h. Generated by config.status. */
17183 configure_input='Generated from '`
17184 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17185 `' by configure.'
17186 if test x"$ac_file" != x-; then
17187 configure_input="$ac_file. $configure_input"
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17189 $as_echo "$as_me: creating $ac_file" >&6;}
17191 # Neutralize special characters interpreted by sed in replacement strings.
17192 case $configure_input in #(
17193 *\&* | *\|* | *\\* )
17194 ac_sed_conf_input=`$as_echo "$configure_input" |
17195 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17196 *) ac_sed_conf_input=$configure_input;;
17197 esac
17199 case $ac_tag in
17200 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17202 esac
17204 esac
17206 ac_dir=`$as_dirname -- "$ac_file" ||
17207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17208 X"$ac_file" : 'X\(//\)[^/]' \| \
17209 X"$ac_file" : 'X\(//\)$' \| \
17210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17211 $as_echo X"$ac_file" |
17212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17213 s//\1/
17216 /^X\(\/\/\)[^/].*/{
17217 s//\1/
17220 /^X\(\/\/\)$/{
17221 s//\1/
17224 /^X\(\/\).*/{
17225 s//\1/
17228 s/.*/./; q'`
17229 as_dir="$ac_dir"; as_fn_mkdir_p
17230 ac_builddir=.
17232 case "$ac_dir" in
17233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17236 # A ".." for each directory in $ac_dir_suffix.
17237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17238 case $ac_top_builddir_sub in
17239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17241 esac ;;
17242 esac
17243 ac_abs_top_builddir=$ac_pwd
17244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17245 # for backward compatibility:
17246 ac_top_builddir=$ac_top_build_prefix
17248 case $srcdir in
17249 .) # We are building in place.
17250 ac_srcdir=.
17251 ac_top_srcdir=$ac_top_builddir_sub
17252 ac_abs_top_srcdir=$ac_pwd ;;
17253 [\\/]* | ?:[\\/]* ) # Absolute name.
17254 ac_srcdir=$srcdir$ac_dir_suffix;
17255 ac_top_srcdir=$srcdir
17256 ac_abs_top_srcdir=$srcdir ;;
17257 *) # Relative name.
17258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17259 ac_top_srcdir=$ac_top_build_prefix$srcdir
17260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17261 esac
17262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17265 case $ac_mode in
17268 # CONFIG_FILE
17271 case $INSTALL in
17272 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17273 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17274 esac
17275 ac_MKDIR_P=$MKDIR_P
17276 case $MKDIR_P in
17277 [\\/$]* | ?:[\\/]* ) ;;
17278 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17279 esac
17280 _ACEOF
17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283 # If the template does not know about datarootdir, expand it.
17284 # FIXME: This hack should be removed a few years after 2.60.
17285 ac_datarootdir_hack=; ac_datarootdir_seen=
17286 ac_sed_dataroot='
17287 /datarootdir/ {
17291 /@datadir@/p
17292 /@docdir@/p
17293 /@infodir@/p
17294 /@localedir@/p
17295 /@mandir@/p'
17296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17297 *datarootdir*) ac_datarootdir_seen=yes;;
17298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17301 _ACEOF
17302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17303 ac_datarootdir_hack='
17304 s&@datadir@&$datadir&g
17305 s&@docdir@&$docdir&g
17306 s&@infodir@&$infodir&g
17307 s&@localedir@&$localedir&g
17308 s&@mandir@&$mandir&g
17309 s&\\\${datarootdir}&$datarootdir&g' ;;
17310 esac
17311 _ACEOF
17313 # Neutralize VPATH when `$srcdir' = `.'.
17314 # Shell code in configure.ac might set extrasub.
17315 # FIXME: do we really want to maintain this feature?
17316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17317 ac_sed_extra="$ac_vpsub
17318 $extrasub
17319 _ACEOF
17320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17323 s|@configure_input@|$ac_sed_conf_input|;t t
17324 s&@top_builddir@&$ac_top_builddir_sub&;t t
17325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17326 s&@srcdir@&$ac_srcdir&;t t
17327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17328 s&@top_srcdir@&$ac_top_srcdir&;t t
17329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17330 s&@builddir@&$ac_builddir&;t t
17331 s&@abs_builddir@&$ac_abs_builddir&;t t
17332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17333 s&@INSTALL@&$ac_INSTALL&;t t
17334 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17335 $ac_datarootdir_hack
17337 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17338 if $ac_cs_awk_getline; then
17339 $AWK -f "$ac_tmp/subs.awk"
17340 else
17341 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17342 fi \
17343 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17348 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17350 which seems to be undefined. Please make sure it is defined" >&5
17351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17352 which seems to be undefined. Please make sure it is defined" >&2;}
17354 rm -f "$ac_tmp/stdin"
17355 case $ac_file in
17356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17358 esac \
17359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17363 # CONFIG_HEADER
17365 if test x"$ac_file" != x-; then
17367 $as_echo "/* $configure_input */" \
17368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17369 } >"$ac_tmp/config.h" \
17370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17374 else
17375 rm -f "$ac_file"
17376 mv "$ac_tmp/config.h" "$ac_file" \
17377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17379 else
17380 $as_echo "/* $configure_input */" \
17381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17382 || as_fn_error $? "could not create -" "$LINENO" 5
17384 # Compute "$ac_file"'s index in $config_headers.
17385 _am_arg="$ac_file"
17386 _am_stamp_count=1
17387 for _am_header in $config_headers :; do
17388 case $_am_header in
17389 $_am_arg | $_am_arg:* )
17390 break ;;
17392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17393 esac
17394 done
17395 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17396 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397 X"$_am_arg" : 'X\(//\)[^/]' \| \
17398 X"$_am_arg" : 'X\(//\)$' \| \
17399 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17400 $as_echo X"$_am_arg" |
17401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17402 s//\1/
17405 /^X\(\/\/\)[^/].*/{
17406 s//\1/
17409 /^X\(\/\/\)$/{
17410 s//\1/
17413 /^X\(\/\).*/{
17414 s//\1/
17417 s/.*/./; q'`/stamp-h$_am_stamp_count
17420 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17421 $as_echo "$as_me: executing $ac_file commands" >&6;}
17423 esac
17426 case $ac_file$ac_mode in
17427 "default-1":C)
17428 # Only add multilib support code if we just rebuilt the top-level
17429 # Makefile.
17430 case " $CONFIG_FILES " in
17431 *" Makefile "*)
17432 ac_file=Makefile . ${multi_basedir}/config-ml.in
17434 esac ;;
17435 "libtool":C)
17437 # See if we are running on zsh, and set the options which allow our
17438 # commands through without removal of \ escapes.
17439 if test -n "${ZSH_VERSION+set}" ; then
17440 setopt NO_GLOB_SUBST
17443 cfgfile="${ofile}T"
17444 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17445 $RM "$cfgfile"
17447 cat <<_LT_EOF >> "$cfgfile"
17448 #! $SHELL
17450 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17451 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17453 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17455 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17456 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17457 # Written by Gordon Matzigkeit, 1996
17459 # This file is part of GNU Libtool.
17461 # GNU Libtool is free software; you can redistribute it and/or
17462 # modify it under the terms of the GNU General Public License as
17463 # published by the Free Software Foundation; either version 2 of
17464 # the License, or (at your option) any later version.
17466 # As a special exception to the GNU General Public License,
17467 # if you distribute this file as part of a program or library that
17468 # is built using GNU Libtool, you may include this file under the
17469 # same distribution terms that you use for the rest of that program.
17471 # GNU Libtool is distributed in the hope that it will be useful,
17472 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17474 # GNU General Public License for more details.
17476 # You should have received a copy of the GNU General Public License
17477 # along with GNU Libtool; see the file COPYING. If not, a copy
17478 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17479 # obtained by writing to the Free Software Foundation, Inc.,
17480 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17483 # The names of the tagged configurations supported by this script.
17484 available_tags="D "
17486 # ### BEGIN LIBTOOL CONFIG
17488 # Which release of libtool.m4 was used?
17489 macro_version=$macro_version
17490 macro_revision=$macro_revision
17492 # Whether or not to build shared libraries.
17493 build_libtool_libs=$enable_shared
17495 # Whether or not to build static libraries.
17496 build_old_libs=$enable_static
17498 # What type of objects to build.
17499 pic_mode=$pic_mode
17501 # Whether or not to optimize for fast installation.
17502 fast_install=$enable_fast_install
17504 # Shell to use when invoking shell scripts.
17505 SHELL=$lt_SHELL
17507 # An echo program that protects backslashes.
17508 ECHO=$lt_ECHO
17510 # The host system.
17511 host_alias=$host_alias
17512 host=$host
17513 host_os=$host_os
17515 # The build system.
17516 build_alias=$build_alias
17517 build=$build
17518 build_os=$build_os
17520 # A sed program that does not truncate output.
17521 SED=$lt_SED
17523 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17524 Xsed="\$SED -e 1s/^X//"
17526 # A grep program that handles long lines.
17527 GREP=$lt_GREP
17529 # An ERE matcher.
17530 EGREP=$lt_EGREP
17532 # A literal string matcher.
17533 FGREP=$lt_FGREP
17535 # A BSD- or MS-compatible name lister.
17536 NM=$lt_NM
17538 # Whether we need soft or hard links.
17539 LN_S=$lt_LN_S
17541 # What is the maximum length of a command?
17542 max_cmd_len=$max_cmd_len
17544 # Object file suffix (normally "o").
17545 objext=$ac_objext
17547 # Executable file suffix (normally "").
17548 exeext=$exeext
17550 # whether the shell understands "unset".
17551 lt_unset=$lt_unset
17553 # turn spaces into newlines.
17554 SP2NL=$lt_lt_SP2NL
17556 # turn newlines into spaces.
17557 NL2SP=$lt_lt_NL2SP
17559 # An object symbol dumper.
17560 OBJDUMP=$lt_OBJDUMP
17562 # Method to check whether dependent libraries are shared objects.
17563 deplibs_check_method=$lt_deplibs_check_method
17565 # Command to use when deplibs_check_method == "file_magic".
17566 file_magic_cmd=$lt_file_magic_cmd
17568 # The archiver.
17569 AR=$lt_AR
17570 AR_FLAGS=$lt_AR_FLAGS
17572 # A symbol stripping program.
17573 STRIP=$lt_STRIP
17575 # Commands used to install an old-style archive.
17576 RANLIB=$lt_RANLIB
17577 old_postinstall_cmds=$lt_old_postinstall_cmds
17578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17580 # Whether to use a lock for old archive extraction.
17581 lock_old_archive_extraction=$lock_old_archive_extraction
17583 # A C compiler.
17584 LTCC=$lt_CC
17586 # LTCC compiler flags.
17587 LTCFLAGS=$lt_CFLAGS
17589 # Take the output of nm and produce a listing of raw symbols and C names.
17590 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17592 # Transform the output of nm in a proper C declaration.
17593 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17595 # Transform the output of nm in a C name address pair.
17596 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17598 # Transform the output of nm in a C name address pair when lib prefix is needed.
17599 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17601 # The name of the directory that contains temporary libtool files.
17602 objdir=$objdir
17604 # Used to examine libraries when file_magic_cmd begins with "file".
17605 MAGIC_CMD=$MAGIC_CMD
17607 # Must we lock files when doing compilation?
17608 need_locks=$lt_need_locks
17610 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17611 DSYMUTIL=$lt_DSYMUTIL
17613 # Tool to change global to local symbols on Mac OS X.
17614 NMEDIT=$lt_NMEDIT
17616 # Tool to manipulate fat objects and archives on Mac OS X.
17617 LIPO=$lt_LIPO
17619 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17620 OTOOL=$lt_OTOOL
17622 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17623 OTOOL64=$lt_OTOOL64
17625 # Old archive suffix (normally "a").
17626 libext=$libext
17628 # Shared library suffix (normally ".so").
17629 shrext_cmds=$lt_shrext_cmds
17631 # The commands to extract the exported symbol list from a shared archive.
17632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17634 # Variables whose values should be saved in libtool wrapper scripts and
17635 # restored at link time.
17636 variables_saved_for_relink=$lt_variables_saved_for_relink
17638 # Do we need the "lib" prefix for modules?
17639 need_lib_prefix=$need_lib_prefix
17641 # Do we need a version for libraries?
17642 need_version=$need_version
17644 # Library versioning type.
17645 version_type=$version_type
17647 # Shared library runtime path variable.
17648 runpath_var=$runpath_var
17650 # Shared library path variable.
17651 shlibpath_var=$shlibpath_var
17653 # Is shlibpath searched before the hard-coded library search path?
17654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17656 # Format of library name prefix.
17657 libname_spec=$lt_libname_spec
17659 # List of archive names. First name is the real one, the rest are links.
17660 # The last name is the one that the linker finds with -lNAME
17661 library_names_spec=$lt_library_names_spec
17663 # The coded name of the library, if different from the real name.
17664 soname_spec=$lt_soname_spec
17666 # Permission mode override for installation of shared libraries.
17667 install_override_mode=$lt_install_override_mode
17669 # Command to use after installation of a shared archive.
17670 postinstall_cmds=$lt_postinstall_cmds
17672 # Command to use after uninstallation of a shared archive.
17673 postuninstall_cmds=$lt_postuninstall_cmds
17675 # Commands used to finish a libtool library installation in a directory.
17676 finish_cmds=$lt_finish_cmds
17678 # As "finish_cmds", except a single script fragment to be evaled but
17679 # not shown.
17680 finish_eval=$lt_finish_eval
17682 # Whether we should hardcode library paths into libraries.
17683 hardcode_into_libs=$hardcode_into_libs
17685 # Compile-time system search path for libraries.
17686 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17688 # Run-time system search path for libraries.
17689 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17691 # Whether dlopen is supported.
17692 dlopen_support=$enable_dlopen
17694 # Whether dlopen of programs is supported.
17695 dlopen_self=$enable_dlopen_self
17697 # Whether dlopen of statically linked programs is supported.
17698 dlopen_self_static=$enable_dlopen_self_static
17700 # Commands to strip libraries.
17701 old_striplib=$lt_old_striplib
17702 striplib=$lt_striplib
17705 # The linker used to build libraries.
17706 LD=$lt_LD
17708 # How to create reloadable object files.
17709 reload_flag=$lt_reload_flag
17710 reload_cmds=$lt_reload_cmds
17712 # Commands used to build an old-style archive.
17713 old_archive_cmds=$lt_old_archive_cmds
17715 # A language specific compiler.
17716 CC=$lt_compiler
17718 # Is the compiler the GNU compiler?
17719 with_gcc=$GCC
17721 # Compiler flag to turn off builtin functions.
17722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl
17727 # Additional compiler flags for building library objects.
17728 pic_flag=$lt_lt_prog_compiler_pic
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static
17733 # Does compiler simultaneously support -c and -o options?
17734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc
17739 # Whether or not to disallow shared libs when runtime libs are static.
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17748 # Whether the compiler copes with passing no objects directly.
17749 compiler_needs_object=$lt_compiler_needs_object
17751 # Create an old-style archive from a shared archive.
17752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17754 # Create a temporary old-style archive to link instead of a shared archive.
17755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17757 # Commands used to build a shared archive.
17758 archive_cmds=$lt_archive_cmds
17759 archive_expsym_cmds=$lt_archive_expsym_cmds
17761 # Commands used to build a loadable module if different from building
17762 # a shared archive.
17763 module_cmds=$lt_module_cmds
17764 module_expsym_cmds=$lt_module_expsym_cmds
17766 # Whether we are building with GNU ld or not.
17767 with_gnu_ld=$lt_with_gnu_ld
17769 # Flag that allows shared libraries with undefined symbols to be built.
17770 allow_undefined_flag=$lt_allow_undefined_flag
17772 # Flag that enforces no undefined symbols.
17773 no_undefined_flag=$lt_no_undefined_flag
17775 # Flag to hardcode \$libdir into a binary during linking.
17776 # This must work even if \$libdir does not exist
17777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17779 # If ld is used when linking, flag to hardcode \$libdir into a binary
17780 # during linking. This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17783 # Whether we need a single "-rpath" flag with a separated argument.
17784 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787 # DIR into the resulting binary.
17788 hardcode_direct=$hardcode_direct
17790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791 # DIR into the resulting binary and the resulting library dependency is
17792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793 # library is relocated.
17794 hardcode_direct_absolute=$hardcode_direct_absolute
17796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797 # into the resulting binary.
17798 hardcode_minus_L=$hardcode_minus_L
17800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801 # into the resulting binary.
17802 hardcode_shlibpath_var=$hardcode_shlibpath_var
17804 # Set to "yes" if building a shared library automatically hardcodes DIR
17805 # into the library and all subsequent libraries and executables linked
17806 # against it.
17807 hardcode_automatic=$hardcode_automatic
17809 # Set to yes if linker adds runtime paths of dependent libraries
17810 # to runtime path list.
17811 inherit_rpath=$inherit_rpath
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs
17816 # Fix the shell variable \$srcfile for the compiler.
17817 fix_srcfile_path=$lt_fix_srcfile_path
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds
17834 # Specify filename containing input files.
17835 file_list_spec=$lt_file_list_spec
17837 # How to hardcode a shared library path into an executable.
17838 hardcode_action=$hardcode_action
17840 # ### END LIBTOOL CONFIG
17842 _LT_EOF
17844 case $host_os in
17845 aix3*)
17846 cat <<\_LT_EOF >> "$cfgfile"
17847 # AIX sometimes has problems with the GCC collect2 program. For some
17848 # reason, if we set the COLLECT_NAMES environment variable, the problems
17849 # vanish in a puff of smoke.
17850 if test "X${COLLECT_NAMES+set}" != Xset; then
17851 COLLECT_NAMES=
17852 export COLLECT_NAMES
17854 _LT_EOF
17856 esac
17859 ltmain="$ac_aux_dir/ltmain.sh"
17862 # We use sed instead of cat because bash on DJGPP gets confused if
17863 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17864 # text mode, it properly converts lines to CR/LF. This bash problem
17865 # is reportedly fixed, but why not run on old versions too?
17866 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17867 || (rm -f "$cfgfile"; exit 1)
17869 case $xsi_shell in
17870 yes)
17871 cat << \_LT_EOF >> "$cfgfile"
17873 # func_dirname file append nondir_replacement
17874 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17875 # otherwise set result to NONDIR_REPLACEMENT.
17876 func_dirname ()
17878 case ${1} in
17879 */*) func_dirname_result="${1%/*}${2}" ;;
17880 * ) func_dirname_result="${3}" ;;
17881 esac
17884 # func_basename file
17885 func_basename ()
17887 func_basename_result="${1##*/}"
17890 # func_dirname_and_basename file append nondir_replacement
17891 # perform func_basename and func_dirname in a single function
17892 # call:
17893 # dirname: Compute the dirname of FILE. If nonempty,
17894 # add APPEND to the result, otherwise set result
17895 # to NONDIR_REPLACEMENT.
17896 # value returned in "$func_dirname_result"
17897 # basename: Compute filename of FILE.
17898 # value retuned in "$func_basename_result"
17899 # Implementation must be kept synchronized with func_dirname
17900 # and func_basename. For efficiency, we do not delegate to
17901 # those functions but instead duplicate the functionality here.
17902 func_dirname_and_basename ()
17904 case ${1} in
17905 */*) func_dirname_result="${1%/*}${2}" ;;
17906 * ) func_dirname_result="${3}" ;;
17907 esac
17908 func_basename_result="${1##*/}"
17911 # func_stripname prefix suffix name
17912 # strip PREFIX and SUFFIX off of NAME.
17913 # PREFIX and SUFFIX must not contain globbing or regex special
17914 # characters, hashes, percent signs, but SUFFIX may contain a leading
17915 # dot (in which case that matches only a dot).
17916 func_stripname ()
17918 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17919 # positional parameters, so assign one to ordinary parameter first.
17920 func_stripname_result=${3}
17921 func_stripname_result=${func_stripname_result#"${1}"}
17922 func_stripname_result=${func_stripname_result%"${2}"}
17925 # func_opt_split
17926 func_opt_split ()
17928 func_opt_split_opt=${1%%=*}
17929 func_opt_split_arg=${1#*=}
17932 # func_lo2o object
17933 func_lo2o ()
17935 case ${1} in
17936 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17937 *) func_lo2o_result=${1} ;;
17938 esac
17941 # func_xform libobj-or-source
17942 func_xform ()
17944 func_xform_result=${1%.*}.lo
17947 # func_arith arithmetic-term...
17948 func_arith ()
17950 func_arith_result=$(( $* ))
17953 # func_len string
17954 # STRING may not start with a hyphen.
17955 func_len ()
17957 func_len_result=${#1}
17960 _LT_EOF
17962 *) # Bourne compatible functions.
17963 cat << \_LT_EOF >> "$cfgfile"
17965 # func_dirname file append nondir_replacement
17966 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17967 # otherwise set result to NONDIR_REPLACEMENT.
17968 func_dirname ()
17970 # Extract subdirectory from the argument.
17971 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17972 if test "X$func_dirname_result" = "X${1}"; then
17973 func_dirname_result="${3}"
17974 else
17975 func_dirname_result="$func_dirname_result${2}"
17979 # func_basename file
17980 func_basename ()
17982 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17986 # func_stripname prefix suffix name
17987 # strip PREFIX and SUFFIX off of NAME.
17988 # PREFIX and SUFFIX must not contain globbing or regex special
17989 # characters, hashes, percent signs, but SUFFIX may contain a leading
17990 # dot (in which case that matches only a dot).
17991 # func_strip_suffix prefix name
17992 func_stripname ()
17994 case ${2} in
17995 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17996 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17997 esac
18000 # sed scripts:
18001 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18002 my_sed_long_arg='1s/^-[^=]*=//'
18004 # func_opt_split
18005 func_opt_split ()
18007 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18008 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18011 # func_lo2o object
18012 func_lo2o ()
18014 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18017 # func_xform libobj-or-source
18018 func_xform ()
18020 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18023 # func_arith arithmetic-term...
18024 func_arith ()
18026 func_arith_result=`expr "$@"`
18029 # func_len string
18030 # STRING may not start with a hyphen.
18031 func_len ()
18033 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18036 _LT_EOF
18037 esac
18039 case $lt_shell_append in
18040 yes)
18041 cat << \_LT_EOF >> "$cfgfile"
18043 # func_append var value
18044 # Append VALUE to the end of shell variable VAR.
18045 func_append ()
18047 eval "$1+=\$2"
18049 _LT_EOF
18052 cat << \_LT_EOF >> "$cfgfile"
18054 # func_append var value
18055 # Append VALUE to the end of shell variable VAR.
18056 func_append ()
18058 eval "$1=\$$1\$2"
18061 _LT_EOF
18063 esac
18066 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18067 || (rm -f "$cfgfile"; exit 1)
18069 mv -f "$cfgfile" "$ofile" ||
18070 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18071 chmod +x "$ofile"
18074 cat <<_LT_EOF >> "$ofile"
18076 # ### BEGIN LIBTOOL TAG CONFIG: D
18078 # The linker used to build libraries.
18079 LD=$lt_LD_D
18081 # How to create reloadable object files.
18082 reload_flag=$lt_reload_flag_D
18083 reload_cmds=$lt_reload_cmds_D
18085 # Commands used to build an old-style archive.
18086 old_archive_cmds=$lt_old_archive_cmds_D
18088 # A language specific compiler.
18089 CC=$lt_compiler_D
18091 # Is the compiler the GNU compiler?
18092 with_gcc=$GCC_D
18094 # Compiler flag to turn off builtin functions.
18095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18097 # How to pass a linker flag through the compiler.
18098 wl=$lt_lt_prog_compiler_wl_D
18100 # Additional compiler flags for building library objects.
18101 pic_flag=$lt_lt_prog_compiler_pic_D
18103 # Compiler flag to prevent dynamic linking.
18104 link_static_flag=$lt_lt_prog_compiler_static_D
18106 # Does compiler simultaneously support -c and -o options?
18107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18109 # Whether or not to add -lc for building shared libraries.
18110 build_libtool_need_lc=$archive_cmds_need_lc_D
18112 # Whether or not to disallow shared libs when runtime libs are static.
18113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18115 # Compiler flag to allow reflexive dlopens.
18116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18118 # Compiler flag to generate shared objects directly from archives.
18119 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18121 # Whether the compiler copes with passing no objects directly.
18122 compiler_needs_object=$lt_compiler_needs_object_D
18124 # Create an old-style archive from a shared archive.
18125 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18127 # Create a temporary old-style archive to link instead of a shared archive.
18128 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18130 # Commands used to build a shared archive.
18131 archive_cmds=$lt_archive_cmds_D
18132 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18134 # Commands used to build a loadable module if different from building
18135 # a shared archive.
18136 module_cmds=$lt_module_cmds_D
18137 module_expsym_cmds=$lt_module_expsym_cmds_D
18139 # Whether we are building with GNU ld or not.
18140 with_gnu_ld=$lt_with_gnu_ld_D
18142 # Flag that allows shared libraries with undefined symbols to be built.
18143 allow_undefined_flag=$lt_allow_undefined_flag_D
18145 # Flag that enforces no undefined symbols.
18146 no_undefined_flag=$lt_no_undefined_flag_D
18148 # Flag to hardcode \$libdir into a binary during linking.
18149 # This must work even if \$libdir does not exist
18150 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18152 # If ld is used when linking, flag to hardcode \$libdir into a binary
18153 # during linking. This must work even if \$libdir does not exist.
18154 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18156 # Whether we need a single "-rpath" flag with a separated argument.
18157 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18159 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18160 # DIR into the resulting binary.
18161 hardcode_direct=$hardcode_direct_D
18163 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18164 # DIR into the resulting binary and the resulting library dependency is
18165 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18166 # library is relocated.
18167 hardcode_direct_absolute=$hardcode_direct_absolute_D
18169 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18170 # into the resulting binary.
18171 hardcode_minus_L=$hardcode_minus_L_D
18173 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18174 # into the resulting binary.
18175 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18177 # Set to "yes" if building a shared library automatically hardcodes DIR
18178 # into the library and all subsequent libraries and executables linked
18179 # against it.
18180 hardcode_automatic=$hardcode_automatic_D
18182 # Set to yes if linker adds runtime paths of dependent libraries
18183 # to runtime path list.
18184 inherit_rpath=$inherit_rpath_D
18186 # Whether libtool must link a program against all its dependency libraries.
18187 link_all_deplibs=$link_all_deplibs_D
18189 # Fix the shell variable \$srcfile for the compiler.
18190 fix_srcfile_path=$lt_fix_srcfile_path_D
18192 # Set to "yes" if exported symbols are required.
18193 always_export_symbols=$always_export_symbols_D
18195 # The commands to list exported symbols.
18196 export_symbols_cmds=$lt_export_symbols_cmds_D
18198 # Symbols that should not be listed in the preloaded symbols.
18199 exclude_expsyms=$lt_exclude_expsyms_D
18201 # Symbols that must always be exported.
18202 include_expsyms=$lt_include_expsyms_D
18204 # Commands necessary for linking programs (against libraries) with templates.
18205 prelink_cmds=$lt_prelink_cmds_D
18207 # Specify filename containing input files.
18208 file_list_spec=$lt_file_list_spec_D
18210 # How to hardcode a shared library path into an executable.
18211 hardcode_action=$hardcode_action_D
18213 # ### END LIBTOOL TAG CONFIG: D
18214 _LT_EOF
18217 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18218 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18219 s!`test -f '$<' || echo '$(srcdir)/'`!!
18220 _EOF
18221 sed -f vpsed$$ $ac_file > tmp$$
18222 mv tmp$$ $ac_file
18223 rm vpsed$$
18224 echo 'MULTISUBDIR =' >> $ac_file
18225 ml_norecursion=yes
18226 . ${multi_basedir}/config-ml.in
18227 { ml_norecursion=; unset ml_norecursion;}
18229 "src/Makefile":F) cat > vpsed$$ << \_EOF
18230 s!`test -f '$<' || echo '$(srcdir)/'`!!
18231 _EOF
18232 sed -f vpsed$$ $ac_file > tmp$$
18233 mv tmp$$ $ac_file
18234 rm vpsed$$
18235 echo 'MULTISUBDIR =' >> $ac_file
18236 ml_norecursion=yes
18237 . ${multi_basedir}/config-ml.in
18238 { ml_norecursion=; unset ml_norecursion;}
18240 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18241 s!`test -f '$<' || echo '$(srcdir)/'`!!
18242 _EOF
18243 sed -f vpsed$$ $ac_file > tmp$$
18244 mv tmp$$ $ac_file
18245 rm vpsed$$
18246 echo 'MULTISUBDIR =' >> $ac_file
18247 ml_norecursion=yes
18248 . ${multi_basedir}/config-ml.in
18249 { ml_norecursion=; unset ml_norecursion;}
18252 esac
18253 done # for ac_tag
18256 as_fn_exit 0
18257 _ACEOF
18258 ac_clean_files=$ac_clean_files_save
18260 test $ac_write_fail = 0 ||
18261 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18264 # configure is writing to config.log, and then calls config.status.
18265 # config.status does its own redirection, appending to config.log.
18266 # Unfortunately, on DOS this fails, as config.log is still kept open
18267 # by configure, so config.status won't be able to write to it; its
18268 # output is simply discarded. So we exec the FD to /dev/null,
18269 # effectively closing config.log, so it can be properly (re)opened and
18270 # appended to by config.status. When coming back to configure, we
18271 # need to make the FD available again.
18272 if test "$no_create" != yes; then
18273 ac_cs_success=:
18274 ac_config_status_args=
18275 test "$silent" = yes &&
18276 ac_config_status_args="$ac_config_status_args --quiet"
18277 exec 5>/dev/null
18278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18279 exec 5>>config.log
18280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18281 # would make configure fail if this is the last instruction.
18282 $ac_cs_success || as_fn_exit 1
18284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}